/* ============================================================
   サイト共通ベース（全ページ）
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-padding-top: var(--site-header-offset);
}

@media (min-width: 561px) and (max-width: 1060px) {
  html {
    font-size: 1.45vw;
  }
}



:root {
  --c-primary: #13433f;
  --cp-green: #01443f;
  --cp-white: #fff;
  /* 固定ヘッダー分（#wrapper 上余白と同一・ハッシュ着地点の scroll-margin 相当） */
  --site-header-offset: 5.5rem;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  background: url(../images/common_02.webp) repeat;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

/* リンク・ボタン: :focus-visible が付かないフォーカス時だけブラウザ標準の枠を消す（Tab 等のキーボード操作は :focus-visible で各所のスタイルが効く） */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

#wrapper {
  width: 100%;
  padding: var(--site-header-offset) 0 0;
  overflow: hidden;
}

.sec {
  padding-block: 5rem;
}
.sec > .inner {
  max-width: 82rem; /* 1248px */
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ============================================================
   下層ページ共通（確認・完了・モーダル等で再利用）
   ============================================================ */

.sub-page-main > .sec {
  padding-top: 0 !important;
}
.sub-page-main #contact {
  background: none;
}
.sub-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.sub-page-main {
  flex: 1;
  padding: 9.375em 0 5em;
}

/* 見出しバー＋リード（確認・完了などで再利用） */
.sub-page-title-bar {
  border-top: 1px solid #13433f;
  border-bottom: 3px solid #13433f;
  padding: 1.2em 0;
  text-align: center;
  margin-bottom: 2em;
  font-size: 1.625em;
}
.sub-page-title {
  font-weight: 700;
}
.sub-page-lead {
  text-align: center;
  font-size: 1em;
  line-height: 1.875;
  margin-bottom: 3.5em;
}
.sub-page-lead p + p {
  margin-top: 1em;
}

@media (max-width: 560px) {
  .sub-page-main {
    padding: 3em 0.75rem 2.25em;
    font-size: 0.6rem;
  }
  .sub-page-main .sec > .inner {
    padding-inline: 0;
  }
  .sub-page-title-bar {
    font-size: 1.4em;
  }
  .sub-page-lead {
    font-size: 1em;
    text-align: left;
  }
}

/* ============================================================
   共通ユーティリティ（全ページ／旧 top.css 冒頭）
   ============================================================ */

/* SPのみ表示 / PCのみ表示（@media は下記 SP ブロックと同閾値） */
.sp-only {
  display: none !important;
}

/* セクションヘッダーラッパー */
.sec-head {
  text-align: center;
  margin: 0 0 var(--sec-head-mb, 4rem);
  font-size: inherit;
  font-weight: inherit;
}

