@charset "UTF-8";
/* ============================================================
   style.css — IL PALAZZO ふたりのしおり
   方向: エディトリアル×イタリアン・ポストモダン
   色はアルド・ロッシのファサード(赤トラバーチン×緑青)由来
   構成: 1.トークン → 2.リセット/ベース → 3.レイアウト
        → 4.コンポーネント → 5.モーション → 6.停止ポリシー
   ============================================================ */

/* ---------- 1. トークン ---------- */
:root {
  --color-bg: #f5f0e6;            /* 生成り(客室の白基調) */
  --color-surface: #fdfbf5;       /* 面 */
  --color-text: #26211c;          /* 墨 */
  --color-muted: #75695c;         /* 補助テキスト */
  --color-accent: #a3472f;        /* トラバーチン赤(列柱) */
  --color-accent-ink: #fdfbf5;    /* accent上の文字色 */
  --color-green: #4a7a6d;         /* 緑青(梁) */
  --color-gold: #b98f4e;          /* 鈍い金(受賞の品格) */
  --color-line: #ddd4c2;          /* 罫線 */
  --color-night: #211c17;         /* 夜セクションの地 */
  --color-night-text: #efe8da;    /* 夜セクションの文字 */
  --color-void: #302620;          /* ファサードの陰(柱の間) */

  --font-display-en: "Marcellus", "Times New Roman", serif;
  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --space: 8px;
  --section-pad: clamp(64px, 12vw, 140px);
  --container: 1120px;
  --container-narrow: 720px;
  --radius: 2px;

  --z-header: 100;
  --z-nav: 200;
  --z-modal: 1000;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.8s;
}

/* ---------- 2. リセット/ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img, video, svg { max-width: 100%; display: block; }
img, video { height: auto; }

a { color: inherit; }
a:hover { opacity: 0.7; transition: opacity 0.3s; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* ---------- 3. レイアウト ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(var(--container-narrow), 100% - 48px); margin-inline: auto; }

.section { padding-block: var(--section-pad); }

/* セクション見出し: 緑青の梁を1本敷く(ファサードの水平線) */
.section-head { margin-bottom: calc(var(--space) * 7); }
.section-head__en {
  display: block;
  font-family: var(--font-display-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: calc(var(--space) * 2);
}
.section-head__en::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: calc(var(--space) * 1.5);
  background: var(--color-green);
}
.section-head__title { font-size: clamp(28px, 4.5vw, 44px); }

.text-link {
  color: var(--color-accent);
  text-decoration-color: color-mix(in srgb, var(--color-accent) 50%, transparent);
  text-underline-offset: 4px;
}

/* ---------- 4. コンポーネント ---------- */

/* ヘッダー */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(20px, 4vw, 48px);
  transition: background 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-line);
}
.site-header__logo {
  font-family: var(--font-display-en);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.site-header__logo-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  margin-left: 0.6em;
}

.global-nav ul { display: flex; gap: calc(var(--space) * 4); list-style: none; padding: 0; }
.global-nav a { text-decoration: none; font-size: 14px; letter-spacing: 0.08em; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  position: relative; z-index: calc(var(--z-nav) + 1);
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: var(--color-text); transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; inset: 0; z-index: var(--z-nav);
    background: var(--color-bg);
    display: grid; place-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; text-align: center; gap: calc(var(--space) * 4); }
  .global-nav a { font-size: 20px; }
}

/* ヒーロー */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--space) * 14) 0 calc(var(--space) * 8);
}
.hero__inner { text-align: center; }

.hero__date {
  font-family: var(--font-display-en);
  font-size: clamp(14px, 2.4vw, 18px);
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-top: calc(var(--space) * 6);
}
.hero__date-dow { font-size: 0.72em; letter-spacing: 0.3em; color: var(--color-muted); }

.hero__title { margin-top: calc(var(--space) * 3); }
.hero__title-en {
  display: block;
  font-family: var(--font-display-en);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 104px);
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.hero__title-ja {
  display: block;
  font-size: clamp(15px, 2.6vw, 20px);
  letter-spacing: 0.28em;
  color: var(--color-muted);
  margin-top: calc(var(--space) * 2);
}

