.top-school-gym {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: var(--color-light-gray);
}

/* ==================================================
   大枠のレイアウト（PC用：左右2カラム）
================================================== */
.top-school-gym__columns {
  display: grid;
  grid-template-columns: 1fr 1fr; /* ここで左右均等に分割 */
  gap: 2rem; /* カラム間の余白 */
}

/* カラム内部のレイアウト */
.top-school-gym__column {
  display: flex;
  flex-direction: column;
  grid-template-columns: 31.9375rem 1fr;
  grid-template-areas:
    "photo heading"
    "photo detail";
  padding: 4.375rem;
  overflow: hidden;
  gap: 0 4.3125rem;
  border-radius: 1.25rem;
  background: var(--color-white);
}

/* PC時の境界線 */
.top-school-gym__column:first-child {
  border-right: 1px solid #ccc;
}

.top-school-gym .column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.top-school-gym .column-header .title {
  font-size: 1.5rem;
  font-weight: bold;
}

.top-school-gym .logo img {
  height: 40px;
  width: auto;
}

.top-school-gym .logo svg {
  height: 30px;
  width: auto;
}

.top-school-gym .desc {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  min-height: 3.2rem; /* 2行分の高さを確保 */
}

.top-school-gym .photo {
  aspect-ratio: 16 / 9;
  background-color: #eee;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.top-school-gym .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-school-gym .info {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 0.5rem 0;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.top-school-gym .info dt {
  font-weight: bold;
}

.top-school-gym .info a {
  text-decoration: underline;
}

.top-school-gym .thumbnails {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.top-school-gym .thumb {
  width: 60px;
  height: 40px;
  background-color: #eee;
  border: 1px solid #ccc;
}

/* ==================================================
   スマホ用のレスポンシブ対応（979px以下：上下1カラム）
================================================== */
@media screen and (max-width: 979px) {

  /* 左右並びを解除して上下に並べる */
  .top-school-gym__columns {
    grid-template-columns: 1fr;
  }

  /* スマホ時は右の線を消し、下の線に変える */
  .top-school-gym__column:first-child {
    border-right: none;
    border-bottom: 1px solid #ccc;
    /* 下線との間に余白を取りたい場合は追加 */
    /* padding-bottom: 2rem; */
    /* margin-bottom: 2rem; */
  }

  /* カラム内部のレイアウトもスマホ用に調整（必要に応じて） */
  /* PC用で指定した "31.9375rem 1fr" だとスマホ画面からはみ出すため、
     スマホ時は内部も縦並びにするのがおすすめです */
  .top-school-gym__column {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "photo"
      "detail";
    padding: 2rem; /* スマホ用に余白を少し狭める */
    gap: 1.5rem;
  }

  .l-footer__address p a {
    text-decoration: underline;
  }
}