/* セクション英語大見出し */
.sec-en {
  font-family: 'Montserrat', sans-serif;
  display: block;
  font-size: 5.5625rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* セクション日本語副見出し */
.sec-ja {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

/* セクション説明リード文 */
.sec-lead {
  font-size: 1rem;
  font-weight: 500;
  line-height: 2.2222;
  text-align: center;
}

/* 汎用ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.5em 1.5em;
  border-radius: 0.1875rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button.btn {
  font-family: inherit;
}

/* お問い合わせ確認・完了など（.btn の見た目拡張） */
.btn--cfm-send {
  /* width: 10.1875rem; */
  /* min-height: 3.0625rem; */
  display: flex;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5em 1em;
  box-sizing: border-box;
  background: #13433f;
  color: #fbf5e6;
  font-size: 1.125em;
  border: none;
  box-shadow: 0.125rem 0.125rem 0.5rem rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s;
}
.btn--cfm-send:hover {
  opacity: 0.85;
}
.btn--cfm-back {
  
  padding: 0.5em 1em;
  box-sizing: border-box;
  background: #849293;
  color: #fbf5e6;
  font-size: 0.8125em;
  box-shadow: 0.125rem 0.125rem 0.5rem rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s;
}
.btn--cfm-back:hover {
  opacity: 0.85;
}

/* FAQ Q/A マーク共通 */
.faq-mark {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

/* 商品名共通 */
.product-name {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.3333;
  text-align: center;
}

.bg-wave {
  position: absolute;
  top: 0;
  transform: translateY(-3rem) scale(1.01);
  width: 100vw;
}

.swiper-pagination-bullet {
  width: 0.4375em;
  height: 0.4375em;
  border-radius: 9999px;
  background: rgba(19, 67, 63, 1);
  opacity: 1;
  margin: 0;
}
.swiper-pagination-bullet-active {
  width: 1em;
  height: 1em;
  border-radius: 0;
  background: transparent;
  background-image: url("../images/product_04.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ============================================================
   ヘッダー・フッター
   ============================================================ */

/* ---------- Header bar ---------- */
.fv-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #00443f;
  z-index: 10;
  padding-block: 1.3rem;
}
.fv-header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.fv-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  flex: 0 0 auto;
}
.fv-logo {
  width: 8.6875rem;
  object-fit: contain;
  display: block;
}

@media(max-width:560px) {
  header.sec.fv-header .inner {
    padding-inline: 0.5em;
  }
}

/* CTA button */
.fv-cta {
  width: fit-content;
  padding: 0.5rem 1rem;
  border: 1px solid #fbf5e6;
  border-radius: 0.1875em;
  box-shadow: 0.125rem 0.125rem 0.5rem rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.fv-cta-text {
  color: #fbf5e6;
  font-size: 1rem;
  font-weight: 700;
}

.fv-cta-icon {
  width: 1em;
  aspect-ratio: 1 / 1;
  border: 1px solid #fbf5e6;
  border-radius: 9999px;
  position: relative;
  background: transparent;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-left: 0.8em;
}
.fv-cta-icon-line {
  height: 1px;
  width: 120%;
  background: #fbf5e6;
  border-radius: 9999px;
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translate(0, -50%);
}
.fv-hamburger {
  width: 2.625rem;
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.4rem;
}
.fv-hamburger-lines {
  width: 100%;
  height: 2px;
  background: #fbf5e6;
  border-radius: 9999px;
  position: relative;
  display: block;
}
.fv-hamburger-lines::before,
.fv-hamburger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fbf5e6;
  border-radius: 9999px;
}
.fv-hamburger-lines::before {
  top: -0.6rem;
}
.fv-hamburger-lines::after {
  top: 0.6rem;
}

/* ========================================
   SP MENU (Figma: メニューSP)
======================================== */
.sp-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.sp-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.sp-menu__inner {
  background: #13433f;
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 2em;
}
.sp-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.sp-menu__logo {
  display: block;
  width: 72px;
}
.sp-menu__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* 円形×閉じる（メニュー／モーダル共通） */
.btn-close {
  width: 2em;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  border: 0;
  background: #fbf5e6;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.btn-close::before,
.btn-close::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 2px;
  background: #13433f;
  border-radius: 9999px;
}
.btn-close::before {
  transform: rotate(45deg);
}
.btn-close::after {
  transform: rotate(-45deg);
}
.btn-close:focus-visible {
  outline: 2px solid #fbf5e6;
  outline-offset: 3px;
}

.sp-menu__nav {
  width: 100%;
  border-bottom: 1px solid #fbf5e6;
}
.sp-menu__link {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid #fbf5e6;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}
.sp-menu__link:focus-visible {
  outline: 2px solid #fbf5e6;
  outline-offset: 4px;
}

.sp-menu__banner {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}
.sp-menu__banner:focus-visible {
  outline: 2px solid #fbf5e6;
  outline-offset: 4px;
}
.sp-menu__banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* PC・タブレット：メニューは右 350px のパネルのみ */
@media (min-width: 561px) {
  .sp-menu__inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 350px;
    max-width: 100%;
    height: 100%;
    gap: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

body.is-menu-open {
  overflow: hidden;
}

/* ========================================
   ご購入モーダル（Amazon / Rakuten）
======================================== */
.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.purchase-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.purchase-modal__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.purchase-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  padding: 3.2em 2.5em 1.75em;
  background: #13433f;
  border-radius: 0.1875em;
  font-size: 1em;
}
.purchase-modal__close {
  position: absolute;
  top: 0.75em;
  right: 0.75em;
}
.purchase-modal .product-ctas {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
  margin: 0;
}
.purchase-modal .product-ctas .btn {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.875em;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.75em 1em;
  border: 0;
  color: #fbf5e6;
}
.purchase-modal .product-btn-amazon {
  background: #e87000;
  box-shadow: 0.125rem 0.125rem 0.5rem rgba(0, 0, 0, 0.25);
}
.purchase-modal .product-btn-rakuten {
  background: #f0000f;
  box-shadow: 0.125rem 0.125rem 0.5rem rgba(0, 0, 0, 0.25);
}

body.is-purchase-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .purchase-modal__dialog {
    font-size: 0.6em;
  }
}

/* ========================================
   プライバシーポリシー（お問い合わせ同意モーダル）
======================================== */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.privacy-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.privacy-modal__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.privacy-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  max-height: calc(100dvh - 3rem);
  overflow: hidden;
  border-radius: 0.1875em;
  background: var(--c-primary);
  color: #fbf5e6;
  font-size: 1em;
  padding:4em 2.5em;
}
.privacy-modal__close {
  position: absolute;
  top: 0.75em;
  right: 0.75em;
  z-index: 2;
}
.privacy-modal__content.sub-page-main {
  padding: 0 0 2.5em;
  max-height: calc(100dvh - 3rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.privacy-modal .sub-page-title-bar {
  border-top: 1px solid #fbf5e6;
  border-bottom: 3px solid #fbf5e6;
  padding: 1.2em 0;
  text-align: center;
  margin-bottom: 2em;
  font-size: 1.625em;
}
.privacy-modal .sub-page-title {
  font-weight: 700;
  color: #fbf5e6;
}
.privacy-modal .sub-page-lead {
  text-align:left;
}
.privacy-modal__inner {padding-bottom:2em;}
.privacy-modal__inner a {
  color: #fbf5e6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* privacy policy 本文（モーダル内） */
.pp-body {
  font-size: 1em; /* base = 12px 相当（親 16px 想定） */
  line-height: 1.6667;
}
.pp-section {
  border-top: 1px solid #fbf5e6;
  padding: 1.4em 0;
}
.pp-section--last {
  border-bottom: 1px solid #fbf5e6;
}
h3.pp-sec-title {
  font-size: 1.25em; /* 15px 相当 */
  font-weight: 700;
  margin: 0 0 0.8em;
}
.pp-text {
  font-size: 1em;
  margin: 0;
}
.pp-text + .pp-text {
  margin-top: 0.9em;
}
.pp-subhead {
  font-weight: 700;
  margin-top: 1.1em;
}
.pp-list {
  margin: 0.6em 0 0 01em;
  padding-left: 1.2em;
  font-size: 1em;
}
.pp-list li + li {
  margin-top: 0.35em;
}
.pp-list--indent {
  padding-left: 1.6em;
}
.pp-meta {
  font-size: 0.9167em;
  margin-top: 1.2em;
  text-align: right;
}
body.is-privacy-modal-open {
  overflow: hidden;
}
@media (max-width: 560px) {
  .privacy-modal {
    padding:1rem 4vw 1rem;
  }
  .privacy-modal__dialog {
    font-size: 0.4em;
    padding: 2em 1.5em;
  }
  .privacy-modal__content.sub-page-main {
    padding: 3.5em 0 2.25em;
  }
  .privacy-modal .sub-page-title-bar {
    font-size: 1.4em;
  }
}

/* ========================================
   FOOTER（キャンペーン Figma / 全ページ統一）
======================================== */
.pagetop-wrap {
  position: absolute;
  top: 0;
  height: 4.375rem;
  width: 100%;
  z-index: 1;
  transform: translateY(-50%);
}
.pagetop-wrap.static + .pagetop-fixed {
  position: absolute;
  top: 0;
}

#footer.footer--campaign {
  background: transparent;
  color: var(--cp-white);
  padding: 0;
  margin-top: 5em;
  position: relative;
}
.footer-hero {
  position: relative;
}
.footer-hero-bg-wrap {
  height: 18.625rem;
  overflow: hidden;
  position: relative;
}
.footer-hero-bg {
  width: 100%;
  aspect-ratio: 1440 / 765;
  position: absolute;
  top: 0;
}
.footer-hero-inner {
  position: absolute;
  inset: 0;
  max-width: 82rem;
  width: 100%;
  margin-inline: auto;
  padding-inline: 2em;
  box-sizing: border-box;
  pointer-events: none;
}
.footer-hero-cluster {
  position: absolute;
  left: 50%;
  bottom: -12%;
  transform: translateX(-50%);
  width: 25%;
  pointer-events: none;
}
.footer-cluster-grass {
  position: absolute;
  left: 22%;
  bottom: 0;
  width: 78%;
  max-width: 11.5rem;
  height: auto;
}

.footer-bar {
  background: var(--cp-green);
  padding: clamp(1.75em, 4vw, 2.375em) 0 clamp(1.5em, 3vw, 2.5em);
}
.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5em 2em;
  padding-inline: clamp(1em, 5vw, 4.9375em);
}
a.footer-bar-logo {
  display: block;
  width: 15%;
  max-width: 12.3125rem;
}
.footer-bar-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35em;
}
.footer-bar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35em clamp(0.75em, 2vw, 1.75em);
  font-size: 0.875em;
  font-weight: 500;
}
.footer-bar-nav a {
  color: var(--cp-white);
  text-decoration: none;
  white-space: nowrap;
}
.footer-bar-nav a:hover {
  text-decoration: underline;
}
.footer-bar-copy {
  margin: 0;
  font-size: 0.75em;
  font-weight: 500;
  color: var(--cp-white);
  text-align: right;
}

@media (max-width: 560px) {
  a.footer-bar-logo {
    width: 50%;
  }
  #footer.footer--campaign {
    margin-top: 3em;
  }
  .footer-hero-cluster {
    width: 50%;
    margin-left: 0.9em;
  }
  .footer-hero-bg-wrap {
    height: 50vw;
  }
  .footer-bar {
    font-size: 0.6em;
    padding-top: 3em;
  }
  .footer-bar-inner {
    justify-content: center;
    gap: 2em;
  }
  .footer-bar-nav,
  .footer-bar-meta {
    justify-content: center;
    align-items: center;
    gap: 2em;
  }
  .footer-bar-nav {
    gap: 1em 2em;
  }
}

