/* ============================================================
   MANABIYA LP — Washi × Ink × Vermilion (和モダン)
   ============================================================ */

:root {
    --paper: #f6f1e5;
    --paper-deep: #eee6d2;
    --paper-card: #fffdf8;
    --ink: #221d15;
    --ink-soft: #6f6757;
    --ink-faint: #a29885;
    --green-deep: #14352a;
    --green: #2c6e49;
    --green-mist: #e2ece3;
    --vermilion: #d8502f;
    --vermilion-deep: #b83e22;
    --vermilion-mist: #fae8e0;
    --gold: #c99b3f;
    --gold-mist: #f5ead2;
    --line: #ddd1b6;
    --shadow-sm: 0 2px 10px rgba(34, 29, 21, 0.06);
    --shadow-md: 0 10px 34px rgba(34, 29, 21, 0.1);
    --shadow-lg: 0 24px 70px rgba(34, 29, 21, 0.16);
    --r-md: 10px;
    --r-lg: 18px;
    --r-xl: 26px;
    --mincho: 'Zen Old Mincho', serif;
    --gothic: 'Zen Kaku Gothic New', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--gothic);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--vermilion); color: #fff; }

/* ── 紙の質感（全面にうっすら織り目） ───────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(34, 29, 21, 0.025) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 1;
}
main, nav.navbar, footer.footer, .marquee { position: relative; z-index: 2; }

/* ============================================================
   Scroll progress
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 2000;
    background: transparent;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--vermilion));
    transition: width 0.08s linear;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    padding: 1rem 0;
    background: rgba(246, 241, 229, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    z-index: 1030;
}
.navbar.scrolled {
    padding: 0.55rem 0;
    box-shadow: var(--shadow-sm);
}
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}
.brand-fuda {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--vermilion);
    color: #fffdf8;
    font-family: var(--mincho);
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.55), var(--shadow-sm);
    transition: transform 0.3s ease;
}
.navbar-brand:hover .brand-fuda { transform: rotate(-6deg); }
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-family: var(--mincho);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 0.18em;
    color: var(--ink);
}
.brand-text em {
    font-style: normal;
    font-family: var(--gothic);
    font-size: 0.58rem;
    letter-spacing: 0.42em;
    color: var(--ink-soft);
    font-weight: 700;
}
.nav-link {
    color: var(--ink-soft) !important;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.5rem 0.85rem !important;
    position: relative;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0.85rem; right: 0.85rem; bottom: 0.2rem;
    height: 2px;
    background: var(--vermilion);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--ink) !important; }
.nav-link:hover::after { transform: scaleX(1); }

/* ============================================================
   Buttons
   ============================================================ */
