@charset "UTF-8";
/* ==========================================================================
   style.css
   橘学苑中学校 LP
   デザインデータ：中学校デザイン/t_j_lp_4.ai（PC幅 1920px / コンテンツ幅 1200px）

   ブレイクポイント
   - PC      ：1240px 以上（デザインの数値どおり）
   - タブレット：1239px 以下
   - SP      ：767px 以下
   ========================================================================== */

:root {
  --c-black: #231815;
  --c-heading: #251e1c;
  --c-text: #000;
  --c-orange: #f7b14c;
  --c-orange-deep: #f49f48;
  --c-blue: #2198d0;
  --c-yellow: #ffc524;
  --c-gray: #757172;
  --c-footer-nav: #0e0000;
  --ff-base: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --grad-yellow: linear-gradient(112deg, #fff6d8 0%, #f8f5c3 100%);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-width: 320px;
  background: #fff;
  color: var(--c-text);
  font-family: var(--ff-base);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

a {
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  a:hover {
    opacity: 0.7;
  }
}

/* ==========================================================================
   Utility
   ========================================================================== */

.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 約物（句読点・カッコ）を半角幅に詰める（main.js で span を付与） */
.ym-open {
  margin-left: -0.5em;
}

/* 閉じ側は letter-spacing で詰める（行末で折り返し判定に反映させるため） */
.ym-close {
  letter-spacing: -0.5em;
}

/* SPでのみ改行 */
.u-sp {
  display: none;
}

@media (max-width: 767px) {
  .u-sp {
    display: inline;
  }

  .u-pc {
    display: none;
  }
}

/* ==========================================================================
   Layout
   ========================================================================== */

.l-container {
  position: relative;
  z-index: 1;
  width: calc(100% - 80px);
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  /* 小さい「ャュョッ」や「ー」を行頭に置かない */
  line-break: strict;
}

@media (max-width: 767px) {
  .l-container {
    width: calc(100% - 40px);
  }
}

/* 装飾アイコン共通：画面中央からの距離で配置（PC） */
.deco {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   共通パーツ
   ========================================================================== */

/* セクション見出し */
.sec-title {
  color: var(--c-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 77px;
  letter-spacing: 0.05em;
  text-align: center;
}

/* 見出し下のリード */
.sec-lead {
  margin-top: 20px;
  font-size: 21px;
  line-height: 42px;
  letter-spacing: 0.025em;
  text-align: center;
}

/* 3カラムの写真 */
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.photo-row img {
  width: 100%;
  aspect-ratio: 380 / 230;
  object-fit: cover;
}

/* 3カラムのカード */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--c-text);
}

.card__head {
  display: flex;
  align-items: center;
  height: 50px;
  background: var(--c-black);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
}

.card__head--center {
  justify-content: center;
}

.card__body {
  flex: 1;
  padding: 33px 45px 37px;
  font-size: 19px;
  line-height: 39px;
  letter-spacing: 0.025em;
  text-align: justify;
}

.card__list li::before {
  content: "● ";
}

@media (max-width: 1239px) {
  .sec-title {
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.9;
  }

  .sec-lead {
    font-size: clamp(16px, 1.7vw, 21px);
    line-height: 2;
  }

  .card__head {
    font-size: 20px;
  }

  .card__body {
    padding: 24px 26px 28px;
    font-size: 16px;
    line-height: 1.95;
  }
}

@media (max-width: 1023px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .sec-title {
    font-size: 24px;
    line-height: 1.6;
  }

  .sec-lead {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.9;
  }

  .photo-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .card__head {
    height: 46px;
    font-size: 18px;
  }

  .card__body {
    padding: 20px 22px 24px;
    font-size: 14px;
    line-height: 1.9;
  }
}

/* ==========================================================================
   アイキャッチ（MV）＋ グローバルナビ
   PC：kv.jpg（1920 × 938px）を背景全面に表示
   SP：kv_sp.jpg（1080 × 1920px）を縦横比どおり全体表示し、ナビを画像下部に重ねる
   ========================================================================== */

.mv {
  position: relative;
  height: clamp(560px, 47.5vw, 945px);
  background: var(--c-gray) url("../images/kv.jpg") center center / cover no-repeat;
  color: #fff;
}

/* KVの下端を次のイントロと同じネイビーへ自然に溶かす。
   下端の #0b1c38 は .intro の背景色の開始点と統一。 */
.mv::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(160px, 22vw, 290px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(11, 28, 56, 0) 0%,
    rgba(11, 28, 56, .14) 27%,
    rgba(11, 28, 56, .58) 69%,
    #0b1c38 100%
  );
}

.mv__content {
  height: 100%;
}

/* ダミー表示（アイキャッチ差し替え時に削除） */
.mv__dummy {
  position: absolute;
  top: calc(50% - 30px);
  left: 50%;
  width: 640px;
  max-width: calc(100% - 40px);
  padding: 48px 24px;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(255, 255, 255, 0.6);
  text-align: center;
}

.mv__dummy-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3em;
  opacity: 0.8;
}

.mv__dummy-title {
  margin-top: 16px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.mv__dummy-note {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.8;
}

@media (max-width: 767px) {
  .mv__dummy {
    top: calc(50% - 40px);
    padding: 32px 16px;
  }

  .mv__dummy-label {
    font-size: 12px;
  }

  .mv__dummy-title {
    margin-top: 12px;
    font-size: 22px;
  }

  .mv__dummy-note {
    margin-top: 8px;
    font-size: 13px;
  }
}

.gnav {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  z-index: 2;
  padding-right: 20px;
  padding-left: 20px;
}

.gnav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.075em;
}

.gnav__item + .gnav__item::before {
  content: "｜";
}

@media (max-width: 1239px) {
  .gnav__list {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  /* 1080×1920のSP画像を、上下左右切らずに全体表示する */
  .mv {
    height: auto;
    min-height: 0;
    background: var(--c-gray);
  }

  .mv__content {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    background: url("../images/kv_sp.jpg") center top / 100% auto no-repeat;
  }

  /* SPではKVの文字を隠しすぎないように、下部だけを短くフェード。 */
  .mv::after {
    height: clamp(110px, 35vw, 185px);
  }

  /* PCと同様に、メニューは画像の一番下に重ねる */
  .gnav {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 26px 10px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 100%);
  }

  .gnav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0;
    row-gap: 0;
    color: #fff;
    font-size: clamp(10px, 2.9vw, 12px);
    line-height: 1.8;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
}

