/* ================================================
   小料理 とりこ — style.css
   黒革の手帳 / 漆黒の美学
   ================================================ */

/* ---- Design Tokens ---- */
:root {
  --color-bg-primary:  #0A0A0A;
  --color-bg-deep:     #111111;
  --color-bg-subtle:   #1A1714;
  --color-text-main:   #E8E0D4;
  --color-text-sub:    rgba(232, 224, 212, 0.55);
  --color-gold:        #C4A265;
  --color-gold-light:  rgba(196, 162, 101, 0.3);
  --color-accent:      #8B2500;
  --color-petal:       #E8A0A0;
  --color-rule:        rgba(196, 162, 101, 0.25);

  --font-serif: 'Noto Serif JP', 'Times New Roman', Georgia, serif;

  --section-padding: clamp(7rem, 16vw, 13rem);
  --container-max:   860px;
  --container-px:    clamp(1.5rem, 5vw, 3rem);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  background-color: var(--color-bg-primary);
  color: var(--color-text-main);
  font-size: clamp(0.88rem, 2.2vw, 0.98rem);
  line-height: 2.2;
  letter-spacing: 0.08em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ---- Utility ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

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

.bg-primary { background-color: var(--color-bg-primary); }
.bg-deep    { background-color: var(--color-bg-deep); }
.bg-subtle  { background-color: var(--color-bg-subtle); }

/* ---- 縦中横（縦書き内の数字を正立させる） ---- */
.tcy {
  text-combine-upright: all;
  -webkit-text-combine: horizontal;
}

/* ---- Typography ---- */
.section-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.6em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-heading {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--color-text-main);
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   Navigation
   ================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease;
}

.nav--scrolled {
  background: rgba(26, 20, 16, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-inline: auto;
  padding: 1.2rem clamp(1.5rem, 4vw, 3rem);
}

.nav__logo {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: var(--color-text-main);
  transition: color 0.3s;
}
.nav__logo:hover { color: var(--color-gold); }

.nav__list {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  align-items: center;
}

.nav__link {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--color-text-main);
  transition: color 0.3s;
}
.nav__link:hover { color: var(--color-gold); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-text-main);
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav__hamburger { display: flex; }

  .nav__list {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 105;
  }
  .nav__list.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    font-size: 1rem;
    letter-spacing: 0.35em;
  }
}

/* ================================================
   Hero
   ================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background-color: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero veil — 2枚をフルスクリーンで重ね、右が右へ・左が左へスライドして開く */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* 各レイヤー：フルスクリーン固定 */
.hero__layer {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg-primary);
  overflow: hidden;
  will-change: transform;
  transition: transform 2.8s cubic-bezier(0.22, 0.94, 0.28, 1);
}

/* 右桜（back.png）が上、左桜（front.png）が下 */
.hero__layer--left  { z-index: 11; }
.hero__layer--right { z-index: 12; }

/* 枝先フェード：上端・外側の端をなめらかに消す */
.hero__layer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hero__layer--left::after {
  background:
    linear-gradient(to bottom, var(--color-bg-primary) 0%, transparent 22%),
    linear-gradient(to right, transparent 72%, var(--color-bg-primary) 100%);
}
.hero__layer--right::after {
  background:
    linear-gradient(to bottom, var(--color-bg-primary) 0%, transparent 22%),
    linear-gradient(to left, transparent 72%, var(--color-bg-primary) 100%);
}

/* 桜画像：フルスクリーンを完全に覆う */
.hero__veil-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.35);
  transition:
    transform 0.95s cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 0.82s ease-out;
}

/* 左桜（front.png）：幹が左下、枝が右へ → 左下基準でカバー */
.hero__layer--left .hero__veil-img {
  object-position: left bottom;
  transform-origin: 15% 90%;
}

/* 右桜（back.png）：幹が右下、枝が左へ → 右下基準でカバー */
.hero__layer--right .hero__veil-img {
  object-position: right bottom;
  transform-origin: 85% 90%;
}

/* 登場：まず右、続いて左（0.42s遅延） */
.hero.is-intro:not(.is-open) .hero__layer--right .hero__veil-img {
  transition-delay: 0s;
}
.hero.is-intro:not(.is-open) .hero__layer--left .hero__veil-img {
  transition-delay: 0.42s;
}

.hero.is-intro .hero__veil-img {
  transform: scale(1);
  opacity: 1;
}

/* 開く：右が右へスライド → 0.75s後に左が左へスライド */
.hero.is-open .hero__layer--right {
  transform: translateX(100%);
  transition-delay: 0s;
}
.hero.is-open .hero__layer--left {
  transform: translateX(-100%);
  transition-delay: 0.75s;
}

