/* ==========================================================================
   NextReserve — 商用サイト
   配色は製品本体（管理画面 / 予約ページ）と同じモノクロ基調で統一している。
   ========================================================================== */

:root {
    --ink: #1a1a1a;
    --ink-soft: #333333;
    --text: #374151;
    --muted: #6b7280;
    --muted-light: #9ca3af;
    --line: #e5e7eb;
    --line-soft: #f1f3f5;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --surface-tint: #f4f6f8;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
    --maxw: 1140px;
    --header-h: 72px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans',
        'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.9;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    /* HTMLのwidth/height属性でレイアウトシフトは防ぎつつ、実寸はCSS側で決める。
       height:auto を入れないと height 属性がそのまま効いて縦に伸びる。 */
    height: auto;
    display: block;
}

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

.container {
    width: min(100% - 40px, var(--maxw));
    margin-inline: auto;
}

/* ---------- Typography ---------- */

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--muted-light);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.section-lead {
    margin-top: 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 2;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

section {
    padding: 92px 0;
}

section.tint {
    background: var(--surface-alt);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 6px 18px rgba(26, 26, 26, 0.24);
}

.btn-primary:hover {
    background: var(--ink-soft);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 26, 26, 0.3);
}

.btn-outline {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}

.btn-outline:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13.5px;
}

.btn-lg {
    padding: 17px 38px;
    font-size: 16px;
}

/* ---------- Header ---------- */

#header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

#header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.brand span {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.nav a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.15s ease;
}

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

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    font-size: 17px;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
    padding: 76px 0 84px;
    background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 78%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 画像を独立したグリッドアイテムにしておくと、スマホで見出しの直後に差し込める */
    grid-template-areas:
        'title visual'
        'copy  visual';
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    align-items: start;
}

.hero-title {
    grid-area: title;
}

.hero-copy {
    grid-area: copy;
}

.hero-visual {
    grid-area: visual;
    align-self: center;
}

.hero h1 {
    font-size: clamp(30px, 4.6vw, 50px);
    font-weight: 700;
    line-height: 1.36;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.hero h1 .accent {
    background: linear-gradient(transparent 68%, #e5e7eb 68%);
    padding: 0 2px;
}

.hero-lead {
    margin-top: 26px;
    font-size: 16px;
    line-height: 2.05;
    color: var(--muted);
    max-width: 34em;
}

.hero-cta {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-points {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.hero-points i {
    color: var(--ink);
    font-size: 13px;
}

.hero-visual img {
    /* カラム幅より少し大きく描いて右側にはみ出させる（.hero が overflow:hidden で受ける） */
    width: 132%;
    max-width: none;
    filter: drop-shadow(0 24px 50px rgba(15, 23, 42, 0.12));
}

/* ---------- Feature cards ---------- */

.cards {
    display: grid;
    gap: 24px;
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #d7dce2;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 22px;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.95;
}

/* Compact feature grid */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-item {
    background: var(--surface);
    padding: 30px 28px;
    transition: background-color 0.15s ease;
}

.feature-item:hover {
    background: var(--surface-alt);
}

.feature-item i {
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 16px;
    display: block;
}

.feature-item h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.6;
}

.feature-item p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.9;
}

/* ---------- Screens (alternating rows) ---------- */

.screen-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 88px;
}

.screen-row:last-child {
    margin-bottom: 0;
}

.screen-row.reverse .screen-copy {
    order: 2;
}

.screen-copy h3 {
    font-size: clamp(20px, 2.6vw, 27px);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.55;
    margin-bottom: 18px;
}

.screen-copy p {
    color: var(--muted);
    line-height: 2.05;
    font-size: 14.5px;
}

.screen-copy ul {
    margin-top: 22px;
    list-style: none;
    display: grid;
    gap: 12px;
}

.screen-copy li {
    display: flex;
    gap: 11px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
}

.screen-copy li i {
    color: var(--ink);
    font-size: 13px;
    margin-top: 6px;
    flex-shrink: 0;
}

.screen-shot {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.screen-shot.phone {
    max-width: 300px;
    margin-inline: auto;
    border-radius: 26px;
    border-width: 8px;
    border-color: var(--ink);
}

/* ---------- Booking flow (4 phone screenshots) ---------- */

.flow-shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.flow-shot {
    margin: 0;
}

.flow-phone {
    border-radius: 24px;
    border: 7px solid var(--ink);
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow);
    line-height: 0;
}

.flow-phone img {
    border-radius: 17px;
}

.flow-shot figcaption {
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.9;
}

.flow-shot figcaption strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ---------- Use cases ---------- */

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tab {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab:hover {
    border-color: var(--ink);
}

.tab.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fade 0.25s ease;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.usecase {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 44px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px;
}

.usecase h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.6;
}

.usecase p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 2;
}

