:root {
    --surface: #f8f9ff;
    --surface-low: #eff4ff;
    --surface-container: #ffffff;
    --surface-high: #dee9fc;
    --surface-highest: #d9e3f6;
    --text: #121c2a;
    --muted: #47566b;
    --outline: #bccbdf;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --secondary: #455f87;
    --navy: #27313f;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(18, 28, 42, 0.08);
    --radius: 16px;
    --radius-sm: 8px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.boki-site {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family: "Noto Sans JP", system-ui, sans-serif;
    line-height: 1.7;
}

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

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

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(188, 203, 223, 0.55);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    width: min(calc(100% - 48px), var(--container));
    height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-brand img {
    display: block;
    width: auto;
    height: 64px;
    max-width: 320px;
    object-fit: contain;
}

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

.site-nav a,
.mobile-nav a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #475569;
    font-weight: 700;
    font-size: 15px;
}

.site-nav a:hover,
.site-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--primary);
    background: #eff6ff;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: #2563eb;
    color: var(--white);
}

.button--primary:hover {
    background: var(--primary-hover);
}

.button--accent {
    background: var(--accent);
    color: var(--white);
}

.button--accent:hover {
    background: var(--accent-hover);
}

.button--ghost {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.button--light {
    background: var(--white);
    color: var(--primary);
}

.menu-toggle,
.mobile-nav {
    display: none;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--primary);
}

.hero {
    min-height: 690px;
    padding: 142px 0 96px;
    overflow: hidden;
}

.page-hero {
    padding: 148px 0 80px;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
    gap: 56px;
    align-items: center;
}

.hero__content {
    max-width: 620px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-family: Manrope, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 600px;
    font-size: clamp(34px, 4.7vw, 48px);
    line-height: 1.38;
}

.hero h1 span {
    display: block;
    color: #2563eb;
}

h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: 0;
}

.lead {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    /* 固定ヘッダーに隠れないよう、アンカー遷移時に余白を確保 */
    scroll-margin-top: 96px;
}

.hero__actions .store-badges,
.section-cta--soft .store-badges {
    margin-top: 0;
}

.store-badges__link {
    display: inline-flex;
}

.store-badge {
    display: block;
    width: auto;
}

/* Appleバッジは画像全体が黒い角丸だが、Google Playの公式バッジは画像の上下に余白があり
   黒い部分は高さの76%（250pxのうち190px）しかない。見た目の高さを44pxで揃えるため、
   Google Play側は 44 / 0.76 ≒ 58px を指定する（画像は改変せず等比表示） */
.store-badge--apple {
    height: 44px;
}

.store-badge--google {
    height: 58px;
}

.nowrap {
    white-space: nowrap;
}

/* ストアバッジに添える料金の補足文（ファーストビュー・各CTA共通） */
.download-note {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 14px 0 0;
    text-wrap: pretty;
}

.download-note__main {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.download-note__sub {
    color: var(--muted);
    font-size: 14px;
}

/* 制作者の資格・実務経験の表示。本文の引用ブロックと同じ罫線パターンに揃える */
.hero__trust {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 26px 0 0;
    padding: 14px 16px;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(255, 255, 255, 0.78);
    text-wrap: pretty;
    line-break: strict;
    word-break: auto-phrase;
}

.hero__trust-main {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.hero__trust-sub {
    color: var(--muted);
    font-size: 14px;
}

.release-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 38px;
    padding: 6px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.72);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.button--with-icon {
    gap: 8px;
}

.button--with-icon span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 1;
}

.hero__device {
    position: relative;
    justify-self: center;
    width: min(100%, 280px);
    padding: 6px;
    border-radius: 42px;
    background: linear-gradient(150deg, #2b3446 0%, #12161f 52%, #262f3f 100%);
    box-shadow:
        0 30px 56px rgba(15, 23, 42, 0.38),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}

.hero__device-island {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 82px;
    height: 24px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #05070c;
    z-index: 2;
}

.hero__device-screen {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 36px;
}

.phone-mock {
    position: relative;
    width: min(100%, 300px);
    justify-self: center;
    padding: 11px;
    border-radius: 48px;
    background: linear-gradient(150deg, #2b3446 0%, #12161f 52%, #262f3f 100%);
    box-shadow:
        0 36px 64px rgba(15, 23, 42, 0.40),
        inset 0 0 0 2px rgba(255, 255, 255, 0.07);
}

.phone-mock::before {
    content: "";
    position: absolute;
    inset: -80px -84px auto auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    z-index: -1;
}

.phone-mock__speaker {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 94px;
    height: 27px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #05070c;
    z-index: 3;
}

.phone-mock__screen {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 38px;
    background: #fff;
    overflow: hidden;
}

.phone-mock__toast {
    position: absolute;
    top: 72px;
    right: -48px;
    width: 150px;
    padding: 12px 14px 12px 42px;
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(18, 28, 42, 0.11);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    z-index: 1;
}

.phone-mock__toast::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 17px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--accent);
}

