@charset "utf-8";

/* ===== 変数 ===== */
.bg-ft{
  --bg-ft-max: 560px;                  /* ★最大横幅 */
  --bg-ft-bg: #1D1D1D;                  /* 背景 */
  --bg-ft-text: #fff;                   /* 文字 */
  --bg-ft-line: rgba(255,255,255,.35);  /* 罫線・枠線 */
  --bg-ft-muted: rgba(255,255,255,.65); /* コピーライト等 */
  --bg-ft-pad: 28px;                    /* SP左右余白 */
}


/* ===== ベース（SPファースト）===== */
.bg-ft{
  background: var(--bg-ft-bg);
  color: var(--bg-ft-text);
  padding: 60px 0 44px;
  font-family: "Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",YuGothic,Meiryo,sans-serif;
  -webkit-font-smoothing: antialiased;
}
.bg-ft *,
.bg-ft *::before,
.bg-ft *::after{ box-sizing: border-box }

.bg-ft__inner{
  max-width: var(--bg-ft-max);
  margin: 0 auto;
  padding: 0 var(--bg-ft-pad);
}
.bg-ft a{
  color: inherit;
  text-decoration: none;
  transition: opacity .2s;
}
.bg-ft a:hover{ opacity:.65 }

/* :where() で詳細度0にして、下のセクション側の margin / padding が必ず勝つようにする */
.bg-ft :where(ul),
.bg-ft :where(li){ margin:0; padding:0; list-style:none }


/* ===== 1. メインナビ（アコーディオン）===== */
.bg-ft-nav{
  border-top: 1px solid var(--bg-ft-line);
}
.bg-ft-nav__item{
  border-bottom: 1px solid var(--bg-ft-line);
}
/* 行の共通スタイル：<a> と <button> で見た目を揃える */
.bg-ft-nav__link,
.bg-ft-nav__toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 18px 2px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: left;
  color: inherit;
  /* button リセット */
  background: none;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.bg-ft-nav__toggle:focus-visible,
.bg-ft-nav__link:focus-visible,
.bg-ft-sub__link:focus-visible{
  outline: 1px solid var(--bg-ft-text);
  outline-offset: 2px;
}

