@charset "UTF-8";

.serif {
  font-family: "Noto Serif JP", serif;
}

.num {
  font-family: "Bodoni MT", "Didot", "Times New Roman", serif;
}

.marker.in {
  background-image: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.tint-bg {
  background-color: #F4F0E8;
  padding: 150px 0;
}

/* 共通パーツ */
.en {
  font-size: 1.3rem;
  letter-spacing: .3em;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.kimete {
  display: inline-block;
  border: 1.2px solid var(--ink);
  border-radius: 2px;
  padding: 3px 14px;
  font-size: 1.15rem;
  letter-spacing: .12em;
  font-weight: 600;
  white-space: nowrap;
}

.sec-lead {
  font-size: 1.5rem;
  margin: 0 0 40px;
}

.ttl-02.serif {
  font-size: 3.4rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0 0 14px;
  padding-top: 20px;
  text-align: left;
}

.ttl-02 .en {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 1.3rem;
  letter-spacing: .3em;
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
}

.ttl-03.split {
  font-size: 1.9rem;
  letter-spacing: .12em;
  margin: 50px 0 10px;
  border-bottom: none;
  padding-top: 0;
  padding-left: 0;
}

.ttl-03.split::before {
  display: none;
}

.ttl-03.split .serif {
  font-size: 2.6rem;
  margin-right: 20px;
}

@media only screen and (max-width: 960px) {
  .ttl-02.serif {
    font-size: 2.5rem;
  }

  .ttl-02 .en {
    font-size: 1rem;
  }

  .ttl-03.split {
    font-size: 1.6rem;
    line-height: 2.1em;
  }

  .ttl-03.split .serif {
    font-size: 2.2rem;
  }

  .sec-lead {
    font-size: 1.3rem;
  }


}



/* ==============================================
   ベーススタイル & PC表示
============================================== */
.index-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.index-hero__slide,
.index-hero__slide figure,
.index-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* PCでは画像の右側を広くとるため、中心点を調整（適宜変更） */
  object-position: center center;
}

/* テキストエリア共通 */
.index-hero__text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* テキスト上のクリックを下の画像に透過させる */
}

/* PC：右側の余白に文字を配置 */
.hero-copy {
  position: absolute;
  top: 50%;
  right: 10%;
  /* 右からの位置調整 */
  transform: translateY(-50%);
  width: 100%;
  max-width: 600px;
  /* テキストが横に広がりすぎないように */
}


/* タイトル設定 */
.hero-copy__title {
  font-size: 3.5rem;
  /* 文字を大きく */
  font-weight: bold;
  margin-bottom: 2.5rem;
  /* 行間（下余白）を広めに */
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #444;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(255, 255, 255, 0.6);

}

/* リード文設定 */
.hero-copy__lead {
  font-size: 1.5rem;
  /* 文字を少し大きく */
  line-height: 2.5;
  /* 行間をあけて読みやすく */
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 1),
    0 0 15px rgba(255, 255, 255, 0.8);
}




@media only screen and (max-width: 1250px) {


  .index-hero {
    height: 85vh;
    /* 画面に収まるよう調整 */
  }

  /* SP：女の子を中心に配置するため、画像の位置を調整 */
  .index-hero__slide img {
    /* 画像の左寄りに女の子がいる場合、object-positionで調整。
       例：左から30%の位置を中心に表示 */
    object-position: 30% center;
  }


  .hero-copy {
    /* 親要素を画面いっぱいに */
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    transform: none;
    max-width: none;
  }

  /* タイトル：右上・右揃え */
  .hero-copy__title {
    position: absolute;
    top: 15%;
    /* 上からの位置 */
    left: 5%;
    /* 右からの位置 */
    font-size: 3rem;
    margin-bottom: 0;
    color: #fff;
    /* 背景によっては白抜きが見やすい */
    /* 必要に応じてテキストシャドウで視認性を確保 */
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
  }

  /* リード文：左下・左揃え */
  .hero-copy__lead {
    position: absolute;
    bottom: 8%;
    /* 下からの位置 */
    left: 5%;
    /* 左からの位置 */
    right: 5%;
    /* 右端の余白も確保 */
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.9;
    color: #fff;
    /* SP時は白抜き */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 1);
  }
}

/* ------------------------
    02 質問メニュー (btnarea)
------------------------ */
.btnarea {
  margin: 60px auto;
}

.btnarea__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
}

.btnarea__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1.2px solid var(--ink);
  border-radius: 2px;
  padding: 15px 20px;
  color: inherit;
  text-decoration: none;
  transition: transform .2s, background .2s;
}

.btnarea__item:hover {
  background: #fff;
  transform: translateY(-3px);
}

.btnarea__item .cat {
  font-size: 1.1rem;
  letter-spacing: .1em;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
}