/* ==========================================================================
   イントロ（KVから「５つの柱」まで連続する宇宙色のグラデーション）
   ========================================================================== */

.intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 49px 0 88px;
  /* 上下は周辺セクションの濃紺へ寄せ、中央でやわらかな青緑を見せる。 */
  background:
    radial-gradient(ellipse 62% 52% at 50% 18%, rgba(247, 252, 255, .18) 0%, rgba(247, 252, 255, 0) 64%),
    radial-gradient(ellipse 70% 46% at 50% 45%, rgba(184, 225, 224, .24) 0%, rgba(184, 225, 224, 0) 72%),
    radial-gradient(ellipse 84% 40% at 50% 74%, rgba(115, 217, 119, .22) 0%, rgba(115, 217, 119, 0) 76%),
    linear-gradient(180deg,
      #162844 0%,
      #8fa4be 18%,
      #b2c6d3 31%,
      #9fcfd0 48%,
      #79c993 67%,
      #57cf56 79%,
      #19406b 100%
    );
}

/* KVの星のニュアンスを受けて、ごく控えめな光点をイントロにも連続させる。 */
.intro::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    radial-gradient(1.5px 1.5px at 40px 70px, rgba(255, 255, 255, .72) 95%, transparent),
    radial-gradient(1px 1px at 155px 140px, rgba(239, 249, 255, .55) 95%, transparent),
    radial-gradient(1.5px 1.5px at 100px 30px, rgba(255, 255, 255, .6) 95%, transparent);
  background-size: 251px 219px, 313px 287px, 397px 331px;
}

/* 境界付近の光の色をいったん整え、KV・イントロ・５つの柱の境目を目立たせない。 */
.intro::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(8, 24, 49, .58) 0%,
      rgba(8, 24, 49, .24) 10%,
      rgba(255, 255, 255, 0) 26%,
      rgba(255, 255, 255, 0) 72%,
      rgba(10, 45, 39, .10) 84%,
      rgba(10, 31, 60, .38) 94%,
      rgba(6, 21, 44, .68) 100%
    );
}

.intro__lead {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 13, 36, .35);
  font-size: 39px;
  font-weight: 700;
  line-height: 70px;
  letter-spacing: 0.048em;
  text-align: center;
}

.intro__photos {
  margin-top: 47px;
}

/* 写真にもわずかな奥行きを付け、暗い背景に自然に溶け込ませる。 */
.intro__photos img {
  border: 1px solid rgba(224, 240, 255, .2);
  box-shadow: 0 20px 48px rgba(0, 10, 32, .2);
}

.intro__more {
  margin-top: 70px;
}

.intro__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  max-width: 100%;
  height: 70px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 70px;
  padding-left: 70px;
  background: var(--c-black);
  border-radius: 5px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.075em;
}

.intro__btn-icon {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 41px;
  height: 41px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.intro__btn-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--c-black);
  border-right: 2px solid var(--c-black);
  transform: translate(-70%, -50%) rotate(45deg);
}

@media (hover: hover) {
  .intro__btn:hover {
    opacity: 1;
  }

  .intro__btn:hover .intro__btn-icon {
    transform: translate(4px, -50%);
  }
}

/* 装飾アイコン（PC：デザインの座標を画面中央基準で再現） */
.intro__deco--rocket   { top: 105px; left: calc(50% - 665px); width: 90px; }
.intro__deco--book     { top: 232px; left: calc(50% - 808px); width: 110px; }
.intro__deco--flag     { top: 440px; left: calc(50% - 827px); width: 104px; }
.intro__deco--notebooks{ top: 608px; left: calc(50% - 704px); width: 124px; }
.intro__deco--saturn   { top: 589px; left: calc(50% - 469px); width: 114px; }
.intro__deco--chart    { top: 75px;  left: calc(50% + 671px); width: 118px; }
.intro__deco--ball     { top: 205px; left: calc(50% + 559px); width: 69px; }
.intro__deco--compass  { top: 224px; left: calc(50% + 806px); width: 45px; }
.intro__deco--ruler    { top: 313px; left: calc(50% + 803px); width: 55px; }
.intro__deco--notebook { top: 385px; left: calc(50% + 665px); width: 89px; }
.intro__deco--laptop   { top: 562px; left: calc(50% + 721px); width: 94px; }
.intro__deco--glasses  { top: 639px; left: calc(50% + 480px); width: 88px; }

@media (max-width: 1239px) {
  .intro {
    padding-top: 64px;
  }

  .intro__lead {
    font-size: clamp(24px, 3.1vw, 39px);
    line-height: 1.8;
  }

  .intro__more {
    margin-top: 56px;
  }

  /* タブレット・SPは四隅のアイコンのみ表示 */
  .intro__deco {
    display: none;
  }

  .intro__deco--rocket,
  .intro__deco--chart,
  .intro__deco--saturn,
  .intro__deco--glasses {
    display: block;
  }

  .intro__deco--rocket  { top: 16px; left: 3%; width: 63px; }
  .intro__deco--chart   { top: 16px; right: 3%; left: auto; width: 82px; }
  .intro__deco--saturn  { top: auto; bottom: 16px; left: 3%; width: 80px; }
  .intro__deco--glasses { top: auto; bottom: 26px; right: 3%; left: auto; width: 62px; }
}

@media (max-width: 767px) {
  .intro {
    padding: 84px 0 92px;
  }

  .intro__lead {
    font-size: 17px;
    line-height: 1.9;
    letter-spacing: 0.04em;
  }

  .intro__photos {
    margin-top: 32px;
  }

  .intro__more {
    margin-top: 36px;
  }

  .intro__btn {
    width: 320px;
    height: 60px;
    padding-right: 56px;
    padding-left: 56px;
    font-size: 15px;
  }

  .intro__btn-icon {
    right: 13px;
    width: 34px;
    height: 34px;
  }

  .intro__deco--rocket  { top: 18px; left: 16px; width: 48px; }
  .intro__deco--chart   { top: 18px; right: 16px; width: 62px; }
  .intro__deco--saturn  { bottom: 18px; left: 16px; width: 60px; }
  .intro__deco--glasses { bottom: 26px; right: 16px; width: 48px; }
}

