@charset "UTF-8";

/* ==========================================================================
   SEGA SAMMY PHOENIX — Page: MISSION
   Figma: Olrvdnxd3NwLbhAQc64Qtl / node 50:12316 (PC base 1512px)
   MISSION ページ固有のセクションのみ。
   HEADER / section-head / NEWS / MOVIE / FOOTER は components.css を参照。
   ========================================================================== */

.page-mission {
  /* Figma のカラム: x = 120 / 552 / 984, 幅 408, gap 24 → コンテンツ幅 1272 */
  --mission-container: 1272px;
  /* カード帯は x = 139 〜 1369 の 1230 */
  --mission-cards-width: 1230px;
  /* Figma の左右余白 120px。共通の --gutter (142px) より狭いため別定義。 */
  --mission-gutter: min(7.94vw, 120px);
  /* 「戦歴データ」「season / 18-19」など左見出し列の幅。
     Figma: 左端 139 → テーブル 430 の間から gap 30 を引いた 259px。 */
  --mission-aside: 259px;
  /* 赤グラデ帯の下余白。HISTORY の暗幕もここまで伸ばす。
     Figma: scroll 窓下端 3023 → 帯下端 3110 = 87px */
  --mission-dark-pad-b: clamp(56px, 5.75vw, 87px);
  --mission-card-pad-x: clamp(20px, 2.91vw, 44px);
  --mission-card-pad-y: clamp(22px, 1.99vw, 30px);
}

/* --------------------------------------------------------------------------
   MISSION 上部の赤グラデ帯 ( MISSION / RECORDS / HISTORY を包む )
   -------------------------------------------------------------------------- */
.mission-dark {
  position: relative;
  isolation: isolate;
  /* Figma: header 下端 102 → MISSION ゴースト見出し 111 */
  padding-top: calc(var(--header-h) + 9px);
  padding-bottom: var(--mission-dark-pad-b);
  overflow: hidden;
}

/* Figma の NOISE エフェクト。TOP と同じ SVG タイルを等倍で敷く。
   ノイズはこの 1 枚だけにし、暗幕やフェードの上には重ね直さない。
   暗い領域だけに重ね直すと、その矩形の縁で
   ノイズ分の段差 ( 実測 輝度 +4〜+9 ) が横線として見えてしまうため。 */
.mission-dark__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: var(--noise-tile);
}

.mission-dark__bg,
.mission-dark__photo,
.mission-dark__embers {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.mission-dark__bg {
  inset: 0;
  background: var(--grad-mission);
}

/* 上部に重なるユニフォーム写真 ( Figma: 58:15900 / opacity 19% ) */
.mission-dark__photo {
  top: calc(-833 * var(--r));
  left: calc(-24 * var(--r));
  width: calc(1522 * var(--r));
  height: calc(2017 * var(--r));
  opacity: .19;
}

.mission-dark__photo img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center bottom;
}

/* 火の粉 ( Figma: 58:16967 / y = -404 ) */
.mission-dark__embers {
  top: calc(-404 * var(--r));
}

/* --------------------------------------------------------------------------
   共通レイアウト ( 見出し列 + 本文列 )
   -------------------------------------------------------------------------- */
.mission-block {
  display: grid;
  grid-template-columns: minmax(0, var(--mission-aside)) minmax(0, 1fr);
  column-gap: 30px;
  /* Figma の左見出し列はカード帯と同じ x139 基準。 */
  width: min(var(--mission-cards-width), 100% - 2 * var(--mission-gutter));
  margin-inline: auto;
}

/* Figma の破線 ( Vector 81 / x139–x1366 = カード帯と同じ幅 ) */
.mission-block--divided {
  padding-top: clamp(36px, 3.44vw, 52px);
  background-image: repeating-linear-gradient(
    to right,
    var(--color-white) 0 5px,
    transparent 5px 10px
  );
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: left top;
}

.mission-block__aside {
  padding-top: 12px;
}

