/* DotLauncher のページ (/dot-launcher 配下) だけの見た目。
   会社サイトの styles.css (Tailwind) と同居するので、全部 .dot-launcher の中に閉じている。
   Tailwind の preflight は @layer base なので、レイヤー無しのこのファイルが勝つ。

   アプリと同じく、明るい画面は 4 階調の液晶、暗い画面は黒地に白枠のウィンドウ。
   どちらで出すかは端末の設定 (prefers-color-scheme) に合わせる。色はアプリから拾った:
   明 = スクリーンショットの 4 階調、暗 = dot-launcher の app/src/main/assets/colors.toml。 */
@font-face {
  font-family: "DotGothic16";
  /* GT ROAD のページと同じファイルを使う */
  src: url(/assets/gt-road/fonts/DotGothic16-Regular.woff2) format("woff2");
  font-display: swap;
}

.dot-launcher, .dot-launcher *, .dot-launcher *::before, .dot-launcher *::after { box-sizing: border-box; }

.dot-launcher {
  --bg: #c5cda4;
  --fg: #33342d;
  --dim: #5f6550;
  --line: #33342d;
  --accent: #33342d;
  --on-accent: #c5cda4;
  --dot: rgba(51, 52, 45, 0.07);
  --dark-only: none;
  --light-only: block;

  min-height: 100vh;
  /* 液晶の画素の格子をごく薄く敷く */
  background: var(--bg) linear-gradient(var(--dot) 1px, transparent 1px) 0 0 / 4px 4px;
  color: var(--fg);
  overflow-x: clip;
  font-family: "DotGothic16", system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
  .dot-launcher {
    --bg: #0b0c0c;
    --fg: #eae9e3;
    --dim: #a7a483;
    --line: #f9f9f8;
    --accent: #ed9a1d;
    --on-accent: #0b0c0c;
    --dot: transparent;
    --dark-only: block;
    --light-only: none;
  }
}

.dot-launcher a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.dot-launcher a:hover { color: var(--accent); background: none; }
.dot-launcher p, .dot-launcher ul { margin: 0 0 16px; }
.dot-launcher h1, .dot-launcher h2, .dot-launcher h3 { font-weight: normal; line-height: 1.4; margin: 0; }

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

/* ヘッダーはアプリの上端の一行バー (左にアプリ名、右に 1 つだけ) */
.dot-launcher header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
.dot-launcher header.site a { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); text-decoration: none; }
.dot-launcher header.site a:hover { color: var(--accent); }
.dot-launcher header.site img { display: block; width: 24px; height: 24px; border-radius: 5px; }

/* ヒーロー: 左に時計のように大きなアプリ名、右に画面 */
.dot-launcher .hero { display: grid; gap: 32px; justify-items: center; padding: 40px 0 24px; }
.dot-launcher .hero .intro { text-align: center; }
.dot-launcher .hero .appicon { display: block; width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 22px; border: 2px solid var(--line); }
.dot-launcher .hero h1 { font-size: 44px; letter-spacing: 0.02em; color: var(--accent); }
.dot-launcher .hero .catch { font-size: 20px; margin: 4px 0 20px; }
.dot-launcher .hero .lead { text-align: left; color: var(--dim); }
.dot-launcher .hero .price { color: var(--dim); font-size: 14px; margin: 12px 0 0; }
.dot-launcher .store { display: inline-block; padding: 10px 22px; background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent); text-decoration: none; }
.dot-launcher .store::before { content: "▶ "; }
.dot-launcher a.store:hover { background: transparent; color: var(--accent); }

/* 画面写真・動画はスマホの形の枠に入れる。明暗 2 枚を重ねておき、ページの明暗に合うほうだけ出す */
.dot-launcher .phone { margin: 0; width: 100%; max-width: 270px; }
.dot-launcher .phone img, .dot-launcher .phone video { display: block; width: 100%; height: auto; aspect-ratio: 6 / 13; border: 2px solid var(--line); border-radius: 18px; background: var(--bg); }
.dot-launcher .phone figcaption { font-size: 13px; line-height: 1.5; color: var(--dim); text-align: center; padding-top: 8px; }
.dot-launcher .phone .only-light { display: var(--light-only); }
.dot-launcher .phone .only-dark { display: var(--dark-only); }

/* 見出しつきの枠。アプリの検索窓と同じ形で、題が上の枠線に乗る */
.dot-launcher .window { position: relative; border: 3px solid var(--line); border-radius: 8px; padding: 28px 20px 8px; margin: 56px 0 0; }
.dot-launcher .window > h2 { position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%); padding: 0 14px; background: var(--bg); font-size: 20px; white-space: nowrap; }
.dot-launcher .window .lead2 { color: var(--dim); }

/* 箇条書きは検索結果の行。頭のカーソルは先頭の行にだけ出す */
.dot-launcher .rows { list-style: none; padding: 0; }
.dot-launcher .rows li { position: relative; padding: 6px 0 6px 28px; }
.dot-launcher .rows li:first-child::before { content: "▶"; position: absolute; left: 0; top: 6px; }
.dot-launcher .rows li small { display: block; color: var(--dim); font-size: 14px; line-height: 1.7; }
.dot-launcher kbd { font-family: inherit; font-size: inherit; padding: 0 6px; border: 1px solid var(--dim); border-radius: 3px; }

.dot-launcher .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; justify-items: center; margin-bottom: 16px; }
.dot-launcher .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; justify-items: center; margin-bottom: 16px; }

/* 見た目の見本は、ページの明暗によらず両方を並べる。枠の色が地に溶けないよう固定する */
.dot-launcher .themes .phone img { border-color: #6e6a64; }

.dot-launcher .note { color: var(--dim); font-size: 14px; }

.dot-launcher footer.site { margin-top: 64px; padding: 16px 0 32px; color: var(--dim); font-size: 14px; border-top: 1px dashed var(--dim); }
.dot-launcher footer.site ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.dot-launcher footer.site a { color: var(--dim); }
.dot-launcher footer.site a:hover { color: var(--accent); }
.dot-launcher footer.site p { margin: 0; }

@media (min-width: 720px) {
  .dot-launcher .hero { grid-template-columns: 1fr 270px; gap: 48px; align-items: center; padding-top: 56px; }
  .dot-launcher .hero .intro { text-align: left; }
  .dot-launcher .hero .appicon { margin-left: 0; }
  .dot-launcher .hero h1 { font-size: 64px; }
  .dot-launcher .window { padding: 32px 28px 12px; }
}