/* ==========================================================================
   「学び方」と「生き方」をつくる５つの柱
   見出し・球体・背景を同一の sticky シーンに収め、セクション外には追従させない。
   スクロール中は pillars.js が球体と説明を順次切り替える。
   ========================================================================== */

.pillars {
  --scene-h: 100svh;
  background: #06152c;
}

/* 球体エリア全体を画面内に固定。見出し単体は sticky にしない */
.pillars .scene {
  top: 0;
  height: var(--scene-h);
  min-height: 0;
  isolation: isolate;
  background:
    radial-gradient(ellipse 54% 58% at 27% 48%, rgba(16, 91, 168, .72) 0%, rgba(9, 62, 128, .28) 47%, transparent 88%),
    radial-gradient(ellipse 48% 42% at 42% 62%, rgba(24, 132, 199, .37), transparent 75%),
    /* イントロの淡いグリーンを、星雲側にも自然に引き継ぐ */
    radial-gradient(ellipse 48% 54% at 85% 68%, rgba(69, 170, 145, .16) 0%, transparent 80%),
    radial-gradient(ellipse 40% 58% at 85% 35%, rgba(24, 55, 108, .54), transparent 86%),
    linear-gradient(135deg, #030a1b 0%, #061631 42%, #09264d 69%, #030b21 100%);
}

/* KV内の星雲をイメージした青白い光 */
.pillars .scene::before,
.pillars .scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pillars .scene::before {
  background:
    radial-gradient(ellipse 23% 18% at 32% 56%, rgba(106, 203, 255, .30) 0%, rgba(23, 109, 184, .10) 47%, transparent 100%),
    radial-gradient(ellipse 17% 32% at 41% 47%, rgba(28, 119, 215, .29), transparent 86%),
    radial-gradient(ellipse 25% 17% at 15% 29%, rgba(22, 101, 185, .15), transparent 92%);
  filter: blur(20px);
}

/* サイズと間隔を変えた星粒を重ねて自然な宇宙感を演出 */
.pillars .scene::after {
  background-image:
    radial-gradient(1.5px 1.5px at 22px 38px, rgba(241, 253, 255, .9) 96%, transparent),
    radial-gradient(1px 1px at 94px 112px, rgba(183, 234, 255, .83) 96%, transparent),
    radial-gradient(2px 2px at 150px 56px, rgba(162, 221, 255, .72) 96%, transparent),
    radial-gradient(1px 1px at 37px 147px, rgba(255, 255, 255, .88) 96%, transparent),
    radial-gradient(1px 1px at 190px 180px, rgba(137, 204, 255, .58) 96%, transparent),
    radial-gradient(1px 1px at 260px 74px, rgba(255, 255, 255, .8) 96%, transparent);
  background-size: 227px 195px, 193px 211px, 281px 223px, 169px 199px, 309px 267px, 347px 289px;
  background-position: 0 0, 44px 29px, -37px 61px, 5px 76px, 85px 53px, 74px 110px;
  opacity: .83;
}

.pillars__title {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 114px;
  margin: 0;
  padding: 24px 24px 18px;
  background: linear-gradient(180deg, rgba(3, 10, 29, .80) 0%, rgba(3, 10, 29, .18) 77%, transparent 100%);
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .05em;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 7, 26, .7);
  pointer-events: none;
}

/* 見出しの下から球体を展開し、背景の星粒と重ねる */
.pillars .artboard {
  top: 15%;
  bottom: 7%;
}

/* 星空背景でも右側の案内が読みやすいようにコントラストを確保 */
.pillars .detail-tag,
.pillars .detail-count,
.pillars .nav-label,
.pillars .scroll-hint {
  color: #b1d3ed;
}

.pillars .detail-line,
.pillars .detail h2::after {
  background: rgba(157, 202, 239, .65);
}

.pillars .detail h2 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 10, 30, .32);
}

.pillars .detail p {
  color: #dcecfb;
}

.pillars .detail-more {
  border-color: rgba(172, 218, 255, .67);
  background: rgba(11, 44, 83, .3);
  color: #fff;
}

.pillars .detail-more:hover {
  border-color: #b8e5ff;
  background: rgba(36, 105, 157, .7);
}

.pillars .step::before {
  background: #7a9bb9;
}

.pillars .step.is-active::before {
  background: #b0eaff;
}

.pillars .scroll-hint .track {
  background: rgba(190, 227, 255, .28);
}

.pillars .scroll-hint .track::after {
  background: #b0e8ff;
}

.pillars .bond-glow {
  stroke: rgba(130, 200, 255, .22);
}

@media (max-width: 1239px) {
  .pillars__title {
    font-size: clamp(28px, 3.2vw, 40px);
  }
}

@media (max-width: 767px) {
  .pillars__title {
    min-height: 90px;
    padding: 20px 12px 15px;
    font-size: clamp(19px, 5.5vw, 24px);
    line-height: 1.55;
    letter-spacing: .01em;
  }

  .pillars .scene {
    min-height: 0;
  }

  .pillars .artboard {
    top: 17%;
    bottom: 33%;
  }

  .pillars .detail {
    bottom: 72px;
  }

  .pillars .scroll-hint {
    bottom: 188px;
  }
}

/* svh / dvh 単位に未対応のブラウザ向けの代替指定（pillars.css の補足） */
@supports not (height: 100svh) {
  :root {
    --scene-h: 100vh;
  }

  .pillars {
    --scene-h: 100vh;
  }

  .scroll-runway {
    height: 500vh;
  }

  @media (max-width: 760px) {
    .scroll-runway {
      height: 480vh;
    }
  }
}

@supports not (height: 100dvh) {
  .topic-modal {
    max-height: min(780px, 88vh);
  }

  @media (max-width: 760px) {
    .topic-modal {
      max-height: 87vh;
    }
  }
}

/* ==========================================================================
   ３年間の流れ
   ========================================================================== */

.flow {
  position: relative;
  padding: 68px 0 124px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #f8f7df 0%, #f1efce 100%);
}

.flow__panel {
  margin-top: 76px;
  padding: 38px 38px 42px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(82, 119, 65, 0.14);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(82, 90, 42, 0.12);
  backdrop-filter: blur(4px);
}

