/* 入口のページ（dodonenglish.com）の見た目（2026-10-15）。色はアプリのタイトル画面とロゴ（src/style.css の .tn-a）に合わせた。
   字は端末の書体（書体のファイルも外への通信も足さない）。 */
:root {
  color-scheme: light;
  --bg: #e3f0dc;          /* タイトル画面の淡い緑 */
  --bg-2: #d2e7c8;
  --paper: #fffdf6;       /* 図鑑の紙 */
  --ink: #0f172a;         /* ロゴの紺 */
  --ink-2: #334155;
  --muted: #64748b;
  --accent: #e4572e;      /* 「DODON」の朱 */
  --accent-ink: #b8401c;  /* 白地の上の朱のリンク（字の濃さ 4.5:1 以上） */
  --sky: #2ea7e6;         /* アイコンの空色 */
  --line: #e7e1d1;
  --radius: 18px;
  --font: system-ui, -apple-system, 'Hiragino Sans', 'Segoe UI', Roboto, sans-serif;
}
html:lang(ko) { --font: system-ui, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif; word-break: keep-all; }
html:lang(zh-Hant) { --font: 'PingFang TC', 'Noto Sans TC', system-ui, -apple-system, 'Microsoft JhengHei', sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent-ink); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* 上の帯：小さなアイコンと名前、言語 */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; font-weight: 900; letter-spacing: .01em; text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 0 rgba(15,23,42,.25); }
.brand b { color: var(--accent); }
.lang { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); min-width: 0; }
/* 狭い画面では「言語」の字を隠す（読み上げには select の aria-label で伝わる） */
.lang-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 760px) { .lang-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
.lang select {
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 6px 28px 6px 10px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f172a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none; appearance: none; cursor: pointer; max-width: 46vw;
}

/* 最初の画面：アイコン・ロゴ・ひとこと・ストア */
.hero { display: grid; gap: 28px; align-items: center; padding: 16px 0 40px; }
.hero-text { text-align: center; }
.app-icon {
  width: 128px; height: 128px; border-radius: 28px; display: block; margin: 0 auto 18px;
  box-shadow: 0 0 0 3px #fff, 0 6px 0 3px var(--ink);
}

/* ロゴ（アプリのタイトルの .tn-a と同じ組み：傾けた太い字、白い縁、紺の影、朱の「DODON」、紺の紙テープ、朱の短い線） */
.logo { margin: 0; line-height: 1.15; }
.logo-front {
  display: inline-block; transform: rotate(-3deg);
  font-weight: 900; font-size: clamp(34px, 10vw, 60px); letter-spacing: -0.01em; white-space: nowrap;
  color: var(--ink);
  text-shadow:
    2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
    2px 2px #fff, -2px 2px #fff, 2px -2px #fff, -2px -2px #fff,
    0 5px 0 var(--ink), 2px 5px 0 var(--ink), -2px 5px 0 var(--ink);
}
.logo-em { color: var(--accent); font-size: 1.18em; }
.logo-ch { display: inline-block; }
.logo-ch1 { transform: translateY(-0.07em) rotate(-7deg); }
.logo-ch2 { transform: translateY(0.03em) rotate(5deg); }
.logo-ch3 { transform: translateY(-0.05em) rotate(-3deg); margin-right: .04em; }
.logo-back { display: block; margin-top: 14px; }
.logo-back span {
  display: inline-block; padding: 6px 14px 5px; background: var(--ink); color: #fff;
  font-weight: 800; font-size: clamp(14px, 3.8vw, 19px); letter-spacing: -0.01em; line-height: 1.25;
  transform: rotate(-2deg);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%);
}
.logo-sub {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 16px 0 0; font-size: clamp(14px, 4vw, 18px); font-weight: 800; letter-spacing: .08em;
}
.logo-sub::before, .logo-sub::after { content: ''; flex: none; width: 22px; height: 3px; border-radius: 2px; background: var(--accent); }
.promo { margin: 18px auto 0; max-width: 34em; font-size: 16px; color: var(--ink-2); }

/* ストア：公開前は「近日公開」の札、公開後は公式のバッジ（Apple は高さ 40px 以上、Google は同じかそれより大きく） */
.stores { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: center; }
.soon {
  display: inline-flex; text-align: left; max-width: 100%; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: var(--paper);
  border: 2px dashed var(--ink); font-weight: 800; font-size: 15px;
}
.soon::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.badge { display: inline-block; line-height: 0; padding: 0; }
.badge-apple img { height: 48px; width: auto; }
/* Google の PNG は周りに透明の余白（上下それぞれ高さの約 13%）を含むので、見える高さが Apple と同じかそれ以上になるよう大きめに置く */
.badge-google img { height: 70px; width: auto; margin: -11px -9px; }

/* スクリーンショット（ストアの本番の最初の3枚）：スマホでは横に流す、広い画面では3つ並べる */
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; -webkit-overflow-scrolling: touch; }
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.shots img {
  display: block; width: 62vw; max-width: 240px; height: auto;
  border-radius: 16px; background: var(--bg-2);
  box-shadow: 0 0 0 3px #fff, 0 6px 0 3px var(--ink);
}

