@charset "UTF-8";

/* =========================================================
   キャンパスライフ（CAMPUS LIFE）— レイアウト刷新
   index.css の .life 系（絶対配置の写真5枚＋左446pxの深いパディング）を
   置き換える。既存の画像・テキストはそのまま使用。

   ■旧デザインの課題
   ・写真が絶対配置で本文に重なり、1280〜1740px で
     「学生支援・サポート制度」の見出しと冒頭が読めなくなっていた
   ・写真と説明文の対応関係がなく、装飾として散らばっていた
   ・濃い青地に白の長文が続き、3制度が並列であることが伝わらない

   ■新デザインの方針＝写真と本文を「複合」させる
   ・見出しの真横にリード写真を置き、その下端を青帯に食い込ませて
     白地→青帯のつなぎ目をなくす（写真だけの帯を作らない）
   ・国試バックアップ体制は、図書館の写真と本文を1枚のパネルに合成
   ・帯の見出しの横にも写真2枚を置き、写真が上に固まらないよう散らす

   ブレイクポイントは index.css に合わせて 768 / 1400。
   （旧ルールを打ち消すため、旧指定のある階層では同じ MQ で再宣言している）
   ========================================================= */

/* ---------------------------------------------------------
   見出し ＋ リード写真
   --------------------------------------------------------- */

.life__head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (width > 768px) {
  .life__head {
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
  }
}

@media (width > 1400px) {
  .life__head {
    gap: 56px;
  }
}

/* 旧デザインの左寄せオフセットを解除 */
.life__ttl-sub {
  margin-left: 0;
  padding-top: 0;
  margin-bottom: 6px;
}

.life__ttl {
  margin-left: 0;
  margin-bottom: 0;
}

@media (width > 768px) {
  .life__ttl-sub {
    margin-left: 0;
    padding-top: 0;
    margin-bottom: 10px;
  }

  .life__ttl {
    margin-left: 0;
    margin-bottom: 0;
  }
}

@media (width > 1400px) {
  .life__ttl-sub {
    margin-left: 0;
    padding-top: 0;
    margin-bottom: 12px;
  }

  .life__ttl {
    margin-left: 0;
    margin-bottom: 0;
  }
}

/* 左列 = 見出し＋校名プレートの写真。
   SPは横並び、768px超は縦に離して配置し、リード写真の高さぶんの
   余白を校名プレートで埋める */