.flow__table-wrap {
  overflow-x: auto;
  border: 1px solid #cfd9ba;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.flow__table {
  width: 100%;
  min-width: 980px;
  background: #fff;
  table-layout: fixed;
}

.flow__table th,
.flow__table td {
  padding: 18px 16px;
  border: 1px solid #b7c39e;
  color: var(--c-heading);
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  vertical-align: middle;
}

.flow__table thead tr:first-child th {
  padding: 12px 10px;
  background: #f8fbf3;
}

.flow__table thead tr:nth-child(2) th {
  padding: 14px 12px;
  background: linear-gradient(90deg, #0f6c25 0%, #4ea95e 48%, #b2dd8b 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.flow__table thead tr:first-child th:first-child {
  background: #f8fbf3;
}

.flow__grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 48px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0e6825 0%, #3d9852 52%, #abd684 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.flow__table tbody th {
  width: 160px;
  background: #f4f8ed;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.flow__table tbody td[colspan="3"] {
  background: linear-gradient(180deg, #fcfdf9 0%, #f6f9f0 100%);
  font-weight: 500;
}

.flow__table tbody tr:last-child td,
.flow__table tbody tr:last-child th {
  padding-top: 20px;
  padding-bottom: 20px;
}

.flow__scroll-note {
  display: none;
  margin-top: 12px;
  color: #4e6e4d;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.flow__next {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 34px;
}

.flow__next-arrow {
  position: relative;
  width: 2px;
  height: 42px;
  background: linear-gradient(180deg, #2b722f 0%, #9fcc7a 100%);
}

.flow__next-arrow::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-right: 2px solid #7faf69;
  border-bottom: 2px solid #7faf69;
  transform: translateX(-50%) rotate(45deg);
}

.flow__highschool {
  width: 100%;
  margin-top: 24px;
  padding: 28px 28px 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faef 100%);
  border: 1px solid rgba(109, 144, 86, 0.24);
  box-shadow: 0 12px 28px rgba(74, 96, 54, 0.08);
}

.flow__highschool-label {
  color: #376134;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-align: center;
}

.flow__highschool-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.36fr) minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 1000px;
  margin: 22px auto 0;
}

.flow__highschool-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 82px;
  padding: 18px 14px;
  border: 1px solid rgba(15, 108, 37, 0.15);
  border-radius: 18px;
  background: linear-gradient(90deg, #0f6c25 0%, #4ea95e 52%, #add987 100%);
  box-shadow: 0 8px 20px rgba(50, 103, 57, 0.14);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
}

