@charset "UTF-8";
/* =========================================================
   ポッキー LP  style.css
   - レスポンシブ（PC / SP）／ Flexbox 優先
   - 背景は background-image で実装
   - スクロールフェードイン／hover opacity / アコーディオン / ページトップ
   - 主要ブレイクポイント：768px
   ========================================================= */

/* ---------------------------------------------------------
   カラー・フォント変数
--------------------------------------------------------- */
:root {
  --color-cream:      #f7edd3;
  --color-red:        #c01d1b;
  --color-red-dark:   #8f0e16;
  --color-accent:     #ce001f;
  --color-brown:      #7a4a1e;
  --color-brown-deep: #5a3411;
  --color-text:       #4d3b28;
  --color-white:      #ffffff;
  /* サイト全体フォント：Noto Serif JP（Bold / Thin の使い分けは font-weight で別途指定） */
  --font-mincho: "Noto Serif JP", serif !important;
  --font-gothic: "Noto Sans JP", sans-serif !important;
  --content-width: 1000px;
}

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

html { scroll-behavior: smooth; }

body main{
  font-family: var(--font-mincho);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-weight: bold;
  letter-spacing: 0.05rem;
}

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

/* 装飾はセクション境界をまたいで表示するため各セクションの overflow を外している。
   端からはみ出す装飾による横スクロールは main でまとめて抑止（縦方向は clip しない）。 */
main { overflow-x: clip; }

a { color: inherit; text-decoration: none; transition: opacity .3s; }

ul, ol { list-style: none; }

/* ボタン・リンクの hover は opacity:0.8 */
a:hover,
button:hover,
.hero__product-img:hover { opacity: .8; }
button { transition: opacity .3s; }

/* インナー共通（中央寄せ） */
.header__inner,
.hero__inner,
.intro__inner,
.flavor__inner,
.process__inner,
.story__inner,
.closing__inner {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 20px;
}

/* =========================================================
   スクロールフェードイン（下から）
   ========================================================= */
.js-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s ease, transform 1.4s ease;   /* ゆっくり表示（.9s→1.4s） */
  will-change: opacity, transform;
}
.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   ヘッダー
   ========================================================= */
.header {
  background-color: var(--color-white);
  border-bottom: 3px solid var(--color-accent);
  position: relative;
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.header__logo,
.header__brand {
  font-family: var(--font-gothic);
  color: var(--color-accent);
  font-weight: bold;
  letter-spacing: .05em;
}
.header__logo { font-size: 26px; }
.header__brand { font-size: 24px; font-style: italic; }
.header__menu-btn { display: none; }

/* グローバルナビ */
.gnav { border-top: 1px solid var(--color-accent); }
.gnav__list {
  display: flex;
  justify-content: center;
  max-width: var(--content-width);
  margin-inline: auto;
}
.gnav__item a {
  display: block;
  padding: 14px 26px;
  font-family: var(--font-gothic);
  font-size: 14px;
  font-weight: bold;
  color: var(--color-text);
  border-left: 1px solid #e5b9bc;
}
.gnav__item:last-child a { border-right: 1px solid #e5b9bc; }

/* =========================================================
   ヒーロー（メインビジュアル）
   ========================================================= */
.hero {
  position: relative;
  background-color: var(--color-cream);
  overflow: hidden;
}
/* メインビジュアルは1枚画像で全幅表示（デザイン基準） */
.hero .hero__inner {
  max-width: none;
  padding: 0;
  display: block;
}
.hero__mv { line-height: 0; }
.hero__mv img { width: 100%; display: block; }
/* 上下の装飾（カカオ・葉） */
.hero__deco { display: block; width: 100%; line-height: 0; }
.hero__deco--top img,
.hero__deco--bottom img { width: 100%; }
.hero__deco--top { margin-bottom: 10px; }
.hero__deco--bottom { margin-top: 10px; }

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 30px;
}
.hero__lead {
  font-size: 26px;
  color: var(--color-brown);
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.hero__title {
  font-size: 44px;
  font-weight: bold;
  color: var(--color-brown-deep);
  line-height: 1.5;
  letter-spacing: .04em;
}
.hero__products {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.hero__product-img { width: 172px; }
.hero__note {
  font-family: var(--font-gothic);
  font-size: 10px;
  color: #8a7a63;
  text-align: right;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: 20px;
}

/* =========================================================
   イントロ（赤帯）
   ========================================================= */
.intro {
  position: relative;
  overflow: hidden;   /* 右上の装飾が帯からはみ出す分をクリップ */
  background-color: var(--color-red);
  background-image: url("img/red_bg1.png");   /* 背景 */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--color-white);
  text-align: center;
  padding-block: 50px;
}
/* 右上の装飾カカオ */
.intro__cacao {
  position: absolute;
  top: 0;
  width: 300px;
  z-index: 0;
  pointer-events: none;
  right: calc((100vw - 1100px) / 2);
}
.intro__inner { position: relative; z-index: 1; }
.intro__lead { font-size: 14px; font-weight: bold; letter-spacing: .06em; margin-bottom: 18px; }
.intro__title { font-size: 22px; font-weight: bold; letter-spacing: .04em; margin-bottom: 34px; }

/* アンカーナビ */
.anchor-nav { display: flex; justify-content: center; flex-wrap: wrap; }
.anchor-nav__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 34px;
  font-weight: bold;
  font-size: 16px;
  border-left: 1px solid rgba(255,255,255,.5);
  justify-content: center;
}
/* 区切りは項目「間」のみ。左右端の縦線は出さない（デザイン準拠） */
.anchor-nav__item:first-child a { border-left: none; }
.anchor-nav__arrow {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

/* =========================================================
   共通見出し
   ========================================================= */
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--color-accent);
  letter-spacing: .04em;
  line-height: 1.6;
}
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading__sub { font-size: 16px; color: var(--color-brown); margin-bottom: 6px; font-weight: bold; }
.section-heading__mark img { width: 40px; }
.section-heading__main { font-size: 24px; font-weight: bold; color: var(--color-accent); letter-spacing: .05em; }
.section-heading__line {
  text-align: center;
}
.section-heading__line img { width: 260px; margin-top: 10px; }

/* =========================================================
   カカオへのこだわり（flavor）
   ========================================================= */
