/* メリハリベイク
   ベースは生成りとオフホワイト。紫はロゴ・見出し・ボタン・フッターだけに使い、
   お店のナチュラルな雰囲気を保つ。 */

:root {
  --purple: #7b5e8e;        /* ロゴの紫 */
  --purple-dark: #5f4870;
  --ink: #4a4441;
  --muted: #727272;          /* ロゴの文字の灰色 */
  --bg: #fbf9f5;
  --tint: #f4efe6;           /* 生成り */
  --line: #e2dbcf;
  --radius: 10px;
  --wrap: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--purple); }

/* ---- ヒーロー ---- */
.hero {
  height: min(62vh, 520px);
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;  /* 「CAFE」の文字と扉が収まる位置 */
}

/* ---- ロゴ・ナビ ---- */
.brand {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 16px 8px;
  text-align: center;
}

.brand__logo {
  margin: 0 auto;
  width: min(220px, 58vw);
}

.brand__catch {
  position: absolute;
  top: 48px;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.brand__catch--left { left: max(16px, calc(50% - 280px)); }
.brand__catch--right { right: max(16px, calc(50% - 280px)); }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin-top: 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 2px;
}

.nav a:hover { color: var(--purple); }

/* ---- セクション共通 ---- */
.section {
  padding: 64px 16px;
}

.section > * {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

.section--tint { background: var(--tint); }

.section__title {
  margin: 0 auto;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  color: var(--purple);
}

.section__lead {
  margin: 4px auto 32px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* ---- お店について ---- */
.about {
  max-width: 560px;
  text-align: center;
}

.about p { margin: 0 0 1.4em; }

.about__photo {
  width: min(420px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 32px;
  border-radius: 50%;          /* 丸く切り抜いて、ロゴの柔らかい形と揃える */
}

.about__motto {
  font-family: 'Dancing Script', cursive;
  font-size: 28px;
  color: var(--purple);
}

/* ---- メニュー ---- */
.menu-cat {
  margin: 40px auto 16px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--purple);
}

.menu-cat::before,
.menu-cat::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 12px;
  vertical-align: middle;
  background: var(--purple);
  opacity: 0.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(74, 68, 65, 0.08);
}

.card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.card__body { padding: 14px 16px 16px; }

.card__name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.card__name small { font-size: 12px; font-weight: 500; }

.card__desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.card__note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.price {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  margin: 0;
  font-size: 14px;
}

.price dt { color: var(--muted); }
.price dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.topping,
.set {
  max-width: 480px;
  margin-top: 24px;
  padding: 18px 22px;
  background: #fff;
  border-radius: var(--radius);
}

.topping h4,
.set h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--purple);
  letter-spacing: 0.1em;
}

.list { margin: 0; padding: 0; list-style: none; }

.list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted var(--line);
  font-size: 14px;
}

.list li:last-child { border-bottom: 0; }

.set p { margin: 0; font-size: 14px; }

.note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.note--center { text-align: center; }

.drinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.drink {
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius);
}

.drink h4 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.drink h4 small { font-size: 11px; font-weight: 500; color: var(--muted); }

.drink ul { margin: 0; padding-left: 1.1em; font-size: 14px; }
.drink li small { font-size: 11px; color: var(--muted); }

.drink__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--purple);
}

/* ---- ボタン・誘導 ---- */
.cta {
  margin-top: 32px;
  text-align: center;
}

.cta p { margin: 0 0 12px; font-size: 14px; }

.btn {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  color: var(--purple);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.btn:hover,
.btn--solid {
  background: var(--purple);
  color: #fff;
}

.btn--solid:hover { background: var(--purple-dark); }

/* ---- 営業時間 ---- */
.hours {
  max-width: 420px;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.hours th,
.hours td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }

.hours th {
  width: 40%;
  background: var(--tint);
  font-weight: 500;
  text-align: left;
}

/* ---- Instagram ---- */
.ig {
  /* 中身（ヘッダー＋3列×2段の投稿）の高さは幅で決まるので、
     コンテナ幅から高さを計算する。iframe の中は別オリジンで測れないため */
  container-type: inline-size;
  max-width: 640px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.ig__frame {
  display: block;
  width: 100%;
  height: 640px;                       /* container query 非対応ブラウザ向け */
  height: calc(66.67cqw + 160px);
  border: 0;
}

/* ---- アクセス ---- */
.map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.address {
  margin-top: 20px;
  font-style: normal;
  text-align: center;
}

/* ---- 関連リンク ---- */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---- フッター：中央が山型に盛り上がる紫の帯 ---- */
.footer {
  position: relative;
  margin-top: 48px;
  padding: 28px 16px 36px;
  background: var(--purple);
  color: #fff;
  text-align: center;
}

.footer::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -34px;
  width: 140px;
  height: 70px;
  transform: translateX(-50%);
  border-radius: 70px 70px 0 0;
  background: var(--purple);
}

.footer__top {
  position: relative;
  display: block;
  margin: -46px auto 12px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-decoration: none;
}

.footer__top::before {
  content: '︿';
  display: block;
  line-height: 1;
}

.footer__mark {
  position: relative;
  width: 56px;
  margin: 0 auto 6px;
  filter: brightness(0) invert(1);
}

.footer__name { margin: 0; font-size: 13px; letter-spacing: 0.2em; }
.footer__copy { margin: 4px 0 0; font-size: 11px; opacity: 0.8; }

/* ---- スマホ ---- */
@media (max-width: 600px) {
  body { font-size: 14px; }
  .section { padding: 52px 16px; }
  .section__title { font-size: 34px; }
  .brand__catch { font-size: 11px; top: 40px; }
  .nav { gap: 2px 14px; }
  .nav a { font-size: 13px; }
  .about br { display: none; }

  /* 縦に6枚並ぶとメニューだけで画面4〜5枚分になるので、写真を左・文字を右の横長カードにする */
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 38% 1fr; }
  .card__photo { aspect-ratio: auto; height: 100%; min-height: 128px; }
  .card__body { padding: 10px 12px; }
  .card__name { font-size: 15px; }
  .card__desc { font-size: 12px; margin-bottom: 6px; }
  .price { font-size: 13px; }
  .card__badge { top: 6px; left: 6px; font-size: 10px; padding: 1px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