.btnarea__item .q {
  font-family: "Yu Mincho Demibold", "Yu Mincho", serif;
  font-size: 1.8rem;
  letter-spacing: .05em;
  line-height: 1.4;
  margin-bottom: auto;
}

.btnarea__item .arr {
  font-size: 1.1rem;
  text-align: right;
  margin-top: 8px;
}

@media only screen and (max-width: 960px) {

  .btnarea__grid {
    gap: 10px;
  }

  .btnarea__item {
    padding: 12px 14px 10px;
    gap: 4px;
  }

  .btnarea__item .cat {
    font-size: 1.0rem;
    letter-spacing: 0;
  }

  .btnarea__item .q {
    font-size: 1.4rem;
  }

  .btnarea__item .arr {
    font-size: 1.0rem;
    margin-top: 4px;
  }

}


/* ------------------------
    03 学部・コース紹介 
------------------------ */
/* 学部・コースのカード全体 */
/* ====================================
   ポップアップ前のカード（一覧）のCSS
==================================== */
/* （既存の .course-detail-grid などの記述はそのまま残してください） */

/* aタグで囲んだことによる初期化とホバーアクション */
a.course-detail-item.course {
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.3s ease;
}

a.course-detail-item.course:hover {
  opacity: 0.8;
}

/* 追加した「詳しく見る」ボタンのスタイル */
.course-link-btn {
  display: inline-block;
  margin-top: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  align-self: flex-start;
  /* 左寄せ */
}


.course-detail-grid {
  display: grid;
  gap: 20px;
}

.course-detail-grid.courses4 {
  grid-template-columns: repeat(2, 1fr);
}

.course-detail-grid.courses2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: none;
}

.course-detail-item.course {
  background: #ffffff78;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

.course-detail-item .course-ph {
  width: 40%;
  flex-shrink: 0;
}

.course-detail-item .course-ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-detail-item .course-text {
  width: 60%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.course-detail-item .name {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.course-detail-item .copy {
  font-size: 1.5rem;
  font-weight: bold;
}

.course-detail-item .desc {
  font-size: 1.3rem;
  line-height: 1.95;
}

@media only screen and (max-width: 960px) {

  .course-detail-grid.courses4,
  .course-detail-grid.courses2 {
    grid-template-columns: 1fr;
  }

  .course-detail-item.course {
    flex-direction: column;
  }

  .course-detail-item .course-ph {
    width: 100%;
  }

  .course-detail-item .course-ph img {
    height: auto;
    aspect-ratio: 4/3;
  }

  .course-detail-item .course-text {
    width: 100%;
    justify-content: flex-start;
  }
}



/* 04 ブレイカー */
.breaker {
  width: 100%;
  height: clamp(200px, 55vh, 460px);
  overflow: hidden;
}

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

/* ------------------------
    05 数字でわかる文化学園長野 (about)
------------------------ */
#about {
  margin: 100px auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* PC時は横4列 */
  gap: 40px 30px;
  margin-top: 48px;
}

.about-item {
  display: flex;
  flex-direction: column;
}

/* コンテンツ上部をセンター揃えに */
.about-item .nlabel,
.about-item .big,
.about-item .label {
  text-align: center;
}

.about-item .nlabel {
  display: inline-block;
  /* 枠線を文字幅に合わせる */
  margin: 0 auto 10px;
  /* 中央寄せしつつ下の余白を確保 */
  font-size: 1.1rem;
  letter-spacing: .1em;
  font-weight: 600;
  border: 1px solid var(--ink);
  /* 四角の枠線 */
  padding: 4px 12px;
}

.about-item .nlabel::after {
  display: none;
  /* 元の下線を消去 */
}

.about-item .big {
  font-size: 6.2rem;
  line-height: 1.2;
}

.about-item .big small {
  font-family: "Yu Mincho Demibold", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 2rem;
  margin-left: 5px;
}

.about-item .label {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2px;
}

/* 説明文は左揃え */
.about-item .note {
  font-size: 1.3rem;
  color: var(--gray);
  margin-top: 10px;
  text-align: left;
  display: block;
}

/* ポイント部分 */
.about-grid-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 48px;
  margin-top: 30px;
}

.about-point-item {
  border-top: 1px solid var(--line);
  padding: 20px 4px 0;
}

.about-point-item .point-ph img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 20px;
}

/* POINT 1とタイトルを横並びにするラッパー */
.about-point-item .point-head {
  display: flex;
  align-items: center;
  /* 縦位置を中央揃え */
  gap: 12px;
  /* 四角い枠とタイトルの距離 */
  margin-bottom: 12px;
}

.about-point-item .no {
  font-size: 1.1rem;
  letter-spacing: .1em;
  font-weight: 600;
  border: 1px solid var(--ink);
  /* 四角の枠線 */
  padding: 4px 10px;
  white-space: nowrap;
  /* 折り返し防止 */
}

