/* ==========================================================================
   03 学校紹介：サイズ固定・フレーム・縦長レイアウト
   ========================================================================== */

.p-top-section-school-intro {
  /* 上下の余白を広げて、縦にゆったりとした印象に */
  padding: 120px 0 160px; 
  background-color: #f9f9f9;
  text-align: center;
  color: #001a43;
  width: 100%;
}

/* 1. 全体コンテナ：中央寄せと最大幅の制限 */
.l-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー部分 */
.p-section__header {
  margin-bottom: 40px;
}

.c-section-number {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.c-heading {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px;
}

.c-lead {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 40px;
}

/* 2. 特徴・歴史ボタンの復活 */
.p-school-intro__btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
}

.c-button-outline {
  display: inline-flex;
  align-items: center;
  border: 1px solid #001a43;
  padding: 10px 30px;
  border-radius: 50px;
  color: #001a43;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  background: transparent;
}

.c-button-outline:hover {
  background-color: #001a43;
  color: #ffffff;
}

.c-button-outline .arrow {
  margin-left: 10px;
}

/* 3. グリッド：ブラウザが広がってもサイズ（860px）を維持 */
.p-school-intro__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 700px; /* ★ここを固定することで間延びを防ぎます */
  margin: 0 auto;
}

/* 4. キャンパスカード：フレームと影の演出 */
/* 4. キャンパスカード：背景との分離のために影を強化 */
.p-campus-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  /* ★影を濃く・深く設定：透明度を少し上げ、広がり(25px)を大きくしました */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
}

/* ホバー時はさらに影を濃くして「浮かび上がる」演出 */
.p-campus-card:hover {
  transform: translateY(-10px);
  /* ★ホバー時はさらに存在感を出すため、影の濃度をアップ */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.p-campus-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* 画像部分のフレーム */
/* 画像部分のフレーム：ここを書き換えます */
.p-campus-card__img {
  width: 100%;
  height: 250px; 
  overflow: hidden;
  /* ★追加：写真の周りの「白い余白（フレーム）」 */
  padding: 15px 15px 0 15px; /* 下以外の3方向に余白を持たせる */
  background-color: #ffffff;
  box-sizing: border-box;
}

.p-campus-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ★追加：写真そのものに薄い枠線をつけて、白背景に埋もれないようにする */
  border: 1px solid #f0f0f0;
  border-radius: 8px; /* 角を少し丸くしてモダンに */
  transition: transform 0.5s ease;
}

.p-campus-card:hover .p-campus-card__img img {
  transform: scale(1.05);
}

/* テキスト部分：フレームとのバランス調整 */
.p-campus-card__content {
  padding: 20px 20px 30px; /* 縦方向の厚みを出し、高級感を演出 */
  position: relative;
  background: #ffffff;
  text-align: left; /* テキストを左寄せに */
}
.p-campus-card__content .name {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.p-campus-card__content .sub {
  font-size: 12px;
  color: #777777;
}

/* 矢印アイコン */
.card-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #001a43;
  opacity: 0.7;
}

/* 5. レスポンシブ調整（タブレット以下は1列） */
@media (max-width: 768px) {
  .p-school-intro__grid {
    grid-template-columns: 1fr;
    max-width: 450px; /* スマホでも横に広がりすぎない */
  }
}