/* 月極台帳 LP
   見た目: 明朝の大見出し（Shippori Mincho B1）× アクセント 1 色（藍）× 生成りの地 ＋ グレインを控えめに
   動き:   ヒーローは テキストリビール、区画マップは スタッガー、各節は フェードイン＋スタッガー
   反応:   ホバーリフト 0.2 秒、下線スライド（ナビ）、プレス縮み（CTA）、アイコン回転（FAQ） */

:root {
  --ink: #1b2340;
  --ink-2: #3a4160;
  --muted: #585d75;
  --indigo: #2f4a9c;
  --indigo-deep: #24315e;
  --indigo-soft: #e3e8f6;
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --paper-3: #e7e1d2;
  --white: #fffdf9;
  --line: #d9d3c4;
  --wakatake: #4f9a6a;
  --wakatake-soft: #e2f0e6;
  --yamabuki: #d99a2b;
  --yamabuki-soft: #fbefd6;
  --shu: #c7432b;
  --shu-soft: #f9e2dc;
  --asagi: #4f93a8;
  --asagi-soft: #e0eef2;
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --shadow-soft: 0 24px 60px -24px rgba(27, 35, 64, .28), 0 4px 14px -6px rgba(27, 35, 64, .12);
  --shadow-card: 0 1px 2px rgba(27, 35, 64, .05), 0 10px 30px -18px rgba(27, 35, 64, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt";
  overflow-x: hidden;
}
/* グレイン: 画面全体に薄く */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .05;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 8px; }
.sp-only { display: none; }
@media (max-width: 640px) { .sp-only { display: inline; } .wrap { width: min(1160px, 100% - 32px); } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; letter-spacing: .02em; line-height: 1;
  border-radius: 999px; padding: 14px 24px; min-height: 48px;
  transition: transform .18s var(--ease), background-color .18s, color .18s, box-shadow .18s, border-color .18s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px -12px rgba(47, 74, 156, .7); }
.btn--primary:hover { background: var(--indigo-deep); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--indigo-deep); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn--lg { padding: 18px 30px; font-size: 17px; min-height: 56px; }
.btn--sm { padding: 10px 18px; min-height: 40px; font-size: 14px; }

