/* netlist.jp（SMS配信.com の CSS を写して作り始めた）。スマホを先に作り、広い画面では幅を抑える。外部の CSS フレームワークは使わない。
   配色は旧 netlist.jp から引き継いだ（2026-11-10）。色は下の変数から取り、ここ以外に色を直に書かない */
:root {
  /* 旧 netlist.jp の配色（紺〜薄紫）を引き継ぐ。CTA は旧サイトの赤、強調は黄 */
  --brand: #424874;
  --brand-dark: #2f3459;
  --brand-mid: #a6b1e1;
  --brand-tint: #dcd6f7;
  --brand-soft: #f4eeff;
  --accent: #ff5b61;
  --accent-dark: #ec464d;
  --mark: #ffc924;
  --ink: #1e2136;
  --muted: #62667f;
  --line: #dfdded;
  --bg: #efedf9;
  --bg-top: #e3dff5;
  --card: #ffffff;
  --ok: #1e7f4f;
  --ng: #b3261e;
  --warn: #8a5a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 33, 54, .06), 0 4px 16px rgba(30, 33, 54, .06);
  font-size: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  /* 上を少し濃く、下へ向けて淡く（2026-11-16 石塚。一色の薄紫は淡すぎた）。白いカードが浮いて見える濃さにする */
  margin: 0; background: var(--bg) linear-gradient(180deg, var(--bg-top) 0, var(--bg) 560px) no-repeat; color: var(--ink); line-height: 1.7;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-weight: 400; letter-spacing: .03em; font-feature-settings: "palt" 0;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
/* ページの幅は .container で揃える。入力だけの画面は .narrow（BaseController::NARROW_VIEWS）で1列に収める */
.page { padding-top: 32px; padding-bottom: 56px; }
.page.narrow { max-width: 672px; }
.center { text-align: center; }
.small { font-size: .875rem; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .85rem; margin: 6px 0 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.h2 { font-size: 1.5rem; font-weight: 900; margin: 0 0 16px; letter-spacing: .04em; }
/* ページの題。下に短い線を引いて、どのページも同じ始まり方にする */
.page-head { margin: 0 0 28px; }
.page-head h1, h1.h2 { font-size: clamp(1.55rem, 4.6vw, 2rem); font-weight: 900; line-height: 1.4; letter-spacing: .04em; margin: 0; color: var(--ink); }
.center > h1.h2::after { margin-inline: auto; }
.page-head h1::after, h1.h2::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--brand); }
h1.h2 { margin-bottom: 24px; }
/* 前書きは本文と同じ幅で流す（幅を絞ると、広い画面で半端な所で折り返した。2026-11-10 石塚） */
.page-head .lead { margin: 16px 0 0; color: var(--muted); font-size: 1.125rem; line-height: 1.9; text-wrap: pretty; }
.stack > * + * { margin-top: 16px; }
/* 見出し（label）のすぐ下の入力には、間を足さない（label の下の余白と重なって、間が空きすぎていた） */
.stack > .label + *, .stack > .check + .check, .stack > * + .field-error { margin-top: 0; }
.stack > .row .label { margin-top: 0; }
.form-part { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--brand); border-bottom: 1px solid var(--line); padding: 0 0 6px; margin: 0; }
.stack > * + .form-part { margin-top: 30px; }
/* カードの中の最初と最後の余白は、カードの余白に任せる */
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

/* ヘッダ・フッタ */
.test-banner { background: var(--mark); color: #2b1d00; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 12px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
/* ロゴは「残った幅」に収める。flex-basis を 0 にしないと、画像の元の幅（716px）が基準になって横にはみ出す */
.brand { display: flex; align-items: center; min-width: 0; flex: 1 1 0; margin-right: 12px; }
/* スマホの幅でボタンが折り返したり潰れたりしないように、ボタンは縮めずロゴの側を縮める */
.header-cta { flex: 0 0 auto; white-space: nowrap; }
/* 主なナビゲーション。広い画面ではロゴの右に並べ、狭い画面ではヘッダーの2段目に横へ流す */
.brand { flex: 0 0 auto; }
.main-nav { display: flex; gap: 2px; flex: 1 1 auto; min-width: 0; align-self: stretch; margin: 0 12px; }
.main-nav a { display: flex; align-items: center; padding: 0 12px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { color: var(--brand); }
.main-nav a[aria-current=page] { color: var(--brand); font-weight: 700; box-shadow: inset 0 -3px 0 var(--brand); }
.header-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; letter-spacing: .02em; }
.header-member { max-width: 20em; overflow: hidden; text-overflow: ellipsis; font-size: .85rem; }
@media (max-width: 759px) {
  .header-inner { flex-wrap: wrap; height: auto; }
  .brand { height: 52px; flex: 1 1 0; }
  .main-nav { order: 3; flex: 0 0 calc(100% + 32px); margin: 0 -16px; padding: 0 6px; height: 40px; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 0 10px; font-size: .875rem; }
}
.brand img { display: block; height: 30px; width: auto; }
.footer-operator { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.footer-operator img { display: block; width: 128px; height: auto; }
.footer-operator p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .footer-operator { flex-direction: column; align-items: flex-start; gap: 8px; } }
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 24px 0 32px; margin-top: 48px; font-size: .875rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.copyright { color: var(--muted); margin: 12px 0 0; }

/* ボタン */
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 24px; font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-small { padding: 6px 14px; font-size: .875rem; }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }

