/* =========================================================
  12 RESERVE｜ご予約・お問い合わせ
  ファイル名：/assets/css/shichigosan/12-reserve.css
  変更目印：七五三ページ 12-reserve 専用CSS
  お宮参りページの .yp-reserve-section デザインに合わせる
========================================================= */

.yp-reserve-section {
  width: 100%;
  margin: 0;
  padding: 96px 0 110px;
  background: #ffffff;
  color: #2f2a24;
}

.yp-reserve-section,
.yp-reserve-section * {
  box-sizing: border-box;
}

.yp-reserve-section__inner {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
}

.yp-reserve-section__head {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
  margin-bottom: 58px;
}

.yp-reserve-section__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.yp-reserve-section h2,
.yp-reserve-section h3 {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
}

.yp-reserve-section h2::before,
.yp-reserve-section h2::after,
.yp-reserve-section h3::before,
.yp-reserve-section h3::after {
  display: none !important;
  content: none !important;
}

.yp-reserve-section__label,
.yp-reserve-section__sub-label,
.yp-reserve-section__lead p,
.yp-reserve-section__kicker,
.yp-reserve-section__box-text,
.yp-reserve-section__info-item p,
.yp-reserve-section__note {
  background: none !important;
  box-shadow: none !important;
}

.yp-reserve-section__label::before,
.yp-reserve-section__label::after,
.yp-reserve-section__sub-label::before,
.yp-reserve-section__sub-label::after,
.yp-reserve-section__lead p::before,
.yp-reserve-section__lead p::after,
.yp-reserve-section__kicker::before,
.yp-reserve-section__kicker::after,
.yp-reserve-section__box-text::before,
.yp-reserve-section__box-text::after,
.yp-reserve-section__info-item p::before,
.yp-reserve-section__info-item p::after,
.yp-reserve-section__note::before,
.yp-reserve-section__note::after {
  display: none !important;
  content: none !important;
}

.yp-reserve-section__label {
  margin: 0 0 18px;
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.yp-reserve-section__title {
  margin: 0;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.24;
  letter-spacing: 0.12em;
  font-weight: 400;
}

.yp-reserve-section__sub-label {
  margin: 18px 0 0;
  color: #7a878f;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.yp-reserve-section__lead p {
  margin: 0;
  color: #5d6971;
  font-size: 15px;
  line-height: 2.15;
  letter-spacing: 0.04em;
}

.yp-reserve-section__box {
  position: relative;
  padding: 52px 56px 50px;
  background:
    linear-gradient(
      135deg,
      rgba(251, 250, 248, 1) 0%,
      rgba(246, 243, 237, 1) 100%
    );
  border: 1px solid rgba(38, 52, 61, 0.1);
  overflow: hidden;
}

.yp-reserve-section__box::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(138, 116, 88, 0.16);
  border-radius: 999px;
  pointer-events: none;
}

.yp-reserve-section__box::after {
  content: "";
  position: absolute;
  bottom: -90px;
  left: -90px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(138, 116, 88, 0.12);
  border-radius: 999px;
  pointer-events: none;
}

.yp-reserve-section__message {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin: 0 auto 38px;
  text-align: center;
}

