@charset "utf-8";
.court {
  padding-top: 80px;
  padding-bottom: 100px;
}

@media screen and (min-width: 768px) {
  .court {
    padding-top: 149px;
    padding-bottom: 150px;
  }
}

.court__swiper-wrapper {
  display: flex;
}

.court__slide img {
  aspect-ratio: 640/420;
  object-fit: cover;
  border-radius: 10px;
  width: 100%;
}

.court__slide-table-container{
  margin-top: 20px;
  padding-inline: 20px;
  width: 100%;
  max-width: calc(640px + 20px *2);
  margin-inline: auto;
}

.court__slide-text-box {
  background-color: var(--white-color);
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  /* transition: opacity 0.3s ease, transform 0.3s ease; */
  /* opacity: 0;
  display: none;
  transform: translateY(-10px); */
}
/* .swiper-slide-active .court__slide-text-box {
  opacity: 1;
  display: block;
  transform: translateY(0);
} */
/* 
.court__slide-text-box.active {
  opacity: 1;
  display: block;
  transform: translateY(0);
} */

.court__slide-text-row {
  display: flex;
  text-align: center;
}

.court__slide-text-row:first-of-type {
  border-bottom: 1px solid #d9d9d9;
  background: #f7f7f7;
}

.court__slide-text-label {
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 26px;
  color: var(--sub-color);
  padding-block: 12px;
}

@media screen and (min-width: 768px) {
  .court__slide-text-label {
    font-size: 18px;
  }
}

.court__slide-text-row .court__slide-text-label:first-of-type {
  flex-shrink: 0;
  width: 36%;
  border-right: 1px solid #d9d9d9;
}

.court__slide-text-value {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 26px;
  padding: 20px 5px 20px 5px;
}

@media screen and (min-width: 768px) {
  .court__slide-text-value {
    font-size: 16px;
    padding: 35px 29px 35px 30px;
  }
}

@media screen and (min-width: 1200px) {
  .court__slide-text-value {
    font-size: 18px;
  }
}

.court__slide-text-row .court__slide-text-value:first-of-type {
  flex-shrink: 0;
  width: 36%;
  border-right: 1px solid #d9d9d9;
}

@media screen and (min-width: 768px) {
  .court__inner.l-inner {
    max-width: calc(1150px + 40px * 2);
  }
}

.court__container {
  margin-top: 80px;
}

@media screen and (min-width: 768px) {
  .court__container {
    margin-top: 130px;
  }
}

.court__content {
  position: relative;
}

.court__content:nth-of-type(1)::before,
.court__content:nth-of-type(2)::before,
.court__content:nth-of-type(3)::before,
.court__content:nth-of-type(4)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  pointer-events: none;
}

.court__content:nth-of-type(1)::before {
  background: url(../images/court-ACCESS.svg) no-repeat center center / contain;
  width: clamp(
    289px,
    calc(289px + (391 - 289) * ((100vw - 375px) / (1366 - 375))),
    391px
  );
  aspect-ratio: 391/95;
}

.court__content:nth-of-type(2) {
  margin-top: 80px;
}

@media screen and (min-width: 768px) {
  .court__content:nth-of-type(2) {
    margin-top: 120px;
  }
}

.court__content:nth-of-type(2)::before {
  background: url(../images/court-OVERVIEW.svg) no-repeat center center /
    contain;
  width: clamp(
    289px,
    calc(289px + (510 - 289) * ((100vw - 375px) / (1366 - 375))),
    510px
  );
  aspect-ratio: 510/95;
}

.court__content:nth-of-type(3) {
  margin-top: 97px;
}

.court__content:nth-of-type(3)::before {
  background: url(../images/court-PRICE.svg) no-repeat center center / contain;
  width: clamp(
    290px,
    calc(290px + (510 - 290) * ((100vw - 375px) / (1366 - 375))),
    510px
  );
  aspect-ratio: 510/142;
}

.court__content:nth-of-type(4) {
  margin-top: 91px;
}

@media screen and (min-width: 768px) {
  .court__content:nth-of-type(4) {
    margin-top: 141px;
  }
}

.court__content:nth-of-type(4)::before {
  background: url(../images/court-PRECATION.svg) no-repeat center center /
    contain;
  width: clamp(
    290px,
    calc(290px + (547 - 290) * ((100vw - 375px) / (1366 - 375))),
    547px
  );
  aspect-ratio: 547/95;
}

.court__content-heading {
  padding-bottom: 41px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 37;
  color: var(--sub-color);
  line-height: 37px;
  padding-top: 4px;
}

.court__content:nth-of-type(1) .court__content-heading {
  padding-top: 10px;
}

.court__content:nth-of-type(3) .court__content-heading {
  padding-top: 17px;
}

@media screen and (min-width: 600px) {
  .court__content-heading {
    font-size: 26px;
    padding-top: 12px;
    padding-bottom: 61px;
  }

  .court__content:nth-of-type(1) .court__content-heading {
    padding-top: 15px;
  }
  .court__content:nth-of-type(3) .court__content-heading {
    padding-top: 32px;
  }
}

@media screen and (min-width: 1000px) {
  .court__content-heading {
    padding-top: 21px;
  }

  .court__content:nth-of-type(1) .court__content-heading {
    padding-top: 19px;
  }
  .court__content:nth-of-type(3) .court__content-heading {
    padding-top: 40px;
  }
}

.court__content-map {
  aspect-ratio: 1150/450;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .court__content-map {
    margin-top: 41px;
  }
}

.court__content-map iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1150/450;
  object-fit: cover;
  border: none;
}

.court__table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
}

