:root {
    /* Color Palette - Natural & Healthy */
    --bg-dark: #fcfaf7;
    /* Warm off-white */
    --bg-darker: #f5f0e8;
    /* Soft beige */
    --primary: #2d6a4f;
    /* Healthy forest green */
    --primary-glow: rgba(45, 106, 79, 0.2);
    --secondary: #d97706;
    /* Warm amber/orange */
    --accent: #1b241b;
    /* Deep organic green-black */
    --text-main: #2d3436;
    /* Soft black */
    --text-muted: #636e72;
    /* Gentle gray */
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(45, 106, 79, 0.15);
    --glass-heavy: rgba(252, 250, 247, 0.95);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px 0;

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Zen Old Mincho', serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.container-narrow {
    max-width: 800px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.4s;
    background: linear-gradient(to bottom, rgba(252, 250, 247, 0.8), transparent);
}

.navbar.scrolled {
    background: var(--glass-heavy);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: var(--bg-dark) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 106, 79, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for dynamic navbar */
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-dark) 30%, rgba(252, 250, 247, 0.8) 50%, transparent 80%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-tagline {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--primary);
    font-weight: 300;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(252, 250, 247, 0.8);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 500;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(45, 106, 79, 0.15);
}

.btn-outline {
    border: 1px solid var(--primary);
    margin-left: 20px;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--primary);
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Sections */
.section {
    padding: var(--section-padding);
}

#works.section {
    padding-bottom: 40px;
}

#qa.section {
    padding-top: 40px;
}

.section-badge {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.centered {
    text-align: center;
}

.bg-dark {
    background-color: var(--bg-darker);
}

/* Pain Section */
.pain-section {
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.pain-item {
    text-align: center;
}

.pain-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.pain-item h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.pain-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pain-footer {
    margin-top: 40px;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
}

/* Story Section */
.story-section {
    position: relative;
    overflow: hidden;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.story-visual {
    position: relative;
}

.image-stack {
    position: relative;
    padding-right: 40px;
}

.story-img-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 0;
    background: var(--primary);
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(45, 106, 79, 0.3);
    text-align: center;
    z-index: 2;
}

.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.story-content {
    padding-right: 40px;
}

.story-content p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .story-content {
        padding-right: 0;
    }
}

/* Concept Section Enhancement */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.large-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.concept-text-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.concept-visual {
    display: flex;
    justify-content: center;
}

.orbital-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbital-ring {
    position: absolute;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.ring-2 {
    width: 70%;
    height: 70%;
    animation: rotate 15s linear infinite reverse;
    border-color: var(--primary);
    opacity: 0.3;
}

.ring-3 {
    width: 40%;
    height: 40%;
    animation: rotate 10s linear infinite;
}

.orbital-core {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(45, 106, 79, 0.3);
    color: #ffffff;
    font-size: 1.5rem;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Themes Section */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.theme-card {
    padding: 50px 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: 0.4s;
}

.theme-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--primary-glow);
}

.theme-card.highlight {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.05), transparent);
    border-color: var(--primary);
}

.theme-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.theme-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.theme-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services Section */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
}

.service-info h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.service-meta {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-features {
    margin: 30px 0;
}

.service-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
}

.service-features i {
    color: var(--primary);
    font-size: 0.8rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.popular-badge {
    background: var(--primary);
    color: var(--bg-dark);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.service-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glass-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.day-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
    z-index: 2;
}

.glass-box.highlight {
    background: radial-gradient(circle at center, rgba(74, 222, 128, 0.1), transparent);
}

.glass-box i {
    font-size: 5rem;
    color: var(--primary-glow);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-fast {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 60px 40px;
    transition: 0.4s;
    position: relative;
    /* Ensure child absolute elements are positioned correctly */
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(45, 106, 79, 0.08);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.03), transparent);
    position: relative;
}

.pricing-card .tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-dark);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
}

.tax-note {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 5px;
}

.card-body p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.card-body ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-body i {
    color: var(--primary);
    width: 20px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.portfolio-item {
    background: var(--glass);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: 0.4s;
}

.portfolio-img-box {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg-darker);
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--glass-border);
    background: linear-gradient(135deg, #111, #222);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.view-link {
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.portfolio-info {
    padding: 30px;
}

.portfolio-info .cat {
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.portfolio-info h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 40px;
}

.map-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-size: 0.9rem;
}

.map-link:hover {
    text-decoration: underline;
}