.section {
    padding: 80px 0;
}

.section-band {
    background: var(--surface-low);
}

.section-band--soft {
    background:
        radial-gradient(circle at 80% 22%, rgba(191, 219, 254, 0.58) 0, rgba(191, 219, 254, 0) 32%),
        linear-gradient(110deg, #f8fbff 0%, #edf3ff 46%, #e7efff 100%);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 32px;
    text-align: center;
}

.section-heading--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.card-grid {
    display: grid;
    gap: 24px;
}

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

.card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.card,
.content-card,
.sidebar-card,
.post-card,
.app-panel {
    background: var(--surface-container);
    border: 1px solid rgba(188, 203, 223, 0.75);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.card p,
.content-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.card a,
.content-card a {
    display: inline-flex;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
}

.card a {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 16px;
}

.section-heading--left {
    margin-left: 0;
    text-align: left;
}

.subject-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

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

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

.glossary-intro {
    max-width: 920px;
    margin-bottom: 28px;
}

.glossary-intro h2 {
    margin-bottom: 12px;
    font-size: 30px;
}

.glossary-intro p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.glossary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.glossary-nav a {
    padding: 10px 16px;
    border: 1px solid rgba(188, 203, 223, 0.9);
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    font-weight: 800;
}

.glossary-nav a:hover {
    border-color: rgba(37, 99, 235, 0.6);
    color: var(--primary);
}

.glossary-section + .glossary-section {
    margin-top: 56px;
}

.topic-grid article,
.glossary-grid article,
.subject-side {
    padding: 24px;
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.topic-grid--deep article {
    position: relative;
    overflow: hidden;
    min-height: 214px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.topic-grid--deep article:hover,
.topic-grid--deep article:focus-within {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.topic-grid--deep article > p {
    margin-bottom: 0;
}

.topic-detail {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transition: grid-template-rows 220ms ease, margin-top 220ms ease, opacity 180ms ease;
}

.topic-detail > p {
    overflow: hidden;
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.85;
}

.topic-grid--deep article:hover .topic-detail,
.topic-grid--deep article:focus-within .topic-detail {
    grid-template-rows: 1fr;
    margin-top: 14px;
    opacity: 1;
}

@media (hover: none) {
    .topic-grid--deep article {
        min-height: 0;
    }

    .topic-detail {
        grid-template-rows: 1fr;
        margin-top: 14px;
        opacity: 1;
    }
}

.topic-grid h2,
.topic-grid h3,
.glossary-grid h2 {
    font-size: 22px;
}

.glossary-grid--rich article {
    display: grid;
    align-content: start;
    gap: 16px;
}

.glossary-card__top {
    display: grid;
    gap: 6px;
}

.glossary-card__top h3 {
    margin: 0;
    font-size: 24px;
}

.glossary-card__top span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.glossary-grid--rich article > p {
    margin: 0;
    color: var(--text);
    line-height: 1.85;
}

.glossary-grid--rich dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.glossary-grid--rich dl div {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8fbff;
}

.glossary-grid--rich dt {
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.glossary-grid--rich dd {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.subject-side {
    position: sticky;
    top: 100px;
}

.subject-side h2 {
    font-size: 22px;
}

.subject-side ul {
    display: grid;
    gap: 10px;
    margin: 16px 0 22px;
    padding-left: 20px;
}

.subject-side--alert {
    border-color: rgba(59, 130, 246, 0.5);
    background: #eff6ff;
}

.source-note {
    margin-top: 18px;
    font-size: 14px;
    color: var(--muted);
}

.source-note a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
}

.process-timeline {
    display: grid;
    gap: 16px;
}

.process-timeline article {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.process-timeline--deep article {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.process-timeline--deep article:hover,
.process-timeline--deep article:focus-within {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.process-timeline article > span {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #dbeafe;
    color: var(--primary);
    font-family: Manrope, sans-serif;
    font-weight: 900;
}

.process-timeline h2 {
    font-size: 24px;
}

.process-timeline strong {
    color: var(--primary);
}

.process-detail {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transition: grid-template-rows 220ms ease, margin-top 220ms ease, opacity 180ms ease;
}

.process-detail > p {
    overflow: hidden;
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.85;
}

.process-detail > p + p {
    margin-top: 10px;
}

.process-caution {
    padding: 12px 14px;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    background: #eff6ff;
}

.process-caution strong {
    color: var(--primary);
}

.process-timeline--deep article:hover .process-detail,
.process-timeline--deep article:focus-within .process-detail {
    grid-template-rows: 1fr;
    margin-top: 12px;
    opacity: 1;
}

@media (hover: none) {
    .process-detail {
        grid-template-rows: 1fr;
        margin-top: 12px;
        opacity: 1;
    }
}

.card--accent {
    border-top: 4px solid var(--primary);
}

.app-panel {
    padding: 28px;
}

.app-panel__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 800;
}

.app-panel__top strong {
    color: var(--primary);
    font-family: Manrope, sans-serif;
    font-size: 42px;
}

.progress {
    height: 12px;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 999px;
    background: #e0eaff;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--primary);
}

.lesson-list {
    display: grid;
    gap: 12px;
}

.lesson-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fbff;
    font-weight: 700;
}

.check,
.dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
}

.check {
    background: var(--accent);
}

.dot {
    border: 3px solid var(--primary);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 48px;
    align-items: center;
}

.split p {
    text-wrap: pretty;
    line-break: strict;
    word-break: auto-phrase;
}

.feature-list {
    display: grid;
    gap: 16px;
}

.feature-list div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--outline);
}

.feature-list strong {
    color: var(--primary);
    font-family: Manrope, sans-serif;
}

.cta-band {
    padding: 72px 0;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: var(--white);
}

.cta-band__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.cta-band__text {
    width: 100%;
    /* 本文が1行あたり長くなりすぎないよう、他セクションと同じ可読幅に揃える */
    max-width: 760px;
}

.cta-band p {
    margin: 8px 0 0;
    color: #dbeafe;
    text-wrap: pretty;
}

.section-heading__lead {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    text-wrap: pretty;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
    /* 無料プランとProプランの2枚構成。カードが横に伸びすぎないよう可読幅に収める */
    max-width: 900px;
}

.pricing-card {
    gap: 4px;
}

.pricing-card__name {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.pricing-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 10px 0 0;
}

.pricing-card__amount {
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
}

.pricing-card__sub {
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

/* 料金プランの導入。「広告なし」は無料プラン固有ではなく全プラン共通の事項として
   カードの外側・見出し側に置く */
.pricing-intro {
    max-width: 760px;
    margin-top: 44px;
    text-align: center;
}

.pricing-intro h3 {
    margin: 0 0 10px;
    font-size: clamp(20px, 2.6vw, 25px);
    text-wrap: balance;
    line-break: strict;
    word-break: auto-phrase;
}

.pricing-intro__lead {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    text-wrap: pretty;
}

.pricing-intro__common {
    display: inline-block;
    margin: 14px 0 0;
    padding: 6px 14px;
    border: 1px solid var(--outline);
    border-radius: 999px;
    background: var(--surface-container);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

/* Proプランの主な訴求。無料プランの価格表示と同じ位置に置いて高さを揃える */
.pricing-card__pitch {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    text-wrap: pretty;
}

/* 月額・年額はProプランの支払い方法の選択肢として、機能一覧の下にまとめる */
.pricing-options {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--outline);
    list-style: none;
}

/* 「種別 / 金額 / 補足バッジ」の3列。1列目を固定幅にすることで、バッジの有無に関わらず
   月額行と年額行で金額の左端が一致する */
.pricing-option {
    display: grid;
    grid-template-columns: 3em max-content 1fr;
    align-items: center;
    column-gap: 12px;
}

.pricing-option__term {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.pricing-option__amount {
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
}

.pricing-option__note {
    /* 3列目いっぱいに伸びないよう始端に寄せる */
    justify-self: start;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-low);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.pricing-card__list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.pricing-card__list li {
    position: relative;
    padding-left: 22px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
}

.pricing-card__list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.7em;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--primary);
}

.page-main {
    padding-top: 86px;
}

.page-hero {
    background: var(--surface-low);
    text-align: center;
}

.page-hero .container {
    max-width: 820px;
}

.page-hero--wide .container {
    max-width: 1120px;
}

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

.content-card {
    padding: 32px;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    width: min(100%, 1040px);
    margin: 0 auto;
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    background: var(--outline);
}

.info-table div {
    display: grid;
    gap: 8px;
    padding: 24px;
    background: var(--white);
}

.info-table span {
    color: var(--muted);
    font-size: 14px;
}

.source-note {
    width: min(100%, 1040px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

.ratio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ratio-grid div {
    display: grid;
    gap: 4px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--outline);
    text-align: center;
    box-shadow: var(--shadow);
}

.ratio-grid strong {
    color: var(--primary);
    font-family: Manrope, sans-serif;
    font-size: 30px;
}

.ratio-grid span {
    font-weight: 800;
}

.ratio-grid small {
    color: var(--muted);
    font-weight: 700;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline article {
    position: relative;
    padding: 24px 24px 24px 120px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--outline);
}

.timeline span {
    position: absolute;
    left: 24px;
    top: 28px;
    color: var(--primary);
    font-weight: 800;
}

.contact-grid,
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.check-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--accent);
}

.mock-form,
.contact-choice-form {
    display: grid;
    gap: 16px;
}

.form-field--trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mock-form label,
.contact-choice-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.mock-form input,
.mock-form select,
.mock-form textarea,
.contact-choice-form input,
.contact-choice-form select,
.contact-choice-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    font: inherit;
}

.mock-form input:focus,
.mock-form select:focus,
.mock-form textarea:focus,
.contact-choice-form input:focus,
.contact-choice-form select:focus,
.contact-choice-form textarea:focus {
    outline: 3px solid rgba(59, 130, 246, 0.18);
    border-color: var(--primary);
}

.form-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-choice legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    font-weight: 800;
}

.form-choice label {
    display: block;
    position: relative;
}

.form-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-choice span {
    display: grid;
    min-height: 46px;
    place-items: center;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: var(--surface-container);
    color: var(--text);
    font-weight: 900;
}

.form-choice input:checked + span {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.form-notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.form-notice--success {
    background: rgba(37, 99, 235, 0.1);
    color: #1e40af;
}

.form-notice--error {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.cf-turnstile {
    min-height: 65px;
}

.faq-list {
    max-width: 840px;
}

.faq-list details {
    margin-bottom: 14px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--outline);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 800;
}

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

.question-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--outline);
    box-shadow: var(--shadow);
}