/* --------------------------------------------------------------------------
   MISSION / VISION / CONCEPT / PHILOSOPHY カード
   -------------------------------------------------------------------------- */
.mission-intro {
  padding-bottom: 0;
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: min(var(--mission-cards-width), 100% - 2 * var(--mission-gutter));
  /* Figma: 見出しサブ下端 229.5 → カード上端 340 */
  margin: clamp(40px, 7.31vw, 110.5px) auto 0;
}

.mission-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--mission-card-pad-y) var(--mission-card-pad-x);
  background: var(--color-white);
  border-radius: 12px;
}

.mission-card--wide,
.mission-card--philosophy {
  grid-column: 1 / -1;
}

.mission-card__label {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .0805em;
  color: var(--color-ink);
}

.mission-card__title {
  margin-top: 4px;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(24px, 2.12vw, 32px);
  line-height: 1.5;
  letter-spacing: .0377em;
  text-transform: uppercase;
  color: var(--color-red);
  font-variation-settings: "slnt" -14;
}

.mission-card__text {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6875;
  letter-spacing: -.0195em;
  color: var(--color-ink);
}

.mission-card > .mission-card__text,
.mission-card__headline {
  margin-top: 18px;
}

/* MISSION のキャッチ ------------------------------------------------------- */
.mission-card__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 24px;
  color: var(--color-ink);
}

.mission-card__headline-main {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(26px, 2.85vw, 43px);
  line-height: 1;
  letter-spacing: -.0195em;
}

.mission-card__headline-sub {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(15px, 1.73vw, 26px);
  line-height: 1.1;
  letter-spacing: -.0195em;
  white-space: nowrap;
}

/* PHILOSOPHY ( details / summary ) ----------------------------------------- */
.mission-card--philosophy {
  display: block;
  /* Figma: カード 804–1352 / 見出し 843 / 本文下端 1302 */
  padding-block: clamp(24px, 2.58vw, 39px) clamp(26px, 3.31vw, 50px);
}

.mission-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
}

.mission-card__summary::-webkit-details-marker {
  display: none;
}

.mission-card__summary-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 30px;
}

/* summary 内では title / label をベースラインで横並びにする。 */
.mission-card__summary .mission-card__title {
  margin-top: 0;
}

.mission-card__chevron {
  flex: none;
  display: block;
  width: 21px;
  color: var(--color-ink);
  transition: transform var(--motion-base) var(--ease-smooth);
}

.mission-card__chevron svg {
  display: block;
  width: 100%;
  height: auto;
}

.mission-card--philosophy[open] > .mission-card__summary .mission-card__chevron {
  transform: rotate(180deg);
}

.mission-card__detail {
  display: flex;
  flex-direction: column;
  gap: 27px;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   RECORDS ( 戦歴データ )
   -------------------------------------------------------------------------- */
.mission-records {
  /* 表の内側の罫線 ( Figma: #e5e5e5 / 0.598px ) */
  --records-line: #e5e5e5;
  padding-block: clamp(56px, 5.9vw, 89px) 0;
}

.mission-heading {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(28px, 2.88vw, 43.538px);
  line-height: 1.2;
  letter-spacing: .0403em;
  text-transform: uppercase;
  color: var(--color-red);
  font-variation-settings: "slnt" -14;
}

.mission-heading__sub {
  margin-top: 20px;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(15px, 1.29vw, 19.538px);
  line-height: 1.2;
  letter-spacing: .0899em;
  text-transform: uppercase;
  color: var(--color-white);
  font-variation-settings: "slnt" -14;
}

.records-table__scroll {
  max-width: 929.319px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.records-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  table-layout: fixed;
  border: .598px solid var(--color-gray-300);
}

.records-table th,
.records-table td {
  padding: 8.6px 17.51px;
  border-right: .598px solid var(--records-line);
  border-bottom: .598px solid var(--records-line);
  font-family: var(--font-en);
  font-size: clamp(14px, 1.14vw, 17.21px);
  line-height: 1.5;
  letter-spacing: -.0195em;
  text-align: left;
  white-space: nowrap;
  color: var(--color-white);
}

.records-table thead th {
  font-weight: 700;
}

.records-table tbody th {
  font-weight: 400;
}

.records-table tr > :last-child {
  border-right: 0;
}

.records-table tbody tr:last-child > * {
  border-bottom: 0;
}

/* Figma の列幅 187.38 / 403.256 / 338.085 ( = 929.319 ) */
.records-table th:first-child {
  width: 20.16%;
}

.records-table th:nth-child(2) {
  width: 43.39%;
}

/* Figma: 表下端 1884.7 → 外部リンク 1931.3 */
.records-link {
  margin-top: clamp(24px, 3.04vw, 46px);
}

.records-link a {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(12px, .91vw, 13.768px);
  line-height: 1.5;
  letter-spacing: -.0047em;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--motion-fast) var(--ease-standard);
}

