/* ============================================================
   水想い MIZUOMOI ブランドサイト CSS
   ============================================================ */

:root {
  --navy: #001890;
  --white: #ffffff;
  --content-width: 500px;
}

/* ============================================================
   リセット
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  background: #fff;
  color: var(--navy);
  padding-top: 0px;
  padding-bottom: 0;        /* 80px → 0（下の余白を削除） */
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   サイドナビ：デフォルトは非表示（1070px以上でのみ表示）
   ============================================================ */
aside.header__sidenav {
  display: none !important;
}

/* ============================================================
   ヘッダー（500px以下：画面幅いっぱい）
   ============================================================ */
/* after */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
  transition: transform 0.3s ease;
  padding-top: 8px;   /* ← 追加：上部に8pxの余白 */
}

/* ===== ヘッダーの出し入れ ===== */
.header.is-hidden {
  transform: translateY(-100%);   /* 下スクロールで隠す */
}

/* ===== FV内はロゴだけ非表示 ===== */
.header__logo {
  transition: opacity 0.3s ease;
}
.header.is-logo-hidden .header__logo {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 501px) {
  /* …既存の .header { left:50%; transform:translateX(-50%); … } はそのまま… */

  .header.is-hidden {
    transform: translateX(-50%) translateY(-100%);   /* ← 中央寄せを保ったまま隠す */
  }
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  height: 52px;            /* ★ 48px→52px */
  pointer-events: auto;    /* ★ ロゴ・ストア・ハンバーガーはクリック可 */
}

/* ----- 左：ロゴ ----- */
/* ----- 左：ロゴ ----- */
.header__logo {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* ★ center → flex-start（左寄せ） */
  flex: 1;
  padding: 10px 0 10px 12px;     /* ★ 左に12pxの余白（位置はお好みで） */
}

.header__logo-img {
  height: 52px;
  width: auto;
  display: block;
}

/* ----- 右側まとめ ----- */
.header__right {
  display: flex;
  align-items: center;   /* ★ stretch → center（高さいっぱいにしない） */
  gap: 10px;             /* ★ ストアボタンとハンバーガーの間隔 */
  padding-right: 12px;   /* ★ 右端の余白 */
}

/* 公式オンラインストアボタン（PC/SP共通） */
.header__store {
  background: #001890;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;            /* ★ 34px → 30px（丸い背景をさらに小さく） */
  padding: 0 13px;         /* ★ 16px → 13px（左右の余白を詰める） */
  border-radius: 999px;
  font-size: 12px;         /* ★ 13px → 12px（テキストを小さく） */
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.2s;
}

.header__store-text {
  position: relative;     /* ★ マイナスで上へ。数値で微調整（-1px 〜 -3px くらい） */
}

.header__store:hover {
  background: #001070;
}

/* SP用ハンバーガー */
.header__hamburger {
  background: transparent;   /* ★ 紺色の四角を削除 */
  border: none;              /* ★ 左の区切り線も削除 */
  cursor: pointer;
  width: 40px;               /* ★ 52px → 40px（小さく） */
  height: 40px;              /* ★ タップ領域を確保 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.header__hamburger-bars {
  position: relative;
  display: block;
  width: 24px;           /* 線の長さ */
  height: 1.2px;           /* 線の太さ */
  background: #001890;
}
.header__hamburger-bars::before,
.header__hamburger-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 1.2px;
  background: #001890;
}
.header__hamburger-bars::before { top: -7px; }  /* 上の線（間隔） */
.header__hamburger-bars::after  { top:  7px; }  /* 下の線（間隔） */

/* ============================================================
   SP用スライドメニュー（ネイビー背景）
   ============================================================ */
.header__menu-sp {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;             /* パネル幅（調整可） */
  height: 100vh;
  background: #001890;          /* ← ネイビー */
  color: #fff;
  padding: 72px 30px 40px;      /* 上は×ボタンの分の余白 */
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  overflow-y: auto;
  z-index: 1001;                /* ヘッダー(1000)より前面 */
  display: flex;
  flex-direction: column;
}

.header__menu-sp.is-open {
  transform: translateX(0);
}

/* 閉じるボタン（×） */
.header__menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* メニュー項目（白文字＋下線） */
.header__menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.header__menu-list li {
  margin: 0;
}
.header__menu-list li a {
  display: block;
  background: none;             /* pill背景を消す */
  border-radius: 0;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.35);   /* 下線 */
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}
.header__menu-list li a::after {
  content: none;                /* 既存の「>」を消す */
}

/* OFFICIAL SNS ラベル */
.header__menu-snstitle {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
  margin-bottom: 16px;
}

/* LINE（他で使っている画像を流用） */
.header__menu-line img {
  width: 50px;
  height: 50px;
  display: block;
  margin-bottom: 32px;
}

/* 公式オンラインストアボタン（白・角丸） */
.header__menu-store {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #001890;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 28px;
  border-radius: 999px;
  margin-top: auto;             /* 一番下に押し下げる */
}
.header__menu-store::after {
  content: "＞";
  font-weight: 400;
}

