/* サイト名、言語切替、見出し、カード、ボタンの共通部品を担当する。
   同じ役割は単一クラスで描き、状態差は修飾クラスへ寄せる。 */
.site-name {
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  transition: opacity .35s var(--ease-asagi);
}

.site-name:hover,
.site-name:focus-visible {
  opacity: .72;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px;
  background: rgb(30 58 95 / .58);
}

.language-button {
  position: relative;
  padding: 8px 6px;
  color: rgb(244 239 228 / .66);
  cursor: pointer;
  background: transparent;
  font-size: 13px;
  letter-spacing: .06em;
  transition: color .35s var(--ease-asagi);
}

.language-button::after {
  position: absolute;
  inset-inline: 6px;
  inset-block-end: 3px;
  block-size: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease-asagi);
}

.language-button:hover,
.language-button:focus-visible,
.language-button[aria-pressed="true"] {
  color: var(--color-paper);
}

.language-button[aria-pressed="true"]::after {
  transform: scaleX(1);
}

.language-divider {
  color: rgb(244 239 228 / .44);
}

.vertical-title {
  line-height: 1.6;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

html[lang="en"] .vertical-title {
  line-height: 1.3;
  letter-spacing: .035em;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

/* 英語は見出しが横書きになるため、リード文と横並びにせず縦へ積んで語の幅を確保する。
   flexのままだと見出しが語の最小幅より縮み、単語の途中で折れる。 */
html[lang="en"] .section-heading {
  display: block;
}

html[lang="en"] .section-heading .section-lead {
  margin-block-start: 18px;
}

/* 縦書き見出しの右へ伸びる余白に、章の一字を透かしで置く。細い罫が見出しと透かしを繋ぐ。
   罫は ::after を order で透かしの手前へ送り、余った幅をそのまま埋める。 */
/* リード文を持たない「五つの、してみる。」だけは、見出しと透かしを細い罫で繋いで間を持たせる。 */
.section-heading--experiences::after {
  align-self: center;
  order: 1;
  flex: 1;
  /* 罫の太さ。装飾のため実寸で持つ(例外2)。 */
  block-size: 1px;
  content: "";
  background: linear-gradient(90deg,
    rgb(244 239 228 / 0),
    rgb(244 239 228 / .34) 42%,
    rgb(244 239 228 / .34));
}

.heading-seal {
  align-self: center;
  order: 2;
  margin-inline-start: auto;
  color: rgb(30 58 95 / .07);
  font-family: var(--font-heading);
  font-size: clamp(96px, 15vw, 224px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  user-select: none;
}

.experiences .heading-seal,
.nightfall .heading-seal {
  color: rgb(244 239 228 / .085);
}

/* 英語表示では見出しが横書きになり、右の余白そのものが生まれない。 */
html[lang="en"] .section-heading--experiences::after,
html[lang="en"] .heading-seal {
  display: none;
}

.no-break {
  white-space: nowrap;
}

.hero-title {
  text-shadow: 0 2px 18px rgb(30 58 95 / .62);
}

html[lang="en"] .hero-title {
  display: block;
  min-block-size: 0;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

html[lang="en"] .hero-title-line + .hero-title-line {
  margin-block-start: .08em;
}

.hero-lead {
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 2;
  text-shadow: 0 2px 14px rgb(30 58 95 / .7);
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-block-size: 48px;
  margin-block-start: 30px;
  padding: 12px 24px;
  border: 1px solid currentColor;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color .3s var(--ease-asagi),
    background-color .3s var(--ease-asagi),
    transform .3s var(--ease-asagi);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--light {
  color: var(--color-indigo);
  background: var(--color-paper);
}

.button--light:hover,
.button--light:focus-visible {
  color: var(--color-paper);
  background: var(--color-vermilion);
}

.button--dark {
  color: var(--color-paper);
  background: var(--color-indigo);
}

.button--dark:hover,
.button--dark:focus-visible {
  color: var(--color-indigo);
  background: var(--color-paper);
}

.button-arrow {
  transition: transform .35s var(--ease-asagi);
}

.button:hover .button-arrow,
.button:focus-visible .button-arrow {
  transform: translateX(4px);
}

.section-lead {
  color: var(--color-ink-muted);
  line-height: 2;
  text-wrap: pretty;
}

.reservation .section-lead {
  color: var(--color-paper);
}

.reservation .button--dark {
  color: var(--color-indigo);
  background: var(--color-paper);
}

.reservation .button--dark:hover,
.reservation .button--dark:focus-visible {
  color: var(--color-paper);
  background: var(--color-vermilion);
}

.concept-item {
  padding-block-start: 24px;
  border-block-start: 1px solid var(--color-line);
}

.concept-item h3 {
  line-height: 1.55;
}

.concept-item p {
  margin-block-start: 18px;
  color: var(--color-ink-muted);
  line-height: 2;
}

.experience-card {
  position: relative;
}

.experience-card-link {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--color-paper);
  border-block-end: 1px solid rgb(244 239 228 / .38);
  text-decoration: none;
  transition:
    border-color .3s var(--ease-asagi),
    opacity .3s var(--ease-asagi);
}

.experience-card-link::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(244 239 228 / .22), transparent 55%);
  transform: translateX(-125%);
  transition: transform .8s var(--ease-asagi);
}

.experience-card-link:hover,
.experience-card-link:focus-visible {
  border-color: var(--color-dusk);
}

.experience-card-link:hover::after,
.experience-card-link:focus-visible::after {
  transform: translateX(125%);
}

.experience-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}

.experience-image img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.experience-copy {
  padding-block: 22px 24px;
}

.experience-copy strong,
.experience-copy > span,
.experience-copy em {
  display: block;
}

.experience-copy strong {
  font-family: var(--font-heading);
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.5;
}

.experience-copy > span {
  color: var(--color-paper-muted);
  line-height: 1.8;
}

.experience-copy > span,
.experience-copy em {
  margin-block-start: 12px;
}

.experience-copy em {
  color: var(--color-dusk);
  font-style: normal;
  font-weight: 700;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-block-start: 26px;
}

.slider-button {
  display: inline-grid;
  place-items: center;
  min-inline-size: 46px;
  min-block-size: 46px;
  color: var(--color-paper);
  cursor: pointer;
  border: 1px solid rgb(244 239 228 / .44);
  background: transparent;
  transition:
    color .3s var(--ease-asagi),
    border-color .3s var(--ease-asagi),
    transform .3s var(--ease-asagi);
}

.slider-button:hover,
.slider-button:focus-visible {
  color: var(--color-dusk);
  border-color: var(--color-dusk);
  transform: translateY(-2px);
}

.slider-status {
  color: var(--color-paper-muted);
  font-variant-numeric: tabular-nums;
}

.season-choice {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.1vw, 14px);
  margin-block-start: clamp(28px, 4vw, 44px);
}

