:root {
    --bg: #f6f4ef;
    --surface: #fffcf8;
    --border: #d7d2c8;
    --text: #1f2933;
    --text-muted: #5e6a73;
    --accent: #315c8a;
    --accent-hover: #264a70;
    --accent-crossword: #f57c00;
    --accent-crossword-deep: #e65100;
    --accent-crossword-soft: #f0e2cc;
    --grid-line: rgba(183, 121, 31, 0.12);
    --mode-meaning: #6c7e49;
    --mode-scramble: #1a73e8;
    --mode-search: #2e7d32;
    --mode-spelling: #8b7355;
    --mode-pdf: #315c8a;
}

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

body.lang-ko {
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

body {
    font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

img,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

/* ---- Layout (mobile-first) ---- */
.layout-shell,
.app-container {
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
    padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}

.page-main {
    flex: 1;
    padding-block: 1rem 2rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding-block: 0.625rem;
    padding-top: max(0.625rem, env(safe-area-inset-top));
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.logo-area img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.logo-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.logo-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.site-header nav {
    display: flex;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.375rem;
    font-size: 0.8125rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.site-header nav::-webkit-scrollbar {
    display: none;
}

.site-header nav a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.4rem 0.65rem;
    border-radius: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    white-space: nowrap;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.site-header nav a:hover,
.site-header nav a.nav-current {
    background: var(--surface);
    border-color: #c9c2b6;
    color: var(--text);
}

.site-header nav a.lang-switch {
    font-weight: 600;
    color: var(--accent);
    border-color: rgba(49, 92, 138, 0.35);
}

.page-hero-panel {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem 0.875rem 0.875rem;
    background: linear-gradient(165deg, #f0e2cc 0%, #f6f4ef 38%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.page-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.page-hero-panel > * {
    position: relative;
    z-index: 1;
}

.page-hero-top {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.page-hero-copy {
    min-width: 0;
}

.page-hero-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent-crossword-deep);
    background: rgba(255, 252, 248, 0.85);
    border: 1px solid rgba(230, 81, 0, 0.2);
    border-radius: 999px;
}

.page-hero h1 {
    font-size: 1.38rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    line-height: 1.28;
}

.page-hero-brand {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
}

.page-hero-tagline {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--accent-crossword-deep);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-hero-lead {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.55;
}

.screenshot-featured-hero {
    margin: 0 auto;
    width: min(100%, 11.5rem);
    border: 2px solid rgba(230, 81, 0, 0.35);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(31, 41, 51, 0.1);
}

.screenshot-featured-hero a {
    display: block;
    line-height: 0;
    background: #e8d4b8;
}

.screenshot-featured-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.daily-flow {
    margin-bottom: 14px;
    padding: 12px 12px 10px;
    background: rgba(255, 252, 248, 0.82);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.daily-flow-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.daily-flow-steps {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 2px 4px;
    list-style: none;
    counter-reset: flow-step;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.daily-flow-steps::-webkit-scrollbar {
    display: none;
}

.daily-flow-step {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 6px 10px 6px 7px;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 8px;
    line-height: 1.2;
    color: #fff;
}

.daily-flow-step::before {
    counter-increment: flow-step;
    content: counter(flow-step);
    display: inline-grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    font-size: 0.62rem;
    font-weight: 800;
    flex-shrink: 0;
}

.daily-flow-step-meaning { background: var(--mode-meaning); }
.daily-flow-step-spelling { background: var(--mode-spelling); }
.daily-flow-step-search { background: var(--mode-search); }
.daily-flow-step-scramble { background: var(--mode-scramble); }
.daily-flow-step-crossword { background: var(--accent-crossword); }

.page-hero-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.page-hero-feature {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 9px;
    min-height: 52px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    border-top: 3px solid var(--border);
}

.page-hero-feature-mode-crossword { border-top-color: var(--accent-crossword); }
.page-hero-feature-mode-search { border-top-color: var(--mode-search); }
.page-hero-feature-mode-scramble { border-top-color: var(--mode-scramble); }
.page-hero-feature-mode-spelling { border-top-color: var(--mode-spelling); }
.page-hero-feature-mode-meaning { border-top-color: var(--mode-meaning); }
.page-hero-feature-mode-pdf { border-top-color: var(--mode-pdf); }

.page-hero-feature-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.page-hero-feature-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.page-hero-meta li {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 5px 10px;
    background: rgba(255, 252, 248, 0.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    line-height: 1.3;
}

.store-cta-hero {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.store-cta-hero .store-links-prominent {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
}

.store-cta-hero .store-link-large {
    min-height: 3.25rem;
    width: 100%;
}

.screenshot-showcase {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.screenshot-showcase-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    width: 100%;
}

.screenshot-grid-showcase {
    margin-top: 0.25rem;
}

.screenshot-grid .screenshot-card figcaption {
    font-size: 0.75rem;
    padding: 0.5rem 0.375rem;
}

.page-intro {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.page-intro h1,
.legal-page h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-intro p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.page-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.store-cta {
    margin-bottom: 32px;
    padding: 22px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.store-cta:not(.store-cta-hero) {
    margin-bottom: 32px;
}

.store-cta-lead {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.store-links-prominent {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--text);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.store-link:hover {
    color: #fff;
    background: #263449;
}

.store-link-large {
    flex-direction: column;
    gap: 2px;
    min-height: 64px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
}

.store-link-label {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.store-link-action {
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.88;
}

.store-link-ios {
    background: #1a1a1a;
}

.store-link-ios:hover {
    background: #333;
}

.store-link-android {
    background: #0f8f54;
}

.store-link-android:hover {
    background: #0b7544;
}

.feature-list {
    margin-top: 4px;
}

.materials-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.materials-section .store-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.materials-section .store-links .store-link {
    width: 100%;
    text-align: center;
}

.materials-section h2 {
    font-size: 1.1rem;
}

.materials-modes,
.level-list {
    margin-top: 6px;
    margin-bottom: 14px;
}

.level-list li {
    margin-bottom: 3px;
}

.materials-use {
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.store-cta-article {
    margin-top: 18px;
    margin-bottom: 0;
}

.note-link {
    background: #2f2f2f;
}

.note-link:hover {
    background: #1a1a1a;
    color: #fff;
}

.support-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.support-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.support-section h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.support-section h3 {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 18px 0 8px;
    color: var(--text);
}

.support-section h2 + h3 {
    margin-top: 12px;
}

.support-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.support-section p:last-child {
    margin-bottom: 0;
}

.article-link-line {
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.seo-highlight {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 32px;
}

.screenshot-lead {
    margin-bottom: 16px;
}

.screenshot-card {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    border-top: 3px solid var(--border);
}

.screenshot-card-mode-daily { border-top-color: var(--accent); }
.screenshot-card-mode-meaning { border-top-color: var(--mode-meaning); }
.screenshot-card-mode-spelling { border-top-color: var(--mode-spelling); }
.screenshot-card-mode-search { border-top-color: var(--mode-search); }
.screenshot-card-mode-scramble { border-top-color: var(--mode-scramble); }
.screenshot-card-mode-pdf { border-top-color: var(--mode-pdf); }

.screenshot-card a {
    display: block;
    line-height: 0;
    background: #eef2f7;
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-card figcaption {
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.screenshot-card-featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.15);
}

.screenshot-card-featured figcaption {
    color: var(--accent);
}

.screenshot-group-label {
    margin: 28px 0 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.screenshot-group-label:first-of-type {
    margin-top: 0;
}

.screenshot-grid-secondary .screenshot-card {
    opacity: 0.92;
}

.screenshot-grid-secondary .screenshot-card figcaption {
    font-weight: 500;
}

.pdf-sample-block {
    margin-top: 20px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.pdf-sample-lead {
    margin-bottom: 14px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.pdf-sample-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

.pdf-sample-card {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.pdf-sample-card a {
    display: block;
    line-height: 0;
}

.pdf-sample-card img {
    width: 100%;
    height: auto;
    display: block;
}

.pdf-sample-card figcaption {
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.pdf-sample-meta {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plain-list {
    margin: 8px 0 12px 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.plain-list li {
    margin-bottom: 4px;
}

.plain-list li strong {
    color: var(--text);
    font-weight: 600;
}

/* Footer */
.site-footer,
footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding-block: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    margin-top: auto;
}

.footer-inner {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.footer-inner p {
    margin-bottom: 4px;
}

.footer-org {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.org-section {
    margin-block: 0 2.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
}

.org-section__lead {
    margin-bottom: 0.5rem;
}

.org-section__en {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.org-section__list {
    margin-top: 0;
}

.footer-inner a {
    text-decoration: none;
}

.footer-inner a:hover {
    text-decoration: underline;
}

.article-page h3 {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 18px 0 8px;
    color: var(--text);
}

.article-page .support-section h2 + h3 {
    margin-top: 12px;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 10px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.compare-table thead th {
    background: var(--surface);
    font-weight: 600;
    color: var(--text);
}

.compare-table tbody th {
    background: #f1f5f9;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.compare-table td {
    color: var(--text-muted);
}

.references-section .ref-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.ref-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.ref-list li {
    margin-bottom: 10px;
    padding-left: 0;
}

/* ---- Responsive (min-width only, mobile-first) ---- */

/* 360px+: 3列スクショ、DLボタン横並び */
@media (min-width: 22.5rem) {
    .screenshot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .store-cta-hero .store-links-prominent {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 480px+: PDFサンプル2列 */
@media (min-width: 30rem) {
    .pdf-sample-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 640px+: タブレット・小さめPC */
@media (min-width: 40rem) {
    .layout-shell,
    .app-container {
        max-width: 42rem;
        padding-inline: 1.25rem;
    }

    .page-main {
        padding-block: 1.75rem 3rem;
    }

    .site-header {
        position: static;
        padding-block: 0.875rem;
    }

    .site-header nav {
        gap: 1rem;
        overflow: visible;
    }

    .site-header nav a {
        min-height: auto;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .site-header nav a:hover,
    .site-header nav a.nav-current {
        background: transparent;
        border-color: transparent;
    }

    .page-hero-top {
        display: grid;
        grid-template-columns: 1fr 9.5rem;
        gap: 1.25rem;
        align-items: start;
    }

    .screenshot-featured-hero {
        margin: 0;
        width: 100%;
        transform: rotate(2deg);
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero-brand {
        display: inline;
        font-size: inherit;
        font-weight: 600;
        color: var(--text);
    }

    .page-hero-brand::before {
        content: "/ ";
        color: var(--text-muted);
        font-weight: 400;
    }

    .daily-flow-steps {
        flex-wrap: wrap;
        overflow: visible;
    }

    .page-hero-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .screenshot-grid-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-hero-panel {
        padding: 1.5rem 1.375rem 1.25rem;
    }

    .materials-section {
        padding: 1.25rem 1.375rem;
    }

    .materials-section .store-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .materials-section .store-link {
        width: auto;
        flex: 1 1 auto;
    }
}

/* 960px+: ワイド（記事ページなど） */
@media (min-width: 60rem) {
    .layout-shell,
    .app-container {
        max-width: 48rem;
    }

    .layout-shell-wide {
        max-width: 52rem;
    }

    .screenshot-grid-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---- Landing page v2 (conversion-focused) ---- */

.layout-shell-wide {
    max-width: 44rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-lead {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1rem 1.5rem;
    background: linear-gradient(165deg, #e8eef5 0%, var(--bg) 42%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.hero__copy {
    position: relative;
    z-index: 2;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(255, 252, 248, 0.9);
    border: 1px solid rgba(49, 92, 138, 0.2);
    border-radius: 999px;
}

.hero__title {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    color: var(--text);
}

.hero__lead {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.hero__badges li {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid rgba(49, 92, 138, 0.22);
    border-radius: 999px;
    line-height: 1.3;
}

.hero__badges li:not(:last-child)::after {
    content: none;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: min(100%, 13.5rem);
}

.hero__grid-bg {
    position: absolute;
    inset: -20% -10%;
    background-image:
        linear-gradient(rgba(49, 92, 138, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 92, 138, 0.07) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 24px;
    pointer-events: none;
}

.hero__visual img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(31, 41, 51, 0.18);
}

.store-cta-inline {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.store-links-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
    margin-top: 0;
}

.store-cta-band {
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: center;
}

/* Social proof */
.social-proof {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.social-proof__stores {
    margin-bottom: 1rem;
}

.social-proof__badge {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.persona-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.persona-card {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.persona-card__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.persona-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Two-way PDF */
.two-way {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.two-way__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.two-way__card {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.two-way__card--print {
    border-color: rgba(49, 92, 138, 0.35);
    background: linear-gradient(180deg, #f4f7fb 0%, var(--surface) 100%);
}

.two-way__icon {
    display: block;
    width: 2rem;
    height: 2rem;
    margin-bottom: 10px;
    border-radius: 8px;
    background: var(--accent);
    opacity: 0.9;
}

.two-way__icon--app {
    background: linear-gradient(135deg, var(--accent) 0%, #5f82a7 100%);
}

.two-way__icon--print {
    background: linear-gradient(135deg, #4d7a64 0%, #6b9a7e 100%);
}

.two-way__card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.two-way__card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.pdf-hero-sample {
    margin: 0 auto 1rem;
    max-width: 14rem;
    text-align: center;
}

.pdf-hero-sample img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(31, 41, 51, 0.14);
}

.pdf-hero-sample figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Flow pipeline */
.flow-visual {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.flow-pipeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow-pipeline__step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    border-left: 4px solid var(--border);
}

.flow-pipeline__step--meaning { border-left-color: var(--mode-meaning); }
.flow-pipeline__step--spelling { border-left-color: var(--mode-spelling); }
.flow-pipeline__step--scramble { border-left-color: var(--mode-scramble); }
.flow-pipeline__step--search { border-left-color: var(--mode-search); }
.flow-pipeline__step--crossword { border-left-color: var(--accent-crossword); }

.flow-pipeline__num {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--bg);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text);
    align-self: center;
}

.flow-pipeline__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.flow-pipeline__hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.flow-pipeline__arrow {
    width: 2px;
    height: 12px;
    margin: 0 auto;
    background: var(--border);
}

/* Store showcase */
.store-showcase {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.store-showcase__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.store-showcase__item {
    margin: 0;
    text-align: center;
}

.store-showcase__item img {
    width: min(100%, 13rem);
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.1);
}

.store-showcase__item figcaption {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* CTA ladder */
.cta-ladder {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.note-link-primary {
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
}

.cta-ladder__bridge {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.free-pdf-section .store-links-compact {
    margin-bottom: 0.5rem;
}

/* Demo CTA */
.demo-cta-primary {
    display: block;
    text-align: center;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.demo-cta-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.demo-cta-note {
    margin: 0.625rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.demo-cta-secondary {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    background: var(--surface);
}

.demo-cta-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.store-cta-inline .page-store-links {
    margin-top: 1rem;
}

.pdf-intro-cta {
    margin-top: 1rem;
}

.cta-ladder .cta-ladder__bridge {
    margin-top: 1.25rem;
}

/* FAQ */
.faq-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 14px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    font-weight: 400;
    color: var(--text-muted);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 16px 14px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Footer CTA */
.footer-cta {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.footer-cta__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

/* Nav: short labels on narrow screens */
.nav-label-full {
    display: none;
}

.nav-label-short {
    display: inline;
}

@media (min-width: 40rem) {
    .nav-label-full {
        display: inline;
    }

    .nav-label-short {
        display: none;
    }

    .store-links-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-way__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 40rem) {
    .persona-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero {
        display: grid;
        grid-template-columns: 1fr 11.5rem;
        gap: 1.5rem;
        align-items: start;
        padding: 1.75rem 1.5rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__visual {
        width: 100%;
        margin: 0;
    }

    .store-showcase__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .store-showcase__item img {
        width: 100%;
    }

    .flow-pipeline {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 6px;
    }

    .flow-pipeline__step {
        flex: 1 1 calc(18% - 6px);
        min-width: 7.5rem;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        padding: 12px 8px;
    }

    .flow-pipeline__num {
        grid-row: auto;
        margin: 0 auto 6px;
    }

    .flow-pipeline__arrow {
        width: 12px;
        height: auto;
        align-self: center;
        background: transparent;
        border-top: 2px solid var(--border);
        flex: 0 0 12px;
    }
}

@media (min-width: 60rem) {
    .hero {
        grid-template-columns: 1.1fr 12.5rem;
    }

    .hero__title {
        font-size: 2.15rem;
    }
}

/* ---- Mobile polish (default + max 639px tweaks) ---- */

.page-main {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

/* Header: 狭い画面ではロゴとナビを縦積み */
@media (max-width: 39.99rem) {
    .site-header__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .site-header nav {
        justify-content: flex-start;
        flex-wrap: wrap;
        overflow: visible;
        gap: 0.375rem;
    }

    .site-header nav a {
        min-height: 2.75rem;
        padding: 0.45rem 0.7rem;
        font-size: 0.78rem;
    }

    .logo-title {
        font-size: 0.88rem;
    }
}

/* ヒーロー: モバイルで読みやすく・画像を大きく */
@media (max-width: 39.99rem) {
    .hero {
        padding: 1rem 0.875rem 1.25rem;
        gap: 1rem;
    }

    .hero__title {
        font-size: 1.65rem;
        line-height: 1.35;
    }

    .hero__lead {
        font-size: 1rem;
    }

    .hero__badges {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hero__badges li {
        text-align: center;
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .hero__visual {
        width: min(72vw, 15.5rem);
    }

    .store-cta-inline .store-link-large {
        min-height: 3.5rem;
        font-size: 1rem;
    }
}

/* スクショ: 横スクロール（縦に3枚積まない） */
@media (max-width: 39.99rem) {
    .store-showcase__grid {
        display: flex;
        flex-direction: row;
        gap: 0.875rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.25rem 0.125rem 0.75rem;
        margin: 0 -0.125rem;
    }

    .store-showcase__grid::-webkit-scrollbar {
        display: none;
    }

    .store-showcase__item {
        flex: 0 0 min(72vw, 11.75rem);
        scroll-snap-align: center;
    }

    .store-showcase__item img {
        width: 100%;
    }

    .store-showcase::after {
        content: "左右にスワイプ";
        display: block;
        text-align: center;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--text-muted);
        margin-top: -0.25rem;
    }
}

/* フロー: ステップ間に余白 */
@media (max-width: 39.99rem) {
    .flow-pipeline {
        gap: 6px;
    }

    .flow-pipeline__step {
        padding: 12px 14px;
    }

    .flow-pipeline__name {
        font-size: 0.92rem;
    }

    .flow-pipeline__arrow {
        height: 8px;
    }
}

/* FAQ: 長い質問文の折り返し */
@media (max-width: 39.99rem) {
    .faq-item summary {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 14px;
        line-height: 1.45;
    }

    .faq-item summary::after {
        float: none;
        flex-shrink: 0;
        margin-top: 2px;
    }
}

/* セクション余白・本文サイズ */
@media (max-width: 39.99rem) {
    .section-title {
        font-size: 1.15rem;
    }

    .section-lead,
    .materials-section p,
    .support-section p {
        font-size: 0.94rem;
        line-height: 1.65;
    }

    .materials-section {
        padding: 1rem 0.875rem;
    }

    .persona-card p {
        font-size: 0.9rem;
    }

    .store-link {
        min-height: 48px;
        font-size: 0.92rem;
    }

    .note-link-primary {
        min-height: 48px;
        font-size: 0.92rem;
    }

    .pdf-hero-sample {
        max-width: min(72vw, 15.5rem);
    }
}

/* 画面下部固定 CTA（モバイルのみ） */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 39.99rem) {
    .page-store-links {
        display: none;
    }

    .page-main {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }

    .mobile-sticky-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        padding: 0.625rem max(0.75rem, env(safe-area-inset-left)) max(0.625rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-right));
        background: rgba(255, 252, 248, 0.96);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 20px rgba(31, 41, 51, 0.08);
        backdrop-filter: blur(8px);
    }

    .mobile-sticky-cta .store-link {
        min-height: 44px;
        padding: 10px 8px;
        font-size: 0.85rem;
        font-weight: 700;
    }
}

@media (min-width: 40rem) {
    .page-main {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .nav-label-full {
        display: inline;
    }

    .nav-label-short {
        display: none;
    }
}

/* ---- Free PDF downloads ---- */
.pdf-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pdf-breadcrumb a {
    text-decoration: none;
}

.pdf-breadcrumb [aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

.pdf-hub-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdf-hub-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pdf-hub-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(49, 92, 138, 0.08);
}

.pdf-hub-card__type {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.pdf-hub-card__level {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
}

.pdf-hub-card__meta {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pdf-pack-detail {
    margin-bottom: 1.5rem;
}

.pdf-sample-section {
    margin-bottom: 1.5rem;
}

.pdf-related-section {
    margin-bottom: 1.5rem;
}

.pdf-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdf-related-list a {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
}

.pdf-related-list a:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.pdf-page-intro {
    margin-bottom: 1.5rem;
}

.pdf-page-intro h1 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.pdf-page-intro .page-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pdf-page-intro p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.pdf-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 0;
    list-style: none;
}

.pdf-toc a {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
}

.pdf-toc a:hover {
    border-color: var(--accent);
}

.pdf-type-section {
    margin-bottom: 1.75rem;
}

.pdf-type-section > h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.pdf-packs-grid {
    display: grid;
    gap: 12px;
}

.pdf-pack-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.pdf-pack-card__head {
    margin-bottom: 12px;
}

.pdf-pack-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.pdf-pack-card__meta {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.pdf-pack-card__hint {
    font-size: 0.82rem;
    color: var(--text);
}

.pdf-download-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdf-download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.pdf-download-link:hover {
    color: var(--accent-hover);
    border-color: var(--accent);
    background: #eef3f8;
}

.pdf-usage-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.pdf-empty-note,
.pdf-error-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.pdf-error-note {
    color: #9a3412;
    border-color: #f0c9b8;
    background: #fff8f5;
}

@media (min-width: 36rem) {
    .pdf-download-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 48rem) {
    .pdf-packs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .pdf-pack-card--full {
        grid-column: 1 / -1;
    }
}

/* Contact form button */
.contact-form-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 0.65rem 1.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-form-btn:hover {
    background: var(--accent-hover);
    color: #fff;
    text-decoration: none;
}