/* 文理総合：左（控えめなブルー） */
.flow__highschool-item--general {
  background: linear-gradient(90deg, #126ea7 0%, #2f98ce 52%, #8ad0ef 100%);
  border-color: rgba(47, 152, 206, 0.28);
  box-shadow: 0 8px 20px rgba(18, 110, 167, 0.14);
}

/* 特進選抜：中央。幅・高さ・文字を強調し、左右より大きく見せる */
.flow__highschool-item--featured {
  position: relative;
  z-index: 1;
  min-height: 116px;
  padding: 24px 18px;
  border: 2px solid rgba(226, 218, 245, 0.95);
  border-radius: 21px;
  background: linear-gradient(90deg, #5e518c 0%, #7d6eaa 52%, #b6add4 100%);
  box-shadow: 0 15px 30px rgba(94, 81, 140, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.23);
  font-size: 25px;
  letter-spacing: 0.055em;
}

/* デザイン美術：右（控えめなピンク） */
.flow__highschool-item--design {
  background: linear-gradient(90deg, #c95b68 0%, #e78188 52%, #f5b7b7 100%);
  border-color: rgba(231, 129, 136, 0.28);
  box-shadow: 0 8px 20px rgba(201, 91, 104, 0.14);
}

@media (max-width: 1239px) {
  .flow {
    padding: 64px 0 96px;
  }

  .flow__panel {
    margin-top: 56px;
    padding: 28px 28px 32px;
    border-radius: 24px;
  }

  .flow__table th,
  .flow__table td {
    padding: 15px 12px;
    font-size: 15px;
  }

  .flow__table thead tr:nth-child(2) th {
    font-size: 17px;
  }

  .flow__grade {
    min-width: 80px;
    min-height: 42px;
    font-size: 18px;
  }

  .flow__highschool-list {
    gap: 12px;
  }

  .flow__highschool-item {
    min-height: 68px;
    font-size: 17px;
  }

  .flow__highschool-item--featured {
    min-height: 102px;
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .flow {
    padding: 56px 0 64px;
  }

  .flow__panel {
    margin-top: 32px;
    padding: 18px 18px 24px;
    border-radius: 20px;
  }

  .flow__table-wrap {
    border-radius: 16px;
  }

  .flow__table {
    min-width: 820px;
  }

  .flow__table th,
  .flow__table td {
    padding: 12px 10px;
    font-size: 13px;
    line-height: 1.65;
  }

  .flow__table thead tr:nth-child(2) th {
    font-size: 14px;
  }

  .flow__grade {
    min-width: 70px;
    min-height: 36px;
    padding: 6px 14px;
    font-size: 15px;
  }

  .flow__table tbody th {
    width: 118px;
  }

  .flow__scroll-note.is-visible {
    display: block;
  }

  .flow__next {
    margin-top: 28px;
  }

  .flow__highschool {
    margin-top: 20px;
    padding: 20px 16px 18px;
    border-radius: 18px;
  }

  .flow__highschool-label {
    font-size: 16px;
  }

  /* スマホ：特進選抜を上段に大きく、文理総合・デザイン美術を下段に横並び */
  .flow__highschool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px 9px;
    margin-top: 16px;
  }

  .flow__highschool-item {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 12px 6px;
    border-radius: 14px;
    font-size: clamp(11px, 3.2vw, 14px);
    line-height: 1.45;
    letter-spacing: 0.01em;
  }

  .flow__highschool-item--featured {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 94px;
    padding: 19px 12px;
    border-radius: 18px;
    font-size: clamp(20px, 5.6vw, 24px);
    letter-spacing: 0.055em;
    box-shadow: 0 13px 26px rgba(94, 81, 140, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.23);
  }

  .flow__highschool-item--general {
    grid-column: 1;
    grid-row: 2;
  }

  .flow__highschool-item--design {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ==========================================================================
   宇宙 × 探究
   3つのメッセージは番号なし。深い青と白を中心に落ち着いたトーンで統一。
   「なぜ今、宇宙なのか？」の左右2面構成は維持。
   ========================================================================== */

.space {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 116px 0 138px;
  color: #fff;
  /* セクション全体に落ち着いた濃紺を敷き、中央にわずかな青の広がりを残す */
  background:
    radial-gradient(ellipse 85% 65% at 50% 50%, rgba(40, 91, 130, .13), transparent 82%),
    linear-gradient(180deg, #0b2038 0%, #12324e 52%, #0b2038 100%);
}

/* ごく細かな光点。文字や他セクションの背景には干渉しない */
/* 星の粒は控えめに残し、色数を抑える */
.space::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    radial-gradient(1px 1px at 42px 64px, #fff 95%, transparent),
    radial-gradient(1px 1px at 154px 113px, #fff 95%, transparent);
  background-size: 261px 231px, 329px 283px;
}

.space .l-container {
  position: relative;
  z-index: 1;
}

.space__title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .025em;
  text-align: center;
  text-shadow: 0 3px 24px rgba(0, 5, 28, .5);
}

.space__title em {
  color: var(--c-yellow);
  font-style: normal;
}

.space__lead {
  max-width: 1050px;
  margin: 28px auto 0;
  color: #f8fbff;
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 2;
  letter-spacing: .055em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

/* 右上に浮かぶISS：背景装飾として配置 */
.space__iss {
  position: absolute;
  top: 66px;
  right: max(2.8vw, 24px);
  z-index: 0;
  width: min(34vw, 430px);
  height: auto;
  opacity: .96;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 16px 28px rgba(0, 10, 28, .34));
}

/* 3ステップ：3つとも青系に統一。明暗のあるごく自然なグラデーション */
/* 成長メッセージ：幅を少し絞って中央に配置 */
.space__cards {
  max-width: 1120px;
  margin: 44px auto 0;
  gap: 24px;
}

.space__step {
  position: relative;
  isolation: isolate;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 18px;
  overflow: visible;
  border: 1px solid rgba(218, 238, 253, .22);
  border-radius: 20px;
  background: linear-gradient(135deg, #285675 0%, #20435f 100%);
  color: #fff;
  box-shadow: 0 16px 38px rgba(0, 9, 28, .18);
}

/* 派手なリングは使わず、上端の控えめなハイライトのみ */
.space__step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: rgba(255, 255, 255, .22);
  pointer-events: none;
}

.space__step-text {
  position: relative;
  z-index: 1;
  width: 100%;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .025em;
  text-align: center;
}

.space__step-from {
  display: block;
  color: #d2e6f4;
  font-size: clamp(17px, 1.4vw, 21px);
}

.space__step-to {
  display: block;
  margin-top: 13px;
  color: #fff;
  font-size: clamp(19px, 1.67vw, 25px);
  line-height: 1.55;
  letter-spacing: .012em;
}

/* カード間の矢印は番号の代わりに、視線の流れのみを示す */
/* カードの順序を示す矢印も単色で統一 */
.space__step:not(:last-child)::after {
  content: "›";
  position: absolute;
  z-index: 3;
  top: 50%;
  right: -21px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: #eef5fa;
  color: #254f72;
  box-shadow: 0 2px 10px rgba(0, 9, 28, .18);
  font: 700 29px/1 Arial, sans-serif;
  padding-bottom: 3px;
}

/* 説明文：濃紺の見出し面＋淡い青の本文面 */
/* 理由の説明：青い見出し面＋明るい本文面でシンプルに */
.space__reason {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 64%);
  max-width: 1080px;
  margin: 76px auto 0;
  overflow: hidden;
  border: 1px solid rgba(223, 237, 247, .28);
  border-radius: 26px;
  background: #f8fafc;
  box-shadow: 0 20px 48px rgba(0, 9, 28, .2);
}

.space__reason-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: clamp(32px, 4vw, 50px) clamp(24px, 3.2vw, 43px);
  overflow: hidden;
  background: linear-gradient(145deg, #285675 0%, #20435f 100%);
}

/* 装飾の大きな円はなくし、文字に視線が向くようにする */
.space__reason-heading::before {
  content: none;
}

.space__reason-heading::after {
  content: "";
  position: absolute;
  top: 33px;
  left: clamp(24px, 3.2vw, 43px);
  width: 42px;
  height: 2px;
  border-radius: 2px;
  background: #c4e1f1;
}

.space__reason-title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(25px, 2.4vw, 33px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .025em;
  text-shadow: 0 2px 12px rgba(3, 29, 61, .2);
}

.space__reason-lead {
  position: relative;
  z-index: 1;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid rgba(235, 246, 255, .25);
  color: #e4f0f8;
  font-size: clamp(16px, 1.65vw, 19px);
  font-weight: 700;
  line-height: 1.85;
  letter-spacing: .02em;
}

.space__reason-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(30px, 4.5vw, 60px) clamp(26px, 4.5vw, 60px);
  background: #f8fafc;
  color: #283c50;
}

.space__reason-body p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  letter-spacing: .025em;
}

.space__reason-body p + p {
  margin-top: 20px;
}

/* 宇宙飛行士（HTMLでコメントアウト中／将来有効化しても従来の表示を維持） */
.space__astronaut { display: none; }

.space__deco--planet    { top: 72px;  left: calc(50% - 603px); width: 75px; }
.space__deco--launch    { top: 211px; left: calc(50% - 801px); width: 80px; }
.space__deco--telescope { top: 421px; left: calc(50% - 826px); width: 82px; }
.space__deco--star      { top: 567px; left: calc(50% - 660px); width: 81px; }
.space__deco--satellite { top: 84px;  left: calc(50% + 492px); width: 78px; }
.space__deco--moon      { top: 465px; left: calc(50% + 661px); width: 70px; }
.space__deco--monitor   { top: 540px; left: calc(50% + 791px); width: 62px; }

@media (max-width: 1239px) {
  .space { padding: 100px 0 110px; }
  .space__title { font-size: clamp(28px, 3.6vw, 46px); }
  .space__lead { margin-top: 24px; font-size: clamp(17px, 2vw, 23px); }
  .space__iss { top: 72px; right: 20px; width: min(32vw, 350px); }
  .space__cards { margin-top: 44px; gap: 18px; }
  .space__step { min-height: 140px; padding: 22px 18px; }
  .space__step-to { font-size: clamp(18px, 1.95vw, 25px); }
  .space__step:not(:last-child)::after { right: -17px; width: 30px; height: 30px; }
  .space__reason { margin-top: 62px; }
  .space__reason-heading { padding-left: 28px; padding-right: 28px; }
  .space__reason-heading::after { left: 28px; }
  .space__reason-body { padding: 38px 34px; }

  .space__astronaut {
    position: absolute;
    top: 8px;
    right: 2%;
    z-index: 0;
    display: block;
    width: 170px;
    mix-blend-mode: lighten;
    pointer-events: none;
  }
  .space__deco { display: none; }
  .space__deco--planet, .space__deco--star, .space__deco--moon { display: block; }
  .space__deco--planet { top: 40px; left: 4%; width: 60px; }
  .space__deco--star { top: auto; bottom: 40px; left: 4%; width: 64px; }
  .space__deco--moon { top: auto; bottom: 44px; right: 4%; left: auto; width: 56px; }
}

@media (max-width: 1023px) {
  .space__cards { max-width: 640px; gap: 22px; }
  .space__step { min-height: 112px; padding: 22px 28px; }
  .space__step-from { font-size: 19px; }
  .space__step-to { margin-top: 4px; font-size: 23px; }
  .space__step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }
  .space__reason { grid-template-columns: 1fr; }
  .space__reason-heading { min-height: 230px; padding: 46px 40px 36px; }
  .space__reason-heading::after { left: 40px; }
  .space__reason-lead { max-width: 600px; margin-top: 15px; padding-top: 14px; }
  .space__reason-body { padding: 34px 40px 40px; }
}

@media (max-width: 767px) {
  .space { padding: 78px 0 88px; }
  .space__title { font-size: clamp(26px, 7vw, 34px); line-height: 1.6; }
  .space__lead { margin-top: 18px; padding-right: 96px; font-size: 16px; line-height: 1.9; letter-spacing: .02em; }
  .space__iss { top: 88px; right: -18px; width: 180px; }
  .space__cards { max-width: 520px; margin-top: 32px; gap: 20px; }
  .space__step { min-height: 110px; padding: 20px 20px; border-radius: 15px; }
  .space__step-from { font-size: 17px; }
  .space__step-to { margin-top: 4px; font-size: clamp(19px, 5vw, 23px); }
  .space__step:not(:last-child)::after { bottom: -16px; width: 28px; height: 28px; font-size: 25px; }
  .space__reason { margin-top: 43px; border-radius: 18px; }
  .space__reason-heading { min-height: 0; padding: 43px 24px 32px; }
  .space__reason-heading::after { top: 24px; left: 24px; width: 34px; }
  .space__reason-title { font-size: clamp(23px, 6vw, 29px); }
  .space__reason-lead { margin-top: 17px; padding-top: 17px; font-size: 16px; }
  .space__reason-body { padding: 26px 23px 32px; }
  .space__reason-body p { font-size: 14px; line-height: 1.95; letter-spacing: .01em; }
  .space__reason-body p + p { margin-top: 16px; }
  .space__astronaut { top: 4px; right: 8px; width: 128px; }
  .space__deco--planet { top: 40px; left: 20px; width: 46px; }
  .space__deco--star { bottom: 28px; left: 20px; width: 52px; }
  .space__deco--moon { bottom: 32px; right: 20px; width: 44px; }
}

/* ==========================================================================
   高校への接続
   ========================================================================== */

.connection {
  padding: 116px 0 109px;
  background: var(--grad-yellow);
}

.connection__cards {
  margin-top: 72px;
}

.connection .card__body {
  padding-bottom: 38px;
}

@media (max-width: 1239px) {
  .connection {
    padding: 80px 0 96px;
  }

  .connection__cards {
    margin-top: 56px;
  }

  .connection .card__body {
    padding-bottom: 28px;
  }
}

@media (max-width: 767px) {
  .connection {
    padding: 56px 0 64px;
  }

  .connection__cards {
    margin-top: 32px;
  }

  .connection .card__body {
    padding-bottom: 24px;
  }
}

/* ==========================================================================
   この教育を支える橘学苑の礎
   ========================================================================== */

.foundation {
  padding: 139px 0 760px;
  background: #fff url("../images/foundation_building.jpg") no-repeat center bottom;
  background-size: 1920px auto;
  background-size: max(100%, 1920px) auto;
}

.foundation__label {
  color: var(--c-orange-deep);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.54;
  letter-spacing: 0.084em;
  text-align: center;
}

.foundation__title {
  margin-top: 46px;
  font-size: 46px;
  font-weight: 700;
  line-height: 78px;
  letter-spacing: 0.025em;
  text-align: center;
}

.foundation__intro {
  margin-top: 36px;
  font-size: 21px;
  line-height: 42px;
  letter-spacing: 0.025em;
  text-align: center;
}

.foundation__photos {
  margin-top: 36px;
}

/* 80年以上の見出し：周囲の見出しと調和する控えめなアクセント */
.foundation__subtitle {
  position: relative;
  max-width: 1100px;
  margin: 45px auto 0;
  padding-bottom: 22px;
  color: #28435d;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.035em;
  text-align: center;
}

.foundation__subtitle::after {
  content: "";
  display: block;
  width: 136px;
  height: 4px;
  margin: 17px auto 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #6daad3 0%, #a2a5d1 52%, #adcf8d 100%);
}

/* 数字の部分を落ち着いたブルーで強調 */
.foundation__num {
  margin-right: 0.25em;
  color: #368cbd;
}

.foundation__text {
  margin-top: 9px;
  font-size: 21px;
  line-height: 42px;
  letter-spacing: 0.025em;
  text-align: justify;
}

/* 校訓：囲い・背景を外し、本文と同じ文字サイズで表示 */
.motto {
  margin-top: 40px;
}

.motto__item + .motto__item {
  margin-top: 20px;
}

.motto__head {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--c-text);
  text-shadow: none;
  font-size: 21px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: 0.025em;
  text-align: center;
}

.motto__desc {
  margin-top: 25px;
  font-size: 21px;
  line-height: 39px;
  letter-spacing: 0.025em;
  text-align: center;
}

@media (max-width: 1239px) {
  .foundation {
    padding-top: 96px;
    padding-bottom: 620px;
  }

  .foundation__label {
    font-size: clamp(22px, 2.5vw, 31px);
  }

  .foundation__title {
    margin-top: 32px;
    font-size: clamp(26px, 3.6vw, 46px);
    line-height: 1.7;
  }

  .foundation__intro,
  .foundation__text,
  .motto__desc {
    font-size: clamp(16px, 1.7vw, 21px);
    line-height: 2;
  }

  .foundation__subtitle {
    font-size: clamp(22px, 2.8vw, 35px);
    line-height: 1.8;
  }

  .foundation__text {
    margin-top: 16px;
  }

  .motto__head {
    font-size: clamp(16px, 1.7vw, 21px);
    line-height: 2;
  }

  .motto__desc {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .foundation {
    /* 写真の実寸比率 1920:710 に合わせ、写真の高さ＋32pxだけ確保 */
    padding: 56px 0 calc(36.9792vw + 32px);
    background-position: center bottom;
    background-size: 100% auto;
  }

  .foundation__label {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .foundation__title {
    margin-top: 16px;
    font-size: 21px;
    line-height: 1.7;
  }

  .foundation__intro {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.9;
  }

  .foundation__photos {
    margin-top: 28px;
  }

  .foundation__subtitle {
    margin-top: 35px;
    padding-bottom: 12px;
    font-size: 20px;
    line-height: 1.65;
  }

  .foundation__subtitle::after {
    width: 86px;
    height: 3px;
    margin-top: 14px;
  }

  .foundation__text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.9;
  }

  .motto {
    margin-top: 28px;
  }

  .motto__item + .motto__item {
    margin-top: 14px;
  }

  .motto__head {
    font-size: 14px;
    line-height: 1.9;
  }

  .motto__desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.8;
  }
}

/* ==========================================================================
   Contact Us
   ========================================================================== */

.contact {
  padding: 31px 0 40px;
  background: #fff;
  text-align: center;
}

.contact__title img {
  width: 320px;
  margin-right: auto;
  margin-left: auto;
}

.contact__heading {
  margin-top: 32px;
  font-size: 46px;
  font-weight: 700;
  line-height: 78px;
  letter-spacing: 0.025em;
}

.contact__text {
  margin-top: 27px;
  font-size: 21px;
  line-height: 42px;
  letter-spacing: 0.025em;
}

@media (max-width: 1239px) {
  .contact__heading {
    font-size: clamp(26px, 3.6vw, 46px);
    line-height: 1.7;
  }

  .contact__text {
    margin-top: 20px;
    font-size: clamp(16px, 1.7vw, 21px);
    line-height: 2;
  }
}

@media (max-width: 767px) {
  .contact {
    padding: 32px 0 40px;
  }

  .contact__title img {
    width: 180px;
  }

  .contact__heading {
    margin-top: 20px;
    font-size: 19px;
  }

  .contact__text {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.8;
  }
}

/* ==========================================================================
   フッター
   ========================================================================== */

.footer-nav {
  background: var(--c-footer-nav);
  color: #fff;
}

.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 40px;
  padding-right: 20px;
  padding-left: 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 71px;
  letter-spacing: 0.025em;
}

