/* コーヒーショップ（cafe）と美容室（salon）
   このファイルは店ごとに書き換えない。店の色は shop.js の color で変える。 */

/* ================= 共通：写真がすっと現れる・湯気 ================= */
[data-design="cafe"] .reveal, [data-design="salon"] .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
[data-design="cafe"] .reveal.is-in, [data-design="salon"] .reveal.is-in { opacity: 1; transform: none; }
[data-design="cafe"] .steam { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
[data-design="cafe"] .steam i {
  position: absolute; bottom: 34%; left: var(--x); width: 30%; height: 55%; margin-left: -15%;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 64%);
  filter: blur(14px); opacity: 0; mix-blend-mode: screen;
}
[data-design="cafe"] .photo-box.is-in .steam i { animation: cafe-steam 6s ease-in-out var(--d) infinite; }
@keyframes cafe-steam {
  0% { opacity: 0; transform: translate(0, 25%) scale(.7, .8); }
  35% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--sway), -58%) scale(1.2, 1.4); }
}
[data-design="cafe"] .ch, [data-design="salon"] .ch { display: inline-block; animation: more-in 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.3s + var(--i) * .07s); }
[data-design="cafe"]:not(.fonts-ready) .ch, [data-design="salon"]:not(.fonts-ready) .ch { opacity: 0; animation: none; }
@keyframes more-in { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }
.reserve {
  display: block; text-align: center; margin: 0 0 10px; padding: 16px;
  border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: 700; border-radius: var(--radius);
}
@media (prefers-reduced-motion: reduce) {
  [data-design="cafe"] .ch, [data-design="salon"] .ch { animation: none !important; }
}

