@charset "utf-8";
/* =========================
   ベース
========================= */
:root {
  --forest: #17352c;
  --forest-deep: #0d211b;
  --ivory: #f5f1e8;
  --cream: #ebe4d4;
  --gold: #b89a63;
  --ink: #1d231f;
  --muted: #6d716b;
  --line: rgba(29, 35, 31, 0.14);

  --font-en: "Cormorant Garamond", serif;
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;

  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

/* =========================
   共通パーツ
========================= */
.section {
  padding: clamp(96px, 14vw, 180px) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.section-head--left {
  align-items: flex-start;
  text-align: left;
}

.section-num {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-num::before,
.section-num::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-head--left .section-num::after {
  display: none;
}

.section-title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-top: 18px;
  color: var(--forest);
}

.section-sub {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  margin-top: 14px;
}

.section-head--light .section-title {
  color: var(--ivory);
}

.section-head--light .section-sub {
  color: rgba(245, 241, 232, 0.6);
}

/* ボタン */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 16px 32px;
  font-family: var(--font-en);
  font-size: 17px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn--light {
  background: var(--ivory);
  color: var(--forest);
}

.btn--light::before {
  background: var(--gold);
}

.btn--light:hover {
  color: #fff;
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn--ghost::before {
  background: #fff;
}

.btn--ghost:hover {
  color: var(--forest);
}

/* スクロール表示 */
.js .reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================
   ヘッダー
========================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  transition: background 0.5s var(--ease), height 0.5s var(--ease), color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.header.is-scrolled {
  --header-h: 68px;
  background: var(--ivory); /* ロゴを乗算でなじませるため不透明に */
  color: var(--forest);
  box-shadow: 0 1px 0 var(--line);
}

.header__logo {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}

/* ロゴはJPG（白背景）なので乗算で背景になじませる */
.header__logo img {
  height: 44px;
  width: auto;
  mix-blend-mode: multiply;
}

/* スクロール後（明るい背景）だけヘッダーにロゴを表示 */
.header.is-scrolled .header__logo {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.header__nav ul {
  display: flex;
  gap: clamp(24px, 3.5vw, 52px);
}

.header__nav a {
  position: relative;
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.header__nav a:hover::after,
.header__nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ハンバーガー */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  z-index: 1100;
}

.burger span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}

.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }

.burger.is-active { color: var(--ivory); }
.burger.is-active span:nth-child(1) { top: 22px; transform: rotate(25deg); }
.burger.is-active span:nth-child(2) { top: 22px; transform: rotate(-25deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12%;
  background: var(--forest-deep);
  color: var(--ivory);
  clip-path: circle(0% at calc(100% - 42px) 42px);
  transition: clip-path 0.8s var(--ease);
  visibility: hidden;
}

.drawer.is-active {
  clip-path: circle(150% at calc(100% - 42px) 42px);
  visibility: visible;
}

.drawer li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.drawer.is-active li {
  opacity: 1;
  transform: none;
}

.drawer.is-active li:nth-child(1) { transition-delay: 0.20s; }
.drawer.is-active li:nth-child(2) { transition-delay: 0.28s; }
.drawer.is-active li:nth-child(3) { transition-delay: 0.36s; }
.drawer.is-active li:nth-child(4) { transition-delay: 0.44s; }

.drawer a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--font-en);
  font-size: 44px;
  line-height: 1.2;
}

.drawer small {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.drawer .drawer__tel {
  margin-top: 48px;
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--gold);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background: var(--forest-deep);
}

.hero__slides {
  position: absolute;
  inset: -6% 0 0 0;
  will-change: transform;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 1.8s ease, transform 8s linear;
}

.hero__img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 20, 16, 0.55) 0%, rgba(8, 20, 16, 0.1) 35%, rgba(8, 20, 16, 0.2) 60%, rgba(8, 20, 16, 0.75) 100%);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  left: clamp(20px, 7vw, 120px);
  bottom: clamp(96px, 14vh, 150px);
  max-width: 900px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero__eyebrow span {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  margin-top: 28px;
  line-height: 0;
}

.hero__title img {
  width: clamp(260px, 38vw, 540px);
  height: auto;
  opacity: 0;
  animation: fade 1.6s var(--ease) 0.25s forwards;
}

/* =========================
   白抜きロゴ
   白背景のJPGを「反転＋スクリーン合成」で
   白いロゴ・透明背景のように見せる
========================= */
.logo-white {
  filter: grayscale(1) invert(1) contrast(1.6) brightness(1.15);
  mix-blend-mode: screen;
}

.hero__eyebrow,
.hero__lead,
.hero__actions {
  opacity: 0;
  animation: fade 1.4s var(--ease) forwards;
}

.hero__eyebrow { animation-delay: 0.1s; }
.hero__lead { animation-delay: 0.6s; }
.hero__actions { animation-delay: 0.8s; }

@keyframes fade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.2em;
  margin-top: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* スライドインジケーター */
