/* ==========================================================
   泰石酒造「零號」LP
   ========================================================== */
:root {
  --header-h: 52px;
  --c-black: #000;
  --c-ink: #111;
  --c-red: #e0202a;
  --c-gold: #fcf1bb;
  --c-gray: #e6e4e4;
  --f-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-hand: "Zen Kurenaido", "Yomogi", "Klee", "Klee One", "Hannotate SC", "YuKyokasho", "UD Digi Kyokasho N", cursive, var(--f-sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  color: #222;
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
a img:hover { opacity: .8; transition: .5s all; }

.br-pc { display: inline; }
@media (max-width: 1023px) { .br-pc { display: none; } }

/* ==========================================================
   MV
   ========================================================== */
.mv {
  position: relative;
  background: var(--c-black);
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.mv__logo {
  position: absolute;
  top: 3vw; left: 3.4vw;
  width: clamp(48px, 4.9vw, 100px);
  z-index: 2;
}
.mv__logo img { width: 100%; filter: invert(1); }
.mv__title {
  position: absolute;
  top: 46%; left: 50.5%;
  width: 70.8%;
  transform: translate(-50%, -50%);
}

.bnr {
  position: absolute;
  right: 1.6vw; bottom: 1.2vw;
  width: 24vw; max-width: 480px;
  container-type: inline-size;
  z-index: 2;
  transition: transform .3s ease;
}
.bnr__count {
  position: absolute;
  left: 23%; top: 68%;
  width: 54%; height: 10.5%;
  display: flex; align-items: center; justify-content: center;
  color: #3a2616;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 3.9cqw;
  line-height: 1;
  white-space: nowrap;
}
.bnr__count strong {
  font-size: 5.6cqw;
  font-weight: 700;
  margin: 0 .3em;
  color: #BB0101;
}
.bnr__count-during { display: none; font-size: 4.25cqw; font-weight: 700; }
.bnr__count-during strong {
  margin: 0;
  color: #BB0101;
}
.is-phase-during .bnr__count-before { display: none; }
.is-phase-during .bnr__count-during { display: inline; }

/* ==========================================================
   ヘッダー
   ========================================================== */
.header {
  position: sticky; top: 0;
  z-index: 100;
  /* height: var(--header-h); */
  display: flex; align-items: center; justify-content: space-between;
  padding: .5vw 1.5vw;
  background: #fff;
}
.header__logo a { padding: 1.5vw 0; }
.header__logo img { height: 18px; width: auto; }
.header__btn {
  --bg: #111;
  --r: 7px;
  display: inline-flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 24px;
  color: #fff;
  font-family: var(--f-serif);
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  background:
    radial-gradient(circle at 0 0,       transparent var(--r), var(--bg) calc(var(--r) + .5px)) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0,    transparent var(--r), var(--bg) calc(var(--r) + .5px)) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%,    transparent var(--r), var(--bg) calc(var(--r) + .5px)) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent var(--r), var(--bg) calc(var(--r) + .5px)) 100% 100% / 51% 51% no-repeat;
}
.header__btn:hover { --bg: var(--c-red); }
.header__btn img { width: 20px; height: auto; filter: invert(1); }

/* ==========================================================
   メッセージ、あゆみ
   ========================================================== */
.message, .history { position: relative; }
.message__bg, .history__bg {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}
.message__bg { background-image: url("../img/message_bg.jpg"); }
.history__bg { background-image: url("../img/hstory_bg.jpg"); }

.message__panel {
  position: relative; z-index: 1;
  width: min(940px, 100%);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  margin: 0 auto;
  padding: 90px 150px 110px;
  background: rgba(14, 20, 30, .74);
  color: #fff;
}
.message__title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  text-align: center; letter-spacing: .12em;
  margin-bottom: 56px;
}
.message__body { font-family: var(--f-serif); font-size: 18px; line-height: 1.6; letter-spacing: .03em; }
.message__body p + p { margin-top: 2.2em; }
.is-gold { color: var(--c-gold); }
.message__body .is-gold { font-size: 22px; line-height: 2; }

