/* Guide
   SP は 767px まで。PC は 768px から。
------------------------------------------- */
.page--guide {
  --home-text: #1f2428;
  --home-pad: 1.5rem;
  --home-max: 72rem;
  --guide-gold: #bfa15a;
  --guide-line: #e4d9cc;

  background: #fff;
  color: var(--home-text);
  font-family: "Noto Serif JP", serif;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.9;
}

@media (max-width: 767px) {
  .page--guide {
    --home-pad: clamp(1.5rem, calc(1.5rem + (100vw - 375px) * (1rem / 25px)), 2.5rem);
  }
}

@media (min-width: 400px) and (max-width: 767px) {
  .page--guide {
    --home-pad: clamp(2.5rem, calc(2.5rem + (100vw - 400px) * (1rem / 100px)), 3.5rem);
  }
}

@media (min-width: 768px) {
  .page--guide {
    font-size: 0.9375rem;
  }
}

.page--guide :focus-visible {
  outline: 1px solid var(--home-text);
  outline-offset: 3px;
}

.guide-lead__inner,
.guide-flow__inner,
.guide-service__inner,
.guide-faq__inner,
.guide-contact__inner {
  width: min(100% - (var(--home-pad) * 2), var(--home-max));
  margin-inline: auto;
}

@media (max-width: 767px) {
  .guide-lead__inner,
  .guide-flow__inner,
  .guide-service__inner,
  .guide-faq__inner,
  .guide-contact__inner {
    max-width: 500px;
  }
}

.guide-label {
  margin: 0 0 0.7rem;
  color: var(--guide-gold);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
}

.guide-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.guide-lead {
  padding: 3.5rem 0 3.25rem;
  background: #f6f3ec;
}

.guide-lead__sub,
.guide-flow__lead,
.guide-service__lead,
.guide-faq__lead,
.guide-contact__text,
.guide-flow__text,
.guide-card__text {
  margin: 0.85rem 0 0;
  font-size: 12px;
  line-height: 1.9;
}

.guide-lead__text {
  margin: 1.75rem 0 0;
  font-size: 12px;
  line-height: 2;
}

.guide-flow {
  padding: 3.5rem 0 4rem;
  background: #fcfbf7;
}

.guide-flow__list {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-flow__step {
  display: grid;
  grid-template-columns: 4.25rem auto minmax(0, 1fr);
  grid-template-areas:
    "icon num name"
    "icon text text";
  column-gap: 0.65rem;
  align-items: center;
}

.guide-flow__step + .guide-flow__step {
  margin-top: 1.6rem;
}

.guide-flow__body {
  display: contents;
}

.guide-flow__num {
  grid-area: num;
  margin: 0;
  color: var(--guide-gold);
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.guide-flow__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid var(--guide-gold);
  border-radius: 50%;
  color: var(--home-text);
}

.guide-flow__icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.guide-flow__name {
  grid-area: name;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.guide-flow__text {
  grid-area: text;
  margin-top: 0.25rem;
}

.guide-flow__step:not(:last-child) {
  position: relative;
}

.guide-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.9rem;
  bottom: -0.95rem;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1px solid var(--guide-gold);
  border-bottom: 1px solid var(--guide-gold);
  transform: rotate(45deg);
}

.guide-service {
  padding: 3.25rem 0 3.75rem;
  background: #f8f6f1;
}

.guide-service__lead--pc {
  display: none;
}

.guide-service__list {
  display: grid;
  row-gap: 0.85rem;
  margin-top: 1.75rem;
}

.guide-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--guide-gold);
  border-radius: 10px;
  background: #fff;
}

.guide-card__title {
  margin: 0;
}

.guide-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  color: var(--guide-gold);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  cursor: pointer;
}

.guide-card__plus {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
}

.guide-card__plus::before,
.guide-card__plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.guide-card__plus::after {
  transform: translateY(-50%) rotate(90deg);
}

.guide-card.is-open .guide-card__plus::after {
  opacity: 0;
}

.guide-card__arrow {
  display: none;
}

.guide-card__steps {
  display: grid;
  row-gap: 0.95rem;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  transition: height 0.6s ease, margin-top 0.6s ease;
}

.guide-card.is-open .guide-card__steps {
  margin-top: 1.1rem;
}

.guide-card__step {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  column-gap: 0.7rem;
  align-items: start;
}