/* カウントダウン */
.countdown { margin-top: calc(var(--space) * 6); }
.countdown__label {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--color-muted);
}
.countdown__timer {
  display: flex; justify-content: center; align-items: baseline;
  gap: clamp(12px, 3vw, 28px);
  margin-top: calc(var(--space) * 1);
}
.countdown__unit b {
  font-family: var(--font-display-en);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 52px);
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.countdown__unit small {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-left: 4px;
}
.countdown.is-message .countdown__timer { display: none; }
.countdown.is-message .countdown__label {
  font-family: var(--font-display);
  font-size: clamp(18px, 3.4vw, 24px);
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

.hero__scroll {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: calc(var(--space) * 1);
  margin-top: calc(var(--space) * 7);
  text-decoration: none;
}
.hero__scroll-text { font-size: 11px; letter-spacing: 0.3em; color: var(--color-muted); }
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(var(--color-accent), transparent);
  animation: scrollPulse 2.4s var(--ease-out) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ファサード立面図(シグネチャー) */
.facade { width: min(560px, 82vw); margin-inline: auto; }
.facade__cornice {
  height: clamp(8px, 1.8vw, 12px);
  background: var(--color-green);
  margin-bottom: clamp(3px, 0.7vw, 5px);
}
.facade__body {
  position: relative;
  height: clamp(150px, 30vw, 220px);
  background: var(--color-void);
  overflow: hidden;
}
.facade__beams { position: absolute; inset: 0; }
.facade__beam {
  position: absolute; left: 0; right: 0;
  top: calc(var(--r) * 20% + 10% - clamp(3px, 0.8vw, 5px));
  height: clamp(6px, 1.6vw, 10px);
  background: var(--color-green);
}
.facade__cols {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between;
}
.facade__col {
  width: clamp(14px, 3.4vw, 24px);
  height: 100%;
  background: var(--color-accent);
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.18);
}
.facade__steps {
  display: grid; gap: clamp(2px, 0.5vw, 4px);
  margin-top: clamp(3px, 0.7vw, 5px);
}
.facade__steps span {
  height: clamp(5px, 1.2vw, 8px);
  background: var(--color-line);
  justify-self: center;
  width: 100%;
}
.facade__steps span:nth-child(2) { width: 94%; }
.facade__steps span:nth-child(3) { width: 88%; }

/* 写真カット: 緑青の梁を1本のせて「額装」する */
.photo { margin: calc(var(--space) * 8) 0 0; }
.photo img {
  width: 100%;
  height: auto;
  border-top: 4px solid var(--color-green);
}
.photo--cover img {
  height: clamp(240px, 38vw, 420px);
  object-fit: cover;
}
.photo__caption {
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: calc(var(--space) * 1.5);
}
.photo--night { margin-bottom: calc(var(--space) * 7); }
.photo--night img { border-top-color: var(--color-gold); }
.photo--night .photo__caption { color: rgba(239, 232, 218, 0.55); }

/* このホテルについて */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--space) * 6);
}
.about__vertical {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 26px);
  letter-spacing: 0.3em;
  color: var(--color-gold);
  writing-mode: vertical-rl;
  line-height: 1;
  white-space: nowrap;
}
.about__main > p + p { margin-top: calc(var(--space) * 3); }
.about__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--space) * 3);
  margin-top: calc(var(--space) * 7);
}
.about__stat {
  border-top: 3px solid var(--color-green);
  padding-top: calc(var(--space) * 2);
}
.about__stat dt {
  font-family: var(--font-display-en);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.2;
  color: var(--color-accent);
}
.about__stat dd { margin: 0; font-size: 14px; color: var(--color-muted); }

@media (min-width: 768px) {
  .about__grid { grid-template-columns: auto 1fr; gap: clamp(48px, 8vw, 120px); }
  .about__vertical { order: 2; justify-self: end; }
  .about__main { order: 1; max-width: 640px; }
  .about__stats { grid-template-columns: repeat(3, 1fr); gap: calc(var(--space) * 4); }
}

/* タイムライン(しおり) */
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: var(--color-line);
}
.timeline__item {
  position: relative;
  padding-left: calc(var(--space) * 5);
}
.timeline__item + .timeline__item { margin-top: calc(var(--space) * 6); }
/* マーカー: 列柱のミニチュア(赤い柱+緑の梁) */
.timeline__item::before {
  content: "";
  position: absolute;
  left: 3px; top: 8px;
  width: 9px; height: 18px;
  background: var(--color-accent);
  box-shadow: 0 -4px 0 0 var(--color-green);
}
.timeline__time {
  display: block;
  font-family: var(--font-display-en);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  line-height: 1.4;
}
.timeline__time i { font-style: normal; font-size: 0.7em; color: var(--color-muted); margin-left: 0.3em; }
.timeline__title { font-size: clamp(19px, 2.8vw, 24px); margin-top: calc(var(--space) * 0.5); }
.timeline__note { color: var(--color-muted); font-size: 15px; margin-top: calc(var(--space) * 1); max-width: 36em; }

@media (min-width: 768px) {
  .timeline::before { left: 128px; }
  .timeline__item {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: calc(var(--space) * 6);
    padding-left: 0;
  }
  .timeline__item::before { left: 124px; }
  .timeline__time { text-align: right; }
}

/* 夜の分岐(破調: フルブリード反転) */
.night {
  background: var(--color-night);
  color: var(--color-night-text);
  padding-block: var(--section-pad);
  /* 屋台の提灯とネオンの気配をにじませる */
  background-image:
    radial-gradient(420px 260px at 82% 12%, rgba(185, 143, 78, 0.14), transparent 70%),
    radial-gradient(360px 240px at 12% 88%, rgba(74, 122, 109, 0.16), transparent 70%);
}
.section-head--night .section-head__en { color: var(--color-gold); }
.section-head--night .section-head__en::after { background: var(--color-gold); }
.section-head--night .section-head__title { color: var(--color-night-text); }