/*-------- テーブル ------------ */
/* ----テーブル基本設定---- */
.court__table {
  width: 100%;
  display: table;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
  min-width: 725px;
  background: var(--white-color);
}

/* 行の設定 */
.court__table-row {
  display: table-row;
  width: 100%;
}

.court__table-row:first-of-type {
  background: #f7f7f7;
}

/* セル共通設定 */
.court__table-th,
.court__table-td {
  display: table-cell;
  vertical-align: middle;
}

/* パディング設定 */
.court__table-row:not(:first-of-type) .court__table-th,
.court__table-row:not(:first-of-type) .court__table-td {
  padding-block: 22px;
}

.court__table-row:first-of-type .court__table-th {
  padding-block: 12px;
}

/* ボーダー設定 */
.court__table-td {
  border-left: 1px solid #d9d9d9;
}

.court__table-row:first-of-type .court__table-th:not(:first-of-type) {
  border-left: 1px solid #d9d9d9;
}

.court__table-row:not(:last-of-type) .court__table-th,
.court__table-row:not(:last-of-type) .court__table-td {
  border-bottom: 1px solid #d9d9d9;
}

/* テキスト共通設定 */
.school__price-table-th-text {
  padding-left: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 26px;
  color: var(--sub-color);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.court__table-td-text {
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 26px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* フォントサイズのレスポンシブ設定 */
@media screen and (min-width: 768px) {
  .school__price-table-th-text,
  .court__table-td-text {
    font-size: 14px;
  }
}

@media screen and (min-width: 1024px) {
  .school__price-table-th-text,
  .court__table-td-text {
    font-size: 17px;
  }
}

@media screen and (min-width: 1200px) {
  .school__price-table-th-text,
  .court__table-td-text {
    font-size: 18px;
  }
}

/* ----フィールド詳細テーブル（2番目のテーブル）列幅設定---- */
/* 第1列 - コート名 */
.court__content:nth-of-type(2) .court__table-row .court__table-th:nth-child(1) {
  width: 29%;
}

/* 第2列 - サイズ */
.court__content:nth-of-type(2) .court__table-row .court__table-th:nth-child(2),
.court__content:nth-of-type(2) .court__table-row .court__table-td:nth-child(2) {
  width: 29%;
}

@media screen and (min-width: 1000px) {
  .court__content:nth-of-type(2)
    .court__table-row
    .court__table-th:nth-child(2),
  .court__content:nth-of-type(2)
    .court__table-row
    .court__table-td:nth-child(2) {
    width: 26%;
  }
}

/* 第3列 - 詳細 */
.court__content:nth-of-type(2) .court__table-row .court__table-th:nth-child(3),
.court__content:nth-of-type(2) .court__table-row .court__table-td:nth-child(3) {
  /* width: 45%; */
}

/* 第3列 - フォントサイズ */
.court__content:nth-of-type(2)
  .court__table-row
  .court__table-td:nth-child(3)
  .court__table-td-text {
  font-size: 13px;
}

.court__content:nth-of-type(2) .court__table-td {
  padding: 12px 15px;
}

/* ----料金表テーブル（3番目と4番目のテーブル）列幅設定---- */
/* 料金表の第1列 - 日時 */
.court__content:nth-of-type(3) .court__table-row .court__table-th:first-child {
  width: 29%;
}

/* 料金表の第2～5列 - 金額 */
.court__content:nth-of-type(3)
  .court__table-row
  .court__table-th:not(:first-child) {
  width: 17.7%;
}

/* 料金表の青少年料金も同様の設定 */
.court__content:nth-of-type(3)
  .court__content-box:nth-of-type(2)
  .court__table-row
  .court__table-th:first-child {
  width: 29%;
}

.court__content:nth-of-type(3)
  .court__content-box:nth-of-type(2)
  .court__table-row
  .court__table-th:not(:first-child) {
  width: 17.7%;
}

.court__table-th-text-br br {
  display: block;
}

@media screen and (min-width: 1024px) {
  .court__table-th-text-br br {
    display: none;
  }
}
/* ------- テーブルend --------- */

.court__content-box {
  display: flex;
  flex-direction: column;
  gap: 33px;
}

.court__content-box + .court__content-box {
  margin-top: 70px;
}

.court__content-box--title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 29px;
  color: var(--sub-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.court__content-box--title::before {
  content: "";
  width: 15px;
  height: 15px;
  padding-right: 15px;
  background: var(--title-color);
  border-radius: 50%;
}

.court__Precautions {
  padding: 40px 20px;
  background: var(--white-color);
  border-radius: 5px;
  border: 1px solid #d9d9d9;
}

.court__Precautions p {
  letter-spacing: 0.08em;
  line-height: 2.2;
  font-size: 12px;
}

@media screen and (min-width: 768px) {
  .court__Precautions {
    padding: 69px 60px;
  }
  .court__content-box--title {
    font-size: 20px;
  }

  .court__Precautions p {
    font-size: 15px;
  }
}


/* button */
.court__table-button {
  margin-top: 50px;
  text-align: center;
}

.court__table-button-link {
  display: inline-block;
}

.court__table-button-text {
  padding: 17px 47px 17px 21px;
  color: var(--white-color);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 20px;
  background-color: #8E7451;
  border: 1px solid #8E7451;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
}

.court__table-button-text::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 100%;
  background: #B39872;
  border-left: 1px solid var(--white-color);
}

.court__table-button-text::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 7px;
  width: 9px;
  height: 9px;
  background: url(../images/arrow-icon.svg) no-repeat center center/contain;
}

.court__table-button-link:hover{
  opacity: 1;
}

.court__table-button-link:hover .court__table-button-text {
  background: var(--white-color);
  color: #8E7451;
  opacity: 1;
}

