/* ---------- ボタン・リンク ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 40px;
  border: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  letter-spacing: 0.2em;
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

.button--light {
  background: var(--color-ivory);
  color: var(--color-charcoal);
}

/* ホバーで、外側に縁がじわっと広がる */
.button::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid currentColor;
  clip-path: inset(6px);
  pointer-events: none;
}

.button:hover::after,
.button:focus-visible::after {
  clip-path: inset(0);
}

@media (prefers-reduced-motion: no-preference) {
  .button::after {
    transition: clip-path 0.8s var(--ease-out);
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* ---------- 写真の枠 ---------- */
.work__frame,
.person__figure {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-ivory-deep);
}

.work__img,
.person__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work__caption {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.work__caption span {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.08em;
}

.salon__photo img {
  width: 100%;
  height: auto;
  background: var(--color-ivory-deep);
}

.salon__caption {
  padding-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--color-muted-on-light);
}

/* ---------- スタイリスト ---------- */
.person__role {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-muted-on-light);
}

.person__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
}

.person__text {
  margin-bottom: 6px;
  font-size: 0.875rem;
}

/* ---------- メニュー・料金 ---------- */
.price__list {
  border-top: 1px solid var(--color-line-light);
}

.price__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--color-line-light);
}

.price__row dt {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: 0.04em;
}

.price__row small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-muted-on-dark);
}

.price__row dd {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  white-space: nowrap;
}

/* ---------- サロン情報 ---------- */
.salon__info-row {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  padding-block: 14px;
  border-bottom: 1px solid var(--color-line-dark);
  font-size: 0.9375rem;
}

.salon__info-row dt {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--color-muted-on-light);
}

/* ---------- 診断 ---------- */
.quiz__empty {
  align-self: center;
  font-size: 0.875rem;
  color: var(--color-muted-on-dark);
}

.quiz__caption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--color-ivory);
}

.quiz__empty[hidden],
.quiz__answer-body[hidden],
.quiz__caption:empty {
  display: none;
}

@media (min-width: 768px) {
  .quiz__empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0 var(--gutter);
    text-align: center;
  }

  .quiz__caption {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 8px 14px;
    background: var(--color-charcoal);
  }
}

.quiz__question {
  margin: 0 0 40px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.quiz__legend {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 8px;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 500;
}

.quiz__no {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-muted-on-dark);
}

.quiz__option {
  position: relative;
  display: block;
  cursor: pointer;
}

.quiz__option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.quiz__text {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line-light);
}

.quiz__text::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.quiz__option input:checked + .quiz__text::before {
  background: var(--color-ivory);
  box-shadow: inset 0 0 0 3px var(--color-charcoal);
}

.quiz__option input:focus-visible + .quiz__text {
  outline: 2px solid var(--color-ivory);
  outline-offset: 2px;
}

.quiz__reset {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.quiz__answer-body {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line-light);
}

.quiz__label {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-muted-on-dark);
}

.quiz__name {
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.3;
}

.quiz__menu {
  font-size: 0.875rem;
  color: var(--color-muted-on-dark);
}

.quiz__menu strong {
  display: block;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--color-ivory);
}

.quiz__note {
  margin-top: 40px;
  font-size: 0.75rem;
  color: var(--color-muted-on-dark);
}

/* ---------- 予約フォーム ---------- */
.reserve__form {
  display: grid;
  gap: 8px;
}

.field {
  display: grid;
  gap: 2px;
}

.field__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--color-muted-on-dark);
}

.field__control {
  min-height: 52px;
  padding: 8px 0;
  font-size: 1rem;
  border: 0;
  border-bottom: 1px solid var(--color-line-light);
  border-radius: 0;
  background: transparent;
  color: var(--color-ivory);
  color-scheme: dark;
}

.field__control option {
  color: var(--color-charcoal);
}

.field__control:focus-visible {
  outline: 0;
  border-bottom-color: var(--color-ivory);
}

.reserve__submit {
  margin-top: 24px;
  justify-self: start;
}

.reserve__message {
  min-height: 1.9em;
  color: var(--color-ivory);
}

.reserve__note {
  font-size: 0.75rem;
  color: var(--color-muted-on-dark);
}

/* ---------- 動き（4つだけ。「動きを減らす」設定のときは動かさない） ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* 1 オープニング：写真が闇から現れ、文字が静かに順番に出る */
  .hero__img {
    animation: hero-photo 2.4s var(--ease-out) both;
  }

  .hero__eyebrow,
  .hero__atelier,
  .hero__kinu,
  .hero__phrase,
  .hero__sub,
  .hero__cta,
  .hero__scroll {
    animation: hero-text 1.3s var(--ease-out) both;
  }

  .hero__eyebrow { animation-delay: 1.1s; }
  .hero__atelier { animation-delay: 1.4s; }
  .hero__kinu { animation-delay: 1.7s; }
  .hero__phrase:nth-child(1) { animation-delay: 2.6s; }
  .hero__phrase:nth-child(2) { animation-delay: 3.2s; }
  .hero__sub { animation-delay: 3.8s; }
  .hero__cta { animation-delay: 4.2s; }
  .hero__scroll { animation-delay: 4.4s; }

  @keyframes hero-photo {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes hero-text {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* 2 場面転換：オープニングの文字がうすれ、次の場面が覆いかぶさる／写真がカーテンのように開く */
  @supports (animation-timeline: scroll()) {
    .hero__inner {
      animation: hero-leave linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 70vh;
    }

    @keyframes hero-leave {
      to { opacity: 0; transform: translateY(-4vh); }
    }
  }

  @supports (animation-timeline: view()) {
    @media (min-width: 768px) {
      .work__frame {
        animation: frame-open linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
      }

      .work__img {
        animation: photo-settle linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
      }

      @keyframes frame-open {
        from { clip-path: inset(8% 6% 8% 6%); }
        to { clip-path: inset(0); }
      }

      @keyframes photo-settle {
        from { transform: scale(1.06); }
        to { transform: scale(1); }
      }
    }
  }
}