/* ================= コーヒーショップ ================= */
/* ミルクの白とコーヒーの茶色。写真はアーチ形の窓に入れて、喫茶店の窓越しのように */
[data-design="cafe"] {
  --bg: #f4eee5;
  --surface: #fffaf2;
  --text: #3a2a20;
  --muted: #86705e;
  --line: rgba(58, 42, 32, .14);
  --accent: #9a5b2e;
  --radius: 14px;
  --font-head: "Zen Maru Gothic", var(--font-body);
}
[data-design="cafe"] .hero { padding: 30px 22px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
[data-design="cafe"] .hero-text { display: contents; }
[data-design="cafe"] .hero-photo {
  order: 1; width: 100%; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 18px 18px; box-shadow: 0 18px 40px rgba(58, 42, 32, .18);
}
[data-design="cafe"] .ph.hero-photo { border-radius: 999px 999px 18px 18px; }
[data-design="cafe"] .hero-meta { order: 2; margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; color: var(--muted); font-size: .85rem; letter-spacing: .2em; }
[data-design="cafe"] .season { display: none; }
[data-design="cafe"] .genre { color: inherit; font-size: inherit; }
[data-design="cafe"] .open-state { display: block; padding: 2px 12px; border-radius: 999px; background: var(--accent); color: #fffaf2; letter-spacing: .1em; }
[data-design="cafe"] .shop-name { order: 3; margin-top: 10px; font-size: 2.4rem; font-weight: 700; letter-spacing: .12em; }
[data-design="cafe"] .shop-name.is-short { font-size: 3.4rem; }
[data-design="cafe"] .shop-name-kana { font-size: .8rem; letter-spacing: .4em; }
[data-design="cafe"] .catch { order: 4; margin-top: 14px; font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; text-wrap: balance; }
[data-design="cafe"] .body { padding: 0 22px; }
[data-design="cafe"] .sec { padding-top: 88px; }
/* 見出しは中央に、コーヒー豆の小さな印 */
[data-design="cafe"] .sec-title { text-align: center; font-size: 1.45rem; letter-spacing: .14em; margin-bottom: 30px; }
[data-design="cafe"] .sec-title::before {
  content: ""; display: block; width: 12px; height: 16px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(100deg, transparent 46%, var(--bg) 47% 53%, transparent 54%), var(--accent);
}
[data-design="cafe"] .special-photo, [data-design="cafe"] .story-photo, [data-design="cafe"] .otoshi-photo, [data-design="cafe"] .interlude-photo { border-radius: var(--radius); }
[data-design="cafe"] .special-name { text-align: center; font-size: 1.5rem; }
[data-design="cafe"] .special-price { text-align: center; }
[data-design="cafe"] .special .prose { text-align: left; }
[data-design="cafe"] .interlude { margin-top: 88px; }
[data-design="cafe"] .interlude-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
[data-design="cafe"] .interlude figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 8px; }
[data-design="cafe"] .menu-item { border-bottom-style: dashed; }
[data-design="cafe"] .menu-price { color: var(--accent); }
[data-design="cafe"] .menu-badge { border-radius: 999px; }
[data-design="cafe"] .story-figure { width: 100%; }
[data-design="cafe"] .quote-text { text-align: center; font-size: 1.35rem; }
[data-design="cafe"] .quote-by { text-align: center; }
[data-design="cafe"] .call { border-radius: 999px; }
[data-design="cafe"] .info { background: var(--surface); border-radius: var(--radius); padding: 0 18px; border: 1px solid var(--line); }
[data-design="cafe"] .info-row:last-child { border-bottom: 0; }
[data-design="cafe"] .map-frame iframe { filter: sepia(.2) saturate(.85); }
[data-design="cafe"] .foot-name { font-family: var(--font-head); }

/* ================= 美容室 ================= */
/* 白と余白。写真は大きく、名前は白い帯の上に細く広く */
[data-design="salon"] {
  --bg: #fbfaf8;
  --surface: #f3f1ed;
  --text: #222;
  --muted: #7a7a76;
  --line: #e4e2dd;
  --accent: #a8865f;
  --radius: 0;
  --font-head: var(--font-body);
}
[data-design="salon"] .hero { display: flex; flex-direction: column; }
[data-design="salon"] .hero-text { display: contents; }
[data-design="salon"] .hero-photo { order: 1; aspect-ratio: 4 / 5; }
[data-design="salon"] .shop-name {
  order: 2; position: relative; margin: -46px 22px 0; padding: 22px 20px 14px;
  background: var(--bg); font-size: 2rem; font-weight: 400; letter-spacing: .3em; line-height: 1.3;
}
[data-design="salon"] .shop-name.is-short { font-size: 2.8rem; }
[data-design="salon"] .shop-name-kana { letter-spacing: .5em; font-size: .78rem; }
[data-design="salon"] .hero-meta { order: 3; padding: 0 42px; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .85rem; letter-spacing: .2em; }
[data-design="salon"] .season { display: none; }
[data-design="salon"] .genre { color: inherit; font-size: inherit; }
[data-design="salon"] .open-state { display: block; color: var(--accent); }
[data-design="salon"] .catch { order: 4; padding: 0 42px; margin-top: 16px; font-size: 1.1rem; line-height: 2; }
[data-design="salon"] .body { padding: 0 22px; }
[data-design="salon"] .sec { padding-top: 96px; }
[data-design="salon"] .sec-title { font-size: 1.15rem; font-weight: 400; letter-spacing: .5em; margin-bottom: 30px; }
[data-design="salon"] .sec-title::after { content: ""; display: block; width: 40px; height: 1px; margin-top: 14px; background: var(--accent); }
[data-design="salon"] .special-name { font-weight: 400; letter-spacing: .2em; font-size: 1.25rem; }
[data-design="salon"] .special-price { color: var(--accent); }
[data-design="salon"] .menu-dots { visibility: hidden; }
[data-design="salon"] .menu-name { font-weight: 400; letter-spacing: .1em; }
[data-design="salon"] .menu-price { font-weight: 400; }
[data-design="salon"] .menu-badge { border: 0; padding: 0; letter-spacing: .2em; }
[data-design="salon"] .interlude { margin-top: 96px; }
[data-design="salon"] .interlude-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
[data-design="salon"] .story-figure { width: 100%; }
[data-design="salon"] .quote-text { font-weight: 400; font-size: 1.3rem; }
[data-design="salon"] .call { background: var(--text); }
[data-design="salon"] .reserve { border-color: var(--text); color: var(--text); }
[data-design="salon"] .map-frame iframe { filter: grayscale(.6); }

/* ================= パソコンの広い画面 ================= */
@media (min-width: 960px) {
  [data-design="cafe"] #app, [data-design="salon"] #app { max-width: none; }
  [data-design="cafe"] .hero { max-width: 1100px; margin: 0 auto; padding-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: center; text-align: left; }
  [data-design="cafe"] .hero-photo { grid-column: 1; grid-row: 1 / span 4; }
  [data-design="cafe"] .hero-meta, [data-design="cafe"] .shop-name, [data-design="cafe"] .catch { grid-column: 2; justify-content: flex-start; }
  [data-design="cafe"] .shop-name { font-size: 3.6rem; }
  [data-design="cafe"] .body, [data-design="salon"] .body { max-width: 1000px; margin: 0 auto; padding: 0 56px; }
  [data-design="cafe"] .special, [data-design="salon"] .special { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: center; }
  [data-design="cafe"] .special > :first-child, [data-design="salon"] .special > :first-child { grid-column: 1; grid-row: 1 / span 4; }
  [data-design="cafe"] .special > :not(:first-child), [data-design="salon"] .special > :not(:first-child) { grid-column: 2; text-align: left; }
  [data-design="cafe"] .sec-menu .menu, [data-design="salon"] .sec-menu .menu { columns: 2; column-gap: 56px; }
  [data-design="cafe"] .sec-menu .menu-item, [data-design="salon"] .sec-menu .menu-item { break-inside: avoid; }
  [data-design="salon"] .hero-photo { aspect-ratio: 21 / 9; }
  [data-design="salon"] .shop-name { margin: -70px auto 0; width: min(760px, 90%); text-align: center; font-size: 2.8rem; }
  [data-design="salon"] .hero-meta, [data-design="salon"] .catch { justify-content: center; text-align: center; padding: 0; width: min(760px, 90%); margin-left: auto; margin-right: auto; }
}

/* 選ぶボタンの見本の色 */
.picker-choice[data-design="cafe"] .picker-swatch { background: linear-gradient(135deg, #f4eee5 62%, #9a5b2e 62%); }
.picker-choice[data-design="salon"] .picker-swatch { background: linear-gradient(135deg, #fbfaf8 62%, #a8865f 62%); }