.yp-reserve-section__kicker {
  margin: 0 0 14px;
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.yp-reserve-section__box-title {
  margin: 0 0 18px;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.55;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.yp-reserve-section__box-text {
  margin: 0;
  color: #5d6971;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.04em;
}

.yp-reserve-section__info-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto 40px;
  border-top: 1px solid rgba(38, 52, 61, 0.12);
  border-left: 1px solid rgba(38, 52, 61, 0.12);
}

.yp-reserve-section__info-item {
  min-height: 150px;
  padding: 24px 18px 22px;
  background: rgba(255, 255, 255, 0.46);
  border-right: 1px solid rgba(38, 52, 61, 0.12);
  border-bottom: 1px solid rgba(38, 52, 61, 0.12);
}

.yp-reserve-section__info-number {
  display: block;
  margin: 0 0 22px;
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.yp-reserve-section__info-item p {
  margin: 0;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.yp-reserve-section__buttons {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 26px;
}

.yp-reserve-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 54px;
  padding: 16px 28px;
  border: 1px solid #26343d;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  transition:
    background-color 260ms ease,
    color 260ms ease,
    border-color 260ms ease,
    transform 260ms ease;
}

.yp-reserve-section__button--primary {
  background: #26343d;
  color: #ffffff !important;
}

.yp-reserve-section__button--secondary {
  background: transparent;
  color: #26343d !important;
}

.yp-reserve-section__button::before,
.yp-reserve-section__button::after {
  display: none !important;
  content: none !important;
}

.yp-reserve-section__note {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  color: #6a7378;
  font-size: 12.5px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  text-align: center;
}

/* =========================================================
  HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {
  .yp-reserve-section__button:hover {
    background: #26343d !important;
    border-color: #26343d;
    color: #ffffff !important;
    transform: translateY(-2px);
  }

  .yp-reserve-section__button--primary:hover {
    background: #8a7458 !important;
    border-color: #8a7458 !important;
  }

  .yp-reserve-section__button--secondary:hover {
    background: #26343d !important;
    color: #ffffff !important;
  }
}

/* =========================================================
  RESPONSIVE
========================================================= */

@media screen and (max-width: 1024px) {
  .yp-reserve-section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .yp-reserve-section__inner {
    width: min(100%, calc(100% - 36px));
  }

  .yp-reserve-section__head {
    grid-template-columns: 230px 1fr;
    gap: 34px;
    margin-bottom: 44px;
  }

  .yp-reserve-section__title {
    font-size: clamp(36px, 5vw, 58px);
  }

  .yp-reserve-section__lead p {
    font-size: 14px;
    line-height: 2;
  }

  .yp-reserve-section__box {
    padding: 44px 36px 42px;
  }

  .yp-reserve-section__info-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .yp-reserve-section__info-item {
    min-height: 130px;
  }
}

@media screen and (max-width: 767px) {
  #yp-reserve-section {
    scroll-margin-top: 80px;
  }

  .yp-reserve-section {
    padding: 58px 0;
  }

  .yp-reserve-section__inner {
    width: calc(100% - 20px);
  }

  .yp-reserve-section__head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 34px;
  }

  .yp-reserve-section__label {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .yp-reserve-section__title {
    font-size: clamp(32px, 10vw, 46px);
    line-height: 1.4;
    letter-spacing: 0.1em;
  }

  .yp-reserve-section__sub-label {
    margin-top: 10px;
    font-size: 12px;
  }

  .yp-reserve-section__lead p {
    font-size: 13px;
    line-height: 1.95;
  }

  .yp-reserve-section__box {
    padding: 34px 18px 32px;
  }

  .yp-reserve-section__message {
    margin-bottom: 28px;
    text-align: left;
  }

  .yp-reserve-section__box-title {
    font-size: clamp(24px, 7.5vw, 34px);
  }

  .yp-reserve-section__box-text {
    font-size: 13px;
    line-height: 2;
  }

  .yp-reserve-section__info-list {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
  }

  .yp-reserve-section__info-item {
    min-height: auto;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px 16px;
  }

  .yp-reserve-section__info-number {
    margin: 0;
    font-size: 12px;
  }

  .yp-reserve-section__info-item p {
    font-size: 16px;
  }

  .yp-reserve-section__buttons {
    flex-direction: column;
    gap: 12px;
  }

  .yp-reserve-section__button {
    width: 100%;
    min-height: 50px;
    font-size: 12.5px;
  }

  .yp-reserve-section__note {
    font-size: 12px;
    line-height: 1.9;
    text-align: left;
  }
}

@media screen and (max-width: 374px) {
  .yp-reserve-section__inner {
    width: calc(100% - 16px);
  }

  .yp-reserve-section__box {
    padding: 32px 16px 30px;
  }

  .yp-reserve-section__lead p,
  .yp-reserve-section__box-text {
    font-size: 12.5px;
  }
}

/* =========================================================
  REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .yp-reserve-section__button {
    animation: none !important;
    transition: none !important;
  }
}