:root {
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --wood: #a47551;
  --wood-dark: #7d5536;
  --green: #5e7d4b;
  --green-light: #dfe8d2;
  --ink: #3b3a30;
  --muted: #6e6a5c;
  --line: #e2d8c6;
  --error: #b5452f;
  --radius: 14px;
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --script: "Great Vibes", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.9;
  letter-spacing: .03em;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.container { width: min(1080px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.section { padding: 88px 0; }
.section__title {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.5;
  margin: 0 0 24px;
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-family: var(--script);
  font-size: 1.9rem;
  line-height: 1.2;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--green);
  transition: .2s;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: #4b6a3a; border-color: #4b6a3a; }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--block { width: 100%; }

/* ヘッダー */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 232, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  width: min(1180px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--script); font-size: 2rem; font-weight: 400; line-height: 1;
  text-decoration: none; margin: 0;
}
.logo { display: block; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--green); }
.nav__btn { background: var(--green); color: #fff !important; padding: 6px 18px; border-radius: 999px; }
.nav-toggle { display: none; }

/* ファーストビュー */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; place-items: center; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(40, 50, 30, .25), rgba(40, 50, 30, .45)); }
.hero__body { position: relative; z-index: 1; text-align: center; color: #fff; padding: 0 16px; }
.hero__sub {
  display: inline-block; margin: 0 0 16px; padding: 4px 16px;
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 999px; font-size: .9rem;
}
.hero__title {
  font-family: var(--sans); font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 1.35; margin: 0 0 20px; text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}
.hero__lead { margin: 0 0 32px; font-size: clamp(1rem, 2.4vw, 1.15rem); }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; border-color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--green); }

/* お知らせ */
.news { background: var(--paper); border-bottom: 1px solid var(--line); }
.news__inner { display: flex; gap: 16px; align-items: center; padding: 14px 0; font-size: .92rem; }
.news__inner p { margin: 0; }
.news__label { flex-shrink: 0; background: var(--wood-dark); color: #fff; padding: 2px 12px; border-radius: 4px; font-size: .8rem; }

/* コンセプト */
.concept__inner, .space__inner, .access__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.concept__img img, .space__img img { border-radius: 200px 200px var(--radius) var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ランチ */
.lunch { background: var(--paper); }
.lunch__time { color: var(--muted); margin: -8px 0 40px; }
/* 看板メニュー：横にスライド */
.slider { margin-bottom: 40px; }
.slider__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px 4px 28px; scroll-padding-inline: 4px; scrollbar-width: none;
  cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.slider__track.is-dragging img { pointer-events: none; }
.slider__track:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: var(--radius); }
.slider__track > .card { flex: 0 0 min(42%, 440px); scroll-snap-align: start; }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.slider__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--green);
  background: var(--paper); color: var(--green); cursor: pointer; transition: .25s;
}
.slider__btn:hover:not(:disabled) { background: var(--green); color: #fff; }
.slider__btn:disabled { opacity: .35; cursor: default; }
.slider__dots { display: flex; gap: 10px; }
.slider__dot {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0;
  background: var(--line); cursor: pointer; transition: width .3s, background .3s;
}
.slider__dot[aria-current="true"] { width: 28px; background: var(--green); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(90, 70, 40, .08); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: 20px 22px 24px; }
.card__body h3 { font-family: var(--sans); font-size: 1.2rem; margin: 6px 0 8px; }
.card__body p { margin: 0 0 8px; font-size: .92rem; color: var(--muted); }
.card__tag { display: inline-block; font-size: .75rem; color: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: 0 10px; }
.card__price { color: var(--wood-dark) !important; font-weight: 700; font-size: 1.05rem !important; }

/* メニュー */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab {
  font-family: inherit; font-size: .95rem; padding: 8px 20px; border-radius: 999px;
  border: 1px solid var(--wood); background: transparent; color: var(--wood-dark); cursor: pointer;
}
.tab.is-active { background: var(--wood-dark); color: #fff; }
.menu__panel { max-width: 640px; margin: 0 auto; background: var(--paper); border-radius: var(--radius); padding: 24px 28px; }
.menu__note { margin: 0 0 12px; color: var(--green); font-size: .9rem; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.menu__list li span:last-child { flex-shrink: 0; color: var(--wood-dark); font-weight: 700; }
.menu__tax { text-align: center; font-size: .8rem; color: var(--muted); }

/* シーン */
.scenes { background: var(--green-light); }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scene { background: var(--paper); border-radius: var(--radius); padding: 28px; text-align: center; }
.scene__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-light); color: var(--green); font-size: 1.6rem; }
.scene h3 { font-family: var(--sans); font-size: 1.1rem; margin: 8px 0; }
.scene p { margin: 0; font-size: .92rem; color: var(--muted); }

/* 空間 */
.facilities { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facilities li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; font-size: .9rem; }
.facilities li i { display: block; font-size: 1.3rem; color: var(--green); margin: 4px 0 2px; }
.facilities small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.2; }

