/* LP-A：テック・グリッド */
:root {
  --bg: #f5f7fb;
  --grid: #e3e8f3;
  --card: #ffffff;
  --line: #d5dcec;
  --line-soft: #e6ebf5;
  --text: #0f1b3d;
  --sub: #4a5578;
  --muted: #6b7699;
  --faint: #8a93b0;
  --blue: #2f5bff;
  --blue-soft: #f3f6ff;
  --head: #eef2fb;
  --code: 'M PLUS 1 Code', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
a { color: var(--blue); }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  font-family: var(--code); font-weight: 700; font-size: 12px; color: var(--blue);
}
.top-cta { border: 1px solid var(--blue); padding: 2px 10px; text-decoration: none; font-size: 12px; }

main { max-width: 560px; margin: 0 auto; padding: 0 16px; }
section { padding: 44px 0; }

.eyebrow { font-family: var(--code); font-size: 12px; font-weight: 700; color: var(--blue); }
.eyebrow::before { content: "> "; }
h1 { font-weight: 900; font-size: clamp(26px, 7.6vw, 36px); line-height: 1.38; margin: 14px 0 16px; letter-spacing: -.01em; }
.hl { color: var(--blue); }
.sub { color: var(--sub); font-size: 15px; margin-bottom: 26px; }
h2 { font-size: 20px; font-weight: 900; line-height: 1.5; margin-bottom: 18px; }
h2::before { content: "//"; font-family: var(--code); color: var(--blue); margin-right: 8px; }

.cta {
  display: block; text-align: center; text-decoration: none;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 16px;
  padding: 17px 16px; border-radius: 10px;
  box-shadow: 0 8px 22px rgba(47,91,255,.3);
}
.note { font-family: var(--code); font-size: 11px; color: var(--muted); margin-top: 10px; text-align: center; }

.pains { list-style: none; margin: 0; padding: 0; }
.pains li {
  display: flex; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; margin-bottom: 8px; font-size: 14.5px;
}
.pains b { font-family: var(--code); color: var(--blue); flex-shrink: 0; }
.answer { margin-top: 16px; font-weight: 700; }
.answer strong { color: var(--blue); }

.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
.compare th, .compare td { padding: 11px 8px; text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--code); font-size: 11px; font-weight: 700; color: var(--muted); background: var(--head); }
.compare thead th.us { background: var(--blue); color: #fff; }
.compare tbody th { width: 64px; font-weight: 700; white-space: nowrap; border-top: 1px solid var(--line-soft); }
.compare tbody td { border-top: 1px solid var(--line-soft); color: var(--sub); width: 32%; }
.compare tbody td.us { color: var(--blue); font-weight: 700; background: var(--blue-soft); width: auto; }
.fine { font-size: 10px; color: var(--faint); margin-top: 8px; line-height: 1.5; }

.text { color: var(--sub); font-size: 14.5px; margin-bottom: 16px; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nums div { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 10px; }
.k, .u { font-family: var(--code); font-size: 10.5px; color: var(--muted); }
.v { font-family: var(--code); font-weight: 700; font-size: clamp(22px, 6.6vw, 28px); color: var(--blue); line-height: 1.35; }

.flow { list-style: none; margin: 0; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 33px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.flow li { display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: start; padding: 6px 0; position: relative; }
.tag {
  font-family: var(--code); font-size: 11px; font-weight: 700; text-align: center;
  background: var(--card); color: var(--blue); border: 1px solid var(--blue); border-radius: 6px; padding: 3px 0;
  position: relative; z-index: 1;
}
.flow li.main .tag { background: var(--blue); color: #fff; }
.flow li > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.flow li.main > div { border-color: var(--blue); }
.flow b { font-size: 14.5px; }
.flow p { font-size: 13px; color: var(--sub); line-height: 1.6; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; padding: 0 14px; }
summary { padding: 13px 0; cursor: pointer; font-weight: 700; font-size: 14.5px; list-style: none; display: flex; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "Q."; font-family: var(--code); color: var(--blue); }
details[open] summary { border-bottom: 1px dashed var(--line); }
details p { padding: 12px 0 14px; color: var(--sub); font-size: 14px; }

.final { text-align: center; }
.final .eyebrow { margin-bottom: 10px; }
.final h2::before { content: none; }
.final h2 { font-size: 22px; margin-bottom: 22px; }

footer { text-align: center; padding: 28px 16px 40px; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.9); border-top: 1px solid var(--line); line-height: 1.9; }
footer a { color: var(--muted); }

/* 法定ページ（特商法・プライバシーポリシー） */
.brand { color: var(--blue); text-decoration: none; }
.legal h2 { margin-bottom: 20px; }
.legal h3 { font-size: 15px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 14px; color: var(--sub); }
.legal ul { padding-left: 1.2em; margin: 6px 0; }
.legal-table { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.7; }
.legal-table th, .legal-table td { padding: 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); }
.legal-table tr:first-child th, .legal-table tr:first-child td { border-top: 0; }
.legal-table th { width: 34%; background: var(--head); font-weight: 700; }
.legal-table td { color: var(--sub); }
.legal small { font-size: 12px; color: var(--muted); }
.legal .date { margin-top: 24px; font-size: 12px; color: var(--muted); }
.legal .back { margin-top: 28px; font-size: 14px; }
@media (max-width: 420px) {
  .legal-table th, .legal-table td { display: block; width: auto; }
  .legal-table th { border-top: 1px solid var(--line-soft); padding-bottom: 6px; }
  .legal-table td { border-top: 0; padding-top: 4px; }
}

/* DAY1の内容リスト */
.flow .points { list-style: none; margin: 8px 0 2px; padding: 0; }
.flow .points li { display: block; position: relative; padding: 2px 0 2px 18px; font-size: 13px; color: var(--text); }
.flow .points li::before { content: ">"; position: absolute; left: 0; font-family: var(--code); font-weight: 700; color: var(--blue); }

/* 改行・表の調整 */
p, li, summary, h2, b, .sub, .note { word-break: auto-phrase; text-wrap: pretty; }
.compare th, .compare td { word-break: keep-all; overflow-wrap: anywhere; vertical-align: middle; }
.compare tbody th { width: 60px; }
.compare tbody td { width: 35%; }