/* 紹介：見出しと書き出し → 横長の絵 → 「絵＋文の札」を左右入れ替えながら5組 → ご注意 → しめ */
section { padding: 8px 0 28px; }
h2 { font-size: clamp(22px, 5.6vw, 30px); line-height: 1.3; margin: 0 0 14px; font-weight: 900; }
.intro { font-size: 17px; max-width: 40em; margin: 0; }
.banner { margin: 22px 0 8px; }
.banner img {
  display: block; width: 100%; height: auto; border-radius: var(--radius); background: #8fd0f2;
  box-shadow: 0 0 0 3px #fff, 0 6px 0 3px var(--ink);
}

.features { display: grid; gap: 30px; margin-top: 30px; }
.feature { display: grid; gap: 16px; align-items: center; }
.feature-media { display: grid; gap: 14px; justify-items: center; }
/* 節の横のスクリーンショット：スマホでは2枚なら並べて、1枚なら少し大きく */
.fshots { display: flex; gap: 14px; justify-content: center; }
.fshots figure { margin: 0; }
.fshots img {
  display: block; width: 138px; height: auto; border-radius: 14px; background: var(--bg-2);
  box-shadow: 0 0 0 3px #fff, 0 5px 0 3px var(--ink);
}
.fshots.n1 img { width: 168px; }
.fshots figure:nth-child(2) { transform: translateY(14px); }
.fshots.n2 { padding-bottom: 14px; }
/* ステージのボス（1〜11）：丸い顔を並べる */
.bosses { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 330px; }
.bosses img {
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink);
}
/* 空色の板（機体・オフライン） */
.sky {
  width: 100%; max-width: 360px; border-radius: var(--radius); padding: 14px 12px;
  background: linear-gradient(180deg, #8fd0f2, #cdeaf8);
  box-shadow: 0 0 0 3px #fff, 0 6px 0 3px var(--ink);
}
/* スマホでは6機を1列に、広い画面では3機ずつ2列に */
.planes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 4px; justify-items: center; }
.planes img { width: 100%; max-width: 64px; height: auto; filter: drop-shadow(0 3px 0 rgba(15,23,42,.25)); }
.planes img:nth-child(odd) { transform: rotate(-6deg); }
.planes img:nth-child(even) { transform: rotate(5deg) translateY(6px); }
.offline { display: flex; justify-content: center; }
.offline-art { width: 130px; height: auto; display: block; }

.card { background: var(--paper); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: 0 0 0 2px var(--ink), 0 4px 0 2px var(--ink); }
.card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; font-weight: 900; }
.card h3::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-right: 8px; transform: rotate(45deg) translateY(-2px); }
.card ul { margin: 0; padding-left: 1.2em; }
.card li { margin: 2px 0; }
.card p { margin: 6px 0; }
.notes { margin-top: 34px; background: var(--paper); border-radius: var(--radius); padding: 12px 18px; box-shadow: 0 0 0 2px var(--line); }
.notes summary { cursor: pointer; font-weight: 800; }
.notes ul { padding-left: 1.2em; }
.closing { text-align: center; margin: 26px auto 0; max-width: 34em; }
.closing p { font-weight: 800; font-size: 18px; margin: 10px 0 0; }
.stickers { display: flex; justify-content: center; gap: 4px; }
.stickers img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(15,23,42,.2)); }
.stickers img:nth-child(odd) { transform: translateY(-6px) rotate(-6deg); }
.stickers img:nth-child(even) { transform: rotate(6deg); }

/* サポート：連絡先をはっきり（Apple はサポートの URL に連絡先を求める） */
.support { background: var(--ink); color: #fff; border-radius: 24px; padding: 24px 20px; margin: 8px 0 28px; }
.support h2 { color: #fff; }
.support p { margin: 6px 0; }
.mail {
  display: inline-block; margin: 10px 0 6px; padding: 12px 20px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 900; font-size: 18px; text-decoration: none; word-break: break-all;
  box-shadow: 0 4px 0 #8f2f12;
}
.mail:focus-visible, .mail:hover { background: #ef6a43; }
.support .hint { color: #cbd5e1; font-size: 14px; }
.support ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.support li a { color: #fff; text-underline-offset: 3px; }
.support li a::after { content: ' →'; }

footer { padding: 8px 0 40px; font-size: 13px; color: var(--muted); }
footer p { margin: 4px 0; }
footer a { color: var(--ink-2); }

@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding-top: 28px; }
  .logo-front { font-size: clamp(34px, 4.1vw, 52px); }
  .hero-text { text-align: left; }
  .app-icon { margin: 0 0 18px; }
  .logo-sub { justify-content: flex-start; }
  .promo { margin-left: 0; }
  .stores { justify-content: flex-start; }
  .shots { overflow: visible; margin: 0; padding: 4px 0 14px; justify-content: center; }
  .shots figure { flex: 1 1 0; min-width: 0; max-width: 180px; }
  .shots img { width: 100%; max-width: none; }
  .shots figure:nth-child(2) { transform: translateY(-18px); }
  .about-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .banner { margin: 0; }
  .sky { padding: 20px 16px; }
  .planes { grid-template-columns: repeat(3, 1fr); }
  .offline-art { width: 170px; }
  .features { gap: 44px; margin-top: 44px; }
  .feature { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 40px; }
  .feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
  .feature.flip .feature-media { order: 2; }
  .fshots img { width: 170px; }
  .fshots.n1 img { width: 200px; }
  .bosses { max-width: 360px; gap: 8px; }
  .bosses img { width: 48px; height: 48px; }
  .card { padding: 22px 24px 18px; }
  .card h3 { font-size: 19px; }
  .stickers img { width: 64px; height: 64px; }
  .support { padding: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .shots { scroll-behavior: smooth; }
}