.life__head-txt {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

@media (width > 768px) {
  .life__head-txt {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-top: 8px;
  }
}

.life__head-sign {
  flex: none;
  width: 26%;
  max-width: 200px;
  margin: 0;
}

.life__head-sign img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (width > 768px) {
  .life__head-sign {
    /* リード写真と下端を揃えるため、残りの高さいっぱいまで伸ばす */
    flex: 1 1 auto;
    width: 46%;
    max-width: 250px;
    min-height: 0;
  }

  .life__head-sign picture {
    display: block;
    height: 100%;
  }

  .life__head-sign img {
    height: 100%;
    object-fit: cover;
  }
}

.life__head-fig {
  position: relative;
  z-index: 2;
  margin: 0;
}

.life__head-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   学生支援・サポート制度（濃青の帯）
   index.css 側は写真の回り込みぶんの巨大な余白
   （padding-top:358px / padding-left:446px）を持っているので打ち消す。
   さらに負のマージンで上に引き上げ、リード写真を帯に重ねる。
   --------------------------------------------------------- */

.life__body {
  margin-top: -40px;
  padding-top: 88px;
  padding-bottom: 56px;
}

.life__body-inner {
  padding: 0;
}

@media (width > 768px) {
  .life__body {
    margin-top: -80px;
    padding-top: 152px;
    padding-bottom: 88px;
  }

  .life__body-inner {
    padding: 0;
  }
}

@media (width > 1400px) {
  .life__body {
    margin-top: -110px;
    padding-top: 190px;
    padding-bottom: 110px;
  }

  .life__body-inner {
    padding: 0;
  }
}

/* 見出し ＋ 写真2枚の行 */
.life__body-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (width > 768px) {
  .life__body-head {
    grid-template-columns: 1fr 46%;
    align-items: end;
    gap: 40px;
    margin-bottom: 40px;
  }
}

.life__body-ttl {
  margin-bottom: 0;
}

/* --- 支援制度カード3枚 --- */

.life__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

@media (width > 768px) {
  .life__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.life__card {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
}

@media (width > 768px) {
  .life__card {
    padding: 32px 28px 34px;
  }
}

.life__card-num {
  font-family: Outfit, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #aaceff;
  margin-bottom: 12px;
}

.life__card-ttl {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin-bottom: 12px;
}

@media (width > 768px) {
  .life__card-ttl {
    font-size: 21px;
    /* 「スチューデントアシスタント制度」だけ2行になるため、
       3枚の本文の開始位置を揃える */
    min-height: 3.2em;
  }
}

.life__card-txt {
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.95;
}

@media (width > 768px) {
  .life__card-txt {
    font-size: 16px;
  }
}

.life__card-note {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: #e9f1fb;
}

.life__card-note::before {
  display: block;
  width: 40px;
  height: 1px;
  margin-bottom: 14px;
  background-color: rgba(255, 255, 255, 0.45);
  content: '';
}

/* カード群の下に添える一文（オフィスアワー） */
.life__cards-foot {
  margin-top: 20px;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

@media (width > 768px) {
  .life__cards-foot {
    margin-top: 26px;
    font-size: 16px;
  }
}

/* --- 国家試験バックアップ体制（写真＋本文の複合パネル） --- */

.life__backup {
  margin-top: 36px;
  border-radius: 6px;
  background-color: #fff;
  color: #212121;
  overflow: hidden;
}

@media (width > 768px) {
  .life__backup {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: stretch;
  }
}

@media (width > 1400px) {
  .life__backup {
    grid-template-columns: 360px 1fr;
  }
}

.life__backup-fig {
  margin: 0;
}

.life__backup-fig picture {
  display: block;
  height: 100%;
}

.life__backup-fig img {
  display: block;
  width: 100%;
  height: 100%;
  /* SPは帯状に、PCはパネルの高さいっぱいに */
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (width > 768px) {
  .life__backup-fig img {
    aspect-ratio: auto;
  }
}

.life__backup-body {
  padding: 28px 24px 32px;
}

@media (width > 768px) {
  .life__backup-body {
    padding: 44px 44px 46px;
  }
}

@media (width > 1400px) {
  .life__backup-body {
    padding: 54px 60px 56px;
  }
}

.life__backup-ttl {
  font-family: 'Noto Serif JP', serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.06em;
  color: var(--var-brand);
  margin-bottom: 16px;
}

@media (width > 768px) {
  .life__backup-ttl {
    font-size: 25px;
    margin-bottom: 20px;
  }
}

@media (width > 1400px) {
  .life__backup-ttl {
    font-size: 28px;
  }
}

.life__backup-txt {
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 2.05;
}

@media (width > 768px) {
  .life__backup-txt {
    font-size: 16px;
  }
}

/* --- 締めの写真列 --- */

.life__strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1.5fr 1.43fr;
  gap: 12px;
}

/* 各写真は元画像の比率どおりに置き、引き伸ばしを避ける
   （学園祭 3:2 ／ 食堂 1.43:1 ／ 校名プレート 0.66:1） */
@media (width > 768px) {
  .life__strip {
    gap: 20px;
  }
}

.life__strip-item {
  margin: 0;
  min-width: 0;
}

.life__strip-item picture {
  display: block;
  height: 100%;
}

.life__strip-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* SPは2枚を横並び。元画像の比率どおりに置き、引き伸ばしを避ける */
.life__strip-item--fes {
  aspect-ratio: 3 / 2;
}

.life__strip-item--cafe {
  aspect-ratio: 1.43 / 1;
}

@media (width > 768px) {
  /* 行の高さは学園祭（3:2）が決め、食堂も同じ高さに揃う */
  .life__strip-item--cafe {
    aspect-ratio: auto;
  }
}
