/* ==========================================================
   まるこぶ珈琲 — 制作サンプル
   骨組み：中央ロゴの振り分けナビ／写真と文字のタイルを組んだヒーロー
   ／波形のふちで始まる焦げ茶の帯に紙のメニュー表／席の配置図
   ／Instagram のプロフィール風の写真の並び／1週間の表と手描き風の地図
   ========================================================== */

:root {
  --cream: #F3EDE3;
  --paper: #FBF8F2;
  --brown: #3B2B22;
  --brown-2: #5A463A;
  --mustard: #C38A2E;
  --sage: #7D8C6E;
  --terra: #B5603F;
  --line: #DCCFBD;
  --f-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-head: "Kiwi Maru", "Noto Sans JP", serif;
  --f-en: "DM Serif Display", Georgia, serif;
  --sec: clamp(96px, 12vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15.5px; line-height: 2;
  color: var(--brown);
  background: var(--cream);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 500; line-height: 1.5; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.nb { display: inline-block; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--paper); padding: 8px 16px; }
.skip:focus { left: 8px; top: 8px; }

.en {
  font-family: var(--f-en); font-style: italic;
  font-size: 22px; line-height: 1.2; color: var(--terra);
  margin-bottom: 8px;
}

/* ==========================================================
   ナビ（中央ロゴ・左右振り分け）
   ========================================================== */
.nav { position: sticky; top: 0; z-index: 50; background: var(--cream); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 76px; padding: 0 clamp(20px, 4vw, 48px);
}
.nav__side { display: flex; gap: clamp(18px, 2.4vw, 36px); font-size: 14px; font-weight: 500; }
.nav__side--r { justify-content: flex-end; }
.nav__side a { text-decoration: none; padding: 6px 0; background: linear-gradient(var(--terra), var(--terra)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.nav__side a:hover { background-size: 100% 2px; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-head); font-size: 22px; letter-spacing: .08em; }
.nav__toggle { display: none; }
.spmenu { display: none; }

/* ==========================================================
   1. ヒーロー（タイルのグリッド）
   ========================================================== */
.hero { padding: 0 clamp(12px, 1.6vw, 20px) clamp(12px, 1.6vw, 20px); }
.bento {
  height: min(calc(100svh - 76px - 20px), 880px); min-height: 600px;
  display: grid; gap: clamp(10px, 1.2vw, 16px);
  grid-template-columns: 1.35fr 1fr .8fr;
  grid-template-rows: 1.15fr 1fr;
  grid-template-areas:
    "interior title title"
    "interior latte today"
    ;
}
.tile { border-radius: 14px; overflow: hidden; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--interior { grid-area: interior; }
.tile--title { grid-area: title; background: var(--paper); padding: clamp(28px, 3.4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.tile--latte { grid-area: latte; }
.tile--today { grid-area: today; background: var(--brown); color: var(--cream); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile--bake { display: none; }

.tile__en { font-family: var(--f-en); font-style: italic; font-size: clamp(20px, 2vw, 28px); color: var(--terra); margin-bottom: 12px; }
.tile--title h1 { font-size: clamp(26px, 2.7vw, 42px); line-height: 1.5; margin-bottom: 18px; }
.tile__lead { max-width: 36em; font-size: 15px; }
.today__label { font-size: 13px; letter-spacing: .1em; color: #D8C6AE; }
.today__hours { font-family: var(--f-en); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.3; margin: 4px 0 6px; }
.today__note { font-size: 13px; color: #D8C6AE; }
.today__link { margin-top: 16px; font-size: 14px; text-underline-offset: 4px; color: var(--cream); }

/* ==========================================================
   2. お店のこと
   ========================================================== */
.about { padding: var(--sec) clamp(20px, 5vw, 64px); }
.about__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.about__photo { border-radius: 50%; overflow: hidden; aspect-ratio: 1; max-width: 480px; justify-self: center; width: 100%; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__body h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 22px; }
.about__body p + p { margin-top: 16px; }
.about__body p { max-width: 36em; }
.about__points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.about__points li { background: var(--paper); border-radius: 8px; padding: 8px 16px; font-size: 14px; }
.about__points b { color: var(--terra); margin-right: 10px; font-weight: 700; }

/* ==========================================================
   3. メニュー（波形のふちで始まる焦げ茶の帯＋紙のメニュー表）
   ========================================================== */
.menu {
  position: relative;
  background: var(--brown); color: var(--cream);
  padding: calc(var(--sec) + 10px) clamp(16px, 4vw, 48px) var(--sec);
}
.menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px;
  background: radial-gradient(circle at 18px -4px, var(--cream) 18px, transparent 19px) 0 0 / 36px 22px repeat-x;
}
.menu__head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.menu__head .en { color: var(--mustard); }
.menu__head h2 { font-size: clamp(26px, 3vw, 38px); }
.sheet {
  max-width: 1180px; margin: 0 auto;
  background: var(--paper); color: var(--brown);
  border-radius: 6px;
  padding: clamp(32px, 4vw, 60px) clamp(24px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.sheet__col h3 { font-size: 22px; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.sheet__col h3 .en { font-size: 18px; margin: 0; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.items .n { font-weight: 500; }
.items .d { flex: 1; border-bottom: 2px dotted #C8B9A4; transform: translateY(-5px); min-width: 16px; }
.items .p { font-family: var(--f-en); font-size: 18px; }
.sheet__note { margin-top: 14px; font-size: 13px; line-height: 1.8; color: var(--brown-2); }
.lunch__time { font-size: 14px; font-weight: 700; color: var(--terra); margin-bottom: 12px; }
.lunch__photo { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 8px; }
.lunch__photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet__foot { grid-column: 1 / -1; font-size: 12px; color: var(--brown-2); text-align: right; }

/* ==========================================================
   4. 店内（席の配置図）
   ========================================================== */
.seats { padding: var(--sec) clamp(20px, 5vw, 64px); }
.seats__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.seats__body h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 20px; }
.seats__body > p { max-width: 34em; }
.seats__list { margin: 26px 0 0; }
.seats__list > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.seats__list dt { font-weight: 700; }
.seats__list dd { margin: 0; }
.plan svg { width: 100%; height: auto; }
.plan__s { font-family: var(--f-body); font-size: 14px; fill: var(--brown); }
.plan figcaption { margin-top: 12px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.plan__key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.plan__key--t { background: var(--terra); }
.plan__key--c { background: var(--mustard); margin-left: 12px; }

/* ==========================================================
   5. Instagram風の並び
   ========================================================== */
.gram { background: var(--paper); padding: var(--sec) clamp(16px, 4vw, 48px); }
.gram__inner { max-width: 960px; margin: 0 auto; }
.profile {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding-bottom: 32px; margin-bottom: 4px;
}
.profile__icon { display: block; padding: 4px; border-radius: 50%; background: conic-gradient(var(--mustard), var(--terra), var(--sage), var(--mustard)); }
.profile__icon svg { display: block; border-radius: 50%; border: 3px solid var(--paper); }
.profile__text h2 { font-family: var(--f-body); font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.profile__text p { font-size: 14px; line-height: 1.8; }
.profile__text small { display: block; color: var(--brown-2); font-size: 12px; }
.profile__btn { background: var(--brown); color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 700; padding: 10px 22px; border-radius: 8px; white-space: nowrap; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.grid figure { position: relative; aspect-ratio: 1; overflow: hidden; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 32px 14px 12px;
  font-size: 13px; line-height: 1.6; color: #FFF;
  background: linear-gradient(transparent, rgba(40, 28, 20, .75));
  opacity: 0; transition: opacity .3s;
}
.grid li:hover figcaption, .grid li:focus-within figcaption { opacity: 1; }
.grid li:hover img { transform: scale(1.04); }
@media (hover: none) { .grid figcaption { opacity: 1; } }

/* ==========================================================
   6. 営業時間・アクセス
   ========================================================== */
.hours { padding: var(--sec) clamp(16px, 4vw, 48px); }
.hours__inner { max-width: 1120px; margin: 0 auto; }
.hours__head { margin-bottom: 32px; }
.hours__head h2 { font-size: clamp(24px, 2.6vw, 34px); }
.week { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; text-align: center; }
.week caption { text-align: left; font-size: 13px; color: var(--brown-2); padding-left: 6px; }
.week th { font-family: var(--f-head); font-weight: 500; font-size: 18px; padding: 6px 0; }
.week th.is-sat { color: #4D6E8A; }
.week th.is-sun { color: var(--terra); }
.week td { background: var(--paper); border-radius: 10px; padding: 18px 4px; font-family: var(--f-en); font-size: 19px; line-height: 1.25; vertical-align: middle; }
.week td span { display: block; margin-top: 10px; font-family: var(--f-body); font-size: 12px; color: var(--brown-2); line-height: 1.4; }
.week td.is-off { background: transparent; border: 2px dashed var(--line); font-family: var(--f-body); font-size: 14px; color: var(--brown-2); }
.week__note { margin: 12px 6px 0; font-size: 13px; color: var(--brown-2); }

.access {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(16px, 2vw, 28px); align-items: stretch;
}
.access__photo { border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.access__photo img { width: 100%; height: 100%; object-fit: cover; }
.access__map { border-radius: 14px; overflow: hidden; }
.access__map svg { width: 100%; height: 100%; display: block; }
.map__t { font-family: var(--f-body); font-size: 13px; fill: var(--brown); }
.map__t--w { fill: #FFF; font-weight: 700; }
.map__t--b { font-weight: 700; font-size: 15px; }
.access__info { margin: 0; align-self: center; }
.access__info > div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.access__info dt { font-weight: 700; font-size: 13px; color: var(--terra); }
.access__info dd { margin: 0; }

/* ==========================================================
   フッター
   ========================================================== */
.foot { background: var(--brown); color: #D8C6AE; text-align: center; padding: 56px 20px; font-size: 13px; }
.foot__name { font-family: var(--f-head); font-size: 22px; color: var(--cream); margin-bottom: 10px; letter-spacing: .08em; }
.foot__credit { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; }
.foot__credit a { color: var(--cream); }

/* ==========================================================
   現れる動き（JSが動かなければ全部見える）
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .grid li:nth-child(3n+2) { transition-delay: .08s; }
  .js .grid li:nth-child(3n) { transition-delay: .16s; }
}

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width: 1100px) {
  .bento { grid-template-columns: 1.2fr 1fr .9fr; }
  .access { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access__info { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__bar { grid-template-columns: 1fr auto; height: 64px; }
  .nav__side { display: none; }
  .nav__logo { font-size: 19px; }
  .nav__logo svg { width: 36px; height: 36px; }
  .nav__toggle {
    display: grid; gap: 7px; align-content: center; justify-self: end;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0 8px;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--brown); transition: transform .2s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .spmenu.is-open { display: grid; padding: 8px 20px 20px; }
  .spmenu a { text-decoration: none; padding: 12px 4px; border-bottom: 1px dashed var(--line); font-size: 16px; }

  .bento {
    height: auto; min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "title title"
      "interior interior"
      "latte today";
  }
  .tile--interior { aspect-ratio: 4 / 3; }
  .tile--latte { aspect-ratio: 1; }
  .tile--today { padding: 20px; }

  .about__inner, .seats__inner { grid-template-columns: 1fr; }
  .about__photo { max-width: 340px; }
  .sheet { grid-template-columns: 1fr; }
  .profile { grid-template-columns: auto minmax(0, 1fr); }
  .profile__btn { grid-column: 1 / -1; justify-self: start; }
  .grid { gap: 3px; }
  .grid figcaption { font-size: 11px; padding: 20px 8px 6px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .week thead { display: none; }
  .week, .week tbody, .week tr { display: block; }
  .week { border-spacing: 0; }
  .week tr { display: grid; gap: 6px; }
  .week td { display: grid; grid-template-columns: 2.5em 1fr auto; align-items: center; text-align: left; padding: 12px 16px; font-size: 17px; }
  .week td br { display: none; }
  .week td::before { font-family: var(--f-head); font-size: 16px; }
  .week td:nth-child(1)::before { content: "月"; }
  .week td:nth-child(2)::before { content: "火"; }
  .week td:nth-child(3)::before { content: "水"; }
  .week td:nth-child(4)::before { content: "木"; }
  .week td:nth-child(5)::before { content: "金"; }
  .week td:nth-child(6)::before { content: "土"; color: #4D6E8A; }
  .week td:nth-child(7)::before { content: "日"; color: var(--terra); }
  .week td span { margin: 0; }
  .access { grid-template-columns: 1fr; }
  .grid figcaption { display: none; }
}

/* ---------- 調整（時刻の区切り・スマホの見出し） ---------- */
.week .to { display: block; font-style: normal; color: var(--brown-2); line-height: 1.1; }
@media (max-width: 600px) {
  .tile--title { padding: 24px 20px; }
  .tile--title h1 { font-size: 21px; }
  .today__hours { font-size: 24px; }
  .week caption { display: block; padding: 0 0 8px; }
  .week .to { display: inline; margin: 0 4px; }
}
@media (max-width: 600px) {
  .week td { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
  .week td::before { width: 2.2em; }
  .week td span { margin-left: auto; }
}
