/* トップだけが読む部品（追補23-55 §1・§5）。体育会の就活と中途・転職のタブ、引退逆算ロードマップの入口、ツールのカードを横に流す列、
   見出しまわりの出だしの動き、スクロールで出てくる節。
   全ページが読む shared/tokens.css・note/assets/style.css には足さない（足すと全ページの版の印 ?v= が変わり、
   触っていないページの更新日まで変わるため。追補23-55 §6-3）。色は tokens.css の色だけを使い、使い方は tokens.css の冒頭の決まり（追補23-62 §4）に従う */

/* --- ヒーローの相談の入口 --- */
.top-hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.top-hero__time { margin: 0; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.top-hero__sub a + a { margin-left: 1.2em; }

/* --- ヒーローの黄のマーカーと、ロードマップへのサブ導線（追補23-62 §2）。黄は紺の地の上だけ。サブ導線は青緑の枠で、オレンジの相談ボタンより控えめに --- */
.top-hero__mark { background: var(--yellow); color: var(--navy); text-shadow: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.top-hero__sub a.top-hero__map {
  display: inline-block; padding: 7px 14px; border: 1.5px solid var(--teal-line); border-radius: 10px;
  color: #fff; text-decoration: none; transition: background-color .2s ease;
}
.top-hero__sub a.top-hero__map:hover { background: rgba(127, 208, 198, .16); }

/* --- 節の地のリズム（追補23-62 §2-1）。上から 白（ルート）→ 空色（競技の経験）→ クリーム（新着）→ 青緑の淡（練習ツール）→ いつもの淡い地 --- */
.top-section--sky { background: var(--sky); border-top: 1px solid var(--sky-line); }
.top-section--cream { background: #faeeda; border-top: 1px solid var(--cream-line); }   /* 節の地専用。例文の枠の --cream-bg より一段濃い。追補23-63 */
.top-section--teal { background: var(--teal-soft); border-top: 1px solid var(--teal-line); }
/* 色の付いた節の上辺に 1px の線を入れて、白の節との境目を見せる（追補23-63 §2） */
[data-theme="dark"] .top-section--cream { background: #2b2316; }   /* 暗い配色の当て先（追補23-63 §1）。上の文字は --text-main・--text-body・--text-muted とも AA */

/* --- 体育会の就活／中途・転職のタブ（shared/top-tabs.js。JS が無ければ両方の中身がそのまま並ぶ） --- */
.top-tabs__bar { position: sticky; top: 0; z-index: 5; background: var(--bg-white); border-bottom: 1px solid var(--border-color); }
.top-tabs__bar-inner { display: flex; gap: 8px; max-width: var(--container); margin: 0 auto; padding: 12px 20px; }
.top-tabs__btn {
  flex: 1 1 0; max-width: 260px; min-height: 48px; padding: 8px 16px; border: 2px solid var(--navy); border-radius: 12px;
  background: var(--bg-white); color: var(--navy); font-family: var(--font-base); font-size: 16px; font-weight: 800; cursor: pointer;
}
.top-tabs__btn[aria-selected="true"] { background: var(--navy); color: #fff; }
.top-tabs__btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.entry-pair--one { grid-template-columns: 1fr; }
.entry-pair--one .entry-panel { min-height: 420px; }

/* --- ヒーローの見出し（追補23-77 §2）。語の途中で折らない。スマホ幅は <br> を消して「から」の後ろで折る --- */
.top-hero__title { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 600px) { .top-hero__br { display: none; } }

/* --- 札と見出しを、ひとまとまりのまま画像の下側に寄せる（追補23-79 §1-2）。下端からは余白を取り、右下の「画像はイメージです」とも重ねない --- */
.top-hero.b-hero { display: flex; min-height: 440px; }
.top-hero.b-hero .top-hero__inner { width: 100%; margin: auto auto 0; padding-top: 40px; padding-bottom: 56px; }
@media (max-width: 600px) {
  .top-hero.b-hero { min-height: 300px; }
  .top-hero.b-hero .top-hero__inner { padding-top: 24px; padding-bottom: 40px; }
}

/* --- ヒーローの下のオレンジ帯（追補23-77 §2）。画面の左端から斜めに走る1本で、帯ごと map/ へのリンク --- */
.top-band { overflow: hidden; padding: 20px 0 4px; background: var(--bg-white); }
.top-band__link {
  display: block; width: max-content; max-width: calc(100% + 40vw); margin: 0 0 0 -40vw; padding: 10px 28px 10px 40vw;
  background: var(--orange); color: var(--on-accent); text-decoration: none; transform: skewX(-14deg);
}
.top-band__link:hover { text-decoration: none; }
.top-band__link:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.top-band__text { display: block; transform: skewX(14deg); font-size: clamp(18px, 2.4vw, 26px); font-weight: 900; line-height: 1.5; letter-spacing: .03em; word-break: keep-all; overflow-wrap: anywhere; }
.top-band__go { display: inline-block; margin-left: .8em; font-size: .72em; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.top-band__link:hover .top-band__go { text-decoration-thickness: 2px; }
@media (max-width: 600px) {
  .top-band { padding-top: 14px; }
  .top-band__link { padding-top: 6px; padding-bottom: 6px; }
  .top-band__text { font-size: 16px; }
}

/* 追補23-79 §1-1 で削除：ヒーローの見出しの下の、数えた値の1行（.top-hero__facts。追補23-65 §2-1） */
/* 追補23-90 裁定3 で削除：画像の下の数えた値の1行（.top-facts・.top-facts__line）。ヒーローの実績行（.hero-stats）と重なっていた */

/* --- 引退逆算ロードマップの入口（ルートごとに map/index.html?route=… を開く） --- */
.top-routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.top-route {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; border: 2px solid var(--sky-line); border-radius: var(--radius-lg);
  background: var(--bg-white); color: var(--navy); transition: border-color .2s ease, transform .2s ease;
}
.top-route:hover { border-color: var(--navy); text-decoration: none; transform: translateY(-2px); }
.top-route:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.top-route__name { font-size: 18px; font-weight: 900; line-height: 1.45; }
.top-route__name::after { content: " →"; color: var(--orange-ink); }
.top-route__who { font-size: 14px; line-height: 1.7; color: var(--text-body); }
.top-routes--teal .top-route { border-top: 5px solid var(--teal); }   /* 競技の経験の節のカードだけ、上辺を青緑に（追補23-62 §2-4。ロードマップのルートは紺系のまま） */

/* --- ツールのカードを横にゆっくり流す（追補23-55 §5-1。shared/motion.js が動かす。指で横にスワイプもできる） --- */
.tool-grid--track { display: flex; grid-template-columns: none; overflow-x: auto; padding: 4px 2px 16px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.tool-grid--track > .tool-card { flex: 0 0 300px; }
.tool-grid--track > .tool-card--wide { min-height: 240px; }
.tool-carousel__ctrl { display: flex; justify-content: flex-end; margin: 4px 0 0; }
.tool-carousel__toggle {
  min-height: 40px; padding: 6px 14px; border: 2px solid var(--navy); border-radius: 999px; background: var(--bg-white); color: var(--navy);
  font-family: var(--font-base); font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.tool-carousel__toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.tool-carousel__toggle[hidden] { display: none; }

/* --- 見出しまわりの出だし（追補23-55 §5-5）。動きを減らす設定では付けない --- */
@keyframes top-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* 追補23-77 §2 で削除：帯の出だし（@keyframes top-band）とボタン（.top-hero__btns）の動き */
@media (prefers-reduced-motion: no-preference) {
  .top-hero__badge, .top-hero__title, .top-hero__lead, .top-hero__sub { animation: top-rise .7s ease-out both; }
  .top-hero__title { animation-delay: .08s; }
  .top-hero__lead { animation-delay: .3s; }
  .top-hero__sub { animation-delay: .5s; }
}

/* --- スクロールで画面に入ったときに、下からふわっと出す（追補23-55 §5-2。shared/motion.js が、最初に画面の外にある節にだけ付ける）。
   JS が無いときと、動きを減らす設定のときは付かないので、いつも見える --- */
.mo-hide { opacity: 0; transform: translateY(16px); }
.mo-in { opacity: 1; transform: none; transition: opacity .7s ease-out, transform .7s ease-out; }
@media (prefers-reduced-motion: reduce) { .mo-hide { opacity: 1; transform: none; } .mo-in { transition: none; } }

/* --- 運営している人のページへの小さなリンク（追補23-57 §3） --- */
.top-about { padding-top: 8px; padding-bottom: 36px; }
.top-about p { margin: 0; font-size: 14px; font-weight: 700; }
.top-about a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .top-routes { grid-template-columns: 1fr; }
  .tool-grid--track > .tool-card { flex-basis: 82%; }
  .top-tabs__bar-inner { padding: 10px 16px; }
  .top-tabs__btn { font-size: 15px; }
  .top-hero__sub a + a { margin-left: 0; }
  .top-hero__sub a { display: inline-block; margin: 0 1em 6px 0; }
}

/* --- 練習ツールの行（追補23-85 §2）の6行は、追補23-91 の裁定3で消した（行の一覧 ol.b-tools をカードに置き換え、使われなくなったため） --- */

/* --- ヒーローの画像を PC とスマホで分けた（追補23-89 §6）。新しい画像は PC は左・スマホは上に紺の余白があるので、重ねる影を弱める --- */
.top-hero::before { background: linear-gradient(90deg, rgba(11, 29, 61, .55) 0%, rgba(11, 29, 61, .35) 34%, rgba(11, 29, 61, 0) 64%); }   /* 前は .92・.78・.18・0（note/assets/style.css） */
@media (max-width: 600px) {
  .top-hero__img { object-position: center top; }
  .top-hero::before { background: linear-gradient(180deg, rgba(11, 29, 61, .45) 0%, rgba(11, 29, 61, 0) 55%); }
}
/* 人物・トロフィーが切れないように、高さを画像に合わせた（追補23-89 §6 の合格条件。前の高さ PC 440px・スマホ 300px では、
   PC は足元とトロフィーのどちらかが切れ、スマホは上の紺の余白しか見えなかった）。スマホは札と見出しを上の紺の余白に置く */
@media (min-width: 601px) {
  .top-hero.b-hero { min-height: 560px; }
  .top-hero__img { object-position: 70% 65%; }
}
@media (max-width: 600px) {
  .top-hero.b-hero { min-height: calc(100vw * 1334 / 750); }
  .top-hero.b-hero .top-hero__inner { margin: 0 auto auto; padding-top: 32px; }
}

/* --- ヒーローの決定版（追補23-90 §3・§3-2）。値は local/design-lab/23-89-mock/hero-candidates-v3.html の案3（PC）と hero-sp-candidates.html の SP-2（スマホ）。
   本番に Web フォントは足さない（§3-4）。英字の小見出しと数字は Helvetica Neue・Arial の太字と字間で代える。
   黄 #ffd64a・オレンジ #f28c28・紺の影 rgb(11,28,58) は見本の値のまま（tokens.css の色の寄せは別の便。追補23-89 判断3） --- */
.top-hero::before { background: linear-gradient(90deg, rgba(11, 28, 58, .58) 0%, rgba(11, 28, 58, .38) 34%, rgba(11, 28, 58, 0) 64%); }
.top-hero.b-hero .top-hero__inner { margin: 0 auto auto; padding-top: 84px; padding-bottom: 48px; }
.top-hero.b-hero .top-hero__badge {
  margin: 0; padding: 7px 18px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .16em;
}
.top-hero__kicker { margin: 18px 0 0; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .44em; color: #ffd64a; }
.top-hero.b-hero .top-hero__title { margin-top: 10px; font-size: 40px; font-weight: 800; line-height: 1.5; letter-spacing: .05em; text-shadow: 0 2px 16px rgba(11, 28, 58, .5); }
.top-hero.b-hero .top-hero__mark { background: none; color: #ffd64a; text-shadow: inherit; }

.hero-cards { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-card {
  display: flex; flex-direction: column; align-items: flex-start; box-sizing: border-box; width: 200px; height: 100%; padding: 14px 16px 12px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(11, 28, 58, .25);
  color: #fff; text-decoration: none; transition: background-color .2s ease;
}
.hero-card:hover { background: rgba(255, 255, 255, .2); }
.hero-card:focus-visible { outline: 3px solid #ffd64a; outline-offset: 2px; }
.hero-card__pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; background: rgba(255, 214, 74, .92); color: #142f5c; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; }
.hero-card__pill--free { background: rgba(255, 255, 255, .88); }
.hero-card__num { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
.hero-card__title { margin-top: 9px; font-size: 15.5px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.hero-card__text { margin-top: 5px; font-size: 11.5px; font-weight: 500; line-height: 1.6; letter-spacing: .02em; color: rgba(255, 255, 255, .82); }
.hero-card__go { display: flex; align-items: center; justify-content: space-between; align-self: stretch; margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #ffd64a; }
.hero-card__ar { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #f28c28; color: #fff; font-size: 12px; }

.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .06em; color: rgba(220, 233, 248, .9); }
.hero-stats b { margin-right: 2px; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 15px; font-weight: 700; color: #fff; }
.hero-stats__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .35); }

@media (prefers-reduced-motion: no-preference) {
  .top-hero__kicker { animation: top-rise .7s ease-out both; animation-delay: .04s; }
  .hero-cards { animation: top-rise .7s ease-out both; animation-delay: .2s; }
}

@media (max-width: 600px) {
  .top-hero::before { background: linear-gradient(180deg, rgba(11, 28, 58, .62) 0%, rgba(11, 28, 58, .30) 34%, rgba(11, 28, 58, 0) 55%, rgba(11, 28, 58, .45) 100%); }
  /* 文字は上、カードと実績行は下に寄せる（見本は絶対配置。ここは縦に並べて、カードの上を余白で押し下げる） */
  .top-hero.b-hero .top-hero__inner { display: flex; flex-direction: column; align-items: flex-start; box-sizing: border-box; min-height: calc(100vw * 1334 / 750); margin: 0; padding: 28px 16px 36px; }   /* 下は右下の「画像はイメージです」と実績行を重ねない分 */
  .top-hero.b-hero .top-hero__badge { margin-left: 4px; padding: 6px 14px; font-size: 11px; letter-spacing: .14em; }
  .top-hero__kicker { margin: 14px 0 0 4px; font-size: 11px; letter-spacing: .4em; }
  .top-hero.b-hero .top-hero__title { margin: 8px 0 0 4px; font-size: 24px; line-height: 1.55; letter-spacing: .03em; text-shadow: 0 2px 14px rgba(11, 28, 58, .55); text-wrap: wrap; }   /* b.css の balance だと「から」で折れて、見本の「考える」の後ろで折る形にならない */
  .hero-cards { flex-direction: column; flex-wrap: nowrap; gap: 10px; align-self: stretch; margin-top: auto; padding-top: 24px; }
  .hero-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; width: auto; padding: 10px 14px; }
  .hero-card__pill { grid-column: 1; justify-self: start; padding: 2px 9px; font-size: 10px; }
  .hero-card__title { grid-column: 1; margin-top: 4px; font-size: 14.5px; }
  .hero-card__text, .hero-card__go-label { display: none; }
  .hero-card__go { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; }
  .hero-card__ar { width: 26px; height: 26px; font-size: 14px; }
  .hero-stats { align-self: stretch; justify-content: center; gap: 12px; margin-top: 16px; font-size: 11.5px; letter-spacing: .05em; color: rgba(220, 233, 248, .92); }
  .hero-stats b { margin-right: 1px; font-size: 13.5px; }
  .hero-stats__sep { height: 12px; }
}

/* --- タブレット幅（601〜999px）のヒーローのカード（追補23-90 裁定6）。横に3枚並べると、3枚目が人物に重なった（768px）。
   この幅だけ、スマホと同じ横長の行カードにして左の列に縦に積む。1000px 以上（PC）と 600px 以下（スマホ）の見た目は変えない --- */
@media (min-width: 601px) and (max-width: 999px) {
  .top-hero.b-hero { max-height: none; }   /* b.css の 901px 以上の max-height:480px があると、縦に積んだカードの下（実績行）が切れた（980px で確かめた） */
  .top-hero.b-hero .top-hero__inner { padding-top: 64px; }
  .hero-cards { flex-direction: column; flex-wrap: nowrap; gap: 10px; width: min(340px, 50vw); margin-top: 24px; }
  .hero-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; width: auto; padding: 10px 14px; }
  .hero-card__pill { grid-column: 1; justify-self: start; }
  .hero-card__title { grid-column: 1; margin-top: 4px; }
  .hero-card__text, .hero-card__go-label { display: none; }
  .hero-card__go { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; }
  .hero-card__ar { width: 26px; height: 26px; font-size: 14px; }
}

/* --- 1000〜1199px のヒーローのカード（追補23-91 §7）。200px の3枚を横に並べると、1000〜1150px で3枚目が人物に重なった（追補23-90 の残り）。
   この幅だけ、カードの幅を画面の幅に合わせて 170〜200px に縮める（1000px で 170px、1200px の手前で 200px）。1200px 以上と 999px 以下の見た目は変えない --- */
@media (min-width: 1000px) and (max-width: 1199px) {
  .hero-card { width: clamp(170px, calc(19.5vw - 25px), 200px); }
}

/* --- 追補23-124 段2：トップの「無料ツール」を6つの段に分けた。段の見出し（h3）と、段へ飛ぶリンク・小さいリンクの間隔（クラスは足していない） --- */
#tools h3 { margin: 30px 0 12px; color: var(--navy); font-size: 19px; font-weight: 900; line-height: 1.4; scroll-margin-top: 16px; }
#tools .b-cats { margin: 0; }
#tools .px-more { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 6px 0 0; }
#tools .px-more a { display: inline-flex; align-items: center; min-height: 44px; }

/* --- 追補23-126 段2：ページの頭の「つづきから」の帯（ヒーローのすぐ下、「今日からやること」の上）。金の縁と地は .px-resume（shared/theme.css）のまま。
   出る前に場所を取り（min-height）、中身が入るまでは見せない（visibility）。出るときにまわりが動かないようにするため。動きは付けない --- */
/* 追補23-129 段3-5：「今日からやること」の終わりの、オリーくんへの1行のリンク */
.top-resume { padding: 20px 0 0; }
.top-resume__box { margin: 0; min-height: 64px; flex-wrap: wrap; visibility: hidden; }
.top-resume.is-ready .top-resume__box { visibility: visible; }
.top-resume__text { flex: 1 1 0; min-width: 0; }
.px-resume .top-resume__go { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--mt-gold); color: var(--mt-cp-ink); font-weight: 900; text-decoration: none; }
.px-resume .top-resume__go:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
[data-theme="night"] .px-resume .top-resume__go { color: var(--mt-cp-ink); }
@media (max-width: 600px) {
  .top-resume__box { min-height: 128px; align-content: flex-start; }
  .top-resume__text { flex-basis: calc(100% - 50px); min-height: 3.2em; }
  .px-resume .top-resume__go { flex-basis: 100%; }
}

/* ---- 追補23-132 §2：記事を探す（前の4つの節を1つにまとめた。幅 768px 以下は、4つを切り替えて1つずつ出す） ---- */
.px-find .find__panel + .find__panel, .px-find .find__panel + .px-two { margin-top: 44px; }
.px-find .px-two > .find__panel + .find__panel { margin-top: 0; }
.px-find .find__panel .px-h2, .px-find .sec-head h3 { font-size: clamp(19px, 2.1vw, 24px); }
.px-find .sec-head { margin-bottom: 18px; }
.px-find .sec-head h3 { margin: 0; font-weight: 900; color: var(--navy); line-height: 1.4; }
.px-find .sec-head h3::after { content: ""; display: block; width: 48px; height: 5px; margin-top: 10px; background: var(--orange); border-radius: 3px; transform: skewX(-20deg); }
.find__tabs { display: none; }
.find__tab { min-height: 48px; padding: 8px 10px; border-radius: var(--radius); border: 2px solid var(--navy); background: var(--bg-white); color: var(--navy); font: 800 14px/1.4 var(--font-base); cursor: pointer; }
.find__tab[aria-pressed="true"] { background: var(--navy); color: var(--text-invert); }
.find__tab:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 768px) {
  .px-find { padding: 36px 0 40px; }
  .find--tabs .find__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 20px; }
  .find--tabs .find__panel:not(.is-on) { display: none; }
  .find--tabs .find__panel + .find__panel, .find--tabs .find__panel + .px-two { margin-top: 0; }
  .find--tabs .px-two { gap: 0; }
}

/* --- トップの節が、初めて画面に入るときの出方（追補23-132 §4-2）。shared/b/top.js が、始めに画面の外にある節（.mo-reveal）にだけ付ける。
   0.3秒で1回だけ、opacity と transform だけ。JS が無いとき・動きを減らす設定のとき・印刷のときは、始めから見える --- */
html.b-motion .mo-reveal.b-in { transition-duration: .3s; }
@media print { html.b-motion .mo-reveal.b-hide { opacity: 1; transform: none; } }

/* ===== 追補23-133 §2 段A → 追補23-134：トップ =====
   並びは、ヒーロー → 無料ツール（流れる一列）→ つづきから → ここから下は本番（2cdf136）と同じ節を同じ順（オレンジの帯・今月やること・カテゴリから探す・［いまの状況から選ぶ］・キーワードで記事を探す・まず読む3本／新着・更新）。
   23-133 で足した、畳んだ所（.top-fold）・「記事を探す」の節（.px-find）・朝／夜の切り替えをヒーローに重ねる決まり・見出しの下の空きの上書きは、23-134 で外した（本番の見た目に戻すため） */
.b-top { --top-gap: var(--gap-lg); }
.b-top main > section.tl { padding: var(--top-gap) 0; border-top: 0; }
.b-top main > section.tl { background: var(--sky); }
.b-top main > section.tl .px-h2 { margin-bottom: var(--gap-sm); }

/* --- ヒーロー（追補23-134 §4）。走っている2人が、頭からボールまで、幅 320〜1920 のどこでも切れないように、箱の高さと絵の位置を決める。h1 の下は、1行と入口3つ（23-133 のまま）。
   幅 601px 以上（横長の絵 1600×900。2人は、絵の横 57〜95%・縦 22〜66%（足の先は 92%）に居る）：
     幅 601〜1399px：箱の高さは「幅の40%」（380px より低くしない）。絵は縦に 71% 以上見える。絵の位置を縦 75% にすると、頭から足の先までが入る。
     幅 1400px 以上：箱の高さは 560px（本番と同じ）。絵は縦に 52〜71% 見える。絵の位置を縦 43% にすると、見える範囲の上の端は絵の 21% より上になり、頭からボールまでが入る（足の先は切れる）。
     箱が絵より縦長になって横が切れるとき（幅が狭いとき）は、横の位置 70% で、2人の側が残る。字は左の半分に収める（2人に重ねない）。
   幅 600px 以下（縦長の絵 750×1334。本番と同じ出し方）：箱の高さを絵と同じ比にして、絵を切らずに全部出す。字は上（空の所）、入口3つは下（表彰台の所）。 --- */
.top-hero.b-hero.top-hero--fit { display: block; min-height: max(380px, 40vw); max-height: none; }
.top-hero--fit .top-hero__img { object-position: 70% 75%; }
@media (min-width: 1400px) {
  .top-hero.b-hero.top-hero--fit { min-height: 560px; }
  .top-hero--fit .top-hero__img { object-position: 70% 43%; }
}
.top-hero.b-hero.top-hero--fit .top-hero__inner { display: block; min-height: 0; margin: 0 auto; padding: 40px 20px 44px; }
.top-hero--fit .top-hero__inner > * { max-width: min(48%, 560px); }
.top-hero.b-hero.top-hero--fit .top-hero__title { font-size: clamp(26px, 3.1vw, 40px); }
.top-hero__one { margin: var(--gap-sm) 0 0; font-size: 16px; font-weight: 700; line-height: 1.7; color: #fff; text-shadow: 0 1px 8px rgba(11, 28, 58, .6); }
.top-entry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-sm); margin: var(--gap) 0 0; padding: 0; list-style: none; }
.top-entry__a { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; height: 100%; padding: 6px 4px; border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius); background: #fff; color: var(--navy); font-size: 15px; font-weight: 800; line-height: 1.35; text-align: center; text-decoration: none; }
.top-entry__a:hover { background: var(--sky); text-decoration: none; }
.top-entry__a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 900px) { .top-entry__a { font-size: 13px; } }
/* 追補23-135 1-2：実績の行を戻したぶん、幅 601〜900px ではヒーローが高くなり、絵の2人の右の端が切れる。この幅では、上下の余白と実績の行を詰めて、前の高さに収める */
@media (min-width: 601px) and (max-width: 900px) {
  .top-hero.b-hero.top-hero--fit .top-hero__inner { padding-top: 28px; padding-bottom: 28px; }
  .top-hero--fit .hero-stats { flex-wrap: nowrap; gap: 8px; margin-top: 12px; font-size: 12px; letter-spacing: .02em; white-space: nowrap; }
  .top-hero--fit .hero-stats b { font-size: 13.5px; }
}
@media (max-width: 600px) {
  /* 追補23-135 1-1・1-2：スマホの絵は、大きさも切り方も前のまま（幅いっぱい・高さ 幅×1334/750）。字は絵の上の所に重ね、入口の3つと実績の行は、絵のすぐ下（紺の地）に置く。絵の中の2人に、字もボタンも重ねない */
  .top-hero.b-hero.top-hero--fit { display: block; min-height: 0; }
  .top-hero--fit .top-hero__img { bottom: auto; height: calc(100vw * 1334 / 750); object-position: center top; }
  .top-hero--fit::before { bottom: auto; height: calc(100vw * 1334 / 750); }
  .top-hero.b-hero.top-hero--fit .top-hero__inner { display: block; box-sizing: border-box; min-height: 0; margin: 0; padding: 0 16px 16px; }
  .top-hero--fit .top-hero__inner > * { max-width: none; }
  .top-hero--fit .top-hero__txt { box-sizing: border-box; min-height: calc(100vw * 1334 / 750); padding-top: 20px; }
  .top-hero.b-hero.top-hero--fit .top-hero__title { font-size: min(24px, 6.4vw); }
  .top-hero__one { margin: 8px 0 0 4px; font-size: 14px; line-height: 1.6; }
  .top-hero--fit .top-entry { margin-top: 12px; }
  .top-hero--fit .hero-stats { margin-top: 12px; }
  .top-hero--fit .top-hero__note { top: calc(100vw * 1334 / 750 - 28px); bottom: auto; }
}

/* --- 無料ツールの流れる一列（shared/tool-row.js）。追補23-134 §2：カードは、上に絵（元の縦横の比 1200:630 のまま。切らない）、下にツールの名前（太字・2行まで）。
   カードの幅は、幅 600px 以下で 200px、901px 以上で 250px。タブはツールの名前（1行で、横に送れる）。JS が無いときは、ただの横スクロールの列 --- */
.tl__head { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.tl__head .px-h2 { margin: 0; }
.tl__ctl { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.tl .px-sec__lead { margin: var(--gap-xs) 0 0; }
.tl__stop, .tl__tab { flex: 0 0 auto; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.tl__stop > span, .tl__tab > span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1px solid var(--navy); border-radius: var(--radius-pill); background: var(--bg-white); color: var(--navy); font-size: 13px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.tl__tab[aria-pressed="true"] > span { background: var(--navy); color: #fff; }
.tl__stop:focus-visible > span, .tl__tab:focus-visible > span { outline: 3px solid var(--orange); outline-offset: 2px; }
.tl__stop:focus-visible, .tl__tab:focus-visible { outline: none; }
.tl__tabs { display: flex; flex-wrap: nowrap; gap: 6px; height: 44px; margin: var(--gap-sm) -16px 0; padding: 0 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tl__tabs::-webkit-scrollbar, .tl__row::-webkit-scrollbar { display: none; }
.tl__view { position: relative; margin: var(--gap-xs) 0 0; }
.tl__row { display: flex; align-items: stretch; gap: 10px; box-sizing: border-box; margin: 0 -16px; padding: 4px 16px; list-style: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: auto; }
.tl__row > li { flex: 0 0 200px; display: flex; margin: 0; }
.tl__row .b-tool, .tl__all > a { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; box-sizing: border-box; width: 100%; min-height: 0; padding: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-white); color: var(--navy); text-decoration: none; }
.tl__row .b-tool::after { content: none; }
.tl__row .b-tool:hover, .tl__all > a:hover { border-color: var(--navy); text-decoration: none; }
.tl__row a:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.tl__thumb { position: relative; display: block; flex: 0 0 auto; width: 100%; aspect-ratio: 1200 / 630; background: var(--sky); }
.tl__thumb img { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; object-fit: contain; }   /* 絵は枠に重ねて置く（読む前と後で、カードの高さが変わらない） */
.tl__thumb img:not([src]) { visibility: hidden; }   /* 近づくまで読まない絵（場所は .tl__thumb の縦横の比で取ってある） */
.tl__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; box-sizing: content-box; height: 2.9em; margin: 8px 12px 10px; font-size: 14px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.tl__all > a { align-items: center; justify-content: center; padding: 12px; text-align: center; border-color: var(--navy); background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; line-height: 1.45; }
.tl__all > a:hover { background: var(--navy-dark); }
/* 記録があるツール：本番の大きいカードと同じ、金の枠（内側に重ねて描く）と「つづきから」の札（札の見た目は shared/theme.css の .px-tool__resume） */
.tl__row a.has-progress::before { content: ""; position: absolute; inset: 0; z-index: 2; border: 2px solid var(--mt-gold); border-radius: inherit; pointer-events: none; }
.tl__row .px-tool__resume { left: 8px; top: 8px; }
/* タブで選んだカード：枠が2秒だけ金になる（tool-row.js が is-hit を付けて外す。動きは無い） */
.tl__row a.is-hit::after { content: ""; position: absolute; inset: 0; z-index: 3; border: 4px solid var(--mt-gold); border-radius: inherit; pointer-events: none; }
.tl__arrow { display: none; }
.tl:not(.tl--js) .tl__stop, .tl:not(.tl--js) .tl__tabs { visibility: hidden; }
.tl__stop[hidden] { display: block; visibility: hidden; }   /* 流れていないとき（動きを減らす設定・幅に収まったとき）。場所は取ったまま */
@media (min-width: 601px) { .tl__row > li { flex-basis: 220px; } }
@media (min-width: 768px) {
  .tl__tabs { margin-left: 0; margin-right: 0; padding: 0; }
  .tl__row { gap: 12px; margin: 0; padding: 4px 0; }
  .tl__name { font-size: 15px; }
  .tl--js .tl__arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; }
  .tl--js .tl__arrow[hidden] { display: flex; visibility: hidden; }
  .tl__arrow svg { box-sizing: border-box; width: 30px; height: 30px; padding: 5px; border: 1px solid var(--navy); border-radius: 50%; background: var(--bg-white); }
  .tl__arrow:focus-visible { outline: none; }
  .tl__arrow:focus-visible svg { outline: 3px solid var(--orange); outline-offset: 2px; }
  .tl__arrow svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
}
@media (min-width: 901px) { .tl__row > li { flex-basis: 250px; } }
[data-theme="night"] .b-top main > section.tl { background: transparent; }
[data-theme="night"] .tl__row .b-tool, [data-theme="night"] .tl__stop > span, [data-theme="night"] .tl__tab > span, [data-theme="night"] .tl__arrow svg { background: var(--n-card, #16233a); border-color: var(--n-line, #2b3a55); color: var(--n-text, #e8eef7); }
[data-theme="night"] .tl__tab[aria-pressed="true"] > span { background: var(--n-text, #e8eef7); color: var(--navy-dark); }
[data-theme="night"] .tl__thumb { background: var(--n-card, #16233a); }