.usecase-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.usecase-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    padding: 13px 16px;
    background: var(--surface-alt);
    border-radius: 10px;
    line-height: 1.75;
}

.usecase-list li i {
    color: var(--ink);
    font-size: 12px;
    margin-top: 6px;
}

/* ---------- Case studies (導入事例) ---------- */

.cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.case {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 0 0 32px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* 写真以外の中身に左右の余白を戻す */
.case > *:not(.case-photo) {
    margin-left: 28px;
    margin-right: 28px;
}

.case-photo {
    margin: 0 0 26px;
    line-height: 0;
    background: var(--surface-alt);
}

.case-photo img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.case:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.case-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    background: var(--ink);
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.03em;
}

.case-head h3 {
    margin-top: 14px;
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.case-place {
    font-size: 12.5px;
    color: var(--muted-light);
    margin-top: 2px;
}

.case-spec {
    margin-top: 22px;
    margin-bottom: 22px;
    padding: 18px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    display: grid;
    gap: 10px;
}

.case-spec > div {
    display: grid;
    grid-template-columns: 5.5em 1fr;
    gap: 10px;
    align-items: start;
}

.case-spec dt {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted-light);
    padding-top: 3px;
}

.case-spec dd {
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.7;
}

.case-body {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 2;
    flex: 1;
}

.case-body strong {
    color: var(--ink);
}

.case-link {
    margin-top: 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    align-self: flex-start;
    transition: border-color 0.15s ease;
}

.case-link:hover {
    border-color: var(--ink);
}

.case-link i {
    font-size: 11px;
    color: var(--muted-light);
}

/* ---------- Capability (対応状況) ---------- */

.cap-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.cap-group {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    height: 100%;
}

.cap-group-ask {
    border-style: dashed;
    border-color: #cbd5e1;
    background: transparent;
}

.cap-head {
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
}

.cap-head p {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.8;
}

.cap-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.03em;
}

.cap-badge-on {
    background: var(--ink);
    color: #fff;
}

.cap-badge-config {
    background: #e5e7eb;
    color: var(--ink);
}

.cap-badge-ask {
    background: transparent;
    color: var(--muted);
    border: 1px dashed #cbd5e1;
}

.cap-group ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.cap-group li {
    display: flex;
    gap: 11px;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text);
}

.cap-group li i {
    font-size: 12px;
    color: var(--ink);
    margin-top: 6px;
    flex-shrink: 0;
}

.cap-group-ask li {
    color: var(--muted);
}

.cap-group-ask li i {
    color: var(--muted-light);
}

.cap-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.85;
}

.cap-lead-out {
    margin-top: 44px;
    text-align: center;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--ink);
    line-height: 2.1;
    max-width: 40em;
    margin-inline: auto;
}

/* ---------- Steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    counter-reset: step;
}

.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.step h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.step p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.9;
}

/* ---------- Pricing ---------- */

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    display: flex;
    flex-direction: column;
}

