/* =========================================================
   料理と酒の和み処 はなはな  ─  しっとり和風 4ページ版
   毛筆（Yuji Syuku）× 明朝 × 生成りの和紙 × 墨・朱・金
   ========================================================= */

:root {
  --washi:    #f4eee2;   /* 和紙・生成り（背景） */
  --washi-2:  #ece3d2;   /* やや濃い生成り */
  --matcha:   #eaeee0;   /* ほんのり抹茶色（ドリンク背景） */
  --paper:    #faf6ec;   /* 紙白 */
  --sumi:     #1b1712;   /* 墨（濃背景・見出し） */
  --sumi-2:   #2a2218;
  --ink:      #241d15;   /* 本文（ほぼ黒） */
  --ink-soft: #4d4232;   /* サブ文字（濃茶） */
  --on-dark:  #e9ddc6;   /* 暗背景の上の文字 */
  --on-dark-soft:#bfb094;
  --shu:      #a8392f;   /* 朱 */
  --shu-deep: #8f2f26;
  --gold:     #9a7b3f;   /* 金 */
  --gold-soft:#bd9b5e;
  --line:     #d6cbb4;
  --maxw:     1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  font-size: 17.5px;
  line-height: 2.05;
  color: var(--ink);
  background: var(--washi);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.045em;
  /* ごく薄い和紙の地紋 */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(154,123,63,.025) 0, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(168,57,47,.02) 0, transparent 55%);
}

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

/* 毛筆見出し */
.fude {
  font-family: "Yuji Syuku", "Shippori Mincho", serif;
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* 縦書き */
.tate { writing-mode: vertical-rl; text-orientation: upright; }

/* 落款（朱の角印風） */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: var(--shu); color: var(--paper);
  font-family: "Yuji Syuku", serif; font-size: 20px;
  border-radius: 3px; line-height: 1;
  box-shadow: 0 2px 8px rgba(143,47,38,.3);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }
.section { padding: 116px 0; }

/* ---------- セクション見出し ---------- */
.head { text-align: center; margin-bottom: 64px; }
.head .en {
  display: block; font-family: "Cormorant Garamond", serif;
  font-size: 16px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.head .ja {
  font-family: "Yuji Syuku", serif; font-weight: 400;
  font-size: clamp(28px, 4.6vw, 40px); letter-spacing: 0.12em;
  color: var(--ink); position: relative; display: inline-block; padding-bottom: 24px;
}
.head .ja::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 54px; height: 1px; background: var(--gold);
}
.head .ja::before {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 8px; height: 8px; background: var(--shu); border-radius: 50%; margin-bottom: -3.5px; z-index: 2;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 34px; transition: background .4s, padding .4s, box-shadow .4s;
}
.site-header.scrolled {
  background: rgba(244,238,226,.95); backdrop-filter: blur(10px);
  padding: 10px 34px; box-shadow: 0 6px 26px rgba(27,23,18,.12);
}
.brand-logo { height: 50px; width: auto; display: block; transition: height .4s; }
.brand-logo--light { filter: drop-shadow(0 2px 7px rgba(0,0,0,.5)); }
.brand-logo--dark { display: none; }
.site-header.scrolled .brand-logo { height: 42px; }
.site-header.scrolled .brand-logo--light { display: none; }
.site-header.scrolled .brand-logo--dark { display: block; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a.navlink {
  font-size: 18.5px; font-weight: 600; letter-spacing: 0.12em; text-decoration: none;
  color: var(--paper); position: relative; padding-bottom: 4px;
  text-shadow: 0 1px 7px rgba(0,0,0,.6); transition: color .4s;
}
.site-header.scrolled .nav a.navlink { color: var(--ink); text-shadow: none; }
.nav a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--shu); transition: width .3s;
}
.nav a.navlink:hover::after, .nav a.navlink.is-current::after { width: 100%; }

.nav-reserve {
  font-size: 16.5px; font-weight: 600; letter-spacing: 0.12em; text-decoration: none;
  color: var(--paper); border: 1px solid rgba(255,255,255,.7); padding: 11px 24px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  transition: background .3s, color .3s, border-color .4s, text-shadow .3s;
}
.nav-reserve:hover { background: var(--paper); color: var(--ink); text-shadow: none; }
.site-header.scrolled .nav-reserve { color: var(--ink); border-color: var(--gold); text-shadow: none; }
.site-header.scrolled .nav-reserve:hover { background: var(--gold); color: var(--paper); }