.btn { border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; }
.btn-accent {
    background: var(--vermilion);
    border: 2px solid var(--vermilion);
    color: #fffdf8;
    box-shadow: 0 6px 20px rgba(216, 80, 47, 0.32);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.btn-accent:hover {
    background: var(--vermilion-deep);
    border-color: var(--vermilion-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(216, 80, 47, 0.4);
}
.btn-ghost {
    background: transparent;
    border: 2px solid var(--ink);
    color: var(--ink);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
}
.btn-paper {
    background: var(--paper-card);
    border: 2px solid var(--paper-card);
    color: var(--green-deep);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-paper:hover {
    background: #fff;
    border-color: #fff;
    color: var(--green-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.btn-outline-paper {
    background: transparent;
    border: 2px solid rgba(255, 253, 248, 0.5);
    color: var(--paper-card);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-outline-paper:hover {
    background: rgba(255, 253, 248, 0.12);
    border-color: var(--paper-card);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   Section heads
   ============================================================ */
.sec-head { margin-bottom: 0.5rem; }
.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
}
.sec-label-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--vermilion);
    box-shadow: 0 0 0 4px var(--vermilion-mist);
}
.sec-title {
    font-family: var(--mincho);
    font-weight: 700;
    font-size: clamp(1.65rem, 3.4vw, 2.4rem);
    line-height: 1.5;
    color: var(--ink);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}
.sec-sub {
    color: var(--ink-soft);
    font-size: 0.98rem;
    margin: 0 auto;
    max-width: 640px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    overflow: hidden;
    background:
        radial-gradient(1000px 500px at 85% 8%, rgba(44, 110, 73, 0.08), transparent 60%),
        radial-gradient(700px 420px at 6% 88%, rgba(216, 80, 47, 0.07), transparent 60%),
        var(--paper);
}
.hero-washi {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 118px, rgba(201, 155, 63, 0.06) 118px 119px);
    pointer-events: none;
}
.hero-ink-grid {
    position: absolute;
    top: 4%;
    right: -6%;
    width: min(52vw, 720px);
    aspect-ratio: 1;
    pointer-events: none;
}
.enso-svg { width: 100%; height: 100%; opacity: 0.16; }
.enso-path {
    stroke-dasharray: 1100;
    stroke-dashoffset: 1100;
    transition: stroke-dashoffset 2.4s cubic-bezier(0.6, 0.05, 0.2, 1) 0.3s;
}
.hero.loaded .enso-path { stroke-dashoffset: 0; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--green-deep);
    background: var(--paper-card);
    border: 1px solid var(--line);
    padding: 0.45rem 1.1rem 0.45rem 0.6rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.hanko {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    background: var(--vermilion);
    color: #fff;
    border-radius: 5px;
    font-family: var(--mincho);
    font-size: 0.85rem;
}
.hero-title {
    font-family: var(--mincho);
    font-weight: 900;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.42;
    letter-spacing: 0.03em;
    color: var(--ink);
    margin: 1.4rem 0 1.25rem;
}
.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.6em) rotate(4deg);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.hero-title .char.space { width: 0.4em; }
.hero-title.line-in .char { opacity: 1; transform: translateY(0) rotate(0); }
.hero-title em {
    font-style: normal;
    position: relative;
    color: var(--vermilion);
    z-index: 1;
}
.hero-title em::after {
    content: '';
    position: absolute;
    left: -0.06em; right: -0.06em; bottom: 0.08em;
    height: 0.38em;
    background: rgba(216, 80, 47, 0.16);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: underline-in 0.7s cubic-bezier(0.6, 0, 0.2, 1) 1.15s forwards;
}
@keyframes underline-in { to { transform: scaleX(1); } }

.hero-lead {
    color: var(--ink-soft);
    font-size: 1rem;
    max-width: 540px;
    line-height: 2.05;
    margin-bottom: 2rem;
}
.hero-lead strong { color: var(--green); }
.hero-cta { display: flex; flex-wrap: wrap; }
.hero-notes {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 1.75rem;
    padding: 0;
}
.hero-notes li {
    font-size: 0.82rem;
    color: var(--ink-soft);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.hero-notes i { color: var(--green); font-size: 1rem; }

/* hero stage illustration */
.hero-stage {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding: 3.5rem 1rem 2rem;
}
.hero-book {
    width: 100%;
    filter: drop-shadow(0 26px 34px rgba(34, 29, 21, 0.16));
    animation: book-float 6s ease-in-out infinite;
}
@keyframes book-float {
    0%, 100% { transform: translateY(0) rotate(-1.2deg); }
    50% { transform: translateY(-12px) rotate(0.8deg); }
}
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0.7rem 1rem;
    box-shadow: var(--shadow-md);
    animation: card-bob 5.2s ease-in-out infinite;
    will-change: transform;
}
.fc-cert   { top: 2%; right: 2%; animation-delay: 0.4s; }
.fc-learn  { top: 44%; left: -4%; animation-delay: 1.3s; z-index: 3; }
.fc-pay    { bottom: 0; right: 6%; animation-delay: 2.1s; }
@keyframes card-bob {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -10px; }
}
.fc-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fffdf8;
}
.fc-icon-green { background: linear-gradient(135deg, #2c6e49, #4d9a6f); }
.fc-icon-vermilion { background: linear-gradient(135deg, #d8502f, #ea7a54); }
.fc-icon-gold { background: linear-gradient(135deg, #b08327, #d9b45e); }
.fc-body { display: flex; flex-direction: column; line-height: 1.4; }
.fc-body strong { font-size: 0.82rem; color: var(--ink); }
.fc-body span { font-size: 0.68rem; color: var(--ink-faint); }

.paper-plane {
    position: absolute;
    top: -6%;
    left: 4%;
    width: 130px;
    animation: plane-drift 7s ease-in-out infinite;
}
@keyframes plane-drift {
    0%, 100% { transform: translate(0, 0) rotate(-4deg); }
    50% { transform: translate(16px, 22px) rotate(3deg); }
}
.pp-trail {
    stroke-dasharray: 5 7;
    animation: trail-run 1.6s linear infinite;
}
@keyframes trail-run { to { stroke-dashoffset: -24; } }

.spark {
    position: absolute;
    width: 10px; height: 10px;
    background: var(--gold);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: twinkle 3s ease-in-out infinite;
}
.spark-1 { top: 16%; left: 40%; animation-delay: 0s; }
.spark-2 { bottom: 22%; left: 8%; animation-delay: 1s; width: 8px; height: 8px; background: var(--vermilion); }
.spark-3 { top: 38%; right: 0%; animation-delay: 2s; width: 7px; height: 7px; }
@keyframes twinkle {
    0%, 100% { transform: scale(0.5) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(45deg); opacity: 1; }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.hero-scroll-hint span {
    width: 1px; height: 42px;
    background: linear-gradient(var(--ink-faint), transparent);
    animation: hint-drop 1.8s ease-in-out infinite;
    transform-origin: top;
}
@keyframes hint-drop {
    0% { transform: scaleY(0); }
    45% { transform: scaleY(1); }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
    background: var(--green-deep);
    overflow: hidden;
    padding: 0.9rem 0;
    border-block: 3px solid var(--ink);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    width: max-content;
    animation: marquee-run 24s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
    font-family: var(--mincho);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--paper);
    white-space: nowrap;
}
.marquee-track i { color: var(--gold); font-size: 0.5rem; }
@keyframes marquee-run { to { transform: translateX(-50%); } }

/* ============================================================
   One room (all in one)
   ============================================================ */
.oneroom-section { padding: 5.5rem 0 5rem; }
.or-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.9rem;
    margin-top: 3.6rem;
}
.or-step {
    position: relative;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2.6rem 1.4rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.or-step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.or-node {
    position: relative;
    width: 66px; height: 66px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: -3.7rem auto 1.1rem;
    color: #fffdf8;
    font-size: 1.55rem;
    border: 3px solid var(--paper-deep);
    box-shadow: var(--shadow-sm);
}
.or-green { background: linear-gradient(135deg, #2c6e49, #57a377); }
.or-blue  { background: linear-gradient(135deg, #1f5c8a, #4e8fc0); }
.or-gold  { background: linear-gradient(135deg, #b08327, #d9b45e); }
.or-verm  { background: linear-gradient(135deg, #d8502f, #ea7a54); }
.or-no {
    position: absolute;
    top: -6px; right: -10px;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vermilion);
    color: #fff;
    border-radius: 5px;
    font-family: var(--mincho);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.55), var(--shadow-sm);
}
.or-step h3 {
    font-family: var(--mincho);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.or-step > p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 1rem; }
.or-points { list-style: none; padding: 0; margin: 0; text-align: left; }
.or-points li {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--ink-soft);
    padding: 0.42rem 0;
    border-bottom: 1px dashed var(--line);
}
.or-points li:last-child { border-bottom: none; }
.or-points i { color: var(--green); font-size: 0.8rem; }
.or-arrow {
    position: absolute;
    top: 42%;
    right: -0.95rem;
    transform: translate(50%, -50%);
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--vermilion);
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}
.or-step:last-child .or-arrow { display: none; }

.oneroom-close { max-width: 760px; margin: 3.4rem auto 0; }
.oneroom-close-card {
    position: relative;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 2.6rem 2rem 2.4rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.oneroom-close-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 4px;
    background: var(--vermilion);
    border-radius: 0 0 4px 4px;
}
.oneroom-close-seal {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px;
    background: var(--vermilion);
    color: #fff;
    border-radius: 10px;
    font-family: var(--mincho);
    font-size: 1.7rem;
    font-weight: 900;
    transform: rotate(-6deg);
    box-shadow: inset 0 0 0 2.5px rgba(255, 253, 248, 0.55), var(--shadow-sm);
    margin-bottom: 1rem;
}
.oneroom-close-card h3 {
    font-family: var(--mincho);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
}
.oneroom-close-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.4rem; }

@media (max-width: 991.98px) {
    .or-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3.4rem; }
    .or-arrow { display: none; }
}
@media (max-width: 575.98px) {
    .or-steps { grid-template-columns: 1fr; gap: 1.6rem; }
    .or-step { padding: 2.4rem 1.5rem 1.4rem; }
    .oneroom-close-card { padding: 2.2rem 1.4rem 2rem; }
}

/* ============================================================
   POS（対面販売）
   ============================================================ */
.pos-section { padding: 5.5rem 0 4.6rem; background: var(--paper-deep); }
.pos-card {
    position: relative;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 3.2rem 2.6rem;
    margin-top: 2.6rem;
    box-shadow: var(--shadow-lg);
}
.pos-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 4px;
    background: var(--vermilion);
    border-radius: 0 0 4px 4px;
}
.pos-lead { color: var(--ink-soft); font-size: 0.95rem; line-height: 2.05; margin-bottom: 0.6rem; }
.pos-note { font-size: 0.74rem; color: var(--ink-faint); margin: 1.2rem 0 0; }

/* POS機能タイル */
.pos-tiles { margin-top: 1.5rem; }
.pos-tile {
    height: 100%;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pos-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--vermilion); }
.pos-tile-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 11px;
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}
.pt-green { background: var(--green-mist); color: var(--green); }
.pt-verm { background: var(--vermilion-mist); color: var(--vermilion); }
.pt-gold { background: var(--gold-mist); color: var(--gold); }
.pos-tile h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.pos-tile p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.75; margin: 0; }

/* タブレット風のレジ画面 */
.pos-register {
    max-width: 460px;
    margin: 0 auto;
    background: var(--paper-card);
    border: 2px solid var(--ink);
    border-radius: var(--r-lg);
    box-shadow: 10px 10px 0 rgba(34, 29, 21, 0.09);
    overflow: hidden;
}
.posr-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--green-deep);
    color: #fffdf8;
    padding: 0.75rem 1.1rem;
}
.posr-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: var(--vermilion);
    border-radius: 6px;
    font-family: var(--mincho);
    font-weight: 700;
    font-size: 0.95rem;
}
.posr-title { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; }
.posr-badge {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    border: 1px solid rgba(255, 253, 248, 0.6);
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
}
.posr-body { padding: 1.4rem 1.4rem 1.5rem; }
.posr-customer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green-mist);
    color: var(--green-deep);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}
.posr-items { list-style: none; padding: 0; margin: 0 0 1.1rem; border-top: 1px dashed var(--line); }
.posr-items li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.86rem;
    color: var(--ink);
    padding: 0.55rem 0.1rem;
    border-bottom: 1px dashed var(--line);
}
.posr-items li i { color: var(--gold); font-size: 1rem; }
.posr-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-bottom: 0.9rem;
}
.posr-total strong {
    font-family: var(--mincho);
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.posr-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--vermilion);
    color: #fffdf8;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    padding: 0.8rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(216, 80, 47, 0.3);
    margin-bottom: 1.2rem;
}
.posr-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
}
.posr-flow span {
    background: var(--paper-deep);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.24rem 0.7rem;
}
.posr-flow .bi { color: var(--vermilion); font-size: 0.7rem; }

@media (max-width: 991.98px) {
    .pos-card { padding: 2.6rem 1.6rem 2.4rem; }
}
@media (max-width: 575.98px) {
    .pos-section { padding-top: 4.5rem; }
    .pos-register { box-shadow: 6px 6px 0 rgba(34, 29, 21, 0.09); }
    .posr-body { padding: 1.1rem 1.1rem 1.2rem; }
}

/* ============================================================
   Stats
   ============================================================ */
.stats-section { padding: 5.5rem 0; }
.stat-plate {
    position: relative;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2rem 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.stat-plate::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 4px;
    background: var(--vermilion);
    border-radius: 0 0 4px 4px;
}
.stat-plate:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-num {
    font-family: var(--mincho);
    font-weight: 900;
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--green-deep);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: 1rem; font-weight: 600; color: var(--vermilion); margin-left: 0.2rem; }
.stat-cap { font-size: 0.82rem; color: var(--ink-soft); margin: 0.5rem 0 0; letter-spacing: 0.08em; }

/* ============================================================
   Why section
   ============================================================ */