/* Instagram */
.insta { background: var(--paper); }
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 32px 0; }
.insta__grid img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; transition: .2s; }
.insta__grid a:hover img { opacity: .8; }

/* お客様の声 */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.voice { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--wood); }
.voice p { margin: 0 0 12px; }
.voice cite { font-style: normal; font-size: .85rem; color: var(--muted); }
.voices__note { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 24px; }

/* アクセス */
.access { background: var(--paper); }
.info { display: grid; grid-template-columns: 6em 1fr; margin: 0; }
.info dt, .info dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.info dt { color: var(--green); font-weight: 700; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); margin-bottom: 16px; }
.map .btn { width: 100%; text-align: center; }

/* 予約 */
.reserve__inner { max-width: 680px; }
.form { margin-top: 32px; background: var(--paper); border-radius: var(--radius); padding: 32px; }
.form__row { margin-bottom: 18px; }
.form__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.req { background: var(--wood-dark); color: #fff; font-size: .7rem; padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.form [aria-invalid="true"] { border-color: var(--error); }
.form__status { color: var(--error); font-weight: 700; text-align: center; margin: 0 0 12px; }
.form__status:empty { display: none; }
.form__error { color: var(--error); font-size: .85rem; margin: 4px 0 0; min-height: 1em; }
.form__notice { text-align: center; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.form__done { margin-top: 32px; background: var(--green-light); border-radius: var(--radius); padding: 32px; text-align: center; }
.form__done-title { font-family: var(--sans); font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; }

/* フッター */
.footer { background: var(--wood-dark); color: #f3ebdd; text-align: center; padding: 48px 0 110px; font-size: .9rem; }
.logo--footer { display: flex; justify-content: center; margin: 0 0 16px; }
.logo--footer img { height: 120px; width: auto; }
.footer__sns { font-size: 1.8rem; text-decoration: none; }
.footer__sns:hover { color: #cfe0bf; }
.credit { font-size: .75rem; opacity: .75; }

/* スマホ固定ボタン */
.fixed-cta { display: none; }

/* スマホ */
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); transition: .2s; }
  .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); }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); display: none;
    max-height: calc(100dvh - 64px - 80px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; text-align: center; padding: 14px; border-top: 1px solid var(--line); }
  .nav__btn { border-radius: 0; }

  .concept__inner, .space__inner, .access__inner { grid-template-columns: 1fr; gap: 32px; }
  .space__img { order: -1; }
  .scene-grid, .voice-grid { grid-template-columns: 1fr; }
  .slider__track > .card { flex-basis: 82%; }
  .insta__grid { grid-template-columns: repeat(3, 1fr); }
  .form { padding: 24px 18px; }
  .form__cols { grid-template-columns: 1fr; gap: 0; }
  .news__inner { align-items: flex-start; }

  .fixed-cta {
    display: grid; grid-template-columns: 1fr 2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .fixed-cta a {
    text-align: center; text-decoration: none; font-weight: 700; padding: 12px; border-radius: 999px;
    border: 2px solid var(--green); color: var(--green);
  }
  .fixed-cta .fixed-cta__main { background: var(--green); color: #fff; }
}

/* ===== アニメーション ===== */

/* ファーストビュー：朝霧が晴れるように写真が現れ、木漏れ日がゆらぎ、タイトルが1文字ずつ浮かぶ */
.hero__img {
  animation:
    mist-clear 3s cubic-bezier(.3, .6, .2, 1) both,
    hero-drift 26s ease-in-out 3s infinite alternate;
}
.hero__body { z-index: 2; }
.hero__body > * { animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hero__sub { animation-delay: .9s !important; }
.hero__title { animation-delay: 1.2s !important; }
.hero__lead { animation-delay: 2.5s !important; }
.hero__actions { animation-delay: 2.8s !important; }

/* タイトル：1文字ずつ、ぼかしが取れながら浮かび上がる（JSで文字を分割） */
.hero__title.is-split { animation: none; }
.hero__title .char {
  display: inline-block;
  animation: char-in .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(1.2s + var(--i) * .08s);
}

/* 木漏れ日：やわらかい光がゆっくり動いて、ゆらめく */
.hero__light {
  position: absolute; inset: -20%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 244, 200, .45), transparent 22%),
    radial-gradient(circle at 75% 15%, rgba(255, 240, 190, .35), transparent 18%),
    radial-gradient(circle at 60% 70%, rgba(255, 248, 215, .25), transparent 20%);
  mix-blend-mode: screen;
  animation:
    fade-in 2s 1.5s ease both,
    komorebi-move 18s ease-in-out 1.5s infinite alternate,
    komorebi-flicker 5s ease-in-out 3.5s infinite;
}

