.terms-page,
.terms-page *,
.terms-page *::before,
.terms-page *::after {
  box-sizing: border-box;
}

body.page-template-page-terms {
  margin: 0;
  color: #43372f;
}

.terms-page {
  overflow: clip;
  color: #43372f;
  font-family: var(--at-reference-sans, var(--at-sans, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif));
  font-feature-settings: "palt";
}

.terms-page a {
  color: inherit;
}

.terms-page__inner {
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: clamp(88px, 12vw, 150px);
}

.terms-index {
  display: grid;
  grid-template-columns: minmax(145px, .65fr) 1.35fr;
  gap: 28px;
  align-items: center;
  margin-bottom: clamp(70px, 10vw, 118px);
  padding: 25px 30px;
  border-block: 1px solid rgba(86, 65, 50, .15);
}

.terms-index p,
.terms-index ol {
  margin: 0;
}

.terms-index p {
  color: #997963;
  font-size: 11px;
  letter-spacing: .12em;
}

.terms-index ol {
  display: flex;
  justify-content: flex-end;
  gap: 34px;
  padding: 0;
  list-style: none;
  counter-reset: terms-index;
}

.terms-index li {
  counter-increment: terms-index;
}

.terms-index a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font: 400 14px/1.6 var(--at-honoka-mincho, var(--at-serif, "Yu Mincho", serif));
  text-decoration: none;
}

.terms-index a::before {
  content: "0" counter(terms-index);
  color: #c18870;
  font: 10px/1 var(--at-reference-sans, sans-serif);
  letter-spacing: .1em;
}

.terms-index a::after {
  content: "↓";
  color: #ba8a73;
  font-family: sans-serif;
}

.terms-index a:hover,
.terms-index a:focus-visible,
.terms-return a:hover,
.terms-return a:focus-visible {
  color: #a85f56;
}

.terms-index a:focus-visible,
.terms-return a:focus-visible,
.terms-reason summary:focus-visible {
  outline: 2px solid #b97a6b;
  outline-offset: 4px;
}

.terms-document {
  scroll-margin-top: 110px;
}

.terms-document + .terms-document {
  margin-top: clamp(100px, 15vw, 170px);
}

.terms-document__head {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(86, 65, 50, .18);
}

.terms-document__head p,
.terms-document__head h2 {
  margin: 0;
}

.terms-document__head p {
  color: #ba806b;
  font-size: 11px;
  letter-spacing: .22em;
}

.terms-document__head h2 {
  color: #49382e;
  font: 400 clamp(28px, 4vw, 42px)/1.45 var(--at-honoka-mincho, var(--at-serif, "Yu Mincho", serif));
  letter-spacing: .11em;
}

.terms-document__introduction {
  margin: clamp(46px, 7vw, 68px) auto 38px;
  padding-left: min(9vw, 76px);
  font: 400 clamp(16px, 2vw, 18px)/2.15 var(--at-honoka-mincho, var(--at-serif, "Yu Mincho", serif));
  letter-spacing: .035em;
}

.terms-document__introduction p {
  margin: 0 0 1.35em;
}

.terms-image-break { margin: 0 0 clamp(42px, 7vw, 68px); }
.terms-image-break img { display: block; width: min(100%, 38rem); aspect-ratio: 16 / 9; margin-inline: auto; object-fit: cover; border-radius: 18px 3px 18px 3px; box-shadow: 0 16px 38px rgba(69, 48, 34, .1); }

.terms-document__caution {
  margin: 0 0 clamp(58px, 8vw, 84px);
  padding: 22px 25px;
  border: 1px solid rgba(168, 104, 89, .19);
  border-radius: 12px 2px 12px 2px;
  background: rgba(250, 239, 231, .72);
  color: #6c4b40;
  font-size: 12px;
  line-height: 2;
}

.terms-document__section > h3,
.terms-cancellation-sections h3 {
  margin: 0;
  color: #49382e;
  font: 400 clamp(20px, 2.7vw, 26px)/1.75 var(--at-honoka-mincho, var(--at-serif, "Yu Mincho", serif));
  letter-spacing: .055em;
}

.terms-document__revision {
  margin: 10px 0 32px;
  color: #89786c;
  font-size: 11px;
}

.terms-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: terms-rule;
}

.terms-rules > li {
  position: relative;
  counter-increment: terms-rule;
  padding: 30px 0 32px 58px;
  border-top: 1px solid rgba(86, 65, 50, .14);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 2;
}

.terms-rules > li:last-child {
  border-bottom: 1px solid rgba(86, 65, 50, .14);
}

.terms-rules > li::before {
  position: absolute;
  top: 33px;
  left: 4px;
  content: counter(terms-rule, decimal-leading-zero);
  color: #bd826c;
  font: 11px/1.8 var(--at-reference-sans, sans-serif);
  letter-spacing: .12em;
}

.terms-rules > li > strong {
  display: block;
  color: #4c3b31;
  font-size: 16px;
  line-height: 1.9;
}

.terms-rules ol {
  margin: 20px 0 4px;
  padding-left: 1.5em;
}

.terms-rules p {
  margin: 1.2em 0 0;
}

