/* ==========================================================================
   hanare 公式サイト スタイルシート ―「墨色の離れ」
   紙の白とインクの黒、2階調だけで構成するモノトーン基調のデザイン。
   色は店名「離れ」を可視化した縦書きのサインと、価格表示だけに絞り、
   丸みのある装飾や複数色づかいを避けることで、静かで一本芯の通った
   世界観(文芸誌や活版印刷の店構えのような佇まい)を狙っている。
   「全体を白く」という方向性を明確なブランド表現として固定するため、
   OS設定による自動ダークモード切り替えは行わず、常にこの1テーマで統一する ---- */

:root {
  /* ベースカラー(ライト): 紙の白 × インクの黒 */
  --bg: #faf9f6;
  --bg-elevated: #ffffff;
  --bg-soft: #f1ede4;
  --fg: #18140f;
  --fg-muted: #6b6259;
  --border: rgba(24, 20, 15, 0.14);

  /* アクセントカラー: 朱(店名のサインと価格表示だけに使う唯一の色) */
  --accent: #96432a;
  --accent-strong: #7a3620;
  --accent-soft: rgba(150, 67, 42, 0.12);

  /* ボタン等の「インク塗り」用トークン。.hero内で--fg/--bgを上書きしても
     影響を受けないよう、独立したトークンとして持つ */
  --ink: #18140f;
  --ink-contrast: #faf9f6;

  /* ヘッダーは紙色に細い罫線だけ。上部が黒帯だと重く、以降がスカスカに見えるため */
  --header-bg: rgba(250, 249, 246, 0.9);
  --header-fg: #18140f;

  /* ページ内リンクで飛んだとき、固定ヘッダーに見出しが隠れないための逃げ幅 */
  --header-clearance: 5.5rem;

  /* タイポグラフィ */
  --font-display: "Shippori Antique", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo",
    -apple-system, BlinkMacSystemFont, sans-serif;

  /* レイアウト: 角丸を最小限にし、直線的な余白構成にする */
  --content-width: 1080px;
  --radius-md: 2px;
  --radius-lg: 4px;
}

/* ---- リセット ---- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  animation: page-fade-in 0.5s ease both;
}


@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


h1, h2, h3, dt, dd, p, ul, blockquote, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

/* サイト全体の写真をわずかに彩度を落とし、インクと紙のトーンに馴染ませる */
.hero-slide,
.menu-feature-media img,
.menu-thumb,
.concept-media {
  filter: grayscale(88%) contrast(1.06) brightness(0.99);
}

button {
  font-family: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- スクロールに応じて、各セクションが静かに現れる ----
   JSが動く環境でだけ初期状態を隠す(.js は head の1行で付与)。
   JSが無効・未対応でも本文が読めるようにするための作り */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.3rem);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* 「動きを減らす」設定では、隠さずそのまま表示する */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- 共通レイアウト ---- */
.section {
  position: relative;
  padding: 5.5rem 1.5rem;
  /* ページ内リンクの着地点が、固定ヘッダーの下に潜らないようにする */
  scroll-margin-top: var(--header-clearance);
}

.section-inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ---- セクション左端の縦組みラベル ----
   英字ラベル(CONCEPT / MENU …)に代えて、その店の言葉を縦組みで置く。
   罫線がセクションの高さいっぱいに伸びることで、横書きの本文との間に
   縦のリズムが生まれ、飾りではなく構造として働く。
   .section-inner は position: relative なので、その左端に絶対配置している */
.section-inner.has-rail {
  padding-left: 4.4rem;
}

.section-rail {
  position: absolute;
  left: 0;
  top: 0.2rem;
  height: calc(100% - 0.4rem);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--fg);
  white-space: nowrap;
  padding-right: 1.1rem;
  border-right: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

/* 見出し直下の細い直線ルール。使用箇所は極力絞る */
.section-title.has-brush {
  position: relative;
  display: inline-block;
}

.section-title.has-brush::after {
  content: "";
  position: absolute;
  left: 0.15em;
  right: 0.15em;
  bottom: -0.4em;
  height: 1px;
  background: var(--fg);
  opacity: 0.4;
}

