/* ==================================================
  Home Intro
================================================== */

.home-intro {
  padding: 72px 0 86px;
  background: var(--color-bg-white);
}

/* .l-container を使う場合は max-width のみ上書き */
.home-intro-inner {
  width: var(--container-width);
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.home-intro-heading {
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.home-intro-heading h2 {
  margin: 0;
  font-size: 2em;
  text-align: center;
}

.home-intro-text {
  max-width: 760px;
  margin: 34px auto 0;
  text-align: center;
}

.home-intro-links {
  width: 100%;
  max-width: 1040px;
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* .c-btn を継承し、イントロリンク固有のスタイルを追加 */
.home-intro-link {
  min-height: 62px;
  padding: 0 20px;
  color: #fff !important;
  background: linear-gradient(180deg, #68aa5f 0%, var(--color-primary) 56%, var(--color-primary-dark) 100%);
  box-shadow: var(--shadow-card);
}

.home-intro-link::before {
  background: linear-gradient(180deg, #7abd70 0%, var(--color-primary-light) 56%, var(--color-primary) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.home-intro-link span {
  color: #fff !important;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.home-intro-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.home-intro-link:hover::before {
  opacity: 1;
}

/* Home Intro SP */
@media screen and (max-width: 768px) {
  .home-intro {
    padding: 58px 0 68px;
  }

  .home-intro-inner {
    width: var(--container-width-sp);
  }

  .home-intro-text {
    margin-top: 26px;
  }

  .home-intro-text br {
    display: none;
  }

  .home-intro-links {
    margin-top: 36px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-intro-link {
    min-height: 58px;
  }
}

/* ==================================================
  Top Info
  - .l-section--gray / .l-container / .c-heading を使用
================================================== */

.top-info-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
}

.top-info-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.top-info-list {
  border-top: 1px dotted var(--color-primary);
}

.top-info-more {
  margin-top: auto;
  margin-left: auto;
  padding-top: 42px;
}

/* 1件 */
.top-info-item {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  color: var(--color-text);
  border-bottom: 1px dotted var(--color-primary);
  text-decoration: none;
  box-sizing: border-box;
  transition: color var(--transition-base);
}

.top-info-item:hover {
  color: var(--color-primary);
}

/* 日付 */
.top-info-date {
  color: var(--color-text-muted);
  line-height: 1.8;
  white-space: nowrap;
}

/* タイトル */
.top-info-text {
  display: block;
  line-height: 1.5;
}

/* new アイコン */
.top-info-new {
  width: auto;
  height: 18px;
  margin-left: 8px;
  vertical-align: middle;
}

/* 空の場合 */
.top-info-item--empty {
  display: block;
  color: var(--color-text-muted);
}

/* .c-more-link を継承 */
.top-info-more a {
  color: var(--color-text-dark);
}

.top-info-more a::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cdefs%3E%3Cstyle%3E.cls-1%2C.cls-2%7Bfill%3Anone%3B%7D.cls-2%7Bstroke%3A%230b6f07%3Bstroke-linecap%3Around%3Bstroke-linejoin%3Around%3Bstroke-width%3A4px%3B%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Esearch_24%3C/title%3E%3Cg%20id%3D%22%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC_2%22%20data-name%3D%22%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC%202%22%3E%3Cg%20id%3D%22Rect_%E6%9C%80%E5%BE%8C%E9%80%8F%E6%98%8E%E3%81%AB_%22%20data-name%3D%22Rect%EF%BC%88%E6%9C%80%E5%BE%8C%E9%80%8F%E6%98%8E%E3%81%AB%EF%BC%89%22%3E%3Crect%20class%3D%22cls-1%22%20width%3D%2248%22%20height%3D%2248%22/%3E%3C/g%3E%3Cg%20id%3D%22icon%22%3E%3Cpath%20class%3D%22cls-2%22%20d%3D%22M25.66%2C35.52A14.24%2C14.24%2C0%2C0%2C1%2C22%2C36a14%2C14%2C0%2C1%2C1%2C9.9-4.1%22/%3E%3Cline%20class%3D%22cls-2%22%20x1%3D%2240%22%20y1%3D%2240%22%20x2%3D%2231.9%22%20y2%3D%2231.9%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.top-info-more a::after {
  background: var(--color-primary);
}

.top-info-more a:hover {
  color: var(--color-primary);
}

/* Top Info SP */
@media screen and (max-width: 768px) {
  .top-info-inner {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .top-info-more {
    margin-top: 30px;
  }

  .top-info-item {
    padding: 17px 0;
    display: block;
  }

  .top-info-date {
    display: block;
    margin-bottom: 5px;
  }

  .top-info-more a::before {
    width: 17px;
    height: 17px;
  }
}

/* ==================================================
  Top Guide
  - .l-section--white / .l-section--gray / .l-container を使用
================================================== */

.top-guide {
  padding: 75px 0;
}

.top-guide-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46%;
  gap: 55px;
  align-items: center;
}

.top-guide-inner-reverse {
  grid-template-columns: 44% minmax(0, 1fr);
}

.top-guide-inner-reverse .top-guide-content {
  order: 2;
}

.top-guide-inner-reverse .top-guide-image {
  order: 1;
}

.top-guide-content {
  min-width: 0;
}

/* heading */
.top-guide-heading {
  margin: 0 0 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "title line"
    "en line";
  column-gap: 30px;
  align-items: center;
}

.top-guide-heading h2 {
  grid-area: title;
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-Mincho);
  line-height: 1.35;
  white-space: nowrap;
  padding-bottom: 0;
}

.top-guide-en {
  grid-area: en;
  margin: 4px 0 0;
  color: #8a8f8a;
  font-family: var(--font-Mincho);
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.top-guide-heading::after {
  content: "";
  grid-area: line;
  width: 100%;
  height: 4px;
  display: block;
  background: linear-gradient(
    90deg,
    rgba(11, 111, 7, 0) 0%,
    rgba(11, 111, 7, 0.16) 18%,
    rgba(11, 111, 7, 0.5) 55%,
    rgba(11, 111, 7, 0.95) 100%
  );
}

/* text */
.top-guide-text {
  color: var(--color-text);
  line-height: 1.9;
}

/* button */
.top-guide-button-wrap {
  margin-top: 38px;
}

/* .c-btn を継承し、ガイドボタン固有のスタイルを追加 */
.top-guide-button {
  min-width: 260px;
  padding: 14px 58px 14px 34px;
  border-radius: 0;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transition: color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.top-guide-button span {
  position: relative;
  z-index: 3;
}

/* 背景ホバー */
.top-guide-button::before {
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-fill);
  z-index: 1;
}

/* 矢印 */
.top-guide-button::after {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cdefs%3E%3Cstyle%3E.a%2C.b%7Bfill%3Anone%3B%7D.b%7Bstroke%3A%230b6f07%3Bstroke-linecap%3Around%3Bstroke-linejoin%3Around%3Bstroke-width%3A2px%3B%7D%3C/style%3E%3C/defs%3E%3Ctitle%3E136_arr_24%3C/title%3E%3Crect%20class%3D%22a%22%20width%3D%2248%22%20height%3D%2248%22/%3E%3Cpolyline%20class%3D%22b%22%20points%3D%2223%2013%2034%2024%2023%2035%22/%3E%3Cpolyline%20class%3D%22b%22%20points%3D%2213%2013%2024%2024%2013%2035%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-base), background-image var(--transition-base);
  z-index: 3;
}

.top-guide-button:hover {
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.top-guide-button:hover::before {
  transform: scaleX(1);
}

.top-guide-button:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cdefs%3E%3Cstyle%3E.a%2C.b%7Bfill%3Anone%3B%7D.b%7Bstroke%3A%23ffffff%3Bstroke-linecap%3Around%3Bstroke-linejoin%3Around%3Bstroke-width%3A2px%3B%7D%3C/style%3E%3C/defs%3E%3Ctitle%3E136_arr_24%3C/title%3E%3Crect%20class%3D%22a%22%20width%3D%2248%22%20height%3D%2248%22/%3E%3Cpolyline%20class%3D%22b%22%20points%3D%2223%2013%2034%2024%2023%2035%22/%3E%3Cpolyline%20class%3D%22b%22%20points%3D%2213%2013%2024%2024%2013%2035%22/%3E%3C/svg%3E");
  transform: translateY(-50%) translateX(5px);
}

/* image */
.top-guide-image {
  width: 100%;
}

.top-guide-image img {
  width: 100%;
  height: 360px;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Top Guide SP */
@media screen and (max-width: 768px) {
  .top-guide {
    padding: 70px 0;
  }

  .top-guide-inner,
  .top-guide-inner-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .top-guide-inner-reverse .top-guide-content,
  .top-guide-inner-reverse .top-guide-image {
    order: initial;
  }

  .top-guide-heading {
    margin-bottom: 24px;
    display: block;
  }

  .top-guide-heading h2,
  .top-guide-en {
    white-space: normal;
  }

  .top-guide-en {
    margin-top: 4px;
  }

  .top-guide-heading::after {
    height: 3px;
    margin-top: 16px;
  }

  .top-guide-button-wrap {
    margin-top: 30px;
  }

  .top-guide-button {
    width: 100%;
    min-width: 0;
    padding: 14px 58px 14px 28px;
  }

  .top-guide-button::after {
    right: 24px;
  }

  .top-guide-image img {
    height: 260px;
  }
}

/* ==================================================
  Top Booking
================================================== */

.top-booking {
  padding: 35px 0;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* 背景画像 */
.top-booking::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url("https://kinugawacc.jp/wp-content/themes/KinugawaCC_2023/assets/img/bg01.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: scale(1);
  transition: transform var(--transition-bg);
}

/* オーバーレイ */
.top-booking::after {
  content: "";
  width: 100%;
  height: 100%;
  background: var(--color-dark-overlay);
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.top-booking:hover::before {
  transform: scale(1.08);
}

.top-booking-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 3;
}

.top-booking-content {
  width: var(--container-width);
  max-width: 900px;
  min-height: 340px;
  margin: 0 auto;
  padding: 76px 0 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 4;
  box-sizing: border-box;
  background: transparent !important;
}

.top-booking-heading {
  margin: 0 0 22px;
  text-align: center;
  position: relative;
  z-index: 4;
}

.top-booking-heading::after {
  content: "";
  width: 90px;
  height: 2px;
  display: block;
  margin: 18px auto 0;
  background: #fff;
}

.top-booking-heading h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-Mincho);
  font-size: 1.95em;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.06em;
  white-space: normal;
}

.top-booking-en {
  display: block;
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-Mincho);
  font-size: 1em;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.top-booking-lead {
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 4;
  background: transparent !important;
}

.top-booking-button-wrap {
  width: 100%;
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 4;
}

/* .c-btn を継承し、予約ボタン固有のスタイルを追加 */
.top-booking-button {
  min-width: 280px;
  padding: 15px 48px;
  color: var(--color-primary) !important;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.top-booking-button span {
  color: inherit !important;
  position: relative;
  z-index: 3;
  font-size: 0.96em;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.top-booking-button::before {
  background: var(--color-primary);
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-fill);
  z-index: 1;
}

.top-booking-button::after {
  content: "";
  width: 18px;
  height: 18px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.top-booking-button:hover {
  color: #fff !important;
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.top-booking-button:hover::before {
  transform: scaleX(1);
}

.top-booking-button:hover::after {
  opacity: 1;
  transform: translateY(-50%) rotate(45deg) translate(4px, -4px);
}

.top-booking-note {
  max-width: 760px;
  margin: 26px auto 0;
  position: relative;
  z-index: 4;
  background: transparent !important;
}

.top-booking-note p {
  margin: 0 0 6px;
  color: #fff;
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.top-booking-registration {
  margin-top: 16px;
  position: relative;
  z-index: 4;
}

/* .c-more-link を継承 */
.top-booking-registration a {
  color: #fff;
  gap: 9px;
  font-size: 0.95em;
}

.top-booking-registration a::before {
  width: 17px;
  height: 17px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cdefs%3E%3Cstyle%3E.cls-1%2C.cls-2%7Bfill%3Anone%3B%7D.cls-2%7Bstroke%3A%23ffffff%3Bstroke-linecap%3Around%3Bstroke-linejoin%3Around%3Bstroke-width%3A4px%3B%7D%3C/style%3E%3C/defs%3E%3Crect%20class%3D%22cls-1%22%20width%3D%2248%22%20height%3D%2248%22/%3E%3Cpath%20class%3D%22cls-2%22%20d%3D%22M25.66%2C35.52A14.24%2C14.24%2C0%2C0%2C1%2C22%2C36a14%2C14%2C0%2C1%2C1%2C9.9-4.1%22/%3E%3Cline%20class%3D%22cls-2%22%20x1%3D%2240%22%20y1%3D%2240%22%20x2%3D%2231.9%22%20y2%3D%2231.9%22/%3E%3C/svg%3E");
}

.top-booking-registration a::after {
  background: #fff;
  left: 26px;
}

.top-booking-registration a:hover {
  color: #fff;
}

.top-booking-registration a:hover::after {
  width: calc(100% - 26px);
}

/* Top Booking SP */
@media screen and (max-width: 768px) {
  .top-booking {
    padding: 28px 0;
  }

  .top-booking-content {
    width: var(--container-width-sp);
    min-height: 360px;
    padding: 64px 0 64px;
  }

  .top-booking-heading {
    margin-bottom: 18px;
  }

  .top-booking-heading h2 {
    font-size: 1.55em;
  }

  .top-booking-en {
    margin-bottom: 6px;
  }

  .top-booking-lead {
    line-height: 1.8;
  }

  .top-booking-button-wrap {
    margin-top: 28px;
    flex-direction: column;
    gap: 14px;
  }

  .top-booking-button {
    width: 100%;
    min-width: 0;
    padding: 14px 28px;
  }

  .top-booking-note {
    margin-top: 24px;
    text-align: left;
  }

  .top-booking-note p {
    line-height: 1.7;
  }

  .top-booking-registration {
    margin-top: 18px;
  }
}

/* ==================================================
  Top Club Info
  - .l-section--white / .l-container / .c-heading を使用
================================================== */

.top-club-info-layout {
  display: grid;
  grid-template-columns: 47% minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.top-club-info-map {
  width: 100%;
  overflow: hidden;
}

.top-club-info-map iframe {
  width: 100%;
  height: 500px;
  display: block;
  border: 0;
}

.top-club-info-content {
  width: 100%;
  min-width: 0;
}

.top-club-info-name {
  margin: 0 0 18px;
  color: var(--color-primary);
  font-family: var(--font-Mincho);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.top-club-info-detail {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  row-gap: 7px;
  column-gap: 22px;
  border: none;
}

.top-club-info-detail dt,
.top-club-info-detail dd {
  margin: 0;
  padding: 0;
  border: none;
  line-height: 1.5;
  writing-mode: horizontal-tb;
  word-break: normal;
}

.top-club-info-detail dt {
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}

.top-club-info-detail dd {
  color: var(--color-text);
  overflow-wrap: normal;
}

/* Top Club Info SP */
@media screen and (max-width: 768px) {
  .top-club-info-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .top-club-info-map iframe {
    height: 360px;
  }

  .top-club-info-name {
    margin-bottom: 16px;
  }

  .top-club-info-detail {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .top-club-info-detail dt {
    padding: 8px 0 0;
    white-space: normal;
  }

  .top-club-info-detail dd {
    padding: 0 0 6px;
    line-height: 1.6;
    overflow-wrap: break-word;
  }
}

/* ==================================================
  Top Links
  - .l-section--gray / .l-container / .c-heading を使用
================================================== */

.top-links-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 48px;
}

.top-links-card {
  padding: 0;
  background: transparent;
  box-sizing: border-box;
}

.top-links-title {
  margin: 0 0 16px;
  padding: 0 0 10px;
  color: var(--color-primary);
  font-family: var(--font-Mincho);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(11, 111, 7, 0.35);
}

.top-links-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-links-items li {
  margin: 0 0 8px;
  padding: 0;
}

.top-links-items li:last-child {
  margin-bottom: 0;
}

.top-links-items a {
  color: var(--color-text);
  font-size: 0.95em;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--transition-base);
}

.top-links-items a::before {
  content: "・";
  color: var(--color-primary);
}

.top-links-items a:hover {
  color: var(--color-primary);
}

/* Top Links SP */
@media screen and (max-width: 768px) {
  .top-links-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .top-links-title {
    margin-bottom: 14px;
    padding-bottom: 9px;
    font-size: 1.1em;
  }

  .top-links-items li {
    margin-bottom: 7px;
  }
}

/* バナー */
.top-links-banners {
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
}

.top-links-banners li {
  margin: 0;
  padding: 0;
}

.top-links-banners a {
  display: block;
  background: var(--color-bg-white);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.top-links-banners a:hover {
  opacity: 0.75;
}

.top-links-banners img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 768px) {
  .top-links-banners {
    margin-top: 38px;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media screen and (max-width: 480px) {
  .top-links-banners {
    grid-template-columns: 1fr;
  }
}