/* flavor〜process 共通の羊皮紙背景（1枚の背景として途切れず連続表示） */
.bg-parchment {
  background-color: var(--color-cream);
  background-image: url("img/main_bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.flavor {
  position: relative;
  background-color: transparent;   /* 背景は .bg-parchment に集約 */
  padding-block: 0px 70px;
  /* overflow は指定しない：装飾がセクション境界をまたいで表示できるように
     （横方向のはみ出しは main の overflow-x: clip で抑止） */
}
/* 透かし英字 */
.flavor__watermark { text-align: center; opacity: .5; margin-bottom: 10px; }
.flavor__watermark img { width: 620px; max-width: 80%; }

/* =========================================================
   カカオ装飾（スクロールで画面内に入るとふわっと1回だけ表示）
   ・opacity + translateY/translateX の自然なフェードイン
   ・表示タイミングは --deco-delay で画像ごとにずらす
========================================================= */
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  /* opacity をメインに、ゆっくりとフェードイン */
  transition: opacity 1.6s ease, transform 1.6s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--deco-delay, 0s);
  will-change: opacity, transform;
}
/* 移動量はごく少なく：その場からふわっと現れる印象に */
.deco--up    { transform: translateY(12px); }
.deco--down  { transform: translateY(-12px); }
.deco--left  { transform: translateX(-12px); }
.deco--right { transform: translateX(12px); }
.deco.is-shown { opacity: 1; transform: none; }
/* 表示された直後に軽く揺れて気づきやすくする（№16 ぷるぷる）
   rotate 個別プロパティで transform と独立して揺らす */
@keyframes deco-wobble {
  0%, 100% { rotate: 0deg; }
  18%      { rotate: -3deg; }
  42%      { rotate: 2.4deg; }
  68%      { rotate: -1.6deg; }
  86%      { rotate: .8deg; }
}
.deco.is-shown { transform-origin: center; animation: deco-wobble 1s ease .25s 2; }
@media (prefers-reduced-motion: reduce) {
  .deco { transition: none; opacity: 1; transform: none; animation: none; }
}
/* 静的装飾（アニメーションなし・常時表示）。js-deco が付かないものに使用 */
.deco--static { opacity: 1; transform: none; transition: none; }

/* 配置（PC）— flavor セクション（左＝カラー静的／右＝ベージュ線画アニメ／右下＝カラー静的） */
.deco--flavor-tl { top: -3%; left: 14%; width: 210px;}
.deco--flavor-tr { top: -4%; right: 15%; width: 195px; }
/* 右下のカカオ装飾。
   レーダーチャート（.chart-box は max-width:800px の中央寄せ）の右端は
   常に「画面中央 +400px（＝チャート幅の半分）」の位置にある。
   装飾の左端をそのチャート右端に固定して常に「チャートのすぐ右隣」に配置し、
   幅は画面内に収まる範囲（右端12px余白）で最大300pxまで可変にする。
   これで幅を変えても「チャートに被らず・見切れず・チャートの右隣」を保つ。 */
.deco--flavor-mr {
    bottom: 2%;
    right: auto;
    left: calc(50% + 320px);
    width: min(300px, calc(50% - 412px));
    z-index: 2; }
/* 配置（PC）— process セクション */
.deco--process-tl { top: -3%;    left: 15%;  width: 190px; }
.deco--process-mr { top: 22%;   right: 10%; width: 205px; }
.deco--process-bl { bottom: 20%; left: 10%;  width: 200px; }
.deco--process-br { bottom: -5%; right: 10%; width: 230px; z-index: 1;}
/* 配置（PC）— story セクション（赤背景用の白い装飾） */
.deco--story-l { top:-8%;  left: 13%;  width: 225px; }
.deco--story-r { bottom: -17%; right: 10%; width: 220px; }

.flavor__inner { position: relative; z-index: 1; }
.flavor__desc { text-align: center; font-size: 15px; font-family: var(--font-gothic); font-weight: 600; line-height: 2; margin: 20px 0 46px; }

/* 「30種類以上〜」の飾り見出し */
.flavor__catch {
  text-align: center;
  font-size: 20px;
  color: var(--color-brown);
  font-weight: bold;
  position: relative;
  width: fit-content;
  margin: 0 auto 40px;
  padding-inline: 40px;
  font-family: var(--font-gothic);
  font-weight: 600;
}
.flavor__catch::before,
.flavor__catch::after {
  content: ""; position: absolute; top: 50%;
  width: 2px; height: 26px; background-color: var(--color-brown);
}
.flavor__catch::before { left: 0;  transform: translateY(-50%) rotate(-20deg); }
.flavor__catch::after  { right: 0; transform: translateY(-50%) rotate(20deg); }

/* カカオベルト世界地図（情報カード・ラベル・注釈は画像に内包）
   本文コラム(1000px)より広い原寸1141pxで中央に配置 */
.cacao-map {
  position: relative;
  width: 1141px;
  max-width: calc(100vw - 32px);
  margin-bottom: 56px;
  margin-left: 50%;
  transform: translateX(-50%);
}
.cacao-map__base { width: 100%; display: block; }
/* 地図左下の装飾カカオ：PCは非表示、SPのみ表示 */
.cacao-map__deco { display: none; }

/* 産地イメージ写真（画像未提供：グレープレースホルダー・横並び） */
.cacao-photos {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 700px;
  margin: 30px auto 56px;
}
.cacao-photos__item {
  flex: 0 0 auto;
  width: 220px;   /* inspection__images と同サイズ */
  height: 150px;
  display: block;
}
.cacao-photos__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 四角の四辺すべてを均等にぼかしてフェードさせる（フェザー加工） */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 18%, #000 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
          mask-image:
    linear-gradient(to right,  transparent 0, #000 18%, #000 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

/* レーダーチャート枠（背景に flame.png） */
.chart-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 60px;
  background-image: url("img/flame.png");    /* 枠画像 */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}
.chart-box__text { flex: 1 1 auto; text-align: center; }
/* チョコ画像はコンテンツの中央に配置 */
.chart-box__choco { display: block; width: 90px; margin: 0 auto 14px; }
.chart-box__title {
  position: relative;
  display: inline-block;   /* テキスト幅に合わせて中央寄せ＋角に鍵かっこを配置 */
  font-size: 18px; font-weight: bold; color: #40210d;
  line-height: 1.6; padding: 8px 26px; margin-bottom: 16px;
}
/* 2行のタイトルを囲む大きい鍵かっこ「」。縦線は2行分の全高まで伸ばす */
.chart-box__title::before,
.chart-box__title::after {
  content: "";
  position: absolute;
  width: 18px; height: 100%;
  border-color: #40210d;
  border-style: solid;
}
.chart-box__title::before { top: 0; left: 0;  border-width: 1px 0 0 1px; }   /* 「＝上＋左 */
.chart-box__title::after  { bottom: 0; right: 0; border-width: 0 1px 1px 0; } /* 」＝下＋右 */
.chart-box__desc { font-family: var(--font-gothic); font-size: 13px; line-height: 1.8; font-weight: 600;}
.chart-box__chart { flex: 0 0 auto; }
.chart-box__chart img { width: 260px; }