/* ハンバーガー（モバイル） */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; z-index: 70; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--paper); transition: .35s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1){ top: 0; } .nav-toggle span:nth-child(2){ top: 10px; } .nav-toggle span:nth-child(3){ top: 20px; }
body.nav-open .nav-toggle span { background: var(--paper); }
body.nav-open .nav-toggle span:nth-child(1){ top: 10px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3){ top: 10px; transform: rotate(-45deg); }

/* ---------- ページヒーロー（下層ページ用・小） ---------- */
.page-hero {
  position: relative; height: 46vh; min-height: 320px;
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; background-position: center; background-size: cover; transform: scale(1.06); animation: kb 14s ease-out forwards; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,12,.5); }
.page-hero__in { position: relative; z-index: 2; color: var(--paper); }
.page-hero__in .en { display: block; font-family: "Cormorant Garamond", serif; font-size: 16px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 16px; opacity: 1; }
.page-hero__in .ja { font-family: "Yuji Syuku", serif; font-size: clamp(34px, 6vw, 52px); letter-spacing: .14em; text-shadow: 0 2px 20px rgba(0,0,0,.4); }

@keyframes kb { to { transform: scale(1.0); } }

/* ---------- トップ・ヒーロー（大） ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; background: url("../images/hero-1.jpg") center/cover no-repeat; }
.hero__slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; animation: heroFade 28s infinite, kbSlow 28s infinite; }
.hero__slide--1 { background-image: url("../images/hero-1.jpg"); animation-delay: 0s, 0s; }
.hero__slide--2 { background-image: url("../images/space-1.jpg"); animation-delay: 7s, 7s; }
.hero__slide--3 { background-image: url("../images/dish-3.jpg"); animation-delay: 14s, 14s; }
.hero__slide--4 { background-image: url("../images/sake-bg.jpg"); animation-delay: 21s, 21s; }
@keyframes heroFade { 0%{opacity:0;} 3%{opacity:1;} 25%{opacity:1;} 28%{opacity:0;} 100%{opacity:0;} }
@keyframes kbSlow { 0%{transform:scale(1.03);} 28%{transform:scale(1.1);} 100%{transform:scale(1.1);} }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,14,10,.5), rgba(18,14,10,.32) 40%, rgba(18,14,10,.62)); }
.hero__in { position: relative; z-index: 2; text-align: center; color: var(--paper); padding: 0 20px; }
.hero__logo { width: clamp(260px, 46vw, 500px); margin: 0 auto 26px; filter: drop-shadow(0 4px 22px rgba(0,0,0,.5)); }
.hero__copy { font-family: "Yuji Syuku", serif; font-size: clamp(20px, 3.2vw, 30px); letter-spacing: .22em; margin-bottom: 18px; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hero__sub { font-size: clamp(14px, 1.8vw, 16px); letter-spacing: .2em; opacity: .94; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--paper); font-family: "Cormorant Garamond", serif; font-size: 11px; letter-spacing: .3em; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 52px; background: linear-gradient(var(--paper), transparent); margin: 10px auto 0; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100%{opacity:.3;} 50%{opacity:1;} }

/* ---------- ご挨拶・コンセプト ---------- */
.greeting { background: var(--washi); text-align: center; }
.greeting .seal { margin: 0 auto 26px; }
.greeting__lead { font-family: "Yuji Syuku", serif; font-size: clamp(24px, 4vw, 34px); line-height: 1.9; letter-spacing: .1em; margin-bottom: 34px; }
.greeting__lead .shu { color: var(--shu); }
.greeting__body { max-width: 640px; margin: 0 auto; font-size: 17px; color: var(--ink-soft); line-height: 2.5; }

/* ---------- ギャラリー（トップ抜粋） ---------- */
.gallery { background: var(--washi-2); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery__cap { position: absolute; left: 14px; bottom: 12px; color: var(--paper); font-family: "Yuji Syuku", serif; font-size: 19px; letter-spacing: .08em; text-shadow: 0 2px 10px rgba(0,0,0,.6); z-index: 2; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.5)); }