.question-card__subject {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
}

.question-card h2 {
    font-size: 24px;
}

.answer-point {
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #eff6ff;
    color: var(--muted);
    font-weight: 700;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.category-pills a {
    padding: 9px 16px;
    border: 1px solid var(--outline);
    border-radius: 999px;
    background: var(--white);
    color: var(--muted);
    font-weight: 800;
}

.category-pills a.is-active,
.category-pills a:hover {
    background: var(--primary);
    color: var(--white);
}

.post-grid {
    display: grid;
    gap: 22px;
}

.post-card {
    overflow: hidden;
}

.post-card a {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 190px;
}

.post-card img,
.post-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #d9e3f6, #eff6ff);
}

.post-card__body {
    padding: 24px;
}

.post-card time {
    color: var(--primary);
    font-family: Manrope, sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.post-card__dates,
.related-card__dates {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.post-card h2 {
    margin: 8px 0;
    font-size: 24px;
}

.post-card p {
    margin: 0;
    color: var(--muted);
}

.sidebar {
    display: grid;
    gap: 22px;
}

.sidebar-card {
    padding: 28px;
}

.sidebar-card ul {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
    padding-left: 72px;
}

.sidebar-card li {
    padding-left: 4px;
    line-height: 1.55;
}

.sidebar-card h3 {
    font-size: 20px;
}

.sidebar-card a {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.sidebar-card a:hover {
    color: var(--primary);
}

.sidebar-card p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.65;
}

.sidebar-card .button {
    width: auto;
    min-width: 132px;
    margin-top: 18px;
    padding-inline: 22px;
    font-size: 15px;
}

.sidebar-card--cta {
    background: linear-gradient(135deg, #f4f8ff 0%, #dbeafe 100%);
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: var(--text);
    min-height: 220px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.sidebar-card--cta h3 {
    max-width: 520px;
    font-size: 24px;
    line-height: 1.45;
}

.sidebar-card--cta .button {
    background: var(--primary);
    color: var(--white);
}

.sidebar-card--cta .button:hover {
    background: var(--primary-hover);
}

.single-article {
    padding-top: 72px;
    padding-bottom: 72px;
}

.single-article__header {
    max-width: 920px;
    margin: 0 auto 40px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.single-article__lead {
    max-width: 780px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.single-article__image {
    width: min(100%, 920px);
    margin: 0 auto 40px;
    border-radius: var(--radius);
}

.single-article__layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 820px);
    gap: 48px;
    align-items: start;
    justify-content: center;
}

.article-side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 14px;
}

.article-side__box {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    background: var(--white);
}

.article-side__box span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.article-category-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.article-side__box strong,
.article-side__box a {
    color: var(--text);
    font-weight: 800;
}

.article-side__box a:hover {
    color: var(--primary);
}

.single-article__content {
    padding: 42px;
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    font-size: 18px;
}

.single-article__content > *:first-child {
    margin-top: 0;
}

.single-article__content h2 {
    margin: 42px 0 14px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
    font-size: 28px;
}

.single-article__content p {
    margin: 18px 0;
}

.single-article__content a {
    color: var(--primary);
    text-decoration: underline;
}

.author-box {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius);
    background: #eff6ff;
}

.author-box__avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #3b82f6, #93c5fd);
    color: var(--white);
    font-family: Manrope, sans-serif;
    font-weight: 900;
}

.author-box__label {
    margin: 0 0 6px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
}

.author-box__name {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.45;
}

.author-box__role {
    margin: 4px 0 12px;
    color: var(--muted);
    font-weight: 800;
}

.author-box a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
}