/* =========================================================
   おいしさができあがるまで（process）
   ========================================================= */
.process {
  position: relative;               /* カカオ装飾の絶対配置基準 */
  /* overflow は指定しない：装飾がセクション境界をまたいで表示できるように */
  background-color: transparent;    /* 背景は .bg-parchment に集約（flavor と連続） */
  padding-block: 60px 80px;
}
.process__inner { position: relative; z-index: 1; }   /* 装飾より前面に */

/* 画像フレーム：白い縁取り＋ドロップシャドウ（写真フレーム風） */
.ph-img {
  display: block;
  width: 190px; height: 130px;
  background-color: #fff;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.ph-img img {
  display: block;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

/* カカオ豆の保管・管理 */
.storage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 10px;
}
.storage__text { flex: 1 1 50%; }
.storage__title { font-size: 18px; font-weight: 600; color: var(--color-accent); margin-bottom: 14px; text-align: left; font-family: var(--font-gothic)}
.storage__desc { font-family: var(--font-gothic); font-size: 14px; font-weight: 600; line-height: 1.9; text-align: left; }
/* 左＝横長フレーム（グレー）／右＝縦長画像。両フレームの高さは縦長に揃える */
.storage__images { flex: 0 0 auto; display: flex; align-items: stretch; gap: 12px; }
.storage__images .ph-img--land     { width: 260px; height: auto; }   /* 高さは縦長に追従（stretch） */
.storage__images .ph-img--portrait { width: 170px; height: 250px; } /* 縦長画像が高さを決める */

/* 船・トラックの流れ画像（スクロール連動アニメーション） */
.movepath { position: relative; width: 100%; margin: 10px 0 30px; }
.movepath__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;   /* 端でアイコンがはみ出しても隠さない */
}
.movepath__line { opacity: 0.95; }
.movepath__icon {
  /* JSで x/y を更新。初期位置はパス始点付近 */
  transition: none;
  will-change: transform;
}
/* 船の点線（PC・SP）はトラック（car.png）を左右反転して使用 */
.movepath--ship .movepath__icon,
.movepath--ship-sp .movepath__icon {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleX(-1);
}
/* 船：左寄せ配置 */
.movepath--ship { max-width: 320px; margin-left: 6%; }
/* トラック：右寄せ配置 */
.movepath--car { 
  max-width: 260px; 
  margin-left: auto; 
  /* margin-right: 2%;  */
  margin-right: 0;
  position: absolute; 
  right: 0;}

/* SP専用の縦長カーブ版（PCでは非表示） */
.movepath--ship-sp { display: none; }

/* 工程紹介 */
.steps { text-align: center; }
.steps__title {
  position: relative;
  font-size: 20px; font-weight: 600; color: var(--color-accent);
  letter-spacing: .05em;
  padding-bottom: 18px; margin-bottom: 16px;
  font-family: var(--font-gothic)
}
/* 下線：中央は上辺のない下向きの逆三角形（V字）。線は中央で途切れ、V字の両上端と繋がる */
.steps__title::after,
.inspection__title::after {
  content: ""; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 480px; max-width: 92%; height: 1px;
  background: linear-gradient(to right,
    var(--color-accent) 0, var(--color-accent) calc(50% - 5px),
    transparent          calc(50% - 5px), transparent calc(50% + 5px),
    var(--color-accent) calc(50% + 5px), var(--color-accent) 100%);
}
.steps__title::before,
.inspection__title::before {
  content: ""; position: absolute; left: 50%; bottom: 5px;
  transform: translateX(-50%) rotate(45deg);
  width: 7px; height: 7px;
  border-right: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);   /* 隣り合う2辺のみ→回転で下向きV字（上辺なし） */
}
.steps__desc { font-family: var(--font-gothic); font-size: 14px; font-weight: 600; margin-bottom: 40px; }

/* ---- 上部：9工程カード（HTML/CSS）------------------------- */
.pflow {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 940px;
  margin: 0 auto 20px;   /* 工程エリアとスライダーの間を詰める */
}
/* 工程グループ枠（角丸ボーダー＋上辺中央のカテゴリタブ）
   ※工程の高さを抑えるため上下パディングは最低限に（視認性は維持） */
.pflow__group {
  position: relative;
  border: 2px solid #c13239;   /* 四辺＋角は連続したボーダー（角までしっかり繋がる） */
  border-radius: 14px;
  padding: 22px 30px 18px;
}
/* 上辺ボーダーはそのまま繋げ、タイトルの裏＋左右の縁を背景色で消して中央に隙間を作る */
.pflow__legend-row {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center;
}
/* 帯の裏＋左右12pxの縁をまとめて消す（帯画像のギザギザ端から赤線が覗くのを防ぐ） */
.pflow__legend-row::before {
  content: ""; position: absolute; z-index: 0;
  top: 50%; left: -12px; right: -12px; height: 6px;
  transform: translateY(-50%);
  background: #f3e8cd;   /* 羊皮紙色 */
}
.pflow__legend {
  position: relative; z-index: 1;   /* 消し線の上に帯を表示 */
  flex: 0 0 auto;
  padding: 6px 28px 7px;
  background: no-repeat center / 100% 100%;   /* スライダーのカテゴリ帯と同じ画像を使用 */
  color: #fff; font-family: var(--font-gothic); font-weight: bold;
  font-size: 13px; line-height: 1; white-space: nowrap;
}
.pflow__group--choco .pflow__legend { background-image: url("img/slider/process_txt2.png"); }
.pflow__group--pretz .pflow__legend { background-image: url("img/slider/process_txt3.png"); }
/* 完成カード：工程枠の外・最下部に中央配置＋上部に下向きの折り返し矢印 */
.pflow__foot { position: relative; }
.pflow__foot::before {
  content: ""; position: absolute; top: -18px; left: 50%;
  transform: translateX(-50%) rotate(90deg);
  width: 14px; height: 16px;
  background: url("img/slider/process_arrow.png") no-repeat center / contain;
}
.pflow__foot .pflow__list { display: flex; justify-content: center; }
.pflow__foot .pflow__item { 
  /* flex: 0 0 261px; max-width: 70%;  */
}
/* デザイン準拠：工程カードは1段（横並び・中央寄せ）。
   チョコレート工程は5枚、プレッツェル工程は3枚を中央寄せで並べ、左右に余白を残す。 */
