﻿@charset "UTF-8";

/* Variables */
:root {
    --c-text-main: #333333;
    --c-text-sub: #555555;
    --c-text-gold: #b38f5a;
    --c-bg-body: #fff;
    --c-bg-beige: #f9f8f6;
    --c-bg-dark: #1a1a1a;
    
    --font-serif: "Zen Old Mincho", "Times New Roman", serif;
    --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    
    --w-container: 1000px;
    --w-container-narrow: 800px;
    
    --header-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--c-text-main);
    line-height: 1.8;
    background-color: var(--c-bg-body);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Utilities */
.l-container {
    max-width: var(--w-container);
    margin: 0 auto;
    padding: 0 20px;
}

.l-container--narrow {
    max-width: var(--w-container-narrow);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--c-text-gold); }
.text-white { color: #fff; }
.text-gray { color: #888; }
.text-lg { font-size: 1.25rem; font-weight: bold; }
.text-xl { font-size: 1.5rem; }
.text-sm { font-size: 0.85rem; }
.text-lead { font-size: 1.2rem; line-height: 2; }
.text-accent { color: var(--c-text-gold); font-weight: bold; }

.font-serif { font-family: var(--font-serif); }
.font-bold { font-weight: bold; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mt-80 { margin-top: 80px; }

.p-30 { padding: 30px; }
.p-40 { padding: 40px; }

.d-block { display: block; }
.md-none { display: block; }
.md-show { display: none; }
.inline-block { display: inline-block; }

.bg-beige { background-color: var(--c-bg-beige); }
.bg-white { background-color: #fff; }
.bg-dark { background-color: var(--c-bg-dark); }

.radius-md { border-radius: 8px; }
.border-gold { border: 2px solid var(--c-text-gold); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    text-decoration: none;
    line-height: 1.4;
}

.btn--primary {
    background: linear-gradient(135deg, #b38f5a 0%, #9e7e4e 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(179, 143, 90, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 143, 90, 0.5);
    opacity: 1;
}

.btn--lg {
    padding: 20px 60px;
    font-size: 1.2rem;
    min-width: 300px;
}

.link-underline {
    display: inline-block;
    border-bottom: 1px solid var(--c-text-main);
    padding-bottom: 2px;
    font-weight: bold;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.header__inner {
    width: 100%;
    max-width: 1200px; /* Increased from 1000px to prevent squashing */
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__logo a {
    display: flex;
    flex-direction: column;
    font-family: var(--font-serif);
    font-size: 1.4rem; /* Slightly larger */
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-decoration: none;
}

.header__logo-sub {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--c-text-gold);
    letter-spacing: 0.1em;
    margin-top: 4px;
    font-weight: bold;
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__nav-list {
    display: flex;
    gap: 30px; /* Increased gap */
    align-items: center;
    list-style: none; /* Remove bullets */
    margin: 0;
    padding: 0;
}

.header__nav-item a {
    font-size: 0.85rem;
    font-weight: 500;
}

.header__cta {
    display: inline-block;
    padding: 10px 20px;
    background: var(--c-text-gold);
    color: #fff;
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 20px;
}

/* Mobile Menu */
/* Mobile Contact Icon */
.header__mobile-contact {
    color: var(--c-text-gold);
    padding: 5px 10px;
    display: none; /* Hidden on desktop */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    text-decoration: none;
    line-height: 1;
}
.header__mobile-contact i {
    font-size: 1.4rem;
    margin-bottom: 3px;
}
.mobile-contact-text {
    font-size: 0.6rem;
    font-family: var(--font-sans);
    letter-spacing: 0.05em;
    font-weight: bold;
    text-transform: uppercase;
}
.header__mobile-contact:active {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .md-show { display: block !important; }
    .md-none { display: none !important; }
    
    .header__mobile-contact {
        display: flex; /* Visible as flex on mobile */
    }
}

/* FV */
.fv {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.fv__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: zoomOut 20s linear infinite alternate;
}
.fv__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
.fv__content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
    padding-top: 60px; /* Header height offset */
    max-width: 1100px;
}
.fv__tagline {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.fv__title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.fv__title .text-gold { color: #eebb88; }
.fv__lead {
    font-size: 1rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Badge Positioning */
.fv__authority-badge {
    animation: badgePulse 2s infinite alternate;
}
.fv__authority-badge img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

@media (min-width: 769px) {
    .fv__authority-badge {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 240px; /* Good size for desktop */
        margin-bottom: 0;
    }
    .fv__copy-wrapper {
        max-width: 70%; /* Prevent text from overlapping badge */
    }
}
@media (max-width: 768px) {
    .fv__content {
        padding-top: 80px; /* Header */
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }
    .fv__copy-wrapper {
        display: grid;
        grid-template-columns: 1fr 120px;
        grid-template-areas:
            "tagline badge"
            "title title"
            "lead lead"
            "cta cta";
        gap: 10px;
        align-items: start;
        width: 100%;
    }
    .fv__tagline {
        grid-area: tagline;
        font-size: 0.9rem;
        line-height: 1.4;
        text-align: left;
        margin-bottom: 0;
        align-self: center;
    }
    .fv__authority-badge {
        grid-area: badge;
        display: block;
        width: 100%;
        max-width: 110px;
        margin: 0;
        justify-self: end;
    }
    .fv__title {
        grid-area: title;
        font-size: 1.6rem; /* Slightly smaller */
        margin-top: 20px;
        margin-bottom: 15px; /* Reduced margin */
        line-height: 1.35;
        text-align: left;
    }
    .fv__title .d-block { display: inline; } /* Allow natural wrapping if needed, or keep block */
    
    .fv__lead {
        display: block;
        grid-area: lead;
        font-size: 0.8rem; /* Small font */
        margin-bottom: 10px;
        line-height: 1.5;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    .fv__cta {
        grid-area: cta;
        margin-top: 5px;
        text-align: center;
    }
    .fv__cta .btn {
        padding: 14px 30px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 320px;
    }
}

@keyframes badgePulse {
    from { transform: translateY(-50%) scale(1); }
    to { transform: translateY(-50%) scale(1.05); }
}
@media (max-width: 768px) {
    @keyframes badgePulse {
        from { transform: scale(1); }
        to { transform: scale(1.05); }
    }
}
.scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    z-index: 2;
}
.scroll-indicator span { font-size: 0.7rem; letter-spacing: 0.2em; display: block; margin-bottom: 10px; }
.scroll-indicator .line {
    width: 1px; height: 50px;
    background: #fff;
    margin: 0 auto;
    animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 768px) {
    .scroll-indicator { display: none; }
}

/* Section Common */
.section { padding: 100px 0; }
.section-title {
    font-family: var(--font-serif);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.4;
    font-size: 2.2rem;
}
.section-title .ja { display: block; }
.section-sub-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Graph Section */
.market-graph-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.graph-box {
    margin-top: 30px;
    border-left: 2px solid #eee;
    padding-left: 20px;
}
.graph-row { display: flex; align-items: center; margin-bottom: 25px; }
.graph-label { width: 120px; font-weight: bold; font-size: 0.9rem; flex-shrink: 0; }
.graph-bar-area { flex-grow: 1; background: #f0f0f0; height: 30px; border-radius: 4px; overflow: hidden; position: relative; }
.graph-bar { height: 100%; display: flex; align-items: center; padding-left: 10px; color: #fff; font-size: 0.85rem; font-weight: bold; white-space: nowrap; transition: width 1.5s ease-out; width: 0; }
.graph-bar--demand { background: var(--c-text-gold); }
.graph-bar--supply { background: #666; }
.graph-bar.is-visible { width: 100% !important; /* Managed by inline style from JS ideally, simplified here */ }

.blockquote-style {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 20px;
    display: inline-block;
}

/* Keyword & Check List */
/* Keyword & Check List */
.keyword-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}
.keyword-list li {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.check-list { 
    list-style: none; 
    padding: 0;
    margin: 0;
}
.check-list li {
    padding-left: 1.8em;
    position: relative;
    margin-bottom: 1.2em;
    line-height: 1.6;
}
.check-list li::before {
    content: "\f00c"; /* check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--c-text-gold);
}
.check-list--white li::before { color: #fff; }

/* Message Box (Redesigned) */
.message-box {
    background: #FFFEFA; /* Very light cream */
    padding: 50px;
    border: 1px solid var(--c-text-gold);
    border-radius: 8px;
    max-width: 840px;
    margin: 50px auto 0;
    position: relative;
    text-align: center;
}
/* Decorative corner lines (optional, kept simple for now) */
.message-box::after {
    content: "";
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid rgba(191, 165, 125, 0.3); /* faint gold inner line */
    border-radius: 4px;
    pointer-events: none;
}

.message-box .check-list {
    display: inline-block;
    text-align: left;
    margin-bottom: 30px;
}
.check-list li {
    padding-left: 2em;
    position: relative;
    margin-bottom: 1.5em; /* specific spacing */
    line-height: 1.8;
}
.check-list li strong {
    color: var(--c-text-main);
    background: linear-gradient(transparent 60%, rgba(238, 187, 136, 0.3) 60%);
}

/* Video Container (Responsive) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.video-container--sm { max-width: 600px; }
.video-container--4-3 { padding-bottom: 75%; } /* 4:3 Aspect Ratio */

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Profile Two Column */
.two-column { display: flex; gap: 60px; align-items: flex-start; }
.two-column--reverse { flex-direction: row-reverse; }
.two-column__image { width: 40%; flex-shrink: 0; position: sticky; top: 100px; } /* sticky effect */
.two-column__content { width: 60%; }

.profile-story-list {
    list-style: none;
    border-left: 3px solid #eee;
    padding-left: 30px;
}
.profile-story-list > li { margin-bottom: 30px; position: relative; }
.profile-story-list > li::before {
    content: ""; position: absolute; left: -36px; top: 10px;
    width: 9px; height: 9px; background: #ccc; border-radius: 50%;
}
.profile-story-list > li.highlight::before { background: var(--c-text-gold); }
.profile-story-list ul { margin-top: 10px; padding-left: 20px; margin-bottom: 0; }
.profile-story-list ul li { list-style: disc; margin-bottom: 5px; color: var(--c-text-sub); }

/* Numeric Data */
.numeric-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.numeric-item {
    flex: 1;
    text-align: center;
    background: #fff;
    padding: 30px 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.numeric-label { display: block; font-size: 1rem; color: var(--c-text-main); margin-bottom: 10px; font-weight: bold; }
.numeric-value { display: block; font-family: var(--font-serif); font-size: 4rem; color: var(--c-text-gold); line-height: 1; font-weight: bold; margin-top: 10px; }
.numeric-value .unit { font-size: 1.2rem; color: #333; margin-left: 5px; font-weight: normal; }

/* Callout */
.callout {
    background: #fff;
    border: 2px solid var(--c-text-gold);
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
}
.column-list { list-style: none; margin-top: 10px; }
.column-list li { display: inline-block; margin: 0 10px; font-weight: bold; border-bottom: 1px solid #ddd; }

/* Strength Items */
/* Strength Items (Borderless Redesign) */
.strength-item {
    display: flex;
    background: transparent; /* Top-level transparent */
    margin-bottom: 80px; /* Increased spacing */
    align-items: flex-start; /* Align top for clean text flow */
    gap: 50px; /* Distinct gap */
}
/* Keep alternation for visual interest */
.strength-item:nth-child(even) { flex-direction: row-reverse; }

.strength-item__img { 
    width: 50%; 
    flex-shrink: 0;
    aspect-ratio: 4/3; 
}
.strength-item__img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 4px; /* Slight radius on image itself */
}

/* Content side */
.strength-item__content { 
    width: 50%; 
    padding: 20px 0; /* Vertical padding only */
}

.strength-head { 
    display: flex; 
    align-items: baseline; 
    gap: 20px; 
    margin-bottom: 30px; 
    border-bottom: 1px solid var(--c-text-gold); /* Gold underline */
    padding-bottom: 20px; 
}
.strength-head .num { 
    font-family: var(--font-serif); 
    font-size: 3.5rem; 
    color: rgba(179,143,90,0.4); 
    line-height: 0.8; 
}
.strength-head h3 { 
    font-family: var(--font-serif); 
    font-size: 1.6rem; 
    line-height: 1.5;
    color: var(--c-text-main);
 }

.dash-list { list-style: none; }
.dash-list li { position: relative; padding-left: 1.2em; margin-bottom: 0.8em; }
.dash-list li::before { content: "-"; position: absolute; left: 0; }

.highlight-box {
    background: #fdfaf6;
    padding: 20px;
    border-radius: 4px;
    border-left: 3px solid var(--c-text-gold);
}
.check-sm-list { list-style: none; font-size: 0.9rem; }
.check-sm-list li { display: inline-block; margin-right: 15px; }
.check-sm-list li::before { content: "✔"; color: var(--c-text-gold); margin-right: 5px; }

.benefit-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}
.benefit-box .label {
    background: var(--c-text-main); color: #fff;
    padding: 2px 8px; border-radius: 2px; font-size: 0.75rem;
}

/* Success Cases */
.case-grid-lg { display: grid; gap: 60px; }
.case-card-lg { display: flex; gap: 30px; align-items: flex-start; }
.case-card-lg__img { width: 40%; aspect-ratio: 4/3; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.case-card-lg__img img { width: 100%; height: 100%; object-fit: cover; }
.case-card-lg__body { width: 60%; }
.case-title { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 15px; line-height: 1.4; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.case-catch { font-weight: bold; margin-bottom: 15px; color: var(--c-text-gold); }
.case-point { font-size: 0.95rem; line-height: 1.8; color: var(--c-text-sub); }

/* Support Details */
.support-detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: left;
    list-style: none; /* Remove bullets */
}
.support-detail-list li {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
}
.support-detail-list h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--c-text-gold);
    margin-bottom: 10px;
}
.support-detail-list p { font-size: 0.9rem; margin-bottom: 0; }

/* Nakamura Juku */
.juku-content {
    border: 1px solid var(--c-text-gold);
    background: #fff;
    padding: 40px;
    border-radius: 20px; /* Softer radius */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    max-width: 900px;
    margin: 0 auto;
}
.juku-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}
.juku-text { flex: 1; }
.juku-img {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 30px; /* Soft shape */
    overflow: hidden;
    background: #f0f0f0;
}
.juku-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
    .juku-grid { flex-direction: column-reverse; text-align: center; }
    .juku-img { width: 200px; height: 200px; order: -1; } /* Image on top mobile */
}

.juku-list { display: flex; justify-content: center; gap: 15px; list-style: none; margin-top: 20px; flex-wrap: wrap; }
.juku-list li { 
    border: 1px solid var(--c-text-gold); 
    color: var(--c-text-main);
    padding: 8px 16px; 
    border-radius: 30px; 
    background: #fffbf5;
    font-size: 0.85rem;
    font-weight: bold;
}

/* CTA */
.section--cta { 
    background: #fff; 
    color: var(--c-text-main); 
    padding: 120px 0; 
    border-top: 1px solid #eee;
    overflow: hidden; /* For absolute image */
}
.cta-title { font-size: 2rem; margin-bottom: 30px; letter-spacing: 0.05em; line-height: 1.6; }
.cta-box {
    background: #fdfaf6; /* Very light beige */
    color: var(--c-text-main);
    padding: 50px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--c-text-gold);
    position: relative;
}
.cta-dog-decoration {
    position: absolute;
    bottom: 0;
    right: -50px;
    width: 200px;
    height: auto;
    z-index: 1;
    transform: rotate(5deg);
}
@media (max-width: 768px) {
    .cta-dog-decoration {
        width: 120px;
        right: 0;
        bottom: -20px;
    }
}
.cta-box__label { font-weight: bold; margin-bottom: 20px; font-size: 1.2rem; position: relative; z-index: 2; }
.section--cta {
    background-image: url('../images_webp/cta-background.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff; /* White text */
}

.section--cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.section--cta .l-container {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
}

.section--cta .cta-title {
    color: #fff !important; /* Force white title */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.section--cta .check-list li {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Ensure check mark visibility if needed, or keep as is if gold is visible */
.section--cta .check-list li::before {
    background: #fff;
    color: var(--c-text-gold);
}

/* Footer */
.footer { background: #111; color: #666; padding: 40px 0; font-size: 0.8rem; }
.footer__logo { font-family: var(--font-serif); color: #fff; margin-bottom: 10px; }

/* Partners Grid (Section 9) */
.partners-grid-light {
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px;
}
.partners-grid-light .partner-logo {
    background: rgba(255,255,255,0.1);
    color: #fff;
    width: 200px; height: 100px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}

/* Animations */
.fade-in { opacity: 0; transition: opacity 1.5s ease; }
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    :root { --header-height: 60px; }
    .md-none { display: none; }
    .md-show { display: block; }
    .header__hamburger { display: block; }
    
    .section { padding: 60px 0; } /* Reduced from 100px */
    .mb-60 { margin-bottom: 30px; }
    .mt-60 { margin-top: 30px; }
    
    .fv__title { font-size: 1.8rem; }
    .fv__lead { font-size: 0.9rem; }
    .section-title { font-size: 1.4rem; margin-bottom: 30px; } /* Reduced to 1.4rem to fit long titles */
    .section-sub-title { font-size: 1.2rem; margin-bottom: 30px; }
    
    .two-column { flex-direction: column !important; gap: 40px; }
    .two-column__image { width: 100%; position: static; }
    .two-column__content { width: 100%; }
    
    .message-box { padding: 30px 15px; } /* Reduced padding significantly */
    .check-list li { margin-bottom: 1em; }
    
    .numeric-value { font-size: 2.8rem; } /* Reduced from 4rem */
    .unit { font-size: 1.0rem; white-space: nowrap; } /* Ensure unit fits on one line */
    
    .graph-box { border-left: none; padding-left: 0; }
    .graph-row { display: block; margin-bottom: 20px; }
    .graph-label { margin-bottom: 5px; width: 100%; }
    
    /* Market Graph Message */
    .market-graph-container .font-bold { font-size: 0.85rem; letter-spacing: -0.05em; } /* Fit "犬と泊まりたい人は..." tightly */
    
    /* Specific fix for the blockquote in Market section */
    .blockquote-style {
        padding: 15px 10px !important; /* Reduced padding */
        font-size: 0.9rem !important; /* Smaller font */
        letter-spacing: -0.05em !important; /* Tighter tracking */
        line-height: 1.6 !important;
    }
    
    .strength-item { flex-direction: column !important; margin-bottom: 50px; gap: 20px; }
    .strength-item__img { width: 100%; height: 200px; }
    .strength-item__content { width: 100%; padding: 10px 0 0; }
    .strength-head { gap: 15px; margin-bottom: 20px; padding-bottom: 15px; }
    .strength-head .num { font-size: 2.5rem; }
    .strength-head h3 { font-size: 1.3rem; }
    
    /* Commitment Section */
    .founder-commitment h4 { font-size: 1.0rem !important; letter-spacing: -0.05em; } /* Fit "実際に泊まったからこそ..." */
    .commitment-signature { font-size: 0.85rem; padding: 10px 10px; letter-spacing: -0.05em; } /* Fit "私が体験していないことは..." */
    
    /* Partner Section */
    .hoshino-box .text-sm { font-size: 0.85rem !important; letter-spacing: -0.05em; } /* Increased for readability */
    
    .case-card-lg { flex-direction: column; gap: 20px; }
    .case-card-lg__img { width: 100%; }
    .case-card-lg__body { width: 100%; }
    
    .support-detail-list { grid-template-columns: 1fr; gap: 20px; }
    .juku-list { flex-direction: column; gap: 10px; }
    
    .section--cta {
        background-position: 40% center !important;
    }
    
    .cta-box { padding: 30px 15px; }
    .cta-title { font-size: 1.4rem; }
    .cta-box__label { font-size: 0.9rem; letter-spacing: -0.05em; } /* Fit "まずは無料面談にて..." */
    
    /* Partnership Box Specific Fix */
    .p-30.bg-white.border-gold { padding: 20px !important; }
    .text-xl { font-size: 1.25rem; } /* Scale down on mobile */
    .text-lg { font-size: 1.1rem; }
}

/* Business Settings (Triangle Layout) */
/* Business Settings (Triangle Layout) */
.business-triangle-section {
    background-color: #f9f8f6; /* beige */
    padding: 100px 0;
    overflow: hidden;
}

.triangle-container {
    position: relative;
    max-width: 680px; /* Adjusted to prevent overlap */
    margin: 0 auto;
    height: 620px; /* Adjusted to prevent overlap */
}

.triangle-center {
    position: absolute;
    top: 54%; /* Optical center adjustment (lowered) */
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    z-index: 10; /* Bring to front */
}

.triangle-center-text {
    font-family: var(--font-serif);
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--c-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(255,255,255,0.8); /* Readability */
}

/* Nodes */
.triangle-node {
    position: absolute;
    width: 260px; /* Slightly larger */
    height: 260px;
    background: #004d61; 
    color: #fff;
    border-radius: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px; /* Increased padding */
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.triangle-node h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #eebb88; /* Goldish */
}

.triangle-node .name {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
}

.triangle-node .desc {
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Positions */
.node-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.node-left {
    bottom: 0;
    left: 0; 
}

.node-right {
    bottom: 0;
    right: 0;
}

/* Lines (using pseudo elements on container for simplicity or SVG) */
.triangle-bg-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .triangle-container {
        height: auto;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px; /* Space between items for arrows */
    }
    
    .triangle-center, .triangle-bg-lines { display: none; }
    
    .triangle-node {
        position: relative; /* For arrow positioning */
        width: 260px;
        height: 260px;
        border-radius: 50%; /* Make it circular like PC */
        aspect-ratio: 1/1;
        margin-bottom: 0;
        transform: none;
        padding: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* Reset PC positioning for all nodes */
    .node-top, .node-left, .node-right {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
    }
    
    /* Add arrow AFTER each node except the last - positioned outside */
    .triangle-node:not(:last-of-type)::after {
        content: '\f063'; /* FontAwesome down arrow */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 2rem;
        color: var(--c-text-gold);
        position: absolute;
        bottom: -45px; /* Position below the circle */
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Move "全て自社内でワンオペレーション" to bottom */
    .triangle-center-mobile {
        display: block !important;
        text-align: center;
        font-weight: bold;
        margin-top: 10px;
        font-size: 1.2rem;
        border: 2px solid var(--c-text-gold);
        padding: 20px;
        border-radius: 8px;
        background: #fff;
        order: 10; /* Ensure it appears last */
        position: relative;
    }
    
    /* Add arrow before the final text - positioned outside */
    .triangle-center-mobile::before {
        content: '\f063  \f063  \f063'; /* Three FontAwesome down arrows */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.5rem;
        color: var(--c-text-gold);
        position: absolute;
        top: -45px; /* Position above the box */
        left: 50%;
        transform: translateX(-50%);
        letter-spacing: 10px; /* Space between arrows */
    }
}
.triangle-center-mobile { display: none; }

/* Philosophy / Story Timeline */
/* Philosophy / Story Narrative (Speech Bubble) */
.story-timeline {
    margin-top: 0;
}

.story-item {
    margin-bottom: 30px;
    position: relative;
}
/* Remove timeline dots */
.story-item::before { display: none; }

.story-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.8;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    display: block; /* changed to block */
    border: 1px solid #ddd;
}
/* Speech bubble tail (Left side) */
.story-text::after, .story-text::before {
    right: 100%;
    top: 30px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.story-text::after {
    border-color: rgba(255, 255, 255, 0);
    border-right-color: #fff;
    border-width: 12px;
    margin-top: -12px;
}
.story-text::before {
    border-color: rgba(221, 221, 221, 0);
    border-right-color: #ddd;
    border-width: 13px; /* Slightly larger for border effect */
    margin-top: -13px;
}

@media (max-width: 768px) {
    .story-text::after, .story-text::before {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 100%;
        margin-top: 0;
        border-color: transparent transparent #fff transparent;
        border-width: 12px;
        transform: translateX(-50%);
    }
    .story-text::before {
        border-color: transparent transparent #ddd transparent;
        border-width: 13px;
    }
}

.story-text strong {
    font-size: 1.25rem;
    color: var(--c-text-gold);
    display: block;
    margin-top: 5px;
}

/* Founder Commitment Box */
.founder-commitment {
    background: #fff;
    padding: 60px 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin: 60px auto 0;
    max-width: 800px;
    overflow: hidden;
}
.founder-commitment::before {
    content: "\f10d"; /* quote icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: #f9f9f9;
    z-index: 0;
}
.founder-commitment-inner {
    position: relative;
    z-index: 1;
}

.commitment-message {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 2;
}
.commitment-signature {
    font-family: 'Zen Old Mincho', serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--c-text-main);
    border: 2px solid var(--c-text-gold);
    padding: 15px 30px;
    display: inline-block;
    background: #FFFEFA;
    position: relative;
}
.commitment-signature::before {
    content: "“";
    position: absolute;
    top: -15px; left: 10px;
    font-size: 2rem;
    color: var(--c-text-gold);
    background: #FFFEFA;
    padding: 0 5px;
    line-height: 1;
}
.commitment-signature::after {
    content: "”";
    position: absolute;
    bottom: -25px; right: 10px;
    font-size: 2rem;
    color: var(--c-text-gold);
    background: #FFFEFA;
    padding: 0 5px;
    line-height: 1;
}

/* Partner Logos */
.partners-grid-light {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}
.partner-logo {
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.3s;
}
.partner-logo img:hover { opacity: 0.8; }

/* Success Cases Slider */
.cases-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 40px; /* Space for arrows */
}

.cases-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
    padding-bottom: 20px; /* Hide scrollbar visual if any */
    scrollbar-width: none; /* Firefox */
}
.cases-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Card Style (Vertical, Image Top + Text Bottom) */
.case-card-slide {
    flex: 0 0 400px; /* Fixed width */
    height: 580px;   /* Fixed height */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    background: #000; /* Dark background for text area */
    display: flex;
    flex-direction: column;
}

.case-card-slide:hover {
    transform: translateY(-5px);
}

.case-card-slide__img {
    width: 100%;
    height: 55%; /* Top half for image */
    position: relative;
    overflow: hidden;
}

.case-card-slide__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-card-slide:hover .case-card-slide__img img {
    transform: scale(1.05);
}

.case-card-slide__content {
    position: relative;
    height: 45%; /* Bottom half for text */
    width: 100%;
    padding: 20px 25px;
    background: #000;
    color: #fff;
    z-index: 5;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically in the box */
}

.case-slide-title {
    font-size: 1.4rem; /* Increased from 1.1rem */
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: var(--font-serif);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.case-slide-title .text-sm {
    font-size: 0.9rem; /* Increased from 0.75rem */
    font-weight: normal;
    display: block;
    opacity: 1;
    margin-bottom: 5px;
    font-family: var(--font-sans);
    color: #f0f0f0;
}

.case-slide-price {
    font-size: 1.1rem; /* Increased from 0.9rem */
    font-weight: bold;
    color: var(--c-text-gold); /* Highlight price */
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    margin-bottom: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 10px;
}

.case-slide-desc {
    font-size: 1.0rem;
    line-height: 1.6;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.case-slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-slide-tags span {
    border: 1px solid rgba(255,255,255,0.6);
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 100px;
    opacity: 0.9;
    color: #fff;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.slider-arrow--prev {
    left: 0;
}

.slider-arrow--next {
    right: 0;
}

@media (max-width: 768px) {
    .cases-slider-wrapper {
        padding: 0; /* Full width on mobile */
    }
    .slider-arrow {
        display: none; /* Hide arrows on mobile, swipe is natural */
    }
    .cases-slider-track {
        padding: 0 20px 20px; /* Padding for mobile scroll */
    }
    .case-card-slide {
        flex: 0 0 85vw; /* Almost full width on mobile */
        height: 400px;
    }
}


/* Nature Blur Background Section */
.bg-nature {
    background: url('../images_webp/bg_nature_blur.webp') no-repeat center center;
    background-size: cover;
    color: #fff;
    position: relative;
}

/* Fixed Background Section (Parallax) */
.fixed-bg-section {
    background-image: url('../images_webp/fixed-bg.webp'); /* Temporary placeholder */
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    position: relative;
    height: 500px; /* Essential for visibility */
    width: 100%;
    margin: 0;
}

.bg-nature::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.2); /* Subtle overlay for text contrast */
}

.bg-nature > .l-container {
    position: relative;
    z-index: 2;
}

.bg-nature .section-title span.ja {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bg-nature .section-title span.en {
    color: rgba(255,255,255,0.8);
}

.bg-nature p {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Nakamura Juku */
.juku-content {
    background: #fff;
    padding: 50px; /* Increased padding */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #ebebeb;
}

.juku-grid {
    display: flex;
    gap: 50px; /* More breathing room */
    align-items: center;
}

.juku-text {
    flex: 1;
    text-align: left;
}

.juku-list {
    margin: 25px 0;
    padding: 0;
    list-style: none; /* Remove default bullets */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.juku-list li {
    font-weight: bold;
    color: var(--c-text-main);
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.juku-list li::before {
    content: '\f00c'; /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    background: var(--c-text-gold);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.juku-img {
    flex: 0 0 50%; /* Balanced 50% width */
}

.juku-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center; /* Align to right */
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .md-none { display: none !important; }
    
    .juku-content {
        padding: 30px 20px; /* Smaller horizontal padding */
    }
    .juku-grid {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .juku-img {
        flex: none;
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 16/9;
        margin: 0 auto;
    }
    .juku-list {
        align-items: flex-start; /* Left align items */
    }
    .juku-list li {
        width: 100%; /* Full width items on mobile */
        justify-content: flex-start;
    }
}

/* Success Cases Mobile Adjustments (Override) */
@media (max-width: 768px) {
    .cases-slider-wrapper {
        padding: 0; /* Full width wrapper */
        overflow: visible; /* Allow overflow to show peek */
    }
    
    .cases-slider-track {
        padding: 0 20px 0 20px; /* Left/right padding for spacing */
        gap: 15px; /* Space between cards */
    }

    .case-card-slide {
        flex: 0 0 280px; /* Reduced to 280px for better peek on small screens */
        max-width: 280px; /* Ensure it doesn't exceed */
        height: auto; 
        min-height: 500px;
        scroll-snap-align: start; /* Align to start */
    }
    
    .case-card-slide__img {
        height: 250px;
    }
    
    .case-card-slide__content {
        height: auto;
        flex: 1;
        padding: 20px;
    }
    
    .case-slide-title { font-size: 1.3rem; }
    .case-slide-desc { font-size: 0.95rem; }
}