.plan.featured {
    border-color: var(--ink);
    border-width: 2px;
    box-shadow: var(--shadow);
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.plan h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
}

.plan-for {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

.plan-price {
    margin: 24px 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-soft);
}

.plan-price strong {
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.plan-price small {
    font-size: 13px;
    color: var(--muted);
    margin-left: 4px;
}

.plan-price .tbd {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface-tint);
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 8px 14px;
}

.plan ul {
    list-style: none;
    display: grid;
    gap: 11px;
    margin-bottom: 28px;
    flex: 1;
}

.plan li {
    display: flex;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.8;
}

.plan li i {
    color: var(--ink);
    font-size: 12px;
    margin-top: 6px;
    flex-shrink: 0;
}

.plan li.off {
    color: var(--muted-light);
}

.plan li.off i {
    color: var(--muted-light);
}

.plan .btn {
    width: 100%;
}

.price-note {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 800px;
    margin-inline: auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 22px 26px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-family: inherit;
    line-height: 1.7;
}

.faq-q .mark {
    font-weight: 700;
    color: var(--muted-light);
    flex-shrink: 0;
}

.faq-q .chev {
    margin-left: auto;
    color: var(--muted-light);
    font-size: 14px;
    transition: transform 0.22s ease;
    margin-top: 4px;
}

.faq-item.open .faq-q .chev {
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    padding: 0 26px 24px 62px;
    font-size: 14px;
    color: var(--muted);
    line-height: 2;
}

.faq-item.open .faq-a {
    display: block;
}

/* ---------- CTA ---------- */

.cta {
    background: var(--ink);
    color: #fff;
    text-align: center;
    padding: 86px 0;
}

.cta h2 {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 18px;
}

.cta p {
    color: rgba(255, 255, 255, 0.66);
    margin-bottom: 36px;
    font-size: 15px;
}

.cta .btn-primary {
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}

.cta .btn-primary:hover {
    background: #f1f3f5;
}

.cta .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta .btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */

#footer {
    background: var(--surface-alt);
    border-top: 1px solid var(--line);
    padding: 60px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.95;
    max-width: 30em;
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-col a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--muted-light);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    section {
        padding: 68px 0;
    }

    .screen-row,
    .usecase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* ファーストビューに製品画像を入れるため、見出しの直後に画像を置く */
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            'title'
            'visual'
            'copy';
        grid-template-rows: auto auto auto;
        row-gap: 26px;
    }

    .hero-copy .hero-lead {
        margin-top: 0;
    }

    .screen-row.reverse .screen-copy {
        order: 0;
    }

    .hero-visual img {
        width: 100%;
    }

    .cards-3,
    .feature-grid,
    .plans,
    .flow-shots,
    .cap-groups,
    .cases {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 8px 20px 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line-soft);
        font-size: 14.5px;
    }

    .nav .btn {
        margin-top: 14px;
        justify-content: center;
    }

    .nav-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14.5px;
    }

    /* 見出しの改行は幅の広い画面用。狭い画面では自然に流す */
    .hero h1 br,
    .section-title br,
    .card h3 br,
    .screen-copy h3 br,
    .usecase h3 br,
    .cta h2 br {
        display: none;
    }

    .cards-3,
    .cards-2,
    .feature-grid,
    .plans,
    .steps,
    .footer-grid,
    .cap-groups,
    .cases {
        grid-template-columns: 1fr;
    }

    .flow-shots {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin-inline: auto;
        gap: 40px;
    }

    .usecase,
    .card {
        padding: 28px 22px;
    }

    .hero {
        padding: 34px 0 56px;
    }

    .hero-grid {
        row-gap: 22px;
    }

    .hero-lead {
        margin-top: 0;
        font-size: 15px;
        line-height: 1.95;
    }

    .hero-cta {
        margin-top: 26px;
    }

    .hero-points {
        margin-top: 26px;
    }

    .hero-cta .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .faq-a {
        padding-left: 26px;
    }
}