@keyframes mist-clear {
  from { filter: blur(16px) brightness(1.35) saturate(.5); transform: scale(1.1); }
  to   { filter: none; transform: scale(1); }
}
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.06) translate(-1.5%, -1%); } }
@keyframes char-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(.35em); }
  to   { opacity: 1; filter: none; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes komorebi-move { from { transform: translate(0, 0); } to { transform: translate(6%, 4%); } }
@keyframes komorebi-flicker { 0%, 100% { opacity: 1; } 40% { opacity: .55; } 70% { opacity: .85; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* スクロールで下からふわっと表示（JSで .reveal を付ける） */
.reveal.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0s);
}
.reveal.reveal.is-visible { opacity: 1; transform: none; }

/* ヘッダー：スクロールしたら影がつく */
.header { transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 4px 20px rgba(90, 70, 40, .1); }

/* ボタン：少し浮く */
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(94, 125, 75, .25); }

/* カード：浮き上がって写真がゆっくり寄る */
.card { transition: transform .4s, box-shadow .4s; }
.card img { transition: transform .8s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(90, 70, 40, .14); }
.card:hover img { transform: scale(1.06); }
.card { isolation: isolate; }

/* シーンのアイコン：葉っぱのようにゆれる */
.scene { transition: transform .4s; }
.scene:hover { transform: translateY(-4px); }
.scene:hover .scene__icon i { animation: sway 1.2s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

/* Instagram：写真が寄る */
.insta__grid a { display: block; overflow: hidden; border-radius: 8px; }
.insta__grid img { transition: transform .6s ease, opacity .2s; }
.insta__grid a:hover img { transform: scale(1.08); }

/* 設備 */
.facilities li { transition: transform .3s, border-color .3s; }
.facilities li:hover { transform: translateY(-3px); border-color: var(--green); }

/* メニュー切り替え */
.menu__panel:not([hidden]) { animation: fade-up .5s ease both; }

/* 予約完了 */
.form__done:not([hidden]) { animation: fade-up .7s ease both; }

/* スマホの固定ボタン：下からスッと出る */
@media (max-width: 860px) {
  .fixed-cta { animation: slide-up .6s 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .nav.is-open { animation: fade-down .3s ease both; }
}
@keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 動きを減らす設定の人には、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__light { display: none; }
}
