/* =========================================================
   Office N Store — 共通スタイル（静的・ビルド不要）
   スマホ最優先 / 信頼感（本番サイト系統の青×スレート）
   ========================================================= */
:root {
  --navy: #0f2a4a;
  --blue: #1d6ae5;
  --blue-dark: #1554b8;
  --sky: #eaf1fc;
  --ink: #1e293b;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --gold: #b8860b;
  --warn-bg: #fff7e0;
  --warn-line: #e6c860;
  --danger: #b91c1c;
  --ok: #0e7a4d;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(15, 42, 74, .07);
  --shadow-lg: 0 10px 30px rgba(15, 42, 74, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 18px; }

/* ---------- プレビュー帯（公開前） ---------- */
.preview-band {
  background: var(--navy);
  color: #cfe0f7;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 12px;
  letter-spacing: .02em;
}
.preview-band strong { color: #ffd982; font-weight: 700; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  max-width: 960px; margin: 0 auto; padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark {
  font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: .01em;
}
.brand .mark span { color: var(--blue); }
.brand .sub { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .08em; }
.site-nav { display: flex; gap: 16px; font-size: 13.5px; }
.site-nav a { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }
@media (max-width: 640px) {
  .site-nav { display: none; }
}

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #16375f 55%, #1a4a86 100%);
  color: #fff;
  padding: 46px 0 42px;
}
.hero h1 {
  font-size: clamp(24px, 5.6vw, 36px);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .01em;
}
.hero p.lead {
  margin-top: 14px;
  color: #d7e4f7;
  font-size: clamp(14px, 3.8vw, 16px);
  max-width: 620px;
}
.hero .hero-badges { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero .hero-badges span {
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #eaf1fc;
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- セクション ---------- */
.section { padding: 40px 0; }
.section-title {
  font-size: 20px; font-weight: 800; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.section-title::before {
  content: ""; width: 6px; height: 22px; border-radius: 3px;
  background: var(--blue); display: inline-block;
}

/* ---------- 商品カード ---------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .product-grid { grid-template-columns: 1fr 1fr; } }

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.product-card.is-featured { border: 2px solid var(--blue); position: relative; }
.product-card.is-featured .feat-ribbon {
  position: absolute; top: -12px; left: 16px;
  background: var(--blue); color: #fff;
  font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 3px 12px;
}
.product-card.is-coming { opacity: .85; background: #fbfcfe; }
.product-kind { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .05em; }
.product-name { font-size: 19px; font-weight: 800; color: var(--navy); line-height: 1.45; }
.product-desc { font-size: 14px; color: var(--ink-soft); flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 28px; font-weight: 800; color: var(--navy); }
.price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.price-note {
  font-size: 11.5px; font-weight: 700; color: var(--gold);
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 6px; padding: 2px 8px;
}
.coming-tag {
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: #eef2f7; border-radius: 6px; padding: 2px 10px;
  align-self: flex-start;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 22px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s ease, transform .05s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px; /* タップ領域 */
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(29,106,229,.3); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline {
  background: #fff; color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--sky); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- 安心バー ---------- */
.trust-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (min-width: 720px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 12px; text-align: center;
  font-size: 12.5px; color: var(--ink-soft); font-weight: 600;
  box-shadow: var(--shadow);
}
.trust-item .t-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.trust-item b { color: var(--navy); display: block; font-size: 13px; margin-bottom: 2px; }

/* ---------- 汎用ボックス ---------- */
.card-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 20px;
}
.note-box {
  background: var(--sky); border: 1px solid #c8dbf5; border-radius: 10px;
  padding: 14px 16px; font-size: 13.5px; color: var(--ink-soft);
}
.warn-box {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px;
  padding: 14px 16px; font-size: 13.5px; color: #6b5310;
}
.draft-note {
  background: #fdeaea; border: 1.5px dashed #d98c8c; border-radius: 10px;
  padding: 14px 16px; font-size: 13px; color: #7a2b2b; margin-bottom: 22px;
}
.draft-note b { color: var(--danger); }
.draft-note ul { margin: 8px 0 0 20px; }

/* ---------- 商品詳細 ---------- */
.detail-head { display: flex; flex-direction: column; gap: 10px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
}
.spec-table th { background: #f1f5f9; color: var(--navy); width: 34%; font-weight: 700; }
.spec-table td { background: #fff; color: var(--ink-soft); }
@media (max-width: 560px) {
  .spec-table th { width: 38%; font-size: 13px; }
  .spec-table td { font-size: 13px; }
}

.step-list { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.step-list li {
  counter-increment: step;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px 14px 58px; position: relative; font-size: 14px; color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step-list li b { color: var(--navy); display: block; margin-bottom: 2px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }
.check-list.ng li::before { content: "－"; color: var(--muted); }

/* ---------- モーダル（最終確認画面） ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 42, 74, .55);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 100; padding: 0;
}
.modal-overlay.is-open { display: flex; }
@media (min-width: 640px) { .modal-overlay { align-items: center; padding: 24px; } }
.modal {
  background: #fff; width: 100%; max-width: 560px;
  border-radius: 18px 18px 0 0;
  max-height: 88vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .modal { border-radius: 18px; } }
.modal-head {
  position: sticky; top: 0; background: var(--navy); color: #fff;
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: center;
  z-index: 2;
}
.modal-head h2 { font-size: 16px; font-weight: 800; }
.modal-close {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 34px; height: 34px; border-radius: 50%; font-size: 16px; cursor: pointer;
}
.modal-body { padding: 18px; }
.modal-body .spec-table { margin: 12px 0; }
.modal-agree {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--sky); border-radius: 10px; padding: 12px 14px;
  font-size: 13px; color: var(--ink-soft); margin: 14px 0;
}
.modal-agree input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.modal-foot { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.modal-mode-tag {
  font-size: 11.5px; text-align: center; color: var(--muted);
}
.modal-mode-tag.mock { color: var(--gold); font-weight: 700; }

/* ---------- スマホ固定CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(6px);
}
.sticky-cta .p { font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.sticky-cta .p small { display: block; font-size: 10.5px; color: var(--gold); font-weight: 700; }
.sticky-cta .btn { flex: 1; padding: 12px 10px; font-size: 14.5px; }
@media (min-width: 720px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 84px; }

/* ---------- サンクス/DLページ ---------- */
.dl-panel { text-align: center; padding: 34px 20px; }
.dl-panel .dl-icon { font-size: 44px; }
.dl-panel h1 { font-size: 22px; color: var(--navy); margin: 10px 0 6px; }
.dl-panel p { font-size: 14px; color: var(--ink-soft); }
.dl-link-box {
  margin: 20px auto 0; max-width: 460px;
  background: var(--sky); border: 1px solid #c8dbf5; border-radius: 12px; padding: 18px;
}
.dl-link-box .expiry { font-size: 12px; color: var(--muted); margin-top: 8px; }
.status-pill {
  display: inline-block; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 3px 12px; margin-bottom: 10px;
}
.status-pill.ok { background: #e5f5ec; color: var(--ok); }
.status-pill.mock { background: var(--warn-bg); color: var(--gold); }
.status-pill.err { background: #fdeaea; color: var(--danger); }

/* ---------- 法務ページ ---------- */
.legal-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; }
.legal-body h1 { font-size: 21px; color: var(--navy); margin-bottom: 6px; line-height: 1.5; }
.legal-body .legal-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.legal-body h2 { font-size: 16.5px; color: var(--navy); margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid var(--blue); line-height: 1.5; }
.legal-body p, .legal-body li { font-size: 14px; color: var(--ink-soft); }
.legal-body ol, .legal-body ul { margin: 8px 0 8px 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body .spec-table { margin: 14px 0; }
.legal-body .pending { background: #fff3cd; border-radius: 4px; padding: 0 4px; font-weight: 700; color: #7a5c00; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #b9c9de; margin-top: 46px; padding: 34px 0 26px; font-size: 13px; }
.site-footer .cols { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.site-footer a { color: #cfe0f7; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer .disclaimer { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 11.5px; color: #8fa5c2; }
.site-footer .copy { margin-top: 10px; font-size: 11.5px; color: #8fa5c2; }

/* スマホのみ改行（老眼対応の行分割・2026-07-18） */
.sp-only{display:none;}
@media (max-width:640px){.sp-only{display:inline;}}
