/* SMS配信.com（smp.netfax.jp の CSS を写した）。スマホを先に作り、広い画面では幅を抑える。外部の CSS フレームワークは使わない */
:root {
  /* 色はここから取り、ここ以外に色を直に書かない。緑が基調、CTA と強調は橙 */
  --brand: #0b6e5f;
  --brand-dark: #08524a;
  --brand-mid: #8fcabf;
  --brand-tint: #d3ebe6;
  --brand-soft: #eef7f5;
  --head: #027e73; /* ヘッダーのいちばん上の帯。旧サイトのロゴ（白抜き）を載せる緑（2026-11-17 石塚） */
  --accent: #f5a524;
  --accent-dark: #dd8f10;
  --mark: #ffc924;
  --ink: #18212b;
  --muted: #5b6774;
  --line: #dde3ea;
  --bg: #f4f7fa;
  --bg-top: #e6eef2;
  --card: #ffffff;
  --ok: #1e7f4f;
  --ng: #b3261e;
  --warn: #8a5a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 4px 16px rgba(16, 32, 48, .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; }
/* 入力欄の下の注意書き（予約の入力。旧サイトの ※ の並び） */
.notes { margin: 8px 0 0; padding-left: 1.2em; font-size: .85rem; color: var(--muted); display: grid; gap: 4px; }
.notes .warn, .approval-note { color: var(--ng); }
.approval-note { margin: 16px 0 0; text-align: center; font-size: .9rem; line-height: 1.7; }
.balance-line { margin: 0; padding: 10px 14px; background: var(--bg); border-radius: 10px; }
.balance-line a { margin-left: 12px; }
/* 見出しのすぐ下に、入力欄でなく値を見せるとき（変えられない項目）。見出しの線にくっつけない */
.stack > .form-part + .dl { margin-top: 14px; }
/* カードの中の最初と最後の余白は、カードの余白に任せる */
.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: var(--head); color: #fff; 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: #fff; text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { background: rgba(255, 255, 255, .12); }
.main-nav a[aria-current=page] { font-weight: 700; box-shadow: inset 0 -3px 0 #fff; }
.site-header .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .8); }
.site-header .btn-ghost:hover { background: #fff; color: var(--head); }
.header-member { color: #fff; }
.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 rgba(255, 255, 255, .25); 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; flex: 0 0 auto; max-width: none; }
@media (max-width: 479px) { .brand img { height: 24px; } }
.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(11, 110, 95, .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: #fff; transition: border-color .15s, background .15s;
}
.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); }
.file-drop.is-over { border-color: var(--brand); background: var(--brand-tint); }
.file-drop.has-file { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.file-drop.has-file .file-drop-icon { font-size: 1.4rem; }
.file-clear { margin: 6px 0 0; text-align: right; font-size: .875rem; }
.link-button { font: inherit; color: var(--brand); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
/* 送信の日時：日付・時・分 */
.when-row { display: flex; gap: 8px; }
.when-row select { flex: 0 0 6em; }
.when-row select:first-of-type { flex: 1 1 auto; min-width: 0; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6774' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
@media (max-width: 479px) { .when-row { flex-wrap: wrap; } .when-row select { flex: 1 1 0; } .when-row select:first-of-type { flex: 1 1 100%; } }
.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(244, 247, 250,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(16, 32, 48, .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(16, 32, 48, .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(11, 110, 95, .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(11, 110, 95, .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; } }

/* SMS配信.com：ロゴの画像が無いので文字で出す。トップは写真を使わない */
.brand-text { font-weight: 900; font-size: 1.35rem; letter-spacing: .02em; color: var(--brand); text-decoration: none; white-space: nowrap; }
.brand-text span { color: var(--accent); }
.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（手順の丸い番号）と名前が重なって、数字が丸い色の中に入っていたので、別の名前にした */
/* 一覧の、タイトルの下の予約番号 */
.res-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--muted); white-space: nowrap; }
/* 一覧の、状態の下の結果の数（届いた 980・届かなかった 15） */
.res-counts { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }
.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); }
.result-note { margin: 12px 0 0; }
.result-note + p:not(.result-note) { margin-top: 16px; }

/* 利用規約・個人情報の取り扱い（旧の HTML をそのまま載せる）・よくある質問 */
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; }

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

/* 読み物のページ（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/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; }
/* 区切りのあるカード（ポイントの購入の画面）：かたまりの間に、同じ余白と線を入れる */
.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; }
.alert > p { margin: 0 0 10px; }
.alert > p:last-child { margin-bottom: 0; }
.alert .small { font-weight: 400; }
/* Google Tag Manager の noscript の枠。CSP が style 属性を許さないので、ここで隠す */
.gtm-ns { display: none; visibility: hidden; border: 0; }

.hero-sub { margin: 12px 0 0; color: var(--muted); }

/* お知らせ（parts/news.php。中身は admin から届いた写し）。見出しを押すと本文が開く */
/* 幅は、その画面の中身の幅（.container）に合わせる */
.news { margin: 0 0 16px; }
.news-top { padding-top: 20px; }
.news-item { background: var(--card); border: 3px solid var(--line); border-radius: 10px; }
.news-item summary { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 12px 40px 12px 16px; cursor: pointer; list-style: none; position: relative; }
.news-item summary::-webkit-details-marker { display: none; }
.news-item summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.news-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.news-item time { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.news-title { font-weight: 700; }
.news-item summary:hover .news-title { text-decoration: underline; }
.news-body { border-top: 1px solid var(--line); padding: 20px 32px 24px; font-size: .8rem; line-height: 1.7; }
.news-body p { margin: 0 0 10px; }
.news-body ul { margin: 0 0 10px; padding-left: 1.3em; display: grid; gap: 6px; }
.news-body > :last-child { margin-bottom: 0; }
/* スマホ：左右の余白を詰め、字を少し大きくする（.8rem は 12.8px で、狭い画面では読みにくい） */
@media (max-width: 600px) {
  .news-body { padding: 16px 18px 18px; font-size: .85rem; }
}
.news { display: grid; gap: 8px; }
.news-kind { font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.news-kind-incident, .news-kind-important { background: #fde8e4; color: #a3301c; }
.news-kind-maintenance { background: #fff3d6; color: #7a5200; }
.news-body h3 { font-size: .9rem; margin: 14px 0 6px; }
.news-more { margin: 0; text-align: right; font-size: .875rem; }
/* 全ページの上の帯（障害・メンテナンス。admin で「帯」を付けたお知らせの見出し） */
.notice-banner { display: block; text-align: center; font-size: .875rem; font-weight: 600; padding: 7px 12px; background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.notice-banner:hover { text-decoration: underline; }
.notice-banner-incident, .notice-banner-important { background: #a3301c; color: #fff; }
.notice-banner-maintenance { background: #fff3d6; color: #7a5200; }