.season-button {
  position: relative;
  /* タップ領域の最小44pxを満たす下限。高さは中身に合わせて伸びる。 */
  min-block-size: 44px;
  padding: 10px clamp(13px, 1.6vw, 20px);
  color: var(--color-ink-muted);
  cursor: pointer;
  border: 1px solid var(--color-line);
  background: transparent;
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: .14em;
  transition:
    color .28s var(--ease-asagi),
    border-color .28s var(--ease-asagi),
    transform .28s var(--ease-asagi);
}

.season-button::after {
  position: absolute;
  inset-inline: -1px;
  inset-block-end: -1px;
  /* 選択中を示す下線の太さ。装飾のため実寸で持つ。 */
  block-size: 3px;
  content: "";
  background: var(--season-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s var(--ease-asagi);
}

.season-button:hover,
.season-button:focus-visible {
  color: var(--color-indigo);
  border-color: var(--season-accent);
  transform: translateY(-2px);
}

.season-button[aria-pressed="true"] {
  color: var(--color-indigo);
  border-color: var(--season-accent);
}

.season-button[aria-pressed="true"]::after {
  transform: scaleY(1);
}

.season-word {
  margin-block-start: clamp(18px, 2.4vw, 26px);
  padding-inline-start: .78em;
  border-inline-start: 2px solid var(--season-accent);
  color: var(--color-indigo);
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .14em;
  line-height: 1.5;
  transition: border-color .45s var(--ease-asagi);
}

.season-chime {
  position: absolute;
  z-index: 2;
  inset-block-start: 5%;
  inset-inline-end: 7%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  transition: transform .35s var(--ease-asagi);
  /* タップ領域は見た目より広く持つ(44px以上)。図版は右上へ寄せたまま、当たり判定だけを広げる。 */
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-inline-size: 44px;
  min-block-size: 44px;
}

.season-chime:hover,
.season-chime:focus-visible {
  transform: translateY(3px);
}

/* 江戸風鈴の1枚絵。吊り元を軸にした振り子で揺れる。 */
.season-chime-figure {
  display: block;
  /* 風鈴はアイコン相当の図版。座敷の柱・鴨居との対比で実測した自然な縮尺(座敷の縦幅の約2割)で持つ。 */
  inline-size: clamp(18px, 1.9vw, 30px);
  transform-origin: 50% 1%;
  filter: drop-shadow(0 8px 14px rgb(30 58 95 / .28));
}

.season-chime-figure img {
  inline-size: 100%;
}

/* 光は鈴のあたりから広がる。図版の上から4割ほどが鈴の位置。 */
.season-chime-ring {
  position: absolute;
  inset-block-start: -14%;
  inset-inline: -60%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 38%,
    rgb(255 250 236 / .62) 0 24%,
    rgb(255 250 236 / .18) 46%,
    rgb(255 250 236 / 0) 70%);
}