/* --------------------------------------------------------------------------
   HISTORY ( あゆみ )
   --------------------------------------------------------------------------
   PC ( 1025px 以上 / pointer:fine ) では
     左 = 現在のシーズン ( .history-active )
     右 = native な overflow-y: auto のスクロール領域 ( .history-scroll )
   に分かれる。JS が動かない場合と 1024px 以下は通常の縦積みで読める。
   -------------------------------------------------------------------------- */
.mission-history {
  position: relative;
  /* Figma: RECORDS リンク下端 1965.8 → HISTORY 見出し 2098 */
  padding-block: clamp(72px, 8.73vw, 132px) 0;
  /* 右スクロール領域の可視高さ。
     Figma は 1 シーズン分 4 段落 ( 2332–2993 = 661px ) を
     すべて読める窓。fade 分を加えて 700px を上限にする。 */
  --history-viewport: clamp(520px, 64vh, 700px);
  --history-viewport: clamp(520px, 72svh, 700px);
  /* paragraph 間の余白。Figma は p1→p2 63 ( 破線を含む ) / p2→p3 43 / p3→p4 63。 */
  --history-copy-gap: clamp(24px, 2.84vw, 43px);
  /* 下端の暗さ。overlay とセクション背景で同じ色を使う。 */
  --history-shade: 14, 6, 0;
}

/* セクション自体も下へ行くほど黒へ沈める。
   ノイズは .mission-dark::after が帯全体をまとめて前面に敷くので
   ここでは重ね直さない ( 重ねると上端 1960.7 に横線が出る )。 */
.mission-history::before {
  content: "";
  position: absolute;
  inset: 0 0 calc(-1 * var(--mission-dark-pad-b)) 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(var(--history-shade), 0) 0%,
    rgba(var(--history-shade), .12) 40%,
    rgba(var(--history-shade), .4) 72%,
    rgba(var(--history-shade), .74) 100%
  );
}

.history-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* RECORDS と同じく Figma の x139 基準に揃える。 */
  width: min(var(--mission-cards-width), 100% - 2 * var(--mission-gutter));
  /* Figma: 見出しサブ下端 2216.5 → season 2323 */
  margin: clamp(44px, 7.04vw, 106.5px) auto 0;
}

/* 左：現在のシーズン ( PC + JS のときだけ表示 ) --------------------------- */
.history-active {
  display: none;
}

.history-active__swap {
  margin-top: 6px;
  transition:
    transform var(--motion-fast) var(--ease-premium),
    opacity var(--motion-fast) var(--ease-premium);
}

/* 上へ抜ける / 下へ抜ける ( スクロール方向と一致させる ) */
.history-active__swap.is-out-up {
  transform: translateY(-26px);
  opacity: 0;
}

.history-active__swap.is-out-down {
  transform: translateY(26px);
  opacity: 0;
}