.about-point-item h3 {
  font-size: 1.9rem;
  letter-spacing: .1em;
  margin: 0;
  /* ズレ防止のためマージンリセット */
}

.about-point-item .copy {
  font-size: 1.6rem;
  margin: 0 0 10px;
  line-height: 1.9;
}

/* 時間割リンクのデザイン */
.timetable-link {
  display: inline-block;
  font-weight: bold;
  color: var(--ink);
  background-image: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%);
  margin-left: 5px;
  transition: opacity 0.3s;
}

.timetable-link:hover {
  opacity: 0.7;
}

/* ====================================
   時間割モーダル専用スタイル
==================================== */
/* 下校時間の枠（少し文字を大きく、太字で目立たせる） */
.modal-timetable-highlight {
  border: 1px solid #333;
  padding: 25px 20px;
  margin-bottom: 20px;
  border-radius: 2px;
  text-align: center;
  background-color: #F4F0E8;
}

.modal-timetable-highlight p {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.8;
}

/* 補足説明のテキスト */
.modal-timetable-desc {
  font-size: 1.4rem;
  line-height: 2;
  color: var(--body);
  /* 既存の変数があれば使用 */
  margin-bottom: 30px;
}

/* 右下の出典テキスト */
.modal-timetable-source {
  font-size: 1.1rem;
  color: #999;
  text-align: right;
  margin: 0;
}


/* ------------------------
    レスポンシブ (スマホ向け調整)
------------------------ */
@media only screen and (max-width: 960px) {

  .breaker {
    height: clamp(200px, 37vh, 340px);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid-points {
    grid-template-columns: 1fr;
  }

  .modal-timetable-highlight {
    padding: 20px 15px;
  }

  .modal-timetable-highlight p {
    font-size: 1.3rem;
  }

  .modal-timetable-yellow {
    font-size: 1.1rem;
    padding: 15px 10px;
  }

  .modal-timetable-yellow strong {
    display: block;
    /* SP時は「放課後」を上で改行 */
    margin-right: 0;
    margin-bottom: 5px;
  }

  .modal-timetable-desc {
    font-size: 1.2rem;
  }
}


/* ------------------------
    07 卒業生インタビュー (voice)
------------------------ */
#voice {
  margin: 100px auto;
}

/* タイトルと背景テキスト */
.voice-header {
  position: relative;
  margin-bottom: 30px;
}

.voice-bg-text {
  position: absolute;
  right: -20px;
  bottom: 0px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 8rem;
  /* 大きく */
  color: rgba(31, 31, 31, 0.04);
  /* 薄いグレー */
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
}

/* カード共通スタイル */
.voice-card {
  background: #ffffff78;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
}

/* インタビューカードの「詳しく見る」ボタン */
.voice-link-btn {
  display: inline-block;
  margin-top: auto;
  /* 上部の要素との間を自動で空け、ボタンをカードの一番下に押しやる */
  padding-top: 16px;
  /* 最低限の余白 */
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  align-self: flex-end;
  /* 左寄せ */
}

/* カード全体をホバーした際のアクション（コースと同じ） */
a.voice-card {
  transition: opacity 0.3s ease;
}

a.voice-card:hover {
  opacity: 0.8;
}

.voice-ph {
  margin: 0;
  flex-shrink: 0;
}

.voice-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストの優先順位（階層） */
.voice-title {
  position: relative;
  /* 基準位置にするために追加 */
  padding-bottom: 14px;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.voice-dest {
  font-size: 1.45rem;
  font-weight: bold;
  color: var(--ink);
  margin: 0 0 4px;
}

.voice-who {
  font-size: 1.25rem;
  color: var(--gray);
  margin: 0;
}

/* メインカード（2名 / 上下配置） */
.voice-grid-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  margin-bottom: 34px;
}

.main-card {
  flex-direction: column;
}

.main-card .voice-ph img {
  aspect-ratio: 16 / 10;
}