.season-chime-note {
  position: absolute;
  z-index: 2;
  inset-block-end: 7%;
  inset-inline-end: 6%;
  padding: 7px 13px;
  color: var(--color-paper);
  background: var(--color-indigo);
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: .1em;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity .32s var(--ease-asagi),
    transform .32s var(--ease-asagi);
}

.season-chime-note.is-visible {
  opacity: 1;
  transform: none;
}

html[data-season="spring"] .season-chime,
html[data-season="autumn"] .season-chime,
html[data-season="winter"] .season-chime,
html[data-season="spring"] .season-chime-note,
html[data-season="autumn"] .season-chime-note,
html[data-season="winter"] .season-chime-note {
  display: none;
}

.numbers-label {
  margin-block-end: clamp(22px, 2.6vw, 34px);
  color: var(--color-ink-muted);
  font-family: var(--font-heading);
  letter-spacing: .08em;
  line-height: 2;
}

.number-item {
  padding-block-start: 20px;
  border-block-start: 1px solid var(--color-line);
}

.number-item dt {
  color: var(--color-ink-muted);
  font-size: 14px;
  letter-spacing: .12em;
}

.number-item dd {
  margin: 10px 0 0;
}

.number-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--season-accent);
  font-family: var(--font-heading);
  transition: color .45s var(--ease-asagi);
}

.number-value {
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.number-unit {
  color: var(--color-indigo);
  font-size: clamp(16px, 1.7vw, 20px);
}

.number-note {
  display: block;
  margin-block-start: 8px;
  color: var(--color-ink-muted);
  font-size: 14px;
  line-height: 1.9;
}

.hands-item figure {
  position: relative;
}

.hands-image {
  display: block;
  overflow: hidden;
  /* 正方形写真の表示幅の基準。内在サイズ制御(例外1)で、以降はaspect-ratioが高さを決める。
     下限330pxは640px素材の1/2以上を保つ実測根拠(srcset検査2倍以内)。 */
  inline-size: clamp(330px, 34vw, 460px);
  aspect-ratio: 1;
}

.hands-image img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.hands-item figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-start: 14px;
}

