/* ドパバトの表紙（2.509。2.633 で作り直した：星の降る丘の夜・ロゴ・★5 の 5 人・ストアのボタン）。
   規約などの文書のページは style.css。 */
:root {
  --night: #0b1033; --navy: #141c44; --panel: #1a2356; --line: #303c80;
  --yellow: #ffd23e; --orange: #ffa514; --soft: #b8c1e8; --ink: #141c44;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: #fff; font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; line-height: 1.75; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* —— 表紙：星の降る丘 —— */
/* スマホ：絵の幅を画面の 118% にすると、石の台がちょうど 5 人の足元に来る。絵の下の端は夜の色に溶かす */
.hero { position: relative; overflow: hidden; background: var(--night) url(img/hill.jpg) center top / 118vw auto no-repeat; text-align: center; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 118vw; background: linear-gradient(180deg, rgba(10, 11, 58, .55) 0%, rgba(10, 11, 58, 0) 32%, rgba(11, 16, 51, 0) 68%, rgba(11, 16, 51, .8) 88%, var(--night) 100%); }
.hero-in { position: relative; max-width: 980px; margin: 0 auto; padding: 34px 16px 30px; }

/* ロゴ：黒フチの字（フチは後ろに重ねた同じ字で描く） */
.logo { margin: 0; font-family: var(--round); font-weight: 900; line-height: 1; }
.ol { position: relative; display: block; width: max-content; margin: 0 auto; }
.ol .st { position: absolute; left: 0; top: 0; color: var(--navy); -webkit-text-stroke: .26em var(--navy); }
.ol .fg { position: relative; }
.logo .full { font-size: clamp(20px, 6.2vw, 34px); letter-spacing: .02em; }
.logo .full .fg { color: #fff; }
.logo .short { font-size: clamp(68px, 21vw, 132px); margin-top: .02em; letter-spacing: -.01em; }
.logo .short .st { -webkit-text-stroke-width: .17em; }
.logo .short .fg { background: linear-gradient(180deg, #fff7a0 18%, var(--orange) 88%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { display: inline-block; margin: clamp(2px, 1vw, 8px) 0 0; padding: .28em 1.2em .34em; font-family: var(--round); font-weight: 900; font-size: clamp(14px, 4.3vw, 22px); line-height: 1.2; background: rgba(20, 28, 68, .94); border: 2px solid var(--yellow); border-radius: 999px; }

/* ★5 の 5 人が丘に並ぶ */
.cast { display: flex; justify-content: center; align-items: flex-end; max-width: 760px; margin: clamp(8px, 3vw, 22px) auto 0; padding: 0 2%; }
.cast img { display: block; width: 26%; margin: 0 -4.5%; filter: drop-shadow(0 .5vw .7vw rgba(4, 6, 26, .6)); }
.cast .c3 { width: 34%; z-index: 2; margin-bottom: 2%; }
.cast .c2, .cast .c4 { z-index: 1; }

/* 入手のボタン */
.cta { margin-top: clamp(6px, 2vw, 14px); }
.lead { margin: 0 0 16px; text-shadow: 0 2px 6px rgba(4, 6, 26, .9), 0 0 2px rgba(4, 6, 26, .9); font-family: var(--round); font-weight: 800; font-size: clamp(16px, 4.6vw, 21px); line-height: 1.5; }
/* ストアの公式のバッジ（2.634。絵は変えない・2 つは同じ高さ・まわりに余白）。
   Google の絵は上下に余白が入っている（646×250 の中にバッジが 646×190。測った）ので、高さを 250/190 倍にして余白ぶんを詰める */
.badges { --h: 58px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.badges a { display: block; line-height: 0; border-radius: 10px; transition: transform .08s; }
.badges a:active { transform: scale(.97); }
.badges .s-ios img { height: var(--h); width: auto; }
.badges .s-android img { height: calc(var(--h) * 250 / 190); width: auto; margin: calc(var(--h) * -30 / 190) 0; }
/* 見ている端末のストアを先に出す */
.android .badges .s-android { order: -1; }
.free { margin: 14px 0 0; font-size: .8rem; color: var(--soft); }

/* —— 本文 —— */
main { max-width: 980px; margin: 0 auto; padding: 0 16px; }
section { padding: 44px 0 6px; }
h2 { margin: 0 0 10px; text-align: center; font-family: var(--round); font-weight: 900; font-size: clamp(24px, 7vw, 34px); line-height: 1.3; }
h2 span { color: var(--yellow); }
.merge h2 span { display: block; }
.sub { margin: 0 auto 20px; max-width: 34em; text-align: center; color: var(--soft); font-size: .95rem; }

/* 進化の並び */
.evo { list-style: none; margin: 0 auto; padding: 14px 8px 12px; max-width: 760px; display: flex; align-items: flex-end; justify-content: space-between; background: linear-gradient(180deg, #232e6e, var(--panel)); border: 2px solid var(--line); border-radius: 20px; }
.evo li { position: relative; flex: 1 1 0; text-align: center; }
.evo li + li::before { content: ""; position: absolute; left: -5px; top: 38%; border: 6px solid transparent; border-left: 9px solid var(--yellow); border-right: 0; }
.evo img { display: block; width: 100%; padding: 0 3%; }
.evo li:nth-child(1) img { padding: 0 16%; }
.evo li:nth-child(2) img { padding: 0 12%; }
.evo li:nth-child(3) img { padding: 0 7%; }
.evo b { display: inline-block; margin-top: 6px; padding: 1px .7em 2px; font-family: var(--round); font-weight: 900; font-size: clamp(10px, 2.9vw, 14px); line-height: 1.5; background: var(--navy); border: 1.5px solid var(--line); border-radius: 999px; white-space: nowrap; }
.evo .max b { background: linear-gradient(180deg, #ffe46b, var(--orange)); color: var(--ink); border-color: var(--ink); }

/* スクショ：横に送る */
.shots { display: flex; gap: 14px; overflow-x: auto; margin: 6px -16px 0; padding: 6px 16px 18px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { flex: 0 0 auto; width: 58%; max-width: 250px; border-radius: 18px; border: 2px solid var(--line); scroll-snap-align: center; }

/* 説明のカード */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; padding: 0; margin: 10px 0 0; list-style: none; }
.points li { border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px 18px; background: var(--panel); }
.points b { display: block; margin-bottom: 4px; font-family: var(--round); font-weight: 900; font-size: 1.25rem; color: var(--yellow); }
.points span { display: block; font-size: .93rem; color: #dfe4fb; }

/* もう 1 回、入手のボタン */
.again { text-align: center; padding-top: 52px; }
.again img { width: 84px; border-radius: 20px; border: 3px solid var(--ink); box-shadow: 0 5px 0 rgba(4, 6, 26, .65); }
.again-t { margin: 12px 0 14px; font-family: var(--round); font-weight: 900; font-size: 1.35rem; }

/* サポート */
.support { margin-top: 56px; padding: 28px 18px 22px; background: var(--panel); border: 2px solid var(--line); border-radius: 22px; }
.support h2 { text-align: left; font-size: 1.3rem; }
.support h2 span { color: #fff; }
.support h3 { margin: 26px 0 6px; font-family: var(--round); font-weight: 900; font-size: 1.1rem; }
.support nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.support nav a { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--navy); text-decoration: none; font-weight: 700; }
.support nav a::after { content: ""; width: 8px; height: 8px; border-right: 2.5px solid var(--yellow); border-top: 2.5px solid var(--yellow); transform: rotate(45deg); flex: none; }
.support p { margin: 8px 0; font-size: .93rem; color: #dfe4fb; }
.link { color: var(--yellow); font-weight: 700; word-break: break-all; }
footer { padding: 30px 16px calc(40px + env(safe-area-inset-bottom)); text-align: center; color: var(--soft); font-size: .82rem; }
footer p { margin: 0 auto; max-width: 46em; }
footer .tm { margin-top: 10px; font-size: .68rem; line-height: 1.6; opacity: .75; }
.ios footer, .android footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

/* 下に出る入手のボタン（スマホだけ） */
.dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 10; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; background: rgba(20, 28, 68, .96); border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.dock[hidden] { display: none; }
.dock img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.dock p { flex: 1; min-width: 0; margin: 0; line-height: 1.3; }
.dock p b { display: block; font-family: var(--round); font-weight: 900; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock p span { font-size: .72rem; color: var(--soft); }
.dock a { display: none; flex: none; padding: 9px 26px 11px; border-radius: 13px; background: linear-gradient(180deg, #ffe46b, var(--orange)); color: var(--ink); border: 2.5px solid var(--ink); font-family: var(--round); font-weight: 900; font-size: 1.05rem; line-height: 1.2; text-decoration: none; }
.ios .dock a.s-ios, .android .dock a.s-android { display: block; }

/* —— 広い画面 —— */
@media (min-width: 600px) {
  .badges { flex-direction: row; justify-content: center; gap: 22px; }
  .hero { background-size: cover; }
  .hero::before { height: auto; bottom: 0; background: linear-gradient(180deg, rgba(10, 11, 58, .55) 0%, rgba(10, 11, 58, 0) 30%, rgba(11, 16, 51, 0) 58%, rgba(11, 16, 51, .86) 80%, var(--night) 100%); }
}
@media (min-width: 760px) {
  .hero-in { padding-top: 48px; padding-bottom: 44px; }
  .shots { justify-content: center; overflow: visible; margin: 6px 0 0; padding: 6px 0 18px; gap: 12px; }
  .shots img { width: calc((100% - 48px) / 5); max-width: none; }
  section { padding-top: 64px; }
  .merge h2 span { display: inline; margin-right: .3em; }
}
@media (prefers-reduced-motion: no-preference) {
  .cast img { animation: bob 3.2s ease-in-out infinite; }
  .cast .c2, .cast .c4 { animation-delay: -1.1s; }
  .cast .c3 { animation-delay: -2.1s; }
  @keyframes bob { 50% { transform: translateY(-1.6%); } }
}