.site-footer {
  padding: 56px 0 63px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.site-footer__logo {
  flex-shrink: 0;
  width: 464px;
}

.site-footer__address {
  position: relative;
  top: 7px;
  color: var(--c-black);
  font-size: 20px;
  font-style: normal;
  line-height: 35px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.site-footer__address span {
  display: block;
  letter-spacing: 0.045em;
}

@media (max-width: 1239px) {
  .footer-nav__list {
    column-gap: 28px;
    font-size: 17px;
    line-height: 64px;
  }
}

@media (max-width: 1023px) {
  .site-footer {
    padding: 48px 0 52px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .site-footer__logo {
    width: 360px;
  }

  .site-footer__address {
    top: 0;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .footer-nav__list {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 6px 22px;
    padding: 18px 16px;
    font-size: 13px;
    line-height: 2;
    text-align: center;
  }

  .site-footer {
    padding: 32px 0 36px;
  }

  .site-footer__inner {
    gap: 16px;
  }

  .site-footer__logo {
    width: 240px;
  }

  .site-footer__address {
    font-size: 12px;
  }
}

/* ==========================================================================
   アニメーション
   - 表示アニメーション：[data-anim] が画面に入ると main.js が .is-inview を付与
       fade：見出し・文章（ふわっと表示）
       rise：カード（下から順番に表示）
       zoom：写真・Contact Us（拡大しながら表示）
       wipe：校訓の黒帯（左から右へ伸びる）
   - 浮遊アニメーション：装飾アイコン・宇宙飛行士
   ※ <html> に .js-anim があるとき（JS有効時）だけ初期状態を非表示にする
   ========================================================================== */

.js-anim [data-anim] {
  transition:
    opacity 0.9s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 1s cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: var(--anim-delay, 0s);
}

.js-anim [data-anim="fade"] {
  opacity: 0;
  transform: translateY(16px);
}

.js-anim [data-anim="rise"] {
  opacity: 0;
  transform: translateY(48px);
}

.js-anim [data-anim="zoom"] {
  opacity: 0;
  transform: scale(0.92);
}

.js-anim [data-anim="wipe"] {
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
}

.js-anim [data-anim].is-inview {
  opacity: 1;
  transform: none;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}

/* 校訓：黒帯が伸びた後に説明文を表示 */
.js-anim .motto__desc[data-anim] {
  transition-delay: 0.4s;
}

/* 浮遊 */
@keyframes deco-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(var(--float-rotate, 3deg));
  }
}

.deco,
.space__astronaut,
.space__iss {
  animation: deco-float var(--float-duration, 5s) ease-in-out var(--float-delay, 0s) infinite;
}

.deco:nth-of-type(3n + 1) {
  --float-duration: 5.5s;
  --float-delay: -1s;
  --float-rotate: -3deg;
}

.deco:nth-of-type(3n + 2) {
  --float-duration: 4.5s;
  --float-delay: -2.5s;
  --float-rotate: 4deg;
}

.deco:nth-of-type(3n) {
  --float-duration: 6s;
  --float-delay: -4s;
  --float-rotate: -2deg;
}

.space__astronaut,
.space__iss {
  --float-duration: 8s;
  --float-rotate: -4deg;
}

/* 動きを減らす設定の端末ではアニメーションしない */
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-anim] {
    opacity: 1;
    transform: none;
    -webkit-clip-path: none;
    clip-path: none;
    transition: none;
  }

  .deco,
  .space__astronaut,
  .space__iss {
    animation: none;
  }
}