.hero__pager {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(96px, 14vh, 150px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__pager button {
  position: relative;
  width: 2px;
  height: 36px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.hero__pager button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleY(0);
  transform-origin: top;
}

.hero__pager button.is-active::after {
  animation: progress var(--slide-duration, 6s) linear forwards;
}

@keyframes progress {
  to { transform: scaleY(1); }
}

/* スクロール誘導 */
.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__scroll i {
  position: relative;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scrollLine 2.2s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* =========================
   ABOUT
========================= */
.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.about__lead {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 2.3;
  letter-spacing: 0.12em;
  color: var(--forest);
  position: sticky;
  top: 140px;
}

.about__notes {
  display: flex;
  flex-direction: column;
}

.note {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.note:last-child {
  border-bottom: 1px solid var(--line);
}

.note__num {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.note__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--forest);
  margin: 8px 0 16px;
}

.note p {
  font-size: 15px;
  color: #454b46;
}

/* =========================
   MENU
========================= */
.menu {
  position: relative;
  background: var(--forest-deep);
  color: var(--ivory);
  overflow: hidden;
}

/* 背景にうっすら大きい文字 */
.menu::before {
  content: "Trattoria";
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(120px, 22vw, 340px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
}

.menu .container {
  position: relative;
}

.menu__tabs {
  position: relative;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 72px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.18);
}

.menu__tab {
  width: clamp(96px, 14vw, 150px);
  padding: 12px 0;
  font-family: var(--font-en);
  font-size: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.45);
  transition: color 0.4s var(--ease);
}

.menu__tab:hover,
.menu__tab.is-active {
  color: var(--ivory);
}

.menu__tab-bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.6s var(--ease), width 0.6s var(--ease);
}

.menu__panel {
  columns: 2;
  column-gap: clamp(48px, 8vw, 110px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.menu__panel.is-switching {
  opacity: 0;
  transform: translateY(16px);
}

.menu-cat {
  break-inside: avoid;
  margin-bottom: 64px;
}

.menu-cat__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(184, 154, 99, 0.4);
}

.menu-cat__en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--cream);
}

.menu-cat__ja {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.menu-group {
  margin: 22px 0 6px;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold);
}

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
}

.menu-row__name {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.menu-row__desc {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(245, 241, 232, 0.55);
  letter-spacing: 0.05em;
  line-height: 1.7;
  margin-top: 2px;
}

/* 点線リーダー */
.menu-row__dots {
  flex: 1;
  min-width: 24px;
  border-bottom: 1px dotted rgba(245, 241, 232, 0.25);
  transform: translateY(-5px);
}

.menu-row__price {
  font-family: var(--font-en);
  font-size: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--cream);
}

.menu-row__price.is-text {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(245, 241, 232, 0.6);
}

.menu-cat__foot {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.55);
}

.menu__note {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.5);
}

/* =========================
   SCHEDULE
========================= */
.schedule__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}

.calendar__label {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--forest);
  margin-bottom: 16px;
}

.calendar__frame {
  background: #fff;
  padding: 12px;
  box-shadow: 0 30px 60px -30px rgba(23, 53, 44, 0.25);
}

.calendar iframe {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
}

.calendar:nth-child(2) {
  transition-delay: 0.15s;
}

/* =========================
   INFORMATION
========================= */
.info {
  background: var(--cream);
}

.info__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.info__list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.info__list > div:first-child {
  border-top: 1px solid var(--line);
}

.info__list dt {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 3px;
}

.info__list dd {
  font-size: 15px;
  line-height: 1.9;
}

.info__list a {
  font-family: var(--font-en);
  font-size: 24px;
  color: var(--forest);
  border-bottom: 1px solid currentColor;
}

.info__map {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(23, 53, 44, 0.45);
}

.info__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.6) contrast(1.05);
  transition: filter 0.6s var(--ease);
}

.info__map:hover iframe {
  filter: none;
}

/* =========================
   フッター
========================= */
.footer {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background: var(--forest-deep);
  text-align: center;
}

.footer__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.footer__inner {
  position: relative;
  padding: 120px 20px 40px;
}

.footer__logo {
  display: block;
  width: clamp(220px, 30vw, 380px);
  height: auto;
  margin: 0 auto;
}

.footer__copy {
  margin-top: 64px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(245, 241, 232, 0.5);
}

/* =========================
   スマホ
========================= */
@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }

  .header__nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .header__logo img {
    height: 38px;
  }

  .hero__content {
    right: 20px;
    bottom: 120px;
  }

  .hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    gap: 12px;
  }

  .hero__eyebrow span {
    width: 28px;
  }

  .hero__scroll {
    display: none;
  }

  .hero__pager {
    display: none;
  }

  .btn {
    min-width: 170px;
    padding: 14px 24px;
    font-size: 15px;
  }

  .about__body,
  .schedule__grid,
  .info__grid {
    grid-template-columns: 1fr;
  }

  .about__lead {
    position: static;
  }

  .menu__tabs {
    margin-bottom: 48px;
  }

  .menu__panel {
    columns: 1;
  }

  .menu-cat {
    margin-bottom: 48px;
  }

  .menu-cat__en {
    font-size: 28px;
  }

  .menu-row__name {
    font-size: 15px;
  }

  .info__list > div {
    grid-template-columns: 96px 1fr;
  }

  .info__map {
    aspect-ratio: 1 / 1;
  }
}

/* =========================
   動きを減らす設定のユーザー向け
========================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__title img { opacity: 1; }
}
