@charset "utf-8";

/* ========================================================================
   BBFRY - design tokens
   すべて現行サイト(https://imp-inc.jp/bbfry/)からの実測値
   ======================================================================== */
:root {
  --primary:        #f4c635;
  --primary-dark:   #c39e2a;
  --primary-vivid:  #ffda3a;
  --red:            #ee3138;
  --gray:           #f0f0ec;
  --ink:            #090909;
  --orange:         #f16236;
  --green:          #83c34c;

  --text:           #333333;
  --footer-bg:      #4a5153;

  --container:      1140px;
  --gutter:         20px;
  --section-pad:    64px;

  --marker: linear-gradient(transparent 60%, rgba(255, 253, 107, .7) 0);
}

/* ========================================================================
   reset / base
   ======================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, figure, figcaption { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 8px; top: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
}

/* ========================================================================
   header
   ======================================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding-block: 18px;
}
.site-header__inner { display: flex; justify-content: center; }
.site-header__logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--text);
}

/* ========================================================================
   hero  (2枚クロスフェード)
   ======================================================================== */
.hero {
  position: relative;
  height: 1000px;
  overflow: hidden;
  /* 縦書きの文字サイズをヒーロー高さ基準(cqh)で指定するため */
  container-type: size;
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }

.hero__slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}

.hero__slide picture, .hero__slide img {
  width: 100%; height: 100%;
}
.hero__slide img { object-fit: cover; object-position: center; }

.hero__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 15px;
}

/* スライド1: 左上／右下の対角配置（現行の実測値 top 180px / 743px を再現） */
.hero__caption--split {
  justify-content: space-between;
  padding-block: 180px 167px;
}
/* スライド2: 中央配置。現行はやや下寄りなので padding-top で 90px 押し下げる
   （flex中央寄せのため、padding-top の半分だけ下がる） */
.hero__caption--center {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 180px;
}

.hero__lead {
  font-size: 50px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.5;
}
.hero__lead--start { text-align: left; }
.hero__lead--end   { text-align: right; font-size: 60px; }

/* 文単位でしか改行させない */
.hero__lead span { display: inline-block; }