.hero.hero--veil-done .hero__veil {
  visibility: hidden;
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.1s ease-out, transform 1.1s ease-out;
}
.hero__content.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hero__logo-wrap { line-height: 0; }

.hero__logo {
  width: clamp(120px, 30vw, 200px);
  filter: invert(1);
  mix-blend-mode: screen;
}

.hero__copy {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-text-main);
  height: clamp(200px, 38vh, 300px);
  line-height: 1.85;
}

.hero__copy-line {
  display: inline-block;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 1s ease-out;
  z-index: 14;
}
.hero__scroll.is-shown { opacity: 1; }

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--color-gold);
  animation: scroll-line 2s ease-in-out infinite;
}
.hero__scroll-text {
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  color: var(--color-gold);
  text-transform: lowercase;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Petals */
.petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
}

.petal {
  position: absolute;
  top: -40px;
  opacity: 0;
  animation: petal-fall linear infinite;
}

.petal--1 { width: 20px; left: 10%; animation-duration: 9s;  animation-delay: 0.5s; }
.petal--2 { width: 14px; left: 25%; animation-duration: 11s; animation-delay: 2s; }
.petal--3 { width: 16px; left: 40%; animation-duration: 8s;  animation-delay: 4s; }
.petal--4 { width: 12px; left: 55%; animation-duration: 13s; animation-delay: 1s; }
.petal--5 { width: 18px; left: 70%; animation-duration: 10s; animation-delay: 3s; }
.petal--6 { width: 10px; left: 82%; animation-duration: 7s;  animation-delay: 5.5s; }
.petal--7 { width: 15px; left: 92%; animation-duration: 12s; animation-delay: 0s; }

@keyframes petal-fall {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(105vh) rotate(480deg); }
}

/* ================================================
   Concept
   ================================================ */
.concept__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  justify-items: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.concept__col {
  display: flex;
  justify-content: center;
}

.concept__poem {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: clamp(260px, 56vh, 440px);
  font-size: clamp(0.85rem, 2vw, 0.96rem);
  line-height: 2.2;
  color: var(--color-text-main);
  letter-spacing: 0.12em;
}
.concept__poem p { margin-inline-end: 1.2em; }
.concept__poem-gap { margin-inline-end: 0.6em; color: transparent; }

.concept__quote {
  display: block;
  text-align: center;
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.55em;
  padding-right: 0.55em;
  color: var(--color-gold);
  line-height: 2;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (max-width: 600px) {
  .concept__grid {
    grid-template-columns: 1fr;
  }
}

/* Full-bleed photo within concept */
.concept__band {
  position: relative;
  width: 100vw;
  margin-inline-start: calc(50% - 50vw);
  height: clamp(220px, 40vw, 480px);
  overflow: hidden;
}
.concept__band-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.concept__band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.35),
    rgba(10, 10, 10, 0.0) 40%,
    rgba(10, 10, 10, 0.0) 60%,
    rgba(10, 10, 10, 0.45)
  );
}

/* ================================================
   Photo Band (full-bleed strip)
   ================================================ */
.photo-band {
  position: relative;
  height: clamp(250px, 45vw, 500px);
  overflow: hidden;
}
.photo-band__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ================================================
   Members
   ================================================ */
.members__layout {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.members__img-wrap {
  width: 80%;
  max-width: 620px;
}

.members__img {
  width: 100%;
  height: auto;
  display: block;
  background-color: var(--color-bg-deep);
  min-height: 200px;
}

.members__text {
  display: flex;
  justify-content: center;
}

.members__poem {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: clamp(200px, 44vh, 320px);
  font-size: clamp(0.85rem, 2vw, 0.96rem);
  line-height: 2.2;
  letter-spacing: 0.12em;
  color: var(--color-text-main);
}
.members__poem p { margin-inline-end: 1.2em; }
.members__dash {
  color: var(--color-gold);
  margin-inline-end: 1.2em;
}

/* ================================================
   Menu
   ================================================ */
/* HTML/CSS版お品書きカード */
.menu__card {
  border: 1px solid rgba(196, 162, 101, 0.5);
  background: rgba(196, 162, 101, 0.04);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}
.menu__card::before,
.menu__card::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--color-gold);
  border-style: solid;
}
.menu__card::before { top: 7px; left: 7px; border-width: 1px 0 0 1px; }
.menu__card::after  { bottom: 7px; right: 7px; border-width: 0 1px 1px 0; }