.section-lead {
  max-width: 40em;
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 2.6rem;
}

/* ---- 縦書きのサイン(店名「離れ」を可視化した唯一の装飾要素) ---- */
.teaser-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

.teaser-content {
  flex: 1;
  min-width: 0;
}

.hanare-tag {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.6em;
  color: var(--accent);
  border-left: 1px solid var(--border);
  padding-left: 1.7rem;
  padding-top: 0.2rem;
  flex-shrink: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.4rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.button-primary {
  background: var(--ink);
  color: var(--ink-contrast);
}

.button-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---- ヘッダー / ナビゲーション ----
   紙色に細い罫線だけの軽い体裁。背後の内容がうっすら透ける */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  color: var(--header-fg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 0.4rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--header-fg);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 2rem;
  font-size: 0.92rem;
}

.primary-nav a {
  text-decoration: none;
  color: var(--header-fg);
  opacity: 0.8;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.primary-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

.primary-nav a.is-active {
  border-color: var(--header-fg);
  opacity: 1;
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--header-fg);
  opacity: 0.7;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover {
  color: var(--accent);
  opacity: 1;
  background: var(--accent-soft);
}

.social-links svg {
  width: 17px;
  height: 17px;
}

/* ---- ヒーロー ----
   参考にした配色イメージに合わせ、写真を全面に敷いて文字を重ねる構成ではなく、
   白い余白の中にテキストと写真をそれぞれ独立して置く構成にしている。
   ページを開いた瞬間の第一印象が「白」になることを優先した */
.hero {
  padding: 0;
}

/* テキストは本文カラムの左端に揃え、写真だけを画面の右端まで抜く。
   中央揃えをやめて左右で役割を分けることで、平坦さがなくなり奥行きが出る */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
  align-items: center;
  gap: 3.2rem;
  /* 縦に長い画面でヒーローが間延びしないよう、上限を設けている */
  min-height: clamp(520px, 80vh, 820px);
  padding-left: max(1.5rem, calc(50% - var(--content-width) / 2));
}

.hero-inner {
  max-width: 34em;
  padding: 5.5rem 0 5rem;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--fg-muted);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-wrap: balance;
  margin-bottom: 1.6rem;
}

/* ---- 見出しの手書き(筆順)アニメーション ----
   見出しを筆順どおりに一画ずつ線で引いていく演出。
   SVGは script.js の setupHeroHandwriting() が hero-strokes.js のデータから組み立てる。
   文字そのものは読み上げ用に .visually-hidden で残してある */
.hero h1.is-handwritten {
  /* 中身がSVGに置き換わるため、文字サイズ由来の行間指定は効かせない */
  line-height: 0;
}

.hero-write {
  display: block;
  width: min(520px, 100%);
  height: auto;
  /* 左揃えのレイアウトに合わせ、中央寄せはしない */
  margin: 0;
  /* 線端の丸みが端で切れないよう、はみ出しを許可する */
  overflow: visible;
}

.hero-write path {
  fill: none;
  stroke: var(--fg);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 一画ぶんの線を、始点から終点へ引く
   (stroke-dasharray / dashoffset は画ごとの長さに応じて script.js が設定する) */
@keyframes hero-stroke {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---- リード文のアニメーション ----
   見出しの手書きに合わせ、1文字ずつ左から右へ払うように現れる(速めの筆致) */
.hero-lead {
  color: var(--fg-muted);
  font-size: clamp(1rem, 3.8vw, 1.05rem);
  line-height: 1.9;
}

.hero-lead-char {
  display: inline-block;
  white-space: pre;
}

.hero-lead.is-writing .hero-lead-char {
  /* 上下左右にゆとりを持たせ、字形が切れないようにする */
  clip-path: inset(-18% 100% -18% -6%);
  animation: hero-lead-wipe 280ms ease-out forwards;
}

@keyframes hero-lead-wipe {
  to {
    clip-path: inset(-18% -6% -18% -6%);
  }
}

/* 注記はもともと薄く表示しているため、専用のキーフレームで 0.85 に着地させる */
.hero-note.is-delayed {
  opacity: 0;
  animation: hero-note-in 1.1s ease forwards;
}

@keyframes hero-note-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 0.85;
    transform: translateY(0);
  }
}