/* 反対側へ瞬間移動してから戻す ( 差し替え直後の 1 フレームだけ ) */
.history-active__swap.is-in-up,
.history-active__swap.is-in-down {
  transition: none;
  opacity: 0;
}

.history-active__swap.is-in-up {
  transform: translateY(26px);
}

.history-active__swap.is-in-down {
  transform: translateY(-26px);
}

/* 右：スクロール領域 ------------------------------------------------------- */
.history-scroll-shell {
  position: relative;
  max-width: 880px;
}

.history-scroll {
  /* PC 以外・JS 無しでは通常フロー。overflow は enhanced 時のみ付与する。 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.history-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.history-scroll:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 6px;
}

.history-season {
  display: grid;
  grid-template-columns: minmax(0, var(--mission-aside)) minmax(0, 1fr);
  column-gap: 60px;
  align-items: start;
}

/* 通常フロー時はシーズンの区切りに破線を引く。 */
.history-season + .history-season {
  margin-top: clamp(32px, 3.3vw, 50px);
  padding-top: clamp(32px, 3.3vw, 50px);
  background-image: repeating-linear-gradient(
    to right,
    var(--color-white) 0 5px,
    transparent 5px 10px
  );
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: left top;
}

.history-season__label,
.history-season__result,
.history-active__label,
.history-active__result {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .0899em;
  text-transform: uppercase;
  font-variation-settings: "slnt" -14;
}

.history-season__label,
.history-active__label {
  font-size: clamp(15px, 1.29vw, 19.538px);
  color: var(--color-white);
}

.history-season__year,
.history-active__year {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(48px, 5.46vw, 82.538px);
  line-height: .86;
  letter-spacing: .0213em;
  text-transform: uppercase;
  color: var(--color-red);
  font-variation-settings: "slnt" -14;
}

.history-season__year {
  margin-top: 6px;
}

.history-season__result,
.history-active__result {
  margin-top: 12px;
  font-size: clamp(14px, 1.09vw, 16.538px);
  color: rgba(255, 255, 255, .4);
}

.history-season__copy > * + * {
  margin-top: var(--history-copy-gap);
}

.history-season__text {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 16.608px);
  line-height: 2.46;
  letter-spacing: -.0266em;
  color: #e5e5e5;
}

/* Figma の破線 ( Vector 80 / stroke-dasharray 5 5 ) */
.history-season__divider {
  height: 1px;
  margin-top: 25px;
  border: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--color-white) 0 5px,
    transparent 5px 10px
  );
  background-repeat: no-repeat;
  background-size: 100% 1px;
}

.history-season__divider + .history-season__text {
  margin-top: 38px;
}

/* Figma の最終段落前は他より広い ( 2807 → 2870 ) */
.history-season__text:last-child {
  margin-top: clamp(34px, 4.17vw, 63px);
}

/* SCROLL DOWN ヒント ( Figma Group 81 / 中心 x865 = シェル x430 w922 の 47.2% ) --- */
.history-scroll-hint {
  display: none;
  position: absolute;
  left: 47.2%;
  bottom: clamp(12px, 1.4vw, 20px);
  z-index: 3;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
  color: var(--color-white);
  transition: opacity var(--motion-base) var(--ease-standard);
}

.history-scroll-hint.is-hidden {
  opacity: 0;
}

.history-scroll-hint__label {
  font-family: var(--font-gothic-a1);
  font-weight: 700;
  font-size: clamp(11px, 1vw, 15.053px);
  letter-spacing: .04em;
  white-space: nowrap;
}

.history-scroll-hint__arrow {
  width: 21.9px;
  height: auto;
  animation: history-hint-bounce 1.8s var(--ease-out) infinite;
}

@keyframes history-hint-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 1; }
  30%           { transform: translateY(8px); opacity: .5; }
}

/* --------------------------------------------------------------------------
   ACTIVITY ( 普及・地域貢献活動 )
   -------------------------------------------------------------------------- */