.terms-reason {
  margin-top: 22px;
  border: 1px solid rgba(86, 65, 50, .16);
  border-radius: 12px 3px 12px 3px;
  background: rgba(255, 253, 248, .68);
}

.terms-reason summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 12px 18px;
  color: #705d50;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .08em;
  list-style: none;
}

.terms-reason summary::-webkit-details-marker {
  display: none;
}

.terms-reason summary i {
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

.terms-reason summary i::before,
.terms-reason summary i::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 13px;
  height: 1px;
  content: "";
  background: currentColor;
  transition: transform .25s ease;
}

.terms-reason summary i::after {
  transform: rotate(90deg);
}

.terms-reason[open] summary i::after {
  transform: rotate(0);
}

.terms-reason__body {
  padding: 2px 18px 22px;
  color: #5a4b42;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 2;
}

.terms-reason__body p {
  margin: 1em 0 0;
}

.terms-references {
  overflow-wrap: anywhere;
  color: #76685e;
  font-size: 11px;
}

.terms-cancellation-sections {
  margin-top: 30px;
}

.terms-cancellation-sections > section {
  padding: 42px 0 45px 70px;
  border-bottom: 1px solid rgba(86, 65, 50, .14);
}

.terms-cancellation-sections h3 {
  position: relative;
  margin-bottom: 26px;
}

.terms-cancellation-sections h3 span {
  position: absolute;
  left: -66px;
  top: .3em;
  color: #bd826c;
  font: 11px/1 var(--at-reference-sans, sans-serif);
}

.terms-cancellation-sections h4 {
  margin: 34px 0 12px;
  color: #614c40;
  font: 600 14px/1.8 var(--at-reference-sans, sans-serif);
  letter-spacing: .055em;
}

.terms-cancellation-sections p {
  margin: 0 0 1.15em;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 2;
}

.terms-fee-list {
  margin: 25px 0;
  padding: 0;
  border-block: 1px solid rgba(86, 65, 50, .15);
  list-style: none;
}

.terms-fee-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 3px;
  font-size: 15px;
}

.terms-fee-list li + li {
  border-top: 1px solid rgba(86, 65, 50, .1);
}

.terms-fee-list strong {
  color: #825749;
}

.terms-return {
  display: grid;
  gap: 22px;
  justify-items: center;
  margin-top: clamp(84px, 13vw, 140px);
  text-align: center;
}

.terms-return__reservation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(520px, 100%);
  min-height: 94px;
  padding: 22px clamp(22px, 5vw, 36px);
  border: 1px solid rgba(129, 80, 67, .15);
  border-radius: 18px 4px 18px 4px;
  background: linear-gradient(135deg, rgba(255, 247, 241, .98), rgba(239, 187, 177, .72));
  box-shadow: 0 14px 36px rgba(91, 55, 43, .09), inset 0 0 0 6px rgba(255, 255, 255, .2);
  font: 400 clamp(17px, 2.5vw, 21px)/1.55 var(--at-honoka-mincho, var(--at-serif, "Yu Mincho", serif));
  letter-spacing: .055em;
  text-align: left;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}

.terms-return__reservation small {
  display: block;
  margin-bottom: 4px;
  font: 500 9px/1.4 var(--at-reference-sans, sans-serif);
  letter-spacing: .15em;
  opacity: .68;
}

.terms-return__reservation i {
  font-style: normal;
  font-size: 1.35em;
  transition: transform .3s ease;
}

.terms-return__reservation:hover,
.terms-return__reservation:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(91, 55, 43, .13), inset 0 0 0 6px rgba(255, 255, 255, .24);
}

.terms-return__reservation:hover i,
.terms-return__reservation:focus-visible i {
  transform: translateX(4px);
}

.terms-return__home {
  min-height: 44px;
  padding: 12px;
  border: 0;
  color: #76665b;
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-underline-offset: .35em;
}

@media (max-width: 680px) {
  .terms-page__inner {
    width: min(100% - 32px, 840px);
  }

  .terms-index {
    display: block;
    padding: 18px 4px 10px;
  }

  .terms-index p {
    margin: 0 0 5px;
  }

  .terms-index ol {
    display: block;
  }

  .terms-index a {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    border-top: 1px solid rgba(86, 65, 50, .09);
  }

  .terms-index a::before {
    margin-right: 4px;
  }

  .terms-index a::after {
    margin-left: auto;
  }

  .terms-document__head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
  }

  .terms-document__introduction {
    padding-left: 0;
  }

  .terms-document__caution {
    padding: 19px 18px;
  }

  .terms-rules > li {
    padding-left: 40px;
  }

  .terms-rules > li > strong {
    font-size: 16px;
  }

  .terms-reason {
    margin-left: -40px;
  }

  .terms-reason__body {
    padding-inline: 16px;
  }

  .terms-cancellation-sections > section {
    padding: 35px 0 38px 40px;
  }

  .terms-cancellation-sections h3 span {
    left: -37px;
  }

  .terms-cancellation-sections p,
  .terms-rules > li {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-page *,
  .terms-page *::before,
  .terms-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