/* ---------- ナビ ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(27, 35, 64, .3); }
.nav__in { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 20px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; }
.brand__mark { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 22px; height: 22px; align-self: center; }
.brand__mark i { display: block; border-radius: 2px; background: var(--indigo); }
.brand__mark i:nth-child(2) { background: var(--wakatake); }
.brand__mark i:nth-child(3) { background: var(--indigo); opacity: .35; }
.brand__mark i:nth-child(4) { background: var(--indigo); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--ink); }
.brand__by { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.menu { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.menu a:not(.btn) { position: relative; padding: 6px 0; color: var(--ink-2); }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--indigo); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.menu__login { color: var(--indigo) !important; }
.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 10px; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger i:nth-child(1) { top: 14px; } .burger i:nth-child(2) { top: 21px; } .burger i:nth-child(3) { top: 28px; }
.nav.is-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .burger i:nth-child(2) { opacity: 0; }
.nav.is-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; box-shadow: 0 30px 40px -30px rgba(27, 35, 64, .4);
    transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform .25s var(--ease), opacity .2s, visibility 0s .25s;
  }
  .nav.is-open .menu { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition: transform .25s var(--ease), opacity .2s; }
  .menu a:not(.btn) { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 16px; }
}

/* ---------- 共通セクション ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec__no { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--indigo); margin-bottom: 18px; }
.sec__no span { color: var(--muted); }
.sec__no--light, .sec__no--light span { color: rgba(255, 255, 255, .7); }
.sec__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(27px, 3.6vw, 42px); line-height: 1.38; letter-spacing: .01em;
  margin-bottom: clamp(32px, 5vw, 56px); text-wrap: balance;
}
.sec__title em { font-style: normal; color: var(--indigo); }

/* 出てくる動き: フェードイン＋スタッガー（JS が動くときだけ隠す。JS なし・印刷はそのまま表示） */
.reveal-ready .reveal-group:not(.is-in) > * { opacity: 0; transform: translateY(18px); }
.reveal-ready .reveal-group.is-in > * { animation: reveal .7s var(--ease) backwards; }
.reveal-ready .reveal-group.is-in > *:nth-child(2) { animation-delay: .08s; }
.reveal-ready .reveal-group.is-in > *:nth-child(3) { animation-delay: .16s; }
.reveal-ready .reveal-group.is-in > *:nth-child(4) { animation-delay: .24s; }
.reveal-ready .reveal-group.is-in > *:nth-child(5) { animation-delay: .32s; }
.reveal-ready .reveal-group.is-in > *:nth-child(6) { animation-delay: .40s; }
.reveal-ready .reveal-group.is-in > *:nth-child(7) { animation-delay: .48s; }
.reveal-ready .reveal-group.is-in > *:nth-child(8) { animation-delay: .56s; }
.reveal-ready .reveal-group.is-in > *:nth-child(n+9) { animation-delay: .64s; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.no-motion .reveal-group > *, .reveal-ready.no-motion .reveal-group:not(.is-in) > * { animation: none; opacity: 1; transform: none; }
@media print {
  .reveal-ready .reveal-group > * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .nav, .sticky-cta, .burger, body::before { display: none !important; }
  .reveal-line > span, .mock, .float, .sp { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 10%, var(--indigo-soft) 0%, transparent 60%),
    radial-gradient(40% 40% at 10% 90%, var(--yamabuki-soft) 0%, transparent 60%);
}
/* 地の罫線: 台帳のマス目を薄く */
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 80%);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; color: var(--indigo); margin-bottom: 22px; }
.eyebrow span::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--indigo); vertical-align: middle; margin-right: 12px; }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 3.9vw, 54px); line-height: 1.3; letter-spacing: .01em;
  margin-bottom: 26px;
}
.hero__title em { font-style: normal; color: var(--indigo); position: relative; }
.hero__title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--yamabuki-soft); z-index: -1; border-radius: 2px; }
.hero__lead { font-size: 17px; line-height: 2; color: var(--ink-2); max-width: 36em; margin-bottom: 32px; }
.hero__cta > span { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cta.reveal-line { overflow: visible; }
.hero__cta.reveal-line > span { transform: translateY(14px); opacity: 0; animation: fade .8s var(--ease) .58s forwards; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wakatake); }
.hero__facts b { color: var(--ink); font-weight: 700; }

/* テキストリビール: 行ごとにせり上がる（読み込み時 1 回） */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
.hero__title .reveal-line { padding-bottom: .08em; margin-bottom: -.08em; }
.hero__copy .reveal-line:nth-child(1) > span { animation-delay: .05s; }
.hero__title .reveal-line:nth-child(1) > span { animation-delay: .15s; }
.hero__title .reveal-line:nth-child(2) > span { animation-delay: .27s; }
.hero__lead > span { animation-delay: .45s; }
.hero__facts > span, .hero__facts { animation-delay: .7s; }
.hero__facts.reveal-line { overflow: visible; transform: translateY(14px); opacity: 0; animation: fade .8s var(--ease) .72s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { transform: none; opacity: 1; } }