.related-posts {
    padding-top: 64px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.related-card {
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.related-card a {
    display: grid;
    gap: 8px;
    padding: 24px;
}

.related-card time {
    color: var(--primary);
    font-family: Manrope, sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.related-card h3 {
    font-size: 20px;
}

.related-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.definition-list {
    display: grid;
    gap: 0;
    margin: 24px 0 0;
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    overflow: hidden;
}

.definition-list div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    border-bottom: 1px solid var(--outline);
}

.definition-list div:last-child {
    border-bottom: 0;
}

.definition-list dt,
.definition-list dd {
    margin: 0;
    padding: 16px 18px;
}

.definition-list dt {
    background: var(--surface-low);
    font-weight: 800;
}

.definition-list dd a,
.legal-document a {
    color: var(--primary);
    text-decoration: underline;
}

.definition-list dd a {
    display: inline;
    margin-top: 0;
}

.definition-list--legal {
    margin-top: 20px;
}

.legal-document {
    max-width: 900px;
    padding: 36px;
    background: var(--white);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-document h2 {
    margin-top: 32px;
    font-size: 24px;
}

.legal-document h2:first-of-type {
    margin-top: 0;
}

.notice {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 700;
}

.site-footer {
    padding: 48px 0 28px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

.site-footer__inner {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.site-brand--footer {
    margin-bottom: 10px;
}

.site-brand--footer img {
    height: 52px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 20px;
    max-width: 560px;
}

.footer-nav a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.site-footer__copy {
    width: min(calc(100% - 48px), var(--container));
    margin: 28px auto 0;
    font-size: 13px;
}

.nav-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.nav-links a,
.nav-links span {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--outline);
}

@media (max-width: 980px) {
    .site-nav,
    .site-header__cta {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-nav {
        display: none;
        width: min(calc(100% - 48px), var(--container));
        margin: 0 auto 18px;
        padding: 12px;
        border-radius: var(--radius);
        background: var(--white);
        border: 1px solid var(--outline);
    }

    .mobile-nav.is-open {
        display: grid;
        gap: 4px;
    }

    .hero__grid,
    .split,
    .contact-grid,
    .blog-layout,
    .legal-layout,
    .single-article__layout,
    .subject-layout {
        grid-template-columns: 1fr;
    }

    .subject-side {
        position: static;
    }

    .article-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid--3,
    .card-grid--4,
    .content-grid,
    .ratio-grid,
    .question-list,
    .related-posts__grid,
    .topic-grid,
    .topic-grid--wide,
    .glossary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .container,
    .site-header__inner,
    .site-footer__inner,
    .site-footer__copy {
        width: min(calc(100% - 32px), var(--container));
    }

    .site-brand__text {
        max-width: 190px;
    }

    .site-brand img {
        height: 48px;
        max-width: 220px;
    }

    .site-brand--footer img {
        height: 44px;
        max-width: 220px;
    }

    .hero,
    .page-hero {
        padding: 120px 0 56px;
    }

    .section {
        padding: 56px 0;
    }

    .card-grid--3,
    .card-grid--4,
    .pricing-grid,
    .content-grid,
    .info-table,
    .ratio-grid,
    .question-list,
    .related-posts__grid,
    .article-side,
    .topic-grid,
    .topic-grid--wide,
    .glossary-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline article {
        grid-template-columns: 1fr;
    }

    .single-article__content {
        padding: 26px;
        font-size: 16px;
    }

    .author-box {
        grid-template-columns: 1fr;
    }

    .post-card a {
        grid-template-columns: 1fr;
    }

    .timeline article {
        padding: 72px 20px 20px;
    }

    .definition-list div {
        grid-template-columns: 1fr;
    }

    .timeline span {
        left: 20px;
        top: 20px;
    }

    .hero__actions {
        flex-direction: column;
        /* 縦並びでは align-items:center が水平方向の中央寄せになるため、
           本文・補足文と左端を揃えるために明示的に始端へ寄せる */
        align-items: flex-start;
    }

    .button {
        width: 100%;
    }
}

.section-intro {
    padding: 56px 0;
}

.section-intro__inner {
    max-width: 760px;
    text-align: center;
}

.section-intro__inner h2 {
    margin-top: 8px;
    font-size: clamp(24px, 3.4vw, 32px);
}

.section-intro__inner p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    text-wrap: pretty;
}

.section-cta--soft {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    text-align: center;
}

.section-cta--soft .download-note {
    margin-top: 0;
}

.section-cta__note {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.topic-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.topic-links a {
    padding: 10px 16px;
    border: 1px solid rgba(188, 203, 223, 0.9);
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.topic-links a:hover {
    border-color: rgba(37, 99, 235, 0.6);
    color: var(--primary);
}

@media (max-width: 640px) {
    .section-intro {
        padding: 40px 0 0;
    }

    .section-cta--soft .button {
        width: 100%;
    }

    .topic-links {
        gap: 8px;
    }

    .topic-links a {
        padding: 9px 14px;
        font-size: 13px;
    }
}


/* ---- 仕訳アプリのホーム画面モック（スクリーンショット差し替えまでのplaceholder） ---- */
.app-home {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 560px;
    padding: 16px 13px 12px;
    overflow: hidden;
    background: #f2f6fd;
    color: var(--text);
    line-height: 1.4;
}

.app-home__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 2px;
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
}

.app-home__status-icons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.app-home__ico-signal {
    width: 16px;
    height: 9px;
    background:
        linear-gradient(#1f2937, #1f2937) 0 100% / 3px 5px no-repeat,
        linear-gradient(#1f2937, #1f2937) 4px 100% / 3px 7px no-repeat,
        linear-gradient(#1f2937, #1f2937) 8px 100% / 3px 9px no-repeat,
        linear-gradient(#1f2937, #1f2937) 12px 100% / 3px 9px no-repeat;
}

.app-home__ico-wifi {
    width: 12px;
    height: 9px;
    background: #1f2937;
    clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%);
}

.app-home__ico-batt {
    position: relative;
    width: 18px;
    height: 9px;
    border: 1px solid #1f2937;
    border-radius: 3px;
    background:
        linear-gradient(#1f2937, #1f2937) 1px 1px / 11px calc(100% - 2px) no-repeat;
}

.app-home__ico-batt::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 4px;
    border-radius: 0 2px 2px 0;
    background: #1f2937;
}

.app-home__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 4px;
}

.app-home__brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

.app-home__logo {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), var(--accent-hover));
}

.app-home__logo::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(40deg);
}

.app-home__bell {
    position: relative;
    width: 15px;
    height: 15px;
    background: #64748b;
    -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a2.2 2.2 0 0 0 2.2-2.2H9.8A2.2 2.2 0 0 0 12 22zm7-6v-5a7 7 0 0 0-5.5-6.83V3.5a1.5 1.5 0 0 0-3 0v.67A7 7 0 0 0 5 11v5l-2 2v1h18v-1z'/%3E%3C/svg%3E");
    mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a2.2 2.2 0 0 0 2.2-2.2H9.8A2.2 2.2 0 0 0 12 22zm7-6v-5a7 7 0 0 0-5.5-6.83V3.5a1.5 1.5 0 0 0-3 0v.67A7 7 0 0 0 5 11v5l-2 2v1h18v-1z'/%3E%3C/svg%3E");
}

.app-home__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.app-home__card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.app-home__card-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}

.app-home__goal-num {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: #f59e0b;
    font-variant-numeric: tabular-nums;
}

.app-home__goal-num span {
    margin-left: 2px;
    font-size: 13px;
}

.app-home__goal-rate {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.app-home__goal-rate strong {
    color: var(--primary);
    font-weight: 800;
}

.app-home__plan-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.app-home__plan-cta {
    margin-top: auto;
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.app-home__reset {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    color: #8b97a8;
}

.app-home__section-title {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
}

.app-home__notices {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-home__notices li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 26px 9px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.app-home__notices li::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #c2ccdb;
    border-bottom: 2px solid #c2ccdb;
    transform: translateY(-50%) rotate(-45deg);
}

.app-home__notice-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
}

.app-home__notice-sub {
    font-size: 10px;
    font-weight: 600;
    color: #8b97a8;
}

.app-home__tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    margin-top: auto;
    padding: 8px 2px 4px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 -4px 14px rgba(18, 28, 42, 0.05);
}

.app-home__tabbar span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 700;
    color: #9aa6b6;
}

.app-home__tabbar span::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: center / contain no-repeat var(--tab-icon);
    mask: center / contain no-repeat var(--tab-icon);
}

.app-home__tabbar span:nth-child(1) {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 11h3v9h5v-6h4v6h5v-9h3z'/%3E%3C/svg%3E");
}

.app-home__tabbar span:nth-child(2) {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.94l-3.75-3.75zM20.7 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z'/%3E%3C/svg%3E");
}

.app-home__tabbar span:nth-child(3) {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5V2L8 6l4 4V7a5 5 0 1 1-5 5H5a7 7 0 1 0 7-7z'/%3E%3C/svg%3E");
}

.app-home__tabbar span:nth-child(4) {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13h3v7H4zm6-6h3v13h-3zm6 3h3v10h-3z'/%3E%3C/svg%3E");
}

.app-home__tabbar span:nth-child(5) {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.14 12.94a7.5 7.5 0 0 0 0-1.88l2.03-1.58a.5.5 0 0 0 .12-.64l-1.92-3.32a.5.5 0 0 0-.61-.22l-2.39.96a7 7 0 0 0-1.62-.94l-.36-2.54a.5.5 0 0 0-.5-.42h-3.84a.5.5 0 0 0-.5.42l-.36 2.54a7 7 0 0 0-1.62.94l-2.39-.96a.5.5 0 0 0-.61.22L2.68 8.84a.5.5 0 0 0 .12.64l2.03 1.58a7.5 7.5 0 0 0 0 1.88l-2.03 1.58a.5.5 0 0 0-.12.64l1.92 3.32a.5.5 0 0 0 .61.22l2.39-.96a7 7 0 0 0 1.62.94l.36 2.54a.5.5 0 0 0 .5.42h3.84a.5.5 0 0 0 .5-.42l.36-2.54a7 7 0 0 0 1.62-.94l2.39.96a.5.5 0 0 0 .61-.22l1.92-3.32a.5.5 0 0 0-.12-.64zM12 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z'/%3E%3C/svg%3E");
}

.app-home__tabbar .is-active {
    color: var(--primary);
}


/* ---- 解説ページ・コラム本文の見出し/表 ---- */
.legal-document h3 {
    margin-top: 26px;
    margin-bottom: 8px;
    font-size: 19px;
}

.legal-document table,
.single-article__content table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
}

