/* ============================================================
   NEWS詳細ページ共通テンプレート
   記事固有の装飾を持たず、トップのNEWSセクションと同じトーンで使う。
   ============================================================ */
.news-detail-page {
  --article-blue: #0b77b8;
  --article-navy: #12365e;
  --article-coral: #e8604c;
  --article-yellow: #f2c85b;
  color: var(--article-navy);
  background: #dff2ff;
}

.news-detail-page .detail-header {
  position: absolute;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(11, 87, 141, .76), rgba(11, 87, 141, 0));
}

.detail-home { margin-right: auto; line-height: 1; }
.detail-home img {
  width: clamp(116px, 12vw, 168px);
  filter: drop-shadow(0 2px 8px rgba(4, 38, 71, .35));
}

/* 記事ヘッダー。画像はコンテンツ幅いっぱいに置く汎用形式 */
.article-hero {
  padding: clamp(132px, 13vw, 180px) 0 clamp(56px, 7vw, 88px);
  background: linear-gradient(180deg, #b9e5fb 0%, #dff2ff 100%);
}

.article-hero-inner {
  position: relative;
  width: min(var(--content-width), calc(100% - 64px));
  margin-inline: auto;
}

.article-hero-label {
  position: absolute;
  top: -.15em;
  right: 0;
  margin: 0;
  color: rgba(18, 54, 94, .06);
  font-size: var(--heading-size);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .82;
  pointer-events: none;
}

.article-meta {
  position: relative;
  display: flex;
  width: min(820px, 100%);
  margin: 0 0 24px;
  align-items: center;
  gap: 12px;
  color: rgba(18, 54, 94, .72);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
}
.article-meta a { text-decoration: none; }
.article-meta span {
  padding: 2px 10px;
  border: 1px solid rgba(18, 54, 94, .3);
  border-radius: 999px;
}
.article-meta time { font-variant-numeric: tabular-nums; }

.article-hero h1 {
  position: relative;
  max-width: 900px;
  margin: 0;
  color: var(--article-navy);
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.5;
  text-wrap: balance;
}

.article-main-visual {
  margin: clamp(38px, 6vw, 68px) 0 0;
  overflow: hidden;
  background: #fff;
}
.article-main-visual img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.article-shell {
  padding-top: clamp(58px, 8vw, 100px);
  background: linear-gradient(180deg, #dff2ff 0%, var(--sky3) 100%);
}
.article-narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }

.article-intro { font-size: clamp(15px, 1.4vw, 18px); line-height: 2.15; }
.article-intro p { margin: 0 0 1.6em; }
.article-intro strong { background: linear-gradient(transparent 65%, rgba(242, 200, 91, .55) 65%); font-weight: 500; }

.section-kicker {
  margin: 0 0 4px;
  color: var(--article-blue);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.5;
}
.article-section { padding-block: clamp(72px, 9vw, 112px); border-top: 1px solid rgba(18, 54, 94, .13); }
.article-section h2,
.contest-facts h2,
.closing-section h2 {
  margin: 0 0 30px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.5;
}

.contest-facts {
  margin-top: 76px;
  border-top: 1px solid rgba(18, 54, 94, .2);
}
.contest-facts section { padding: clamp(34px, 5vw, 54px) 0; border-bottom: 1px solid rgba(18, 54, 94, .2); }
.contest-facts h2 { margin-bottom: 18px; font-size: clamp(24px, 3vw, 36px); }
.contest-facts p { margin-bottom: 0; }
.fact-main { font-size: clamp(18px, 2.4vw, 26px); font-weight: 500; line-height: 1.7; }
.fact-main span { display: inline-block; padding-inline: 10px; color: var(--article-coral); }

.entry-section h2,
.rules-section h2,
.notice-section h2 { margin-bottom: 38px; }
.entry-methods { overflow: hidden; border: 1px solid rgba(18, 54, 94, .13); background: rgba(255,255,255,.62); }
.entry-method { padding: clamp(30px, 6vw, 56px); }
.entry-method h3 { margin: 0 0 24px; font-size: clamp(20px, 2.5vw, 28px); font-weight: 500; line-height: 1.5; }
.entry-method h3 > span {
  display: inline-grid;
  width: 1.7em;
  aspect-ratio: 1;
  margin-right: 10px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111;
}
.entry-method h3 > .entry-x-logo img { width: 17px; height: 17px; object-fit: contain; }
.entry-method ol { margin: 0 0 24px; padding-left: 1.5em; }
.entry-method li { margin: 8px 0; }
.entry-method a:not(.contest-button) { color: var(--article-blue); font-weight: 500; }
.entry-or { position: relative; margin: 0; color: rgba(18,54,94,.58); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-align: center; }
.entry-or::before { position: absolute; top: 50%; right: 0; left: 0; height: 1px; content: ""; background: rgba(18,54,94,.16); }
.entry-or span { position: relative; padding: 0 18px; background: #eef9ff; }
.hashtags { display: flex; margin: 24px 0; flex-wrap: wrap; gap: 8px; }
.hashtags span { padding: 6px 12px; border-radius: 6px; background: #d9f1fc; font-size: clamp(13px, 1.5vw, 16px); font-weight: 500; }

.contest-button {
  display: inline-flex;
  min-height: 52px;
  margin-top: 14px;
  padding: 10px 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--article-blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.5;
  text-decoration: none;
  transition: opacity .2s ease;
}
.contest-button:hover { opacity: .82; }
.contest-button.is-coral { background: var(--article-coral); }

.rule-list { margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rule-list li { position: relative; margin: 0; padding: 16px 12px 16px 48px; border-top: 1px solid rgba(18,54,94,.14); line-height: 1.8; counter-increment: rule; }
.rule-list li:last-child { border-bottom: 1px solid rgba(18,54,94,.14); }
.rule-list li::before {
  position: absolute;
  top: 15px;
  left: 8px;
  display: grid;
  width: 26px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(18,54,94,.32);
  border-radius: 50%;
  content: counter(rule);
  font-size: 10px;
  font-weight: 500;
}

/* 賞品も特設ページ化せず、通常記事の画像・リストとして扱う */
.prize-section { color: var(--article-navy); background: rgba(255,255,255,.18); }
.prize-heading { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.prize-overview { width: min(var(--content-width), calc(100% - 64px)); margin: clamp(42px, 7vw, 76px) auto; }
.prize-overview-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, .6fr);
  min-height: 350px;
  overflow: hidden;
  border: 1px solid rgba(18,54,94,.12);
  background: #fff;
}
.prize-overview-grid img { width: 100%; height: 100%; padding: 18px; object-fit: contain; }
.prize-overview-grid .overview-towel { padding: clamp(28px, 4vw, 52px); }
.prize-overview-grid .overview-card { padding: 24px; }
.prize-overview figcaption { margin-top: 10px; color: rgba(18,54,94,.65); font-size: 10px; letter-spacing: .08em; text-align: right; }
.prize-image-note {
  margin-top: -42px;
  margin-bottom: clamp(42px, 6vw, 70px);
  color: rgba(18,54,94,.72);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}

.award-list { display: grid; gap: 0; border-top: 1px solid rgba(18,54,94,.18); }
.award-card {
  position: relative;
  display: block;
  padding: clamp(28px, 4vw, 42px) 8px;
  border-bottom: 1px solid rgba(18,54,94,.18);
}
.award-grand { background: rgba(255,255,255,.48); }
.award-lottery { background: rgba(255,255,255,.24); }
.award-count { float: right; margin: 4px 0 0 16px; padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 400; line-height: 1.8; }
.award-card h3 { margin: 0 0 8px; font-size: clamp(18px, 2.5vw, 25px); font-weight: 500; line-height: 1.5; }
.award-theme { margin: 0 0 24px; font-weight: 400; line-height: 1.8; }
.award-card h4 { margin: 0 0 6px; color: var(--article-coral); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.award-card ul { margin: 0; padding-left: 1.25em; font-size: 13px; line-height: 1.9; }

.goods-gallery { display: grid; margin-top: clamp(70px, 9vw, 110px); grid-template-columns: repeat(2, 1fr); gap: 14px; }
.goods-gallery figure { margin: 0; overflow: hidden; border: 1px solid rgba(18,54,94,.12); background: #fff; }
.goods-gallery .goods-wide { grid-column: 1 / -1; }
.goods-gallery img { width: 100%; aspect-ratio: 4 / 5; padding: clamp(18px, 3vw, 32px); object-fit: contain; }
.goods-gallery .goods-towel img { aspect-ratio: 16 / 9; padding: clamp(36px, 6vw, 72px); }
.goods-gallery figcaption { padding: 9px 12px; border-top: 1px solid rgba(18,54,94,.1); font-size: 10px; font-weight: 400; line-height: 1.6; }

.notice-section p { margin: 1em 0; line-height: 2; }
.media-list { display: grid; margin: 28px 0; padding: 0; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; }
.media-list li { padding: 12px 16px; background: rgba(255,255,255,.65); font-weight: 400; }
.caution { margin-bottom: clamp(70px, 10vw, 120px); padding: clamp(24px, 4vw, 38px); border: 1px solid rgba(18,54,94,.16); background: rgba(255,255,255,.55); }
.caution h2 { margin: 0 0 12px; font-size: 18px; font-weight: 500; }
.caution p { margin: 8px 0; font-size: 12px; line-height: 1.9; }

.closing-section {
  padding-block: clamp(72px, 9vw, 112px);
  border-top: 1px solid rgba(18,54,94,.18);
  text-align: left;
}
.closing-section > div:not(.closing-buttons) { line-height: 2; }
.closing-section blockquote { margin: 34px 0; padding: 22px; border-top: 1px solid rgba(18,54,94,.22); border-bottom: 1px solid rgba(18,54,94,.22); font-family: var(--font-serif); font-size: clamp(17px, 2.4vw, 25px); font-weight: 700; }
.closing-section blockquote p { margin: 4px 0; }
.closing-call { margin: 50px 0 24px; color: var(--article-blue); font-family: var(--font-serif); font-size: clamp(20px, 3.5vw, 34px); font-weight: 900; line-height: 1.7; }
.closing-call span { white-space: nowrap; }
.closing-buttons { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
.closing-buttons .contest-button { min-width: 190px; }
.article-back { width: min(var(--content-width), calc(100% - 64px)); padding: 42px 0; }
.article-back a { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 400; letter-spacing: .08em; text-decoration: none; }
.detail-footer { margin-top: 0; }

@media (max-width: 900px) {
  .prize-overview-grid { grid-template-columns: repeat(3, 1fr); min-height: 0; }
  .prize-overview-grid .overview-towel { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
}

@media (max-width: 680px) {
  .detail-home { position: relative; z-index: 2; }
  .news-detail-page .detail-header { align-items: flex-start; }
  .news-detail-page .detail-header .global-nav { padding-top: 98px; }
  .article-hero { padding-top: 112px; }
  .article-hero-inner,
  .prize-overview,
  .closing-section,
  .article-back { width: calc(100% - 32px); }
  .article-hero-label { top: -.1em; font-size: var(--heading-size); }
  .article-meta { margin-bottom: 18px; }
  .article-hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .article-main-visual { margin-top: 30px; }
  .article-narrow,
  .prize-heading { width: min(100% - 32px, 820px); }
  .article-intro { line-height: 2; }
  .fact-main span { display: block; padding: 0; }
  .entry-method { padding-inline: 24px; }
  .entry-method .contest-button { width: 100%; }
  .award-card { padding-inline: 4px; }
  .award-count { float: none; width: fit-content; margin: 0 0 8px; }
  .goods-gallery { grid-template-columns: 1fr; }
  .goods-gallery .goods-wide { grid-column: auto; }
  .goods-gallery .goods-towel img { aspect-ratio: 4 / 3; padding: 34px 22px; }
  .media-list { grid-template-columns: 1fr; }
  .closing-buttons { display: grid; }
  .closing-buttons .contest-button { width: min(100%, 280px); margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .contest-button { transition: none; }
}

/* ---- 1周年ADVの紹介ページ（1st.html）------------------------------------
   NEWS詳細のテンプレートに、ゲームの埋め込み枠だけを足したもの。
   デザインは既存のまま流用し、新しい色・書体は増やさない */

/* 本文の中の「いますぐ遊ぶ」。埋め込み枠まで飛ばす近道 */
.play-jump { margin: 0; }

/* タイトル画面のスクショは記事バナーほど大きくしない。
   本文と同じ820pxの幅に収め、16:9のまま（既定の1200/630だと上下が切れる） */
.article-main-visual.is-compact {
  width: min(820px, 100%);
  margin-inline: auto;
  border-radius: 12px;
}
.article-main-visual.is-compact img { aspect-ratio: 16 / 9; }

.contest-button.is-sub {
  min-height: 44px;
  padding: 8px 20px;
  color: var(--article-blue);
  background: transparent;
  border: 1px solid rgba(11, 119, 184, .45);
  font-size: 12px;
}

.adv-character {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.adv-character-figure { margin: 0; }
.adv-character-figure img {
  display: block;
  width: 100%;
  /* 立ち絵(900×1400)は中身が444×1123しかなく周りが透明で、CSSで寄せても小さいまま。
     バストアップに切り出した専用画像(aria-bust.webp)をそのまま置く */
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, .5);
}
.adv-character h3 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.5;
}
.adv-character-roman {
  display: block;
  margin-top: 6px;
  color: rgba(18, 54, 94, .6);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
}
.adv-character p { margin: 0 0 1.2em; line-height: 2; }

/* ゲーム画面のスクショ。3枚を横に並べ、本文より広い1180pxの器に置く */
.adv-shots {
  /* gridではなくflex。枚数が3の倍数でない時、最後の行が左に寄らず中央に揃う */
  display: flex;
  width: min(var(--content-width), calc(100% - 64px));
  margin: clamp(30px, 4vw, 46px) auto 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 18px);
  list-style: none;
}
.adv-shots li { width: calc((100% - 2 * clamp(10px, 1.2vw, 18px)) / 3); }
.adv-shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 埋め込み枠だけは本文(820px)より広く、トップと同じ1180pxの器で見せる */
.adv-embed-wrap {
  width: min(var(--content-width), calc(100% - 64px));
  margin: clamp(30px, 4vw, 46px) auto 0;
}
.adv-embed {
  position: relative;
  width: 100%;
  /* 高さは固定pxにしない。スマホで枠が崩れる */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #0b1a2a;
}
.adv-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.adv-note {
  margin: .75em 0 0;
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.9;
  opacity: .8;
}
.adv-note a { color: var(--article-blue); font-weight: 500; }

@media (max-width: 680px) {
  .adv-embed-wrap { width: min(100% - 32px, 820px); }
  /* 幅が狭いと3枚並びでは何も読めないので縦に積む */
  .adv-shots { width: min(100% - 32px, 820px); }
  .adv-shots li { width: 100%; }
  .play-jump .contest-button { width: min(100%, 280px); }
  /* 幅が狭いと2カラムでは絵も文章も潰れるので、絵を上に積む */
  .adv-character { grid-template-columns: 1fr; }
  .adv-character-figure { width: min(62%, 240px); }
}

/* ---- 選手身長比較表ページ（height.html）---- */
.height-lineup-section { padding-bottom: clamp(40px, 6vw, 72px); }
.height-lineup {
  overflow-x: auto;
  margin: 28px auto 0;
  width: min(1400px, calc(100% - 24px));
  border: 1px solid rgba(18, 54, 94, .13);
  border-radius: 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.height-lineup img { display: block; width: 100%; height: auto; }
.height-scroll-hint { display: none; margin-top: 8px; color: #6b7c90; font-size: 13px; }
.height-zoom { margin-top: 14px; font-size: 14px; text-align: right; }
.height-zoom a { color: var(--article-blue); font-weight: 500; }
@media (max-width: 900px) {
  /* スマホでは画像を縮めず、名前と数字が読める大きさのまま横スクロールにする */
  .height-lineup img { width: 1600px; max-width: none; }
  .height-scroll-hint { display: block; }
}
.height-table-wrap { overflow-x: auto; margin-top: 28px; }
.height-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.height-table th, .height-table td { padding: 12px 10px; border-bottom: 1px solid rgba(18, 54, 94, .13); text-align: left; white-space: nowrap; }
.height-table thead th { color: #6b7c90; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.height-table tbody th a { color: var(--article-blue); font-weight: 700; text-decoration: none; }
.height-table .height-cm { font-weight: 700; }
.height-old { color: #8a96a8; text-decoration: line-through; }
.height-diff { margin-left: 8px; color: var(--article-coral, #e0564f); font-size: 13px; font-weight: 700; }
a.height-lineup { display: block; }
/* 身長改訂のNEWS記事：改訂した選手のカード */
.height-rev-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.height-rev-card a {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(18, 54, 94, .13);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.height-rev-face { overflow: hidden; width: 64px; height: 64px; border-radius: 50%; background: #e8f3fb; }
.height-rev-face img { display: block; width: 100%; height: 100%; }
.height-rev-name { color: var(--article-blue); font-weight: 700; }
.height-rev-name small { display: block; margin-top: 2px; color: #6b7c90; font-size: 12px; font-weight: 500; }
.height-rev-cm { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.height-rev-cm strong { font-size: 20px; }
@media (max-width: 560px) {
  .height-rev-card a { grid-template-columns: 52px 1fr; gap: 6px 12px; }
  .height-rev-face { grid-row: span 2; width: 52px; height: 52px; }
}