/* ヒーローの画面モック */
.hero__visual { position: relative; }
.mock {
  background: var(--white); border-radius: var(--r-l); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft); overflow: hidden;
  transform: rotate(-1.2deg); transform-origin: 60% 40%;
  animation: settle 1.2s var(--ease) .3s both;
}
@keyframes settle { from { opacity: 0; transform: rotate(-1.2deg) translateY(28px); } to { opacity: 1; transform: rotate(-1.2deg) translateY(0); } }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock__url { margin-left: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: var(--white); border-radius: 6px; padding: 3px 10px; flex: 1; }
.mock__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 18px 20px 8px; }
.mock__eyebrow { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.mock__h { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; }
.mock__h small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.mock__legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.mock__legend span { display: inline-flex; align-items: center; gap: 5px; }
.mock__legend i { width: 10px; height: 10px; border-radius: 3px; }
.c-used { background: var(--indigo); } .c-free { background: var(--white); border: 1.5px solid var(--indigo); } .c-due { background: var(--shu); }
.lot { position: relative; margin: 6px 20px 14px; padding: 26px 16px 32px; background: var(--paper-2); border-radius: var(--r-m); }
.lot__road { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: repeating-linear-gradient(90deg, var(--paper-3) 0 14px, transparent 14px 24px); border-radius: var(--r-m) var(--r-m) 0 0; }
.lot__road span { position: absolute; right: 12px; top: 1px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.lot__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sp {
  aspect-ratio: 1 / 1.35; border-radius: 6px; display: grid; place-items: end start; padding: 5px 6px;
  font-family: var(--font-mono); font-size: 11px; position: relative;
  opacity: 0; transform: scale(.85); animation: pop .5s var(--ease) forwards;
}
.sp.used { background: var(--indigo); color: #fff; }
.sp.free { background: var(--white); border: 1.5px dashed var(--indigo); color: var(--indigo); }
.sp.due::after { content: ""; position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--shu); box-shadow: 0 0 0 2px var(--indigo); animation: pulse 2.2s ease-out infinite; }
.lot__grid .sp:nth-child(1) { animation-delay: .5s; } .lot__grid .sp:nth-child(2) { animation-delay: .55s; } .lot__grid .sp:nth-child(3) { animation-delay: .6s; }
.lot__grid .sp:nth-child(4) { animation-delay: .65s; } .lot__grid .sp:nth-child(5) { animation-delay: .7s; } .lot__grid .sp:nth-child(6) { animation-delay: .75s; }
.lot__grid .sp:nth-child(7) { animation-delay: .8s; } .lot__grid .sp:nth-child(8) { animation-delay: .85s; } .lot__grid .sp:nth-child(9) { animation-delay: .9s; }
.lot__grid .sp:nth-child(10) { animation-delay: .95s; } .lot__grid .sp:nth-child(11) { animation-delay: 1s; } .lot__grid .sp:nth-child(12) { animation-delay: 1.05s; }
.lot__grid .sp:nth-child(13) { animation-delay: 1.1s; } .lot__grid .sp:nth-child(14) { animation-delay: 1.15s; } .lot__grid .sp:nth-child(15) { animation-delay: 1.2s; }
.lot__grid .sp:nth-child(16) { animation-delay: 1.25s; } .lot__grid .sp:nth-child(17) { animation-delay: 1.3s; } .lot__grid .sp:nth-child(18) { animation-delay: 1.35s; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 2px var(--indigo), 0 0 0 0 rgba(199, 67, 43, .6); } 100% { box-shadow: 0 0 0 2px var(--indigo), 0 0 0 10px rgba(199, 67, 43, 0); } }
.lot__gate { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10px; color: var(--muted); background: var(--white); padding: 2px 12px; border-radius: 6px 6px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 20px 20px; }
.kpi { border-radius: 10px; padding: 10px 12px; border: 1px solid var(--line); background: var(--white); }
.kpi p { font-size: 11px; color: var(--muted); }
.kpi b { font-family: var(--font-display); font-size: 22px; line-height: 1.1; display: block; margin-top: 2px; }
.kpi b small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: 3px; font-weight: 400; }
.kpi--ok { border-color: var(--wakatake-soft); background: var(--wakatake-soft); } .kpi--ok b { color: var(--wakatake); }
.kpi--warn { border-color: var(--shu-soft); background: var(--shu-soft); } .kpi--warn b { color: var(--shu); }
.kpi--info { border-color: var(--asagi-soft); background: var(--asagi-soft); } .kpi--info b { color: var(--asagi); }

.float { position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-soft); animation: floatin 1s var(--ease) both; }
@keyframes floatin { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.float--pay { left: -7%; bottom: -5%; width: 250px; padding: 14px 16px; animation-delay: 1.3s; }
.float__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.float__title svg { width: 16px; height: 16px; fill: none; stroke: var(--indigo); stroke-width: 2; stroke-linecap: round; }
.float--pay li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); padding: 6px 0; border-top: 1px dashed var(--line); }
.float--pay li b { font-family: var(--font-body); font-size: 11px; color: var(--wakatake); background: var(--wakatake-soft); border-radius: 999px; padding: 2px 8px; }
.float--pay li b.is-hold { color: var(--yamabuki); background: var(--yamabuki-soft); }
.float--lock { right: -3%; top: -26px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; font-size: 13px; font-weight: 700; line-height: 1.4; animation-delay: 1.6s; }
.float--lock small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.float--lock svg { width: 30px; height: 30px; fill: none; stroke: var(--indigo); stroke-width: 1.8; stroke-linecap: round; background: var(--indigo-soft); border-radius: 10px; padding: 5px; }