.why-section { padding: 5.5rem 0; background: var(--paper-deep); }
.why-list { display: flex; flex-direction: column; gap: 1.4rem; max-width: 920px; margin: 0 auto; }
.why-row {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 0 1.5rem;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.9rem 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-row:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
.why-num {
    grid-row: span 2;
    font-family: var(--mincho);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vermilion);
    background: var(--vermilion-mist);
    width: 74px; height: 74px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 2px rgba(216, 80, 47, 0.25);
}
.why-title {
    font-family: var(--mincho);
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.why-text { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.why-text strong { color: var(--green); }
.why-solve {
    margin-top: 1.1rem;
    background: var(--green-mist);
    border: 1px dashed var(--green);
    border-radius: var(--r-md);
    padding: 0.85rem 1.2rem;
}
.why-solve-tag {
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    color: var(--green);
    margin-bottom: 0.2rem;
}
.why-solve p {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--green-deep);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.why-solve i { color: var(--vermilion); font-size: 1.05rem; }

/* ============================================================
   Promise
   ============================================================ */
.promise-section { padding: 5.5rem 0; }
.promise-card {
    position: relative;
    height: 100%;
    background: var(--green-deep);
    border-radius: var(--r-xl);
    padding: 2.6rem 2rem 2.2rem;
    color: var(--paper);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.promise-card::after {
    content: '';
    position: absolute;
    width: 190px; height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(246, 241, 229, 0.14);
    top: -60px; right: -60px;
    transition: transform 0.5s ease;
}
.promise-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.promise-card:hover::after { transform: scale(1.5); }
.promise-card:nth-child(2) { background: var(--green); }
.promise-card:nth-child(3) { background: var(--ink); }
.promise-fuda {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    background: var(--vermilion);
    color: #fffdf8;
    font-family: var(--mincho);
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.45);
    margin-bottom: 1.4rem;
}
.promise-card h3 {
    font-family: var(--mincho);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 0.9rem;
}
.promise-card p { color: rgba(246, 241, 229, 0.78); font-size: 0.9rem; margin-bottom: 1.4rem; }
.promise-en {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

/* ============================================================
   Flow (four verbs)
   ============================================================ */
.flow-section { padding: 5.5rem 0; background: var(--paper-deep); }
.verbs-rail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.6rem;
}
.verb-station {
    font-family: var(--mincho);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink-soft);
    background: var(--paper-card);
    border: 1px solid var(--line);
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    transition: all 0.3s ease;
}
.verb-station.is-current {
    background: var(--vermilion);
    border-color: var(--vermilion);
    color: #fff;
    box-shadow: 0 6px 18px rgba(216, 80, 47, 0.35);
}
.verb-line {
    width: 34px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--ink-faint) 0 6px, transparent 6px 12px);
}
.verb-card {
    height: 100%;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.verb-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.verb-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.3rem 1.5rem;
}
.vh-create { background: linear-gradient(135deg, #2c6e49, #57a377); }
.vh-learn  { background: linear-gradient(135deg, #1f5c8a, #4e8fc0); }
.vh-record { background: linear-gradient(135deg, #b08327, #d9b45e); }
.vh-connect{ background: linear-gradient(135deg, #d8502f, #ea7a54); }
.verb-kanji {
    font-family: var(--mincho);
    font-size: 2.3rem;
    font-weight: 900;
    color: #fffdf8;
    line-height: 1;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.verb-en {
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 253, 248, 0.85);
    padding-bottom: 0.3rem;
}
.verb-card { padding: 0; }
.verb-card h3, .verb-card .verb-text, .verb-card .verb-points { margin-inline: 1.5rem; }
.verb-title {
    font-family: var(--mincho);
    font-size: 1.35rem;
    font-weight: 700;
    padding-top: 1.4rem;
    color: var(--ink);
}
.verb-text { font-size: 0.86rem; color: var(--ink-soft); padding-top: 0.6rem; margin-bottom: 1rem; }
.verb-points { list-style: none; padding: 0 0 1.5rem; margin-top: auto; }
.verb-points li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--ink);
    font-weight: 500;
    padding: 0.34rem 0;
    border-bottom: 1px dashed var(--line);
}
.verb-points li:last-child { border-bottom: none; }
.verb-points i { color: var(--vermilion); }

/* ============================================================
   Features
   ============================================================ */
.features-section { padding: 5.5rem 0; }
.feature-tile {
    height: 100%;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.9rem 1.6rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.feature-tile::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed transparent;
    border-radius: calc(var(--r-lg) - 6px);
    transition: border-color 0.3s ease;
    pointer-events: none;
}
.feature-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green); }
.feature-tile:hover::before { border-color: rgba(44, 110, 73, 0.3); }
.feature-ic {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fffdf8;
    margin-bottom: 1.1rem;
    transition: transform 0.3s ease;
}
.feature-tile:hover .feature-ic { transform: rotate(-6deg) scale(1.06); }
.fi-green { background: linear-gradient(135deg, #2c6e49, #57a377); }
.fi-vermilion { background: linear-gradient(135deg, #d8502f, #ea7a54); }
.fi-gold { background: linear-gradient(135deg, #b08327, #d9b45e); }
.feature-tile h4 { font-size: 0.98rem; font-weight: 700; color: var(--ink); margin-bottom: 0.45rem; }
.feature-tile p { font-size: 0.84rem; color: var(--ink-soft); margin: 0; line-height: 1.8; }

/* POS締めタイル（横型・#posへの導線） */
.feature-tile-pos:hover { border-color: var(--vermilion); }
.feature-tile-pos .ftp-body { min-width: 0; }
.feature-tile-pos .feature-ic { margin-bottom: 0.9rem; }
.feature-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--vermilion);
    text-decoration: none;
    margin-top: 0.8rem;
}
.feature-more .bi { font-size: 0.75rem; transition: transform 0.2s ease; }
.feature-more:hover { color: var(--vermilion-deep); }
.feature-more:hover .bi { transform: translateX(3px); }
@media (min-width: 992px) {
    .feature-tile-pos { display: flex; align-items: flex-start; gap: 1.2rem; }
    .feature-tile-pos .feature-ic { flex-shrink: 0; margin-bottom: 0; }
}

/* ============================================================
   Journey
   ============================================================ */
.journey-section {
    padding: 5.5rem 0;
    background:
        radial-gradient(800px 400px at 90% 10%, rgba(44, 110, 73, 0.06), transparent 60%),
        var(--paper-deep);
}
.journey-path {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.journey-path::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: repeating-linear-gradient(var(--ink-faint) 0 8px, transparent 8px 16px);
}
.jstep {
    position: relative;
    display: flex;
    gap: 1.6rem;
    padding: 1.1rem 0;
}
.jstep-marker {
    flex-shrink: 0;
    width: 56px; height: 56px;
    background: var(--paper-card);
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 1;
    box-shadow: 0 0 0 6px var(--paper-deep);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.jstep:hover .jstep-marker {
    background: var(--green);
    color: #fff;
    transform: scale(1.08);
}
.jstep-card {
    flex: 1;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.jstep:hover .jstep-card { transform: translateX(6px); box-shadow: var(--shadow-md); }
.jstep-phase {
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--vermilion);
}
.jstep-card h3 {
    font-family: var(--mincho);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0.3rem 0 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.jstep-time {
    font-family: var(--gothic);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--green);
    background: var(--green-mist);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
}
.jstep-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-section { padding: 5.5rem 0; background: var(--paper-deep); }

.price-card {
    position: relative;
    height: 100%;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 2.6rem 2.2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.is-featured {
    background: var(--green-deep);
    border-color: var(--green-deep);
    color: var(--paper);
    box-shadow: var(--shadow-lg);
}
.price-hanko {
    position: absolute;
    top: -16px; right: 22px;
    background: var(--vermilion);
    color: #fffdf8;
    font-family: var(--mincho);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    transform: rotate(4deg);
    box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.5), var(--shadow-sm);
}
.price-name {
    font-family: var(--mincho);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.price-desc { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.is-featured .price-desc { color: rgba(246, 241, 229, 0.65); }
.price-figure {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 1.4rem;
}
.is-featured .price-figure { border-bottom-color: rgba(246, 241, 229, 0.2); }
.price-currency { font-size: 1.1rem; font-weight: 700; color: var(--vermilion); }
.is-featured .price-currency { color: var(--gold); }
.price-amount {
    font-family: var(--mincho);
    font-size: 2.9rem;
    font-weight: 900;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    transition: opacity 0.2s ease;
}
.is-featured .price-amount { color: var(--paper); }
.price-period { font-size: 0.78rem; color: var(--ink-faint); margin-left: 0.4rem; }
.is-featured .price-period { color: rgba(246, 241, 229, 0.55); }
.price-list { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.price-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}
.price-list li i { color: var(--green); font-size: 1.05rem; }
.price-list li.is-muted { color: var(--ink-faint); }
.is-featured .price-list li { color: rgba(246, 241, 229, 0.9); }
.is-featured .price-list li i { color: var(--gold); }
.pricing-note { font-size: 0.8rem; color: var(--ink-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: 5.5rem 0; }
.faq-accordion .accordion-item {
    border: 1px solid var(--line);
    border-radius: var(--r-md) !important;
    overflow: hidden;
    margin-bottom: 0.9rem;
    background: var(--paper-card);
    box-shadow: var(--shadow-sm);
}
.faq-accordion .accordion-button {
    font-family: var(--mincho);
    font-weight: 700;
    font-size: 1rem;
    padding: 1.15rem 1.5rem;
    background: var(--paper-card);
    color: var(--ink);
    box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--green-mist);
    color: var(--green-deep);
}
.faq-accordion .accordion-button::after {
    background-image: none;
    content: '+';
    font-family: var(--gothic);
    font-weight: 900;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--vermilion);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
    transition: transform 0.3s ease;
}
.faq-accordion .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.faq-accordion .accordion-body {
    padding: 0 1.5rem 1.2rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.9;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section { padding: 5.5rem 0; }
.cta-scroll {
    position: relative;
    background: var(--green-deep);
    border-radius: var(--r-xl);
    padding: 3.6rem 3rem;
    color: var(--paper);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-scroll::before {
    content: '学';
    position: absolute;
    right: -30px;
    bottom: -70px;
    font-family: var(--mincho);
    font-size: 22rem;
    font-weight: 900;
    color: rgba(246, 241, 229, 0.05);
    line-height: 1;
    pointer-events: none;
}
.cta-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.9rem;
}
.cta-title {
    font-family: var(--mincho);
    font-weight: 900;
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.cta-text { color: rgba(246, 241, 229, 0.75); font-size: 0.95rem; max-width: 520px; }
.cta-contact { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.8rem; }
.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: rgba(246, 241, 229, 0.88);
}
.cta-contact-item i { color: var(--gold); font-size: 1.05rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--ink);
    color: rgba(246, 241, 229, 0.65);
    padding: 4rem 0 2rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; margin-bottom: 1.1rem; }
.footer .brand-text { color: var(--paper); }
.footer .brand-text em { color: rgba(246, 241, 229, 0.45); }
.footer-desc { font-size: 0.85rem; max-width: 340px; line-height: 1.9; margin-bottom: 1rem; }
.footer-company { font-size: 0.8rem; color: rgba(246, 241, 229, 0.4); margin: 0; }
.footer h5 {
    color: var(--paper);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
    color: rgba(246, 241, 229, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(246, 241, 229, 0.12);
    text-align: center;
    font-size: 0.76rem;
    color: rgba(246, 241, 229, 0.35);
}

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--vermilion);
    color: #fffdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    z-index: 1500;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 26px rgba(216, 80, 47, 0.4);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--vermilion-deep); color: #fff; }

/* ============================================================
   Reveal animation
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
    will-change: opacity, transform;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--paper-card);
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        margin-top: 0.8rem;
        padding: 0.8rem 1rem;
    }
    .hero { padding-top: 105px; }
    .hero-stage { padding: 2.5rem 0 1rem; }
    .fc-learn { left: 0; }
    .cta-scroll { padding: 2.6rem 1.6rem; }
    .price-card { padding: 2.2rem 1.6rem; }
}
@media (max-width: 575.98px) {
    .why-row { grid-template-columns: 56px 1fr; padding: 1.4rem 1.1rem; }
    .why-num { width: 56px; height: 56px; font-size: 1.8rem; }
    .float-card { padding: 0.5rem 0.7rem; }
    .fc-body strong { font-size: 0.72rem; }
    .fc-body span { font-size: 0.6rem; }
    .fc-icon { width: 32px; height: 32px; font-size: 0.9rem; }
    .paper-plane { width: 90px; }
    .hero-scroll-hint { display: none; }
}

/* ============================================================
   About page
   ============================================================ */
.about-hero {
    padding: 150px 0 4rem;
    background:
        radial-gradient(600px 300px at 80% 20%, rgba(216, 80, 47, 0.07), transparent 60%),
        var(--paper);
    text-align: center;
}
.about-hero-title {
    font-family: var(--mincho);
    font-weight: 900;
    font-size: clamp(2rem, 4.4vw, 3rem);
    color: var(--ink);
    margin-bottom: 0.8rem;
}
.about-hero-sub { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.about-section { padding: 2rem 0 5.5rem; }
.about-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 3rem 3rem 2.4rem;
    box-shadow: var(--shadow-md);
}
.about-card-head {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 1.2rem;
}
.brand-fuda-lg { width: 74px; height: 74px; font-size: 2.2rem; flex-shrink: 0; }
.about-card-head h2 {
    font-family: var(--mincho);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--ink);
    margin-bottom: 0.2rem;
}
.about-card-tag { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }
.about-table { margin: 0; }
.about-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 0.9rem 0.4rem;
    border-bottom: 1px solid var(--paper-deep);
}
.about-row:last-child { border-bottom: none; }
.about-row dt {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--green);
    letter-spacing: 0.08em;
    margin: 0;
}
.about-row dd { margin: 0; font-size: 0.92rem; color: var(--ink); }

.about-message-section { padding: 1rem 0 5.5rem; }
.about-message-card {
    background: var(--green-deep);
    border-radius: var(--r-xl);
    padding: 3.2rem 3rem;
    color: var(--paper);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-message-card::before {
    content: '言';
    position: absolute;
    right: -20px;
    bottom: -60px;
    font-family: var(--mincho);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(246, 241, 229, 0.05);
    line-height: 1;
    pointer-events: none;
}
.about-message-mark {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    color: var(--gold);
    border: 1px solid rgba(201, 155, 63, 0.5);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.6rem;
}
.about-message-body p {
    color: rgba(246, 241, 229, 0.85);
    font-size: 0.94rem;
    line-height: 2.1;
}
.about-message-body p:first-of-type::first-letter {
    font-family: var(--mincho);
    font-size: 2.1em;
    color: var(--gold);
    line-height: 1;
    margin-right: 0.1em;
}
.about-message-sign {
    margin: 2rem 0 0;
    font-family: var(--mincho);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.5;
}
.about-message-sign span {
    font-family: var(--gothic);
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(246, 241, 229, 0.55);
    letter-spacing: 0.14em;
}
.about-cta-section { padding: 0 0 5.5rem; }

@media (max-width: 767.98px) {
    .about-card { padding: 2.2rem 1.6rem; }
    .about-card-head { flex-direction: column; text-align: center; }
    .about-row { grid-template-columns: 110px 1fr; }
    .about-message-card { padding: 2.4rem 1.6rem; }
}

/* ============================================================
   Compare (うつりかわり)
   ============================================================ */
.compare-section { padding: 5.5rem 0; background: var(--paper-deep); }
.compare-card {
    height: 100%;
    border-radius: var(--r-xl);
    padding: 2.4rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.compare-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cc-before {
    background: var(--paper-card);
    border: 1px solid var(--line);
}
.cc-after {
    background: var(--green-deep);
    color: var(--paper);
    box-shadow: var(--shadow-lg);
}
.cc-after::before {
    content: '移';
    position: absolute;
    right: -14px; bottom: -50px;
    font-family: var(--mincho);
    font-size: 11rem;
    font-weight: 900;
    color: rgba(246, 241, 229, 0.05);
    line-height: 1;
    pointer-events: none;
}
.cc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--mincho);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 1.3rem;
    width: fit-content;
}
.cc-before .cc-badge {
    background: var(--paper-deep);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}
.cc-after .cc-badge {
    background: rgba(246, 241, 229, 0.12);
    color: var(--gold);
}
.cc-face { font-size: 2.2rem; margin-bottom: 1.2rem; }
.cc-before .cc-face { color: var(--ink-faint); }
.cc-after .cc-face { color: var(--gold); }
.cc-list { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.cc-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
    line-height: 1.7;
}
.cc-list li i { flex-shrink: 0; margin-top: 5px; font-size: 0.85rem; }
.cc-before .cc-list li { color: var(--ink-soft); }
.cc-before .cc-list li i { color: var(--vermilion); }
.cc-after .cc-list li { color: rgba(246, 241, 229, 0.9); }
.cc-after .cc-list li i { color: #7fd6a4; }
.cc-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding-top: 1.1rem;
    margin: 0;
}
.cc-before .cc-foot { color: var(--ink-faint); border-top: 1px dashed var(--line); }
.cc-after .cc-foot { color: rgba(246, 241, 229, 0.65); border-top: 1px dashed rgba(246, 241, 229, 0.2); }
.compare-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px; height: 62px;
    background: var(--vermilion);
    color: #fffdf8;
    border-radius: 50%;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(216, 80, 47, 0.35);
    animation: arrow-nudge 2.4s ease-in-out infinite;
}
@keyframes arrow-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

/* ============================================================
   Screen section (画面の哲学)
   ============================================================ */
.screen-section { padding: 5.5rem 0; }
.screen-showcase { max-width: 800px; margin: 0 auto; }
.screen-window {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.sw-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.sw-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.sw-dot:nth-child(1) { background: #e2a89a; }
.sw-dot:nth-child(2) { background: #ddc489; }
.sw-dot:nth-child(3) { background: #a8c9ab; }
.sw-url {
    flex: 1;
    margin-left: 0.5rem;
    font-size: 0.68rem;
    color: var(--ink-faint);
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.22rem 0.75rem;
}
.sw-body { display: flex; min-height: 300px; }
.sw-sidebar {
    flex-shrink: 0;
    width: 62px;
    background: var(--green-deep);
    padding: 0.9rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.sw-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: var(--vermilion);
    color: #fffdf8;
    font-family: var(--mincho);
    font-weight: 700;
    border-radius: 8px;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}
.sw-item {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: rgba(246, 241, 229, 0.45);
    font-size: 0.95rem;
}
.sw-item.is-active { background: rgba(246, 241, 229, 0.14); color: var(--paper); }
.sw-main { flex: 1; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.sw-greet { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sw-hello { display: block; font-family: var(--mincho); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.sw-hello strong { color: var(--green); }
.sw-next { display: block; font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.15rem; }
.sw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--vermilion);
    color: #fffdf8;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 5px 16px rgba(216, 80, 47, 0.28);
}
.sw-courses { display: flex; flex-direction: column; gap: 0.7rem; }
.sw-course {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
}
.sw-course-ic {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fffdf8;
    font-size: 1rem;
}
.sci-green { background: linear-gradient(135deg, #2c6e49, #57a377); }
.sci-gold { background: linear-gradient(135deg, #b08327, #d9b45e); }
.sci-blue { background: linear-gradient(135deg, #1f5c8a, #4e8fc0); }
.sw-course-body { flex: 1; min-width: 0; }
.sw-course-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}
.sw-bar-track {
    height: 6px;
    background: var(--paper-deep);
    border-radius: 3px;
    overflow: hidden;
}
.sw-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--green), #57a377);
    border-radius: 3px;
    transition: width 1.4s cubic-bezier(0.25, 0.8, 0.3, 1) 0.35s;
}
.sw-course-pct { font-size: 0.78rem; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.sw-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--ink-soft);
    background: var(--gold-mist);
    border: 1px dashed var(--gold);
    border-radius: var(--r-md);
    padding: 0.6rem 1rem;
}
.sw-note i { color: var(--gold); }

.screen-pillar {
    height: 100%;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 2.2rem;
}
.sp-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sp-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fffdf8;
}
.sp-quiet { background: linear-gradient(135deg, #1f5c8a, #4e8fc0); }
.sp-deep { background: linear-gradient(135deg, #14352a, #2c6e49); }
.sp-header h3 { font-family: var(--mincho); font-size: 1.25rem; font-weight: 700; margin: 0; }
.sp-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.sp-lead {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.9;
    padding-left: 1rem;
    border-left: 3px solid var(--green-mist);
    margin-bottom: 1.6rem;
}
.sp-items { display: flex; flex-direction: column; gap: 1.3rem; }
.sp-item { display: flex; gap: 1rem; align-items: flex-start; }
.sp-item-ic {
    flex-shrink: 0;
    width: 42px; height: 42px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--green);
}
.sp-item-body h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.sp-item-body p { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.75; margin: 0; }
.screen-close {
    font-family: var(--mincho);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 2;
    border-top: 1px solid var(--line);
    padding-top: 1.8rem;
}
.screen-close i { color: var(--gold); margin-right: 0.3rem; }

/* ============================================================
   Dye section (染め分け)
   ============================================================ */
.dye-section { padding: 5.5rem 0; }
.dye-card { height: 100%; }
.dye-browser {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dye-card:hover .dye-browser { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.db-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.db-dots { display: flex; gap: 4px; }
.db-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.db-dots i:nth-child(1) { background: #e2a89a; }
.db-dots i:nth-child(2) { background: #ddc489; }
.db-dots i:nth-child(3) { background: #a8c9ab; }
.db-url {
    flex: 1;
    font-size: 0.6rem;
    color: var(--ink-faint);
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.db-preview { padding: 0.9rem; min-height: 170px; display: flex; flex-direction: column; gap: 0.7rem; }
.dp-work { background: #eef6f4; }
.dp-school { background: #f1edf8; }
.dp-exam { background: #f9ecec; }
.db-top { display: flex; align-items: center; justify-content: space-between; }
.db-logo { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700; color: var(--ink); }
.db-logo i { display: inline-block; width: 18px; height: 18px; border-radius: 5px; }
.db-nav { display: flex; gap: 5px; }
.db-nav i { width: 18px; height: 4px; border-radius: 2px; background: rgba(34, 29, 21, 0.14); }
.db-hero {
    border-radius: 9px;
    background: rgba(255, 253, 248, 0.75);
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}
.db-line { width: 58%; height: 9px; border-radius: 3px; background: rgba(34, 29, 21, 0.16); }
.db-line.short { width: 38%; height: 6px; }
.db-btn { width: 46px; height: 13px; border-radius: 4px; margin-top: 0.2rem; }
.db-cards { display: flex; gap: 0.5rem; }
.db-cards i { flex: 1; height: 34px; border: 1px dashed rgba(34, 29, 21, 0.15); border-radius: 6px; background: rgba(255, 253, 248, 0.6); }
.dye-label { display: flex; gap: 0.8rem; padding-top: 1.1rem; }
.dye-dot { flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.dye-label h5 { font-family: var(--mincho); font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.dye-label p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }

.dye-tile {
    height: 100%;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.6rem 1.4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dye-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.dye-tile-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--gold-mist);
    border: 1px dashed var(--gold);
    border-radius: 11px;
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
}
.dye-tile h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.dye-tile p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.75; margin: 0; }

.dye-message-card {
    background: var(--green-deep);
    border-radius: var(--r-xl);
    padding: 2.8rem 2.6rem;
    color: var(--paper);
    box-shadow: var(--shadow-lg);
}
.dye-message-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: rgba(246, 241, 229, 0.1);
    border-radius: 11px;
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
}
.dye-message-card h3 { font-family: var(--mincho); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.6rem; }
.dye-message-card p { color: rgba(246, 241, 229, 0.75); font-size: 0.9rem; max-width: 560px; }
.dye-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.4rem;
    margin-top: 1.4rem;
}
.dye-checks span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(246, 241, 229, 0.88);
}
.dye-checks i { color: #7fd6a4; font-size: 0.95rem; }

/* ============================================================
   Scenes (まなびば)
   ============================================================ */
.scenes-section { padding: 5.5rem 0; background: var(--paper-deep); }
.scene-card {
    height: 100%;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2rem 1.8rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.scene-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.scene-no {
    position: absolute;
    top: 1.1rem;
    right: 1.3rem;
    font-family: var(--mincho);
    font-size: 1rem;
    font-weight: 700;
    color: var(--vermilion);
    opacity: 0.55;
}
.scene-ic {
    width: 58px; height: 58px;
    background: var(--green-mist);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--green);
    margin-bottom: 1.1rem;
    transition: transform 0.3s ease;
}
.scene-card:hover .scene-ic { transform: rotate(-6deg) scale(1.06); }
.scene-card h4 { font-family: var(--mincho); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.scene-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--vermilion);
    background: var(--vermilion-mist);
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.scene-card p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.8; margin: 0; }

/* ============================================================
   Interlude (ミドルCTA帯)
   ============================================================ */
.interlude { padding: 3.8rem 0; }
.interlude-alt { padding-top: 0; }
.interlude-inner {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 3rem 2.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.interlude-inner::before,
.interlude-inner::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 7px;
    background: repeating-linear-gradient(var(--vermilion) 0 14px, transparent 14px 26px);
    opacity: 0.5;
}
.interlude-inner::before { left: 0; }
.interlude-inner::after { right: 0; }
.interlude-note {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: var(--green);
    margin-bottom: 1rem;
}
.interlude-text {
    font-family: var(--mincho);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    line-height: 1.6;
    margin-bottom: 0.7rem;
}
.interlude-sub { color: var(--ink-soft); font-size: 0.92rem; margin: 0 auto; max-width: 560px; }

/* ============================================================
   News
   ============================================================ */
.news-section { padding: 5.5rem 0 5rem; }
.news-list {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.news-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.15rem 1.6rem;
    border-bottom: 1px solid var(--paper-deep);
    text-decoration: none;
    transition: background 0.2s ease;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--paper); }
.news-date {
    font-size: 0.8rem;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-width: 88px;
}
.news-tag {
    flex-shrink: 0;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
    min-width: 74px;
    text-align: center;
}
.tag-service { background: var(--green-mist); color: var(--green); }
.tag-info { background: var(--gold-mist); color: var(--gold); }
.tag-media { background: var(--vermilion-mist); color: var(--vermilion); }
.news-title { font-size: 0.9rem; font-weight: 500; color: var(--ink); margin: 0; }
.news-item:hover .news-title { color: var(--green); }

@media (max-width: 767.98px) {
    .compare-arrow { width: 50px; height: 50px; }
    .screen-pillar { padding: 1.6rem 1.3rem; }
    .dye-message-card { padding: 2.2rem 1.6rem; }
    .dye-checks { grid-template-columns: 1fr; }
    .sw-sidebar { width: 52px; }
    .sw-greet { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
    .news-item { flex-wrap: wrap; gap: 0.5rem 1rem; }
}

/* ============================================================
   Failure (5つの型)
   ============================================================ */
.fail-section { padding: 5.5rem 0; }
.fail-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.1rem; }
.fail-item {
    display: flex;
    gap: 1.4rem;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.7rem 1.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fail-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.fail-num {
    flex-shrink: 0;
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mincho);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fffdf8;
    background: var(--ink);
    border-radius: 50%;
}
.fail-item:nth-child(2) .fail-num { background: var(--green); }
.fail-item:nth-child(3) .fail-num { background: var(--gold); }
.fail-item:nth-child(4) .fail-num { background: var(--vermilion); }
.fail-item:nth-child(5) .fail-num { background: var(--green-deep); }
.fail-body { flex: 1; min-width: 0; }
.fail-title { font-family: var(--mincho); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.fail-text { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.fail-fix {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    background: var(--green-mist);
    border: 1px dashed var(--green);
    border-radius: var(--r-md);
    padding: 0.75rem 1.05rem;
    font-size: 0.84rem;
    line-height: 1.7;
}
.fail-fix i { color: var(--green); font-size: 1rem; margin-top: 3px; flex-shrink: 0; }
.fail-fix strong { color: var(--green-deep); }
.fail-close {
    font-family: var(--mincho);
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 2;
    margin-top: 2.2rem;
}
.fail-close i { color: var(--gold); margin-right: 0.3rem; }
.fail-close strong { color: var(--vermilion); }

/* ============================================================
   Compare table (3方式比較)
   ============================================================ */
.compare-table-wrap { border-top: 1px solid var(--line); }
.compare-table-title {
    font-family: var(--mincho);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 1.6rem;
}
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    font-size: 0.88rem;
}
.compare-table th, .compare-table td { padding: 0.95rem 1.2rem; vertical-align: middle; }
.compare-table thead th {
    background: var(--paper);
    border-bottom: 2px solid var(--line);
    font-family: var(--mincho);
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    white-space: nowrap;
}
.compare-table tbody th {
    font-weight: 700;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--paper-deep);
    white-space: nowrap;
}
.compare-table tbody td {
    color: var(--ink-soft);
    text-align: center;
    border-bottom: 1px solid var(--paper-deep);
    border-left: 1px solid var(--paper-deep);
}
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .ct-hero {
    background: var(--green-deep);
    color: var(--paper) !important;
    font-weight: 700;
    border-bottom-color: rgba(246, 241, 229, 0.15) !important;
    position: relative;
}
.compare-table thead .ct-hero { border-radius: 0; }
.compare-table-note { font-size: 0.76rem; color: var(--ink-faint); }

/* ============================================================
   Gallery (まなびの間取り)
   ============================================================ */
.gallery-section { padding: 5.5rem 0; background: var(--paper-deep); }
.gal-card { text-align: center; }
.gal-cap { margin: 1.4rem auto 0; font-size: 0.88rem; color: var(--ink-soft); max-width: 320px; line-height: 1.8; }
.gal-cap-tag {
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.24em;
    color: var(--vermilion);
    margin-bottom: 0.35rem;
}

/* スマホ */
.gal-phone {
    width: 230px;
    margin: 0 auto;
    background: var(--green-deep);
    border-radius: 30px;
    padding: 0.8rem 0.65rem 1rem;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(246, 241, 229, 0.08);
    position: relative;
}
.gp-notch {
    position: absolute;
    top: 0.8rem; left: 50%;
    transform: translateX(-50%);
    width: 64px; height: 8px;
    background: rgba(246, 241, 229, 0.25);
    border-radius: 99px;
}
.gp-player {
    margin-top: 1.4rem;
    background: #10241b;
    border-radius: 14px;
    padding: 1.5rem 0.9rem 1rem;
    text-align: center;
}
.gp-player i { font-size: 2.2rem; color: var(--paper); opacity: 0.9; }
.gp-title { display: block; color: var(--paper); font-size: 0.78rem; font-weight: 700; margin-top: 0.5rem; }
.gp-time { display: block; color: rgba(246, 241, 229, 0.45); font-size: 0.62rem; margin-top: 0.2rem; font-variant-numeric: tabular-nums; }
.gp-track { height: 4px; background: rgba(246, 241, 229, 0.15); border-radius: 2px; margin-top: 0.7rem; overflow: hidden; }
.gp-fill { display: block; height: 100%; background: var(--vermilion); border-radius: 2px; }
.gp-list { margin-top: 0.7rem; text-align: left; }
.gp-item {
    display: block;
    color: rgba(246, 241, 229, 0.55);
    font-size: 0.68rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
}
.gp-item.is-now { background: rgba(246, 241, 229, 0.12); color: var(--paper); font-weight: 700; }
.gp-btn {
    display: block;
    margin: 0.8rem 0.4rem 0;
    background: var(--vermilion);
    color: #fffdf8;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.55rem;
    border-radius: 999px;
}

/* レポート */
.gal-report {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: left;
}
.gr-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.gr-title { font-family: var(--mincho); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0; }
.gr-sub { font-size: 0.68rem; color: var(--ink-faint); }
.gr-bars { display: flex; align-items: flex-end; gap: 0.55rem; height: 110px; }
.gr-bar { flex: 1; background: linear-gradient(to top, var(--green), #57a377); border-radius: 5px 5px 0 0; min-height: 8px; }
.gr-bar.is-peak { background: linear-gradient(to top, var(--vermilion), #ea7a54); }
.gr-labels { display: flex; gap: 0.55rem; margin-top: 0.4rem; }
.gr-labels span { flex: 1; text-align: center; font-size: 0.6rem; color: var(--ink-faint); }
.gr-rows { margin-top: 1.1rem; border-top: 1px dashed var(--line); padding-top: 0.9rem; display: flex; flex-direction: column; gap: 0.45rem; }
.gr-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--ink-soft); }
.gr-row strong { color: var(--green-deep); font-variant-numeric: tabular-nums; }

/* 修了証 */
.gal-cert {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 0.9rem;
    box-shadow: var(--shadow-md);
}
.gc-inner {
    border: 2px solid var(--green-deep);
    border-radius: 12px;
    padding: 1.6rem 1.3rem 1.2rem;
    text-align: center;
    position: relative;
    background:
        radial-gradient(320px 140px at 50% 0%, rgba(44, 110, 73, 0.05), transparent 70%),
        var(--paper-card);
}
.gc-inner::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid var(--gold);
    border-radius: 9px;
    pointer-events: none;
}
.gc-head { font-family: var(--mincho); font-size: 1.2rem; font-weight: 900; letter-spacing: 0.5em; color: var(--green-deep); margin: 0 0 0.8rem; }
.gc-course { font-size: 0.72rem; color: var(--ink-soft); margin: 0 0 0.9rem; }
.gc-name { font-family: var(--mincho); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 0.7rem; }
.gc-req { font-size: 0.66rem; color: var(--ink-soft); line-height: 1.8; margin: 0 0 1rem; }
.gc-foot { display: flex; align-items: flex-end; justify-content: space-between; }
.gc-foot span:first-child { font-size: 0.62rem; color: var(--ink-faint); text-align: left; line-height: 1.7; }
.gc-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--vermilion);
    color: #fffdf8;
    font-family: var(--mincho);
    font-weight: 700;
    border-radius: 50%;
    font-size: 0.95rem;
    transform: rotate(-8deg);
    box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.5);
}

/* ============================================================
   Security (安心の礎)
   ============================================================ */
.security-section { padding: 5.5rem 0; background: var(--ink); color: var(--paper); }
.security-section .sec-label { color: var(--gold); }
.security-section .sec-label-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 155, 63, 0.18); }
.security-section .sec-title { color: var(--paper); }
.security-section .sec-sub { color: rgba(246, 241, 229, 0.6); }
.security-hero {
    background: rgba(246, 241, 229, 0.05);
    border: 1px solid rgba(246, 241, 229, 0.12);
    border-radius: var(--r-xl);
    padding: 2.4rem 2.2rem;
}
.sec-big-num {
    font-family: var(--mincho);
    font-size: clamp(3rem, 6vw, 4.4rem);
    font-weight: 900;
    line-height: 1;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.sec-big-unit { font-size: 1.4rem; margin-left: 0.2rem; }
.sec-big-cap { color: rgba(246, 241, 229, 0.55); font-size: 0.85rem; margin: 0.6rem 0 0; }
.security-picks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.security-picks li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.92rem; color: rgba(246, 241, 229, 0.85); }
.security-picks i { color: var(--gold); font-size: 1.05rem; flex-shrink: 0; }
.security-tile {
    height: 100%;
    background: rgba(246, 241, 229, 0.04);
    border: 1px solid rgba(246, 241, 229, 0.12);
    border-radius: var(--r-lg);
    padding: 1.7rem 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}
.security-tile:hover { transform: translateY(-5px); background: rgba(246, 241, 229, 0.07); }
.security-tile h5 { font-size: 0.95rem; font-weight: 700; color: var(--paper); margin-bottom: 0.5rem; }
.security-tile p { font-size: 0.84rem; color: rgba(246, 241, 229, 0.6); line-height: 1.8; margin: 0; }
.st-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    color: #fffdf8;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.st-green { background: linear-gradient(135deg, #2c6e49, #57a377); }
.st-vermilion { background: linear-gradient(135deg, #d8502f, #ea7a54); }
.st-gold { background: linear-gradient(135deg, #b08327, #d9b45e); }

/* ============================================================
   Catalog (ひな型の本棚)
   ============================================================ */
.catalog-section { padding: 5.5rem 0; }
.catalog-card {
    height: 100%;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.catalog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-head {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fffdf8;
    position: relative;
}
.cat-head::after {
    content: '';
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    width: 46px; height: 3px;
    background: rgba(255, 253, 248, 0.55);
    border-radius: 2px;
}
.ch-green { background: linear-gradient(135deg, #2c6e49, #57a377); }
.ch-blue { background: linear-gradient(135deg, #1f5c8a, #4e8fc0); }
.ch-vermilion { background: linear-gradient(135deg, #d8502f, #ea7a54); }
.ch-gold { background: linear-gradient(135deg, #b08327, #d9b45e); }
.cat-body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.cat-body h4 { font-family: var(--mincho); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.cat-body p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 1rem; }
.cat-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--line);
    font-size: 0.76rem;
    color: var(--ink-soft);
}
.cat-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.cat-meta i { color: var(--green); }
.cat-test { color: var(--vermilion); font-weight: 700; }
.cat-free { color: var(--gold); font-weight: 700; }
.catalog-note { font-size: 0.8rem; color: var(--ink-soft); margin: 1.8rem 0 0; }
.catalog-note i { color: var(--green); margin-right: 0.3rem; }

/* ============================================================
   Works (導入の声)
   ============================================================ */
.works-section { padding: 5.5rem 0; background: var(--paper-deep); }
.work-card {
    height: 100%;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 2rem 1.9rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card::before {
    content: '“';
    position: absolute;
    top: 0.6rem;
    right: 1.3rem;
    font-family: var(--mincho);
    font-size: 3.6rem;
    line-height: 1;
    color: var(--green-mist);
}
.work-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    color: var(--green-deep);
    background: var(--green-mist);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}
.work-quote {
    font-family: var(--mincho);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.95;
    color: var(--ink);
    flex: 1;
    margin-bottom: 1.3rem;
}
.work-who { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.3rem; }
.work-avatar { font-size: 1.9rem; color: var(--ink-faint); }
.work-who strong { display: block; font-size: 0.85rem; }
.work-who span:not(.work-avatar) { display: block; font-size: 0.72rem; color: var(--ink-faint); }
.work-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--r-md);
    padding: 0.9rem 1.1rem;
}
.work-stat { text-align: center; flex: 1; }
.ws-num {
    display: block;
    font-family: var(--mincho);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.ws-num.is-green { color: var(--green); }
.ws-num i { font-style: normal; font-size: 0.72rem; font-weight: 600; margin-left: 0.15rem; }
.ws-cap { display: block; font-size: 0.66rem; color: var(--ink-faint); margin-top: 0.25rem; }
.work-arrow { color: var(--vermilion); font-size: 1.1rem; }
.works-chart { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 2.4rem 2.4rem; }
.wc-title { font-family: var(--mincho); font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
.wc-sub { font-size: 0.78rem; color: var(--ink-faint); margin: 0; }
.wchart { display: flex; flex-direction: column; gap: 0.85rem; }
.wchart-row { display: flex; align-items: center; gap: 0.9rem; }
.wchart-label { width: 110px; flex-shrink: 0; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); text-align: right; }
.wchart-track { flex: 1; height: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.wchart-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--green), #57a377);
    border-radius: 7px;
    transition: width 1.3s cubic-bezier(0.25, 0.8, 0.3, 1) 0.3s;
}
.wchart-row:nth-child(1) .wchart-bar { background: linear-gradient(90deg, var(--green-deep), var(--green)); }
.wchart-row:nth-child(5) .wchart-bar { background: linear-gradient(90deg, #b08327, #d9b45e); }
.wchart-val { width: 44px; flex-shrink: 0; font-size: 0.78rem; font-weight: 700; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.works-note { font-size: 0.74rem; color: var(--ink-faint); }

/* ============================================================
   Calendar (一年のめぐり)
   ============================================================ */
.calendar-section { padding: 5.5rem 0; }
.cal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}
.cal-cell {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0.9rem 1rem 1.05rem;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cal-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.cal-cell.is-peak {
    background: var(--green-deep);
    border-color: var(--green-deep);
}
.cal-month {
    font-family: var(--mincho);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--ink);
}
.is-peak .cal-month { color: var(--gold); }
.cal-month::after {
    content: '';
    display: block;
    width: 22px; height: 2px;
    background: var(--vermilion);
    margin-top: 0.3rem;
}
.is-peak .cal-month::after { background: var(--gold); }
.cal-event { font-size: 0.72rem; line-height: 1.7; color: var(--ink-soft); }
.is-peak .cal-event { color: rgba(246, 241, 229, 0.8); }
.calendar-note { font-size: 0.85rem; color: var(--ink-soft); margin: 1.8rem 0 0; }
.calendar-note i { color: var(--vermilion); margin-right: 0.3rem; }

/* ============================================================
   ROI (かんたん試算)
   ============================================================ */
.roi-section { padding: 5.5rem 0; background: var(--paper-deep); }
.roi-panel {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.roi-inputs { background: var(--paper); padding: 2.4rem 2.2rem; height: 100%; }
.ri-title { font-family: var(--mincho); font-size: 1.15rem; font-weight: 700; margin-bottom: 1.6rem; }
.roi-field { margin-bottom: 1.3rem; }
.roi-field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.45rem; }
.ri-control { display: flex; align-items: center; gap: 0.6rem; }
.ri-control input {
    flex: 1;
    width: 100%;
    font-family: var(--mincho);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0.55rem 0.9rem;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ri-control input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(44, 110, 73, 0.15);
}
.ri-unit { font-size: 0.8rem; font-weight: 700; color: var(--ink-faint); white-space: nowrap; }
.ri-unit.is-prefix { margin-left: 0.9rem; }
.ri-note { font-size: 0.72rem; color: var(--ink-faint); line-height: 1.8; margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); }
.ri-note i { color: var(--green); margin-right: 0.25rem; }
.roi-output { padding: 2.4rem 2.2rem; }
.ro-title { font-family: var(--mincho); font-size: 1.15rem; font-weight: 700; margin-bottom: 1.4rem; color: var(--paper); }
.ro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1.4rem; }
.ro-cell {
    background: rgba(246, 241, 229, 0.05);
    border: 1px solid rgba(246, 241, 229, 0.12);
    border-radius: var(--r-md);
    padding: 1.15rem 1.2rem;
}
.ro-cell.is-hero {
    grid-column: 1 / -1;
    background: var(--vermilion-mist);
    border: 1px dashed var(--vermilion);
}
.ro-label { display: block; font-size: 0.74rem; font-weight: 700; color: rgba(246, 241, 229, 0.65); margin-bottom: 0.5rem; }
.is-hero .ro-label { color: var(--vermilion-deep); }
.ro-num { font-family: var(--mincho); font-size: 1.9rem; font-weight: 900; color: var(--gold); line-height: 1.2; font-variant-numeric: tabular-nums; }
.ro-num i { font-style: normal; font-size: 0.72rem; font-weight: 600; color: rgba(246, 241, 229, 0.55); margin-left: 0.3rem; }
.is-hero .ro-num { color: var(--vermilion-deep); font-size: 2.1rem; }
.ro-sub { display: block; font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.45rem; line-height: 1.7; }
.ro-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ro-cta .btn-ghost { border-color: rgba(246, 241, 229, 0.4); color: var(--paper); }
.ro-cta .btn-ghost:hover { background: rgba(246, 241, 229, 0.12); border-color: var(--paper); color: #fff; }
.ro-note { font-size: 0.7rem; color: rgba(246, 241, 229, 0.4); margin: 0; }
.roi-panel .row > .col-lg-7 { background: var(--green-deep); }
.roi-panel .row > .col-lg-5 { background: var(--paper); }

/* ============================================================
   Downloads (おくりもの)
   ============================================================ */
.downloads-section { padding: 5.5rem 0; }
.dl-card {
    height: 100%;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.8rem 1.7rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.dl-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--vermilion));
}
.dl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.dl-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: 13px;
    font-size: 1.35rem;
    color: var(--green);
}
.dl-pages {
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
    background: var(--paper);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
}
.dl-card h4 { font-family: var(--mincho); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.dl-card p { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 1.3rem; flex: 1; }
.dl-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vermilion);
    text-decoration: none;
    border-top: 1px dashed var(--line);
    padding-top: 1rem;
    transition: color 0.2s ease;
}
.dl-link:hover { color: var(--vermilion-deep); }
.downloads-note { font-size: 0.8rem; color: var(--ink-soft); margin: 1.6rem 0 0; }

/* ============================================================
   Glossary (ことばの小さな事典)
   ============================================================ */
.glossary-section { padding: 5.5rem 0; background: var(--paper-deep); }
.gloss-card {
    height: 100%;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.7rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.gloss-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green); }
.gloss-term { font-family: var(--mincho); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; }
.gloss-yomi {
    font-family: var(--gothic);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--ink-faint);
    margin-left: 0.6rem;
}
.gloss-def { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.9; margin: 0; }

/* ============================================================
   CTA form (お問い合わせフォーム)
   ============================================================ */
.cta-form-wrap { margin-top: 2.2rem; }
.cta-form-head { margin-bottom: 1.6rem; }
.cta-form-title { font-family: var(--mincho); font-weight: 900; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ink); }
.cta-form {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 2.4rem 2.3rem;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cf-field { margin-bottom: 1.1rem; }
.cf-label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.cf-req, .cf-opt {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.45rem;
    vertical-align: 1px;
}
.cf-req { background: var(--vermilion); color: #fffdf8; }
.cf-opt { background: var(--paper); color: var(--ink-faint); border: 1px solid var(--line); }
.cf-input {
    width: 100%;
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0.7rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cf-input::placeholder { color: var(--ink-faint); }
.cf-input:focus {
    outline: none;
    background: var(--paper-card);
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(44, 110, 73, 0.15);
}
.cf-input.is-invalid { border-color: var(--vermilion); box-shadow: 0 0 0 3px rgba(216, 80, 47, 0.12); }
.cf-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%236f6757'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.cf-textarea { resize: vertical; min-height: 110px; }
.cf-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-bottom: 1.4rem;
    cursor: pointer;
    line-height: 1.7;
}
.cf-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--vermilion); flex-shrink: 0; }
.cf-check a { color: var(--green); }
.cf-note { font-size: 0.72rem; color: var(--ink-faint); text-align: center; margin: 0.9rem 0 0; }
.cf-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; opacity: 0; }
.cf-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    color: var(--vermilion-deep);
    background: var(--vermilion-mist);
    border: 1px solid rgba(216, 80, 47, 0.35);
    border-radius: var(--r-md);
    padding: 0.7rem 1rem;
    margin: 0.9rem 0 0;
    white-space: pre-line;
}
.cf-error[hidden] { display: none; }
.cf-submit:disabled { opacity: 0.65; cursor: wait; }
.cta-thanks {
    max-width: 860px;
    margin: 0 auto;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 3.2rem 2.4rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.cta-thanks-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    background: var(--vermilion);
    color: #fffdf8;
    font-family: var(--mincho);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    transform: rotate(-6deg);
    box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.5), var(--shadow-sm);
    margin-bottom: 1.4rem;
}
.cta-thanks h3 { font-family: var(--mincho); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.8rem; }
.cta-thanks p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.6rem; }

/* ============================================================
   Footer legal
   ============================================================ */
.footer-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(246, 241, 229, 0.12);
}
.footer-legal a {
    font-size: 0.76rem;
    color: rgba(246, 241, 229, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-hero {
    padding: 150px 0 3.4rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.legal-hero-title { font-family: var(--mincho); font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 0.6rem; }
.legal-hero-sub { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.legal-section { padding: 3.6rem 0 5rem; }
.legal-body { max-width: 800px; }
.legal-updated { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 2.2rem; }
.legal-sec { margin-bottom: 2.4rem; }
.legal-h {
    font-family: var(--mincho);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
    padding-left: 0.9rem;
    border-left: 4px solid var(--vermilion);
    margin-bottom: 1rem;
}
.legal-p { font-size: 0.9rem; color: var(--ink-soft); line-height: 2.05; margin-bottom: 0.9rem; }
.legal-list { padding-left: 0; list-style: none; margin-bottom: 0.9rem; }
.legal-list li {
    position: relative;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 2;
    padding-left: 1.4rem;
}
.legal-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
}
.legal-table { width: 100%; border-collapse: collapse; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 0.88rem; }
.legal-table th, .legal-table td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--paper-deep); vertical-align: top; }
.legal-table th { background: var(--paper); font-weight: 700; color: var(--ink); white-space: nowrap; width: 180px; }
.legal-table td { color: var(--ink-soft); }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: none; }

@media (max-width: 991.98px) {
    .roi-panel .row > .col-lg-5, .roi-panel .row > .col-lg-7 { width: 100%; }
}
@media (max-width: 767.98px) {
    .fail-item { flex-direction: column; gap: 0.9rem; padding: 1.4rem 1.2rem; }
    .cal-grid { grid-template-columns: repeat(2, 1fr); }
    .ro-grid { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
    .wchart-label { width: 84px; font-size: 0.7rem; }
    .works-chart { padding: 1.7rem 1.3rem; }
    .cta-form { padding: 1.7rem 1.3rem; }
    .compare-table thead th, .compare-table tbody th, .compare-table tbody td { padding: 0.7rem 0.6rem; font-size: 0.76rem; }
    .compare-table tbody th { white-space: normal; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; }
    .hero-title .char { opacity: 1; transform: none; }
    .enso-path { stroke-dashoffset: 0; }
}
