/* ===== ベース ===== */
:root {
  --bg: #0e1411;
  --cream: #f5efe6;
  --gold: #ffcc33;
  --amber: #e8920c;
  --ink: #16201c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

.material-icons { user-select: none; }

/* ===== ローディング ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader__inner { text-align: center; }
.loader__text {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.15em;
  color: var(--gold);
}
.loader__bar {
  margin-top: 1.2rem;
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  overflow: hidden;
}
.loader__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gold);
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.2rem, 5vw, 3.5rem);
  mix-blend-mode: difference;
}
.header__logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
}
.header__nav { display: flex; gap: 1.8rem; }
.header__nav a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
  position: relative;
}
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}
.header__nav a:hover::after { width: 100%; }

/* ===== 共通セクションパーツ ===== */
.sec-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.sec-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.sec-lead {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 2;
  color: rgba(245, 239, 230, 0.7);
  max-width: 30em;
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  overflow: hidden;
}
.hero__bgtext {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(6rem, 26vw, 24rem);
  line-height: 0.85;
  color: rgba(255, 204, 51, 0.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero__sub {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(3.5rem, 13vw, 11rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__lead {
  margin-top: 2rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 2;
  color: rgba(245, 239, 230, 0.8);
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: rgba(245, 239, 230, 0.6);
}
.hero__scrollline {
  width: 1px;
  height: 50px;
  background: linear-gradient(var(--gold), transparent);
}

/* ===== ビールを注ぐ ===== */
.pour {
  position: relative;
  min-height: 130vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 8rem clamp(1.5rem, 6vw, 6rem);
  flex-wrap: wrap;
}
.pour__text { flex: 1 1 360px; }
.pour__glass {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.glass-svg {
  width: clamp(200px, 30vw, 300px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}
.pour__hint {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: rgba(245, 239, 230, 0.5);
}
.bubble { fill: rgba(255, 255, 255, 0.7); }

/* ===== 原材料 ===== */
.ingredients {
  padding: 10rem clamp(1.5rem, 6vw, 6rem);
  text-align: center;
}
.ingredients__head { margin-bottom: 4rem; }
.ingredients__head .sec-label,
.process__intro .sec-label { display: inline-block; }
.ingredients__stage {
  position: relative;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ing {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.ing .material-icons {
  font-size: 3.2rem;
  color: var(--ink);
  background: var(--gold);
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.ing p {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.ing-core {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.15em;
  color: var(--ink);
  box-shadow: 0 0 60px rgba(255, 204, 51, 0.45);
}

/* ===== 醸造プロセス（スタッキングカード） ===== */
.process {
  padding: 6rem clamp(1.5rem, 6vw, 6rem) 0;
}
.process__intro {
  text-align: center;
  margin-bottom: 6rem;
}
.process__intro .sec-lead { margin-left: auto; margin-right: auto; }

.cards {
  position: relative;
}
.card {
  position: sticky;
  top: 12vh;
  height: 70vh;
  min-height: 440px;
  border-radius: 28px;
  background: var(--bg);
  background-color: var(--bg, #1d3a34);
  color: #fff;
  padding: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
}
.card[data-card] { background: var(--bg); }
.card__num {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  left: clamp(1.5rem, 4vw, 3rem);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
}
.card__body { max-width: 32em; position: relative; z-index: 2; }
.card__step {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.card__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}
.card__desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
}
.card__icon {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(-1rem, 2vw, 1rem);
  font-size: clamp(10rem, 22vw, 18rem) !important;
  color: var(--accent);
  opacity: 0.18;
  z-index: 1;
}

/* ===== フッター ===== */
.footer {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  padding: 6rem 1.5rem 3rem;
}
.footer__logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 12vw, 10rem);
  letter-spacing: 0.08em;
  color: var(--gold);
  line-height: 1;
}
.footer__msg {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
}
.footer__btn {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--gold);
  border-radius: 99px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, color 0.3s ease;
}
.footer__btn:hover { background: var(--gold); color: var(--ink); }
.footer__copy {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: rgba(245, 239, 230, 0.4);
  letter-spacing: 0.05em;
}

/* ===== レスポンシブ ===== */
@media (max-width: 720px) {
  .header__nav { gap: 1rem; }
  .header__nav a { font-size: 0.7rem; }
  .pour { justify-content: center; text-align: center; }
  .pour__text { flex-basis: 100%; }
  .ingredients__stage { height: 70vh; }
  .ing .material-icons { width: 72px; height: 72px; font-size: 2.4rem; }
  .card { top: 8vh; height: 78vh; }
}

/* アクセシビリティ: アニメ抑制設定 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