.hands-word {
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: .2em;
}

.hands-item figcaption::after {
  flex: 1;
  /* 語の後ろへ敷く罫線。装飾(例外2)。 */
  block-size: 1px;
  content: "";
  background: var(--color-line);
}

.section-heading--nightfall .section-lead {
  color: var(--color-paper-muted);
}

.nightfall-step {
  padding-block-start: 16px;
  border-block-start: 1px solid rgb(244 239 228 / .34);
}

.nightfall-step time {
  display: block;
  color: var(--color-dusk);
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

.nightfall-step-text {
  display: block;
  margin-block-start: 8px;
  color: var(--color-paper);
  line-height: 1.8;
}

/* 便りを1枚ずつ卓へ置いた見立て。和紙の繊維と縁の陰、わずかな傾きで「置かれた紙」にする。
   傾きと送りは transform ではなく rotate / translate で持つ(reveal演出の transform と重ねるため)。
   短冊ごと縦組みにして、便りを右から起こし、差出人をその左下へ添える。
   こうすると短冊の幅が行数ぶんだけになり、行数の少ない便りの右へ余白が残らない。 */
.voice {
  position: relative;
  margin: 0;
  writing-mode: vertical-rl;
  padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 32px);
  border: 1px solid rgb(30 58 95 / .13);
  background:
    radial-gradient(ellipse 150% 86% at 22% -6%, rgb(255 255 250 / .8), rgb(255 255 250 / 0) 62%),
    linear-gradient(196deg, rgb(255 253 246 / .52), rgb(255 253 246 / 0) 46%),
    var(--washi-grain),
    var(--color-wood);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: auto, auto, 200px 200px, auto;
  box-shadow:
    0 1px 0 rgb(255 255 252 / .62) inset,
    0 20px 32px -26px rgb(30 58 95 / .72);
}

.voice:nth-child(1) {
  rotate: -.9deg;
  translate: 0 12px;
}

.voice:nth-child(2) {
  rotate: .65deg;
  translate: 0 -14px;
}

.voice:nth-child(3) {
  rotate: -.4deg;
  translate: 0 6px;
}

.voice-quote {
  margin: 0;
}

.voice-quote-text {
  /* 縦組みでは inline-size が1行の長さ=柱の高さになる。指定を外すと3枚とも600px超の1本柱になり、
     短冊にならない(実測値による崩れ対策=例外4)。横組みへ替わる英語と狭幅では auto へ戻す。 */
  inline-size: clamp(200px, 24vw, 268px);
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: .1em;
  line-height: 2.1;
  writing-mode: vertical-rl;
  /* 引用は和文のみのため mixed でも全字が正立し、見た目は upright と同じ。
     upright だと1字ずつ別ボックスになり、折返し検査が最終行を誤検知する。 */
  text-orientation: mixed;
}

html[lang="en"] .voice-quote-text {
  inline-size: auto;
  letter-spacing: .02em;
  line-height: 1.9;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

/* 縦組みでは主軸が上下になる。差出人と落款は行末=短冊の下へ寄せ、便りの左に添える。 */
.voice-from {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-block-start: 18px;
  color: var(--color-ink-muted);
  font-size: 13px;
  letter-spacing: .1em;
}

/* 英語は便りごと横組みへ戻るため、差出人も行頭=左下へ戻す。 */
html[lang="en"] .voice,
html[lang="en"] .voice-from {
  writing-mode: horizontal-tb;
}

html[lang="en"] .voice-from {
  justify-content: flex-start;
}

.voice-from::after {
  display: grid;
  place-items: center;
  /* 落款印の見立て。アイコン相当の固定寸法(例外2)。 */
  inline-size: 26px;
  block-size: 26px;
  content: "葱";
  color: var(--color-paper);
  background: var(--color-vermilion);
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1;
}

.quiz {
  position: relative;
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--color-line);
  background:
    radial-gradient(ellipse 120% 80% at 82% 0%, rgb(255 255 252 / .6), rgb(255 255 252 / 0) 56%),
    var(--color-wood);
}