.legal-document th,
.legal-document td,
.single-article__content th,
.single-article__content td {
    padding: 10px 12px;
    border: 1px solid var(--outline);
    text-align: left;
    vertical-align: top;
}

.legal-document th,
.single-article__content th {
    background: var(--surface-low);
    font-weight: 800;
    white-space: nowrap;
}

.legal-document .journal-example,
.single-article__content .journal-example {
    margin: 14px 0;
    padding: 14px 16px;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-low);
}

@media (max-width: 640px) {
    .legal-document table,
    .single-article__content table {
        display: block;
        overflow-x: auto;
    }
}


/* ---- ダウンロードセクションと青背景CTA上のストアバッジ ---- */
#download {
    scroll-margin-top: 96px;
}

/* 「企画・制作」セクションの4ステップ。共通の .card は他セクションと共有しているため、
   このセクション専用のクラスで組む（2列×2段 → 640px以下で1列） */
.creator-steps {
    max-width: 900px;
    margin-top: 8px;
}

.creator-steps__head {
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: center;
}

.creator-steps__label {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.creator-steps__head h3 {
    margin: 0 0 10px;
    font-size: clamp(20px, 2.6vw, 25px);
    text-wrap: balance;
}

/* グローバルの overflow-wrap:anywhere により語中で改行されるため、
   このセクションの見出しだけ文節単位の折り返しに戻す（他セクションには影響させない） */
#creator .section-heading h2,
.creator-steps__head h3,
.creator-step__title {
    line-break: strict;
    word-break: auto-phrase;
}

.creator-steps__lead {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    text-wrap: pretty;
}

.creator-steps__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.creator-step {
    padding: 20px 22px;
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    background: var(--surface-container);
}

.creator-step__num {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-family: Manrope, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.creator-step__title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5;
    text-wrap: balance;
}

.creator-step__body {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    text-wrap: pretty;
    line-break: strict;
    word-break: auto-phrase;
}

/* 4ステップを支える補助機能。カードと並べず、横長のコールアウトとして区別する */
.creator-guide {
    margin-top: 14px;
    padding: 18px 22px;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-container);
}