.hero__tagline {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}
.hero__title {
  font-size: 70px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--ink);
}
.hero__badge {
  margin-top: 219px;
  min-width: 183px;
  padding: 6px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

/* ========================================================================
   sections & waves
   ======================================================================== */
.section { padding-block: var(--section-pad); }
.section--gray { background: var(--gray); }

.wave { display: block; width: 100%; height: 110px; }
.wave path { fill: var(--gray); }
.wave--top    { margin-bottom: -1px; }
.wave--bottom { margin-top: -1px; transform: scaleY(-1); }

/* ========================================================================
   共通パーツ
   ======================================================================== */
.figure { margin-block: 24px; }
.figure img { margin-inline: auto; }
.figure--bar   { max-width: 780px; margin-inline: auto; }
.figure--narrow{ max-width: 420px; margin-inline: auto; }

.hl { background: var(--marker); }

.mark-plain { background: none; color: inherit; }
.mark-black { background: var(--ink); color: #fff; font-size: 16px; padding: 2px 4px; }
.mark-red   { background: var(--red);  color: #fff; padding: 2px 8px; }

.txt-red    { color: var(--red); }
.txt-green  { color: var(--green); }
.txt-orange { color: var(--orange); }

/* 「BBFRYなら！」 + 結論行 */
.nara {
  margin-top: 56px;
  font-size: 50px;
  font-weight: 500;
  color: var(--red);
  text-align: center;
  line-height: 1.4;
}
.nara-sub {
  margin-top: 8px;
  font-size: 36px;
  font-weight: 700;
  color: var(--red);
  text-align: center;
  line-height: 1.6;
}

/* セクション見出し */
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--text);
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.4;
}
.sec-title__sub { font-size: 21px; }

/* 帯見出し */
.band {
  margin-block: 40px 24px;
  padding: 12px 57px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.band--green  { background: var(--green); }
.band--orange { background: var(--orange); }

.statement {
  margin-block: 32px 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 2;
}
.statement .mark-red { font-size: 24px; font-weight: 900; }

/* ========================================================================
   6つの効果
   ======================================================================== */
.effects__title {
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  text-align: center;
}
.effects__brand { font-size: 24px; }

.effects { display: grid; gap: 48px; margin-top: 40px; }
.effects__heading {
  margin-bottom: 28px;
  font-size: 24px;
  font-weight: 900;
  color: var(--orange);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  position: relative;
  padding: 35px 24px 16px;
  background: #fff;
  border: 1px solid var(--orange);
}
.card__text {
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.6;
}
.card__check {
  position: absolute;
  top: -20px; left: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange);
}
/* チェックマーク（擬似要素で描画：アイコンフォント不要） */
.card__check::after {
  content: "";
  position: absolute;
  top: 12px; left: 13px;
  width: 13px; height: 7px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
}

/* ========================================================================
   比較レイアウト（Before / After）
   ======================================================================== */
.compare {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  gap: 24px;
  margin-block: 40px;
}
.compare__col figcaption {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
}
.compare__col figcaption strong { font-weight: 700; }
.compare__arrow {
  width: 90px;
  height: auto;
  margin-inline: auto;
}

/* ========================================================================
   動画（ファサード：クリックで初めてYouTubeを読み込む）
   ======================================================================== */
.video-label {
  margin-top: 40px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.video-label--h3 { font-size: 24px; font-weight: 900; }

.video {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 20px auto 0;
  aspect-ratio: 16 / 9;
  background: #000 center/cover no-repeat;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.video::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 68px; height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .72);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.video::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%; left: 50%;
  translate: -40% -50%;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.video:hover::after { background: #f00; }
.video:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.video.is-loaded::before, .video.is-loaded::after { content: none; }
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.two-col__item figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.two-col .video { margin-top: 0; }

/* ========================================================================
   環境改善効果3
   ======================================================================== */
.burden {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-block: 32px;
}
/* グリッドアイテムの min-width:auto を解除。
   使い方カードの最小幅(画像260px + 余白)が狭い画面でコンテナを押し広げ、
   横スクロールを生んでいた（320px幅で顕在化）。 */
.burden > * { min-width: 0; }
.burden__list { display: grid; gap: 20px; }
.burden__list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
/* グリッドアイテムの min-width:auto を解除しないと、
   マーカー付きテキストが列幅を超えて横スクロールを生む（320px幅で顕在化） */
.burden__list li > * { min-width: 0; }
.burden__list p { overflow-wrap: anywhere; }
.burden__num {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.burden__list p { font-size: 18px; font-weight: 700; line-height: 1.9; }

.usage { border: 1px solid var(--ink); background: #fff; }
.usage__title {
  margin: 0;
  padding: 6px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.usage__body { padding: 20px; }
.usage__lead { font-size: 20px; font-weight: 900; color: var(--ink); }
.usage__img { margin: 16px auto; max-width: 260px; }
.usage__notes { list-style: disc; padding-left: 1.4em; }
.usage__notes li { font-size: 14px; line-height: 1.9; }

/* ========================================================================
   CTA / footer
   ======================================================================== */
.cta {
  background: var(--gray);
  padding-block: var(--section-pad);
  text-align: center;
}
/* インプレスへ戻るボタン（ロゴ＋「TOPページへ戻る」を一体化したカードボタン） */
.cta__back {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(460px, 100% - 40px);
  padding: 26px 34px;
  border: 2px solid #1b2b4b;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(27, 43, 75, .12);
  text-decoration: none;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.cta__back:hover, .cta__back:focus-visible {
  background: #f4f7fc;
  border-color: #264a86;
  box-shadow: 0 12px 28px rgba(27, 43, 75, .24);
  transform: translateY(-3px);
}
.cta__logo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-inline: auto;
}
.cta__back-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #1b2b4b;
}
.cta__back-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}
.cta__back:hover .cta__back-arrow,
.cta__back:focus-visible .cta__back-arrow {
  transform: translateX(-4px);
}

.site-footer {
  padding-block: 24px;
  background: var(--footer-bg);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 24px; height: 24px; fill: #fff; }

/* ========================================================================
   スクロールアニメーション（fade-in / slide-up、once）
   ======================================================================== */
/* 既定は「見える」状態。JSが動くときだけ初期状態を隠す（JS無効でも読める） */
.js .reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity .5s ease-out, translate .5s ease-out;
}
.js .reveal.is-revealed { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: none; transition: none; }
}

/* ========================================================================
   responsive  (現行のブレークポイント 782px を踏襲)
   ======================================================================== */
@media (max-width: 781px) {
  :root { --section-pad: 48px; }

  .hero { height: 100svh; min-height: 560px; }
  .hero__lead    { font-size: 22px; line-height: 1.4; }
  .hero__title   { font-size: 56px; }
  .hero__tagline { font-size: 18px; }
  .hero__badge   { margin-top: 40px; min-width: 0; font-size: 18px; }

  /* 狭い画面では対角配置をやめ、中央寄せの縦積みにする */
  .hero__caption--split {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-block: 0;
    gap: 2px;
  }
  .hero__lead--start,
  .hero__lead--end { text-align: center; font-size: 22px; }

  /* 唐揚げカット：油の面が見える位置で切り出し、コピーの背景を落ち着かせる */
  .hero__slide--chicken img { object-position: 30% center; }

  .nara     { margin-top: 40px; font-size: 30px; }
  .nara-sub { font-size: 22px; }

  .sec-title {
    display: block;
    font-size: 21px;
  }
  .sec-title__sub { display: block; margin-top: 4px; font-size: 16px; }

  .band { padding: 10px 20px; font-size: 18px; }

  .effects__title { font-size: 22px; }
  .effects__brand { font-size: 18px; }
  .cards { grid-template-columns: 1fr; gap: 34px; }

  .compare {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* 矢印画像には「数日後」の文字が焼き込まれているため回転させない */
  .compare__arrow {
    width: 72px;
    margin-block: 4px;
  }

  .two-col { grid-template-columns: 1fr; }
  .burden  { grid-template-columns: 1fr; }

  .statement { font-size: 17px; }
  .statement .mark-red { font-size: 19px; }

  .wave { height: 60px; }
}

/* 縦長ヒーロー画像 hero-1-mobile.jpg を使う幅だけの調整。
   600px を超えると cover により製品の上下が切れるため、index.html の
   <source media="(max-width: 600px)"> と必ず同じ値にすること。
   縦長版は製品が画像の上端23%から始まるので、コピーはヘッダー下端〜製品上端に収める。 */
@media (max-width: 600px) {
  /* 製品カット: 現行SPと同じ縦書き2列。実測位置(左20.7%/上5.8%、右78.7%/上34.8%)を再現 */
  .hero__slide--product .hero__caption {
    display: block;
    padding: 0;
  }
  .hero__lead {
    position: absolute;
    margin: 0;
    writing-mode: vertical-rl;
    line-height: 1.15;
    text-align: start;
  }
  /* 縦書きでは inline-block だと字送りが崩れるので通常のインラインに戻す */
  .hero__lead span { display: inline; }

  /* 縦書きの列の長さ = 文字数 × 文字サイズ。px固定にすると画面が低い端末
     （iPhone SE、Safariのバーで縦が縮んだ状態など）で列が入りきらず、
     左方向に折り返して崩れる。ヒーロー高さ基準(cqh)で指定して必ず収める。
       左列: 17文字 × 4.06% = 69.0% → 5.8% + 69.0% = 74.8%
       右列: 11文字 × 4.95% = 54.5% → 34.8% + 54.5% = 89.3%
     px値は cqh 非対応ブラウザ向けのフォールバック。 */
  .hero__lead--start {
    top: 5.8%; left: 8%;
    font-size: 33px;
    font-size: 4.06cqh;
  }
  .hero__lead--end {
    top: 34.8%; right: 8%;
    font-size: 40px;
    font-size: 4.95cqh;
  }

  /* 唐揚げカット：縦長版を使うので中央から切り出す */
  .hero__slide--chicken img { object-position: center; }

  /* 現行SP(2.jpg)の実測位置を再現。ヒーロー高さに対する％で指定するため、
     縦方向が切れない 0.5625 比率の画像（hero-2-mobile.jpg）が前提。 */
  .hero__slide--chicken .hero__caption {
    display: block;
    padding: 0;
  }
  .hero__slide--chicken .hero__tagline,
  .hero__slide--chicken .hero__title {
    position: absolute;
    left: 0; right: 0;
    line-height: 1;
    text-align: center;
  }
  .hero__slide--chicken .hero__tagline { top: 46.6%; font-size: 24px; }
  .hero__slide--chicken .hero__title   { top: 52.2%; font-size: 69px; }
  .hero__slide--chicken .hero__badge {
    position: absolute;
    top: 84.8%;
    left: 50%;
    translate: -50% 0;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    width: 187px;
    height: 52px;
    font-size: 24px;
  }
}