html.js .quiz-panel {
  display: none;
}

html.js .quiz-panel.is-active {
  display: block;
}

.quiz-panel + .quiz-panel {
  margin-block-start: 34px;
}

html.js .quiz-panel + .quiz-panel {
  margin-block-start: 0;
}

.quiz-question {
  font-family: var(--font-heading);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: .08em;
}

.quiz-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-block-start: clamp(18px, 2.4vw, 28px);
}

.quiz-choice {
  /* タップ領域の下限(例外2)。高さは中身に合わせて伸びる。 */
  min-block-size: 64px;
  padding: 16px 18px;
  color: var(--color-indigo);
  cursor: pointer;
  border: 1px solid var(--color-line);
  background: rgb(255 255 252 / .5);
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.7vw, 20px);
  letter-spacing: .1em;
  transition:
    color .28s var(--ease-asagi),
    border-color .28s var(--ease-asagi),
    background-color .28s var(--ease-asagi),
    transform .28s var(--ease-asagi);
}

.quiz-choice:hover,
.quiz-choice:focus-visible {
  color: var(--color-paper);
  border-color: var(--color-indigo);
  background: var(--color-indigo);
  transform: translateY(-2px);
}

/* 体験カードと同じ光走り。選択肢は藍地に変わるため紙色、結果CTAは紙地に変わるため藍色の光にする */
.quiz-choice,
.quiz-actions .button {
  position: relative;
  overflow: hidden;
}

.quiz-choice::after,
.quiz-actions .button::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(244 239 228 / .22), transparent 55%);
  transform: translateX(-125%);
  transition: transform .8s var(--ease-asagi);
}

.quiz-actions .button::after {
  background: linear-gradient(110deg, transparent 30%, rgb(31 42 66 / .14), transparent 55%);
}

.quiz-choice:hover::after,
.quiz-choice:focus-visible::after,
.quiz-actions .button:hover::after,
.quiz-actions .button:focus-visible::after {
  transform: translateX(125%);
}

.quiz-result-title {
  color: var(--season-accent);
  font-family: var(--font-heading);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: .12em;
  transition: color .45s var(--ease-asagi);
}

.quiz-outcome {
  margin-block-start: 20px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--color-line);
}

html.js .quiz-outcome {
  display: none;
}

html.js .quiz-outcome.is-active {
  display: block;
}

.quiz-outcome strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.5;
}

.quiz-outcome-note {
  display: block;
  margin-block-start: 8px;
  color: var(--color-ink-muted);
  line-height: 1.9;
}

.quiz-outcome em {
  display: block;
  margin-block-start: 8px;
  color: var(--color-vermilion);
  font-style: normal;
  font-weight: 700;
}

.quiz-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.quiz-actions .button {
  margin-block-start: 26px;
}

.quiz-again {
  margin-block-start: 26px;
  padding: 10px 4px;
  color: var(--color-ink-muted);
  cursor: pointer;
  background: transparent;
  font-size: 14px;
  letter-spacing: .08em;
  text-decoration: underline;
  text-underline-offset: .3em;
  transition: color .28s var(--ease-asagi);
}

.quiz-again:hover,
.quiz-again:focus-visible {
  color: var(--color-indigo);
}

.okuribi-line {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: .18em;
  line-height: 1.8;
}

.okuribi-sub {
  margin-block-start: 16px;
  color: var(--color-paper-muted);
  letter-spacing: .1em;
}

.footer-brand {
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-size: 21px;
  letter-spacing: .12em;
}

.footer-note {
  font-size: 13px;
  text-align: end;
}