.creator-guide__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
}

.creator-guide__body {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    text-wrap: pretty;
}

/* .creator-steps__list の2列指定より後に置く必要がある（同詳細度のため後方が優先される） */
@media (max-width: 640px) {
    .creator-steps__list {
        grid-template-columns: 1fr;
    }
}

.creator-note {
    max-width: 760px;
    margin-top: 28px;
    text-align: center;
}

.creator-note p {
    margin: 0;
    color: var(--muted);
    text-wrap: pretty;
}

.cta-band__actions {
    display: flex;
    flex-direction: column;
    /* 既定の stretch では白パネルが補足文の幅まで広がるため、内容幅に収める */
    align-items: flex-start;
    gap: 12px;
}

.cta-band__actions .download-note {
    margin-top: 0;
}

/* 青背景の上でも公式バッジをそのまま置く（黒地のバッジで判別できるため台座は敷かない） */
.store-badges--on-dark {
    margin-top: 0;
}

.download-note--on-dark .download-note__main {
    color: var(--white);
}

.download-note--on-dark .download-note__sub {
    color: #dbeafe;
}

/* ---- 図解コンポーネント（親ページ共通） ----
   白・青系の既存デザイン（--primary / --outline / --radius-sm）に合わせた
   ステップ図・借方貸方2列図・比較カード・情報カードの共通パターン。
   JavaScript・画像に依存せず、DOM順＝読み上げ順＝理解順とする。 */

