/* みちのサイン 専用スタイル */
:root {
  --navy: #0a1f44;
  --navy-2: #0f2d63;
  --blue: #1e63d6;
  --sky: #eaf1fc;
  --sign: #ffd23f;
  --red: #e0283a;
  --ink: #142037;
  --ink-soft: #55607a;
  --white: #ffffff;
  --display: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); line-height: 1.9; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; }
.inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ヘッダー */
.ms-head { position: absolute; inset: 0 0 auto 0; z-index: 5; color: var(--white); }
.ms-head .inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 11px; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: .04em; }
.ms-nav { display: flex; gap: 26px; align-items: center; font-size: .88rem; }
.ms-nav a { text-decoration: none; opacity: .9; }
.ms-nav a:hover { opacity: 1; text-decoration: underline; }
.tag { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--sign); color: var(--navy); font-weight: 700; font-size: .8rem; text-decoration: none; }

/* ヒーロー */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: url("img/dusk.jpg") center 62% / cover no-repeat, var(--navy);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,31,68,.92) 0%, rgba(10,31,68,.72) 42%, rgba(10,31,68,.15) 75%);
}
.hero .inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; padding-top: 140px; }
.hero-copy { padding-bottom: 96px; }
.hero h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: .02em;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.35; margin: 0 0 22px;
}
.hero h1 span { display: inline-block; }
.hero p { margin: 0 0 30px; max-width: 30em; color: #dbe5f7; }
.status { display: flex; flex-wrap: wrap; gap: 10px; }
.status span { padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.4); font-size: .88rem; background: rgba(255,255,255,.08); }
.status .now { background: var(--sign); color: var(--navy); border-color: var(--sign); font-weight: 700; }
.hero-shot { align-self: end; justify-self: center; width: min(330px, 100%); }
.hero-shot img { border-radius: 26px 26px 0 0; box-shadow: 0 -10px 50px rgba(0,0,0,.35); }

/* 道路のライン */
.lane { height: 14px; background: repeating-linear-gradient(90deg, var(--sign) 0 56px, transparent 56px 96px), var(--navy); background-size: 96px 4px, auto; background-repeat: repeat-x; background-position: 0 50%; }

/* セクション */
.sec { padding: 88px 0; }
.sec h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.45; margin: 0 0 14px; letter-spacing: .02em; }
.lead { margin: 0 0 40px; color: var(--ink-soft); max-width: 36em; }

/* 規制カード */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rules li { border-radius: 18px; background: var(--sky); padding: 26px; display: grid; grid-template-rows: auto auto 1fr; gap: 6px; }
.rules h3 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.rules h3 svg { width: 30px; height: 30px; flex: none; }
.rules p { margin: 0 0 12px; color: var(--ink-soft); font-size: .95rem; }
.rules .shot { align-self: end; display: flex; justify-content: center; align-items: center; min-height: 150px; background: var(--white); border-radius: 12px; padding: 16px; }
.rules .shot img { max-height: 150px; width: auto; }

/* 走りながら分かる */
.ride { background: var(--navy); color: var(--white); }
.ride .lead { color: #c3d0ea; }
.ride-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.ride-grid article { border-top: 3px solid var(--sign); padding-top: 18px; }
.ride-grid h3 { margin: 0 0 6px; font-size: 1.15rem; }
.ride-grid p { margin: 0; color: #c3d0ea; font-size: .95rem; }
.with-nav { margin-top: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--navy-2); border-radius: 18px; padding: 28px; }
.with-nav img { border-radius: 12px; }
.with-nav h3 { margin: 0 0 6px; font-size: 1.15rem; }
.with-nav p { margin: 0; color: #c3d0ea; font-size: .95rem; }

/* 画面ギャラリー */
.gallery { list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery li { scroll-snap-align: start; }
.gallery img { border-radius: 16px; box-shadow: 0 8px 24px rgba(10,31,68,.18); }

/* データ・Q&A */
.data { background: var(--sky); }
.data .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.data p { margin: 0 0 1em; color: var(--ink-soft); }
.faq dl { margin: 0; }
.faq dt { font-weight: 700; padding-top: 16px; border-top: 1px solid #c9d6ee; }
.faq dt::before { content: "Q. "; color: var(--blue); }
.faq dd { margin: 4px 0 16px; color: var(--ink-soft); font-size: .95rem; }

/* CTA */
.cta { position: relative; color: var(--white); text-align: center; padding: 110px 0; background: url("img/night.jpg") center 70% / cover no-repeat, var(--navy); }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(6,18,42,.55); }
.cta .inner { position: relative; }
.cta img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 20px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.cta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0 0 8px; }
.cta p { margin: 0 0 28px; color: #d3def3; }
.cta .tag { font-size: 1rem; padding: 12px 30px; }

.ms-foot { background: var(--navy); color: #a9b8d6; font-size: .82rem; padding: 26px 0 40px; }
.ms-foot .inner { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 860px) {
  .ms-nav a:not(.tag) { display: none; }
  .hero .inner { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-copy { padding-bottom: 8px; }
  .hero::before { background: linear-gradient(180deg, rgba(10,31,68,.85), rgba(10,31,68,.55)); }
  .hero-shot { width: 260px; }
  .hero h1 { font-size: 7.4vw; }
  .rules { grid-template-columns: 1fr; }
  .ride-grid { grid-template-columns: 1fr; }
  .with-nav { grid-template-columns: 1fr; }
  .data .inner { grid-template-columns: 1fr; gap: 24px; }
  .sec { padding: 64px 0; }
}