/* ＋ / − アイコン（CSSで描画）*/
.bg-ft-nav__icon{
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
.bg-ft-nav__icon::before,
.bg-ft-nav__icon::after{
  content:"";
  position:absolute;
  top:50%; left:0;
  width:100%; height:1px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform .3s ease, opacity .3s ease;
}
.bg-ft-nav__icon::after{
  transform: translateY(-50%) rotate(90deg);
}
/* 開いている時は「−」 */
.bg-ft-nav__toggle[aria-expanded="true"] .bg-ft-nav__icon::after{
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

/* 子メニューのパネル（高さアニメーション用に overflow:hidden）*/
.bg-ft-sub{
  overflow: hidden;
  height: 0;
  transition: height .3s ease;
}
.bg-ft-sub__list{
  padding: 2px 0 20px;
}
.bg-ft-sub__link{
  display: block;
  padding: 13px 2px 13px 16px;
  font-size: 14px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.85);
}
/* JS無効時のフォールバック：子メニューを開いたままにする */
.bg-ft-sub.is-nojs{ height:auto }


/* ===== 2. 特典ボックス（4枠）===== */
.bg-ft-benefits{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 42px;
}
.bg-ft-benefit{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 138px;
  padding: 18px 8px;
  border: 1px solid var(--bg-ft-line);
  text-align: center;
}
.bg-ft-benefit__icon{
  display: block;
  width: 44px;
  height: 44px;
  color: currentColor;
}
.bg-ft-benefit__txt{
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: .04em;
}
/* 「定期便 prime」のロゴタイプ部分 */
.bg-ft-benefit__logo{
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.bg-ft-benefit__logo small{ font-size:12px; letter-spacing:.08em }
.bg-ft-benefit__logo b{
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .02em;
  font-family: Georgia,"Times New Roman",serif;
}


/* ===== 3. 関連ブランド（3枠）===== */
.bg-ft-brands{
  display: grid;
  gap: 12px;
  margin-top: 50px;
}
.bg-ft-brand{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--bg-ft-line);
}
.bg-ft-brand__logo{
  flex: 0 0 auto;
  width: 50%;
  max-width: 215px;
  aspect-ratio: 215 / 48;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}
.bg-ft-brand__logo img,
.bg-ft-brand__logo svg{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bg-ft-brand__txt{
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: .04em;
}


/* ===== 4. 規約・情報リンク ===== */
.bg-ft-info{
  display: grid;
  /* 左カラムの幅でデザイン通りの2列オフセットを再現 */
  grid-template-columns: 36% minmax(0, 1fr);
  row-gap: 38px;
  margin-top: 58px;
  font-size: 14px;
  letter-spacing: .04em;
}


/* ===== 5. SNS ===== */
.bg-ft-sns{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  margin-top: 46px;
}
.bg-ft-sns__link{
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.bg-ft-sns__link svg{
  display: block;
  width: 100%;
  height: 100%;
  color: var(--bg-ft-text);
}


/* ===== 6. コピーライト ===== */
.bg-ft-copyright{
  margin: 40px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--bg-ft-muted);
}


/* ===== 小さめのスマホ（〜374px）での詰め ===== */
@media (max-width: 374px){
  .bg-ft{ --bg-ft-pad: 20px }
  .bg-ft-info{ font-size: 13px }
  .bg-ft-brand__logo{ width: 44% }
  .bg-ft-brand__txt,
  .bg-ft-benefit__txt{ font-size: 12px }
  .bg-ft-sns{ gap: 26px }
}


/* =====================================================================
   PC（★768px を既存サイトのブレークポイントに合わせてください）
   ・ナビ（アコーディオン）は横幅を伸ばすだけ
   ・その他はカラム数を増やす
   ===================================================================== */
@media (min-width: 768px){
  .bg-ft{ padding: 72px 0 52px;}
  .bg-ft__inner{ padding: 0; }
  .bg-ft-nav__link,
  .bg-ft-nav__toggle{
    min-height: 66px;
    padding: 20px 4px;
    font-size: 16px;
  }
  /* 子メニュー：3カラム×2段 */
  .bg-ft-sub__list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    padding: 4px 0 24px;
  }
  .bg-ft-sub__link{ padding: 11px 2px 11px 16px }

  /* 特典：2カラム → 4カラム */
  .bg-ft-benefits{
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
  }
  .bg-ft-benefit{ min-height: 150px }

  /* 関連ブランド：1カラム → 3カラム */
  .bg-ft-brands{
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 56px;
  }
  .bg-ft-brand{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 8px;
    text-align: center;
  }
  .bg-ft-brand__logo{
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  /* 規約リンク：2カラム → 横1列 */
  .bg-ft-info{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 34px;
    row-gap: 16px;
    margin-top: 60px;
    font-size: 13px;
  }

  .bg-ft-sns{ gap: 30px; margin-top: 48px }
  .bg-ft-sns__link{ width: 30px; height: 30px }
  .bg-ft-copyright{ margin-top: 36px }
}


/* モーションを抑える設定のユーザー向け */
@media (prefers-reduced-motion: reduce){
  .bg-ft-sub,
  .bg-ft-nav__icon::before,
  .bg-ft-nav__icon::after{ transition: none }
}


/* ===== Footer min ===== */

.bgsf{
  background: #1D1D1D;
  color: #fff;
  padding: 72px 0 48px;
  font-family: "Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",YuGothic,Meiryo,sans-serif;
  -webkit-font-smoothing: antialiased;
}
.bgsf *,
.bgsf *::before,
.bgsf *::after{ box-sizing: border-box }

.bgsf__inner{
  max-width: 560px;
  margin: 0 auto;
  padding: 0 32px;
}
.bgsf a{
  color: inherit;
  text-decoration: none;
  transition: opacity .2s;
}
.bgsf a:hover{ opacity:.65 }


/* ===== お問い合わせボックス ===== */
.bgsf-contact{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  min-height: 86px;
  padding: 18px 16px;
  border: 1px solid rgba(255,255,255,.35);
}
.bgsf-contact__label{
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .06em;
}
.bgsf-contact__tel{
  display: inline-flex;
  align-items: center;
  gap: .22em;
  /* 狭い画面でも1行に収まるように可変。430px幅で約23px、445px以上で24px */
  font-size: clamp(18px, 5.3vw, 24px);
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
}
/* フリーダイヤルマーク（支給素材ベース／縦横比 64:42）
   電話番号のフォントサイズに追従するよう em 指定 */
.bgsf-contact__mark{
  flex: 0 0 auto;
  display: block;
  width: 1.06em;
  height: .7em;
  color: currentColor;
}


/* ===== コピーライト ===== */
.bgsf-copyright{
  margin: 32px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: rgba(255,255,255,.65);
}


/* ===== 小さめのスマホ（〜374px）での詰め ===== */
@media (max-width: 374px){
  .bgsf{ padding:28px 20px; }
  .bgsf-contact{
    gap: 6px 12px;
    padding: 16px 12px;
  }
}


/* ===== PC（★768px を既存サイトのブレークポイントに合わせてください）=====
   最大横幅 560px で頭打ちになるため、余白・文字サイズのみ調整 */
@media (min-width: 768px){
  .bgsf{ padding: 80px 0 56px }
  .bgsf-contact{
    min-height: 92px;
    gap: 6px 24px;
  }
  .bgsf-contact__tel{ font-size: 24px }
  .bgsf-copyright{ margin-top: 34px }
}

