/* 紹介ページの共通スタイル。白背景に白・黒・グレーと細い書体、罫線と余白だけで構成する。OS のダークモードには切り替えない */
:root {
  --bg: #ffffff;
  --soft: #f7f7f7;
  --ink: #1a1a1a;
  --ink-2: #555555;
  --ink-3: #767676;
  --line: #e6e6e6;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.04);
  --font: "Segoe UI", "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; line-height: 1.85; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.92em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ヘッダー */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; font-weight: 300; letter-spacing: 0.02em; }
.brand img { width: 26px; height: 26px; }
nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; border-radius: 6px; font-size: 15px; font-weight: 400; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; border: 1px solid var(--ink); background: transparent; color: var(--ink); transition: background .15s ease, color .15s ease; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { opacity: .85; }
.btn.small { height: 34px; padding: 0 16px; font-size: 13.5px; }

/* ヒーロー：淡い空と凪の水面に梛の葉を浮かべる（紹介用の絵 hero-calm と同じ構成） */
.hero { text-align: center; padding: 96px 0 0; background: linear-gradient(#fafaf8, #eeeeea); }
.hero-name { font-size: clamp(56px, 9vw, 96px); font-weight: 300; line-height: 1.1; letter-spacing: 0.02em; margin: 0 0 18px; color: #2a2b2f; }
.hero-tagline { font-size: clamp(17px, 2.2vw, 24px); font-weight: 400; letter-spacing: 0.04em; color: #6b6d70; margin: 0 0 40px; }
.hero-tagline .nw { white-space: nowrap; }
.hero .btn:not(.primary) { background: rgba(255, 255, 255, 0.6); }
.hero .note { color: #6b6d70; }
.hero .scene { margin-top: calc(var(--h) * -150 / 380 + 8px); }
/* 冒頭の水面の色から白へ、境目を作らずにつなぐ */
.showcase { text-align: center; padding: 72px 0 104px; background: linear-gradient(#d4d6d2, var(--bg) 240px); }

/* 凪の水面：静止した水面と、葉・映り込み・波紋が動く画像の2枚を重ねる。
   --h は水平線の少し上から下端までの高さ。画像はさらに上（--h の 150/380）まで描いてあり、
   その分を前の要素に重ねて、落ちてくる葉の通り道にする。重なった部分はクリックを妨げない */
.scene { --h: clamp(180px, 32vw, 420px); position: relative; height: calc(var(--h) * 530 / 380); pointer-events: none; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead { max-width: 620px; margin: 0 auto 36px; font-size: 17px; color: var(--ink-2); }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.note { margin: 18px 0 0; font-size: 13px; color: var(--ink-3); }
.window { margin: 64px auto 0; max-width: 1000px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow); background: var(--bg); }
.window video { display: block; width: 100%; height: auto; }
/* 冒頭の動画を Windows のアプリのウィンドウに見せる枠。タイトルバーの下に、アプリのメニューの行から始まる動画を等倍で続ける */
.app-window { border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14), var(--shadow); }
.titlebar { display: flex; align-items: center; height: 32px; text-align: left; background: #fff; font-family: "Segoe UI", "Yu Gothic UI", sans-serif; font-size: 12px; color: #1a1a1a; user-select: none; }
.titlebar img { width: 16px; height: 16px; margin: 0 10px 0 12px; }
.titlebar .title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.titlebar .caption { display: flex; height: 100%; }
.titlebar .caption svg { box-sizing: content-box; width: 10px; height: 10px; padding: 11px 18px; fill: none; stroke: #1a1a1a; stroke-width: 1; }

/* セクション */
section { padding: 104px 0; border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.kicker { font-size: 12.5px; letter-spacing: 0.2em; color: var(--ink-3); margin-bottom: 12px; }
.section-head h2, .section-head h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 300; line-height: 1.5; letter-spacing: 0.02em; margin: 0 0 14px; }
.section-head p { margin: 0; color: var(--ink-2); }
.figure { max-width: 900px; margin: 0 auto 64px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.split { display: grid; grid-template-columns: minmax(0, 640px) minmax(240px, 1fr); gap: 56px; align-items: center; }
.split .figure { margin: 0; max-width: 640px; }
.crop { max-width: 640px; }

/* 3列の短い説明 */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.point h3 { font-size: 17px; font-weight: 400; margin: 0 0 8px; }
.point p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.points.stack { grid-template-columns: 1fr; gap: 36px; }
.points.ruled { gap: 0; border-top: 1px solid var(--line); }
.points.ruled .point { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.points.ruled .point:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }

/* 機能の写真付き一覧：写真は撮影した 320 × 200 のまま等倍で並べる */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: space-between; gap: 56px 32px; }
.thumb { border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); margin-bottom: 20px; }
.feature h3 { font-size: 17px; font-weight: 400; margin: 0 0 6px; }
.feature p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.more-head { font-size: 13px; font-weight: 400; letter-spacing: 0.2em; color: var(--ink-3); margin: 88px 0 16px; }

/* Nagi.md ならでは */
.row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; margin-bottom: 88px; }
.row.flip { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 56px; }
.row.flip .row-text { order: 2; }
.row h3 { font-size: 24px; font-weight: 300; line-height: 1.5; margin: 0 0 14px; }
.row p { color: var(--ink-2); margin: 0 0 14px; }
.row ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: 15px; }
.row ul li { margin: 4px 0; }
.crop { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.more { text-align: center; margin: 48px 0 0; font-size: 15px; }
.more a { color: var(--ink-2); text-underline-offset: 5px; }
.more a:hover { color: var(--ink); }

/* Web・VS Code・デスクトップの図 */
.platforms { display: grid; gap: 22px; }
.web-mini { max-width: 260px; width: 100%; margin: 0 auto; }
.bridge { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.mini { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); box-shadow: var(--shadow); overflow: hidden; }
.mini-bar { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); background: var(--soft); }
.mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.mini-bar span { margin-left: 6px; }
.mini-bar .url { margin-left: 8px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.mini-body { display: flex; min-height: 170px; }
.mini-body.short { min-height: 92px; }
.mini-side { width: 24px; border-right: 1px solid var(--line); background: var(--soft); }
.mini-doc { flex: 1; padding: 16px 18px; }
.mini-doc b { display: block; height: 10px; width: 55%; border-radius: 2px; background: var(--ink-2); margin-bottom: 14px; opacity: .75; }
.mini-doc s { display: block; height: 5px; border-radius: 2px; background: var(--line); margin-bottom: 9px; }
.mini-doc s:nth-child(3) { width: 82%; } .mini-doc s:nth-child(4) { width: 64%; }
.mini-doc u { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 14px; }
.mini-doc u em { height: 12px; background: var(--soft); border: 1px solid var(--line); }
.mini-label { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.arrows { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--ink-3); text-align: center; }
.arrows span { white-space: nowrap; }

/* 料金 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan { display: flex; flex-direction: column; padding: 36px 32px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { font-size: 17px; font-weight: 400; margin: 0; }
.plan .price { font-size: 34px; font-weight: 300; margin: 12px 0 2px; }
.plan .price small { font-size: 14px; color: var(--ink-3); }
.plan .sub { font-size: 13.5px; color: var(--ink-3); min-height: 2.6em; }
.plan ul { list-style: none; margin: 20px 0 28px; padding: 0; font-size: 14.5px; color: var(--ink-2); flex: 1; }
.plan li { padding: 5px 0 5px 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--ink-3); }

/* 表 */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { font-weight: 400; color: var(--ink-2); }
td:first-child { color: var(--ink-2); width: 36%; }
.muted { color: var(--ink-3); }
.table-note { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* よくある質問 */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
summary { cursor: pointer; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-3); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }

/* 機能対応表 */
.page-head { border-top: 0; padding-bottom: 32px; }
.choose { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.choice { display: flex; flex-direction: column; gap: 4px; padding: 26px 28px; text-decoration: none; transition: background .15s ease; }
.choice + .choice { border-left: 1px solid var(--line); }
.choice:hover { background: var(--soft); }
.choice-q { font-size: 13px; color: var(--ink-3); }
.choice strong { font-size: 19px; font-weight: 400; }
.choice span:last-child { font-size: 14px; color: var(--ink-2); }
.matrix-section { padding-top: 24px; border-top: 0; }
.legend { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.legend .mark { margin-right: 4px; }
.matrix { min-width: 720px; table-layout: fixed; }
.matrix th, .matrix td { padding: 13px 16px; }
.matrix thead th { text-align: center; vertical-align: bottom; padding: 24px 12px 20px; }
.matrix thead th:first-child { width: 31%; }
.matrix .col-name { display: block; font-size: 17px; color: var(--ink); }
.matrix .col-price { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.matrix td { text-align: center; }
.matrix td:first-child { text-align: left; width: 31%; }
.matrix td small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 2px; }
.matrix .group th { text-align: left; font-size: 12.5px; font-weight: 400; letter-spacing: 0.12em; color: var(--ink-3); padding: 28px 16px 10px; border-bottom: 1px solid var(--ink-3); }
.matrix .group small { letter-spacing: 0; }
.mark { font-size: 16px; line-height: 1; }
.mark.ok { color: var(--ink); }
.mark.part { color: var(--ink-2); }
.mark.no, .mark.na { color: var(--ink-3); }

/* 最後の呼びかけ */
.closing { text-align: center; padding: 104px 0 0; }
.closing h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 300; margin: 0 0 14px; }
.closing p { color: var(--ink-2); margin: 0 0 30px; }
/* 水面の下端は白へ溶かしてフッターにつなぐ */
.closing .scene { margin-top: calc(var(--h) * -150 / 380 + 40px); -webkit-mask-image: linear-gradient(#000 68%, transparent); mask-image: linear-gradient(#000 68%, transparent); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer .brand { font-size: 15px; color: var(--ink-2); }
footer .brand img { width: 20px; height: 20px; }
footer nav { margin-left: auto; font-size: 13px; }
footer .legal { flex-basis: 100%; margin: 0; font-size: 12px; }

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
}
@media (max-width: 860px) {
  header nav { display: none; }
  header .btn { margin-left: auto; }
  .points, .plans, .choose, .split { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .points.ruled .point, .points.ruled .point:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .plan + .plan, .choice + .choice { border-left: 0; border-top: 1px solid var(--line); }
  .row, .row.flip { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .row.flip .row-text { order: 0; }
  .bridge { grid-template-columns: 1fr; }
  .arrows { flex-direction: row; justify-content: center; gap: 16px; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 0; }
  .showcase { padding: 48px 0 72px; }
  .lead { font-size: 16px; }
  .feature-grid { grid-template-columns: minmax(0, 320px); }
  .titlebar { display: none; }
  .cta { flex-direction: column; align-items: center; }
  /* VS Code とアプリの図は2つを横に並べ、矢印をその下に置いて短くする */
  .bridge { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bridge .arrows { grid-column: 1 / -1; order: 3; }
  .mini-body { min-height: 120px; }
  .cta .btn { width: min(100%, 300px); }
  footer nav { margin-left: 0; }
}


/* ヒーローの補足説明と、試作の機能に添える表示 */
.hero-sub { max-width: 560px; margin: -24px auto 36px; font-size: 15px; color: #6b6d70; }
.badge { display: inline-block; padding: 0 10px; border: 1px solid var(--ink-3); border-radius: 999px; font-size: 12.5px; line-height: 1.9; letter-spacing: 0.04em; color: var(--ink-2); white-space: nowrap; }
.section-head .status { margin: 0 0 14px; }
.feature .badge { margin-left: 6px; vertical-align: 1px; }
.cta.start { justify-content: flex-start; }
.more.start { text-align: left; margin: 0; }
.matrix tr:target td { background: var(--soft); }
.matrix tr[id] { scroll-margin-top: 96px; }
@media (max-width: 560px) {
  .hero-sub br { display: none; }
  .cta.start { justify-content: center; }
  .more.start { text-align: center; }
}
.mark.check { font-size: 13px; color: var(--ink-3); }
.legend .mark.check { margin-right: 6px; }
/* 図の紹介：縦長の画面を、文字が読める縮尺で置く */
#diagrams .split { grid-template-columns: minmax(0, 520px) minmax(240px, 1fr); justify-content: center; }
#diagrams .split .figure { max-width: 520px; }
@media (max-width: 860px) {
  #diagrams .split { grid-template-columns: minmax(0, 520px); }
}
/* 機能カードの補足と、詳しい案内へのリンク */
.feature .note { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.feature .feature-link { margin-top: 12px; }
.feature-link a { color: var(--ink-2); text-underline-offset: 5px; }
.feature-link a:hover { color: var(--ink); }
/* 料金・販売ページ：価格と購入の状況を冒頭と料金欄で目立たせる */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sale-head { padding-top: 88px; }
.sale-head .section-head { margin-bottom: 32px; }
.sale-summary { text-align: center; margin: 0 0 32px; }
.sale-price { display: inline-flex; align-items: baseline; gap: 10px; margin: 0; }
.sale-price .sale-label { font-size: 15px; color: var(--ink-2); }
.sale-price strong { font-size: clamp(40px, 6vw, 56px); font-weight: 300; line-height: 1.2; letter-spacing: 0.01em; }
.sale-price .per { font-size: 16px; color: var(--ink-2); }
.sale-status { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.sale-status .badge { margin-right: 10px; }
.sale-head .window { margin-top: 56px; }
.plan.featured { border: 1px solid var(--ink); margin: -1px 0; }
/* トップの料金の要約：版・価格・状況を1行ずつ並べ、詳細は料金ページに任せる */
.price-summary { list-style: none; max-width: 760px; margin: 0 auto 40px; padding: 0; border-top: 1px solid var(--line); }
.price-summary li { display: grid; grid-template-columns: 1fr 1fr 1.4fr; align-items: baseline; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.ps-name { font-size: 16px; }
.ps-price { font-size: 22px; font-weight: 300; }
.ps-price small { font-size: 13px; color: var(--ink-2); }
.ps-status { font-size: 14px; color: var(--ink-2); text-align: right; }
.ps-status a { text-underline-offset: 3px; }
.points.four { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.plan.featured + .plan, .plan + .plan.featured { border-left-color: var(--ink); }
.soon { display: flex; align-items: center; justify-content: center; height: 44px; margin: 0; border: 1px dashed var(--ink-3); border-radius: 6px; font-size: 15px; color: var(--ink-2); }
.plan-note { margin: -8px 0 20px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.table-note.center { text-align: center; margin-top: 24px; }
.compare { min-width: 600px; table-layout: fixed; }
.compare thead th { font-size: 16px; color: var(--ink); text-align: center; }
.compare thead th:first-child, .compare tbody th { width: 34%; }
.compare tbody th { font-weight: 400; color: var(--ink-2); }
.compare td { text-align: center; }
.compare td small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 2px; }
.compare td strong { font-weight: 400; }
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.info-list > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.info-list h3 { font-size: 16px; font-weight: 400; margin: 0 0 6px; }
.info-list p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.info-list a, .plan-note a { text-underline-offset: 3px; }
@media (max-width: 860px) {
  .plan.featured { margin: 0 -1px; }
  .plan.featured + .plan { border-top-color: var(--ink); }
  .info-list { grid-template-columns: 1fr; }
  .points.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sale-head { padding-top: 56px; }
  .sale-head h1 br { display: none; }
  .sale-price { flex-wrap: wrap; justify-content: center; }
  .sale-status .badge { display: table; margin: 0 auto 6px; }
  .points.four { grid-template-columns: 1fr; }
  .price-summary li { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .ps-status { grid-column: 1 / -1; text-align: left; }
  /* 比較表は横スクロールさせず、4列をそのまま画面幅に収める */
  .compare { min-width: 0; font-size: 13px; }
  .compare th, .compare td { padding: 10px 4px; }
  .compare thead th { font-size: 13px; padding-top: 14px; }
  .compare thead th:first-child, .compare tbody th { width: 31%; padding-left: 0; }
  .compare td small { font-size: 11px; }
}
.sale-head .nw, #value h2 .nw { display: inline-block; }

/* 法定ページ：見出しの帯、4ページの切り替え、左の目次と本文の2列。印刷では本文だけを出す */
.legal-head { padding: 56px 0 40px; border-top: 0; }
.crumbs { display: flex; gap: 8px; margin: 0 0 28px; font-size: 12.5px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.legal-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.legal-title h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 300; line-height: 1.4; letter-spacing: 0.02em; margin: 0 0 12px; }
.legal-title p { margin: 0; max-width: 640px; color: var(--ink-2); }
.legal-meta { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.legal-meta time { display: block; font-size: 15px; color: var(--ink); }
.legal-meta .btn { cursor: pointer; font-family: inherit; }
.legal-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-tabs li + li { border-left: 1px solid var(--line); }
.legal-tabs a { display: flex; align-items: baseline; gap: 12px; height: 100%; padding: 18px 20px; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: background .15s ease; }
.legal-tabs a:hover { background: var(--soft); color: var(--ink); }
.legal-tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.legal-tabs span { font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3); }
.legal-body { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 72px; padding: 56px 24px 96px; border-top: 0; }
.legal-toc { position: sticky; top: 82px; align-self: start; padding: 0; border-bottom: 0; font-size: 13.5px; }
.legal-toc summary { pointer-events: none; font-size: 12.5px; letter-spacing: 0.12em; color: var(--ink-3); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.legal-toc a { display: flex; gap: 12px; padding: 9px 0; line-height: 1.6; color: var(--ink-2); text-decoration: none; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-size: 11.5px; color: var(--ink-3); padding-top: 2px; }
.legal-toc summary::after, .legal-toc[open] summary::after { content: none; }
.legal-toc a:hover, .legal-toc a[aria-current="true"] { color: var(--ink); }
.legal-doc { font-size: 15.5px; color: var(--ink-2); }
.legal-doc > :first-child { margin-top: 0; }
.legal-doc .notice { margin: 0 0 40px; padding: 16px 20px; border: 1px solid var(--ink-3); border-radius: 6px; font-size: 14.5px; color: var(--ink); }
.legal-doc h2 { scroll-margin-top: 82px; margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 21px; font-weight: 400; line-height: 1.5; color: var(--ink); }
.legal-doc > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-doc .notice + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-doc h3 { margin: 32px 0 8px; font-size: 16.5px; font-weight: 400; color: var(--ink); }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin: 0 0 14px; }
.legal-doc ul, .legal-doc ol { padding-left: 1.4em; }
.legal-doc li { margin: 4px 0; }
.legal-doc a { color: var(--ink); text-underline-offset: 3px; }
.legal-doc .table-wrap { margin: 8px 0 24px; }
.legal-doc table { font-size: 14px; }
.legal-doc td:first-child { width: auto; }
/* 特定商取引法に基づく表記の項目と内容 */
.disclosure { display: grid; grid-template-columns: 180px minmax(0, 1fr); margin: 0 0 32px; border-top: 1px solid var(--ink); }
.disclosure dt, .disclosure dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.disclosure dt { padding-right: 24px; color: var(--ink); scroll-margin-top: 82px; }
.disclosure dd p:last-child { margin-bottom: 0; }
.legal-end { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.legal-end a { color: var(--ink-2); }
@media (max-width: 860px) {
  .legal-title { grid-template-columns: 1fr; }
  .legal-tabs { grid-template-columns: repeat(2, 1fr); }
  .legal-tabs li:nth-child(3) { border-left: 0; }
  .legal-tabs li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .legal-body { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .legal-toc { position: static; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .legal-toc summary { pointer-events: auto; padding: 0 0 0; border-bottom: 0; }
  .legal-toc summary::after { content: "+"; }
  .legal-toc[open] summary::after { content: "−"; }
  .legal-toc ol { border-top: 1px solid var(--line); }
  .legal-toc li:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .legal-head { padding: 32px 0 28px; }
  .legal-tabs a { padding: 14px 12px; font-size: 13px; }
  .legal-body { padding: 24px 16px 72px; }
  .disclosure { grid-template-columns: 1fr; }
  .disclosure dt { padding-bottom: 0; border-bottom: 0; font-size: 14px; color: var(--ink-3); }
  .disclosure dd { padding-top: 4px; }
}
@media print {
  header, footer, .crumbs, .legal-meta .btn, .legal-tabs, .legal-toc, .legal-end { display: none; }
  .legal-head, .legal-body { padding: 0; }
  .legal-body { display: block; }
  .legal-doc { color: #000; font-size: 11pt; }
  .legal-doc h2 { break-after: avoid; }
}
