/* 色と文字の決まりごと */
:root {
  --bg: #f7f1e8;
  --bg-tint: #efe5d6;
  --ink: #3a2a20;
  --ink-soft: #6b5646;
  --coffee: #5a3b28;
  --wood: #a9774c;
  --line: #06c755;
  --card: #fffaf3;
  --border: #e1d3bf;
  --radius: 14px;
  --mincho: "Shippori Mincho", serif;
  --gothic: "Zen Kaku Gothic New", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--gothic);
  line-height: 1.85;
  font-size: 16px;
}
img { max-width: 100%; }
a { color: inherit; }

/* ボタン */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-line { background: var(--line); color: #fff; }
.btn-ghost { border-color: var(--coffee); color: var(--coffee); background: transparent; }
.btn-light { background: #fff; color: var(--coffee); }
.btn-small { padding: 7px 14px; font-size: 13px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px;
  background: rgba(247, 241, 232, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.logo { font-family: var(--mincho); font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; }
.logo-sub { margin-right: .3em; }
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero-deco { display: none; }
.nav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--coffee); }

/* ヒーロー */
.hero {
  min-height: 78vh;
  display: grid; place-items: center;
  padding: 72px 24px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(169, 119, 76, .25), transparent 60%),
    radial-gradient(ellipse at 85% 80%, rgba(90, 59, 40, .22), transparent 55%),
    var(--bg-tint);
  text-align: center;
}
.hero-inner { max-width: 720px; }
.hero-place { letter-spacing: .2em; color: var(--wood); font-weight: 700; font-size: 14px; margin: 0 0 12px; }
.hero h1 { font-family: var(--mincho); font-size: clamp(32px, 6vw, 56px); line-height: 1.4; margin: 0 0 20px; color: var(--coffee); }
.hero-lead { color: var(--ink-soft); margin: 0 0 16px; }
.hero-hours { display: inline-block; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px 16px; font-size: 14px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* セクション共通 */
.section { padding: 88px 24px; max-width: 1040px; margin: 0 auto; }
/* 色付きの帯は画面いっぱいに広げ、中身は左右の余白で中央に寄せる */
.section-tint { max-width: none; background: var(--bg-tint); padding-left: max(24px, calc((100% - 1040px) / 2)); padding-right: max(24px, calc((100% - 1040px) / 2)); }
.section-dark { max-width: none; background: var(--coffee); color: #fff; text-align: center; }
.section-title { font-family: var(--mincho); font-size: clamp(24px, 4vw, 34px); margin: 0 0 32px; color: var(--coffee); }
.section-title span { display: block; font-family: var(--gothic); font-size: 13px; letter-spacing: .25em; color: var(--wood); }
.section-dark .section-title { color: #fff; }
.section-lead { color: var(--ink-soft); margin: -12px 0 28px; }
.section-dark .section-lead { color: #f1e6d8; }

/* お店について */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.about-card h3 { font-family: var(--mincho); margin: 0 0 12px; color: var(--coffee); }
.about-card p { margin: 0 0 8px; }

/* メニュー */
.season { background: var(--card); border: 2px solid var(--wood); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.season-label { margin: 0 0 8px; font-weight: 700; color: var(--wood); letter-spacing: .1em; }
.season ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.season li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.season li small { grid-column: 1 / -1; color: var(--ink-soft); }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab { font: inherit; font-weight: 700; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink-soft); cursor: pointer; }
.tab.is-active { background: var(--coffee); color: #fff; border-color: var(--coffee); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.menu-group { font-family: var(--mincho); color: var(--coffee); margin: 20px 0 8px; font-size: 19px; }
.menu-group small { font-family: var(--gothic); font-size: 13px; color: var(--ink-soft); margin-left: 8px; font-weight: 400; }
.menu-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.menu-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.menu-list li small { display: block; font-size: 12px; color: var(--ink-soft); }
.menu-list li > span:last-child { white-space: nowrap; font-weight: 700; }
.menu-note, .menu-foot { color: var(--ink-soft); font-size: 14px; }
.menu-foot { margin-top: 28px; }

/* 看板猫 */
.cats { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cats li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.cats b { font-family: var(--mincho); font-size: 20px; color: var(--coffee); display: block; }
.cats span { font-size: 12px; color: var(--wood); }
.cats p { margin: 8px 0 0; font-size: 14px; }
.cats-note { font-size: 14px; color: var(--ink-soft); }

/* ご利用案内・アクセス */
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
.guide div, .access div { padding: 14px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.guide dt, .access dt { font-weight: 700; color: var(--coffee); }
.guide dd, .access dd { margin: 0; }
.access small { color: var(--ink-soft); }
.access div[hidden] { display: none; }
#tempClosed dd { color: var(--coffee); font-weight: 700; }
#tempClosed small { font-weight: 400; }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.access { margin: 0; }
.access-map iframe { width: 100%; height: 280px; border: 0; border-radius: var(--radius); display: block; margin-bottom: 12px; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 写真 */
.hero-photo { display: none; margin: 0; }
.hero-photo img, .photo-row img, .tables img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 32px; }
.photo-row-2 { grid-template-columns: 1fr 1fr; }
.photo-row figure { margin: 0; }
.photo-row img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.photo-row figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 6px; text-align: center; }
.tables-title { font-family: var(--mincho); color: var(--coffee); text-align: center; margin: 48px 0 16px; font-size: 20px; }
.tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tables img { aspect-ratio: 16 / 10; border-radius: calc(var(--radius) / 2); }

.site-footer { text-align: center; padding: 28px; font-size: 13px; color: var(--ink-soft); padding-bottom: 96px; }

/* チャットボット */
.chat-open {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: 999px;
  background: var(--coffee); color: #fff; font: inherit; font-weight: 700;
  box-shadow: 0 8px 24px rgba(58, 42, 32, .3); cursor: pointer;
}
.chat-open-icon { font-size: 20px; }
.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 360px; height: min(560px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(58, 42, 32, .35);
}
.chat[hidden], .chat-open[hidden], .chat-suggest[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--coffee); color: #fff; }
.chat-head small { display: block; font-size: 11px; opacity: .8; }
.chat-close { background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.msg-bot { background: var(--bg-tint); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-user { background: var(--coffee); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-wait { color: var(--ink-soft); }
.msg a { color: var(--coffee); font-weight: 700; }
.msg-line { display: inline-block; margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: var(--line); color: #fff !important; text-decoration: none; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-suggest button { font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--coffee); cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.chat-form button { font: inherit; font-weight: 700; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--coffee); color: #fff; cursor: pointer; }
.chat-form button:disabled { opacity: .5; }
.chat-foot { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--ink-soft); text-align: center; }

/* スマホ */
@media (max-width: 760px) {
  .site-header { padding: 10px 16px; gap: 10px; }
  .nav { display: none; }
  .logo { font-size: 16px; margin-right: auto; }
  .section { padding: 64px 16px; }
  .about-grid, .access-grid, .guide { grid-template-columns: 1fr; gap: 24px; }
  .guide { gap: 0; }
  .menu-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .season li { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo-row figure:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .photo-row-2 { grid-template-columns: 1fr; }
  .tables { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cats { grid-template-columns: 1fr 1fr; }
  .guide div, .access div { grid-template-columns: 1fr; gap: 2px; }
  .chat { right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; }
  .chat-open-text { display: none; }
  .chat-open { padding: 14px; }
}