/* ============================================================
   中央コンテンツエリア（デフォルト：画面幅いっぱい）
   ============================================================ */
.page-wrapper {
  width: 100%;
  background: #fff;   /* ★ 追加：500px以下でも白背景を敷く */
}

/* ============================================================
   501px以上：ヘッダー＆コンテンツを 500px 中央寄せ＋背景画像表示
   （ハンバーガーは引き続き表示。サイドナビは1070px以上のみ）
   ============================================================ */
@media (min-width: 501px) {

  body {
    background-image: url('../images/bg_1.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
  }

  /* ヘッダーをコンテンツ幅に合わせて中央配置 */
  .header {
    left: 50%;
    transform: translateX(-50%);
    max-width: var(--content-width);
  }

  /* コンテンツも500px幅で中央寄せ＆白背景 */
  .page-wrapper {
    max-width: var(--content-width);
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 40px rgba(0,0,50,0.12);
  }
}

/* ============================================================
   375px以下：ヘッダーを等倍縮小（JSと併用）
   ============================================================ */
@media (max-width: 375px) {
  .header {
    overflow: hidden;   /* 縮小時のはみ出しをクリップ */
  }
}

/* ============================================================
   1070px以上：サイドナビ表示・ハンバーガー非表示
   ============================================================ */
@media (min-width: 1070px) {

  body {
    padding-bottom: 0;
  }

  /* PC：ハンバーガーは非表示 */
  .header__hamburger {
    display: none;
  }

  /* PC：SPスライドメニューは使わない */
  .header__menu-sp {
    display: none;
  }

  /* ----- PC：右側追従サイドナビ（ここでだけ表示） ----- */
  aside.header__sidenav {
    display: block !important;
    position: fixed;
    top: 100px;
    left: calc(75% + var(--content-width) / 4);   /* ← ピンク枠（右側余白）の中央 */
    transform: translateX(-50%);                   /* ← 自分の幅の半分だけ左へ＝中央に揃える */
    width: 240px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 1100;
    pointer-events: auto;
  }

  /* PC：サイドナビ全体のフォント色を #001890 に統一 */
  .header__sidenav,
  .header__sidenav a,
  .header__sidenav-list li a::after {
    color: #001890;
  }

  .header__sidenav-label {
    font-size: 12px;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 4px;
  }

  .header__sidenav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
  }

  .header__sidenav-list li {
    margin-bottom: 10px;
  }

  .header__sidenav-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 24, 144, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .header__sidenav-list li a:hover {
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(0, 24, 144, 0.15);
  }

  /* 修正後 */
  .header__sidenav-list li a::after {
    content: "";
    width: 12px;                 /* ← 文字「＞」とほぼ同じ占有幅（余白感を維持） */
    height: 12px;                /* ← 高さでアイコンの大きさを調整 */
    flex-shrink: 0;
    background-color: #001890;   /* ← 矢印の色（navy） */
    -webkit-mask: url('../images/next-icon.svg') no-repeat center / contain;
          mask: url('../images/next-icon.svg') no-repeat center / contain;
  }

  .header__sidenav-snstitle {
    font-size: 12px;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 4px;
  }

  .header__sidenav-line {
    display: inline-block;
    margin-bottom: 24px;
  }

  .header__sidenav-line img {
    width: 36px;
    height: 36px;
    display: block;
  }
}

/* ============================================================
   セクション（画像ブロック）
   ============================================================ */
.sec {
  width: 100%;
  line-height: 0;
}

.sec__img {
  width: 100%;
  height: auto;
  display: block;
}

.sec--with-btn {
  position: relative;   /* ボタンを重ねる基準にする */
}

/* 画像同士のつなぎ目のサブピクセル隙間を潰す */
.fv__img,
.fv {
  position: relative;
  z-index: 2;
}
.concept__map img,
.product__bottle img,
.sec__img {
  display: block;
  margin-bottom: -1px;
}

/* ============================================================
   コンセプト（日本地図エリア）
   ============================================================ */
.concept__map {
  position: relative;
  z-index: 1;
  margin-top: -50%;
  scroll-margin-top: -120px;  /* 着地位置の微調整。さらに下で止めたいほどマイナスを大きく */
}

/* ============================================================
   ご購入ボタン
   ============================================================ */
.btn-wrap {
  padding: 20px 0;
  background: #fff;
  text-align: center;
}

.btn-img {
  width: 60%;          /* ％にする → 周りの画像と一緒に拡大縮小される */
  max-width: 250px;      /* 340px → 250px（半分） */
  margin: 0 auto;        /* 中央寄せ。これは必要なので残す */
  transition: opacity 0.2s;
}

.btn-img:hover {
  opacity: 0.85;
}

@media (min-width: 501px) {
  .btn-wrap {
    padding: 20px 0 40px;   /* 下を 40px → 60px に（数値を増やすほど下の余白が広がる） */
  }
  .btn-img {
    max-width: 250px;    /* 400px → 250px（半分） */
  }
}