.pflow__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;   /* 中央寄せ */
  --pflow-gap: 30px;         /* カード間隔は狭めに */
  gap: var(--pflow-gap);
}
.pflow__item { position: relative; flex: 0 0 auto; }
/* カード間の右向き矢印（各カードの右側／最後のカードは除く）。矢印はカード間ギャップの中央に配置 */
.pflow__item:not(:last-child)::after {
  content: ""; position: absolute; top: 50%;
  right: calc(-1 * (var(--pflow-gap) / 2 + 7px));
  width: 14px; height: 16px; margin-top: -8px;
  background: url("img/slider/process_arrow.png") no-repeat center / contain;
}
.pflow__card {
  position: relative;
  display: block;
  width: 150px;                     /* 01〜09 のタグ幅を「生地混合」基準で統一（お戻しP2） */
  max-width: 100%;
  padding: 5px 16px 5px 60px;           /* 左は番号スタンプ分 */
  background: url("img/slider/process_bg.png") no-repeat center / 100% 100%;
  border: 0; cursor: pointer;
  font-family: inherit;
}
.pflow__num {
  position: absolute;
  left: 5px; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: url("img/slider/number_bg.png") no-repeat center / contain;
  color: #fff; font-family: var(--font-mincho); font-weight: bold; font-size: 15px;
  line-height: 1;   /* 赤丸内で番号を上下中央に（上寄り解消 №13） */
}
.pflow__name {
  display: flex; align-items: center;
  min-height: 46px;
  font-size: 15px; font-weight: bold; color: var(--color-brown);
  line-height: 1.25; text-align: left;
  font-family: var(--font-mincho);
}
/* アクティブ（＝スライダー中央）状態：カード地を赤に／番号は白スタンプ＋赤文字 */
.pflow__item.is-active .pflow__card { background-image: url("img/slider/process_bg_active.png"); }
.pflow__item.is-active .pflow__num {
  background-image: url("img/slider/number_bg_active.png");
  color: var(--color-red);
}
.pflow__item.is-active .pflow__name { color: #fff; }
.pflow__card:hover { opacity: .85; }

/* スライダー見出し（両脇に斜めの飾り線） */
.pslider__lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 14px;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--color-brown-deep);
}
.pslider__lead::before,
.pslider__lead::after {
  content: "";
  width: 2px;
  height: 26px;
  background: currentColor;
}
.pslider__lead::before { transform: rotate(-22deg); }
.pslider__lead::after  { transform: rotate(22deg); }