.main-card .voice-text {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.main-card .voice-title {
  font-size: 2.0rem;
  /* メインは少し大きく */
  margin-bottom: 20px;
  /* 以下のテキストを下部に押しやる */
  padding-bottom: 10px;
}

.voice-grid-sub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sub-card {
  flex-direction: row;
  align-items: stretch;
}

.sub-card .voice-ph {
  width: 30%;
  /* 写真領域の割合 */
}

/* ★追加：写真の比率を強制的に固定して、高さを揃える */
.sub-card .voice-ph img {
  aspect-ratio: 4 / 5;
  /* 上段に近い少し縦長の比率。正方形が良い場合は 1 / 1 に変更してください */
}

.sub-card .voice-text {
  width: 70%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sub-card .voice-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

/* ------------------------
    レスポンシブ (スマホ向け調整)
------------------------ */
@media only screen and (max-width: 960px) {

  /* 背景文字を少し小さく */
  .voice-bg-text {
    font-size: 5rem;
    right: 0;
  }

  /* グリッドを1列の縦並びに */
  .voice-grid-main,
  .voice-grid-sub {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* サブカードをスマホ時は「上写真・下テキスト」に戻す */
  .sub-card {
    flex-direction: column;
  }

  .sub-card .voice-ph {
    width: 100%;
  }

  .sub-card .voice-ph img {
    aspect-ratio: 16 / 10;
    object-position: 50% 20%;
  }

  .sub-card .voice-text {
    width: 100%;
    padding: 24px;
  }
}

/* ------------------------
    08 校則 (rule)
------------------------ */
#rule {
  margin-bottom: 100px;
}

/* 上段レイアウト（テキスト / 画像） */
.rule-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  margin-top: 34px;
  align-items: start;
}

.rule-img-area figure {
  margin: 0;
}

.rule-img-area img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media only screen and (max-width: 960px) {

  /* 生徒の声テーブルの横スクロール対応 */
  .rule-table-area {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* iOSで滑らかにスクロールさせるため */
    padding-bottom: 10px;
    /* 下部にスクロールバーが出た時のための余白 */
  }

  .rule-table-area .rule-table {
    min-width: 560px;
    /* この数値以下には縮まず、横スクロールが発生するようになる */
  }
}

/* テーブル共通スタイル（生徒の声で、変わりました 等） */
.data-table {
  width: 100%;
  font-size: 1.35rem;
  margin-top: 0;
}

.data-table caption {
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 10px;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 12px 14px 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table tr:first-child th {
  border-bottom: 1px solid var(--ink);
}

/* 黄色マーカー（現在） */
.now {
  font-weight: 600;
  background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%);
}

/* 下段レイアウト（テーブル / Instagram） */
.rule-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  margin-top: 54px;
  align-items: stretch;
}

/* Instagram紹介カード */
.sns-card {
  display: flex;
  background: #ffffff78;
  border: 1px solid var(--line);
  padding: 20px;
  gap: 20px;
  align-items: center;
  height: 100%;
}

.sns-img {
  width: 40%;
  flex-shrink: 0;
}

.sns-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  /* 縦長写真の比率 */
  object-fit: cover;
  display: block;
}

.sns-text {
  width: 60%;
}

.sns-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.sns-text p {
  font-size: 1.35rem;
  color: var(--body);
  line-height: 1.8;
  margin: 0;
}

/* ------------------------
    レスポンシブ (スマホ向け調整)
------------------------ */
@media only screen and (max-width: 960px) {

  /* PCの2カラムを1カラムに（縦並び） */
  .rule-grid-top,
  .rule-grid-bottom {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* スマホ時のSNSカード調整 */
  .sns-card {
    flex-direction: column;
    /* 写真とテキストを縦並びに */
    padding: 24px;
  }

  .sns-img {
    width: 60%;
    /* 写真が大きくなりすぎないように制限 */
    margin: 0 auto;
  }

  .sns-text {
    width: 100%;
    text-align: center;
    /* スマホ時はテキストを中央揃えにすると綺麗です */
  }
}

/* ------------------------
    09 部活 (club)
------------------------ */
.club-lists {
  margin-top: 40px;
}

/* 体育系と文化系の横並び（PC時） */
.club-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* 四角い囲みのデザイン */
.club-box {
  background: #ffffff78;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 2px;
}

.club-head {
  font-size: 1.8rem;
  letter-spacing: .1em;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
  margin: 0 0 16px;
  color: var(--ink);
}

/* 部活リスト（枠内をさらに2列に） */
.club-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  font-size: 1.5rem;
  color: var(--body);
}

/* その他の1行表示 */
.club-others {
  display: flex;
  align-items: center;
  /* 縦位置を中央揃え */
  background: #ffffff78;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 20px 30px;
  margin-top: 30px;
  gap: 24px;
}

.club-head-inline {
  font-size: 1.6rem;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
  /* タイトルの折り返しを防ぐ */
}

.club-cols-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1.35rem;
  color: var(--body);
}

/* ------------------------
    無限ループスライダー（CSSアニメーション）
------------------------ */
.club-slider {
  margin-top: 40px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  overflow: hidden;
  /* はみ出した部分を隠す */
}

/* 画像を横に並べてアニメーションさせる箱 */
.club-slider-track {
  display: flex;
  width: max-content;
  /* 中身の画像幅に合わせてどこまでも広がる */
  /* 40s の部分の数値を大きくすると遅く、小さくすると速くなります */
  animation: scrollLoop 60s linear infinite;
}