.hero-note {
  margin-top: 2rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--fg-muted);
  opacity: 0.85;
}

/* 写真は画面の右端まで抜き、ヒーローの高さいっぱいに立てる。
   枠の外に空間が続いている感じが出て、1枚の「箱」だったときより奥行きが出る */
.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 420px;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-soft);
}

/* 店名「離れ」の縦書き。サイト内で朱を使う数少ない場所のひとつ */
.hero-tag {
  position: absolute;
  top: 2rem;
  right: 1.7rem;
  z-index: 2;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--accent);
  /* 明るい写真の上でも輪郭が保てるよう、紙色の細い縁を添える */
  text-shadow: 0 0 6px rgba(250, 249, 246, 0.9), 0 0 2px rgba(250, 249, 246, 1);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

/* ---- 品書き ----
   同じ大きさのカードを並べるのをやめ、1品だけを大きく見せて残りを一覧にする。
   写真を1枚に絞ることで、その1枚が強くなる */
.menu-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.8rem;
  align-items: center;
}

.menu-feature-media {
  position: relative;
  margin: 0;
}

.menu-feature-media img {
  width: 100%;
  /* height属性(800)が指定されているため、auto にしないと aspect-ratio が効かない */
  height: auto;
  /* 他の写真が横長なので、ここだけ縦長にしてページに変化をつける */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

/* 写真の上に品名を置くため、下側だけを暗く落とす */
.menu-feature-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(15, 12, 9, 0.72), transparent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  pointer-events: none;
}

.menu-feature-media figcaption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.8rem;
  color: #faf9f6;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.menu-feature-price {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.88;
}

/* 看板メニューの残りは、小さな写真を添えた一覧にする(均等カードにはしない) */
.menu-thumbs {
  display: flex;
  flex-direction: column;
}

.menu-thumbs li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.menu-thumbs li:first-child {
  padding-top: 0;
}

.menu-thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.menu-thumb-body {
  min-width: 0;
}

.menu-thumb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.7rem;
  margin-bottom: 0.3rem;
}

.menu-thumb-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.menu-thumbs p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.menu-price {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-md);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ---- 「ひとりの時間」の約束 ----
   売りを抽象的な言葉で終わらせず、席・音量・長居といった検証できる事実として並べる。
   数字を大きく見せず、罫線で区切るだけの静かな体裁にして、他セクションと調子を揃える */
.promise-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}

.promise-list > li {
  padding: 1.6rem 1.6rem 1.7rem 0;
  border-bottom: 1px solid var(--border);
}

.promise-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.promise-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.promise-list p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* 看板メニューの下に続く、文字だけの一覧 */
.menu-more {
  margin-top: 4rem;
}

.menu-more-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

/* ---- テキストのみのメニュー一覧(写真を並べすぎてごちゃつかないよう分離) ---- */
.menu-list {
  border-top: 1px solid var(--border);
}

.menu-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem 0.2rem;
  border-bottom: 1px solid var(--border);
}

.menu-list .menu-list-name {
  font-size: 1rem;
}

