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

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'YuGothic', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    background-color: #f5f5f5;
    background-image: 
        url('../images/side-bg.webp'),
        url('../images/side-bg.webp'), 
        url('../images/main-bg.webp');
    background-repeat: 
        repeat-y,
        repeat-y,
        repeat-y;
    background-position: 
        left top,
        right top,
        center top;
    background-size: 
        26px auto,
        26px auto,
        100% auto;
    line-height: 1.6;
    color: #262626;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Desktop Background Textures */
.desktop-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    display: none; /* Hidden by default, shown on desktop */
}

.desktop-background__texture {
    position: absolute;
    width: 1637px;
    height: 1157px;
    background-color: #f8f8f8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.desktop-background__texture--1 { top: -67px; left: -99px; }
.desktop-background__texture--2 { top: 1090px; left: -99px; }
.desktop-background__texture--3 { top: 2247px; left: -99px; }
.desktop-background__texture--4 { top: 3404px; left: -99px; }
.desktop-background__texture--5 { top: 4561px; left: -99px; }

/* Main Landing Page Container - 500px max-width */
.landing-page {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: #FFFCF5;
    position: relative;
    z-index: 1;
    min-height: auto;
}

/* Hero Section */
.hero-section {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section__image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Feature Section */
.feature-section {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-section__image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Content Section */
.content-section {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section__image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Info Section */
.info-section {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-section__image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* ===== TESTIMONIALS SECTION - SECTION 30 ===== */

/* CSS Custom Properties for Testimonials */
:root {
    --testimonials-bg: #fffcf5;
    --testimonials-card-bg: #ffffff;
    --testimonials-text-primary: #262626;
    --testimonials-text-secondary: #262626;
    --testimonials-border-radius: 12px;
    --testimonials-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-family-primary: 'YuGothic', 'Yu Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    --font-size-title: 48px;
    --font-size-testimonial-jp: 18px;
    --font-size-testimonial-en: 16px;
    --font-weight-title: 700;
    --font-weight-testimonial: 500;
    --line-height-testimonial: 1.3;
}

/* Main Container */
.testimonials-section {
    position: relative;
    width: 100%;
    max-width: 500px;
    background-color: var(--testimonials-bg);
    margin: 0 auto;
    font-family: var(--font-family-primary);
    overflow: hidden; /* Prevent decorative elements from extending beyond container */
    margin-top: 10px;
}

/* Bottom Decorations - normal section flow */
.testimonials-section__decorations {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -50px;
    width: calc(100% - 24px);
    min-height: 220px; /* Ensure space for larger decoration */
    position: relative;
}

.testimonials-section__decoration {
    object-fit: cover;
    flex-shrink: 0;
}

.testimonials-section__decoration--1 {
    /* 36-removebg-preview 2: positioned on the right */
    width: 192px; /* 200px * (480/500) = 192px */
    height: 160px; /* 167px * (480/500) = 160px */
    order: 2; /* Place on the right */
}

.testimonials-section__decoration--2 {
    /* 18-removebg-preview 1: positioned on the left */
    width: 249px; /* 259px * (480/500) = 249px */
    height: 208px; /* 217px * (480/500) = 208px */
    order: 1; /* Place on the left */
}

.testimonials-section__background-vector {
    /* testimonial vector: full width with padding */
    position: absolute;
    top: 80px;
    left: 121px;
    right: 5px;
    width: 380px; /* Full width minus left/right 5px padding */
    height: 75px;
}

.testimonials-section__background-vector img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to show full image */
    object-position: center; /* Center the image within container */
}

/* Header Section */
.testimonials-section__header {
    position: relative;
    z-index: 2;
    display: flex;
}

.testimonials-section__header-icon {
    flex-shrink: 0;
}

.testimonials-section__header-icon img {
    width: 193px; /* 201px * (480/500) = 193px */
    height: 162px; /* 169px * (480/500) = 162px */
    object-fit: contain;
}

.testimonials-section__title {
    /* Title positioning: adjusted for 480px layout */
    margin-top: 20px;
    margin-left: -20px;
    font-size: 46px; /* Slightly smaller for 480px layout */
    font-weight: var(--font-weight-title);
    color: var(--testimonials-text-primary);
    line-height: 1.2;
    white-space: nowrap;
}

/* Main Content Area */
.testimonials-section__content {
    position: relative;
    z-index: 2;
    /* Main frame positioning: adjusted for 480px layout */
    margin-top: 12px; /* Slightly reduced for 480px */
    margin-left: 12px;
    width: calc(100% - 24px); /* Full width minus left/right margins */
    max-width: 456px; /* 476px * (480/500) = 456px */
}

/* Testimonial Cards Container */
.testimonial-cards {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Space between cards: 4356-4340 = 16px, 4527-4511 = 16px */
}

/* Individual Testimonial Cards */
.testimonial-cards__item {
    width: 100%;
    max-width: 456px; /* Scaled down from 476px for 480px layout */
    min-height: 155px;
    box-shadow: var(--testimonials-shadow);
    display: flex;
    padding: 8px 6px 8px 6px;
    gap: 4px; /* Space between avatar and content */
    border-radius: 12px;
    border-top: 1px solid var(--Pri-Pri-3, #F68306);
    border-right: 3px solid var(--Pri-Pri-3, #F68306);
    border-bottom: 3px solid var(--Pri-Pri-3, #F68306);
    border-left: 1px solid var(--Pri-Pri-3, #F68306);
    background: var(--Neutral-white, #FFF);
}

/* Avatar Section */
.testimonial-cards__avatar {
    flex-shrink: 0;
    width: 90px;
    height: 110px;
}

.testimonial-cards__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px; /* Slight rounding for avatar */
}

/* Special case for third avatar (slightly smaller) */
.testimonial-cards__item:last-child .testimonial-cards__avatar {
    width: 86px;
}

/* Content Section */
.testimonial-cards__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 0;
}

.testimonial-cards__quote {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.testimonial-cards__quote-jp {
    font-size: var(--font-size-testimonial-jp);
    font-weight: var(--font-weight-testimonial);
    color: var(--testimonials-text-primary);
    line-height: var(--line-height-testimonial);
    margin-bottom: 8px; /* Gap between Japanese and English text */
    width: 100%; /* Responsive width */
    max-width: 355px; /* 370px * (480/500) = 355px */
    min-height: 84px;
    overflow-wrap: break-word;
}

.testimonial-cards__quote-en {
    font-size: var(--font-size-testimonial-en);
    font-weight: var(--font-weight-testimonial);
    color: var(--testimonials-text-secondary);
    line-height: var(--line-height-testimonial);
    width: 100%; /* Responsive width */
    max-width: 355px; /* 370px * (480/500) = 355px */
    min-height: 51px;
    overflow-wrap: break-word;
}

/* Accessibility Enhancements */
.testimonial-cards__item:focus-within {
    outline: 2px solid #007acc;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .testimonial-cards__item {
        border: 2px solid var(--testimonials-text-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .testimonial-cards__item {
        transition: none;
    }
}

/* Performance Optimizations */
.testimonials-section {
    contain: layout style paint;
}

.testimonial-cards__item {
    will-change: transform;
}

.testimonials-section__decoration {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Remove desktop/tablet breakpoints - Mobile First Only */


/* Introduction Section - Section 25/JP - Mobile First */
.introduction-section {
    position: relative;
    width: 100%;
    background-color: #fffcf5;
    /*padding: 16px 12px;*/
    overflow: hidden;
}

/* Background vector for introduction section */
.introduction-section__background-vector {
    position: absolute;
    top: 92px;
    left: 110px;
    right: 5px;
    padding: 0px 12px;
}

.introduction-section__background-vector img {
    width: 400px;
    height: 100%;
    object-fit: contain;
    object-position: center;
    
}

/* Mobile Header with businessman and title */
.introduction-section__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
}

.introduction-section__businessman {
    flex-shrink: 0;
}

.introduction-section__businessman img {
    width: 193px;
    height: 162px;
    object-fit: contain;
}

.introduction-section__title {
    margin-top: 8px;
    margin-left: -20px;
    font-size: 48px;
    font-weight: var(--font-weight-title);
    color: var(--testimonials-text-primary);
    line-height: 1.2;
    white-space: nowrap;
}

.introduction-section__success-icon {
    width: 38%;
    max-width: 180px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
}

.introduction-section__success-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Mobile main campus building image with success icon */
.introduction-section__main-image {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 476px;
    margin: 12px auto;
    overflow: visible;
    gap: 8px;
    padding : 0px 12px;
}

.introduction-section__main-image > img:first-child {
    width: 62%;
    max-width: 298px;
    height: auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 1;
}

/* Mobile content blocks with language tabs and text */
.introduction-section__content-block {
    position: relative;
    z-index: 2;
    padding : 0px 12px;
    /*margin-bottom: 24px;*/
}

.introduction-section__tabs {
    display: flex;
    /*margin-bottom: 12px;*/
    overflow: hidden;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.introduction-section__tab {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'YuGothic', sans-serif;
    font-weight: 500;
    border: 1px solid #EAECEE;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: black;
    text-align: center;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
}

.introduction-section__tab--active {
    font-size : 14 px;
    background-color: #ffffff;
    color: #E55A00;
    font-weight: 500;
    border-color: #F68306;
}

.introduction-section__tab:hover {
    background-color: rgba(229, 90, 0, 0.05);
}

.introduction-section__tab--active:hover {
    background-color: rgba(229, 90, 0, 0.05);
}

/* Text content box with rounded border */
.introduction-section__text-box {
    max-width: 476px;
    margin: 0 auto;
    padding: 6px;
    border: 1px solid #F68306;
    border-radius: 0 0 8px 8px;
    background-color: #ffffff;
}

.introduction-section__text {
    display: none;
}

.introduction-section__text--active {
    display: block;
}

.introduction-section__text p {
    font-size: 16px;
    font-family: 'YuGothic', sans-serif;
    font-weight: 500;
    color: #262626;
    line-height: 1.3;
    margin: 0;
    text-align: left;
}

/* Image row with family and BBQ */
.introduction-section__image-row {
    display: flex;
    gap: 8px;
    margin: 12px auto;
    align-items: center;
    width: 100%;
    max-width: 476px;
    padding: 0px 12px;
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    overflow: visible;
}

.introduction-section__family-image {
    width: 40%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
}

.introduction-section__family-image img {
    width: 100%;
    height: auto;
    display: block;
}

.introduction-section__bbq-image {
    width: 60%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
}

.introduction-section__bbq-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Bottom row with house and businessman */
.introduction-section__bottom-row {
    display: flex;
    align-items: end;
    justify-content: end;
    max-width: 476px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -17px;
}

.introduction-section__house-image {
    width: 50%;
}

.introduction-section__house-image img {
    width: 160px;
    height : 134px;
    height: auto;
    display: block;
}

.introduction-section__businessman-luggage {
    width:200px;
    height: 168px;
}

.introduction-section__businessman-luggage img {
    width: 100%;
    height: auto;
    display: block;
}

/* Horizontal Background Strip */
.introduction-section__logos {
    height: 28px;
    width: 100%; 
    background-image: url('../images/section-bt-bg.webp');
    background-repeat: no-repeat;
    background-size: cover; /* Cover the full screen width */
    background-position: center center;
}

/* FAQ Section - Section 31 - Mobile First */
.faq-section {
    width: 100%;
    min-height: 644px;
    padding: 20px 10px;
    position: relative;
}

/* FAQ Header - Standalone Row */
.faq-section__header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 4px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}

/* FAQ Content Container - Vertical title and accordion in columns */
.faq-section__content {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    gap: 20px;
    align-items: flex-start;
}

/* Left vertical title - Spans full accordion height */
.faq-section__vertical-title {
    flex-shrink: 0;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.faq-section__title-jp {
    font-size: 48px;
    font-weight: 700;
    font-family: 'YuGothic', sans-serif;
    color: #262626;
    line-height: 1.1;
    writing-mode: vertical-rl;
    text-orientation: upright;
    margin: 0;
    letter-spacing: 1.5rem;
}

.faq-section__icon {
    width: 129px;
    height: 108px;
    flex-shrink: 0;
}

.faq-section__icon img {
    width: 129px;
    height: 108px;
    object-fit: contain;
}

.faq-section__title-en {
    font-size: 48px;
    font-weight: 700;
    font-family: 'YuGothic', sans-serif;
    color: #262626;
    line-height: 1;
    margin: 0;
    padding: 10px 0;
}

/* FAQ Accordion - Mobile optimized, now direct flex item */
.faq-accordion {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 30px;
}

.faq-accordion__item {
    background-color: #ffffff;
    overflow: hidden;
}

.faq-accordion__question {
    width: 100%;
    padding: 14px 16px;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: background-color 0.3s ease;
    min-height: 44px; /* Touch-friendly */
}

.faq-accordion__question:hover {
    background-color: #f8f8f8;
}

.faq-accordion__item--active .faq-accordion__question {
    background-color: #ffffff;
}

.faq-accordion__question-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 8px;
}

.faq-accordion__question-jp {
    font-size: 16px;
    font-weight: 700;
    font-family: 'YuGothic', sans-serif;
    color: #262626;
    line-height: 1.4;
}

.faq-accordion__question-en {
    font-size: 16px;
    font-weight: 500;
    font-family: 'YuGothic', sans-serif;
    color: #8E8E8E;
    line-height: 1.3;
}

.faq-accordion__chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
    margin-left: 16px;
}

.faq-accordion__chevron::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-right: 3px solid #414141;
    border-bottom: 3px solid #414141;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.3s ease;
}

.faq-accordion__item--active .faq-accordion__chevron::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.faq-accordion__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #ffffff;
}

.faq-accordion__answer-content {
    padding: 0px 14px 16px;
    /*border-top: 1px solid #e0e0e0;*/
}
.faq-accordion__item a {
    text-decoration: underline;
    font-weight: 700;
    
}
.faq-accordion__answer-jp {
    font-size: 16px;
    font-weight: 500;
    font-family: 'YuGothic', sans-serif;
    color: #414141;
    line-height: 1.5;
    margin: 0 0 6px 0;
}

.faq-accordion__answer-en {
    font-size: 16px;
    font-weight: 500;
    font-family: 'YuGothic', sans-serif;
    color: #8E8E8E;
    line-height: 1.4;
    margin: 0;
}
/*Cheap Fee Section*/
.cheap-fee-section {
    padding-bottom: 60px;
}
/* Sticky Button */
.sticky-button {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 60px;
    z-index: 100;
    pointer-events: none;
}

.sticky-button__content {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    cursor: pointer;
}

.sticky-button__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sticky-button__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-button__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 44px;
    height: 44px;
    z-index: 2;
}

.sticky-button__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make icon white */
}

/* Small Mobile Layout - iPhone SE and smaller */
@media (max-width: 480px) {
    /* Image sections for small mobile */
    .hero-section,
    .feature-section,
    .content-section,
    .info-section {
        height: auto;
        min-height: 150px;
        padding: 0;
    }

    .testimonials-section {
        width: 100%;
        height: auto;
        padding: 1rem;
    }
    
    .testimonials-section__background-vector {
        top: 90px;
    }
    
    .testimonials-section__title {
        margin-left: -20px;
        margin-top: 1rem;
        font-size: 36px;
    }
    
    .testimonials-section__content {
        margin-left: 0;
        width: 100%;
    }
    
    .testimonial-cards__item {
        width: 100%;
        padding: 1rem;
    }
    
    .testimonial-cards__avatar {
        align-self: center;
        margin-bottom: 1rem;
    }
    
    .testimonial-cards__quote-jp,
    .testimonial-cards__quote-en {
        width: 100%;
        height: auto;
    }
    
    /* Adjust decoration sizing for mobile */
    .testimonials-section__decorations {
        min-height: 160px; /* Reduce height on mobile */
        margin-top: -35px;
        padding: 0 5px; /* Reduce side padding */
    }
    
    .testimonials-section__decoration--1 {
        width: 134px; /* Scale down further for mobile */
        height: 112px;
        transform: none; /* Remove transform, use direct sizing */
    }
    
    .testimonials-section__decoration--2 {
        width: 174px; /* Scale down further for mobile */
        height: 146px;
        transform: none; /* Remove transform, use direct sizing */
    }

    .introduction-section__background-vector {
        top: 95px;
    }
    .introduction-section {
        padding: 0px 10px;
    }

    .introduction-section__title {
        font-size: 36px;
        margin-top: 25px;
    }

    .introduction-section__tabs {
        max-width: 100%;
    }

    .introduction-section__tab {
        font-size: 12px;
        padding: 6px 10px;
        min-height: 30px;
    }

    .introduction-section__text-box {
        padding: 12px 10px;
    }

    .introduction-section__text p {
        font-size: 13px;
        line-height: 1.5;
    }

    .faq-section {
        height: auto;
        min-height: 380px;
        display: block;
    }

    .faq-section__vertical-title {
        width: 45px;
        min-height: 300px;
    }

    .faq-section__title-jp {
        font-size: 48px;
        letter-spacing: 1.5rem;
    }

    .faq-section__icon {
        width: 129px;
        height: 108px;
    }

    .faq-section__title-en {
        font-size: 36px;
    }

    .faq-accordion {
        gap: 10px;
    }

    .faq-accordion__question {
        padding: 12px 14px;
    }

    .faq-accordion__question-jp {
        font-size: 13px;
        line-height: 1.4;
    }

    .faq-accordion__question-en {
        font-size: 10px;
        line-height: 1.3;
    }

    .faq-accordion__answer-content {
        padding: 12px 14px;
    }

    .faq-accordion__answer-jp {
        font-size: 12px;
        line-height: 1.5;
    }

    .faq-accordion__answer-en {
        font-size: 10px;
        line-height: 1.4;
    }

    .cheap-fee-section {
        padding-bottom: 60px;
    }

    .sticky-button__icon {
        width: 36px;
        height: 36px;
    }
}


/* Print Styles */
/* ===== NAVIGATION MENU ===== */

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

a:visited {
	color: inherit;
	text-decoration: none;
}

a:hover,
a:focus,
a:active {
	color: inherit;
	text-decoration: none;
	background: none;
	outline: none;
}
/* Menu Button */
.nav-menu-button {
    position: fixed;
    top: 20px;
    right: calc(50% - 240px + 20px);
    width: 44px;
    height: 44px;
    background: #f2c724;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-menu-button:hover {
    background: #f68306;
}

.nav-menu-button__icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
    height: 16px;
}

.nav-menu-button__line {
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-menu-button__line:first-child {
    width: 100%;
}

.nav-menu-button__line:nth-child(2) {
    width: 80%;
    align-self: flex-end;
}

.nav-menu-button__line:last-child {
    width: 100%;
}

/* Menu button active state - keep hamburger lines visible */
.nav-menu-button[aria-expanded="true"] .nav-menu-button__line:first-child,
.nav-menu-button[aria-expanded="true"] .nav-menu-button__line:nth-child(2),
.nav-menu-button[aria-expanded="true"] .nav-menu-button__line:last-child {
    /* Keep original hamburger appearance when menu is open */
    transform: none;
    opacity: 1;
    width: inherit;
}

/* Menu Overlay */
.nav-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(134, 133, 133, 0.9);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-menu-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.nav-menu-overlay__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    width: 100%;
    max-width: 500px;
}

/* Custom scrollbar for menu content */
.nav-menu-overlay__content::-webkit-scrollbar {
    width: 6px;
}

.nav-menu-overlay__content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.nav-menu-overlay__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.nav-menu-overlay__content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.nav-menu-overlay__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-menu-overlay__item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.nav-menu-overlay[aria-hidden="false"] .nav-menu-overlay__item {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for menu items */
.nav-menu-overlay[aria-hidden="false"] .nav-menu-overlay__item:nth-child(1) { transition-delay: 0.1s; }
.nav-menu-overlay[aria-hidden="false"] .nav-menu-overlay__item:nth-child(2) { transition-delay: 0.2s; }
.nav-menu-overlay[aria-hidden="false"] .nav-menu-overlay__item:nth-child(3) { transition-delay: 0.3s; }
.nav-menu-overlay[aria-hidden="false"] .nav-menu-overlay__item:nth-child(4) { transition-delay: 0.4s; }
.nav-menu-overlay[aria-hidden="false"] .nav-menu-overlay__item:nth-child(5) { transition-delay: 0.5s; }

.nav-menu-overlay__link {
    display: block;
    padding: 8px 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    background: #feeec3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 300px;
}

.nav-menu-overlay__link:hover {
    background: #fffcf5;
    transform: scale(1.05);
}

/* Active menu item */
.nav-menu-overlay__item--active .nav-menu-overlay__link {
    background: rgba(246, 131, 6, 0.8);
    border-color: #F68306;
    color: white;
}

.nav-menu-overlay__item--active .nav-menu-overlay__link:hover {
    background: rgba(246, 131, 6, 0.9);
}

/* Close Button Inside Overlay */
.nav-menu-overlay__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-menu-overlay__close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.nav-menu-overlay__close-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    position: relative;
}

.nav-menu-overlay__close-line {
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.nav-menu-overlay__close-line:first-child {
    transform: rotate(45deg);
}

.nav-menu-overlay__close-line:last-child {
    transform: rotate(-45deg);
}

/* Mobile styles for menu */
@media (max-width: 480px) {
    .nav-menu-button {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        z-index: 100;
    }
    
    .nav-menu-overlay__close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .nav-menu-overlay__close-line {
        width: 14px;
    }
    
    .nav-menu-overlay__link {
        font-size: 16px;
        min-width: 250px;
        padding: 10px 25px;
    }
    
    .nav-menu-overlay__list {
        gap: 12px;
    }
}

@media print {
    .desktop-background {
        display: none;
    }
    
    .nav-menu-button,
    .nav-menu-overlay {
        display: none;
    }

    .sticky-button {
        display: none;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Placeholder style for lazy images */
img[data-src] {
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ================================================
   Contact Form Section Styles
   ================================================ */

.contact-form-section {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: #fffcf5;
    box-sizing: border-box;
}

/* Section Header */
.contact-header {
    position: relative;
    text-align: center;
    margin-bottom: 70px;
    z-index: 2;
}

/* Background decoration with full width minus padding */
.contact-bg-decoration {
    position: absolute;
    top: 35px;  /* Adjust vertical position as needed */
    left: 5px;
    right: 5px;
    height: auto;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.contact-bg-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.contact-title {
    font-family: YuGothic, 'Yu Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #262626;
    margin: 0;
    line-height: 1.2;
}

.contact-icon {
    position: absolute;
    top: 65px;
    right: 54px;
    width: 103px;
    height: 86px;
    object-fit: contain;
}

/* Contact Form Container */
.contact-form-container {
    padding: 40px 20px 0px;
    position: relative;
    z-index: 2;
}

.contact-form {
    max-width: 468px;
    margin: 0 auto;
    padding: 0 6px;
}

/* Form Fields */
.form-field {
    margin-bottom: 12px;
}

.field-label {
    display: block;
    margin-bottom: 4px;
    font-family: YuGothic, 'Yu Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #8e8e8e;
    line-height: 1.5;
}

.label-jp {
    margin-right: 4px;
    font-weight: 500;
}

.label-en {
    margin-left: 4px;
}

.required {
    color: #dd1f01;
    margin-left: 2px;
}

/* Form Inputs */
.form-input,
.form-textarea {
    width: 100%;
    height: 44px;
    padding: 6px 12px;
    border: none;
    border-radius: 12px;
    background-color: #ffffff;
    font-family: YuGothic, 'Yu Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #414141;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #8e8e8e;
    opacity: 1;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(34, 139, 34, 0.3);
}

.form-textarea {
    height: 150px;
    padding: 6px 12px;
    resize: vertical;
    min-height: 80px;
}

/* Select Dropdown */
.select-wrapper {
    position: relative;
    width: 100%;
}

.form-select {
    width: 100%;
    height: 44px;
    padding: 6px 12px;
    border: none;
    border-radius: 12px;
    background-color: #ffffff;
    font-family: YuGothic, 'Yu Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #414141;
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(34, 139, 34, 0.3);
}

.form-select option {
    padding: 8px;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    pointer-events: none;
    opacity: 0.6;
    color: #414141;
}

/* Error Messages */
.field-error {
    margin-top: 4px;
    font-size: 12px;
    color: #dd1f01;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.field-error.show {
    opacity: 1;
    transform: translateY(0);
}

/* Submit Button */
.form-submit {
    margin-top: 24px;
    text-align: center;
}

.contact-submit-btn {
    position: relative;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 214px;
    height: 45px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #262626;
    color: white;
    font-family: YuGothic, 'Yu Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.contact-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #E55A00;
    color: white;

}

.contact-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Spinner Animation */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Messages - Hidden since using JS alerts */
.form-messages {
    display: none;
}

/* Bottom Decoration */
.contact-bottom-decoration {
    display: flex;
    justify-content: center;
    padding-bottom: 80px;
}

.contact-bottom-image {
    width: 200px;
    height: 168px;
    object-fit: contain;
}

/* Checkbox Styles */
.form-field--checkbox {
    margin-bottom: 20px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    position: relative;
    padding-left: 24px;
    min-height: 16px;
    user-select: none;
}

.checkbox-custom {
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border: 1px solid #0F172A;
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s ease;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-checkbox:checked + .checkbox-label .checkbox-custom {
    background-color: #E55A00;
    border-color: #E55A00;
}

.form-checkbox:checked + .checkbox-label .checkbox-custom::after {
    opacity: 1;
}

.form-checkbox:focus + .checkbox-label .checkbox-custom {
    outline: 2px solid rgba(229, 90, 0, 0.2);
    outline-offset: 2px;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-text .label-jp {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: #262626;
    font-weight: 500;
}


.label-jp.change-weight-checkbox-text {
    font-weight: 400;
}

.checkbox-text .label-en {
    display: block;
    color: #8E8E8E;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}


.label-en.change-font-size-label-en {
    margin-left: 0px;
    font-size: 14px;
}

/* Privacy Policy Link Styles */
.privacy-link {
    color: #8E8E8E;
    text-decoration: underline;
    font-weight: 700;
    transition: opacity 0.2s ease;
}


.privacy-link.change-color-privacy-link {
    color: #262626;
}

.label-en  {
    color: #8E8E8E;
}

/* Form Validation States */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border: 2px solid #dd1f01;
    box-shadow: 0 2px 12px rgba(221, 31, 1, 0.2);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
    border: 2px solid #228b22;
    box-shadow: 0 2px 12px rgba(34, 139, 34, 0.2);
}

/* Disabled submit button style */
.contact-submit-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Contact Form Responsive Design */
@media (max-width: 768px) {
    .contact-form-section {
        min-height: auto;
    }
    
    .contact-title {
        font-size: 36px;
    }
    
    .contact-icon {
        top: 55px;
        right: 50px;
        width: 80px;
        height: 67px;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    .contact-bottom-image {
        width: 150px;
        height: 126px;
    }
}

@media (max-width: 480px) { 
    .contact-title {
        font-size: 28px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 14px;
    }
    
    .contact-submit-btn {
        width: 100%;
        font-size: 14px;
    }

    .contact-form-container {
        padding: 30px 20px 0px;
        position: relative;
        z-index: 2;
    }
}


/* Privacy Policy Popup Styles */
.privacy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.privacy-popup[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.privacy-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.privacy-popup__content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 600px;
    height: 600px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.privacy-popup[aria-hidden="false"] .privacy-popup__content {
    transform: scale(1);
}

.privacy-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    padding-left: 10px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.privacy-popup__4itle {
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.privacy-popup__close {
    background: none;
    border: none;
    font-size: 32px;
    color: #5a5d69;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.privacy-popup__close:hover {
    background-color: #f0f0f0;
    color: #020617;
}

.privacy-popup__close-icon {
    font-size: 32px;
    line-height: 1;
    color: #5a5d69
}

.privacy-popup__body {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.privacy-policy-content {
    line-height: 1.7;
}

.privacy-policy-section {
    margin-bottom: 24px;
}

.privacy-policy-section:last-child {
    margin-bottom: 0;
}

.privacy-policy-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 12px;
    padding-bottom: 8px;
}
.privacy-policy-section__title {
    display: flex;
    align-items: flex-start;
}
.privacy-policy-section__title .number-index {
    margin-right: 6px;
    flex-shrink: 0;
    font-family: Inter, sans-serif !important;
    color:#DD1F01 !important;
}

.privacy-policy-section__title .text-number-index {
    font-weight: 400;
    font-size: 16px;
    flex: 1;
    font-family: Noto Sans JP, sans-serif !important;
}

.privacy-policy-section__item__child {
    font-size: 16px;
    font-family: Noto Sans JP, sans-serif !important;
}

.privacy-popup__title {
    font-family: Inter, sans-serif !important;
    padding-left: 0;
    margin-left: 0;
}

.privacy-policy-section p {
    font-size: 14px;
    color: #262626;
    margin-bottom: 12px;
}

.privacy-policy-section ol {
    margin-left: 40px;
    margin-bottom: 12px;
}

.privacy-policy-section li {
    font-size: 16px;
    color: #262626;
    margin-bottom: 8px;
}

.privacy-policy-section strong {
    color: #333;
    font-weight: bold;
}

.privacy-link:hover {
    color: #dd1f01;
    text-decoration: none;
    opacity: 0.7;
}

/* Mobile responsiveness for popup */
@media (max-width: 768px) {
    .privacy-popup__content {
        width: 95%;
        max-height: 600px;
        height: 600px;
    }
    
    .privacy-popup__header {
        padding: 16px 20px;
    }
    
    .privacy-popup__title {
        font-size: 18px;
    }
    
    .privacy-popup__body {
        padding: 20px;
    }
    
    .privacy-policy-section h3 {
        font-size: 15px;
    }
    
    .privacy-policy-section p,
    .privacy-policy-section li {
        font-size: 13px;
    }
}

/* Very small screens - reduce height slightly */
@media (max-width: 480px) {
    .privacy-popup__content {
        max-height: 500px;
        height: 500px;
    }
}

/* Language-specific content visibility */
.privacy-policy-section--en {
    display: none !important;
}

.privacy-policy-section--jp {
    display: block !important;
}

/* When English is active */
.privacy-popup[data-lang="en"] .privacy-policy-section--en {
    display: block !important;
}

.privacy-popup[data-lang="en"] .privacy-policy-section--jp {
    display: none !important;
}