/* ============================================================
   さらに詳しくボタン（オーバーレイ）
   ============================================================ */
.overlay-btn {
  position: absolute;
  left: 50%;
  bottom: 12%;             /* px → ％。画像と一緒に上下位置が動く */
  transform: translateX(-50%);
  width: 45%;              /* px → ％。画像と一緒に拡大縮小される */
  max-width: 200px;        /* 大きくなりすぎる保険 */
  line-height: 0;
}
/* ★ 商品ごとにボタンの高さ位置を個別指定（画像ごとに位置が違うため） */
.overlay-btn[data-product="500ml"]     { bottom: 9%; }
.overlay-btn[data-product="2000ml"]    { bottom: 11%; }
.overlay-btn[data-product="sparkling"] { bottom: 11%; }
.overlay-btn[data-product="longterm"]  { bottom: 10%; }

.overlay-btn__img {
  width: 100%;
  transition: opacity 0.2s;
}
.overlay-btn__img:hover {
  opacity: 0.85;
}



/* ============================================================
   ショップリスト
   ============================================================ */
.shoplist {
  background: #ededed;
  padding-top: 160px;
  padding-bottom: 40px;
  padding-left: 0;
  padding-right: 0;
  margin-top: -40px;
}

.shoplist__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

#shoplist {
  background: #ededed;     /* グレー背景（先ほどと同じ色） */
  padding-top: 40px;       /* SHOPLIST画像の上の余白 */
}

.shoplist__official {
  background: #ededed;      /* ← グレー背景を追加（白かった原因の解決） */
  padding: 16px 28px 2px;   /* 上0 / 左右28px / 下16px */
}

/* 修正後 */
.shoplist__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px;                /* ← ボタン同士（上下左右）の間隔を詰める */
  background: #ededed;
  margin: 0;
  padding: 0 28px 40px;    /* ← 左右34→28・下50→40で詰める */
}

.shoplist__item {
  margin: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin: 8px;
}

.shoplist__item:hover {
  background: var(--navy);
  color: #fff;
}

.shoplist__item--official {
  margin: 0 8px 0;
  border-radius: 999px;
}

@media (min-width: 501px) {
  .shoplist {
    padding-top: 120px;
    padding-bottom: 0;
    padding-left: 40px;
    padding-right: 40px;
  }
  .shoplist__grid {
    gap: 2px;        /* ← 修正1と同じ値に */
  }
  .shoplist__item {
    font-size: 15px;
  }
}

/* ============================================================
   フッター（ネイビー背景）
   ============================================================ */
.footer {
  background: #001890;     /* 背景色 */
  color: #fff;
  padding: 48px 50px 40px;   /* 左右 24px → 50px に変更 */
  margin-top: 0;
}

/* ロゴ（白） */
.footer__logo {
  margin-bottom: 48px;
}
.footer__logo img {
  width: 140px;                       /* ロゴの大きさ（調整可） */
  height: auto;
  filter: brightness(0) invert(1);    /* ← 画像を白に変換する */
}

/* 2カラム行（左ラベル・右コンテンツ）← 新規追加 */
.footer__row {
  display: grid;
  grid-template-columns: minmax(0, 120px) 1fr;   /* 左は最大120px・足りなければ0まで縮む */
  gap: 20px;
  margin-bottom: 48px;
}

/* 左：ラベル ← 新規追加 */
.footer__label {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  padding-top: 4px;
}

/* ナビ */
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 200px;          /* ← 元の幅に戻す（矢印一直線・間隔キープ） */
  justify-self: end;     /* ← 塊ごと右端＝LINEと同じ位置へ寄せる */
}

.footer__link {
  display: flex;
  justify-content: space-between;     /* flex-start → space-between（矢印を右端で揃える） */
  align-items: center;
  gap: 16px;                          /* 文字と矢印の最低限の間隔 */
  white-space: nowrap;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.footer__link::after {
  content: "";
  width: 16px;                 /* ← アイコンを大きくする分、広げる */
  height: 18px;                /* ← 高さでアイコンの大きさを調整 */
  flex-shrink: 0;
  background-color: #fff;
  -webkit-mask: url('../images/next-icon.svg') no-repeat right center / contain;
          mask: url('../images/next-icon.svg') no-repeat right center / contain;
}

/* OFFICIAL SNS + LINE */
.footer__sns {
  display: flex;
  justify-content: flex-end;   /* space-between → flex-end（右寄せ） */
  align-items: center;
}

.footer__line img {
  width: 40px;
  height: 40px;
}

/* 下部リンク */
.footer__links {
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}
.footer__links a   { color: #fff; }
.footer__links span { margin: 0 8px; color: rgba(255,255,255,0.5); }

/* コピーライト */
.footer__copy {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ============================================================
   フッター：390px以下は全体を等倍縮小（画像セクションと同じ動き）
   ============================================================ */
@media (max-width: 390px) {
  .footer {
    width: 390px;                 /* 390pxの設計で固定 */
    zoom: calc(100vw / 390px);    /* 画面幅に合わせて全体を等倍縮小 */
  }
}