.night__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--space) * 3);
}
.night-card {
  border: 1px solid rgba(239, 232, 218, 0.18);
  border-top-width: 4px;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(253, 251, 245, 0.03);
  transition: transform 0.4s var(--ease-out), background 0.4s;
}
@media (hover: hover) {
  .night-card:hover { transform: translateY(-6px); background: rgba(253, 251, 245, 0.06); }
}
.night-card--sunny { border-top-color: var(--color-gold); }
.night-card--rainy { border-top-color: var(--color-green); }
.night-card__icon { width: 48px; height: 48px; }
.night-card--sunny .night-card__icon { color: var(--color-gold); }
.night-card--rainy .night-card__icon { color: var(--color-green); }
.night-card__if {
  font-size: 12px;
  letter-spacing: 0.3em;
  margin-top: calc(var(--space) * 3);
  color: rgba(239, 232, 218, 0.66);
}
.night-card__title {
  font-size: clamp(20px, 3vw, 26px);
  color: var(--color-night-text);
  margin-top: calc(var(--space) * 1);
}
.night-card__note {
  font-size: 15px;
  color: rgba(239, 232, 218, 0.75);
  margin-top: calc(var(--space) * 2);
}
.night__footnote {
  margin-top: calc(var(--space) * 6);
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(239, 232, 218, 0.6);
}
@media (min-width: 768px) {
  .night__cards { grid-template-columns: 1fr 1fr; gap: calc(var(--space) * 4); }
}

/* 結び */
.closing__inner { text-align: center; }
.closing__mark {
  display: flex; justify-content: center; gap: 6px;
  margin-bottom: calc(var(--space) * 4);
}
.closing__mark span {
  width: 8px; height: 26px;
  background: var(--color-accent);
  box-shadow: 0 -5px 0 0 var(--color-green);
}
.closing__title { font-size: clamp(26px, 4vw, 38px); }
.closing__message {
  margin-top: calc(var(--space) * 4);
  font-family: var(--font-display);
  font-size: clamp(16px, 2.4vw, 19px);
  letter-spacing: 0.08em;
}
.closing__access {
  margin-top: calc(var(--space) * 8);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  font-size: 14px;
  color: var(--color-muted);
}
.closing__access-title {
  font-family: var(--font-display-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  margin-bottom: calc(var(--space) * 2);
}
.closing__access p + p { margin-top: calc(var(--space) * 2); }

/* フッター */
.site-footer {
  padding: calc(var(--space) * 8) 0 calc(var(--space) * 4);
  border-top: 1px solid var(--color-line);
  font-size: 13px; color: var(--color-muted);
  text-align: center;
}

/* ---------- 5. モーション ---------- */

/* スクロールリビール基盤(starter準拠) */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.js-reveal.is-inview { opacity: 1; transform: none; }
.js-reveal[data-delay="1"] { transition-delay: 0.1s; }
.js-reveal[data-delay="2"] { transition-delay: 0.2s; }
.js-reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ヒーローのロードシーケンス: 列柱が立ち、梁が渡り、文字が出る */
.facade__col { transform: scaleY(0); transform-origin: bottom; }
.facade__beam, .facade__cornice { transform: scaleX(0); }
.facade__steps span { opacity: 0; }
.hero__date, .hero__title, .countdown, .hero__scroll { opacity: 0; }

.is-loaded .facade__col {
  animation: colRise 0.7s var(--ease-out) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.06s);
}
.is-loaded .facade__beam {
  animation: beamSpan 0.7s var(--ease-out) forwards;
  animation-delay: calc(0.65s + var(--r) * 0.07s);
}
.is-loaded .facade__cornice { animation: beamSpan 0.6s var(--ease-out) 1s forwards; }
.is-loaded .facade__steps span { animation: fadeUp 0.6s var(--ease-out) 1.1s forwards; }
.is-loaded .hero__date   { animation: fadeUp 0.8s var(--ease-out) 1.15s forwards; }
.is-loaded .hero__title  { animation: fadeUp 0.8s var(--ease-out) 1.3s forwards; }
.is-loaded .countdown    { animation: fadeUp 0.8s var(--ease-out) 1.5s forwards; }
.is-loaded .hero__scroll { animation: fadeUp 0.8s var(--ease-out) 1.7s forwards; }

@keyframes colRise  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes beamSpan { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 6. モーション停止(SKILL.mdのポリシー実装。削除禁止) ---------- */
.motion-stop {
  display: none;
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-modal);
  padding: 10px 16px; font-size: 12px;
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: 999px; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .motion-stop { display: block; }
}
html.is-motion-off .js-reveal,
html.is-motion-off *[class] {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
}
html.is-motion-off .js-reveal { opacity: 1; transform: none; }
html.is-motion-off .facade__col { transform: scaleY(1); }
html.is-motion-off .facade__beam, html.is-motion-off .facade__cornice { transform: scaleX(1); }
html.is-motion-off .facade__steps span,
html.is-motion-off .hero__date,
html.is-motion-off .hero__title,
html.is-motion-off .countdown,
html.is-motion-off .hero__scroll { opacity: 1; }