@media (max-width: 1000px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin: 8px auto 0; }
  .float--pay { left: 0; bottom: -8%; }
  .float--lock { right: 0; top: -22px; }
}
@media (max-width: 640px) {
  .hero__title { font-size: clamp(27px, 8.4vw, 34px); }
  .hero__lead { font-size: 15.5px; }
  .hero__cta > span .btn { flex: 1 1 100%; }
  .mock__legend { display: none; }
  .lot__grid { gap: 4px; }
  .float--pay { display: none; }
  .float--lock { padding: 10px 12px 10px 10px; font-size: 12px; }
  .mock__kpis { gap: 6px; padding: 0 14px 14px; }
  .lot { margin: 6px 14px 12px; }
  .mock__head { padding: 14px 14px 6px; }
}

/* ---------- 課題提起 ---------- */
.sec--problem { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.problem {
  position: relative; padding: 26px 22px 24px; border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--paper); font-size: 14.5px; line-height: 1.9; color: var(--ink-2);
}
.problem::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; background: var(--paper-3); border-radius: 0 0 3px 3px; }
.problem__file { font-family: var(--font-mono); font-size: 13px; color: var(--ink); font-weight: 500; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.problem__file::before { content: "▤ "; color: var(--muted); }
.problem--sum { grid-column: 1 / -1; background: var(--indigo-soft); border-color: transparent; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: baseline; }
.problem--sum::before { background: var(--indigo); }
.problem--sum .problem__file { border: 0; margin: 0; padding: 0; font-family: var(--font-display); font-size: 18px; }
.problem--sum .problem__file::before { content: none; }
@media (max-width: 900px) { .problems { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .problems { grid-template-columns: 1fr; } .problem--sum { grid-template-columns: 1fr; } }

/* ---------- ベネフィット ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.benefit { position: relative; padding-top: 18px; border-top: 1px solid var(--ink); }
.benefit__n { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--indigo); display: block; margin-bottom: 14px; }
.benefit h3 { font-family: var(--font-display); font-size: 21px; line-height: 1.45; margin-bottom: 12px; }
.benefit p { color: var(--ink-2); font-size: 15px; line-height: 1.9; }
@media (max-width: 800px) { .benefits { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 特長: ベントーグリッド ---------- */
.sec--features { background: var(--white); border-top: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: #cfc8b6; }
.tile h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.4; }
.tile p { color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }
.tile--wide { grid-column: span 2; }
.tile--accent { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.tile--accent p { color: rgba(255, 255, 255, .82); }
.tile__art { border-radius: var(--r-m); background: var(--white); border: 1px solid var(--line); margin-bottom: 8px; overflow: hidden; }
.tile__art--map { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mini-lot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
@media (max-width: 560px) { .mini-lot { grid-template-columns: repeat(6, 1fr); } }
.mini-lot i { display: block; aspect-ratio: 1 / 1.3; border-radius: 4px; position: relative; }
.mini-lot .u { background: var(--indigo); } .mini-lot .f { border: 1.5px dashed var(--indigo); }
.mini-lot .d::after { content: ""; position: absolute; right: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--shu); }
.mini-road { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding-top: 8px; border-top: 2px dashed var(--paper-3); }
.tile__art--doc { display: flex; gap: 14px; padding: 18px; align-items: flex-end; background: var(--paper-2); }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 12px; width: 48%; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 6px 14px -10px rgba(27, 35, 64, .4); }
.paper b { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; margin-bottom: 4px; }
.paper span { display: block; height: 5px; border-radius: 3px; background: var(--paper-3); }
.paper .short { width: 60%; }
.paper .map { height: 56px; border-radius: 4px; background:
  linear-gradient(90deg, transparent 48%, var(--indigo) 48% 52%, transparent 52%),
  linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 12px 12px, 12px 12px; }
.paper--2 { transform: translateY(-8px) rotate(1.5deg); }
.tile--phone { display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto; column-gap: 22px; align-items: start; }
.tile--phone .tile__art { grid-row: 1 / 3; margin: 0; }
.tile__art--phone { display: grid; place-items: end center; padding: 16px 0 0; background: var(--indigo-soft); border-bottom: 0; border-radius: var(--r-m) var(--r-m) 0 0; height: 100%; }
@media (max-width: 560px) { .tile--phone { grid-template-columns: 1fr; } .tile--phone .tile__art { grid-row: auto; } }
.phone { width: 110px; height: 120px; background: #fff; border: 2px solid var(--ink); border-bottom: 0; border-radius: 18px 18px 0 0; position: relative; overflow: hidden; }
.phone__bar { height: 10px; background: var(--paper-2); }
.phone__body { padding: 10px; display: grid; gap: 7px; }
.phone__body i { display: block; height: 18px; border-radius: 5px; background: var(--paper-2); }
.phone__body i:first-child { background: var(--indigo); opacity: .85; }
.phone__tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); place-items: center; background: #fff; }
.phone__tabs span { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.phone__tabs span.on { background: var(--indigo); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .tile--wide { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile--wide { grid-column: auto; } .tile { padding: 22px 20px 24px; } }

/* ---------- 仕組み（ダークの帯・左右分割） ---------- */
.sec--security { background: var(--indigo-deep); color: #fff; overflow: hidden; }
.sec--security::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 100% 0%, rgba(79, 147, 168, .25), transparent 70%); }
.sec--security__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; position: relative; }
.sec--security .sec__title { color: #fff; margin-bottom: 22px; }
.sec--security .sec__title em { color: #ffd98a; }
.security__lead { color: rgba(255, 255, 255, .82); line-height: 1.95; margin-bottom: 26px; }
.security__list { display: grid; gap: 16px; margin-bottom: 26px; }
.security__list li { display: grid; gap: 4px; padding-left: 20px; position: relative; }
.security__list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: #ffd98a; }
.security__list b { font-size: 15.5px; }
.security__list span { color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.85; }
.link-arrow { color: #fff; font-weight: 700; font-size: 14.5px; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { border-color: #fff; }

.security__diagram { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.node__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: rgba(255, 255, 255, .65); margin-bottom: 8px; text-align: center; }
.node__card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-m); padding: 14px 12px; display: grid; gap: 8px; justify-items: center; }
.node__card--server { background: rgba(0, 0, 0, .25); }
.plain { font-size: 12px; background: #fff; color: var(--ink); border-radius: 6px; padding: 5px 10px; text-align: center; }
.cipher { font-family: var(--font-mono); font-size: 11.5px; color: #9fb7ff; background: rgba(159, 183, 255, .12); border: 1px dashed rgba(159, 183, 255, .5); border-radius: 6px; padding: 4px 8px; letter-spacing: .04em; }
.arrow-down { font-size: 11px; color: #ffd98a; position: relative; padding-bottom: 14px; }
.arrow-down::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 10px; background: #ffd98a; }
.node__note { font-size: 11px; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.pipe { display: grid; gap: 4px; width: 28px; }
.pipe span { display: block; height: 2px; background: rgba(255, 255, 255, .3); border-radius: 2px; animation: flow 1.8s linear infinite; }
.pipe span:nth-child(2) { animation-delay: .3s; } .pipe span:nth-child(3) { animation-delay: .6s; }
@keyframes flow { 0% { opacity: .2; transform: translateX(-6px); } 50% { opacity: 1; } 100% { opacity: .2; transform: translateX(6px); } }
@media (max-width: 1150px) {
  .sec--security__in { grid-template-columns: 1fr; }
  .security__diagram { grid-template-columns: 1fr; gap: 14px; }
  .pipe { width: auto; justify-items: center; }
  .pipe span { width: 2px; height: 16px; animation-name: flowv; }
  @keyframes flowv { 0% { opacity: .2; transform: translateY(-4px); } 50% { opacity: 1; } 100% { opacity: .2; transform: translateY(4px); } }
  .pipe { grid-auto-flow: column; }
}

/* ---------- 料金 ---------- */
.sec--pricing { background: var(--paper); }
.pricing { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 36px; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.price-card__label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; color: var(--muted); }
.price-card__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(54px, 6vw, 76px); line-height: 1; letter-spacing: -.01em; color: var(--ink); display: flex; align-items: baseline; flex-wrap: wrap; }
.price-card__big .yen { font-size: .45em; margin-right: .08em; color: var(--muted); font-weight: 500; }
.price-card__big .unit { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.price-card__sub { color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }
.price-card--main { border: 2px solid var(--indigo); position: relative; box-shadow: var(--shadow-card); }
.price-card--main .price-card__big { color: var(--indigo); }
.price-card--main::before { content: "基本料金"; position: absolute; top: -13px; left: 24px; background: var(--indigo); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; }
.price-card--calc { background: var(--paper-2); }
.calc { display: grid; gap: 12px; }
.calc label { font-size: 14px; color: var(--ink-2); }
.calc output { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink); margin: 0 4px; }
.calc input[type=range] { --p: 9%; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--indigo) var(--p), var(--line) var(--p)); outline-offset: 6px; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--indigo); box-shadow: 0 2px 8px rgba(27, 35, 64, .25); cursor: pointer; }
.calc input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--indigo); cursor: pointer; }
.calc__result { font-size: 15px; color: var(--ink-2); }
.calc__result b { font-family: var(--font-display); font-size: 34px; color: var(--indigo); margin: 0 4px; font-variant-numeric: tabular-nums; }
.calc__result small { color: var(--muted); }
.calc__note { font-size: 12.5px; color: var(--muted); }
.pricing__terms { display: grid; gap: 8px; max-width: 760px; font-size: 14.5px; color: var(--ink-2); }
.pricing__terms li { padding-left: 18px; position: relative; }
.pricing__terms li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); }
.pricing__legal { margin-top: 20px; font-size: 13px; color: var(--muted); }
.pricing__legal a { color: var(--indigo); border-bottom: 1px solid currentColor; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } .price-card--main { order: -1; } }