.history__panel {
  position: relative; z-index: 1;
  background: rgba(12, 17, 27, .8);
  color: #fff;
  padding: 110px 0 130px;
}
.history__inner {
  max-width: 1420px; margin: 0 auto; padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 40px 60px;
  align-items: start;
}
.history__imgs { grid-column: 1; grid-row: 1; padding-top: 6px; }
.history__main { grid-column: 2; grid-row: 1; }
.history__imgs img {
  border: 1px solid rgba(255, 255, 255, .45);
  width: 100%;
}
.history__imgs .history__img01 { max-width: 514px; }
.history__imgs .history__img02 { max-width: 552px; margin: 24px 0 0 clamp(60px, 10vw, 184px); width: calc(100% - clamp(60px, 10vw, 184px)); }

.history__title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: .1em;
  margin: 0 0 56px 70px;
}

.timeline { position: relative; --year-w: 210px; --dot-col: 36px; }
.timeline::before { /* 縦線 */
  content: "";
  position: absolute;
  left: calc(var(--year-w) + var(--dot-col) / 2);
  top: 14px; bottom: -34px;
  width: 1px;
  background: rgba(255, 255, 255, .6);
}
.timeline::after { /* 終端の片矢印 */
  content: "";
  position: absolute;
  left: calc(var(--year-w) + var(--dot-col) / 2);
  bottom: -34px;
  width: 1px; height: 16px;
  background: rgba(255, 255, 255, .85);
  transform-origin: 50% 100%;
  transform: rotate(-38deg);
}
.timeline li {
  position: relative;
  padding-left: calc(var(--year-w) + var(--dot-col));
  padding-bottom: 40px;
  min-height: 1px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { /* ドット */
  content: "";
  position: absolute;
  left: calc(var(--year-w) + var(--dot-col) / 2 - 5px);
  top: 20px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
}
.timeline__year {
  position: absolute; left: 0; top: 0;
  width: var(--year-w);
  text-align: right;
  font-size: clamp(21px, 2.2vw, 26px);
  letter-spacing: .04em;
}
.timeline__text {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6; letter-spacing: .03em;
  color: rgba(255, 255, 255, .92);
}
.timeline li .timeline__text a { text-decoration: underline; }
.timeline li .timeline__text a:hover { opacity: .6; transition: .5s all; }
.timeline li.is-last {
  background: linear-gradient(135deg, #fff29d 0%, #facf1e 15%, #bc850e 24%, #facf1e 34%, #fff29d 51%, #facf1e 71%, #fff29d 84%, #facf1e 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}
.timeline li.is-last .timeline__year { color: var(--c-gold); font-size: clamp(23px, 2.4vw, 28px); }
.timeline li.is-last .timeline__text { color: var(--c-gold); font-size: clamp(18px, 1.8vw, 20px); }
.timeline li.is-last::before {
  width: 14px; height: 14px;
  left: calc(var(--year-w) + var(--dot-col) / 2 - 7px);
  background: var(--c-gold);
}
.timeline strong { font-weight: 700; }
.timeline strong.is-gold { color: #fef340; }

/* ==========================================================
   商品
   ========================================================== */
.product {
  position: relative; z-index: 1;
  background: #fff;
  padding: 120px 24px 20px;
  scroll-margin-top: var(--header-h);
}
.product__inner {
  --map-w: clamp(300px, 35vw, 580px);
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(40px, 8vw, 160px);
}
.product__visual { position: relative; width: var(--map-w); margin-right: calc(var(--map-w) * .12); --bw: .36; }
.product__stage { position: relative; }
.product__map { width: 100%; }
.product__bottle {
  position: absolute;
  left: 65%;
  bottom: calc(var(--map-w) * (0.0363 - var(--bw) * 0.501));
  width: calc(var(--bw) * 100%);
}
.product__note {
  margin-top: calc(var(--map-w) * .2);
  padding-left: 30%;
  font-size: 14px; line-height: 1.6; color: #888;
  white-space: nowrap;
}
.product__info { text-align: center; }
.product__logo { width: 114px; margin: 0 auto 32px; }
.product__spec {
  font-family: var(--f-serif);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.4; letter-spacing: .08em;
  color: #333;
}
.product__price {
  font-family: var(--f-serif);
  font-size: clamp(16px, 1.7vw, 23px);
  line-height: 1.4; letter-spacing: .08em;
  color: #333;
  margin: 20px auto 0;
}
.product__btn {
  display: block;
  background-color: #D2A309;
  color: #fff;
  font-size: 1.8rem;
  border-radius: 3.6rem;
  margin: 25px auto;
  padding: .3rem 1rem;
}
.product__btn:hover {
	opacity: .6;
	transition: .5s all;
}

/* ==========================================================
   代表紹介
   ========================================================== */
.profile { position: relative; z-index: 1; background: #fff; padding: 120px 24px; }
.profile__card {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  gap: 60px;
  padding: 64px 64px 72px;
  background: #111; color: #fff;
}
.profile__head { text-align: center; padding: 6px 0 26px; border-bottom: 1px solid rgba(255,255,255,.75); margin: 0 0 34px; }
.profile__role { font-family: var(--f-serif); font-size: 24px; }
.profile__name { font-family: var(--f-serif); font-size: 36px; letter-spacing: .12em; margin-top: 14px; line-height: 1.4; }
.profile__name-en { font-family: var(--f-serif); font-size: 12px; letter-spacing: .06em; margin-top: 4px; }
.profile__body { font-size: 17px; line-height: 1.8; padding: 0 3%; }
.profile__body p + p { margin-top: 1.5em; }
.profile__photo { padding-top: 70px; }

/* ==========================================================
   メール登録
   ========================================================== */
.cta {
  position: relative; z-index: 1;
  background: var(--c-gray);
  padding: 70px 24px 90px;
  text-align: center;
}
.cta__lead {
  font-family: var(--f-hand);
  font-size: clamp(18px, 1.9vw, 34px);
  font-weight: bold;
  letter-spacing: .04em; color: #333;
  margin-bottom: 26px;
}
.cta__lead span {
  font-family: Consolas, Monaco, "Courier New", monospace;
}
.cta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4%;
  width: min(840px, 100%); height: clamp(84px, 9.5vw, 184px);
  background: var(--c-red); color: #fff;
  border-radius: 999px;
  font-size: clamp(20px, 2.4vw, 36px); font-weight: 700; letter-spacing: .06em;
  transition: filter .2s, transform .2s;
}
.cta__btn:hover { filter: brightness(1.08); }
.cta__btn img { width: clamp(30px, 3.2vw, 62px); filter: invert(1); }

/* ==========================================================
   フッター
   ========================================================== */
.footer { position: relative; z-index: 1; background: #111; color: #fff; padding: 72px 24px 30px; }
.footer__inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 40px;
}
.footer__company { font-family: var(--f-serif); font-size: 26px; letter-spacing: .06em; margin-bottom: 16px; }
.footer__addr, .footer__tel, .footer__privacy { font-size: 16px; line-height: 1.4; }
.footer__tel a { pointer-events: none; }
.footer__privacy { margin-top: 10px; }
.footer__privacy a:hover { text-decoration: underline; }
.footer__sns { margin-top: 16px; }
.footer__sns img { width: 32px; filter: invert(1); }
.footer__caution { font-size: 16px; line-height: 1.6; padding-top: 6px; }
.footer__copy { text-align: center; font-size: 14px; margin-top: 56px; color: #ccc; }
.footer__copy a:hover { text-decoration: underline;}

/* ==========================================================
   Coming Soon（10/26以降）
   ========================================================== */
.comingsoon { background: #fff; }
.comingsoon img { width: 100%; }

/* ==========================================================
   SP
   ========================================================== */
@media (max-width: 767px) {
  :root { --header-h: 46px; }
  .br-pc { display: none; }

  .mv { aspect-ratio: auto; padding: 112px 0 40px; }
  .mv__logo { top: 60px; left: calc(50% - 27px); width: 54px; }
  .mv__title { position: relative; top: 0; left: 5%; transform: none; width: 90%; padding-top: 160px; }
  .bnr { display: block; position: relative; right: auto; bottom: auto; width: 84%; margin: 24px auto 0; }
  .bnr:hover { transform: none; }

  .header { padding: 10px 12px; }
  .header__logo img { height: 18px; }
  .header__btn { --r: 5px; height: 32px; padding: 20px 16px; gap: 8px; font-size: 11px; }
  .header__btn img { width: 15px; }

  .message__panel { width: 100%; padding: 56px 35px 72px; }
  .message__title { font-size: 28px; margin-bottom: 36px; }
  .message__body { font-size: 15px; line-height: 1.6; }
  .message__body .is-gold { font-size: 18px; line-height: 1.6; }

  .history__panel { padding: 36px 0 72px; }
  .history__inner { grid-template-columns: 1fr; padding: 0 22px; gap: 44px; }
  .history__main { grid-column: 1; grid-row: 1; }
  .history__imgs { grid-column: 1; grid-row: 2; padding: 0; }
  .history__imgs .history__img01 { width: 61.5vw; max-width: none; margin-left: calc(7.5vw - 22px); }
  .history__imgs .history__img02 { width: 66vw; max-width: none; margin: 22px 0 0 calc(24.3vw - 22px); }
  .history__title { font-size: 28px; margin: 0 0 34px; }

  .timeline { --year-w: 0px; --dot-col: 0px; }
  .timeline::before { left: 5px; top: 12px; bottom: -26px; }
  .timeline::after { left: 5px; bottom: -26px; height: 14px; }
  .timeline li { padding: 0 0 34px 34px; }
  .timeline li::before { left: 0; top: 7px; width: 11px; height: 11px; }
  .timeline__year { position: static; width: auto; text-align: left; font-size: 20px; margin-bottom: 4px; }
  .timeline__text { font-size: 14px; line-height: 1.6; }
  .timeline li.is-last .timeline__year { font-size: 22px; }
  .timeline li.is-last .timeline__text { font-size: 18px; }
  .timeline li.is-last::before { left: -2px; top: 6px; width: 15px; height: 15px; }

  .product { padding: 64px 20px 8px; }
  .product__inner { --map-w: 90vw; flex-direction: column-reverse; gap: 28px; }
  .product__visual { margin: -80px auto; --bw: .27; }
  .product__bottle { left: 36%; width: calc(var(--bw) * 110%); }
  .product__note { padding: 0; text-align: center; font-size: 10px; white-space: normal; }
  .product__info { display: flex; flex-direction: column; align-items: center; }
  .product__logo { width: 76px; margin-bottom: 24px; }
  .product__spec { font-size: 18px; }
  .product__btn { font-size: 1.4rem; margin: 30px auto; padding: .6rem 1.5rem; }

  .profile { width: 90%; margin: 0 auto; padding: 64px 0 30px; }
  .profile__card { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px 44px; }
  .profile__role { font-size: 18px; }
  .profile__name { font-size: 26px; }
  .profile__name-en { font-size: 10px; }
  .profile__head { padding-bottom: 20px; margin-bottom: 24px; }
  .profile__body { font-size: 16px; padding: 0; line-height: 1.6; }
  .profile__photo { padding: 30px 0 20px; }
  .profile__photo img { width: 80%; margin: 0 auto; }

  .cta { padding: 44px 16px 52px; }
  .cta__lead { font-size: 15px; margin-bottom: 18px; }
  .cta__btn { height: 100px; font-size: 16px; }

  .footer { padding: 48px 24px 24px; }
  .footer__inner { flex-direction: column; gap: 28px; }
  .footer__company { font-size: 22px; }
  .footer__tel a { pointer-events: auto; text-decoration: underline; }  /* S: SPは電話リンク */
  .footer__copy { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