/* ---------- 特集ブロック（こだわり：画像＋文 交互） ---------- */
.feature { background: var(--washi); }
.feature + .feature { padding-top: 0; }
.feature__row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; align-items: stretch; }
.feature__img { overflow: hidden; min-height: 380px; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.feature__row:hover .feature__img img { transform: scale(1.05); }
.feature__text { background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 56px 56px; }
.feature__row--rev .feature__img { order: 2; }
.feature__no { font-family: "Cormorant Garamond", serif; color: var(--gold); letter-spacing: .2em; font-size: 14px; margin-bottom: 12px; }
.feature__name { font-family: "Yuji Syuku", serif; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: .08em; margin-bottom: 8px; }
.feature__en { font-family: "Cormorant Garamond", serif; color: var(--gold); letter-spacing: .16em; font-size: 15px; font-weight: 600; text-transform: uppercase; margin-bottom: 20px; }
.feature__desc { font-size: 16.5px; color: var(--ink-soft); line-height: 2.3; }
.feature__badge { display: inline-block; margin-top: 18px; background: var(--shu); color: var(--paper); font-size: 12px; letter-spacing: .12em; padding: 5px 14px; align-self: flex-start; }

/* ---------- 酒（墨の濃背景） ---------- */
.sake { position: relative; color: var(--on-dark); background: var(--sumi) url("../images/sake-bg.jpg") center/cover fixed no-repeat; }
.sake::before { content: ""; position: absolute; inset: 0; background: rgba(18,14,10,.76); }
.sake__in { position: relative; z-index: 2; text-align: center; max-width: 640px; margin: 0 auto; }
.sake .head .ja { color: var(--paper); }
.sake .head .en { color: var(--gold-soft); }
.sake p { color: var(--on-dark); font-size: 17px; line-height: 2.5; }

/* ---------- お品書き（メニュー） ---------- */
.menu { background: var(--washi); }
.menu__cat { max-width: 760px; margin: 0 auto 54px; }
.menu__cat:last-child { margin-bottom: 0; }
.menu__cat-h { font-family: "Yuji Syuku", serif; font-size: 25px; letter-spacing: .12em; color: var(--ink); margin-bottom: 8px; display: flex; align-items: center; gap: 14px; }
.menu__cat-h::before { content: ""; width: 22px; height: 2px; background: var(--shu); }
.menu__cat-en { font-family: "Cormorant Garamond", serif; color: var(--gold); letter-spacing: .18em; font-size: 14.5px; font-weight: 600; text-transform: uppercase; margin: 0 0 20px 36px; display: block; }
.menu__row { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.menu__row .nm { font-size: 17.5px; letter-spacing: .04em; }
.menu__row .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.menu__row .pr { font-size: 16px; color: var(--ink-soft); white-space: nowrap; }
.menu__row .tag { display: inline-block; margin-left: 10px; font-size: 11px; letter-spacing: .1em; color: var(--shu); border: 1px solid var(--shu); padding: 1px 8px; }
.menu__note { text-align: center; margin-top: 40px; font-size: 14px; color: var(--ink-soft); letter-spacing: .06em; }

/* ドリンクは食事メニューと背景色を分ける（ほんのり抹茶色） */
.menu-drink { background: var(--matcha); }
.menu-drink .menu__cat-h::before { background: var(--gold); }

/* お持ち帰り・コース（枠で少し雰囲気を変える） */
.menu-special { background: var(--washi); padding-top: 0; }
.menu-special__grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.special-box { border: 1px solid var(--gold-soft); background: var(--paper); padding: 30px 32px 34px; }
.special-box__h { font-family: "Yuji Syuku", serif; font-size: 21px; letter-spacing: .1em; color: var(--ink); margin-bottom: 4px; }
.special-box__en { font-family: "Cormorant Garamond", serif; color: var(--gold); letter-spacing: .16em; font-size: 13px; font-weight: 600; text-transform: uppercase; display: block; margin-bottom: 18px; }
.special-box ul { list-style: none; margin: 0; padding: 0; }
.special-box li { font-size: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.special-box li:last-child { border-bottom: none; }
.special-box__note { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; line-height: 1.9; }
.special-box__lead { font-size: 16px; line-height: 2; margin-bottom: 14px; }
.special-box__tel { font-family: "Cormorant Garamond", serif; font-size: 22px; letter-spacing: .06em; color: var(--shu); }
@media (max-width: 720px) {
  .menu-special__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- 店舗情報・アクセス ---------- */
.access { background: var(--washi); }
.access__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.info-table th { width: 120px; font-weight: 500; color: var(--gold); letter-spacing: .08em; font-family: "Yuji Syuku", serif; }
.info-table td { color: var(--ink); line-height: 1.95; }
.map-frame { width: 100%; aspect-ratio: 4/3; border: 0; filter: grayscale(.15); }

/* ---------- 予約バナー ---------- */
.reserve-band { background: var(--sumi); color: var(--paper); text-align: center; padding: 84px 0; scroll-margin-top: 80px; }
.reserve-band .seal { margin: 0 auto 22px; }
.reserve-band h2 { font-family: "Yuji Syuku", serif; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: .14em; margin-bottom: 14px; }
.reserve-band p { color: var(--on-dark-soft); font-size: 15px; margin-bottom: 34px; letter-spacing: .06em; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 16px 36px; font-size: 15px; letter-spacing: .12em; text-decoration: none; border: 1px solid var(--gold-soft); color: var(--paper); transition: background .3s, color .3s; }
.btn:hover { background: var(--gold-soft); color: var(--sumi); }
.btn--solid { background: var(--gold); border-color: var(--gold); color: var(--sumi); }
.btn--solid:hover { background: var(--gold-soft); }

/* ---------- フッター ---------- */
.site-footer { background: var(--sumi); color: var(--on-dark-soft); text-align: center; padding: 64px 0 36px; }
.footer-logo { width: clamp(190px, 30vw, 250px); margin: 0 auto 16px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); }
.footer-nav { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin: 8px 0 22px; }
.footer-nav a { color: var(--on-dark); text-decoration: none; font-size: 14px; letter-spacing: .1em; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-sns { display: flex; justify-content: center; gap: 22px; margin-bottom: 24px; }
.footer-sns a { color: var(--on-dark); display: inline-flex; transition: opacity .3s; }
.footer-sns a:hover { opacity: .65; }
.footer-sns svg { width: 25px; height: 25px; }
.faddr { font-size: 14px; line-height: 2; }
.fcopy { margin-top: 26px; font-family: "Cormorant Garamond", serif; font-size: 11px; letter-spacing: .2em; color: var(--on-dark-soft); }

/* ---------- 出現アニメ ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .feature__row, .feature__row--rev { grid-template-columns: 1fr; }
  .feature__row--rev .feature__img { order: 0; }
  .feature__text { padding: 40px 30px; }
  .access__grid { grid-template-columns: 1fr; gap: 30px; }
  .sake { background-attachment: scroll; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 0; z-index: 65; background: #181410; flex-direction: column; justify-content: center; gap: 30px; transform: translateX(100%); transition: transform .4s; }
  body.nav-open .nav { transform: none; }
  /* メニューを開いている間はヘッダーのぼかしを外す（固定メニューが全画面を覆えるように） */
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav a.navlink, body.nav-open .nav a.navlink { color: var(--paper); text-shadow: none; font-size: 21px; }
  .nav .nav-reserve { color: var(--paper); border-color: var(--gold-soft); }
  /* スクロール状態でメニューを開いても、黒背景で文字が読めるよう常に明るい色にする */
  .site-header.scrolled .nav a.navlink { color: var(--paper); text-shadow: none; }
  .site-header.scrolled .nav .nav-reserve { color: var(--paper); border-color: var(--gold-soft); }
  /* 開いている時のバツ印も明るく（閉じている時のハンバーガーは従来どおり暗いまま） */
  body.nav-open .site-header.scrolled .nav-toggle span { background: var(--paper); }
  .nav-toggle { display: block; }
  /* スマホでは本文の強制改行を解除し、両端をそろえて読みやすく整える（PCはそのまま） */
  .greeting__body, .sake__in p { text-align: justify; text-justify: inter-ideograph; }
  .greeting__body br, .sake__in p br { display: none; }
  /* 「焼酎・泡盛」だけ、名前と料金を上下2段に（長い品名が途中で折れないように） */
  .menu__cat--stack .menu__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .menu__cat--stack .menu__row .dots { display: none; }
  .menu__cat--stack .menu__row .nm { line-height: 1.7; }
  /* 価格の数字は他のドリンクと同じ黒、「グラス／ボトル」の表記だけ金色に */
  .menu__cat--stack .menu__row .pr .unit { color: var(--gold); }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item.tall { grid-row: span 1; aspect-ratio: 1/1; }
}
@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .feature__text { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide, .page-hero__bg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}
