/* 051 HOTEL YOI ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f7f5fa;
  --c-ink: #1d1726;
  --c-deep: #231a33;
  --c-accent: #8a6bc4;
  --c-accent-light: #c9b6ef;
  --c-accent-text: #5e3f96;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #d9d3e3;
  --font: "Noto Sans JP", sans-serif;
  --font-min: "Shippori Mincho", serif;
  --font-en: "Cormorant Garamond", serif;
  --toc-w: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 2; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.en { font-family: var(--font-en); font-weight: 600; font-size: 18px; letter-spacing: .24em; text-transform: uppercase; color: var(--c-accent-text); margin-bottom: 8px; }
.h2 { font-family: var(--font-min); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.55; color: var(--c-ink); letter-spacing: .06em; }
.sec-head { margin-bottom: 40px; }
.sec-head__lead { margin-top: 12px; }
.sec-head--light .en { color: var(--c-accent-light); }
.sec-head--light .h2 { color: #fff; }
.note { margin-top: 24px; font-size: 15px; color: var(--c-sub); }
.note--light { color: #d6cde6; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; font-weight: 700; font-size: 15px; letter-spacing: .08em; text-decoration: none; white-space: nowrap; flex: none; border-radius: 0; transition: background-color .3s, color .3s; }
.btn--accent { background: var(--c-accent-text); color: #fff; }
.btn--accent:hover, .btn--accent:focus-visible { background: var(--c-ink); }
.btn--light { background: var(--c-accent-light); color: var(--c-ink); min-height: 56px; padding: 0 40px; }
.btn--light:hover, .btn--light:focus-visible { background: #fff; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; background: rgba(247, 245, 250, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.logo { display: flex; align-items: baseline; gap: 6px; min-height: 44px; align-items: center; font-family: var(--font-en); font-weight: 600; font-size: 28px; letter-spacing: .2em; color: var(--c-ink); text-decoration: none; white-space: nowrap; flex: none; }
.logo small { font-size: 15px; letter-spacing: .3em; color: var(--c-accent-text); }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 18px; }
@media (min-width: 1080px) {
  .header__inner { height: 76px; padding: 0 48px; }
  .gnav { display: flex; gap: 32px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; font-family: var(--font-en); font-weight: 600; font-size: 18px; letter-spacing: .14em; text-decoration: none; color: var(--c-ink); }
  .gnav a:hover { color: var(--c-accent-text); }
  .header__btn { margin-left: 8px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--c-ink); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--c-deep); padding: 8px 20px 24px; display: flex; flex-direction: column; z-index: 2; }
.spmenu__nav a { display: flex; align-items: center; min-height: 56px; color: #fff; text-decoration: none; font-family: var(--font-min); font-weight: 700; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* B09 のスマホ版：いまの区切りの名前（JSのときだけ） */
.now { display: none; }
.js .now { display: flex; gap: 12px; align-items: center; height: 36px; padding: 0 20px; background: var(--c-deep); color: var(--c-accent-light); font-family: var(--font-en); font-weight: 600; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; }
.now span:first-child { color: #fff; }
@media (min-width: 1080px) { .js .now { display: none; } }

/* ===== 演出②（B09）：左の目次 ===== */
.toc { display: none; }
@media (min-width: 1080px) {
  :root { --toc-w: 168px; }
  .toc { display: block; position: fixed; z-index: 40; left: 36px; top: 50%; transform: translateY(-50%); --toc-fg: var(--c-ink); --toc-sub: var(--c-sub); transition: color .4s; }
  .toc a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding-left: 22px; font-family: var(--font-en); font-weight: 600; font-size: 18px; letter-spacing: .14em; text-decoration: none; color: var(--toc-sub); transition: color .4s; }
  .toc a span { font-size: 15px; letter-spacing: .1em; }
  .toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: currentColor; transition: width .4s, background-color .4s; }
  .toc a:hover, .toc a[aria-current="true"] { color: var(--toc-fg); }
  .toc a[aria-current="true"]::before { width: 16px; height: 2px; background: var(--c-accent); }
  .toc ol { border-left: 1px solid transparent; }
  .toc.is-dark { --toc-fg: #fff; --toc-sub: #d6cde6; }
}