.menu__card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.menu__card-kamon {
  color: var(--color-gold);
  font-size: 0.75rem;
  opacity: 0.5;
}
.menu__card-title {
  font-size: clamp(0.95rem, 3vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.9em;
  color: var(--color-gold);
  padding-right: 0.9em;
}
.menu__card-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 162, 101, 0.4), transparent);
  margin-block: 1.5rem;
}
.menu__card-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem);
}
.menu__card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.55em;
  color: var(--color-gold);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: 0.8rem;
}
.menu__card-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.menu__card-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  font-size: clamp(0.76rem, 1.8vw, 0.85rem);
  line-height: 1.65;
  color: var(--color-text-main);
}
.menu__card-name { flex: 1; }
.menu__card-price {
  color: var(--color-gold);
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.menu__card-footnote {
  text-align: center;
  font-size: 0.63rem;
  color: var(--color-text-sub);
  letter-spacing: 0.2em;
  margin-top: 0.8rem;
}

.menu__note,
.menu__foot-note {
  font-size: 0.72rem;
  color: var(--color-text-sub);
  letter-spacing: 0.15em;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.menu__foot-note {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0;
}

/* Horizontal scroll menu list */
.menu__scroll {
  display: flex;
  gap: clamp(2rem, 5vw, 3.5rem);
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-rule) transparent;
}
.menu__scroll::-webkit-scrollbar { height: 2px; }
.menu__scroll::-webkit-scrollbar-track { background: transparent; }
.menu__scroll::-webkit-scrollbar-thumb { background: var(--color-rule); }

.menu__category {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.menu__cat-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8em;
  height: clamp(60px, 10vh, 90px);
  align-self: center;
}

.menu__items {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  line-height: 2.0;
  letter-spacing: 0.12em;
  color: var(--color-text-main);
  height: clamp(200px, 42vh, 340px);
}
.menu__items li { margin-inline-end: 0.8em; }

/* 販売価格：親の縦書き・フォントサイズ・色を継承 */
.menu__price {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  white-space: nowrap;
  text-combine-upright: all;
}

/* ================================================
   Gallery
   ================================================ */
.gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 4px;
}

.gallery__full {
  margin-top: 4px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery__item--full {
  aspect-ratio: 16 / 6;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
  display: block;
}
.gallery__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-gold-light);
  opacity: 0;
  transition: opacity 0.6s ease-out;
  pointer-events: none;
}

.gallery__item:hover .gallery__img { transform: scale(1.05); }
.gallery__item:hover .gallery__overlay { opacity: 1; }

@media (max-width: 600px) {
  .gallery__row { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================
   Event
   ================================================ */
.event__card {
  position: relative;
  border: 1px solid var(--color-gold);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3.5rem);
  max-width: 600px;
  margin-inline: auto;
  background: transparent;
}

/* Corner decorations */
.event__corner {
  position: absolute;
  width: 24px;
  height: 24px;
}
.event__corner--tl { top: -2px;  left: -2px; }
.event__corner--tr { top: -2px;  right: -2px; transform: scaleX(-1); }
.event__corner--bl { bottom: -2px; left: -2px;  transform: scaleY(-1); }
.event__corner--br { bottom: -2px; right: -2px; transform: scale(-1); }

.event__eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.event__title {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--color-text-main);
  line-height: 1.7;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.event__info {
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  line-height: 1.9;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.event__row {
  display: grid;
  grid-template-columns: 3.5em 1fr;
  gap: 0.5em 1em;
  padding-block: 0.6em;
  border-bottom: 1px solid var(--color-rule);
}
.event__row:last-child { border-bottom: none; }
.event__row dt {
  color: var(--color-gold);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  padding-top: 0.1em;
}
.event__row dd { color: var(--color-text-main); }

.event__map-link {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  margin-top: 0.3em;
  transition: opacity 0.3s;
}
.event__map-link:hover { opacity: 0.7; }

.event__sub {
  font-size: 0.72rem;
  color: var(--color-text-sub);
}

.event__note {
  font-size: 0.78rem;
  color: var(--color-text-sub);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

/* ================================================
   Button
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 0.75em 1.6em;
  background: transparent;
  transition: background 0.3s ease;
  cursor: pointer;
  font-family: var(--font-serif);
}
.btn:hover {
  background: var(--color-gold-light);
}

/* ================================================
   Instagram section
   ================================================ */
.insta__text {
  font-size: clamp(0.88rem, 2vw, 1rem);
  letter-spacing: 0.15em;
  color: var(--color-text-sub);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.insta__btn-wrap {
  display: flex;
  justify-content: center;
}

/* ================================================
   Footer
   ================================================ */
.footer {
  background-color: var(--color-bg-primary);
  padding-block: clamp(4rem, 8vw, 6rem);
}

.footer__rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__logo {
  width: clamp(60px, 12vw, 90px);
  filter: invert(1);
  mix-blend-mode: screen;
}

.footer__name {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--color-text-main);
}

.footer__insta a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
  transition: color 0.3s;
}
.footer__insta a:hover { color: var(--color-gold); }

.footer__copy {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
  margin-top: 0.5rem;
}