/* ---------- 始め方 ---------- */
.sec--flow { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin-bottom: 44px; }
.step { position: relative; padding: 28px 26px 28px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); }
.step__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--indigo); display: inline-block; margin-bottom: 14px; }
.step__n::before { content: "STEP "; }
.step h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; line-height: 1.45; }
.step p { color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -16px; top: 50%; width: 12px; height: 12px; border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.flow__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.flow__cta p { color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -16px; transform: translateX(-50%) rotate(135deg); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.5;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 16px; height: 2px; background: var(--indigo); transform: translateY(-50%); transition: transform .3s var(--ease); }
.faq__item summary::after { transform: translateY(-50%) rotate(90deg); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(0); }
.faq__item summary:hover { color: var(--indigo); }
.faq__body { padding: 0 0 24px; color: var(--ink-2); font-size: 15px; line-height: 1.95; max-width: 44em; animation: fade .35s var(--ease); }
@media (max-width: 640px) { .faq__item summary { font-size: 16.5px; padding: 18px 40px 18px 0; } }

/* ---------- CTA 帯 ---------- */
.cta-band { background: var(--indigo); color: #fff; padding: clamp(56px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 100% at 100% 50%, #000, transparent 75%);
  mask-image: radial-gradient(60% 100% at 100% 50%, #000, transparent 75%); }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.4; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .8); }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band__btns { width: 100%; } .cta-band__btns .btn { flex: 1 1 100%; } }

/* ---------- フッター ---------- */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; color: var(--ink-2); position: relative; z-index: 1; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer__desc { margin-top: 12px; line-height: 1.8; max-width: 26em; }
.footer__h { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__col a { transition: color .15s; }
.footer__col a:hover { color: var(--indigo); }
.footer__col address { line-height: 1.8; }
.footer__copy { text-align: center; margin-top: 44px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
@media (max-width: 800px) { .footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__in { grid-template-columns: 1fr; } }

/* ---------- 追従 CTA（スマホだけ） ---------- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white); background: color-mix(in srgb, var(--white) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(27, 35, 64, .4);
    font-size: 13px; font-weight: 700; color: var(--ink-2);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .sticky-cta.is-show { transform: none; }
  .sticky-cta .btn { padding: 12px 20px; min-height: 44px; font-size: 14px; }
  .footer { padding-bottom: 96px; }
}

/* 動きを減らす設定（本体の宣言より後に置く＝同じ詳細度でこちらが勝つ） */
@media (prefers-reduced-motion: reduce) {
  .reveal-line > span, .hero__facts.reveal-line { animation: none; transform: none; opacity: 1; }
  .mock { animation: none; opacity: 1; }
  .float, .sp { animation: none; opacity: 1; transform: none; }
  .sp.due::after, .pipe span { animation: none; }
  .btn svg, .btn, .tile, .menu a:not(.btn)::after { transition: none; }
}