/* ===== 演出①（A04）：ロゴだけの幕 ===== */
.curtain { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: var(--c-deep); pointer-events: none; }
.curtain[hidden] { display: none; }
.curtain__logo { display: flex; flex-direction: column; align-items: center; font-family: var(--font-en); font-weight: 600; font-size: clamp(72px, 14vw, 168px); line-height: 1; letter-spacing: .24em; color: #fff; transform-origin: 0 0; padding-left: .24em; }
.curtain__logo small { font-size: .2em; letter-spacing: .5em; color: var(--c-accent-light); margin-bottom: .3em; }

/* ===== メインビジュアル ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 20px 96px; background: var(--c-deep); overflow: hidden; color: #fff; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 30, .15) 30%, rgba(20, 14, 30, .85)); }
.hero__copy { position: relative; z-index: 1; }
.hero__en { font-family: var(--font-en); font-weight: 600; font-size: 18px; letter-spacing: .24em; text-transform: uppercase; color: var(--c-accent-light); }
.hero__title { font-family: var(--font-min); font-weight: 700; font-size: clamp(32px, 5vw, 68px); line-height: 1.5; letter-spacing: .06em; margin: 12px 0 16px; }
.hero__lead { font-size: 16px; color: #ece8f3; }
.hero__scroll { position: absolute; z-index: 1; right: 20px; bottom: 28px; font-family: var(--font-en); font-weight: 600; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; writing-mode: vertical-rl; color: #ece8f3; }
@media (min-width: 1080px) { .hero { padding: 160px 8vw 120px calc(var(--toc-w) + 6vw); } .hero__scroll { right: 48px; } }

/* ===== コンセプト ===== */
.concept { padding: 96px 20px; }
.concept__inner { display: grid; gap: 32px; max-width: 1180px; margin: 0 auto; }
.concept__text p:not(.en) { margin-top: 16px; }
.concept__text .h2 { margin-bottom: 8px; }
.concept__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.concept__sub { width: 56%; margin: -88px 0 0 auto; border: 8px solid var(--c-bg); }
.concept__sub img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
@media (min-width: 1080px) {
  .concept { padding: 160px 6vw 160px calc(var(--toc-w) + 4vw); }
  .concept__inner { grid-template-columns: 5fr 6fr; grid-template-rows: auto auto; gap: 0 6vw; align-items: start; }
  .concept__text { grid-row: 1 / 3; padding-top: 40px; }
  .concept__photo { grid-column: 2; }
  .concept__sub { grid-column: 2; width: 40%; margin: -120px 0 0 -12%; }
}

/* ===== 演出③（C03）：ホテルの一日 ===== */
.day { position: relative; background: var(--c-bg); transition: background-color .2s; }
.day__head { padding: 96px 20px 32px; }
.panel { background: var(--bg); padding: 0 20px 64px; --fg: var(--c-ink); --fg-text: var(--c-text); --fg-time: var(--c-accent-text); }
.panel[data-tone="dark"] { --fg: #fff; --fg-text: #e9e4f2; --fg-time: var(--c-accent-light); }
.panel:nth-child(3) { --fg-text: var(--c-ink); --fg-time: var(--c-ink); }
.panel:not(:first-child) { padding-top: 64px; }
.panel__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.panel__text { margin-top: 24px; }
.panel__time { font-family: var(--font-en); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: .08em; color: var(--fg-time); }
.panel h3 { font-family: var(--font-min); font-weight: 700; font-size: 24px; line-height: 1.6; color: var(--fg); margin: 12px 0; }
.panel p:not(.panel__time) { color: var(--fg-text); }
.day__progress { display: none; }
@media (min-width: 1080px) {
  .day__head { padding: 160px 6vw 48px calc(var(--toc-w) + 4vw); }
  .panel { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; padding: 72px 6vw 72px calc(var(--toc-w) + 4vw); }
  .panel__text { margin-top: 0; }
  .panel__time { font-size: 64px; }
  .panel h3 { font-size: 28px; }
}
/* 動く版（PC）：区画を止めて横に流し、背景を白→灰→黒に */
.is-motion-pc .day__pin { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.is-motion-pc .day__head { padding: 112px 6vw 0 calc(var(--toc-w) + 4vw); flex: none; }
.is-motion-pc .day__head .en, .is-motion-pc .day__head .h2 { transition: color .4s; }
.is-motion-pc .day.is-dark .day__head .en { color: var(--c-accent-light); }
.is-motion-pc .day.is-dark .day__head .h2 { color: #fff; }
.is-motion-pc .day__view { flex: 1; display: flex; align-items: center; margin-left: calc(var(--toc-w) + 2vw); overflow: hidden; }
.is-motion-pc .day__track { display: flex; align-items: center; width: max-content; padding-left: 2vw; }
.is-motion-pc .panel { background: transparent; width: 72vw; flex: none; padding: 0 6vw 0 0; grid-template-columns: 3fr 2fr; }
.is-motion-pc .panel__img { aspect-ratio: auto; height: 52vh; }
/* 文字の板は自分の場面の色。背景がその色になると板は見えなくなり、途中では色の板として見える */
.is-motion-pc .panel__text { background: var(--bg); padding: 32px; }
.is-motion-pc .day__progress { display: flex; align-items: center; gap: 16px; flex: none; padding: 0 6vw 40px calc(var(--toc-w) + 4vw); font-family: var(--font-en); font-weight: 600; font-size: 18px; letter-spacing: .14em; color: var(--c-ink); transition: color .4s; }
.is-motion-pc .day.is-dark .day__progress { color: #fff; }
.day__line { position: relative; width: 240px; height: 1px; background: currentColor; opacity: .9; }
.day__line span { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--c-accent); transform-origin: 0 50%; transform: scaleX(.2); }

/* ===== 客室 ===== */
.rooms { padding: 96px 20px; }
.rooms__list { display: grid; gap: 40px; }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room__body { padding-top: 16px; border-bottom: 1px solid var(--c-line); padding-bottom: 16px; }
.room h3 { font-family: var(--font-min); font-weight: 700; font-size: 22px; color: var(--c-ink); }
.room p { color: var(--c-sub); }
.room__price { font-family: var(--font-min); font-weight: 700; color: var(--c-accent-text) !important; }
@media (min-width: 768px) { .rooms__list { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (min-width: 1080px) { .rooms { padding: 160px 6vw 160px calc(var(--toc-w) + 4vw); } .room:nth-child(2) { margin-top: 64px; } .room:nth-child(3) { margin-top: 128px; } }

/* ===== プラン（宵の紫） ===== */
.plans { position: relative; padding: 96px 20px; background: var(--c-deep); color: #e9e4f2; overflow: hidden; }
.plans::before { content: ""; position: absolute; inset: 0; background: url("images/bar.webp") center / cover; opacity: .18; }
.plans > * { position: relative; }
.plans__list { display: grid; gap: 20px; }
.plan { border: 1px solid rgba(201, 182, 239, .45); padding: 32px 24px; background: rgba(35, 26, 51, .88); }
.plan__en { font-family: var(--font-en); font-weight: 600; font-size: 18px; letter-spacing: .2em; color: var(--c-accent-light); }
.plan h3 { font-family: var(--font-min); font-weight: 700; font-size: 22px; color: #fff; margin: 4px 0 12px; }
.plan__price { margin-top: 16px; font-family: var(--font-min); font-weight: 700; color: #fff; }
.plans__cta { margin-top: 40px; text-align: center; }
@media (min-width: 768px) { .plans__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .plans { padding: 160px 6vw 160px calc(var(--toc-w) + 4vw); } .plan { padding: 48px 40px; } }

/* ===== アクセス ===== */
.access { padding: 96px 20px; }
.access__inner { display: grid; gap: 32px; }
.access__map { position: relative; aspect-ratio: 4 / 3; background:
  linear-gradient(90deg, transparent 49.6%, #d9d3e3 49.6% 50.4%, transparent 50.4%) 0 0 / 80px 80px,
  linear-gradient(0deg, transparent 49.6%, #d9d3e3 49.6% 50.4%, transparent 50.4%) 0 0 / 80px 80px, #eeeaf4; }
.access__map span { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--c-accent-text); box-shadow: 0 0 0 10px rgba(138, 107, 196, .25); }
.access__dl { display: grid; grid-template-columns: 7em 1fr; }
.access__dl dt, .access__dl dd { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.access__dl dt { font-weight: 700; color: var(--c-ink); }
@media (min-width: 1080px) { .access { padding: 160px 6vw 160px calc(var(--toc-w) + 4vw); } .access__inner { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

/* ===== フッター ===== */
.footer { background: var(--c-deep); color: #e9e4f2; padding: 64px 20px 32px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-en); font-weight: 600; font-size: 40px; letter-spacing: .24em; color: #fff; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.footer__logo small { font-size: 15px; letter-spacing: .4em; color: var(--c-accent-light); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 24px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { color: #d6cde6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
