:root {
  --lp-max: 1040px;
  /* 1040pxデザインを基準に、SPでは比例縮小。PCは1 design unit = 1pxで上限固定 */
  --u: min(1px, 0.0961538462vw);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --sky: #45a9e9;
  --green: #42b725;
  --blue: #1d5690;
  --ticket-green: #79c631;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #080808;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
button, a { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.lp {
  position: relative;
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  padding-bottom: min(190px, 18.269231vw);
}

.section-anchor { scroll-margin-top: min(36px, 3.461538vw); }
.future-anchor { height: 0; }

/* HERO */
.hero { position: relative; }
.hero img { width: 100%; height: auto; }

/* INTRO */
.intro {
  padding: min(78px, 7.5vw) min(58px, 5.576923vw) min(140px, 13.461538vw);
  background: #fff;
}
.intro__copy {
  text-align: center;
  font-size: min(34px, 3.269231vw);
  line-height: 1.52;
  letter-spacing: .01em;
}
.intro__copy p { margin: 0 0 min(62px, 5.961538vw); }
.intro__copy p:last-child { margin-bottom: min(86px, 8.269231vw); }

.page-nav { display: grid; gap: min(20px, 1.923077vw); }
.page-nav__item,
.page-nav__half {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(112px, 10.769231vw);
  padding: min(20px, 1.923077vw) min(30px, 2.884615vw);
  font-size: min(37px, 3.557692vw);
  font-weight: 700;
  text-align: center;
  background-size: 100% auto;
  background-position: center;
  border-radius: min(70px, 6.730769vw);
  transition: filter .2s ease, transform .2s ease;
}
.page-nav__item:hover,
.page-nav__half:hover { filter: brightness(.96); }
.page-nav__item:active,
.page-nav__half:active { transform: scale(.99); }
.page-nav__item--beige { background-image: url("../assets/bg-beige.jpg"); }
.page-nav__item--orange { background-image: url("../assets/bg-orange.jpg"); }
.page-nav__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: min(70px, 6.730769vw);
}
.page-nav__half { border-radius: 0; color: #fff; }
.page-nav__half--green { background-image: url("../assets/bg-green.jpg"); }
.page-nav__half--blue { background-image: url("../assets/bg-blue.jpg"); }

/* LOOP PHOTO STRIP */
.photo-loop {
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.photo-loop__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: photoLoop 46s linear infinite;
}
.photo-loop__group { display: flex; flex: none; }
.photo-loop__group img {
  flex: none;
  width: min(620px, 59.615385vw);
  height: min(410px, 39.423077vw);
  object-fit: cover;
}
@keyframes photoLoop {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}

/* SECTION HEADING */
.section-heading {
  position: relative;
  min-height: min(470px, 45.192308vw);
  padding: min(170px, 16.346154vw) min(50px, 4.807692vw) min(28px, 2.692308vw);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: min(34px, 3.269231vw);
  background: #fff;
  overflow: hidden;
}
.section-heading h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: min(52px, 5vw);
  line-height: 1.16;
  font-weight: 900;
  text-align: center;
  letter-spacing: -.02em;
}
.section-heading > img,
.section-heading__bottles {
  position: relative;
  z-index: 1;
  align-self: flex-end;
}
.section-heading--brewery > img { width: min(230px, 22.115385vw); }
.section-heading__bottles {
  display: flex;
  align-items: flex-end;
  margin-left: min(10px, 0.961538vw);
}
.section-heading__bottles img:first-child { width: min(115px, 11.057692vw); transform: rotate(-3deg); }
.section-heading__bottles img:last-child { width: min(122px, 11.730769vw); margin-left: max(-12px, -1.153846vw); transform: rotate(4deg); }
.section-heading--food > img:first-child { width: min(270px, 25.961538vw); }
.section-heading--food > img:last-child { width: min(260px, 25vw); }
.section-heading--venue > img:first-child { width: min(290px, 27.884615vw); }
.section-heading--venue > img:last-child { width: min(210px, 20.192308vw); }
.section-heading--access > img:first-child { width: min(270px, 25.961538vw); }
.section-heading--access > img:last-child { width: min(250px, 24.038462vw); }

/* TEXTURE */
.textured {
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
}
.textured--beige { background-image: url("../assets/bg-beige.jpg"); }
.textured--orange { background-image: url("../assets/bg-orange.jpg"); }
.textured--yellow { background-image: url("../assets/bg-yellow.jpg"); }
.textured--blue-light { background-image: url("../assets/bg-blue-light.jpg"); }

/* BREWERIES */
.brewery-list {
  padding: min(112px, 10.769231vw) min(72px, 6.923077vw) min(170px, 16.346154vw);
}
.brewery-card {
  text-align: center;
  margin: 0 auto min(150px, 14.423077vw);
}
.brewery-card:last-child { margin-bottom: 0; }
.brewery-card__logo-box {
  width: min(650px, 62.5vw);
  height: min(650px, 62.5vw);
  margin: 0 auto min(45px, 4.326923vw);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(68px, 6.538462vw);
  background: #fff;
}
.brewery-card__logo-box img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brewery-card h3 {
  margin: 0;
  font-size: min(55px, 5.288462vw);
  line-height: 1.25;
  font-weight: 900;
}
.brewery-card__city {
  margin: min(10px, 0.961538vw) 0 min(50px, 4.807692vw);
  font-size: min(40px, 3.846154vw);
  line-height: 1.3;
}
.brewery-card__copy {
  margin: 0;
  text-align: left;
  font-size: min(36px, 3.461538vw);
  line-height: 1.52;
  letter-spacing: -.015em;
}
.beer-button,
.primary-button {
  width: min(620px, 59.615385vw);
  min-height: min(100px, 9.615385vw);
  margin: min(64px, 6.153846vw) auto 0;
  border: 0;
  border-radius: min(60px, 5.769231vw);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky);
  color: #fff;
  font-size: min(42px, 4.038462vw);
  font-weight: 900;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.beer-button:hover,
.primary-button:hover { opacity: .9; }
.beer-button:active,
.primary-button:active { transform: scale(.99); }

/* FEATURE */
.feature {
  padding: min(100px, 9.615385vw) min(52px, 5vw) min(105px, 10.096154vw);
}
.feature h3 {
  margin: 0 0 min(56px, 5.384615vw);
  text-align: center;
  font-size: min(51px, 4.903846vw);
  line-height: 1.28;
  font-weight: 900;
}
.feature__photo {
  width: 100%;
  height: auto;
  margin: 0 auto min(58px, 5.576923vw);
}
.feature p {
  margin: 0;
  font-size: min(37px, 3.557692vw);
  line-height: 1.52;
  letter-spacing: -.015em;
}
.feature__note {
  margin-top: min(30px, 2.884615vw) !important;
  font-size: min(25px, 2.403846vw) !important;
}

/* ACCESS */
.access {
  padding: min(52px, 5vw) min(58px, 5.576923vw) min(112px, 10.769231vw);
}
.access__map-box {
  padding: min(68px, 6.538462vw) min(42px, 4.038462vw);
  background: #fff;
}
.access__map-box img { width: 100%; }
.access .primary-button { color: #080808; }

/* HAMBURGER */
.hamburger {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  width: min(112px, 10.769231vw);
  height: min(112px, 10.769231vw);
  min-width: 42px;
  min-height: 42px;
  border: 0;
  padding: min(23px, 2.211538vw);
  background: #087b1a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: min(12px, 1.153846vw);
}
.hamburger span {
  display: block;
  width: 100%;
  height: max(3px, min(7px, 0.673077vw));
  background: #fff;
}

/* DRAWER */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.38);
  opacity: 0;
  transition: opacity .3s ease;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 760px);
  height: 100%;
  padding: max(74px, min(150px, 14.423077vw)) min(48px, 4.615385vw) min(80px, 7.692308vw);
  overflow-y: auto;
  background: #fff;
  transform: translateX(105%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__close,
.beer-modal__close {
  position: absolute;
  top: min(28px, 2.692308vw);
  right: min(28px, 2.692308vw);
  width: min(74px, 7.115385vw);
  height: min(74px, 7.115385vw);
  min-width: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--sky);
  cursor: pointer;
}
.drawer__close::before,
.drawer__close::after,
.beer-modal__close::before,
.beer-modal__close::after {
  content: "";
  position: absolute;
  left: 23%;
  top: 49%;
  width: 54%;
  height: 2px;
  background: #fff;
}
.drawer__close::before,
.beer-modal__close::before { transform: rotate(45deg); }
.drawer__close::after,
.beer-modal__close::after { transform: rotate(-45deg); }
.drawer__nav { display: grid; gap: min(22px, 2.115385vw); }
.drawer__nav a {
  display: flex;
  align-items: center;
  min-height: min(118px, 11.346154vw);
  padding: min(24px, 2.307692vw) min(36px, 3.461538vw);
  border-radius: min(18px, 1.730769vw);
  background: url("../assets/bg-beige.jpg") center / 100% auto;
  font-size: min(34px, 3.269231vw);
  line-height: 1.35;
  font-weight: 700;
}
.drawer__nav a:nth-child(3) { background-image: url("../assets/bg-orange.jpg"); }
.drawer__nav a:nth-child(4) { background-image: url("../assets/bg-green.jpg"); color:#fff; }
.drawer__nav a:nth-child(5) { background-image: url("../assets/bg-blue.jpg"); color:#fff; }
.drawer__nav .drawer__ticket { background-image: url("../assets/bg-green.jpg"); color:#fff; justify-content:center; }

/* BEER MODAL */
.beer-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
}
.beer-modal.is-open { visibility: visible; pointer-events: auto; }
.beer-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .25s ease;
}
.beer-modal.is-open .beer-modal__backdrop { opacity: 1; }
.beer-modal__dialog {
  position: relative;
  width: min(92vw, 760px);
  max-height: 90vh;
  background: #fff;
  border: 1px solid #333;
  transform: translateY(16px) scale(.985);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  overflow: hidden;
}
.beer-modal.is-open .beer-modal__dialog { transform: none; opacity: 1; }
.beer-modal__close { z-index: 2; }
.beer-modal__scroll {
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: min(75px, 7.211538vw) min(62px, 5.961538vw) min(82px, 7.884615vw);
}
.modal-brewery-title {
  margin: 0 0 min(46px, 4.423077vw);
  padding-right: min(80px, 7.692308vw);
  text-align: center;
  font-size: min(52px, 5vw);
  line-height: 1.3;
  font-weight: 900;
}
.modal-product { margin: 0 0 min(95px, 9.134615vw); }
.modal-product:last-child { margin-bottom: 0; }
.modal-product img {
  width: min(100%, min(560px, 53.846154vw));
  margin: 0 auto min(26px, 2.5vw);
}
.modal-product h3 {
  margin: 0;
  text-align: center;
  font-size: min(47px, 4.519231vw);
  line-height: 1.25;
  font-weight: 900;
}
.modal-product__price {
  margin: min(6px, 0.576923vw) 0 min(38px, 3.653846vw);
  text-align: center;
  font-size: min(35px, 3.365385vw);
}
.modal-product__copy {
  margin: 0;
  font-size: min(32px, 3.076923vw);
  line-height: 1.48;
}
.modal-comingsoon {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.modal-comingsoon img {
  width: min(78%, min(560px, 53.846154vw));
  max-height: 220px;
  object-fit: contain;
  margin-bottom: min(48px, 4.615385vw);
}
.modal-comingsoon p { font-size: min(34px, 3.269231vw); line-height: 1.5; }

/* FIXED TICKET */
.ticket-banner {
  position: fixed;
  z-index: 900;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(min(920px, 88.461538vw), calc(100vw - 24px));
  min-height: min(150px, 14.423077vw);
  padding: min(18px, 1.730769vw) min(32px, 3.076923vw);
  border: max(3px, min(10px, 0.961538vw)) solid #fff;
  border-radius: min(32px, 3.076923vw);
  background: url("../assets/bg-green.jpg") center / cover;
  color: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.23);
  font-weight: 900;
}
.ticket-banner__matches {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: min(18px, 1.730769vw);
  align-items: center;
  font-size: min(26px, 2.5vw);
  line-height: 1.2;
}
.ticket-banner__matches strong { font-size: min(39px, 3.75vw); }
.ticket-banner__matches span { font-size: min(23px, 2.211538vw); }
.ticket-banner__matches i { width:1px; height: 100%; min-height: min(54px, 5.192308vw); background:#fff; opacity:.9; }
.ticket-banner__bottom {
  margin-top: min(9px, 0.865385vw);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: min(18px, 1.730769vw);
  font-size: min(23px, 2.211538vw);
  line-height: 1.15;
}
.ticket-banner__bottom b { font-size: min(32px, 3.076923vw); white-space: nowrap; }

/* FOOTER */
.site-footer {
  width: 100%;
  padding: 28px 20px 30px;
  background: var(--ticket-green);
  color: #fff;
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

/* Focus */
:focus-visible { outline: 3px solid #111; outline-offset: 3px; }

/* Very narrow devices */
@media (max-width: 430px) {
  .beer-modal__dialog { width: 94vw; }
  .drawer__panel { width: 90vw; }
  .ticket-banner { width: calc(100vw - 14px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer__panel,
  .drawer__backdrop,
  .beer-modal__dialog,
  .beer-modal__backdrop { transition-duration: .01ms; }
  /* ユーザー仕様として自動スクロールは停止しない。速度のみ緩和 */
  .photo-loop__track { animation-duration: 70s; }
}

/* ===== v2 corrections ===== */
body { overflow-x: hidden; }
.lp { overflow: visible; }
.section-anchor { scroll-margin-top: 0; }

/* Illustrator title strips: illustration + text are kept as one image. */
.section-heading.section-heading--image {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.section-heading.section-heading--image > img {
  position: static;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

/* Drawer close button mirrors the hamburger button. */
.drawer__close {
  top: 0;
  right: 0;
  width: min(112px, 10.769231vw);
  height: min(112px, 10.769231vw);
  min-width: 42px;
  min-height: 42px;
  border-radius: 0;
  background: #087b1a;
}
.drawer__close::before,
.drawer__close::after {
  left: 22%;
  width: 56%;
  height: max(3px, min(7px, 0.673077vw));
}

/* Ticket banner is fixed to the browser viewport, independent from the 1040px LP. */
.ticket-banner {
  left: auto;
  right: 0;
  bottom: max(0px, env(safe-area-inset-bottom));
  transform: none;
  width: min(1040px, 100vw);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}
.ticket-banner > img {
  width: 100%;
  height: auto;
  max-width: none;
}
.ticket-banner__matches,
.ticket-banner__bottom { display: none; }

@media (min-width: 1041px) {
  /* PC navigation buttons: approximately 70% of the Illustrator/SP size. */
  .page-nav {
    width: 70%;
    margin-inline: auto;
    gap: 14px;
  }
  .page-nav__item,
  .page-nav__half {
    min-height: 78px;
    padding: 14px 21px;
    font-size: 26px;
    border-radius: 49px;
  }
  .page-nav__split { border-radius: 49px; }
  .page-nav__half { border-radius: 0; }

  /* PC hamburger / close: 75% of the original size. */
  .hamburger,
  .drawer__close {
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
  }
  .hamburger { padding: 17px; gap: 9px; }
  .hamburger span,
  .drawer__close::before,
  .drawer__close::after { height: 5px; }

  /* On desktop the photo strip escapes the 1040px LP and spans the viewport. */
  .photo-loop {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  .photo-loop__group img {
    width: 620px;
    height: 410px;
  }

  /* PC body typography: approximately 80% of the original desktop scale. */
  .intro__copy { font-size: 27.2px; }
  .brewery-card h3 { font-size: 44px; }
  .brewery-card__city { font-size: 32px; }
  .brewery-card__copy { font-size: 28.8px; }
  .feature h3 { font-size: 40.8px; }
  .feature p { font-size: 29.6px; }
  .feature__note { font-size: 20px !important; }
  .beer-button,
  .primary-button { font-size: 33.6px; }

  /* PC popup typography: headings and body copy are also reduced to ~80%. */
  .modal-brewery-title { font-size: 41.6px; }
  .modal-product h3 { font-size: 37.6px; }
  .modal-product__price { font-size: 28px; }
  .modal-product__copy { font-size: 25.6px; }
  .modal-comingsoon p { font-size: 27.2px; }

  /* Ticket banner: Illustrator artwork at 70% size, fixed bottom-right of the window. */
  .ticket-banner { width: 728px; }
}


/* ===== v4 corrections ===== */
/* Drawer remains visible during its closing transition. */
.drawer {
  visibility: hidden;
  transition: visibility 0s linear .36s;
}
.drawer.is-open {
  visibility: visible;
  transition-delay: 0s;
}
.drawer__backdrop {
  transition: opacity .3s ease;
}
.drawer__panel {
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

/* Drawer navigation: left aligned, no forced line breaks. */
.drawer__nav a,
.drawer__nav .drawer__ticket {
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
}

/* Give the first brewery heading the same breathing room as other sections. */
.brewery-block {
  padding-top: min(105px, 10.096154vw);
  background: #fff;
}

/* SP: use the original v2 inner horizontal padding.
   Outer content margin is 2.25vw on each side. */
@media (max-width: 1040px) {
  .intro,
  .brewery-list,
  .feature,
  .access {
    width: 95.5vw;
    margin-left: auto;
    margin-right: auto;
  }

  /* Compact footer height on SP. */
  .site-footer {
    padding: 12px 12px 13px;
  }
  .site-footer p {
    font-size: 10px;
    line-height: 1.35;
  }

  /* SP drawer fills the viewport width. */
  .drawer__panel {
    width: 100vw;
    max-width: none;
  }
}

@media (max-width: 430px) {
  .drawer__panel { width: 100vw; }
}

@media (min-width: 1041px) {
  /* PC drawer text: about 70% of the previous menu size. */
  .drawer__nav a {
    font-size: 23.8px;
    line-height: 1.4;
  }
}

/* ===== v11 popup header / copy spacing corrections ===== */
/* Keep the close control compact so the brewery name can sit centered below it. */
.beer-modal__close {
  top: clamp(14px, 1.75vw, 18px);
  right: clamp(14px, 1.75vw, 18px);
  width: clamp(34px, 4.98vw, 52px);
  height: clamp(34px, 4.98vw, 52px);
  min-width: 34px;
  min-height: 34px;
}

/* Reserve a dedicated header zone below the close button. */
.beer-modal__scroll {
  padding-top: clamp(68px, 7.211538vw, 75px);
}

.modal-brewery-title {
  width: 100%;
  padding-right: 0;
  text-align: center;
}

/* Add roughly half a line of breathing room before each product description. */
.modal-product__copy {
  margin-top: .74em;
}