/* ---------- Fixed PAGE TOP ---------- */
.pagetop-fixed{
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  width: 4.375rem;
  height: 4.375rem;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -50%, 0);
  transition: opacity 260ms ease, transform 260ms ease, visibility 0s linear 260ms;
}
.pagetop-fixed img{
  width: 100%;
  height: 100%;
  display: block;
}
.pagetop-fixed.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0);
  transition: opacity 260ms ease, transform 260ms ease, visibility 0s;
}
.pagetop-fixed:focus-visible{
  outline: 3px solid rgba(251,245,230,.95);
  outline-offset: 4px;
  border-radius: 9999px;
}
@media (prefers-reduced-motion: reduce){
  .pagetop-fixed{transition:none;transform:none;}
}

@media (max-width: 560px) {
  /* ---- 共通（ベース・ユーティリティは common.css）---- */

  .pagetop-fixed{
    width: 2.5rem;
    height: 2.5rem;
    right:0.8rem;
    bottom:1rem;
  }
}

/* ============================================================
   SP（≤ 560px）
   ============================================================ */
@media (max-width: 560px) {
  :root {
    --site-header-offset: 2.4rem;
  }

  html {
    font-size: 6.9vw;
  }

  #wrapper {
    padding-top: var(--site-header-offset);
    width: 100vw;
    overflow: hidden;
  }

  .sec {
    padding-block: 1.8rem;
  }
  .sec > .inner {
    padding-inline: 0.7rem;
  }

  .sp-only {
    display: revert !important;
  }
  .pc-only {
    display: none !important;
  }

  /* セクション見出し・ボタン・Swiper（旧 top.css SP） */
  .sec-head {
    margin-bottom: 1.2rem;
  }
  .sec-en {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
  }
  .sec-ja {
    font-size: 0.65rem;
  }
  .sec-lead {
    font-size: 0.55rem;
    line-height: 2;
  }
  .btn {
    font-size: 0.7rem;
  }
  .btn--cfm-back {
    font-size:0.55rem;
    width: 40%;
  }
  .swiper-pagination {
    font-size: 0.6rem;
  }

  .ab-bottom .bg-wave {
    transform: translateY(-1rem) scale(1.01);
  }

  .product-name {
    font-size: 0.9rem;
    line-height: 1.4444;
  }

  #whats-ginger-beer .bg-wave {
    transform: translateY(-1.5rem) scaleY(3);
    transform-origin: top center;
  }

  .faq-mark {
    font-size: 0.75rem;
  }

  /* ---- Header ---- */
  .fv-header {
    padding-block: 0.5rem;
  }
  .fv-logo {
    width: 3.8rem;
    height: auto;
  }
  .fv-header-actions {
    gap: 0.45rem;
  }
  .fv-cta {
    font-size: 0.5em;
    padding: 0.4em 0.6em;
    gap: 0.2em;
  }
  .fv-cta-text {
    font-size: 0.45rem;
  }
  .fv-hamburger {
    width: 1.4rem;
    padding-inline: 0.2rem;
  }
  .fv-hamburger-lines::before {
    top: -0.35rem;
  }
  .fv-hamburger-lines::after {
    top: 0.35rem;
  }
}
