/* 013 泡町醸造所 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #fffaf0;
  --c-ink: #1b1712;
  --c-orange: #ff8a1f;
  --c-yellow: #ffc93c;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "Murecho", sans-serif;
  --font-en: "Bricolage Grotesque", sans-serif;
  /* 昼と夜で入れ替わる色（D02）。区切りはどれもこの変数で色を取る */
  --page: var(--c-bg);
  --fg: var(--c-ink);
  --fg-text: var(--c-text);
  --accent-text: #b45309;
}
body.is-night { --page: #1b1712; --fg: #fffaf0; --fg-text: #e7e2d9; --accent-text: #ffc93c; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--fg-text); background: var(--page); overflow-x: hidden; transition: background-color .8s, color .8s; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.en { font-family: var(--font-en); font-weight: 800; font-size: 16px; letter-spacing: .08em; color: var(--accent-text); margin-bottom: 8px; transition: color .8s; }
.h2 { font-weight: 900; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.3; color: var(--fg); margin-bottom: 20px; transition: color .8s; }
.note { margin-top: 24px; font-size: 15px; color: var(--fg-text); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; transition: background-color .25s, color .25s, transform .25s; }
.btn--ink { background: var(--c-ink); color: #fff; }
.btn--ink:hover { background: var(--c-orange); color: var(--c-ink); }
.btn--orange { background: var(--c-orange); color: var(--c-ink); }
.btn--orange:hover { background: var(--c-yellow); transform: translateY(-2px); }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 17px; margin-top: 32px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 20px; height: 68px; padding: 0 20px; background: var(--c-yellow); border-bottom: 3px solid var(--c-ink); }
.logo { display: flex; align-items: center; gap: 6px; min-height: 48px; text-decoration: none; color: var(--c-ink); font-family: var(--font-en); font-weight: 800; font-size: 22px; letter-spacing: -.01em; white-space: nowrap; flex: none; }
.logo__mark { width: 22px; height: 22px; border-radius: 50%; background: var(--c-orange); box-shadow: inset 0 0 0 3px var(--c-ink); margin-right: 4px; }
.logo__sub { display: none; }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; font-size: 15px; padding: 0 16px; }
@media (min-width: 600px) { .logo__sub { display: inline; margin-left: 6px; } }
@media (min-width: 1080px) {
  .header__inner { height: 78px; padding: 0 40px; }
  .gnav { display: flex; gap: 28px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--c-ink); }
  .gnav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .header__btn { margin-left: 0; padding: 0 24px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--c-ink); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 3px; border-radius: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-ink); padding: 8px 20px 24px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 56px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出①（A08）：巨大な文字＋切り抜きのグラス ===== */
.hero { position: relative; background: var(--c-yellow); padding: 104px 0 56px; overflow: hidden; }
.hero__words { position: relative; font-family: var(--font-en); font-weight: 800; font-size: 31vw; line-height: .8; letter-spacing: -.03em; color: var(--c-ink); text-align: center; white-space: nowrap; }
.hero__row span { display: inline-block; }
.hero__row--2 { color: transparent; -webkit-text-stroke: 3px var(--c-ink); }
.hero__glass { position: absolute; z-index: 2; left: 50%; top: 64px; width: 34vw; max-width: 300px; height: auto; transform: translateX(-50%); filter: drop-shadow(0 24px 30px rgba(27, 23, 18, .35)); }
.hero__hop { position: absolute; z-index: 3; width: 20vw; max-width: 170px; height: auto; filter: drop-shadow(0 12px 16px rgba(27, 23, 18, .3)); }
.hero__hop--1 { left: 6%; top: 46%; transform: rotate(-20deg); }
.hero__hop--2 { right: 4%; top: 18%; width: 14vw; transform: rotate(30deg) scaleX(-1); }
.hero__copy { position: relative; z-index: 4; padding: 0 20px; margin-top: 30vw; }
.hero__title { font-weight: 900; font-size: clamp(30px, 7vw, 56px); line-height: 1.3; color: var(--c-ink); }
.hero__lead { margin-top: 12px; font-weight: 700; color: var(--c-ink); }
@media (min-width: 1080px) {
  .hero { min-height: 100vh; padding: 110px 0 48px; }
  .hero__words { font-size: 21vw; }
  .hero__glass { top: 90px; width: auto; height: calc(100vh - 140px); max-width: none; }
  .hero__hop--1 { left: 24%; top: 58%; width: 11vw; }
  .hero__hop--2 { right: 22%; top: 24%; width: 8vw; }
  .hero__copy { position: absolute; left: 40px; bottom: 40px; margin: 0; padding: 0; max-width: 28vw; }
  .hero__title { font-size: clamp(30px, 2.8vw, 44px); }
}

