/* テクポテダービーの紹介サイト（web/）。ゲームと同じ クリーム・こげ茶・コーラル */
:root {
  --bg: #F7F1E8; --card: #FFFDF9; --ink: #2B2622; --sub: #7A6A5A; --line: #E7DCCD;
  --coral: #E8735F; --coral-d: #C9563F; --sky: #8EC5E8; --mint: #9BD3B0;
  --display: 'Mochiy Pop One', 'Zen Maru Gothic', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.8 'Zen Maru Gothic', system-ui, -apple-system, 'Hiragino Sans', sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-d); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* 上の帯 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(247,241,232,.92); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 400 18px var(--display); }
.top .brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.top nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.top .brand { white-space: nowrap; }
.top nav a:hover { color: var(--coral-d); }

/* いちばん上 */
.hero { padding: 36px 0 20px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.hero .art { border-radius: 28px; overflow: hidden; box-shadow: 0 18px 40px rgba(70,45,20,.16); max-height: 640px; }
.hero .art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero h1 { font: 400 clamp(32px, 6vw, 48px)/1.25 var(--display); margin: 0 0 14px; }
.hero h1 small { display: block; font: 700 16px/1.6 'Zen Maru Gothic', sans-serif; color: var(--sub); margin-bottom: 6px; }
.hero .lead { font-size: 18px; margin: 0 0 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }

/* 見出しつきの かたまり */
section { padding: 44px 0; }
h2 { font: 400 clamp(24px, 4.4vw, 30px)/1.35 var(--display); margin: 0 0 22px; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.feat article { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.feat article img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.feat article div { padding: 18px 22px 22px; }
.feat h3 { font: 400 20px/1.4 var(--display); margin: 0 0 6px; color: var(--coral-d); }
.feat p { margin: 0; }

.story { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 24px; }
.story img { border-radius: 18px; }
.story p { margin: 0 0 10px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.facts dt { color: var(--sub); font-weight: 700; }
.facts dd { margin: 0; }

/* 読み物のページ（サポート・プライバシー） */
.doc { max-width: 760px; margin: 0 auto; padding: 36px 20px 60px; }
.doc h1 { font: 400 28px/1.35 var(--display); margin: 0 0 6px; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; }
.doc small { color: var(--sub); }
.doc p, .doc li { margin: 6px 0; }
.qa details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
.qa summary { font-weight: 700; cursor: pointer; }
.qa details p { margin: 10px 0 2px; }

form.contact { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
form.contact label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
form.contact label span { font-weight: 500; color: var(--sub); font-size: 13px; }
form.contact select, form.contact input, form.contact textarea { font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); width: 100%; }
form.contact textarea { min-height: 160px; resize: vertical; }
form.contact .hp { position: absolute; left: -9999px; }
form.contact button { justify-self: start; font: 700 17px 'Zen Maru Gothic', sans-serif; padding: 12px 36px; border: 0; border-radius: 999px; background: var(--coral); color: #fff; cursor: pointer; }
form.contact button:disabled { opacity: .5; cursor: default; }
.msg { margin: 0; font-weight: 700; min-height: 1.6em; }
.msg.ok { color: #3E8E5B; } .msg.ng { color: var(--coral-d); }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--sub); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer a { color: var(--sub); }
footer .copy { margin-left: auto; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero .art { max-height: 520px; }
  .feat { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story img { max-width: 220px; }
  .top nav { gap: 14px; font-size: 13px; }
  .top .brand { font-size: 15px; gap: 8px; }
  .top .brand img { width: 30px; height: 30px; }
  footer .copy { margin-left: 0; width: 100%; }
}
