/* Ride on QC 紹介ページ
   夜間走行を思わせる紺と、反射材のアンバーの2色。
   純白と純黒を使わないことで、落ち着いた見え方にする。 */

:root {
  --amber: #d08a26;
  --amber-dark: #b2731a;
  --ink: #16202f;
  --navy: #1d2b45;
  --body: #4e5665;
  --muted: #858c98;
  --paper: #fbfaf8;
  --cream: #f1efe9;
  --line: #e4e1da;
  --night: #131b28;
  --night-line: #2a3448;
  --white: #fff;
  --radius: 20px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: Inter, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--amber-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--ink); line-height: 1.35; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(28px, 3.1vw, 40px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--amber-dark);
  font-size: 11px; font-weight: 700; letter-spacing: .17em;
  margin: 0 0 20px;
}
.eyebrow:before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* ---- ヘッダー ---- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fbfaf8d9; backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--amber-dark); }
.nav .btn-main, .nav .btn-main:hover { color: var(--white); }  /* .nav a より優先させる */

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 650; font-size: 15px; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-main { background: var(--amber); color: var(--white); box-shadow: 0 8px 22px #d08a2636; }
.btn-main:hover { background: var(--amber-dark); transform: translateY(-1px); box-shadow: 0 12px 28px #d08a2642; }
.btn-sub { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-sub:hover { border-color: #cfc9be; transform: translateY(-1px); }

/* ---- ヒーロー ---- */
.hero { position: relative; padding: 88px 0 76px; overflow: hidden; }
.hero:before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 58%, #f0e4d2 0, transparent 62%), var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 650; color: var(--ink);
  box-shadow: 0 2px 6px #16202f0d;
}
.pill b { color: var(--amber-dark); }
h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 750; margin: 22px 0 20px; }
.lead { font-size: 17px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }
.hero-note { font-size: 13px; color: var(--muted); }

/* ---- 生成されるキューシートのモック（スマホの画面） ----
   実物（template.js）の配色・寸法を縮尺して写している。
   白いカード＋#f2f2f7 の下地、矢印は大きく、距離は太字。 */
.phone {
  width: 320px; margin: 0 auto;
  background: var(--night); border-radius: 34px; padding: 12px;
  box-shadow: 0 30px 70px -26px #16202f66, 0 0 0 1px #d9d4cb;
}
.phone-screen {
  background: #f2f2f7; border-radius: 24px; overflow: hidden; color: #000;
  font-family: -apple-system, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  padding: 0 8px 8px;
}
.cs-nav { display: flex; background: #fff; margin: 0 -8px 8px; border-bottom: 1px solid #d5d5da; }
.cs-nav span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: #6e6e73; padding: 9px 0 7px; border-bottom: 2px solid transparent; }
.cs-nav .on { color: #c0392b; border-bottom-color: #c0392b; font-weight: 700; }
.cs-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px #0000001a; overflow: hidden; margin-bottom: 8px; }
.cs-card.cs-next { opacity: .55; }
.cs-main { display: flex; }
.cs-side { width: 46px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #ececf0; border-right: 1px solid #d5d5da; padding: 8px 2px; }
.cs-arrow { font-size: 24px; font-weight: 700; line-height: 1; }
.cs-sig { font-size: 9px; color: #1a7a3a; margin-top: 4px; }
.cs-body { flex: 1; padding: 9px 11px; min-width: 0; }
.cs-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.cs-place, .cs-road, .cs-mark { font-size: 14px; font-weight: 700; line-height: 1.35; }
.cs-dist { font-size: 10px; color: #6e6e73; font-weight: 600; white-space: nowrap; }
.cs-dist b { font-size: 16px; color: #000; font-weight: 800; }
.cs-road { margin-top: 3px; }
.cs-mark { margin-top: 4px; }
.cs-wxbtn { margin: 6px 10px 8px; background: #0062cc; color: #fff; border-radius: 8px; text-align: center; font-size: 11px; font-weight: 700; padding: 7px; }
.cs-wx { margin: 0 10px 8px; background: #ececf0; border-radius: 9px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; }
.cs-wind { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.cs-wind .ic { font-size: 22px; line-height: 1; font-weight: 700; }
.cs-wind .lb { font-size: 9px; font-weight: 700; margin-top: 2px; }
.cs-wind.head { color: #c0392b; }
.cs-wind.tail { color: #1a7a3a; }
.cs-wind.cross { color: #96700a; }
.cs-det { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; }
.cs-det div { display: flex; flex-direction: column; }
.cs-det .l { font-size: 8.5px; color: #6e6e73; font-weight: 600; }
.cs-det .v { font-size: 12px; font-weight: 800; line-height: 1.25; }
.cs-det .v.rain { color: #0062cc; }
.cs-map { margin: 0 10px 10px; }
.cs-map svg { display: block; width: 100%; border-radius: 9px; border: 1px solid #d5d5da; }
.cs-attr { font-size: 7.5px; color: #6e6e73; text-align: center; margin-top: 4px; }

/* ---- 地図と風のハイライト ---- */
.hl { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.sec-head + .hl { border-top: 0; padding-top: 0; }
.hl.rev .hl-text { order: 2; }
.hl-text .eyebrow { margin-bottom: 12px; }
.hl-text h3 { font-size: clamp(20px, 2.1vw, 26px); margin-bottom: 14px; }
.hl-text ul { margin: 18px 0 0; padding-left: 1.1em; font-size: 14.5px; }
.hl-text li { margin-bottom: 5px; }
.hl-visual { display: flex; justify-content: center; }
.mini-map { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 24px 50px -30px #16202f55; }
.mini-map svg { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.mini-cap { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.sw { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.sw.gray { background: #8e8e93; }
.sw.red { background: #ff3b30; }
.sw.pin { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; border: 2px solid #fff; box-shadow: 0 0 0 1px #0004; }
.wind-stack { width: 100%; max-width: 420px; display: grid; gap: 10px; }
.wx-row { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 16px; box-shadow: 0 14px 34px -26px #16202f55; }
.wx-row .cs-wind { min-width: 54px; }
.wx-row .cs-wind .ic { font-size: 30px; }
.wx-row .cs-wind .lb { font-size: 12px; }
.wx-row .cs-det { grid-template-columns: repeat(4, 1fr); gap: 4px 10px; }
.wx-row .cs-det .l { font-size: 11px; }
.wx-row .cs-det .v { font-size: 16px; color: var(--ink); }
.wx-row .cs-det .v.rain { color: #0062cc; }
.alt { background: var(--white); border-top: 1px solid var(--line); }

/* ---- 仕様の帯 ---- */
.specs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding: 26px 24px; border-left: 1px solid var(--line); }
.spec:first-child { border-left: 0; }
.spec b { display: block; color: var(--ink); font-size: 15px; font-weight: 650; }
.spec span { font-size: 13px; color: var(--muted); }

section { padding: 84px 0; }
.sec-head { max-width: 44em; margin-bottom: 44px; }
.sec-head p { margin-top: 14px; }

/* ---- カード ---- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 18px 44px -20px #16202f2e; transform: translateY(-2px); }
.card .num { font-size: 12px; font-weight: 700; color: var(--amber-dark); letter-spacing: .1em; }
.card h3 { margin: 8px 0 10px; }
.card ul { margin: 14px 0 0; padding-left: 1.1em; font-size: 14.5px; }
.card li { margin-bottom: 4px; }

/* ---- 暗いセクション ---- */
.night { background: var(--night); color: #b9c2d1; }
.night h2, .night h3 { color: #f2f5f9; }
.night .eyebrow { color: var(--amber); }
.night-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: center; }
.night-list { display: grid; gap: 18px; }
.night-item { border-left: 2px solid var(--night-line); padding-left: 18px; }
.night-item b { display: block; color: #f2f5f9; font-weight: 650; }
.night-item span { font-size: 14.5px; }
.steps-box { background: #17202e; border: 1px solid var(--night-line); border-radius: var(--radius); padding: 26px; }
.flow-step { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--night-line); }
.flow-step:last-child { border-bottom: 0; }
.flow-step em { font-style: normal; color: var(--amber); font-weight: 700; font-size: 13px; min-width: 3.4em; }
.flow-step span { font-size: 14px; }

/* ---- 使いはじめる ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--amber-dark);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.step p { font-size: 14.5px; margin-top: 8px; }
pre {
  background: var(--night); color: #dfe4ec; border-radius: var(--radius);
  padding: 22px 24px; overflow-x: auto; font-size: 13.5px; line-height: 1.9; margin: 0;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
}
pre .c { color: #7c8798; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary:before { content: "+"; color: var(--amber-dark); font-weight: 700; }
details[open] summary:before { content: "−"; }
details p { margin-top: 12px; font-size: 15px; padding-left: 24px; }

.caution { background: var(--cream); border-radius: var(--radius); padding: 26px 28px; font-size: 14.5px; margin-top: 40px; }
.caution b { color: var(--ink); }

.cta { text-align: center; background: var(--white); border-top: 1px solid var(--line); }
.cta .hero-actions { justify-content: center; }
.footer { padding: 36px 0 48px; font-size: 13.5px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.footer a { color: var(--body); text-decoration: none; }
.footer a:hover { color: var(--amber-dark); }
.footer .sep { margin-left: auto; }
.footer .counter b { font-weight: 600; color: var(--body); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .hero-grid, .night-grid, .hl { grid-template-columns: 1fr; gap: 40px; }
  .hl.rev .hl-text { order: 0; }
  .hl { padding: 28px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(3) { border-left: 0; }
  .spec { border-top: 1px solid var(--line); }
  .spec:first-child, .spec:nth-child(2) { border-top: 0; }
  .nav a:not(.btn) { display: none; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .specs-grid { grid-template-columns: 1fr; }
  .spec { border-left: 0; }
  .hero { padding: 56px 0 48px; }
  .phone { width: 100%; max-width: 320px; }
  .wx-row .cs-det { grid-template-columns: 1fr 1fr; }
}

/* ---- Amazon アソシエイト（道具・本） ---- */
.goods { border-bottom: 1px solid var(--line); }
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.good { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.good:hover { box-shadow: 0 18px 44px -20px #0000002e; transform: translateY(-2px); }
.good .gcat { font-size: 11px; font-weight: 700; color: var(--amber-dark); letter-spacing: .1em; }
.good h3 { font-size: 16px; margin: 6px 0 8px; }
.good p:not(.gcat) { font-size: 13.5px; flex: 1; }
.glink { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 650; color: var(--amber-dark); text-decoration: none; }
.glink:hover { color: var(--amber); text-decoration: underline; }
.good .gimg { height: 140px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 14px; display: block; background: var(--white); }
.good .gprice { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 10px; }
.good .gprice small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.goods-note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.footer .disclosure { width: 100%; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .goods-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .goods-grid { grid-template-columns: 1fr; } }

/* ---- シリーズの相互リンク（4サイト共通の作り） ---- */
.family { background: var(--cream); border-top: 1px solid var(--line); padding: 64px 0; }
.family .sec-head { margin-bottom: 28px; }
.family-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fam { display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; text-decoration: none; color: var(--body); transition: box-shadow .2s, transform .2s; }
.fam:hover { box-shadow: 0 18px 44px -20px #0000002e; transform: translateY(-2px); }
.fam img { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 8px; }
.fam b { color: var(--ink); font-size: 16px; }
.fam span { font-size: 13.5px; line-height: 1.6; }
.fam em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .08em; margin-top: 8px; }
.fam.current { background: var(--paper); border-style: dashed; }
@media (max-width: 900px) { .family-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .family-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