/* ============================================================
   宇宙 × 探究：ボックスのみ淡く・不要な装飾を削除
   ※ セクション背景・タイトルの色・構造は変更しない
   ============================================================ */

/* 3つのメッセージ：濃紺背景に映える、淡いブルーホワイト */
.space__step {
  background: linear-gradient(135deg, #f8fcff 0%, #eaf5fb 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  color: #173e60;
  box-shadow: 0 12px 30px rgba(0, 16, 40, .12);
}
.space__step-from { color: #397195; }
.space__step-to { color: #173e60; }

/* 赤枠の装飾：カード間の丸い矢印とカード上辺の細い線を削除 */
.space__step::before,
.space__step:not(:last-child)::after {
  content: none !important;
  display: none !important;
}

/* 「なぜ今、宇宙なのか？」：左右のボックスを明るく統一 */
.space__reason {
  border-color: rgba(225, 239, 248, .9);
  background: #fbfdff;
}
.space__reason-heading {
  background: linear-gradient(145deg, #f3faff 0%, #e1f1fa 100%);
}
.space__reason-title {
  color: #173e60;
  text-shadow: none;
}
.space__reason-lead {
  color: #315d78;
  border-top-color: rgba(42, 104, 143, .17);
}
.space__reason-body {
  background: #fbfdff;
}

/* 赤枠の装飾：見出し左上の短い線と、半円・円を削除 */
.space__reason-heading::before,
.space__reason-heading::after,
.space__reason::before,
.space__reason::after {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
   5つの柱：ページの縦スクロールと球体操作を分離
   ※ .pillars / .scene の背景色・グラデーション・星の装飾は変更しない
   ========================================================================== */
.pillars .scroll-runway {
  height: max(620px, 100svh);
}

/* 5画面分のstickyを廃止して、1つのセクションとして通過できるようにする */
.pillars .scene {
  position: relative;
  top: auto;
  height: 100%;
  min-height: 0;
}

/* 球体上では左右の操作を認識。上下の指の動きは通常のページスクロール */
.pillars .artboard {
  pointer-events: auto;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.pillars .artboard.is-dragging { cursor: grabbing; }
.pillars .core,
.pillars .node {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.pillars .bonds { pointer-events: none; }

/* 右側の項目名：球体と同じ5色の背景を採用 */
.pillars .detail-card h2 {
  display: inline-block;
  max-width: 100%;
  width: fit-content;
  padding: 10px 23px 12px;
  border-radius: 12px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(22, 40, 64, .2);
  box-shadow: 0 8px 24px rgba(1, 12, 34, .16), inset 0 1px 0 rgba(255,255,255,.35);
  white-space: normal;
  font-size: clamp(27px, 2.5vw, 40px);
}
.pillars .detail-card h2::after { display: none; }
.pillars .detail-card[data-card="0"] h2 { background: var(--core); }
.pillars .detail-card[data-card="1"] h2 { background: var(--node-1); }
.pillars .detail-card[data-card="2"] h2 { background: var(--node-2); }
.pillars .detail-card[data-card="3"] h2 { background: var(--node-3); }
.pillars .detail-card[data-card="4"] h2 { background: var(--node-4); }

/* スクロール誘導だった表示を左右操作のヒントに変更 */
.pillars .scroll-hint { white-space: nowrap; }
.pillars .scroll-hint .track {
  width: 34px;
  height: 1px;
  background: rgba(190, 227, 255, .45);
}
.pillars .scroll-hint .track::after {
  width: 14px;
  height: 1px;
  animation: pillars-swipe-hint 2.1s ease-in-out infinite alternate;
}
@keyframes pillars-swipe-hint {
  from { transform: translateX(0); }
  to   { transform: translateX(20px); }
}

@media (max-width: 767px) {
  .pillars .scroll-runway { height: max(680px, 100svh); }
  .pillars .detail-card h2 {
    padding: 7px 16px 9px;
    border-radius: 9px;
    font-size: clamp(21px, 5.6vw, 25px);
  }
  .pillars .scroll-hint { bottom: 205px; }
}
@supports not (height: 100svh) {
  .pillars .scroll-runway { height: max(620px, 100vh); }
  @media (max-width: 767px) {
    .pillars .scroll-runway { height: max(680px, 100vh); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .pillars .scroll-hint .track::after { animation: none; }
}


/* ==========================================================================
   5つの柱：球体のクリック案内（球体のサイズ・配置・背景・JSは変更しない）
   ========================================================================== */
/* 既存の DRAG / SWIPE の下に、さりげない操作案内を表示 */
.pillars .scroll-hint > span:last-child::after {
  content: "球体をクリックして詳細を見る ↗";
  display: block;
  margin-top: 5px;
  color: rgba(229, 244, 255, .92);
  font-family: var(--ff-base);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .035em;
  white-space: nowrap;
}

/* マウスを重ねたときだけ控えめに反応。球体の形・配置・サイズには手を加えない */
@media (hover: hover) and (pointer: fine) {
  .pillars .core:hover,
  .pillars .node:hover {
    outline: 2px solid rgba(235, 250, 255, .84);
    outline-offset: 4px;
    filter: brightness(1.055);
  }

  .pillars .core::after,
  .pillars .node::after {
    content: "↗";
    position: absolute;
    right: 9%;
    bottom: 9%;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: rgba(13, 49, 77, .68);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
  }
  .pillars .core:hover::after,
  .pillars .node:hover::after,
  .pillars .core:focus-visible::after,
  .pillars .node:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  /* 横スワイプ案内とタップ案内が右側の見出しと重ならない位置 */
  .pillars .scroll-hint { bottom: 233px; }
  .pillars .scroll-hint > span:last-child::after {
    content: "球体をタップして詳細を見る ↗";
    margin-top: 4px;
    font-size: 9px;
  }
}