/* カード・フォーム */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 0 0 16px; border: 0; }
fieldset.card { min-width: 0; }
.card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; padding: 0; display: flex; align-items: center; gap: 8px; }
.num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; }
.label { display: block; font-weight: 600; font-size: .9rem; margin: 16px 0 6px; }
.card-title + .label, legend + .label { margin-top: 0; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=number], input:not([type]), textarea, select {
  width: 100%; font: inherit; font-size: 16px; /* iOS で拡大されないように */
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(66, 72, 116, .25); border-color: var(--brand); }
[aria-invalid=true] { border-color: var(--ng); }
.field-error { color: var(--ng); font-size: .875rem; margin: 6px 0 0; }
.alert { background: #fdecea; color: var(--ng); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; }
.row { display: flex; gap: 12px; align-items: flex-end; }
.row > * { flex: 1; }
.cvc { max-width: 9em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.file-drop {
  display: grid; justify-items: center; gap: 4px; text-align: center; cursor: pointer;
  border: 2px dashed var(--brand-mid); border-radius: 12px; padding: 24px 12px; background: #fbfaff;
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop-icon { font-size: 1.8rem; line-height: 1; color: var(--brand); }
.file-drop-text { font-weight: 700; word-break: break-all; }
.file-drop-hint { font-size: .8rem; color: var(--muted); }
.check, .switch { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; cursor: pointer; }
/* 文が長くて折り返しても、印の大きさを変えない（縮むと、行ごとに大きさがばらばらに見える） */
.check input, .switch input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.check { align-items: flex-start; }
.check input { margin-top: .28em; }
.switch + .toggle-body { margin-top: -4px; }
.toggle-body { border-left: 3px solid var(--line); padding: 0 0 8px 14px; margin: 0 0 12px; }
.toggle-body[hidden] { display: none; }
.schedule-row { display: flex; gap: 8px; }
.btn-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.schedule-row select:first-of-type { flex: 1 1 auto; }
.schedule-row select:last-of-type { flex: 0 0 7.5em; }

/* 確認・支払い */
.dl { display: grid; grid-template-columns: 7em 1fr; gap: 8px 12px; margin: 0; }
.dl dd.mono { white-space: nowrap; font-size: .95rem; letter-spacing: 0; }
.dl dt { color: var(--muted); font-size: .875rem; }
.dl-wide { grid-template-columns: 9em 1fr; gap: 12px 16px; }
.card-action { margin: 20px 0 0; }
.dl dd { margin: 0; word-break: break-all; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin-top: 12px; }
.preview { display: grid; gap: 4px; text-align: center; text-decoration: none; color: var(--muted); font-size: .8rem; }
.preview img { border: 1px solid var(--line); border-radius: 6px; background: #fff; aspect-ratio: 210 / 297; object-fit: contain; width: 100%; }
.total-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.total-sum { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.2rem; }


/* トップ */
/*
 * ヒーロー。スマホでは写真の下端をぼかし、白いカードを写真に重ねる（写真の下に文字だけだと寂しいため）。
 * 広い画面では、写真を右に寄せ、左の余白に文字を置く。
 */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero picture { display: block; position: relative; }
.hero picture::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, rgba(239,237,249,0) 0%, var(--bg) 100%); }
.hero-img { display: block; width: 100%; height: 260px; object-fit: cover; object-position: 78% 40%; }
.hero-inner { position: relative; margin-top: -88px; padding-bottom: 28px; }
.hero-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(30, 33, 54, .12); padding: 22px 20px 20px; }
.hero-title { font-size: clamp(1.45rem, 6.2vw, 2.7rem); line-height: 1.45; font-weight: 900; margin: 0 0 14px; color: var(--ink); letter-spacing: .02em; }
.hero-title em { font-style: normal; color: var(--brand); }
.hero-price { display: flex; align-items: baseline; gap: 4px; margin: 0; color: var(--ink); font-weight: 700; }
.hero-price-label { font-size: 1rem; }
.hero-price strong { font-size: 3.2rem; line-height: 1; font-weight: 900; color: var(--accent); letter-spacing: 0; }
.hero-price-unit { font-size: 1.3rem; font-weight: 900; color: var(--accent); }
.hero-price-unit small { font-size: .8rem; color: var(--muted); font-weight: 500; margin-left: 2px; }
.hero-lead { margin: 6px 0 14px; font-size: .95rem; font-weight: 700; color: var(--brand-dark); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; }
.hero-points li { font-size: .8rem; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; padding: 4px 12px; font-weight: 500; }
.hero-points b { color: var(--brand); font-weight: 900; margin-left: 2px; }
.hero-cta { display: block; width: 100%; text-align: center; font-size: 1.15rem; letter-spacing: .1em; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255, 91, 97, .32); }
.btn-accent:hover { background: var(--accent-dark); }
@media (min-width: 860px) {
  .hero { min-height: 520px; display: flex; align-items: center; background: var(--brand-soft); }
  .hero picture { position: absolute; inset: 0; }
  .hero picture::after { display: none; }
  .hero-img { height: 100%; object-position: right center; }
  .hero-inner { width: 100%; margin-top: 0; padding-top: 48px; padding-bottom: 48px; }
  .hero-card { background: transparent; box-shadow: none; padding: 0; max-width: 50%; }
  .hero-points li { background: #fff; box-shadow: 0 1px 2px rgba(30, 33, 54, .06); }
  .hero-title { font-size: 1.9rem; }
  .hero-cta { display: inline-block; width: auto; padding-left: 56px; padding-right: 56px; }
}
/* 広い画面では、絵を本文の幅に合わせて置く（画面いっぱいに伸ばすと、絵が大きくなって左の文字に重なる）。両端は背景へ溶かす */
@media (min-width: 1100px) {
  .hero picture { inset: 0 auto 0 50%; width: 1300px; margin-left: -540px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 86%, transparent 100%); }
  .hero-title { font-size: 2.6rem; }
  .hero-card { max-width: 56%; }
}
@media (max-width: 419px) { .hero-cta { font-size: 1rem; letter-spacing: .04em; padding-left: 12px; padding-right: 12px; } }
.section { padding: 48px 16px; }
.section-alt { background: #fff; }
.section-eyebrow { text-align: center; margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .24em; color: var(--brand); }
.section-title { font-size: clamp(1.45rem, 5.2vw, 1.9rem); font-weight: 900; text-align: center; margin: 0 0 28px; letter-spacing: .06em; color: var(--ink); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.step { background: linear-gradient(135deg, #fff 55%, var(--brand-soft) 100%); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; position: relative; overflow: hidden; min-height: 150px; }
.step h3 { position: relative; margin: 0 0 8px; font-size: 1.2rem; font-weight: 900; color: var(--ink); }
.step p { position: relative; margin: 0; color: var(--muted); font-size: .92rem; max-width: 88%; }
/* 数字はブロックの背景に大きく入れる。読み上げでは飛ばす（aria-hidden） */
.step-no { position: absolute; right: 4px; bottom: -30px; font-size: 9rem; line-height: 1; font-weight: 900; color: rgba(66, 72, 116, .14); letter-spacing: -.04em; pointer-events: none; }
.price-card { max-width: 640px; margin: 0 auto; text-align: center; }
.price-main { font-size: 1.2rem; margin: 0 0 8px; }
.price-num { font-size: 3.2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.price-main small { font-size: .9rem; color: var(--muted); }
.price-examples { margin: 16px auto; border-collapse: collapse; text-align: left; }
.price-examples th, .price-examples td { padding: 6px 10px; border-bottom: 1px solid var(--line); font-weight: normal; }
.price-examples th { color: var(--muted); }
.notes { text-align: left; font-size: .875rem; color: var(--muted); padding-left: 1.2em; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { background: var(--card); border-radius: 10px; box-shadow: var(--shadow); padding: 14px 16px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* トップ：用途・条件、データの項目、流れ。用途と条件は枠で囲まず、罫線と字の組みで見せる（2026-11-10 石塚） */
.usecases { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.usecases li { padding-top: 18px; border-top: 2px solid var(--brand); }
.usecases h3 { margin: 12px 0 6px; font-size: 1.15rem; font-weight: 900; color: var(--ink); }
.usecases li > p:last-child { margin: 0; font-size: .95rem; color: var(--muted); }
.uc-cond { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; font-size: .8rem; font-weight: 500; color: var(--brand); }
.uc-cond span + span::before { content: "×"; margin: 0 .5em; color: var(--brand-mid); }
.filters { margin: 0 auto; max-width: 880px; border-top: 1px solid var(--line); }
.filters > div { display: grid; gap: 2px 24px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.filters dt { font-weight: 700; color: var(--brand-dark); }
.filters dd { margin: 0; color: var(--ink); font-size: .95rem; }
.section-rule + .section-alt { border-top: 1px solid var(--line); }
.split { display: grid; gap: 24px; max-width: 920px; margin: 0 auto; }
.split p { margin: 0 0 12px; }
.fields { background: var(--brand-soft); border-radius: var(--radius); padding: 20px; }
.fields-title { font-weight: 700; color: var(--brand-dark); margin: 0 0 10px; }
.fields ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.fields li { background: #fff; border: 1px solid var(--brand-tint); border-radius: 8px; padding: 4px 12px; font-size: .92rem; font-weight: 500; }
.fields p:last-child { margin: 0; }
.section-more { margin: 24px 0 0; }
.closing .section-title { margin-bottom: 20px; }
@media (min-width: 720px) {
  .usecases { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .filters > div { grid-template-columns: 9em 1fr; align-items: baseline; }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1.15fr 1fr; align-items: start; }
}
@media (min-width: 960px) {
  .steps-4 { grid-template-columns: repeat(4, 1fr); }
}


/* お支払いのしくみ・ご利用の前に */
.lead-text { font-size: 1.05rem; margin: 0 0 24px; }
@media (max-width: 719px) { .lead-text { text-align: left; } }
.note-box { max-width: 960px; margin: 0 auto; background: #fff8e6; border: 1px solid #f3dca4; border-radius: 12px; padding: 14px 18px; }
.note-box h3 { margin: 0 0 4px; font-size: 1rem; }
.note-box p { margin: 0; font-size: .9rem; }
.caution { max-width: 760px; margin: 0 auto; padding-left: 1.2em; display: grid; gap: 8px; }
.pc-only { display: none; }
@media (min-width: 720px) { .pc-only { display: inline; } }
.stack-gap { margin: 0 0 16px; }
.h3 { font-size: 1rem; margin: 0 0 6px; }
.note-box ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.nowrap { white-space: nowrap; }
@media (max-width: 359px) { .nowrap { white-space: normal; } }
.price-examples th { white-space: nowrap; }

/* 安心してお使いいただくために（2026-10-27 にヒーローの差し替えで誤って消したのを戻した） */
.trust { display: grid; gap: 16px; max-width: 960px; margin: 0 auto 16px; }
.trust-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.trust-item h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.trust-item p { margin: 0; color: var(--muted); font-size: .9rem; }
.trust-item .trust-num { color: var(--brand); font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.trust-num small { font-size: .9rem; font-weight: 700; margin-left: 2px; }
.trust-item .trust-icon { color: var(--brand); line-height: 0; padding: 4px 0 6px; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(3, 1fr); } }

/* お支払いのしくみ：予約 → 分かれ道（確定／キャンセル） */
.payflow { max-width: 820px; margin: 0 auto 24px; }
.payflow-start, .payflow-end { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.payflow-start { border: 1px solid var(--brand-tint); }
.payflow-icon { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.is-ok .payflow-icon { background: #e3f4ea; color: var(--ok); }
.is-ng .payflow-icon { background: #fbe9e7; color: var(--ng); }
.payflow-when { margin: 0; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.payflow-what { margin: 2px 0 2px; font-size: 1.15rem; font-weight: 900; color: var(--ink); }
.payflow-sub { margin: 0; font-size: .88rem; color: var(--muted); }
.payflow-branch { position: relative; height: 34px; }
.payflow-branch span { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--brand-mid); }
.payflow-ends { display: grid; gap: 12px; }
@media (min-width: 720px) {
  .payflow-ends { grid-template-columns: 1fr 1fr; }
  .payflow-branch span { left: 25%; right: 25%; border-left: 2px dashed var(--brand-mid); border-right: 2px dashed var(--brand-mid); border-top: 2px dashed var(--brand-mid); top: 50%; }
  .payflow-branch::before { content: ""; position: absolute; left: 50%; top: 0; height: 50%; border-left: 2px dashed var(--brand-mid); }
}

/* 状況の画面：今の段階だけを中央に */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phase { text-align: center; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 36px 20px 28px; margin: 8px 0 16px; }
.phase-mark { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.phase-ok .phase-mark { background: #e3f4ea; color: var(--ok); }
.phase-ng .phase-mark { background: #fbe9e7; color: var(--ng); }
.phase-warn .phase-mark { background: #fff1d6; color: var(--warn); }
.phase-label { margin: 0 0 8px; font-size: 1.75rem; font-weight: 900; letter-spacing: .08em; color: var(--ink); }
.phase-ok .phase-label { color: var(--ok); }
.phase-ng .phase-label { color: var(--ng); }
.phase-text { margin: 0 auto; max-width: 30em; color: var(--brand-dark); }
.phase-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.phase-cancel .btn { margin-top: 14px; }
.phase-spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(66, 72, 116, .18); border-top-color: var(--brand); animation: phase-spin 1s linear infinite; }
@keyframes phase-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .phase-spinner { animation: none; } }

/* ロゴは旧 netlist.jp の画像（assets/logo.png。572×122）。トップは写真を使わない */
.brand { text-decoration: none; }

/* 会員の画面 */
.member-nav { background: #fff; border-bottom: 1px solid var(--line); }
.member-nav .container { display: flex; gap: 4px; overflow-x: auto; }
.member-nav a, .member-nav button { padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap; background: none; border: 0; font: inherit; cursor: pointer; }
.member-nav a[aria-current=page] { color: var(--brand); font-weight: 700; box-shadow: inset 0 -3px 0 var(--brand); }
.member-nav form { margin-left: auto; }
.balance { font-size: 2.4rem; line-height: 1.2; font-weight: 900; color: var(--brand); margin: 0 0 4px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.balance small { font-size: 1rem; font-weight: 700; margin-left: 4px; }
/* 会員ホームとポイント：主なものを左に広く、残高を右に */
.dash { display: grid; gap: 16px; margin: 0 0 16px; }
.dash > .card { margin: 0; display: flex; flex-direction: column; }
.dash .card p { margin: 0 0 10px; }
.dash .dash-action { margin: auto 0 0; padding-top: 8px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.card-head .card-title { margin: 0; }
.card-head a { font-size: .875rem; white-space: nowrap; }
.card > .card-title + p { margin-top: 0; }
@media (min-width: 820px) {
  .dash { grid-template-columns: 1.7fr 1fr; }
  .dash-points { grid-template-columns: 1fr 1.9fr; align-items: start; }
}
.notice-link a { color: inherit; display: block; }
.buy-grid { display: grid; gap: 4px 28px; margin: 0 0 18px; }
.buy-grid .label { margin-top: 0; }
.buy-methods { border: 0; padding: 0; margin: 0; min-width: 0; }
.buy-methods .check { margin: 0 0 8px; align-items: flex-start; }
.buy-methods .check input { flex: 0 0 auto; margin-top: 3px; }
.buy-methods small { display: block; color: var(--muted); font-size: .8rem; }
@media (min-width: 620px) { .buy-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 619px) { .buy-grid > div { margin-bottom: 14px; } }
.np-banner img { display: block; width: 100%; max-width: 468px; height: auto; }
.np-note { display: grid; gap: 8px; margin: 0 0 16px; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.np-note img { display: block; width: 234px; max-width: 100%; height: auto; }
.np-note p { margin: 0; }
.list-moves .plus { color: var(--ok); }
.list-moves .c-date { white-space: nowrap; color: var(--muted); }
/* 会員ホームの下のメニュー。枠で囲まず、罫線で区切る */
.dash-links { display: grid; margin: 24px 0 0; border-top: 1px solid var(--line); }
.dash-links a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dash-links a::after { content: "›"; margin-left: auto; color: var(--brand-mid); font-size: 1.2rem; }
.dash-links b { color: var(--brand-dark); }
.dash-links span { color: var(--muted); font-size: .875rem; }
.dash-links a:hover b { text-decoration: underline; }
@media (min-width: 820px) { .dash-links { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.notice { background: var(--brand-soft); color: var(--brand-dark); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; }
.list { width: 100%; border-collapse: collapse; font-size: .9rem; }
.list th, .list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { color: var(--muted); font-weight: 500; font-size: .8rem; }
/* 数の列。.num（手順の丸い番号）と名前が重なって、数字が丸い色の中に入っていたので、別の名前にした */
.list .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 購入したリストの一覧。狭い画面では表が枠からはみ出して「状態」が見えなかったので、1件を2段に組む
   （上の段：日時と状態、下の段：購入番号と件数・ポイント） */
@media (max-width: 599px) {
  .list-orders, .list-orders tbody { display: block; }
  .list-orders tr.head { display: none; }
  .list-orders tr { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .list-orders td { border: 0; padding: 0; }
  .list-orders .c-date { grid-area: 1 / 1; color: var(--muted); font-size: .8rem; }
  .list-orders .c-st { grid-area: 1 / 2 / 2 / 4; justify-self: end; }
  .list-orders .c-no { grid-area: 2 / 1; white-space: nowrap; font-size: .85rem; }
  .list-orders .c-rows::after { content: "件"; margin-left: 1px; }
  .list-orders .c-pt::after { content: "pt"; margin-left: 1px; }
  .list-orders .c-pt { color: var(--muted); }
}
.status { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; background: var(--bg); color: var(--muted); white-space: nowrap; }
.status-scheduled, .status-sending { background: var(--brand-soft); color: var(--brand-dark); }
.status-sent { background: #e3f3ea; color: var(--ok); }
.status-pending, .status-partially_rejected { background: #fff3dc; color: var(--warn); }
.status-failed, .status-rejected, .status-ledger_unknown, .status-send_unknown { background: #fdecea; color: var(--ng); }
.counter { font-size: .85rem; color: var(--muted); text-align: right; margin: 4px 0 0; }
.counter strong { color: var(--ink); }
.body-preview { white-space: pre-wrap; background: var(--bg); border-radius: 10px; padding: 12px 14px; margin: 0; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.summary div { background: var(--bg); border-radius: 10px; padding: 10px 4px; }
.summary b { display: block; font-size: 1.3rem; }
.summary span { font-size: .75rem; color: var(--muted); }

/* 利用規約・個人情報の取り扱い（旧の HTML をそのまま載せる）・よくある質問 */
.legal ul, .legal ol { padding-left: 1.4em; }
.legal li { margin: 4px 0; }
details.faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq > div { padding: 8px 0 4px; }

/* 項目と値の表（会社概要・特定商取引法の表記・料金・購入の確認）。枠で囲まず、横の線だけで区切る */
.spec { width: 100%; border-collapse: collapse; margin: 0 0 16px; border-top: 1px solid var(--line); }
.spec th, .spec td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.8; }
.spec th { width: 30%; padding-right: 20px; font-weight: 600; font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) {
  .spec th, .spec td { display: block; width: auto; }
  .spec th { border-bottom: 0; padding-bottom: 0; font-size: .8rem; }
  .spec td { padding-top: 4px; }
}
.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: 1rem; }

/* リストの検索（netlist） */
.search-form fieldset.card { border: 0; }
.search-form legend.card-title { padding: 0; float: left; width: 100%; }
.search-form legend.card-title + * { clear: both; }
.result-bar [hidden] { display: none !important; }
.tree details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.tree details details { margin-left: 16px; border-bottom: 0; padding: 2px 0; }
.tree summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.tree details details summary { font-weight: 500; }
.tree .check { margin: 4px 0 4px 4px; }
.cities, .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.found { margin: 8px 0 16px; padding: 8px 12px; background: var(--bg); border-radius: 10px; }
.row-btn { flex: 0 0 auto; }
.result-count { font-size: 1.1rem; margin: 0 0 8px; }
.result-count strong { font-size: 2rem; color: var(--brand-dark); }

/* JavaScript が動くとき（html.js）と動かないときで、出す部品を分ける */
html.js .no-js { display: none !important; }
html:not(.js) .js-only { display: none !important; }

/* 検索の画面：左に条件、右に結果のバー。狭い画面では、バーを画面の下に貼り付ける */
.search-form { display: grid; gap: 0; }
.result-bar {
  position: sticky; bottom: 0; z-index: 5; margin: 8px -16px -56px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(30, 33, 54, .1);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
}
.rb-title, .rb-note, .rb-reset, .result-bar .spec { display: none; }
.rb-main { min-width: 0; grid-row: 2; grid-column: 1; }
.rb-count { margin: 0; display: flex; align-items: baseline; gap: 6px; line-height: 1.2; }
.rb-count strong { font-size: 1.7rem; font-weight: 900; color: var(--brand-dark); letter-spacing: 0; font-variant-numeric: tabular-nums; transition: opacity .15s; }
.rb-unit { font-weight: 700; }
.rb-points { margin: 0; font-size: .8rem; color: var(--muted); }
.rb-points strong { color: var(--ink); }
.rb-status { grid-column: 1 / -1; grid-row: 3; margin: 0; font-size: .85rem; font-weight: 600; color: var(--warn); }
.rb-status:empty { display: none; }
.rb-actions { display: grid; gap: 8px; grid-row: 2; grid-column: 2; }
.rb-actions .btn { padding: 12px 20px; font-size: 1rem; white-space: nowrap; }
.rb-chips { grid-column: 1 / -1; grid-row: 1; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.rb-chips::-webkit-scrollbar { display: none; }
.rb-spin { display: none; align-self: center; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(66, 72, 116, .18); border-top-color: var(--brand); animation: phase-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .rb-spin { animation: none; } }
.result-bar[data-state=counting] .rb-spin, .result-bar[data-state=busy] .rb-spin { display: inline-block; }
.result-bar[data-state=counting] .rb-count strong, .result-bar[data-state=busy] .rb-count strong { opacity: .35; }
.result-bar[data-state=counting] .rb-status, .result-bar[data-state=busy] .rb-status { color: var(--muted); }
.result-bar[data-state=error] .rb-status { color: var(--ng); }
.result-bar[data-state=error] [data-buy] { display: none; }
.btn[aria-disabled=true] { opacity: .45; pointer-events: none; cursor: default; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  font: inherit; font-size: .8rem; font-weight: 600; line-height: 1.4; text-align: left;
  color: var(--brand-dark); background: var(--brand-soft); border: 1px solid var(--brand-tint); border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.chip::after { content: "×"; font-weight: 700; opacity: .6; }
.chip:hover { background: #e7e0fb; }
.chip:hover::after { opacity: 1; }
.chip-none { flex: 0 0 auto; font-size: .8rem; color: var(--muted); padding: 4px 0; }

@media (min-width: 960px) {
  .search-form { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .result-bar {
    top: 72px; bottom: auto; margin: 0; padding: 20px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
    grid-template-columns: minmax(0, 1fr); gap: 12px; max-height: calc(100vh - 88px); overflow-y: auto;
  }
  .rb-main, .rb-status, .rb-actions, .rb-chips { grid-row: auto; grid-column: 1; }
  .rb-title { display: block; font-size: 1.05rem; font-weight: 700; margin: 0; }
  .rb-note, .rb-reset { display: block; margin: 0; }
  .result-bar .spec { display: table; }
  .rb-count strong { font-size: 2.4rem; }
  .rb-points { font-size: .9rem; }
  .rb-status { font-size: .9rem; }
  .rb-chips { flex-wrap: wrap; overflow: visible; }
  .rb-actions .btn { padding: 16px 24px; font-size: 1.1rem; }
}

/* 検索の画面：業種を言葉で探す（候補の一覧）と、分類から選ぶ（3つの列）。assets/search-pick.js が描く */
.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(30, 33, 54, .16);
  max-height: min(60vh, 420px); overflow-y: auto;
}
.combo-list[hidden] { display: none; }
.combo-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.combo-opt::before { content: ""; grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; border: 2px solid var(--brand-mid); border-radius: 5px; background: #fff; }
.combo-opt[aria-selected=true]::before { content: "✓"; display: grid; place-items: center; background: var(--brand); border-color: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; line-height: 1; }
.combo-opt:hover, .combo-opt.is-active { background: var(--brand-soft); }
.combo-name { font-weight: 600; line-height: 1.5; }
.combo-meta { grid-column: 2; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.combo-note { padding: 8px 10px; font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chips:empty { display: none; }

.picker { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; }
.picker > summary { cursor: pointer; font-weight: 600; padding: 12px 14px; }
.picker[open] > summary { border-bottom: 1px solid var(--line); }
.picker-cols { display: grid; }
.picker-col { min-width: 0; max-height: 420px; overflow-y: auto; padding: 6px; }
.pick-row { display: flex; align-items: stretch; border-radius: 8px; }
.pick-row:hover { background: var(--bg); }
.pick-row.is-current { background: var(--brand-soft); }
.pick-row .check { margin: 0; padding: 7px 8px; flex: 0 0 auto; align-items: flex-start; line-height: 1.5; }
.pick-row .check:only-child { flex: 1 1 auto; }
.pick-row .check input { flex: 0 0 auto; margin: 2px 0 0; }
.pick-go {
  flex: 1 1 auto; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font: inherit; text-align: left; line-height: 1.5; color: var(--ink); background: none; border: 0; padding: 8px 8px 8px 10px; cursor: pointer;
}
.pick-arrow { color: var(--muted); font-size: 1.2rem; line-height: 1; }
.pick-name { flex: 1 1 auto; min-width: 0; }
.pick-state { flex: 0 0 auto; font-size: .72rem; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); border: 1px solid var(--brand-tint); border-radius: 999px; padding: 1px 8px; }
.pick-state.is-all { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 進んだ先のいちばん上の「すべて選ぶ」 */
.pick-row.is-all { margin: 2px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-weight: 700; }
.pick-row.is-all:hover { background: none; }
.cat-note { margin: 10px 0 0; }
.pick-row.is-head { font-weight: 700; }
.pick-group { border-top: 1px solid var(--line); padding: 4px 0; }
.pick-group:first-of-type { border-top: 0; }
.pick-group .pick-row:not(.is-head) { margin-left: 18px; }
.pick-title { margin: 4px 8px 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.pick-hint { margin: 12px 8px; font-size: .85rem; color: var(--muted); }
.pick-back { font: inherit; font-size: .85rem; font-weight: 600; color: var(--brand); background: none; border: 0; padding: 6px 8px; cursor: pointer; }
/* 狭い画面では、1つの列だけを出して1段ずつ進む */
@media (max-width: 719px) {
  .picker-cols[data-depth="1"] .picker-col:not([data-col="1"]),
  .picker-cols[data-depth="2"] .picker-col:not([data-col="2"]),
  .picker-cols[data-depth="3"] .picker-col:not([data-col="3"]) { display: none; }
}
@media (min-width: 720px) {
  .picker-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); }
  .picker-col + .picker-col { border-left: 1px solid var(--line); }
  .pick-back { display: none; }
}

/* 地域：都道府県は、地方ごとの行に小さなボタンで並べる。選んだものは下に1行ずつ出て、開くと市区町村で絞れる */
.regions { display: grid; gap: 10px; margin: 0 0 12px; }
.region { display: grid; gap: 4px; }
.region-name { margin: 0; font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.region-prefs { display: flex; flex-wrap: wrap; gap: 6px; }
.pref-chip { position: relative; cursor: pointer; }
.pref-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.pref-chip span { display: block; min-width: 3.4em; text-align: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .9rem; line-height: 1.5; color: var(--ink); }
.pref-chip:hover span { border-color: var(--brand-mid); }
.pref-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pref-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
/* 市区町村だけを選んでいる都道府県（一部） */
.pref-chip.is-part span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); font-weight: 700; }
@media (min-width: 720px) {
  .region { grid-template-columns: 7.2em 1fr; align-items: start; gap: 12px; }
  .region-name { padding-top: 8px; }
}
.pref-rows { display: grid; gap: 6px; }
.pref-row { background: var(--bg); border-radius: 10px; padding: 0 12px; }
.pref-row[hidden] { display: none; }
.pref-row summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 0; cursor: pointer; list-style: none; font-size: .92rem; }
.pref-row summary::-webkit-details-marker { display: none; }
.pref-scope { color: var(--muted); }
.pref-more { margin-left: auto; color: var(--brand); font-size: .85rem; text-decoration: underline; }
.pref-more::after { content: " ▾"; }
.pref-row[open] .pref-more::after { content: " ▴"; }
.pref-row .cities { padding: 2px 0 10px; }
.pref-row .check { margin: 4px 0; }
.city-filter { margin: 4px 0 8px; max-width: 320px; padding: 8px 12px; }
.check[hidden] { display: none; }

/* 検索の画面：地域の選び方のタブと、地図（assets/search-map.js） */
html.js .js-hidden { display: none; }
.tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 14px; background: var(--bg); border-radius: 12px; }
.tabs [role=tab] { flex: 1 1 0; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 9px 8px; cursor: pointer; }
@media (max-width: 419px) { .tabs [role=tab] { font-size: .8rem; padding: 9px 2px; white-space: nowrap; } }
.tabs [role=tab][aria-selected=true] { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(30, 33, 54, .14); }
[role=tabpanel][hidden] { display: none; }
.map { height: 360px; margin: 12px 0 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #e9eef2; z-index: 0; cursor: crosshair; }
.map .leaflet-container, .map.leaflet-container { font: inherit; cursor: crosshair; }
.map-r { flex: 0 0 7.5em; }
.map-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 0; }
.map-bar-hint { font-size: .8rem; color: var(--muted); }
.map-wrap .map { margin-top: 8px; }
/* 画面いっぱいに開いた地図 */
.map-wrap.is-big { position: fixed; inset: 0; z-index: 60; background: #fff; padding: 10px 12px 12px; display: flex; flex-direction: column; }
.map-wrap.is-big .map-bar { margin: 0 0 8px; }
.map-wrap.is-big .map { flex: 1 1 auto; height: auto; margin: 0; }
html.map-open { overflow: hidden; }
.map-msg { margin: 8px 0 0; color: var(--warn); font-weight: 600; }
.map-msg:empty { display: none; }
.map-msg.is-info { color: var(--muted); font-weight: 400; }
.chip-plain::after { content: none; }
.linklike { font: inherit; color: var(--brand); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.linklike[hidden] { display: none; }
@media (max-width: 560px) {
  #panel-map .row { flex-wrap: wrap; }
  #panel-map .row > div:first-child { flex: 1 1 100%; }
  .map { height: 300px; }
}
.map .leaflet-control-attribution { font-size: .7rem; }

/* 読み物のページ（Views/pages/_doc.php）。白い紙面に、目次と本文。飾りは使わず、文字の大きさと余白で段を付ける */
.sheet { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 20px 36px; }
.doc { max-width: 46em; line-height: 1.95; font-size: 1rem; overflow-wrap: anywhere; }
.doc > :first-child, .doc > section:first-child > :first-child { margin-top: 0; }
.doc h2 { font-size: 1.3rem; font-weight: 900; line-height: 1.5; letter-spacing: .03em; margin: 2.8em 0 1em; padding-bottom: .55em; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; display: block; }
.doc h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.6; margin: 2em 0 .6em; }
.doc h4 { font-size: 1rem; font-weight: 700; margin: 1.6em 0 .4em; }
.doc p { margin: 0 0 1.1em; }
.doc ul, .doc ol { margin: 0 0 1.1em; padding-left: 1.6em; }
.doc li { margin: .35em 0; }
.doc li > ul, .doc li > ol { margin: .35em 0 .6em; }
.doc a { text-underline-offset: 3px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.doc .spec { margin-bottom: 1.4em; }
.doc details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.doc details.faq summary { font-weight: 700; line-height: 1.7; }
.doc details.faq > div { padding: 10px 0 2px; color: var(--muted); }
.doc .stack { max-width: 360px; }
/* 料金のページのお見積もり：件数の入力と「計算する」を1行に並べる（入力は「件」の単位つき） */
.estimate-form { background: var(--bg); border-radius: 12px; padding: 18px 20px 16px; margin: 0 0 20px; }
.estimate-form .label { margin-top: 0; }
.estimate-row { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.estimate-count { display: flex; align-items: center; gap: 8px; flex: 0 1 220px; font-weight: 600; }
.estimate-count input { text-align: right; font-variant-numeric: tabular-nums; }
.estimate-row .btn { flex: 0 0 auto; }
.estimate-form .hint { color: var(--muted); }
@media (max-width: 479px) { .estimate-count { flex: 1 1 100%; } .estimate-row .btn { flex: 1 1 100%; } }
.doc-toc { margin: 0 0 28px; padding: 16px 18px; background: var(--bg); border-radius: 10px; }
.doc-toc p { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .18em; color: var(--muted); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; }
.doc-toc a { display: block; padding: 5px 0; font-size: .9rem; line-height: 1.6; color: var(--ink); text-decoration: none; }
.doc-toc a:hover { color: var(--brand); text-decoration: underline; }
@media (min-width: 720px) { .sheet { padding: 44px 48px 52px; } }
@media (min-width: 960px) {
  .doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
  .doc-toc { position: sticky; top: 84px; margin: 0; padding: 0; background: none; max-height: calc(100vh - 110px); overflow-y: auto; }
  .doc-toc ol { border-left: 2px solid var(--line); }
  .doc-toc a { padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); }
  .doc-toc a:hover { color: var(--brand); border-left-color: var(--brand); text-decoration: none; }
}
.doc .doc-signed { text-align: right; margin-top: 2em; color: var(--muted); font-size: .92rem; }
.doc h2 + .spec { border-top: 0; margin-top: -1em; }

/* リストの内容（購入の前の確認。Views/search/preview.php）。左に会社の一部、右に件数と条件 */
.listprev { display: grid; gap: 16px; }
.listprev-title { font-size: 1.15rem; font-weight: 900; margin: 0 0 6px; }
.listprev-list .muted { margin: 0 0 14px; }
.table-wrap { overflow-x: auto; }
.listprev-table { font-size: .95rem; }
.listprev-table th, .listprev-table td { padding: 11px 8px; }
.listprev-table tbody tr:nth-child(even) { background: #fbfaff; }
.listprev-table .num-col { width: 2.6em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.listprev-more { margin: 12px 0 0 !important; text-align: center; }
.listprev-side .card:last-child { margin-bottom: 0; }
.listprev-side .rb-count strong { font-size: 2.2rem; }
.listprev-side .rb-points { margin: 2px 0 16px; font-size: .9rem; }
@media (min-width: 960px) {
  .listprev { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .listprev-side { position: sticky; top: 72px; }
}
[data-deferred][hidden] { display: none; }
/* 終わりの画面の印（Views/parts/mark.php） */
.mark { display: grid; place-items: center; width: 84px; height: 84px; margin: 4px auto 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand-tint); }
.mark svg { display: block; }
/* トップ「購入までの流れ」の段の絵 */
.steps-4 .step { background: var(--card); text-align: center; padding-top: 20px; }
.steps-4 .step p { max-width: none; text-align: left; }
.step-art { display: block; position: relative; margin: 0 auto 10px; width: 132px; }
.step-art img { display: block; width: 100%; height: auto; }
.steps-4 .step-no { right: auto; left: 12px; top: 6px; bottom: auto; font-size: 2.6rem; color: var(--brand-mid); letter-spacing: 0; }
/* 区切りのあるカード（ポイントの購入の画面）：かたまりの間に、同じ余白と線を入れる */
.card-parts { padding: 24px; }
.card-parts > * + * { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.card-parts .card-title { margin-bottom: 10px; }
.notes { margin: 12px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .9rem; }
.notes li + li { margin-top: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cancel-box summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.cancel-box[open] summary { margin-bottom: 12px; }
.cancel-box p { margin: 0 0 14px; font-size: .92rem; }
/* リストに入る項目（購入の確認・リストの内容） */
.columns { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; }
.columns li { padding: 6px 12px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; font-size: .92rem; }
/* 途中だったリストの購入へ戻る案内 */
.resume { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border-left: 5px solid var(--accent); }
.resume p { margin: 0; }
.resume-title { font-weight: 700; }
.resume-text { color: var(--muted); font-size: .9rem; margin-top: 2px !important; }
.resume-num { font-weight: 700; color: var(--brand); margin-top: 2px !important; }
.resume .btn { flex: 0 0 auto; }
.alert > p { margin: 0 0 10px; }
.alert > p:last-child { margin-bottom: 0; }
.alert .small { font-weight: 400; }
.resume > div { flex: 1 1 320px; min-width: 0; }

/* Google Tag Manager の noscript の枠。CSP が style 属性を許さないので、ここで隠す */
.gtm-ns { display: none; visibility: hidden; border: 0; }