.club-slider-track figure {
  margin: 0;
  padding: 0 5px;
  width: 320px;
  /* PC時の写真1枚の幅 */
}

.club-slider-track img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ------------------------
    レスポンシブ (スマホ向け調整)
------------------------ */
@media only screen and (max-width: 960px) {

  /* PCの2カラムを1カラムに（縦並び） */
  .club-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .club-box {
    padding: 20px;
  }

  /* その他をスマホ画面に収めるために縦並びに変更 */
  .club-others {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 12px;
  }

  .club-head-inline {
    border-bottom: 1px solid var(--ink);
    padding-bottom: 8px;
    width: 100%;
  }

  .club-slider-track {
    animation: scrollLoop 40s linear infinite;
  }

  .club-slider-track figure {
    width: 240px;
  }

  .club-slider-track img {
    height: 160px;
  }

}

/* アニメーションのキーフレーム */
@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }

  /* 全体の幅の半分（1セット分）移動したら、パッと0%の位置に戻ることで無限ループに見せる */
  100% {
    transform: translateX(-50%);
  }
}


/* ------------------------
    10 行事 (event)
------------------------ */
#event {
  margin-top: 100px;
}

.event-title {
  font-size: 1.8rem;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 16px;
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.event-title .month {
  font-size: 3.0rem;
  margin-right: 6px;
  line-height: 1;
}

/* 写真5枚のグリッド配置（左1枚大きく、右4枚） */
.event-main-imgs {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;

  /* ★ここで全体の比率を指定して縦幅を抑える！ */
  aspect-ratio: 2.5 / 1;
  /* ← 2.5（横）: 1（縦）。数値を調整してお好みの細さにしてください */
}

.event-main-imgs figure {
  margin: 0;
  height: 100%;
  /* 親のグリッドセルに高さを合わせる */
}

.event-main-imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.event-main-imgs .main-img {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

/* サブ行事（3つ並び） */
.event-sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.event-item figure {
  margin: 0;
}

.event-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* ------------------------
    レスポンシブ (スマホ向け調整)
------------------------ */
@media only screen and (max-width: 960px) {

  /* スマホ時は写真ギャラリーの配置を変更（上段大1枚、下段小4枚） */
  .event-main-imgs {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    aspect-ratio: auto;
    /* ★スマホ時は枠の固定を解除（画像本来の比率に任せる） */
  }

  .event-main-imgs .main-img {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .event-main-imgs .main-img img {
    aspect-ratio: 16 / 9;
    /* スマホ時のメイン画像はここで比率を指定します */
  }

  /* サブ行事も1列の縦並びに */
  .event-sub {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ------------------------
    制服 (uniform)
------------------------ */
#uniform {
  margin: 100px auto;
}

.uniform .ttl-02 .en {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 1.3rem;
  letter-spacing: .3em;
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* 全体のレイアウト */
.uniform-row {
  display: grid;
  grid-template-columns: 450px 1fr;
  /* テキストエリアの幅を少し広めに確保 */
  gap: 20px;
  align-items: stretch;
  /* 左右ブロックの高さを揃える */
  margin-top: 50px;
}

/* 左側：テキスト ＋ 写真 */
.uniform-left {
  display: flex;
  flex-direction: column;
}

.uni-sub-left {
  margin: auto 0 0;
  /* 上マージンをautoにして、右側のギャラリーと下端を揃える */
  padding-top: 20px;
  /* テキストとの最低限の余白 */
}

.uni-sub-left img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* 右側：写真ギャラリー */
.uni-gallery {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  /* 縦長写真と横長写真の幅のバランスを微調整 */
  grid-template-rows: 1fr 1fr;
  /* 2行構成にして縦幅を抑える */
  gap: 20px;
  height: 100%;
}

.uni-gallery figure {
  margin: 0;
}

.uni-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 縦長写真（左列を縦2行分ぶち抜きで使用） */
.uni-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

/* 横長写真（右列に縦に2枚並ぶ） */
.uni-sub {
  grid-column: 2 / 3;
}


/* ------------------------
    レスポンシブ (スマホ向け調整)
------------------------ */
@media only screen and (max-width: 960px) {

  /* PCの2カラムを縦並びに */
  .uniform-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* 左側の横長写真の余白調整 */
  .uni-sub-left {
    margin-top: 24px;
    padding-top: 0;
  }

  /* ギャラリーのバランス調整 */
  .uni-gallery {
    gap: 8px;
  }

  /* スマホ時は縦長写真の比率を少し緩めて見やすくする */
  .uni-main img {
    aspect-ratio: 3 / 4;
  }
}

/* ------------------------
    11 進路 (future)
------------------------ */
#future {
  margin: 100px auto;
}

.future .ttl-02 .en {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 1.3rem;
  letter-spacing: .3em;
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* 66%のレイアウト（上下に罫線） */
.future-stat {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 30px 4px;
  margin-bottom: 40px;
}

.future-stat .bignum {
  font-size: 8.4rem;
  line-height: 1;
}


/* 下段の画像とテーブルの横並び */
.future-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
  /* 画像とテーブルを上下中央で揃える */
}

.future-img figure {
  margin: 0;
}

.future-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* テーブルの数値を右寄せに */
.future-table .data-table td.num {
  text-align: right;
  font-size: 1.6rem;
}

.future-table .data-table tr:first-child th {
  border-bottom: 1px solid var(--line);
}

/* ------------------------
    レスポンシブ (スマホ向け調整)
------------------------ */
@media only screen and (max-width: 960px) {

  /* スマホ時は66%の枠を縦並びに */
  .future-stat {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 4px;
  }

  /* 画像とテーブルも縦並びに */
  .future-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

/* ------------------------
    12 保護者の方へ (for-parents)
------------------------ */
#for-parents {
  margin: 100px auto;
}

/* セクションの小見出し（他のセクションと統一したシンプルな黒い下線） */
.parents-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 24px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}

.parents-title small {
  font-size: 1.35rem;
  font-weight: normal;
  color: var(--body);
  margin-left: 10px;
}

/* 学費テーブルのレイアウト */
.parents-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* PC時は2カラム横並び */
  gap: 40px;
  margin-bottom: 16px;
}

.fee-table-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}

.fee-table-head h4 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.fee-table-head .unit {
  font-size: 1.2rem;
  color: var(--gray);
}

/* テーブル固有のスタイル上書き */
.for-parents .data-table {
  margin-top: 0;
}

/* 1行目（見出し）を他のテーブルと同じスタイルに統一 */
.for-parents .data-table tr:first-child th {
  background-color: transparent;
  /* 背景色を削除 */
  border-bottom: 1px solid var(--ink);
  /* 黒い下線 */
  padding: 12px 14px 12px 0;
  font-weight: 600;
  color: var(--ink);
}

/* 合計行の下線と太字 */
.for-parents .data-table tr.total th,
.for-parents .data-table tr.total td {
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
}

.for-parents .data-table td.num,
.for-parents .data-table th.num {
  text-align: right;
}

.for-parents .data-table .small-text {
  font-size: 1.25rem;
  color: var(--body);
}

/* 注記 */
.fee-notes {
  list-style: none;
  padding: 0;
  margin: 0 0 54px;
}

.fee-notes li {
  font-size: 1.2rem;
  color: var(--body);
  line-height: 1.6;
}

/* 支援制度の枠 */
.support-box {
  background: #ffffff78;
  border: 1px solid var(--line);
  /* 部活動と同じ四角の囲み */
  padding: 30px;
  border-radius: 2px;
}

.support-item {
  margin-bottom: 24px;
}

.support-item:last-child {
  margin-bottom: 0;
}

.support-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.support-item p {
  font-size: 1.35rem;
  color: var(--body);
  line-height: 1.8;
  margin: 0;
}

.support-item .note {
  font-size: 1.2rem;
  color: var(--gray);
}

/* ------------------------
    レスポンシブ (スマホ向け調整)
------------------------ */
@media only screen and (max-width: 960px) {

  /* テーブルを1列（縦並び）に */
  .parents-tables {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* 支援制度枠の余白調整 */
  .support-box {
    padding: 20px;
  }
}

/* ------------------------
    13 入試 (schedule)
------------------------ */
.schedule {
  margin-top: 80px;
}

/* 全体のリスト枠 */
.exam-list {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

/* 1日程（行）のレイアウト */
.exam-row {
  display: flex;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

/* 左側：S日程などの見出し */
.exam-head {
  width: 140px;
  flex-shrink: 0;
  border-left: 2px solid var(--ink);
  /* 画像左端のアクセント線を黒で表現 */
  padding-left: 20px;
  display: flex;
  align-items: center;
}

.exam-title {
  font-size: 2.0rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

/* 右側：共学部・女子部の横並び */
.exam-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  flex-grow: 1;
}

/* コースごとのカード見出し（枠線に変更） */
.exam-card-title {
  background-color: transparent;
  /* 背景色をなくす */
  border-bottom: 1px solid var(--line);
  /* 上下線と同じ色の四角で囲む */
  padding: 12px 16px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 2px;
}

.exam-card-title .dept {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
}

.exam-card-title small {
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--body);
  line-height: 1.4;
}

/* リスト詳細（項目と内容の位置を揃える） */
.exam-dl {
  margin: 0;
  padding: 0 8px;
}

.exam-dl-row {
  display: flex;
  align-items: flex-start;
  /* 右側の内容が複数行になっても、左側は上で揃える */
  margin-bottom: 12px;
  /* 行間を少し広めに見やすく */
}

.exam-dl-row dt {
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  width: 11.5em;
  /* ★領域を広げて「Web出願締切」などが折り返さないように */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  /* ★●、テキスト、コロンの縦位置をセンターで綺麗に揃える */
  line-height: 1.6;
}

/* リストのマーカー（●）とコロン（：）の装飾 */
.exam-dl-row dt::before {
  content: '●';
  color: var(--gray);
  margin-right: 6px;
  font-size: 1.1rem;
}

.exam-dl-row dt::after {
  content: '：';
  margin-left: auto;
  /* コロンを右寄せにする */
}

.exam-dl-row dd {
  font-size: 1.35rem;
  color: var(--body);
  line-height: 1.6;
  margin: 0;
  padding-top: 1px;
  /* dtとの微妙な高さのズレを補正 */
}

/* ====================================
   ダウンロードボタンエリア（PC・共通）
==================================== */
.download-btn-wrap {
  display: flex;
  justify-content: center;
  /* 中央揃え */
  align-items: center;
  gap: 40px;
  /* PC時のボタン間の余白 */
  margin-top: 80px;
  /* 上の要素との余白（適宜調整してください） */
  margin-bottom: 40px;
  /* 下の要素との余白 */
}

/* ダウンロードボタンの共通スタイル（ヘッダーボタンのデザインを踏襲） */
.btn-download {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
  /* ボタンの最大幅 */
  border-radius: 2px;
  padding: 25px;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: .08em;
  text-decoration: none;
  transition: opacity .2s, transform .2s, background-color .2s, color .2s;
  background-color: #1F1F1F;
  /* 黒背景 */
  color: #FAF7F1;
  /* 白文字 */
  border: 1px solid #1F1F1F;
  box-sizing: border-box;
}

/* ホバー時の動き */
.btn-download:hover {
  opacity: .85;
  transform: translateY(-2px);
  /* 少し上に浮くアクション */
  color: #FAF7F1;
}

/* 入力用ボタンを白抜き（アウトライン）にしてメリハリをつける場合 */
.btn-download.btn-download--outline {
  background-color: #fff;
  color: #1F1F1F;
}

.btn-download.btn-download--outline:hover {
  background-color: #1F1F1F;
  color: #FAF7F1;
  opacity: 1;
}

/* ------------------------
    レスポンシブ (スマホ向け調整)
------------------------ */
@media only screen and (max-width: 960px) {

  /* 日程全体を縦並びに */
  .exam-row {
    flex-direction: column;
    padding: 30px 0;
  }

  /* 左側の見出しを上部に配置し、線の位置を変更 */
  .exam-head {
    width: 100%;
    border-left: none;
    border-bottom: 2px solid var(--ink);
    padding-left: 0;
    padding-bottom: 12px;
    margin-bottom: 24px;
  }

  /* 共学部と女子部も縦並びに */
  .exam-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .download-btn-wrap {
    flex-direction: column;
    /* SP時は縦並びにする */
    gap: 15px;
    /* SP時のボタン間の余白 */
    padding: 0 20px;
    /* 画面端にくっつかないよう左右に余白 */
  }

  .btn-download {
    max-width: 100%;
    /* SP時は画面幅いっぱいに広げる */
    padding: 20px;
    /* タップしやすいように高さを少し出す */
    font-size: 1.3rem;
  }
}

/* ------------------------
    14 CTA (contact)
------------------------ */
.contact {
  position: relative;
  margin-top: 100px;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ★背景写真の上に「柔らかいブラウン」のフィルターを重ねる */
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(110, 95, 80, 0.7);
  /* 温かみのあるモカブラウンの半透明 */
}

.contact-inner {
  position: relative;
  z-index: 1;
  /* フィルターの上に要素を出す */
}

/* ヘッダー部分 */
.contact-head {
  text-align: center;
  margin-bottom: 54px;
}

.contact-head .ttl-02 {
  color: #fff;
  border-bottom: none;
  padding-bottom: 0;
  justify-content: center;
}

/* 英語部分（Contact）も白くする */
.contact-head .ttl-02 .en {
  color: #fff;
}

/* カード型リンクのレイアウト */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* カード本体のデザイン */
.contact-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s ease;
  position: relative;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* カード内のテキストと矢印 */
.contact-card-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}

.contact-card-title::after {
  content: '→';
  font-size: 2.4rem;
  color: var(--ink);
  transition: transform 0.3s;
}

.contact-card:hover .contact-card-title::after {
  transform: translateX(6px);
}

.contact-card-text {
  font-size: 1.4rem;
  color: var(--body);
  line-height: 1.7;
  margin: 0;
}

/* ------------------------
    レスポンシブ (スマホ向け調整)
------------------------ */
@media only screen and (max-width: 960px) {
  .contact {
    padding: 60px 0;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    padding: 30px 24px;
  }

  .contact-card-title {
    font-size: 1.8rem;
  }
}



/* ====================================
   モーダル（ポップアップ）のCSS
==================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  display: none;
  /* ★必ず display: none; を指定 */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.is-visible {
  opacity: 1;
}

/* 背景オーバーレイ */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

/* モーダル本体（縦1カラム） */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  /* 写真に被っても見えるように白背景 */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.modal-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーダル内のレイアウト詳細 */
.modal-hero {
  padding: 50px 60px 0;
  /* 上50px、左右60px、下0（テキスト側の余白と合わせる） */
}

.modal-hero figure {
  margin: 0;
}

.modal-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.modal-text-area {
  padding: 50px 60px;
}

.modal-dept {
  font-size: 1.3rem;
  color: var(--gray);
  margin: 0 0 8px;
}

.modal-title {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 24px;
}

.modal-desc {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--body);
  margin: 0;
}

.modal-divider {
  height: 1px;
  background: var(--line);
  margin: 40px 0;
}

.modal-sec-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}