.menu-list .menu-list-desc {
  display: block;
  color: var(--fg-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.menu-list .menu-list-price {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ---- コンセプト(2カラム: 写真 + テキスト) ---- */
.concept-layout {
  position: relative;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: center;
}

.concept-media {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--bg-soft);
}

.concept-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  line-height: 1.9;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.concept-body p + p {
  margin-top: 1.2rem;
}

.concept-body {
  color: var(--fg-muted);
  max-width: 42em;
}

/* ---- 店舗情報 ---- */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
}

.shop-list li {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.shop-list li span:first-child {
  width: 5.5em;
  flex-shrink: 0;
  color: var(--fg-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.shop-list a {
  text-decoration: none;
}

.shop-list a:hover {
  color: var(--accent);
}

.map-embed {
  margin-top: 1.6rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  filter: grayscale(70%) contrast(1.03);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

/* ---- お問い合わせ / 予約フォーム ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.contact-list li span:first-child {
  width: 4.5em;
  flex-shrink: 0;
  color: var(--fg-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.required {
  font-size: 0.72rem;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 0.1rem 0.5rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  resize: vertical;
}

.form-status {
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 600;
  min-height: 1.2em;
}

.note {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  opacity: 0.9;
}

/* ---- フッター ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.footer-shop {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-shop-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.footer-shop-name {
  font-weight: 600;
  color: var(--fg);
}

.footer-copyright {
  font-size: 0.8rem;
}

.footer-note {
  max-width: 46em;
  margin: 0.4rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1.8;
  opacity: 0.85;
}

/* ---- チャットウィジェット ---- */
.chat-widget {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 100;
}

.chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--ink-contrast);
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.chat-toggle:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 320px;
  max-width: calc(100vw - 2.8rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--ink);
  color: var(--ink-contrast);
  font-size: 0.95rem;
}

.chat-panel-header button {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
}

.chat-log {
  padding: 1rem 1.1rem;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.chat-bubble {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  max-width: 90%;
  line-height: 1.6;
}

.chat-bubble.bot {
  background: var(--bg-soft);
  align-self: flex-start;
}

.chat-bubble.user {
  background: var(--bg-soft);
  border-left: 2px solid var(--accent);
  align-self: flex-end;
}

.chat-bubble a {
  color: var(--accent);
  font-weight: 600;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.1rem 0.8rem;
}

.chat-quick-replies button {
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
}

.chat-quick-replies button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border);
}

.chat-input-row input {
  flex: 1;
  border: none;
  padding: 0.8rem 1.1rem;
  font-size: 0.9rem;
  background: var(--bg-elevated);
  color: var(--fg);
}

.chat-input-row button {
  border: none;
  background: none;
  color: var(--accent);
  font-weight: 600;
  padding: 0 1.1rem;
}

/* ==========================================================================
   レスポンシブ対応(スマホでも見やすいように調整)
   ========================================================================== */
@media (max-width: 860px) {
  .header-inner {
    justify-content: center;
    text-align: center;
  }

  .header-right {
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
  }

  .primary-nav {
    width: 100%;
    justify-content: center;
    gap: 0.5rem 1.2rem;
    font-size: 0.88rem;
  }

  .social-links {
    justify-content: center;
  }

  .concept-layout,
  .shop-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  /* 狭い画面では左右に分けず、テキストの下に写真を置く縦積みに戻す */
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding-left: 0;
  }

  .hero-inner {
    max-width: none;
    padding: 3.6rem 1.4rem 2.6rem;
  }

  .hero-media {
    align-self: auto;
    min-height: 0;
  }

  .hero-slideshow {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-tag {
    top: 1.1rem;
    right: 1.1rem;
    font-size: 0.92rem;
  }

  /* 狭い画面ではナビが折り返してヘッダーが高くなるため、逃げ幅も広げる
     (JSが読み込まれる前でも見出しが隠れないようにするための初期値) */
  :root {
    --header-clearance: 11rem;
  }

  /* 縦組みのままでは幅を取りすぎるため、横組みの見出しラベルに切り替える */
  .section-inner.has-rail {
    padding-left: 0;
  }

  .section-rail {
    position: static;
    width: 100%;
    height: auto;
    writing-mode: horizontal-tb;
    font-size: 0.92rem;
    letter-spacing: 0.2em;
    padding: 0 0 0.5rem;
    margin-bottom: 1.4rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  /* ラベルが1行を占められるよう、横並びのレイアウトを折り返し可能にする */
  .teaser-layout {
    flex-wrap: wrap;
  }

  .concept-media {
    max-width: 320px;
    margin: 0 auto;
  }

  /* 品書きは1カラムに畳み、大きな写真も高さを抑える */
  .menu-feature {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .menu-feature-media img {
    aspect-ratio: 3 / 2;
  }

  .hanare-tag {
    display: none;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 3.5rem 1.2rem;
  }

  .hero-inner {
    padding: 2.8rem 1.2rem 2.2rem;
  }

  .menu-list li {
    flex-direction: column;
    gap: 0.2rem;
  }

  .chat-panel {
    width: calc(100vw - 2rem);
  }
}
