/* ============================================================
   VISIO AQUA — Responsive Stylesheet
   Breakpoints:
     lg : max-width 1200px
     md : max-width 900px

/* ── YouTube embed (16:9 responsive) ───────────────────────── */
.yt-embed-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.yt-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
/* ─────────────────────────────────────────────────────────── */
     sm : max-width 640px
     xs : max-width 430px
   ============================================================ */

/* ── 1. HEADER / NAV ────────────────────────────────────────── */

/* Fix the large fixed gap on header-row */
.header-row {
    gap: 0;
    justify-content: space-between;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-color-black-pale);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .header-row-right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        gap: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        padding: 16px 0;
        z-index: 100;
    }

    .header-row-right.is-open {
        display: flex;
    }

    .header-row-right .header-text-symbol {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 17px;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-row-right .header-text-symbol:last-child {
        border-bottom: none;
    }

    /* Ensure header-row is positioned to contain the dropdown */
    .header-row {
        position: relative;
    }

    .hero-container {
        margin-top: 68px;
    }
}

/* Hero height + title scaling */
@media (max-width: 900px) {
    .hero-slide {
        min-height: 60vh;
    }
    .hero-slide .header-img {
        height: 60vh;
        object-fit: cover;
        object-position: center;
    }
    .hero-title {
        font-size: 64px;
        letter-spacing: 4px;
    }
    .hero-title-aqua {
        font-size: 42px;
        letter-spacing: 8px;
    }
    .hero-subtitle {
        font-size: 15px;
        letter-spacing: 1px;
    }
    .hero-overlay {
        padding: 24px 32px 28px;
    }
    .hero-dots {
        bottom: 20px;
    }
}

@media (max-width: 640px) {
    .hero-slide {
        min-height: 70vh;
    }
    .hero-slide .header-img {
        height: 70vh;
        object-fit: cover;
        object-position: center;
    }
    .hero-title {
        font-size: 44px;
        letter-spacing: 2px;
    }
    .hero-title-aqua {
        font-size: 30px;
        letter-spacing: 6px;
    }
    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    .hero-overlay {
        padding: 16px 20px 20px;
        width: 85%;
    }
}


/* ── 2. ABOUT US ────────────────────────────────────────────── */

