:root {
  --navy: #1e2a46;
  --navy-2: #2c3b60;
  --gold: #b08d49;
  --gold-soft: #e9dcc0;
  --cream: #f8f4ec;
  --paper: #fffdf9;
  --ink: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e4ddd0;
  --radius: 14px;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ヘッダー */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { font-family: var(--serif); font-weight: 700; color: var(--navy); text-decoration: none; font-size: 17px; letter-spacing: .04em; }
.brand small { display: block; font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.header-cta { font-size: 14px; }

@media (max-width: 600px) {
  .brand { font-size: 14.5px; }
  .brand small { font-size: 10px; }
  .header-cta { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
}

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; text-decoration: none; font-weight: 700;
  border: 1.5px solid var(--navy); color: var(--navy); background: transparent;
  transition: background .2s, color .2s; font-size: 15px; line-height: 1.3; text-align: center;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #9a7b3d; border-color: #9a7b3d; }
.btn.is-pending { opacity: .5; pointer-events: none; }

/* ヒーロー */
.hero { background: var(--paper); }
.hero .wrap { display: grid; gap: 28px; padding: 36px 0 44px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .12em; font-size: 13px; margin: 0 0 8px; }
.hero h1 { font-family: var(--serif); color: var(--navy); font-size: clamp(30px, 6vw, 46px); line-height: 1.35; margin: 0 0 16px; letter-spacing: .03em; }
.hero p.lead { margin: 0 0 24px; font-size: 16.5px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero figure { margin: 0; }
.hero figure img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(30, 42, 70, .15); }
.hero figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: right; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr 1.1fr; padding: 64px 0 72px; }
}

/* 商品中心のヒーロー */
.hero-products { background: radial-gradient(120% 90% at 50% 10%, #2f4170 0%, #1e2a46 55%, #141c30 100%); color: #e9ecf3; }
.hero-products .wrap { grid-template-columns: 1fr; text-align: center; padding: 34px 0 40px; gap: 18px; }
.hero-products .eyebrow { color: #d6bd84; }
.hero-products h1 { color: #fff; font-size: clamp(26px, 5.4vw, 44px); margin: 0 0 10px; }
.hero-products h1 .amp { color: #d6bd84; margin: 0 .1em; }
.hero-products h1 small { display: block; font-size: .5em; letter-spacing: .3em; color: #d6bd84; margin-top: 8px; font-family: var(--sans); font-weight: 700; }
.hero-products .lead { color: #cfd5e3; max-width: 640px; margin: 0 auto; font-size: 15.5px; }
.hero-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 6px auto 0; width: 100%; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(214, 189, 132, .45); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.pick:hover { transform: translateY(-2px); }
.pick img { width: 100%; height: clamp(240px, 52vw, 420px); object-fit: contain; object-position: center; background: #eceef2; padding: 10px; border-radius: 12px; margin-bottom: 10px; box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.pick:hover { background: rgba(255, 255, 255, .14); }
.pick-name { font-family: var(--serif); font-weight: 700; font-size: clamp(15px, 3.6vw, 19px); }
.pick-price { font-family: var(--serif); font-size: clamp(18px, 4.2vw, 24px); color: #d6bd84; }
.pick-go { font-size: 13px; color: #cfd5e3; }
@media (min-width: 900px) {
  .hero-products .wrap { grid-template-columns: 1fr; padding: 56px 0 60px; }
}

/* 人の紹介への入口 */
.intro-links { padding: 28px 0 8px; }
.link-cards { display: grid; gap: 12px; }
@media (min-width: 900px) { .link-cards { grid-template-columns: repeat(3, 1fr); } }
.link-card { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); font-size: 13.5px; line-height: 1.6; }
.link-card:hover { border-color: var(--gold); }
.link-card img { width: 56px; height: 56px; object-fit: cover; object-position: center 20%; border-radius: 50%; flex: 0 0 56px; }
.link-card .initial { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; }
.link-card b { display: block; color: var(--navy); font-size: 15px; }
.link-card.is-pending { opacity: .55; }

/* 開発者・発売元とともに */
.trust { padding-top: 40px; }
.trust-photo { margin: 0 auto; max-width: 900px; }
.trust-photo img { border-radius: var(--radius); box-shadow: 0 14px 34px rgba(30, 42, 70, .14); }
.trust-photo figcaption { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }
.trust-photo figcaption b { display: block; color: var(--navy); font-size: 14px; }
.trust-text { margin-top: 18px; text-align: center; }
.media-badge { display: flex; gap: 16px; align-items: flex-start; margin-top: 22px; padding: 18px 20px; background: #fff; border: 1.5px solid var(--gold-soft); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(176, 141, 73, .12); }
.media-label { flex: 0 0 auto; background: var(--gold); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 6px; letter-spacing: .08em; }
.media-badge p { margin: 0; }
.media-mag { font-weight: 700; color: var(--navy); }
.media-mag small { font-weight: 400; color: var(--muted); }
.media-title { font-family: var(--serif); color: var(--navy); font-size: 18px; margin: 6px 0 4px !important; line-height: 1.5; }
.media-who { font-size: 13.5px; color: var(--muted); }
@media (max-width: 600px) { .media-badge { flex-direction: column; gap: 8px; } }
@media (max-width: 600px) { .trust-photo figcaption { font-size: 11px; } .trust-photo figcaption b { font-size: 12.5px; } .trust-text { text-align: left; } }

/* セクション共通 */
section.block { padding: 64px 0; }
section.block.alt { background: var(--paper); }
.sec-title { text-align: center; margin: 0 0 36px; }
.sec-title .en { display: block; color: var(--gold); font-size: 12px; letter-spacing: .25em; font-weight: 700; }
.sec-title h2 { font-family: var(--serif); color: var(--navy); font-size: clamp(23px, 4.4vw, 32px); margin: 6px 0 0; line-height: 1.45; }

/* ご挨拶 */
.greeting { display: grid; gap: 22px; }
.greeting .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; color: var(--navy); }
.stat span { font-size: 13px; color: var(--muted); }

/* 数霊REIWAとは */
.about { display: grid; gap: 28px; align-items: center; }
.about img { border-radius: var(--radius); }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; } }
.steps { display: grid; gap: 14px; margin-top: 28px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step::before { counter-increment: step; content: "STEP " counter(step); color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .15em; }
.step h3 { margin: 4px 0 6px; color: var(--navy); font-size: 18px; }
.step p { margin: 0; font-size: 14.5px; }
.notice { font-size: 13px; color: var(--muted); border-left: 3px solid var(--gold-soft); padding: 4px 0 4px 12px; margin-top: 22px; }

/* 商品 */
.products { display: grid; gap: 24px; }
@media (min-width: 900px) { .products { grid-template-columns: 1fr 1fr; } }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.product-img { width: auto; max-height: 300px; margin: 0 auto 16px; border-radius: 12px; }
.product .desc { margin: 12px 0 0; font-size: 15px; }
.product .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold-soft); border-radius: 999px; padding: 2px 12px; }
.product h3 { font-family: var(--serif); color: var(--navy); font-size: 25px; margin: 10px 0 4px; }
.product .reading { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.product .price { font-family: var(--serif); font-size: 30px; color: var(--navy); margin: 6px 0 2px; }
.product .tax { font-size: 13px; color: var(--muted); }
.product ul { padding-left: 1.2em; margin: 14px 0; font-size: 14.5px; }
.product .pay { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.product .pay-label { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.pay-pending { background: var(--cream); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 0 0 10px; }
.product .bank { width: 100%; margin-top: 10px; }

/* 特典 */
.gifts { display: grid; gap: 14px; }
@media (min-width: 760px) { .gifts { grid-template-columns: repeat(2, 1fr); } }
.gift { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.gift .no { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.gift h3 { margin: 0 0 2px; font-size: 16.5px; color: var(--navy); }
.gift p { margin: 0; font-size: 14px; color: var(--muted); }

.gift-photo { border-radius: var(--radius); margin: 0 auto 18px; max-width: 900px; width: 100%; }

/* サポート */
.support { display: grid; gap: 18px; }
@media (min-width: 760px) { .support { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; color: var(--navy); font-size: 17px; }
.card p { margin: 0; font-size: 14.5px; }

/* 流れ */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.flow li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 64px; position: relative; }
.flow li b { color: var(--navy); }
.flow li::before { content: attr(data-n); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; color: var(--navy); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--gold); }
.faq details p { margin: 0; padding: 0 18px 16px; font-size: 15px; }

/* フッター */
.site-footer { background: var(--navy); color: #d9dde7; padding: 36px 0 28px; font-size: 13.5px; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.site-footer .copy { color: #9aa3b8; margin-top: 12px; }

/* 下層ページ */
.page { padding: 40px 0 64px; }
.page h1 { font-family: var(--serif); color: var(--navy); font-size: 26px; }
table.law { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; }
table.law th, table.law td { border: 1px solid var(--line); padding: 12px 14px; vertical-align: top; text-align: left; }
table.law th { width: 32%; background: var(--paper); color: var(--navy); }
@media (max-width: 600px) { table.law th, table.law td { display: block; width: 100%; } table.law th { border-bottom: none; } }
.page h2 { font-family: var(--serif); color: var(--navy); font-size: 20px; margin: 32px 0 8px; }
.profile { display: grid; gap: 22px; align-items: start; margin: 18px 0 8px; }
@media (min-width: 760px) { .profile { grid-template-columns: 240px 1fr; } }
.profile img, .profile .photo-ph { border-radius: var(--radius); width: 100%; }
.profile .photo-ph { aspect-ratio: 3 / 4; background: var(--paper); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.profile .role { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .1em; margin: 0; }
.profile .name { font-family: var(--serif); color: var(--navy); font-size: 26px; margin: 2px 0 2px; }
.profile .kana { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.facts { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; font-size: 14.5px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.facts b { color: var(--navy); margin-right: 8px; }
.quote { font-family: var(--serif); color: var(--navy); font-size: 18px; border-left: 3px solid var(--gold); padding: 6px 0 6px 14px; margin: 20px 0; }
.todo { background: #fff3cd; color: #7a5b00; padding: 0 4px; border-radius: 3px; font-weight: 700; }

/* スマホ下部の購入ボタン */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .96); border-top: 1px solid var(--line); z-index: 20; }
.sticky-buy .btn { width: 100%; }
@media (min-width: 900px) { .sticky-buy { display: none; } }
body.has-sticky { padding-bottom: 76px; }
@media (min-width: 900px) { body.has-sticky { padding-bottom: 0; } }
.photo-credit { display: block; text-align: right; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.sandbox-banner { background: #c0392b; color: #fff; text-align: center; font-weight: 700; font-size: 13px; padding: 6px 12px; letter-spacing: .05em; }