.modal-sec-title small {
  font-size: 1.2rem;
  color: var(--gray);
  margin-left: 8px;
  font-weight: normal;
}

.modal-sec-text {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}

.modal-voice-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}

.modal-voice-text {
  font-size: 1.4rem;
  line-height: 1.9;
  color: var(--body);
  margin: 0;
}



/* ====================================
   モーダル拡張：インタビュー用レイアウト
==================================== */
.modal-content--wide {
  max-width: 1000px;
}

/* 上部：画像と情報の横並び */
.modal-voice-top {
  display: flex;
}

.modal-split-left {
  width: 40%;
  /* 少し画像を小さくするために幅を調整 */
  padding: 50px 0 20px 60px;
  /* 上50px、左60pxの余白を追加 */
  flex-shrink: 0;
}

.modal-split-left figure {
  margin: 0;
  /* height: 100%; は削除してください */
}

.modal-split-left img {
  width: 100%;
  /* height: 100%; は削除してください */
  aspect-ratio: 4 / 5;
  /* ★画像の比率をやや縦長に固定し、縦伸びを防ぐ */
  object-fit: cover;
  display: block;
}

/* ★修正：右側（テキスト）エリアの左余白を調整して画像との隙間を作る */
.modal-split-right {
  width: 60%;
  padding: 50px 60px 20px 40px;
  /* 左を40pxにして画像と離す、下を20pxに詰める */
}