/* ===== つくり方 ===== */
.how { padding: 104px 0; }
.steps { display: grid; gap: 40px; margin-top: 16px; }
.step__photo { margin: 0 0 16px; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; border: 3px solid var(--fg); }
.step__photo img { width: 100%; height: 100%; object-fit: cover; }
.step__photo--cut { background: var(--c-yellow); display: grid; place-items: center; }
.step__photo--cut img { width: 64%; height: 80%; object-fit: contain; }
.step__no { font-family: var(--font-en); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent-text); }
.step h3 { font-weight: 900; font-size: 22px; color: var(--fg); margin: 6px 0; }
@media (min-width: 900px) { .how { padding: 150px 0; } .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ===== 演出②（B05）：積み重なるカード ===== */
.beers { padding: 40px 0 104px; }
.beers__head { display: grid; gap: 28px; align-items: end; margin-bottom: 40px; }
.beers__photo { margin: 0; border-radius: 24px; overflow: hidden; border: 3px solid var(--fg); }
.beers__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) { .beers__head { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.stack { padding: 0 20px; max-width: 1240px; margin: 0 auto; }
.beer { position: sticky; top: calc(84px + var(--i, 0) * 16px); min-height: 66vh; margin-bottom: 28px; border-radius: 32px; border: 3px solid var(--c-ink); overflow: hidden; color: var(--c-ink); transform-origin: 50% 0; }
.beer:nth-child(2) { --i: 1; } .beer:nth-child(3) { --i: 2; } .beer:nth-child(4) { --i: 3; }
.beer__inner { position: relative; z-index: 1; padding: 32px 24px; height: 100%; }
.beer::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55) 0 10%, transparent 11%), radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .45) 0 7%, transparent 8%), radial-gradient(circle at 45% 80%, rgba(255, 255, 255, .4) 0 5%, transparent 6%); }
.beer--pale { background: #ffc93c; }
.beer--ipa { background: #ff8a1f; }
.beer--amber { background: #e8572a; }
.beer--stout { background: #2a1c14; color: #fffaf0; }
.beer__no { font-family: var(--font-en); font-weight: 800; font-size: 16px; }
.beer__name { font-family: var(--font-en); font-weight: 800; font-size: clamp(44px, 10vw, 140px); line-height: .9; letter-spacing: -.02em; margin: 16px 0 8px; }
.beer--stout .beer__name { color: #ffc93c; }
.beer__ja { font-weight: 900; font-size: 20px; }
.beer__text { max-width: 30em; margin-top: 12px; font-weight: 700; }
.beer__spec { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 24px 0 0; }
.beer__spec div { border-top: 2px solid currentColor; padding-top: 6px; min-width: 6em; }
.beer__spec dt { font-size: 15px; font-weight: 700; }
.beer__spec dd { margin: 0; font-family: var(--font-en); font-weight: 800; font-size: 22px; }
@media (min-width: 1080px) { .beer__inner { padding: 56px 64px; } .beer { min-height: 72vh; } }

/* ===== 演出③（D02）：夜のタップルーム ===== */
.night { padding: 120px 0; transition: background-color .8s; }
html:not(.is-motion) .night { --page: #1b1712; --fg: #fffaf0; --fg-text: #e7e2d9; --accent-text: #ffc93c; background: var(--page); color: var(--fg-text); }
.night__inner { display: grid; gap: 40px; align-items: center; }
.night__photo { margin: 0; border-radius: 24px; overflow: hidden; }
.night__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hours { margin: 28px 0 0; }
.hours div { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid currentColor; }
.hours dt { font-weight: 900; color: var(--fg); min-width: 4em; }
.hours dd { margin: 0; font-family: var(--font-en); font-weight: 800; font-size: 20px; color: var(--fg); }
.shop { display: grid; gap: 40px; align-items: center; margin-top: 104px; }
.shop__photo { margin: 0; border-radius: 160px 160px 24px 24px; overflow: hidden; max-width: 420px; }
.shop__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.shops li { padding: 14px 0; border-bottom: 1px dashed currentColor; }
.shops strong { display: block; color: var(--fg); font-size: 18px; }
@media (min-width: 900px) {
  .night { padding: 160px 0; }
  .night__inner { grid-template-columns: 1fr 1.3fr; gap: 72px; }
  .shop { grid-template-columns: 1fr 1.2fr; gap: 72px; margin-top: 160px; }
}

/* ===== アクセス ===== */
.access { padding: 104px 0; }
.info { margin: 0; max-width: 820px; }
.info div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 2px solid var(--fg); }
.info dt { font-weight: 900; color: var(--fg); }
.info dd { margin: 0; }
@media (min-width: 768px) { .info div { grid-template-columns: 6em 1fr; gap: 16px; } }

/* ===== フッター ===== */
.footer { background: var(--c-orange); color: var(--c-ink); padding: 64px 20px 32px; text-align: center; font-size: 15px; border-top: 3px solid var(--c-ink); }
.footer__logo { font-family: var(--font-en); font-weight: 800; font-size: clamp(32px, 6vw, 64px); line-height: 1; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 16px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }
.footer__warn { font-weight: 700; }
.footer__fiction { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .beer { position: relative; top: auto; }
}

/* グラスで文字が隠れすぎないよう少し小さく／スマホは泡の飾りを控えめに */
.hero__glass { width: 28vw; }
@media (min-width: 1080px) { .hero__glass { width: auto; height: calc(100vh - 240px); top: 110px; } }
@media (max-width: 767px) { .beer::after { width: 180px; height: 180px; right: -50px; bottom: -50px; opacity: .6; } }