.guide-card__num {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--guide-gold);
  border-radius: 50%;
  color: var(--guide-gold);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.guide-card__name {
  margin: 0.15rem 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.guide-card__text {
  margin: 0.1rem 0 0;
  grid-column: 2;
}

.guide-faq {
  padding: 3.5rem 0 4rem;
  background: #fcfbf7;
}

.guide-faq__box {
  margin-top: 1.75rem;
  border: 1px solid var(--guide-line);
  background: #fff;
}

.guide-faq__item + .guide-faq__item {
  border-top: 1px solid var(--guide-line);
}

.guide-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
  cursor: pointer;
}

.guide-faq__plus {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  color: var(--home-text);
}

.guide-faq__plus::before,
.guide-faq__plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.guide-faq__plus::after {
  transform: translateY(-50%) rotate(90deg);
}

.guide-faq__question[aria-expanded="true"] .guide-faq__plus::after {
  opacity: 0;
}

.guide-faq__answer {
  height: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.85;
  transition: height 0.6s ease;
}

.guide-faq__answer p {
  margin: 0 0 0.95rem;
  padding: 0 2.2rem 0 1rem;
}

.guide-faq__item--rest {
  display: none;
}

.guide-faq.is-all .guide-faq__item--rest {
  display: block;
}

.guide-faq__more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.15rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--guide-gold);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.guide-faq.is-all .guide-faq__more {
  display: none;
}

.guide-contact {
  padding: 3.5rem 0 4rem;
  background: #f7f6f1;
}

.guide-contact__text {
  margin-top: 1.25rem;
}

.guide-contact__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--guide-gold);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.guide-contact__link:hover,
.guide-contact__link:focus-visible,
.guide-faq__more:hover,
.guide-faq__more:focus-visible {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .guide-title {
    font-size: clamp(20px, calc(20px + (100vw - 768px) * (10px / 672px)), 30px);
  }

  .guide-lead {
    padding: 2rem 0 4.5rem;
  }

  .guide-lead__inner {
    display: grid;
    grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.15fr);
    column-gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
  }

  .guide-lead__text {
    margin: 0;
    padding-left: 2.25rem;
    border-left: 1px solid var(--guide-gold);
    font-size: 14px;
  }

  .guide-lead__sub {
    font-size: 14px;
  }

  .guide-flow {
    padding: 4.5rem 0 5rem;
  }

  .guide-flow__lead,
  .guide-service__lead,
  .guide-faq__lead,
  .guide-contact__text {
    font-size: 14px;
  }

  .guide-flow__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1.5rem;
    margin-top: 3rem;
  }

  .guide-flow__step,
  .guide-flow__step + .guide-flow__step {
    display: block;
    margin: 0;
    text-align: center;
  }

  .guide-flow__step:not(:last-child)::after {
    left: auto;
    right: -0.95rem;
    bottom: auto;
    top: 4.6rem;
    border-right: 1px solid var(--guide-gold);
    border-bottom: 0;
    border-top: 1px solid var(--guide-gold);
    transform: rotate(45deg);
  }

  .guide-flow__body {
    display: block;
  }

  .guide-flow__num {
    margin: 0 0 0.7rem;
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .guide-flow__icon {
    margin-inline: auto;
  }

  .guide-flow__name {
    margin-top: 0.9rem;
    font-size: 15px;
  }

  .guide-flow__text {
    margin-top: 0.45rem;
    font-size: 12px;
  }

  .guide-service {
    padding: 4.5rem 0 5rem;
  }

  .guide-service__lead--pc {
    display: block;
  }

  .guide-service__lead--sp {
    display: none;
  }

  .guide-service__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1.25rem;
    margin-top: 2.5rem;
  }

  .guide-card {
    padding: 1.35rem 1.2rem 1.5rem;
  }

  .guide-card__toggle {
    cursor: default;
  }

  .guide-card__plus {
    display: none;
  }

  .guide-card__arrow {
    display: block;
  }

  .guide-card__steps,
  .guide-card.is-open .guide-card__steps {
    height: auto;
    margin-top: 1.35rem;
    overflow: visible;
    transition: none;
  }

  .guide-faq {
    padding: 5rem 0 5.5rem;
  }

  .guide-faq__inner {
    display: grid;
    grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.35fr);
    column-gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }

  .guide-faq__box {
    margin-top: 0.4rem;
  }

  .guide-faq__question {
    padding: 1rem 1.25rem;
    font-size: 14px;
  }

  .guide-faq__item--rest {
    display: block;
  }

  .guide-faq__more {
    display: none;
  }

  .guide-contact {
    padding: 4.5rem 0 5.5rem;
  }

  .guide-contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    column-gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
  }

  .guide-contact__link {
    margin-top: 0;
    padding: 1.35rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card__steps,
  .guide-faq__answer {
    transition: none;
  }
}
