/* GT ROAD のページ (/gt-road 配下) だけの見た目。
   会社サイトの styles.css (Tailwind) と同居するので、全部 .gt-road の中に閉じている。
   Tailwind の preflight は @layer base なので、レイヤー無しのこのファイルが勝つ。 */
@font-face {
  font-family: "DotGothic16";
  src: url(/assets/gt-road/fonts/DotGothic16-Regular.woff2) format("woff2");
  font-display: swap;
}

.gt-road, .gt-road *, .gt-road *::before, .gt-road *::after { box-sizing: border-box; }


.gt-road {
  min-height: 100vh;
  /* 地はアスファルトの色。その上にチェッカーフラッグの市松をごく薄く敷く */
  background: #0b0d14 repeating-conic-gradient(rgba(255, 255, 255, 0.022) 0 25%, transparent 0 50%) 0 0 / 64px 64px;
  color: #e8e8ff;
  overflow-x: clip;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.gt-road a { color: #f2c230; text-decoration: underline; }
.gt-road a:hover { color: #fff; }

.gt-road .wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.gt-road header.site { background: #0f1320; }
/* ヘッダーの下はチェッカーフラッグ (8px の升目を 2 段) */
.gt-road header.site::after { content: ""; display: block; height: 16px; background: repeating-conic-gradient(#f4f4f0 0 25%, #14141c 0 50%) 0 0 / 16px 16px; }
.gt-road header.site .wrap { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.gt-road header.site img { display: block; width: 32px; height: 32px; image-rendering: pixelated; border-radius: 7px; }
.gt-road header.site a { color: #f2c230; text-decoration: none; font-family: "DotGothic16", system-ui, sans-serif; font-size: 22px; }

.gt-road h1, .gt-road h2 { font-family: "DotGothic16", system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; color: #f2c230; font-weight: normal; line-height: 1.4; }
.gt-road h1 { font-size: 28px; margin: 32px 0 16px; }
.gt-road h2 { font-size: 20px; margin: 40px 0 16px; padding-bottom: 6px; border-bottom: 2px solid #f2c230; }

/* LP の見出し: 頭にチェッカーの旗、下にロゴと同じ赤白のレーシングストライプ。
   プライバシーポリシーの見出し (.policy の中) には掛けない */
.gt-road main > h2 { border-bottom: 0; padding-bottom: 12px; background: linear-gradient(#e8344a, #e8344a) left bottom 5px / 100% 3px no-repeat, linear-gradient(#f4f4f0, #f4f4f0) 8px bottom / 100% 2px no-repeat; }
.gt-road main > h2::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -1px; background: repeating-conic-gradient(#f4f4f0 0 25%, #14141c 0 50%) 0 0 / 8px 8px; outline: 1px solid #f4f4f0; }

.gt-road p, .gt-road ul, .gt-road ol { margin: 0 0 16px; }

.gt-road .hero { position: relative; isolation: isolate; display: grid; gap: 24px; justify-items: center; padding: 32px 0 44px; }
/* ヒーローの背景は画面の幅いっぱいの夕焼けのサーキット。色はアイコンと同じ帯
   (夜空 → 紫 → 赤 → 橙) で、いちばん下に赤白の縁石。グラデーションにせず段で切ってドット絵に寄せる */
.gt-road .hero::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background:
    repeating-linear-gradient(90deg, #e8344a 0 24px, #f4f4f0 24px 48px) left bottom / 100% 12px no-repeat,
    linear-gradient(to top, #14141c 0 12px, #f6a85a 12px 44px, #d0605a 44px 84px, #7a3a7a 84px 132px, #3a2a6a 132px 196px, #1b1f4a 196px);
}
/* 夜空の星 (2px の点を box-shadow でばらまく) */
.gt-road .hero::after {
  content: ""; position: absolute; z-index: -1; top: 24px; left: 50%; width: 2px; height: 2px; background: #e8e8ff;
  box-shadow: -160px 30px #e8e8ff, -90px 90px #99aabb, 120px 10px #e8e8ff, 170px 70px #99aabb, -330px 60px #99aabb, -420px 150px #e8e8ff, 300px 40px #e8e8ff, 390px 120px #99aabb, -520px 20px #e8e8ff, 520px 90px #e8e8ff, 40px 140px #99aabb, -250px 170px #99aabb;
}
.gt-road .hero .intro { text-align: center; }
/* アプリのアイコンと同じ絵 (ゲームの godot/icon_ios.png)。ストアのアイコンらしく角を丸める */
.gt-road .hero .appicon { display: block; width: 128px; height: 128px; margin: 0 auto 12px; image-rendering: pixelated; border: 2px solid #000; border-radius: 28px; box-shadow: 4px 4px 0 #000; }
.gt-road .hero h1 { font-size: 40px; margin: 8px 0; }
.gt-road .hero .catch { font-family: "DotGothic16", system-ui, sans-serif; font-size: 20px; color: #e8e8ff; margin: 0 0 16px; }
.gt-road .hero .lead { text-align: left; color: #c5cde0; }
.gt-road .hero .stores { justify-content: center; margin-bottom: 0; }
/* 紹介動画。720x1280 で書き出してあるので、360px 幅なら等倍か 2 倍の画面にぴったり載る */
.gt-road .promo { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 9 / 16; background: #000; border: 2px solid #f2c230; box-shadow: 4px 4px 0 #000; }

.gt-road .roles { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.gt-road .roles li { position: relative; background: #0f1320; border: 2px solid #f2c230; box-shadow: 4px 4px 0 #000; padding: 12px 16px; }
.gt-road .roles .step { font-family: "DotGothic16", system-ui, sans-serif; font-size: 13px; color: #99aabb; letter-spacing: 0.08em; }
.gt-road .roles h3 { font-family: "DotGothic16", system-ui, sans-serif; font-weight: normal; color: #f2c230; font-size: 22px; line-height: 1.4; margin: 0 0 4px; }
.gt-road .roles p { margin: 0; font-size: 15px; line-height: 1.7; }

.gt-road .stores { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.gt-road .store {
  display: inline-block; padding: 10px 20px; border: 2px solid #000; background: #3a6fd9; color: #fff;
  box-shadow: 4px 4px 0 #000; text-decoration: none;
}
.gt-road .store.soon { background: #44485a; color: #e8e8ff; }

.gt-road .features { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gt-road .card { background: #0f1320; border: 2px solid #3a6fd9; box-shadow: 4px 4px 0 #000; padding: 12px 16px; }
.gt-road .card h3 { font-family: "DotGothic16", system-ui, sans-serif; font-weight: normal; color: #f2c230; font-size: 17px; line-height: 1.5; margin: 0 0 6px; }
.gt-road .card p { margin: 0; color: #e8e8ff; font-size: 15px; line-height: 1.7; }
.gt-road .note { color: #99aabb; margin-top: 16px; }

/* 画面写真。ページの地と同じ暗い色なので、スマホの形の枠と題で「これは画面の写真」と分かるようにする */
.gt-road .shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; max-width: 440px; margin-left: auto; margin-right: auto; }
.gt-road .shots li { margin: 0; }
.gt-road .shots figure { margin: 0; padding: 14px 8px 6px; background: #1c2030; border: 2px solid #6c7a99; border-radius: 16px; box-shadow: 4px 4px 0 #000; position: relative; }
/* 受話口 */
.gt-road .shots figure::before { content: ""; position: absolute; top: 5px; left: 50%; width: 32px; height: 4px; margin-left: -16px; background: #44485a; border-radius: 2px; }
.gt-road .shots img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border: 1px solid #000; image-rendering: pixelated; }
.gt-road .shots figcaption { font-family: "DotGothic16", system-ui, sans-serif; font-size: 13px; line-height: 1; color: #99aabb; text-align: center; padding: 8px 0 4px; }

.gt-road .policy { background: #0f1320; border: 2px solid #3a6fd9; box-shadow: 4px 4px 0 #000; padding: 8px 16px; margin-top: 16px; }
.gt-road .policy h2 { font-size: 17px; margin: 24px 0 8px; }
.gt-road .policy h2:first-child { margin-top: 12px; }
.gt-road .policy ul, .gt-road .policy ol { padding-left: 24px; list-style: disc; }
.gt-road .meta { color: #99aabb; font-size: 14px; margin-top: 24px; }
.gt-road .langs { color: #99aabb; font-size: 14px; margin: 16px 0 0; }

.gt-road footer.site { margin-top: 56px; padding: 0 0 32px; color: #99aabb; font-size: 14px; background: #0f1320; }
/* フッターの上は縁石 */
.gt-road footer.site::before { content: ""; display: block; height: 12px; margin-bottom: 16px; background: repeating-linear-gradient(90deg, #e8344a 0 24px, #f4f4f0 24px 48px); }
.gt-road footer.site ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.gt-road footer.site p { margin: 0; }

@media (min-width: 640px) {
  .gt-road .features { grid-template-columns: 1fr 1fr; }
  .gt-road .hero h1 { font-size: 56px; }
  .gt-road .roles { grid-template-columns: repeat(3, 1fr); }
  /* 役割が上がっていく向きを、枠のあいだの矢印で示す */
  .gt-road .roles li + li::before { content: "▶"; position: absolute; left: -15px; top: 50%; transform: translateY(-50%); color: #f2c230; font-size: 10px; line-height: 1; }
}

/* PC 幅では紹介文と動画を横に並べる。本文の幅からは左右にはみ出させる */
@media (min-width: 900px) {
  .gt-road .hero { grid-template-columns: 1fr 360px; gap: 40px; align-items: center; margin-left: -72px; margin-right: -72px; padding-top: 48px; padding-bottom: 60px; }
  .gt-road .hero .intro { text-align: left; }
  .gt-road .hero .appicon { margin-left: 0; }
  .gt-road .hero .stores { justify-content: flex-start; }
}

/* PC 幅ではゲームの画面を等倍 (360x640) で 2 列に並べる。枠のぶん本文の幅 (688px) から左右に 48px ずつはみ出させる */
@media (min-width: 800px) {
  .gt-road .shots { grid-template-columns: repeat(2, 380px); max-width: none; justify-content: center; gap: 24px; margin-left: -48px; margin-right: -48px; }
  .gt-road .shots figure { padding: 18px 8px 8px; border-radius: 20px; }
  .gt-road .shots figure::before { top: 7px; }
  .gt-road .shots img { width: 360px; height: 640px; }
  .gt-road .shots figcaption { font-size: 15px; padding: 10px 0 4px; }
}

/* PC 幅では紹介文と動画を横に並べる。本文の幅からは左右にはみ出させる */
@media (min-width: 900px) {
  .gt-road .hero { grid-template-columns: 1fr 360px; gap: 40px; align-items: center; margin-left: -72px; margin-right: -72px; padding-top: 48px; padding-bottom: 60px; }
  .gt-road .hero .intro { text-align: left; }
  .gt-road .hero .appicon { margin-left: 0; }
  .gt-road .hero .stores { justify-content: flex-start; }
}

/* PC 幅ではゲームの画面を等倍 (360x640) で 2 列に並べる。本文の幅 (688px) から左右に 28px ずつはみ出させる */
@media (min-width: 800px) {
  .gt-road .shots { margin-left: -28px; margin-right: -28px; }
  .gt-road .shots img { width: 360px; height: 640px; }
}