/* 下部：本文エリア（横幅いっぱい） */
.modal-voice-bottom {
  padding: 0 60px 50px;
}

/* インタビュー用テキストスタイル */
.modal-voice-en {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--gray);
  font-size: 1.6rem;
  margin: 0 0 16px;
}

.modal-voice-profile {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.modal-voice-profile .modal-dest {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.modal-voice-profile .modal-name {
  font-size: 1.35rem;
  color: var(--gray);
  margin: 0;
}

.modal-voice-lead {
  font-size: 1.35rem;
  color: var(--gray);
  line-height: 1.8;
  margin: 0;
}

.modal-voice-body {
  font-size: 1.45rem;
  color: var(--body);
  line-height: 2.0;
  margin: 0;
}

/* スマホ向け調整（縦並びに戻す） */
@media only screen and (max-width: 960px) {

  .modal-hero {
    padding: 30px 20px 0;
    /* スマホ用：上30px、左右20px、下0 */
  }

  .modal-content {
    width: 95%;
  }

  .modal-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 24px;
  }

  .voice-main-cont .modal-split-left img {
    object-position: 50% 55%;
  }

  .modal-split-left img {
    aspect-ratio: 7 / 5;
    object-position: 50% 20%;
  }

  .modal-hero img {
    aspect-ratio: 3 / 2;
  }

  .modal-text-area {
    padding: 30px 20px;
  }

  .modal-voice-top {
    flex-direction: column;
  }

  .modal-split-left {
    width: 100%;
    padding: 30px 20px 0;
    /* 上30px、左右20px */
    /* height: 350px; は削除してください */
  }

  .modal-split-right {
    width: 100%;
    padding: 20px;
  }

  .modal-voice-bottom {
    padding: 0 20px 30px;
  }
}

/* ==============================================
   上に戻るボタン
============================================== */
.page-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background-color: #333;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  text-decoration: none;
}


.page-top__arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: 4px;
}


.page-top:hover {
  background-color: #555;
}


.page-top.is-show {
  opacity: 1;
  visibility: visible;
}


@media (max-width: 768px) {
  .page-top {
    right: 15px;
    bottom: 65px;
    width: 45px;
    height: 45px;
  }
}