.fig {
    margin: 18px 0;
}

/* ステップ図（基本は縦1列。--cols 付きでPCは2〜3列に展開） */
.fig-steps {
    list-style: none;
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.fig-step {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fig-step__card {
    flex: 1;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    overflow-wrap: anywhere;
}

.fig-step__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.fig-step__num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
}

.fig-step__label {
    flex: none;
    padding: 2px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
}

.fig-step__card p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

/* カード間の下向き装飾矢印（HTML側で aria-hidden="true" を付ける） */
.fig-step__arrow {
    align-self: center;
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

/* 戻り先・補足を示すカード（複雑な戻り矢印の代わりに文章で示す） */
.fig-return {
    margin: 10px 0 0;
    padding: 12px 16px;
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    background: var(--surface-low);
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* 借方・貸方の左右2列図（320pxでも2列を維持する） */
.fig-dc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.fig-dc__side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: var(--white);
    overflow: hidden;
}

.fig-dc__title {
    margin: 0;
    padding: 8px 10px;
    background: var(--surface-low);
    border-bottom: 1px solid var(--outline);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.fig-dc__body {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.fig-dc__body p {
    margin: 0;
}

.fig-dc__amount {
    font-size: 15px;
    font-weight: 800;
}

.fig-dc__meta {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    color: var(--muted);
}

.fig-dc__meta li + li {
    margin-top: 2px;
}

.fig-dc__body dl {
    margin: 0;
}

.fig-dc__body dt {
    margin: 10px 0 0;
    font-weight: 800;
}

.fig-dc__body dt:first-child {
    margin-top: 0;
}

.fig-dc__body dd {
    margin: 4px 0 0;
}

.fig-dc__chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.fig-dc__chips li {
    padding: 2px 10px;
    border: 1px solid var(--outline);
    border-radius: 999px;
    background: var(--surface-low);
    font-size: 14px;
    font-weight: 700;
}

/* 貸借一致の確認行（2列の下に全幅で置く） */
.fig-dc__check {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: var(--surface-low);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
}

/* 比較カード（「避けたい」→「改善後」。色ではなくラベル文字で区別する） */
.fig-compare {
    display: grid;
    gap: 12px;
}

/* 1つの場面（避けたい＋改善後）を1つの枠で囲み、セット関係を示す */
.fig-compare__pair {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: var(--surface-low);
}

.fig-compare__item {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.fig-compare__item--better {
    border-color: var(--primary);
}

.fig-compare__label {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.fig-compare__item--avoid .fig-compare__label {
    background: #eef2f7;
    color: var(--muted);
}

.fig-compare__item--better .fig-compare__label {
    background: #dbeafe;
    color: #1d4ed8;
}

.fig-compare__item p {
    margin: 6px 0 0;
}

/* 情報カード（5要素・誤り原因など。dl > div 構造で使う） */
.fig-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 0;
}

.fig-card {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: var(--white);
    overflow-wrap: anywhere;
}

.fig-card dt {
    font-size: 15px;
    font-weight: 800;
}

.fig-card dd {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.fig-card .fig-card__ex {
    color: var(--text);
}

/* 共通の「次の行動」帯（原因カードの下などに置く） */
.fig-actions {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 10px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: var(--surface-low);
    font-size: 14px;
    font-weight: 700;
}

.fig-actions li {
    min-width: 0;
    overflow-wrap: anywhere;
}

.fig-arrow-inline {
    color: var(--primary);
    font-weight: 800;
}

/* PCではステップ図を2〜3列に、比較カードは「避けたい／改善後」の左右2列にする */
@media (min-width: 641px) {
    .fig-steps--cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .fig-steps--cols .fig-step__arrow {
        display: none;
    }

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

@media (min-width: 981px) {
    .fig-steps--cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 「こんな人におすすめです」のペルソナカード */
.persona-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    justify-self: start;
    min-width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--surface-low);
    color: var(--primary);
    font-family: Manrope, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.persona-card h3 {
    text-wrap: balance;
}

.persona-card p {
    text-wrap: pretty;
}

/* 3カラム表示では、見出しの折り返し数が違っても番号・見出し・本文の開始位置が揃うよう、行をカード間で共有する */
@media (min-width: 981px) {
    .persona-grid {
        row-gap: 0;
    }

    .persona-card {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
    }
}
