/* 001 こもれび珈琲 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #faf6f0;
  --c-bg2: #f1e8dc;
  --c-main: #6b4f3a;
  --c-main-dark: #553e2d;
  --c-accent: #8a9a5b;
  --c-accent-text: #5f6b38; /* 文字に使うときはこちら（コントラスト 4.5 以上） */
  --c-text: #374151;
  --c-sub: #4b5563;
  --radius: 24px;
  --font: "Zen Kaku Gothic New", sans-serif;
  --font-head: "Zen Maru Gothic", sans-serif;
  --font-en: "Lora", serif;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-main); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--tint { background: var(--c-bg2); }
@media (min-width: 1080px) { .section { padding: 120px 0; } }

.en { font-family: var(--font-en); font-style: italic; color: var(--c-accent-text); font-size: 18px; }
.h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 4vw, 34px); color: var(--c-main); line-height: 1.4; }
.scribble { display: block; width: 96px; height: 14px; color: var(--c-accent); margin-top: 10px; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .scribble { margin-inline: auto; }
.note { margin-top: 24px; font-size: 15px; color: var(--c-sub); text-align: center; }

/* ヘッダー */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.header.is-scrolled { background: rgba(250, 246, 240, .96); box-shadow: 0 1px 0 rgba(107, 79, 58, .12); }
.header__inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 48px; font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--c-main); text-decoration: none; }
.logo__leaf { width: 22px; height: 22px; color: var(--c-accent); }
.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--c-main); color: #fff; font: 700 15px var(--font); cursor: pointer;
}
.menu-btn__bar, .menu-btn__bar::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .3s; }
.menu-btn__bar::before { content: ""; position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bar { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar::before { transform: translateY(-6px) rotate(-90deg); }
/* スマホのメニュー：JSが無いときはボタンを出さない（フッターのリンクで移動できる） */
.js .menu-btn { display: flex; }
.gnav { display: none; }
.js .gnav { position: fixed; inset: 68px 0 auto; background: var(--c-bg); padding: 8px 20px 24px; box-shadow: 0 12px 24px rgba(107, 79, 58, .12); flex-direction: column; }
.js .gnav.is-open { display: flex; }
.gnav a { display: flex; align-items: center; min-height: 52px; color: var(--c-main); text-decoration: none; font-weight: 700; border-bottom: 1px dashed rgba(107, 79, 58, .25); }
@media (min-width: 1080px) {
  .js .menu-btn { display: none; }
  .gnav, .js .gnav { display: flex; position: static; flex-direction: row; gap: 28px; padding: 0; background: none; box-shadow: none; }
  .gnav a { border: 0; min-height: 44px; }
  .gnav a:hover { color: var(--c-accent); }
  .gnav__insta { padding: 0 20px; border-radius: 999px; background: var(--c-main); color: #fff !important; }
}

/* メインビジュアル */
.hero { position: relative; padding: 84px 12px 0; }
.hero__img { border-radius: var(--radius); overflow: hidden; }
.hero__img img { width: 100%; height: 72vh; min-height: 440px; max-height: 760px; object-fit: cover; }
.hero__copy {
  position: absolute; left: 32px; bottom: 32px; right: 32px;
  background: rgba(250, 246, 240, .92); border-radius: 20px; padding: 20px 24px; max-width: 420px;
}
.hero__en { font-family: var(--font-en); font-style: italic; color: var(--c-accent-text); font-size: 17px; }
.hero__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 6vw, 46px); color: var(--c-main); line-height: 1.45; }
@media (min-width: 1080px) {
  .hero { padding: 96px 24px 0; }
  .hero__copy { left: 72px; bottom: 64px; padding: 32px 40px; }
}

/* ごあいさつ */
.about__inner { display: grid; gap: 40px; align-items: center; }
.about__body p { margin-top: 16px; }
.about__body .h2 { margin-bottom: 8px; }
.about__sign { text-align: right; font-family: var(--font-head); color: var(--c-main); }
.about__img img { border-radius: 50% 50% var(--radius) var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (min-width: 768px) { .about__inner { grid-template-columns: 1.1fr .9fr; gap: 72px; } }

/* こだわり */
.points { display: grid; gap: 48px; }
.point { text-align: center; }
.point img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; border: 8px solid var(--c-bg); }
.point h3 { font-family: var(--font-head); font-size: 21px; color: var(--c-main); margin-bottom: 8px; }
.point p { text-align: left; max-width: 300px; margin: 0 auto; }
@media (min-width: 768px) { .points { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* メニュー */
.menu-group__title { font-family: var(--font-head); font-size: 21px; color: var(--c-main); margin-bottom: 12px; }
.menu-group__title small { font-size: 15px; color: var(--c-sub); font-family: var(--font); font-weight: 400; margin-left: 8px; }
.menu-group { background: #fff; border-radius: var(--radius); padding: 28px 24px; margin-bottom: 24px; }
.menu-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(107, 79, 58, .25); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list__name small { display: block; font-size: 15px; color: var(--c-sub); }
.menu-list__price { font-weight: 700; color: var(--c-main); white-space: nowrap; }
.menu-cards { display: grid; gap: 24px; }
.menu-card { background: #fff; border-radius: var(--radius); overflow: hidden; }
.menu-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.menu-card__body { padding: 24px; }
@media (min-width: 768px) {
  .menu-group { padding: 36px 48px; }
  .menu-cards { grid-template-columns: 1fr 1fr; }
}

/* お店の様子：少しずらして並べる */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.gallery img:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery img:nth-child(2), .gallery img:nth-child(3) { aspect-ratio: 3 / 4; }
.gallery img:nth-child(3) { margin-top: 32px; }
.gallery img:nth-child(4) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; align-items: start; }
  .gallery img:nth-child(1) { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; height: 100%; }
  .gallery img:nth-child(2) { margin-top: 48px; }
  .gallery img:nth-child(3) { margin-top: 0; }
  .gallery img:nth-child(4) { grid-column: 2 / 4; aspect-ratio: 16 / 7; }
}

/* 営業日・アクセス */
.access { display: grid; gap: 40px; }
.access .h2 { margin-bottom: 24px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 14px 12px; vertical-align: top; }
.hours tr:nth-child(odd) { background: var(--c-bg2); }
.hours th { white-space: nowrap; color: var(--c-main); font-weight: 700; width: 5.5em; border-radius: 12px 0 0 12px; }
.hours td { border-radius: 0 12px 12px 0; }
.map svg { width: 100%; height: auto; }
.map p { font-size: 15px; color: var(--c-sub); margin-top: 8px; text-align: center; }
@media (min-width: 1080px) { .access { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; } }

/* フッター */
.footer { background: var(--c-main); color: #f7efe5; padding: 56px 0 32px; text-align: center; font-size: 15px; }
.footer a { color: #fff; }
.footer p + p { margin-top: 8px; }
.footer__logo { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-head); font-size: 22px; color: #fff; margin-bottom: 12px; }
.footer__logo .logo__leaf { color: #cfd8b0; }
.footer__fiction { margin-top: 32px !important; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin: 16px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; }

/* 動き：初期値は表示済み。JSが .is-in を付けたときだけ演出を足す */
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero__img img { animation: slowzoom 8s ease-out both; }
.js [data-reveal].is-wait { opacity: 0; }
.js [data-reveal].is-in { animation: rise .8s cubic-bezier(.2, .7, .3, 1) both; }
.menu-btn, .gnav__insta { transition: background-color .3s; }
.menu-btn:hover, .gnav__insta:hover { background: var(--c-main-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img img, .js [data-reveal].is-in { animation: none; }
  .js [data-reveal].is-wait { opacity: 1; }
}