.mission-activity {
  /* Figma: セクション上端 3110 → 見出し 3204 / カード下端 4352 → 下端 4500 */
  padding-block: clamp(64px, 6.22vw, 94px) clamp(80px, 9.8vw, 148px);
  background: var(--color-page);
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 29px 24px;
  width: min(var(--mission-container), 100% - 2 * var(--mission-gutter));
  margin: clamp(40px, 5.2vw, 79px) auto 0;
  list-style: none;
}

.activity-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
}

.activity-card__media {
  aspect-ratio: 408 / 272.756;
  overflow: hidden;
}

.activity-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-card__body {
  flex: 1;
  padding: 22.43px 15.11px 14px;
}

.activity-card__title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(17px, 1.32vw, 20px);
  line-height: 1.4;
  letter-spacing: -.0118em;
  color: var(--color-red);
}

.activity-card__text {
  margin-top: 12px;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -.0157em;
  color: var(--color-ink-sub);
}

/* --------------------------------------------------------------------------
   Interaction ( hover / focus-visible )
   カード自体はリンクではないため hover は付けない。
   -------------------------------------------------------------------------- */
.records-link a:focus-visible {
  opacity: .78;
}

.mission-card__summary:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .records-link a:hover {
    opacity: .78;
  }

  .mission-card__summary:hover .mission-card__chevron {
    transform: translateY(2px);
  }

  .mission-card--philosophy[open] > .mission-card__summary:hover .mission-card__chevron {
    transform: rotate(180deg) translateY(2px);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* 1025px 以上 + マウス : HISTORY を「左 season 固定 + 右内部スクロール」へ ----
   .is-enhanced は mission.js が付与する。JS が無ければ通常フローのまま。  */
@media (min-width: 1025px) and (pointer: fine) {
  .history-stage.is-enhanced {
    grid-template-columns: minmax(0, var(--mission-aside)) minmax(0, 1fr);
    column-gap: 60px;
    align-items: start;
  }

  .history-stage.is-enhanced .history-active {
    display: block;
  }

  /* Figma の破線 Vector 80 は本文列 ( x460 w880 ) より左右にはみ出す ( x430 w922 )。
     シェルを先に 922 まで広げ、スクローラ側の padding で本文を 460 に戻す。 */
  .history-stage.is-enhanced .history-scroll-shell {
    max-width: 922px;
    margin-left: -30px;
  }

  .history-stage.is-enhanced .history-scroll {
    height: var(--history-viewport);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Figma: season 見出し 2323 に対し本文 1 段落目は 2332。
       左右は破線のはみ出し分を相殺する。
       下は最終シーズンの先頭が読書位置まで上がれるだけの余白。 */
    padding: 9px 12px clamp(48px, 8vh, 110px) 30px;
  }

  /* 破線だけを padding の外側 ( x430〜1352 ) まで伸ばす。
     padding を相殺するだけなので横スクロールは発生しない。 */
  .history-stage.is-enhanced .history-season__divider {
    margin-inline: -30px -12px;
  }

  /* 左に集約するので視覚的には隠すが、読み上げには残す。 */
  .history-stage.is-enhanced .history-season__meta {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .history-stage.is-enhanced .history-season {
    display: block;
  }

  /* enhanced 時はシーズン境界に線を引かず、余白だけで区切る。 */
  .history-stage.is-enhanced .history-season + .history-season {
    margin-top: clamp(48px, 5.5vw, 84px);
    padding-top: 0;
    background-image: none;
  }

  /* 下へ行くほど暗くなる固定オーバーレイ。
     scroll content ではなく viewport 側に固定するので、
     文章は「暗闇から上がってきて明るくなる」ように見える。
     左右は画面外まで伸ばし、暗幕の矩形の輪郭が出ないようにする
     ( .mission-dark が overflow: hidden なので横スクロールは発生しない )。 */
  .history-stage.is-enhanced .history-scroll-shell::after {
    content: "";
    position: absolute;
    top: 0;
    right: -100vw;
    bottom: 0;
    left: -100vw;
    z-index: 2;
    pointer-events: none;
    /* mission.js がスクロール量に応じて 1 → 2/3 → 最終段落で下端まで畳む。
       origin が bottom なので下端の色は動かず、上側だけが短くなる。
       height ではなく transform なので毎フレームの再描画が要らない。 */
    transform-origin: bottom;
    transform: scaleY(var(--history-fade-scale, 1));
    /* Figma カンプの本文輝度を実測した結果に合わせた減衰カーブ。
       p1 = 100% / p2 = 39% / p3 = 33% / p4 = 32% と、
       1 段落目の直後に大きく落ちてから緩やかに沈み込み、
       最下端 ( 窓の外 ) でだけ完全に溶けきる。 */
    background: linear-gradient(
      to bottom,
      rgba(var(--history-shade), 0) 0%,
      rgba(var(--history-shade), 0) 19%,
      rgba(var(--history-shade), .50) 29%,
      rgba(var(--history-shade), .62) 45%,
      rgba(var(--history-shade), .67) 60%,
      rgba(var(--history-shade), .68) 82%,
      rgba(var(--history-shade), .70) 90%,
      rgba(var(--history-shade), 1) 100%
    );
  }

  /* シェル下端から先はもう読み終えた領域なので、
     グラデーションの終端色をそのまま ACTIVITY 直前まで敷き詰める。
     ::after の終端と完全に同色・同質にすることで y=3017.8 の横線を消す。
     ( .mission-dark が overflow: hidden なので下は自然に切れる ) */
  .history-stage.is-enhanced .history-scroll-shell::before {
    content: "";
    position: absolute;
    top: 100%;
    right: -100vw;
    left: -100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    background-color: rgba(var(--history-shade), 1);
  }

  .history-stage.is-enhanced .history-scroll-hint {
    display: flex;
  }
}

/* ~1100px : 見出し列を少し詰める --------------------------------------------- */
@media (max-width: 1100px) {
  .page-mission {
    --mission-aside: 220px;
  }

  .history-season {
    column-gap: 32px;
  }
}

/* ~1024px : tablet --------------------------------------------------------- */
@media (max-width: 1024px) {
  .mission-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .mission-block {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .mission-block__aside {
    padding-top: 0;
  }

  .history-scroll-shell {
    max-width: none;
  }

  .history-season {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
  }

  .history-season__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
  }

  .history-season__year,
  .history-season__result {
    margin-top: 0;
  }

  .activity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* ~768px : large phone / small tablet -------------------------------------- */
@media (max-width: 768px) {
  .page-mission {
    --mission-gutter: var(--gutter);
  }

  .mission-dark {
    padding-top: calc(var(--header-h) + 40px);
  }

  .mission-card__summary {
    gap: 16px;
  }

  .mission-card__summary-inner {
    gap: 4px 20px;
  }

  .mission-card__detail {
    gap: 20px;
    margin-top: 24px;
  }

  .history-season__text {
    line-height: 2.1;
  }

  .activity-list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
  }
}

/* ~560px : phone ----------------------------------------------------------- */
@media (max-width: 560px) {
  .mission-card__headline {
    gap: 6px 14px;
  }

  .mission-card__headline-sub {
    white-space: normal;
  }

  .records-table th,
  .records-table td {
    padding: 10px 12px;
  }

  .history-season__meta {
    gap: 4px 12px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .mission-card__summary:hover .mission-card__chevron {
    transform: none;
  }

  .mission-card--philosophy[open] > .mission-card__summary:hover .mission-card__chevron {
    transform: rotate(180deg);
  }

  /* season の入れ替わりは即差し替えにする。gradient は animation ではないので維持。 */
  .history-active__swap {
    transition: none;
  }

  .history-scroll-hint__arrow {
    animation: none;
  }
}