@media (max-width: 900px) {
    .about-us-content {
        flex-direction: column;
        align-items: center;
    }

    .about-us-left,
    .about-us-right {
        width: 100%;
        max-width: 560px;   /* 2列を中央寄せで小さく収める */
    }

    .group1 {
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .about-us-left,
    .about-us-right {
        max-width: 440px;
    }

    .group1 {
        max-width: 260px;
    }

    .about-us-title {
        font-size: 28px;
    }
}


/* ── 3. FEATURES ────────────────────────────────────────────── */

@media (max-width: 900px) {
    .features-top-row {
        flex-direction: column;
    }

    .features-left-col {
        width: 100%;
    }

    .feature-card-03 {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .feature-card {
        padding: 28px 20px;
    }

    .feature-card-04 {
        min-height: auto;
        padding: 28px 20px;
    }

    .feature-card-number {
        font-size: 20px;
    }

    .feature-card-heading {
        font-size: 17px;
    }
}


/* ── 4. FUNCTIONS ───────────────────────────────────────────── */

@media (max-width: 900px) {
    .functions-layout {
        flex-direction: column;
        gap: 24px;
    }

    .functions-phone-wrap {
        flex: unset;
        width: 140px;
        margin: 0 auto;
    }

    .functions-grid {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .functions-grid {
        flex-direction: column;
    }

    .col2 {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}


/* ── 5. PRODUCT DETAIL ──────────────────────────────────────── */

@media (max-width: 1100px) {
    .product-detail-title {
        padding-left: 0;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .product-detail-top {
        flex-direction: column;
    }

    .product-images {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .product-image-item {
        flex: 0 0 45%;
    }

    /* Make tables scroll horizontally on small screens */
    .product-detail {
        overflow-x: hidden;
    }

    .product-detail-top,
    .product-table-detail {
        max-width: 100%;
    }
}

/* Wrap tables in a scroll container via CSS — we target the table directly */
@media (max-width: 900px) {
    .product-table,
    .product-table-detail,
    .sensor-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .product-table thead,
    .product-table tbody,
    .product-table-detail thead,
    .product-table-detail tbody {
        display: table;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .product-detail {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* ── 6. SENSOR DETAIL ───────────────────────────────────────── */

@media (max-width: 900px) {
    .sensor-visuals {
        flex-wrap: wrap;
    }

    .sensor-col {
        flex: 0 0 calc(50% - 8px);
    }

    .sensor-bottom {
        flex-direction: column;
    }

    .sensor-table {
        min-width: unset;
        width: 100%;
    }

    .sensor-detail-inner {
        padding: 40px 20px;
    }
}

@media (max-width: 640px) {
    .sensor-col {
        flex: 0 0 100%;
    }

    .sensor-img {
        height: 180px;
    }
}


/* ── 7. SALES ───────────────────────────────────────────────── */

@media (max-width: 900px) {
    .sales-images {
        flex-direction: column;
        align-items: stretch;
    }

    .sales-image-item {
        flex: unset;
        width: 100%;
    }

    .sales-image-item:first-child {
        flex-direction: row;
    }

    .sales-experiments {
        flex-direction: column;
    }

    .sales-tara,
    .sales-unagi {
        flex-direction: column !important;
    }

    .sales-tara-left {
        flex: unset;
        width: 100%;
    }

    .sales-tara-imgs {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .sales-exp-imgs {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

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

    .sales-tara-imgs {
        flex-direction: column;
        align-items: center;
    }

    .sales-tara-imgs .sales-exp-arrow {
        transform: rotate(90deg);
    }
}


/* ── 8. EXPERIMENT ──────────────────────────────────────────── */

@media (max-width: 900px) {
    .exp-layout {
        flex-direction: column;
    }

    .exp-left-img {
        flex: unset;
        width: 100%;
        max-height: 320px;
        overflow: hidden;
    }

    .exp-main-photo {
        height: 320px;
    }

    .exp-card {
        flex-direction: column;
        gap: 12px;
        padding: 24px;
    }

    .exp-bottom-imgs {
        min-height: 180px;
    }

    .exp-bottom-img {
        min-height: 180px;
    }
}


/* ── 9. WASABI / SAUNA / SUIZOKUKAN ────────────────────────── */

@media (max-width: 900px) {
    .wasabi-sales-wrapper {
        padding: 8px 16px;
    }

    .wasabi-sales-section {
        min-height: 360px;
    }

    .wasabi-sales-content {
        padding: 40px 32px;
    }

    /* Sauna: expand panel to full width with darker overlay */
    .sauna-section {
        min-height: auto;
        background-position: center;
    }

    .sauna-right {
        width: 100%;
        margin-left: 0;
        padding: 48px 32px;
        background: rgba(0,0,0,0.52);
    }

    /* Suizokukan: stack vertically */
    .suizokukan-section {
        flex-direction: column;
        min-height: auto;
    }

    .suizokukan-right {
        position: relative;
        width: 100%;
        height: 260px;
    }

    .suizokukan-left {
        flex: unset;
        width: 100%;
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .wasabi-sales-content {
        padding: 32px 20px;
    }

    .wasabi-sales-title {
        font-size: 22px;
    }

    .sauna-right {
        padding: 32px 20px;
    }

    .sauna-title {
        font-size: 20px;
    }

    .suizokukan-title {
        font-size: 20px;
    }
}


/* ── 10. FOOTER / OUTLINE ───────────────────────────────────── */

@media (max-width: 900px) {
    .footer-row-bottom {
        flex-direction: column;
        gap: 12px;
    }

    .footer-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }

    .footer-col-bottom {
        gap: 24px;
        padding-top: 36px;
        padding-bottom: 36px;
        align-items: center;
    }

    .footer-s-300x129 {
        width: 160px;
    }
}

@media (max-width: 640px) {
    .footer-row .footer-text-symbol {
        font-size: 15px;
    }
}


/* ── 11. CONTACT FORM ───────────────────────────────────────── */

@media (max-width: 1100px) {
    .contact-layout {
        flex-direction: column;
    }

    .contact-policy {
        flex: unset;
        width: 100%;
        max-height: 300px;
    }
}

@media (max-width: 640px) {
    .contact-row {
        flex-direction: column;
    }

    .contact-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .contact-title {
        font-size: 22px;
    }

    .contact-zip-row {
        flex-wrap: wrap;
    }

    .contact-zip-input {
        width: 100%;
    }

    .contact-zip-btn {
        width: 100%;
        text-align: center;
    }
}


/* ── 12. GENERAL SECTION SPACING ────────────────────────────── */

@media (max-width: 900px) {
    body {
        gap: 32px;
    }

    .col1,
    .col2,
    .col5 {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .about-us {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .product-detail {
        padding-top: 48px;
    }

    .section1,
    .section2 {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 640px) {
    body {
        gap: 20px;
    }

    .col1,
    .col2,
    .col5 {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .section1,
    .section2 {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* ── 13. POPUP RESPONSIVE ───────────────────────────────────── */

@media (max-width: 640px) {
    .contact-popup {
        padding: 36px 24px 28px;
        margin: 0 12px;
    }
}