/* ---- 下部：工程スライダー（中央＝アクティブ）------------- */
.pslider {
  position: relative;
  /* コンテンツ幅を超えてビューポート全幅に広げる（full-bleed）。
     はみ出す左右のカードは viewport の overflow:hidden でクリップされる */
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.pslider__viewport { overflow: hidden; }
.pslider__list {
  display: flex;
  align-items: center;
  transition: transform .4s ease;
}
/* シームレスループのクローン領域→元領域への瞬間補正時はアニメーションを無効化 */
.pslider__list.is-snapping,
.pslider__list.is-snapping .pslide { transition: none !important; }
.pslide {
  position: relative;
  flex: 0 0 500px;
  margin: 16px 9px 10px;
  padding: 30px 24px 50px;
  background: url("img/slider/slider_bg.png") no-repeat center / 100% 100%;
  text-align: center;
  /* opacity: .55; */
  transform: scale(.93);
  transition: opacity .4s ease, transform .4s ease;
}
.pslide.is-center { opacity: 1; transform: scale(1); }
/* 写真枠を廃止（09以外）。cat/name は上部、desc のみカード中央に配置。
   カード高さを揃えつつ、番号は上部左に置く */
@media (min-width: 768px) {
  .pslide {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 400px;   /* 全カードの高さを統一（お戻しNo.35/36）。6番の吹き出し移設・注釈縮小で縮まった高さに合わせる */
    justify-content: flex-start;   /* お戻しNo.37：番号・テープ・タイトル・詳細を上部に揃え、2/5/7/8を1番基準に合わせる */
  }
  /* お戻しNo.36（PC版のみ／SPは現状のまま）：ショートニング不使用バッジ位置と注釈サイズ */
  .pslide__nouse { right: 35px; bottom: 60px; }
  .pslide__note { font-size: 12px; }
}
/* 番号とカテゴリテープを横並び（スライド9参照）。SPでは縦積み */
.pslide__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.pslide__num {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: url("img/slider/number_bg.png") no-repeat center / contain;
  color: #fff; font-family: var(--font-gothic); font-weight: bold; font-size: 17px;
  line-height: 1;   /* 赤丸内で番号を上下中央に（上寄り解消 №13） */
}
.pslide__cat {
  display: inline-block;
  padding: 3px 16px 4px;
  font-family: var(--font-gothic); font-size: 16px; line-height: 1; color: #fff;
  background: no-repeat center / 100% 100%;
  font-weight: 600;
}
.pslide--mass  .pslide__cat { background-image: url("img/slider/process_txt1.png"); }
.pslide--choco .pslide__cat { background-image: url("img/slider/process_txt2.png"); }
.pslide--pretz .pslide__cat { background-image: url("img/slider/process_txt3.png"); }
/* 中央（アクティブ）スライドのカテゴリテープはカード用背景に差し替え */
.pslide--mass.is-center  .pslide__cat { background-image: url("img/card_bg1.png"); }
.pslide--choco.is-center .pslide__cat { background-image: url("img/card_bg2.png"); }
.pslide--pretz.is-center .pslide__cat { background-image: url("img/card_bg3.png"); }
.pslide__name { 
  /* margin-top: 10px; */
  font-size: 26px; font-weight: bold; color: var(--color-brown); font-family: var(--font-mincho);}
.pslide__desc {
  margin-top: 8px;
  font-family: var(--font-gothic); 
  font-size: 18px; 
  font-weight: 600;
  line-height: 1.7;
  color: var(--color-text);
  /* margin: auto;   flex内で上下左右中央（cat/nameは上部・descは中央） */
  margin-top: 10px;
  width: 90%;
}
.pslide__photo {
  display: block; margin-top: 14px;
  width: 100%; height: 150px;
  background: #fff; border: 1px solid #e6dcc4;
  width: 70%;
  margin: 0 auto;
}
/* 完成（09）の画像：白背景・枠線なしで画像のみ表示 */
.pslide__photo--complete {
  background: none; border: none;
  height: auto;
}
.pslide__photo--complete img {
  display: block;
  width: 52%;   /* PC：9番のポッキー画像を縮小し他カードと高さを揃える（お戻しP7） */
  height: auto;
  margin: 0 auto;
}
/* 09（完成）：他スライドと同様に、テキスト＋その下の画像を
   ひとまとまりでコンテンツ中央に配置（cat/nameは上部のまま） */
.pslide[data-step="9"] .pslide__desc {
  margin-top: auto;
  margin-bottom: 0;
}
.pslide[data-step="9"] .pslide__photo--complete {
  margin-top: 14px;
  margin-bottom: auto;
  height: auto;
  width: 100%;
}
.pslider__arrow {
  position: absolute; top: 50%;
  width: 46px; height: 46px; padding: 0;
  border: 0; background: none; cursor: pointer;
  z-index: 5;
}
.pslider__arrow img { width: 100%; display: block; }
/* 矢印は中央カード（幅500px＋左右マージン）の外側の境目に配置 */
.pslider__arrow--prev { left: 50%; margin-left: -280px; transform: translateY(-50%); }
.pslider__arrow--next { right: 50%; margin-right: -280px; transform: translateY(-50%); }

/* 品質検査・出荷管理 */
.inspection { text-align: center; margin-top: 20px; padding-top: 10%;}
.inspection__title { position: relative; font-size: 22px; font-family: var(--font-gothic);font-weight: 600; color: var(--color-accent); padding-bottom: 18px; margin-bottom: 20px; }
.inspection__desc { font-family: var(--font-gothic); font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.inspection__images { display: flex; justify-content: center; gap: 16px; }
/* №6：画面幅に対して画像が小さい → PCの倉庫画像と同等の大きさ（高さ250px）に拡大 */
.inspection__images .ph-img { width: 375px; height: 250px; }
.inspection__images .ph-img img { object-fit: cover; }


.pslide__name.pslide__y {
  color: #d7964b;
}

.pslide[data-step="9"] .pslide__name.pslide__y {
  font-size: 26px;
}

/* 説明文の強調（工程名の文字色を踏襲）
   ・チョコレートを作る工程：#9b4b14
   ・プレッツェルを作る工程：#d7964b */
.pslide__desc .pslide__em {
  font-style: normal;
  color: #9b4b14;
}
.pslide--pretz .pslide__desc .pslide__em {
  color: #d7964b;
}
/* 注釈（※1 / ※2）：左寄せ（お戻しP3/P4 ①） */
.pslide__note {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
}

.pslide__desc .small {
  font-size: 14px;
  vertical-align: top;
}

/* 「ショートニング不使用」バッジ（step6）。
   お戻しP3/P4 ②：注釈の右の空きスペースに配置し、吹き出しを
   丸（楕円）＋プレッツェル工程カラー（#d7964b）に変更。
   絶対配置でカード高さに影響させず、枠外へ多少はみ出してもよい。 */
.pslide__nouse {
  position: absolute;
  right: 35px;
  bottom: 45px;
  z-index: 2;
  width: 118px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d7964b;
  box-shadow: 0 0 0 5px rgba(245, 233, 205, .7);   /* 薄いクリームの縁取りで浮きを抑える */
  font-family: var(--font-gothic);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-align: center;
}

/* 詳細テキストの改行出し分け
   ・u-pc … PC版（スライド9・10）の改行位置
   ・u-sp … SP版（スライド11・12）の改行位置 */
.pslide__desc br.u-sp { display: none; }
@media (max-width: 767px) {
  .pslide__desc br.u-pc { display: none; }
  .pslide__desc br.u-sp { display: inline; }
}

/* =========================================================
   FAQ アコーディオン（汎用：項目追加で動作）
   ========================================================= */
.faq { max-width: 760px; margin: 50px auto 0; }
.faq__item { border: 1px solid #d8c9a8; border-radius: 4px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left;
  font-family: var(--font-gothic); font-size: 15px; font-weight: bold;
  color: var(--color-brown); background: none; border: none; cursor: pointer;
  padding: 16px 48px 16px 20px; position: relative;
}
.faq__icon { position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); }
.faq__icon::before,
.faq__icon::after { content: ""; position: absolute; background: var(--color-brown); transition: transform .3s; }
.faq__icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq__icon::after  { top: 0; left: 6px; width: 2px; height: 14px; }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { font-family: var(--font-gothic); font-size: 14px; padding: 0 20px 16px; }

/* =========================================================
   おいしさの裏側ストーリー（story）
   ========================================================= */
.story {
  position: relative;
  background-color: transparent;   /* 背景は ::before に移動（またぐ装飾を隠さないため） */
  color: var(--color-white);
  text-align: center;
  padding-block: 0 70px;
  /* overflow は指定しない：装飾がセクション境界をまたいで表示できるように */
}
/* 背景を z-index:-1 の擬似要素へ。前セクションからまたいでくる装飾を赤背景で隠さない */
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--color-red);
  background-image: url("img/red_bg2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.story__inner { position: relative; z-index: 1; }   /* 装飾より前面に */
.story__title { font-size: 24px; font-weight: bold; letter-spacing: .05em; }
.story__sub { font-size: 18px; margin-bottom: 10px; }
.story__desc { font-size: 15px; font-family: var(--font-gothic); line-height: 1.9; margin: 20px 0 30px; font-weight: 600; }
.story__movie {
  position: relative;
  max-width: 680px; margin: 0 auto;
  aspect-ratio: 16 / 9; background-color: #000;   /* 動画（16:9）にぴったり合わせ左右の黒帯をなくす（お戻しNo.33） */
  display: flex; align-items: center; justify-content: center;
}
/* 動画の外側に装飾フレーム（flame.png）を重ねる。中央は透明なので映像・再生ボタンが見える */
.story__movie::after {
  content: "";
  position: absolute;
  inset: -14px;               /* 黒画面の外側に配置し、隙間に赤背景を見せる */
  background-image: url("img/flame.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;       /* 再生ボタンの操作を妨げない */
}
/* 埋め込み動画（YouTube iframe）は黒枠（.story__movie）いっぱいに表示 */
.story__iframe { width: 100%; height: 100%; border: 0; display: block; }
.story__play {
  width: 60px; height: 60px; border-radius: 50%;
  border: none; background-color: rgba(255,255,255,.35);
  color: var(--color-white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.story__play-icon { font-size: 22px; margin-left: 4px; }
/* 右下の白いカカオ装飾（movie_bottom）を原寸で配置 */
.story__deco {
  position: absolute;
  right: 30px; bottom: 0;
  width: 330px; margin: 0;
  line-height: 0; z-index: 1; pointer-events: none;
}
.story__deco img { width: 100%; }

/* =========================================================
   クロージング
   ========================================================= */
.closing {
  position: relative;
  background-color: transparent;   /* 背景は ::before に移動（またぐ装飾を隠さないため） */
  padding-block: 65px 40px;
  overflow: visible;   /* 上に飛び出すポッキーを見せる */
}
/* 背景を z-index:-1 の擬似要素へ。story からまたいでくる装飾を背景で隠さない */
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--color-cream);
  background-image: url("img/last_bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
/* 左右の葉の装飾は絶対配置でコンテンツに重ねる */
.closing__deco { position: absolute; line-height: 0; pointer-events: none; z-index: 0; }
.closing__deco--top { right: 0; top: 0; }
.closing__deco--top img { width: 200px; }
.closing__deco--bottom { left: 12%; bottom: 0; }
.closing__deco--bottom img { width: 240px; }
.closing__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-block: 6px;
}
/* ポッキーはセクション上端から少し飛び出して配置（デザイン準拠） */
.closing__pocky {
  position: absolute;
  top: -58px;
  left: 19%;
  width: 20%;
  z-index: 2;
}
.closing__text img { width: 500px; max-width: 100%; }

/* =========================================================
   フッター
   ========================================================= */
.footer { background-color: var(--color-white); padding-top: 30px; }
.footer-nav__list { display: flex; justify-content: center; flex-wrap: wrap; max-width: var(--content-width); margin: 0 auto 30px; }
.footer-nav__item a {
  display: block; padding: 8px 24px;
  font-family: var(--font-gothic); font-size: 14px; font-weight: bold;
  color: var(--color-accent); border-left: 1px solid #ddd;
}
.footer-nav__item:last-child a { border-right: 1px solid #ddd; }

.footer-sns { text-align: center; padding-block: 20px; background-color: #f2f2f2; }
.footer-sns__lead { font-family: var(--font-gothic); font-size: 13px; color: #666; margin-bottom: 12px; }
.footer-sns__list { display: flex; justify-content: center; gap: 24px; font-family: var(--font-gothic); font-size: 13px; }

.brand-site { text-align: center; padding-block: 30px; }
.brand-site__head { font-family: var(--font-gothic); font-size: 14px; color: #666; margin-bottom: 16px; }
.brand-site__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; max-width: 700px; margin: 0 auto 16px; font-family: var(--font-gothic); font-size: 14px; font-weight: bold; }
.brand-site__more a { font-family: var(--font-gothic); font-size: 13px; color: #666; text-decoration: underline; }

.footer-bottom { background-color: #4d4d4d; color: #ccc; text-align: center; padding-block: 20px; }
.footer-bottom__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.footer-bottom__links a { font-family: var(--font-gothic); font-size: 12px; }
.footer-bottom__copy { font-family: var(--font-gothic); font-size: 11px; }

/* =========================================================
   ページトップボタン
   ========================================================= */
.pagetop {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 50px; height: 50px;
  border: none; border-radius: 50%;
  background-color: var(--color-red);
  color: var(--color-white);
  font-size: 16px; cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 200;
}
.pagetop.is-show { opacity: 1; visibility: visible; }
.pagetop.is-show:hover { opacity: .8; }





.br-sp { display: none; }
.br-tab { display: none; }   /* タブレット幅以下で改行（№18） */
@media (max-width: 1024px) {
  .br-tab { display: inline; }
}





/* =========================================================
   レスポンシブ：スマートフォン（〜767px）
   ========================================================= */
@media (max-width: 767px) {

  /* ヘッダー */
  .header__inner { padding: 10px 16px; }
  .header__logo { font-size: 20px; }
  .header__brand { font-size: 18px; }
  .header__menu-btn {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 26px; height: 20px; background: none; border: none; cursor: pointer;
  }
  .header__menu-btn span { display: block; width: 100%; height: 2px; background-color: var(--color-accent); }
  .gnav { display: none; }
  .gnav.is-open { display: block; }
  .gnav__list { flex-direction: column; }
  .gnav__item a { border: none; border-bottom: 1px solid #eee; text-align: center; }

  /* ヒーロー */
  .hero__inner { flex-direction: column; text-align: center; gap: 24px; }
  .hero__lead { font-size: 18px; }
  .hero__title { font-size: 26px; }
  .hero__products { justify-content: center; }
  .hero__product-img { width: 110px; }
  .hero__note { text-align: center; }

  /* イントロ */
  .intro { padding-block: 34px; }
  .intro__lead { font-size: 13px; }
  .intro__title { font-size: 20px; }
  /* PCと同じ見た目のまま縦並びにするだけ（ボックス枠・背景・角丸は付けない）。
     区切りはPCの縦罫線を横罫線（下線）に変更する。 */
  .anchor-nav { flex-direction: column; align-items: stretch; }
  .anchor-nav__item { width: 100%; display: flex; justify-content: center;}
  .anchor-nav__item a {
    padding: 14px 8px;                                 /* 文字＋矢印は左寄せ（PCと同じ） */
    border-left: none;                                 /* PCの縦罫線を無効化 */
    border-bottom: 1px solid rgba(255,255,255,.5);     /* 項目間の横罫線 */
    width: 255px;
    justify-content:center;
  }
  .anchor-nav__item:last-child a { border-right: none; border-bottom: none; }

  /* 見出し */
  .section-title { font-size: 20px; }
  .section-heading__main { font-size: 24px; }
  .section-heading__line img { width: 200px; }

  /* flavor */
  .flavor__desc { font-size: 13px; }
  /* カカオ装飾（SP）：小さめ＆端に寄せて自然に見せる */
  .deco { width: 118px; }
  .deco--up    { transform: translateY(10px); }
  .deco--down  { transform: translateY(-10px); }
  .deco--left  { transform: translateX(-10px); }
  .deco--right { transform: translateX(10px); }
  .deco.is-shown { transform: none; }
  /* flavor：左＝カラー静的／右＝ベージュ線画／右下＝カラー静的 */
  .deco--flavor-tl {top: -6%; left: -16%; width: 200px; }
  .deco--flavor-tr { top: -1%;  right: -26px; width: 118px; }
  .deco--flavor-mr { top: auto; bottom: -2%; left: auto; right: -10%; width: 180px; }
  .deco--process-tl { top: 2%;    left: -30px; display: none; }
  .deco--process-mr { top: 23%;   right: -30px; }
  .deco--process-bl { bottom: 23%; left: -30px; }
  .deco--process-br { bottom: -2%; right: -30px; }
  .deco--story-l { top: -13%;  left: -26px; width: 140px; }
  .deco--story-r { top: auto; right: -28px; width: 130px; }
  /* 透かし英字（SP：3行版）を程よいサイズで */
  .flavor__watermark img { width: 160px; max-width: 70%; }
  /* 世界地図はSPでも中央・全幅で表示（情報カードを上下配置した縦長版） */
  .cacao-map { width: 100%; max-width: 340px; margin: 0 auto; transform: none; }
  /* SP：地図の左下に装飾カカオを表示 */
  .cacao-map__deco { display: block; position: absolute; left: -22px; bottom: -28px; width: 96px; z-index: 2; }
  /* レーダーチャート枠：SPは縦長フレーム（flame.png.png）＋縦積みレイアウト */
  .chart-box {
    flex-direction: column;
    gap: 14px;
    max-width: 330px;
    padding: 48px 15px 40px;
    text-align: center;
    background-image: url("img/sp/flame.png.png");
    background-size: 100% 100%;
    margin-top: 40px;
  }
  .chart-box__choco { width: 76px; margin-bottom: 10px; }
  .chart-box__title { font-size: 12px; }
  .chart-box__desc { font-size: 13px; }
  .chart-box__chart { margin-top: 4px; }
  .chart-box__chart img { width: 240px; }

  .flavor__catch {
    font-size: 18px;
    padding-inline: 20px;
}

  /* process */
  .storage { flex-direction: column; text-align: center; }
  /* PCと同じ枠比率（横長260:250／縦長170:250）を aspect-ratio で固定し、
     幅は 260:170 の比率で配分。これで768px以下でもPCと同じ比率のまま縮小表示 */
  .storage__images { justify-content: center; align-items: flex-start; flex-wrap: nowrap; gap: 12px; width: 100%; }
  /* cacao-photos の画像（約157×107）と同程度の大きさに。PC比率は aspect-ratio で維持、幅は 260:170 */
  .storage__images .ph-img--land     { 
    flex: 0 1 auto; 
    /* width: 33.3%;  */
    height: auto; aspect-ratio: 260 / 250; }
  .storage__images .ph-img--portrait { 
    flex: 0 1 auto; 
    /* width: 21.8%;  */
    height: auto; aspect-ratio: 170 / 250; }
  .ph-img { width: 45%; height: 100px; }
  /* 点線アニメーション（SP）：中央寄せ・小さめに */
  .movepath { margin: 6px 0 20px; }
  /* SPは横長の船点線を非表示にして、縦長カーブ版（movepath--ship-sp）に差し替え */
  .movepath--ship { display: none; }
  .movepath--ship-sp {
    display: block;
    max-width: 170px;
    margin: 4px auto 16px;
  }
  .movepath--car { max-width: 260px; margin-left: auto; margin-right: auto; }

  .storage__title,
  .storage__desc {
    text-align: center;
  }

  /* 工程紹介（SP） */
  .steps__title { font-size: 20px; padding-bottom: 16px; }
  .steps__title::after { width: 300px; }
  .steps__desc { font-size: 13px; margin-bottom: 30px; }

  /* 上部カード：グループ枠内は2カラム（デザイン準拠） */
  .pflow { gap: 22px; max-width: 400px; }
  .pflow__group { padding: 20px 5px 14px; border-radius: 12px; }
  /* SPは小さいタイトルに合わせて位置を調整 */
  .pflow__legend-row { top: -11px; }
  .pflow__legend { font-size: 11px; padding: 4px 14px; }
  /* SP：カードは文字幅で短く。
     チョコレート工程＝1段目3枚（01・02・03）＋2段目2枚（04・05を中央）／
     プレッツェル工程＝3枚を1段 */
  .pflow__list {
    display: grid;
    justify-items: center;
    row-gap: 12px;
    max-width: none;
  }
  .pflow__item { grid-column: auto; }
  /* PCの1段用矢印を解除（SPは下で用途別に定義） */
  .pflow__item:not(:last-child)::after { content: none; }

  /* チョコレート工程：1段目3枚／2段目（04・05）は中央寄せ（6分割グリッド） */
  .pflow__group--choco .pflow__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));   /* auto最小を無効化し列を等幅固定（はみ出し防止） */
    column-gap: 4px;
  }
  .pflow__group--choco .pflow__item { grid-column: span 2; }
  .pflow__group--choco .pflow__item:nth-child(4) { grid-column: 2 / span 2; justify-self: stretch; }
  .pflow__group--choco .pflow__item:nth-child(5) { grid-column: 4 / span 2; }
  /* カード間の右矢印（01・02・04の右／03・05は除く） */
  .pflow__group--choco .pflow__item:not(:nth-child(3n)):not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -20px; margin-top: -8px;
    width: 12px; height: 14px;
    background: url("img/slider/process_arrow.png") no-repeat center / contain;
  }
  /* 04↔05の矢印は、04アイテムをセル幅に広げ、矢印をセル境界（＝2段目の中央）に配置。
     これで画面幅に依存せず常に04と05の中央に来る */
  .pflow__group--choco .pflow__item:nth-child(4):not(:last-child)::after { right: -8px; }
  /* 2段目先頭（04）への折り返し矢印 */
  .pflow__group--choco .pflow__item:nth-child(4)::before {
    content: ""; position: absolute; top: 50%; left: -12px; margin-top: -8px;
    width: 12px; height: 14px;
    background: url("img/slider/process_arrow.png") no-repeat center / contain;
  }

  /* プレッツェル工程：06・07・08を1段（3枚横並び・中央寄せ）
     カード幅統一（98px×3）でも狭い端末で収まるよう間隔を詰める */
  .pflow__group--pretz .pflow__list {
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    column-gap: 20px;
  }
  .pflow__group--pretz .pflow__item:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -17px; margin-top: -8px;
    width: 12px; height: 14px;
    background: url("img/slider/process_arrow.png") no-repeat center / contain;
  }
  .pflow__card { padding-left: 30px; width: 90px; max-width: none; margin-inline: auto; }   /* SPも01〜09のタグ幅を「生地混合」基準で統一（お戻しP2）。配置はグリッド基準で不変 */
  .pflow__num { width: 22px; height: 22px; font-size: 8px; }
  .pflow__name { font-size: 13px; min-height: 38px; white-space: nowrap; }
  /* 完成カードもSPは1カラム幅で中央に配置 */
  .pflow__foot { padding: 0 16px; }
  .pflow__foot .pflow__item { flex: 0 0 calc(50% - 17px); max-width: none; }

  /* 下部スライダー：中央1枚（前後は薄く覗く）／SPは縦長カード
     ※PCの full-bleed 指定をSPでは解除して従来どおりコンテナ内に収める */
  .pslider { width: 100%; max-width: 100%; left: auto; margin-left: auto; margin-right: auto; }
  .pslide {
    flex: 0 0 94vw; max-width: 360px;         /* 375px以上で指定改行を1行維持できるよう幅を確保 */
    margin: 16px 4px 10px;
    padding: 42px 40px 40px;                  /* 枠の内側にコンテンツを収める（余白は最低限に） */
    background-image: url("img/sp/slider_bg.png");
    background-size: 100% 100%;               /* 縦長の枠をカードにぴったり合わせる */
    display: flex; flex-direction: column;    /* 縦積み＆写真を下部へ */
    justify-content: flex-start;              /*cat/name は上部に */
    height: 496px;                            /* 全カードの高さを6番基準に統一。6番の下余白を詰めて縮小（お戻しNo.35） */
    /* justify-content: center; */
  }
  /* SPは番号とテープを縦積み */
  .pslide__head { flex-direction: column; gap: 8px; margin-top: 10px; }
  .pslide__name { 
    /* font-size: 18px;  */
  }

  .pslide__cat {
    padding: 5px 16px 6px;
    font-size: 14px;
  }
  .pslide__desc { width: 100%; }   /* descのみ縦中央 */
  .pslide__photo { height: 175px; margin-top: auto; }   /* 下部に配置 */
  .pslider__arrow--prev { margin-left: 0; left: -2px; }
  .pslider__arrow--next { margin-right: 0; right: -2px; }
  .pslider__arrow { width: 40px; height: 40px; z-index: 2; }

  .inspection__images { 
    /* flex-wrap: wrap;
    flex-direction: column;
    align-items: center; */
      }
  .inspection__images .ph-img {
    /* width: 45%;  */
    height: auto;
    min-height: 110px; }



  .pslide--choco.is-center .pslide__cat,
  .pslide--pretz.is-center .pslide__cat,
  .pslide--mass.is-center .pslide__cat {
    /* background-size: 75%; */
  }

  .pslide__photo--complete img {
    width: 108%;   /* SP：9番のポッキー画像を拡大し余白を削減（お戻しP6） */
  }

  /* SP：注釈は左半分に収めて折り返し、右下のバッジと重ならないようにする */
  .pslide__note { 
    /* max-width: 58%;  */
    font-size: 10px;
  }
  /* SP：ショートニング不使用バッジは幅に合わせて小さめに */
  .pslide__nouse {
    width: 100px;
    height: 53px;
    right: 7px;
    bottom: 48px;
    font-size: 11px;
  }

  .pslide__desc {
    font-size: 16px;
  }


  /* steps */
  .movepath--car {
    position: relative;
  }


  /* story */
  .story__watermark img { width: 230px; max-width: 60%; }   /* SPは2行版 */
  .story__title { font-size: 22px; }
  .story__sub { font-size: 15px; }
  .story__desc { font-size: 13px; }

  /* closing */
  .closing { padding-block: 70px 80px; }   /* 飛び出すポッキーの下にテキストを配置 */
  /* SPは3行の左寄せテキスト（img/sp/last_text.png）を上部左に配置 */
  .closing__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .closing__text { width: 100%; text-align: center; }
  .closing__text img { width: 82%; max-width: 320px; }
  .closing__pocky { top: -22%; left: -15%; width: 240px; }
  .closing__deco--top img,
  .closing__deco--bottom img { width: 160px; }
  .closing__deco--bottom { left: 0; }

  /* footer */
  .footer-nav__list { flex-wrap: wrap; }
  .footer-nav__item { width: 50%; }
  .footer-nav__item a { border: none; border-bottom: 1px solid #eee; text-align: center; }
  .footer-bottom__links { gap: 6px 12px; }

  /* ページトップ */
  .pagetop { right: 14px; bottom: 14px; width: 44px; height: 44px; }

  .br-sp { display: block; }
}


@media (max-width: 425px) {
    /* SP：カカオ産地写真は画面幅に合わせて縮小 */
  .cacao-photos__item {
    flex: 1 1 0;
    width: auto;
    height: auto;
    aspect-ratio: 220 / 150;
  }
}




/* =========================================================
   レスポンシブ：タブレット（SPとPCの中間幅 768〜1080px）
   PCレイアウトを維持しつつ、装飾カカオ・トラック等が
   本文/グラフと重なる問題を解消する（検証シート №5〜8, 19）
   ========================================================= */
@media (min-width: 768px) and (max-width: 1080px) {

  /* №5：アンカーナビが折り返して崩れる → 余白と文字を詰めて1行に収める */
  .anchor-nav__item a { padding: 6px 16px; font-size: 14px; gap: 6px; }

  /* お戻しNo.34：タブレット幅ではチョコレート工程の5枚（150px×5）が枠から
     はみ出すため、番号・文字・間隔・枠内余白を詰めて1段に収める（幅は統一のまま） */
  .pflow__group { padding: 22px 20px 18px; }
  .pflow__list { --pflow-gap: 24px; }   /* カードを少し縮めた分を間隔に回し、矢印の左右に隙間を確保 */
  .pflow__card { width: 116px; padding-left: 44px; }
  .pflow__num { left: 4px; width: 38px; height: 38px; font-size: 12px; }
  .pflow__name { font-size: 13px; min-height: 38px; }

  /* №6：ナビ下（flavor 上部）のカカオ装飾が見出し文字に被る
     → 装飾を左右端へ寄せて小さくする */
  .intro__cacao { width: 200px; right: -20px; }
  .deco--flavor-tl { left: -10px; width: 150px; }
  .deco--flavor-tr { right: -10px; width: 140px; }

  /* №7：カカオ装飾がレーダーチャートに掛かる → チャート外（右下）へ逃がして縮小 */
  .deco--flavor-mr {
    left: auto;
    right: 3%;
    bottom: 0%;
    width: 140px; }

  /* process セクションの装飾も端へ寄せて本文との重なりを回避 */
  .deco--process-tl { left: -10px; width: 150px; }
  .deco--process-mr { right: -10px; width: 150px; }
  .deco--process-bl { left: -10px; width: 150px; }
  .deco--process-br { right: -10px; width: 160px; }
  .deco--story-l { left: -10px; width: 160px; }
  .deco--story-r { right: -10px; width: 160px; }

  /* №8・№19：トラックの点線が本文に被る／頭が切れる
     → 絶対配置をやめて中央に置き、はみ出しを表示 */
  .movepath--car {
    position: relative; right: auto;
    margin-left: auto; margin-right: auto;
    max-width: 300px;
  }
  .movepath__svg { overflow: visible; }

  /* 矢印を中央カード（幅500px）の左右サイドに寄せる（タブレットで隣カード側に寄って見える問題を解消） */
  .pslider__arrow--prev { margin-left: -242px; }
  .pslider__arrow--next { margin-right: -242px; }
}
@media (max-width: 768px) {
  .deco--flavor-mr {
    left: auto;
    right: -1%;
    bottom: -5%;
    width: 200px;
  }
}