/* Service Badge Improvement */
.service-badge {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-card {
    background: linear-gradient(135deg, #2d6a4f, #1e4d3a);
    padding: 80px 60px;
    border-radius: 24px;
    text-align: center;
    color: #ffffff;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--accent);
    opacity: 0.9;
}

.btn-white {
    background: var(--bg-dark);
    color: var(--accent);
}

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.small-text {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand h3 {
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links ul {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive Fixes */
@media (max-width: 900px) {

    .concept-grid,
    .service-row,
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .service-row.reverse {
        flex-direction: column;
    }

    .footer-links ul {
        justify-content: center;
    }

    .footer-brand div {
        margin: 20px auto !important;
        /* Center the map iframe */
    }

    .nav-links {
        display: none;
    }
}

/* Detail Page Styles */
.detail-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    background-color: #1b241b;
    /* 深い緑系統のフォールバック色 */
    color: #ffffff;
}

.detail-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7;
}

.detail-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.detail-hero .container {
    position: relative;
    z-index: 10;
}

.detail-header {
    max-width: 800px;
}

.detail-header .service-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.detail-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.detail-intro {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 40px;
    line-height: 1.8;
}

.detail-hero .price {
    font-size: 2.5rem;
    color: #f9b13d !important;
    font-weight: 800;
}

.detail-hero .tax-note {
    color: rgba(255, 255, 255, 0.6);
}

/* Schedule Component */
.schedule-section {
    padding: 100px 0;
}

.schedule-container {
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-day {
    margin-bottom: 80px;
}

.schedule-day-title {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.timeline {
    position: relative;
    padding-left: 80px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -52px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-time {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: block;
}

.timeline-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Service Detail Footer */
.service-footer {
    text-align: center;
    padding: 100px 0;
    background: var(--bg-darker);
    border-radius: 20px;
    margin: 60px 0;
}

.service-footer h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Responsive Fixes for Detail Pages */
@media (max-width: 900px) {
    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 4px;
    }

    .timeline-item::before {
        left: -33px;
    }
}

/* Monthly Limit Banner */
.monthly-limit-banner {
    background: var(--secondary);
    color: #fff;
    padding: 15px 0;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-top: 60px;
    border-radius: 4px;
}

/* Q&A Section */
.qa-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.qa-item {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.qa-question {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
    display: flex;
    gap: 15px;
}

.qa-question::before {
    content: 'Q.';
}

.qa-answer {
    color: var(--text-muted);
    padding-left: 35px;
}

/* Featured Section */
.badge-featured {
    background: var(--secondary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: 10px;
    vertical-align: middle;
}

/* Pain/Solution Grid */
.pain-solution-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 60px;
}

.pain-row {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--bg-darker);
    padding: 40px;
    border-radius: 20px;
    transition: 0.3s;
}

.pain-row:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pain-col {
    flex: 1;
    text-align: center;
}

.pain-col h4 {
    margin: 15px 0;
    color: var(--text-main);
}

.pain-col p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pain-col i {
    font-size: 2rem;
}

.problem {
    opacity: 0.7;
}

.problem i {
    color: var(--text-muted);
}

.solution i {
    color: var(--secondary);
}

.arrow-col {
    color: var(--primary);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .pain-row {
        flex-direction: column;
        padding: 30px;
    }

    .arrow-col {
        transform: rotate(90deg);
    }
}

/* Experience Feature Blocks */
.experience-intro {
    padding: 100px 0;
    background: var(--bg-main);
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: 0.5s;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-list i {
    color: var(--secondary);
}

/* Spec Grid */
.spec-section {
    padding: 100px 0;
    background: var(--bg-darker);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.spec-item {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.spec-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 24px;
}

.spec-item h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.spec-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {

    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: left;
    }

    .feature-image img {
        height: 300px;
    }

    .feature-text h3 {
        font-size: 1.75rem;
    }

    .feature-list {
        display: block;
    }
}

@media (max-width: 768px) {
    .detail-hero {
        padding: 60px 0;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 140px;
        /* Increased to avoid navbar overlap */
        padding-bottom: 80px;
        display: flex;
        align-items: center;
    }

    .hero-tagline {
        letter-spacing: 0.3em;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    /* Reduce vertical gaps on mobile so content isn't missed */
    .section {
        padding: 60px 0;
    }

    .services-container {
        gap: 60px;
    }

    .pricing-grid {
        gap: 30px;
        margin-top: 40px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .detail-title {
        font-size: 2.5rem;
    }

    .detail-intro {
        font-size: 1.1rem;
    }

    .spec-item {
        padding: 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .feature-image img {
        height: 250px;
    }

    .feature-text h3 {
        font-size: 1.5rem;
    }

    .experience-intro,
    .spec-section {
        padding: 60px 0;
    }

    .feature-block {
        margin-bottom: 80px;
    }
}

/* Portfolio Carousel Section */
.portfolio-carousel-container {
    padding: 40px 0;
    position: relative;
    max-width: 100vw;
}

.portfolio-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    padding-left: 30px;
    padding-right: 30px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    cursor: grab;
}

.portfolio-carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.portfolio-carousel:active {
    cursor: grabbing;
}

.portfolio-card {
    flex: 0 0 350px;
    background: var(--bg-dark);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
}

.portfolio-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    pointer-events: none;
    /* Allow drag on image */
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-genres {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.genre-link {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    font-family: inherit;
}

.genre-link:hover,
.genre-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.portfolio-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(45, 106, 79, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.portfolio-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.portfolio-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.scroll-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 20px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .portfolio-carousel {
        gap: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .portfolio-card {
        flex: 0 0 280px;
    }

    .advice-grid {
        grid-template-columns: 1fr;
    }
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advice-card {
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    text-align: center;
    align-items: center;
}


.advice-card {
    background: var(--bg-darker);
    padding: 40px;
    border-radius: 24px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.advice-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.advice-body h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.advice-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Responsive Break Utilities */
.pc-br {
    display: inline;
}

.sp-br {
    display: none;
}

@media (max-width: 768px) {
    .pc-br {
        display: none;
    }

    .sp-br {
        display: inline;
    }

    /* Improve Japanese text wrapping on mobile */
    p {
        text-align: justify;
        text-justify: inter-ideograph;
        overflow-wrap: break-word;
    }
}

/* Mobile Navigation Styles */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    position: relative;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        z-index: 2000;
        /* Ensure toggle is always on top */
    }

    .nav-links {
        display: none;
        /* Hide by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(252, 250, 247, 0.98);
        /* Solid background color */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1500;
        padding-top: 60px;
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 1 !important;
        /* Force visibility */
        transform: none !important;
        /* Remove transform */
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-main) !important;
        /* Force text color */
        display: block;
        padding: 10px;
    }

    /* Hamburger Animation - Simple Toggle */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}