@charset "UTF-8";

html {
    font-size: 16px;
}
h2 {
    font-size: 1.8rem;
}

@media (max-width: 600px) {
    .btn {padding: 18px 22px; }
    .btn-icon { width: 28px; height: 28px; }
    .sp-only { display: inline;}
    .pc-only { display: none;}
    .btn { font-size: 1.11rem; }
  }

/* hero */
@media (max-width: 600px) {
    .hero { padding-top: calc(50px + 72px); }
    .hero h1 .badge { font-size: 13px; border-radius: 20px; padding: 6px 16px; }
  }

/* manga */
@media (max-width: 640px) {
    .lightbox .navbtn { width: 40px; height: 40px; font-size: 1.2rem; }
    .filmstrip figure { flex-basis: 240px; }
  }

/* flow */
@media (max-width: 860px) {
    .flow .wrap {
        display: block;
    }
    .flow h2 {
        margin-bottom: 40px;
        text-align: center;
        white-space: normal;
    }
    .flow ol {
        max-width: 640px;
        margin: 0 auto;
    }
}

/* comparison table */
@media (max-width: 640px) {
    .diff table {
        width: 680px;
        min-width: 680px;
        table-layout: fixed;
    }
    .diff th:first-child,
    .diff td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        width: 170px;
        box-shadow: 2px 0 4px rgba(15, 23, 42, .08);
    }
    .diff th:first-child {
        z-index: 2;
        background: var(--navy);
    }
    .diff .table-hint {
        display: block;
        text-align: center;
        font-size: .875rem;
        color: #94a3b8;
        margin-top: 8px;
    }
}

/* cta */
@media (max-width: 640px) {
    .hero h1 { font-size: 1.6rem; }
    .hero .mission { font-size: 1rem; }
    .btn.secondary { margin: 12px 0 0; }
    .diagnosis-form { padding: 20px 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field.full { grid-column: auto; }
    .confirm-list > div { grid-template-columns: 1fr; gap: 2px; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions .btn,
    .form-actions input.wpcf7-submit { width: 100%; text-align: center; }
    section { padding: 48px 0; }
  }

@media (max-width: 1040px) {
    .site-header {
        padding-top: 12px;
    }
    .site-header-inner {
        height: 60px;
        padding: 0 16px;
        border-radius: 16px;
        width: 96%;
    }
    .hero {
        margin-top: -72px;
        padding-top: calc(80px + 72px);
    }
    .site-logo img {
        height: 40px;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .nav-toggle-lines,
    .nav-toggle-lines::before,
    .nav-toggle-lines::after {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: var(--navy);
        position: relative;
        transition: transform .2s, top .2s, background .2s;
    }
    .nav-toggle-lines::before,
    .nav-toggle-lines::after {
        content: "";
        position: absolute;
        left: 0;
    }
    .nav-toggle-lines::before { top: -7px; }
    .nav-toggle-lines::after { top: 7px; }
    .site-header.is-open .nav-toggle-lines {
        background: transparent;
    }
    .site-header.is-open .nav-toggle-lines::before {
        top: 0;
        transform: rotate(45deg);
    }
    .site-header.is-open .nav-toggle-lines::after {
        top: 0;
        transform: rotate(-45deg);
    }
    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px 16px 18px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 16px 28px rgba(15, 23, 42, .12);
    }
    .site-header.is-open .site-nav {
        display: flex;
    }
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .site-nav ul a {
        display: block;
        padding: 14px 8px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 15px;
    }
    .nav-cta {
        justify-content: center;
        margin: 16px 8px 0;
        padding: 14px 18px;
    }
}

@media (max-width: 600px) {
    .hero { padding-top: calc(50px + 72px); }
}