/* ============================================================
   商品ページ: canteen9 (サファーデイシリーズ)
   Figma: AMZHu5L68Rn8EYEXLmDZ0q / nodes 179-345 (PC) / 179-50 (SP)
   --
   命名規則: .pc9-{block}__{element}--{modifier}
   ベース: SP 393px、PC 1920px（コンテンツは中央600px幅）
   ============================================================ */

/* メインフォントは Google Fonts の Zen Maru Gothic (丸ゴシック)
   ※ functions.php の wellnessmore_enqueue_product_css() から enqueue 済み */

/* ------------------------------------------------------------
   トークン
   ------------------------------------------------------------ */
.product-canteen9 {
    /* --pc9-serif は歴史的な命名。現在は Zen Maru Gothic (丸ゴシック) を使用 */
    --pc9-serif: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Hiragino Sans", "Noto Sans JP", sans-serif;
    --pc9-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Std", "Noto Sans JP", sans-serif;

    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    /* iOS Safari のテキスト自動拡大を明示的に無効化(絶対配置レイアウトの崩れ防止) */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;

    --pc9-color-text: #000;
    --pc9-color-bg: #fff;

    --pc9-tone-yellow: #f8f9cd;
    --pc9-tone-pink: #f9eef4;
    --pc9-tone-purple: #ececf6;

    --pc9-border-yellow: #ede3c4;
    --pc9-border-pink: #ecd5e2;
    --pc9-border-purple: #d7d1df;

    --pc9-content-pc: 600px;
    --pc9-radius: 2px;

    font-family: var(--pc9-serif);
    color: var(--pc9-color-text);
    background: var(--pc9-color-bg);
    line-height: 1.6;

    /* 600px キャンバスを transform: scale で縮小する前の初回ペイントで
       横スクロールが出ないようにクリップ(PC でも背景写真のはみ出し対策で同値) */
    overflow-x: clip;
}

.product-canteen9 :where(p, h1, h2, h3, ul, ol, li) {
    margin: 0;
    padding: 0;
}

.product-canteen9 ul {
    list-style: none;
}

.product-canteen9 img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* PC でコンテンツを中央600pxカラムに集約するための共通ラッパ */
.product-canteen9 > section {
    padding-inline: 20px;
}

/* コンテンツは 600px 固定キャンバス(ヒーロー等は 600px 基準の絶対配置)。
   600px 未満の画面では JS(product-canteen9-scale.js)が transform: scale で
   全体を縮小し、はみ出し・右寄せを防ぐ(Figma SP は 600px デザインの縮小版)。
   transform は origin: top left で左上基準に縮小するため幅 600px がそのまま画面幅に収まる。 */
.pc9-content {
    width: 600px;
    margin-inline: auto;
}

/* ============================================================
   Phase 1: HERO (Figma 新SP node 297-59 / 393幅 を 600px キャンバスに
   ×600/393=1.5267 で換算して絶対配置で再現)
   構成: FV合成画像 → メイン/サブキャッチ → 横長写真 →
         コンセプト文 → ボトル画像 → コンセプト文
   ============================================================ */

.pc9-hero {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
    /* 横長写真 top872 + h473 = 1345。さらにコンセプト文①開始(元 top1437)までの
       余白92pxを残して 1437 で終了(コンセプト文①→ボトル→コンセプト文② は .pc9-fv-closing へ移設)。 */
    height: 1437px;
}

/* FV 合成画像 Figma 新SP: x0 y60 w393 h349 → 600キャンバス: top0 / 600×533 */
.pc9-hero__fv {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    margin: 0;
}
.pc9-hero__fv img {
    width: 600px;
    height: auto;
}

/* メインキャッチ Figma 新SP: x50 y449 (2行) → 600キャンバス: left80 top594 */
.pc9-hero__lead {
    position: absolute;
    left: 80px;
    top: 594px;
    width: 292px;
    font-family: var(--pc9-serif);
    font-size: 28px;
    font-weight: 400; /* h1 の UA デフォルト bold を打ち消す */
    line-height: 44px;
    letter-spacing: -0.06em;
    text-align: left;
    margin: 0;
}

/* サブキャッチ Figma 新SP: x189 y535 (2行) → 600キャンバス: left288 top725 */
.pc9-hero__sub {
    position: absolute;
    left: 288px;
    top: 725px;
    width: 242px;
    font-family: var(--pc9-serif);
    font-size: 28px;
    line-height: 44px;
    letter-spacing: -0.06em;
    text-align: left;
    margin: 0;
}

.pc9-hero__lead span,
.pc9-hero__sub span {
    display: block;
}

/* 横長写真(錠剤×グレープフルーツ) Figma 新SP: x0 y631 w393 h310
   → 600キャンバス: top872 / 600×473。書き出し済み画像が既にマスク適用済みなので cover で配置 */
.pc9-hero__photo-wide {
    position: absolute;
    left: 0;
    top: 872px;
    width: 600px;
    height: 473px;
    margin: 0;
    overflow: hidden;
    /* 固定シーン開始の直前に .is-faded(JS付与)で素早くフェードアウト */
    transition: opacity 0.3s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.pc9-hero__photo-wide.is-faded {
    opacity: 0;
}
.pc9-hero__photo-wide img {
    width: 600px;
    height: 473px;
    object-fit: cover;
}

/* ============================================================
   Phase 1: FV 締めシーン (修正依頼②)
   コンセプト文①→ボトル→コンセプト文② を 1 つのシーンとして、スクロール中に
   シーン全体(__inner)を画面内に固定(pin)し、その間ボトル画像を切替える。
   セクションがトラック高を確保するので後続コンテンツとは重ならない。
   pin と切替は product-canteen9-bottle.js が担当。
   ============================================================ */
/* このシーンは縮小コンテナ(.pc9-content / transform)の外に置く。transform 祖先が無いので
   ネイティブ position: sticky がモバイルでも効く。寸法は --u(1 design-px の実px) を介して
   画面幅に追従させ、縮小コンテナと同じ見た目サイズに合わせる。
   --u: デスクトップ(>=600px)=1px / モバイル(<600px)=画面幅/600。 */
.pc9-fv-closing {
    --u: 1px;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
    /* シーン本体(約725: 文126 + gap123 + ボトル227 + gap123 + 文126) +
       ホールド用トラック(約3000) = 3725(デザインpx)。--u で画面幅に追従。
       JS の WEIGHTS[1,1.75,1.75] で配分: 1枚目≈667 / 2枚目≈1167 / 3枚目≈1167(design)。
       JS が __inner を sticky で固定し、進行度でボトル画像を切替える */
    height: calc(3725 * var(--u));
}
@media (max-width: 599.98px) {
    .pc9-fv-closing {
        --u: calc(100vw / 600); /* 1 design-px = 画面幅/600 px(縮小コンテナと同倍率) */
    }
}
/* 親 section の padding-inline をリセット(FV と同じ 600px 幅で扱う) */
.product-canteen9 > section.pc9-fv-closing {
    padding-inline: 0;
}

/* 固定される内側。ネイティブ position: sticky(コンポジタ合成で揺れない)。
   top はビューポート中央寄せの値を JS が px で設定する。
   中身は中央寄せの縦並び(コンセプト文①→ボトル→コンセプト文②)。 */
.pc9-fv-closing__inner {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(123 * var(--u)); /* Figma 新SP: 文末→ボトル / ボトル→文 の間隔(約123) */
}

.pc9-fv-closing__lead {
    text-align: center;
    font-size: calc(26 * var(--u));
    line-height: calc(42 * var(--u));
    color: var(--pc9-color-text);
    margin: 0;
}
.pc9-fv-closing__lead span {
    display: block;
}

/* ボトル: 3枚を grid で同一セルに重ね、高さ227(design)で正規化(幅可変)して中央配置。
   product-canteen9-bottle.js が .is-active を付け替え opacity でクロスフェード。 */
.pc9-fv-closing__bottle {
    display: grid;
    place-items: center;
    height: calc(227 * var(--u));
    margin: 0;
}
/* .product-canteen9 img { height:auto } (詳細度 0,1,1) を上回るため 2 クラスで指定 */
.product-canteen9 .pc9-hero__bottle-img {
    grid-area: 1 / 1; /* 全画像を同一セルに重ねる */
    height: calc(227 * var(--u));
    width: auto;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.product-canteen9 .pc9-hero__bottle-img.is-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .product-canteen9 .pc9-hero__bottle-img {
        transition: none;
    }
}

/* ============================================================
   Phase 1: コンセプト 3項目
   Figma SP: アイコン left:18, タイトル/テキスト left:72,
             項目間隔 154px、タイトル 20px/32, テキスト 16px/24
   ============================================================ */

.pc9-concepts {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 0 60px; /* 上下余白(Figma 新 PC: コンセプト 01 top:2353 → ヒーロー終端 2293 から 60、03 終端 2996 → 写真 3056 から 60) */
    position: relative;
}

/* 親 section の padding-inline をリセット */
.product-canteen9 > section.pc9-concepts {
    padding-inline: 0;
}

.pc9-concept {
    position: relative;
    min-height: 159px; /* Figma 新 PC: 01/02 高さ 159、03 は 205 */
    padding-top: 0;
    padding-bottom: 60px; /* Figma 新 PC: 各項目間隔 219px のうち本体 159 + 余白 60 */
}

.pc9-concept:last-child {
    padding-bottom: 0;
    min-height: 205px; /* 03 のみ高さ 205(タイトル2行のため) */
}

.pc9-concept__num {
    position: absolute;
    left: 30px;  /* Figma 新 PC */
    top: 0;
    width: 78px;
    height: 65px;
}

.pc9-concept__title {
    margin: 17px 0 0 114px;  /* Figma 新 PC: タイトル top:2370 - コンセプト top:2353 = 17、left:114 */
    font-family: var(--pc9-serif);
    font-weight: 500;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.02em;
    color: var(--pc9-color-text);
}

.pc9-concept__title span {
    display: block;
    line-height: 32px;
}

.pc9-concept__text {
    margin: 20px 0 0 114px;  /* Figma 新 PC: 説明文 top:2422 - タイトル top:2370 = 52、タイトル高さ32 から 20px 後 */
    width: 456px;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0;
}

/* 02 / 03 の説明文は微妙にトラッキング詰め(Figma 仕様維持) */
.pc9-concept:nth-child(2) .pc9-concept__text,
.pc9-concept:nth-child(3) .pc9-concept__text {
    letter-spacing: -0.04em;
}

/* ============================================================
   Phase 1: 大きな写真 (photo-inner-beauty)
   Figma SP: 画像コンテナ 393×523、mask 393×310 from (-1, 97)
   ============================================================ */

.pc9-photo {
    padding: 0 !important;
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

.pc9-photo img {
    display: none;
}

/* Figma 新 PC: photo-inner-beauty (Mask group) size 600×474
   元画像 599×799、mask-position (~0, 148) → img を top:-148 で表示 */
.pc9-photo__frame {
    position: relative;
    width: 600px;
    height: 474px;
    margin: 0 auto;
    overflow: hidden;
}

.pc9-photo__frame img {
    display: block;
    position: absolute;
    width: 600px;
    height: 799px;
    left: 0;
    top: -148px;
    max-width: none;
}

/* ============================================================
   Phase 1: いまの私の悩みは?
   ============================================================ */

.pc9-concerns {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.pc9-concerns__title {
    font-family: var(--pc9-serif);
    font-weight: 400;
    font-size: 32px;
    line-height: 32px;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 70px; /* Figma 新 PC: 見出し top:3610 → カード1 top:3708 で 98px、見出し高さ 28 から ~70 */
    padding-top: 60px; /* 写真 top:3056+474=3530 → 見出し top:3610 = 60 */
}

.pc9-concerns__list {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Figma 新 PC: カード間隔 40 (1番目 top:3708 → 2番目 top:3979 = 271、 -231 = 40) */
    max-width: 560px;
    margin: 0 auto;
}

.pc9-concerns__item {
    position: relative;
    width: 560px;
}

.pc9-concerns__link {
    display: block;
    position: relative;
    width: 560px;
    height: 231px;
    background: #fff;
    border: 6px solid;
    border-radius: 0;
    color: var(--pc9-color-text);
    text-decoration: none;
    box-sizing: border-box;
}

.pc9-concerns__item--sun .pc9-concerns__link  { border-color: var(--pc9-tone-yellow); }
.pc9-concerns__item--food .pc9-concerns__link { border-color: var(--pc9-tone-pink); }
.pc9-concerns__item--cycle .pc9-concerns__link { border-color: var(--pc9-tone-purple); }

/* アイコン: カード左側中央 / Figma 新 PC サイズに更新 */
.pc9-concerns__icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
}

.pc9-concerns__item--sun .pc9-concerns__icon  { width: 118px; height: 113px; }
.pc9-concerns__item--food .pc9-concerns__icon { width: 100px; height: 116px; }
.pc9-concerns__item--cycle .pc9-concerns__icon { width: 95px; height: 142px; }

/* カード3(毎月のゆらぎ)はタイトル1行・説明文2行のため縦バランス再調整(Figma 新 PC) */
.pc9-concerns__item--cycle .pc9-concerns__main {
    top: 62px; /* Figma 4290-4250=40、ただし1行なので調整 */
    height: 34px;
    /* 「毎月のゆらぎが気になる」(11文字)は base の width:256px をわずかに超えて
       折り返し、下のサブ文と重なるため 1 行固定にする(Figma も 1 行) */
    white-space: nowrap;
}
.pc9-concerns__item--cycle .pc9-concerns__sub {
    top: 102px; /* Figma 4342-4250=92 → 102 で調整 */
    width: 324px;
    left: 176px; /* 196-20 */
}
.pc9-concerns__item--cycle .pc9-concerns__check {
    bottom: 27px;
}

/* タイトル: Figma 新 PC top:3748-3708=40, left:230-20=210, w:256, h:68 (2行) */
.pc9-concerns__main {
    position: absolute;
    left: 210px;
    top: 34px;
    width: 256px;
    text-align: center;
    font-family: var(--pc9-serif);
    font-size: 24px;
    line-height: 34px;
    letter-spacing: -0.02em;
    color: var(--pc9-color-text);
    margin: 0;
}

.pc9-concerns__main span {
    display: block;
    line-height: 34px;
}

/* 説明文: Figma 新 PC top:3834-3708=126, left:175-20=155, w:366, h:28 (1行) */
.pc9-concerns__sub {
    position: absolute;
    left: 155px;
    top: 120px;
    width: 366px;
    text-align: center;
    font-family: var(--pc9-serif);
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.04em;
    color: var(--pc9-color-text);
    margin: 0;
}

.pc9-concerns__sub span {
    display: block;
}

/* Check ボタン: 80×24
   Figma Vector36 の SVG path = "M0 24 H80 V0" → 下線+右線の L 字のみ
   filter dropShadow dx=1 dy=1 alpha=0.25 → 右下に薄い影 */
.pc9-concerns__check {
    position: absolute;
    left: 288px;
    bottom: 27px;
    width: 100px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff;
    color: var(--pc9-color-text);
    font-family: var(--pc9-serif);
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    border: none;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    border-radius: 0;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.pc9-concerns__check svg {
    flex-shrink: 0;
}

/* ============================================================
   Phase 2-4: 商品セクション(SNOW / V酵素 / W) 共通スタイル
   ============================================================ */

/* 「Check」リンク(#snow / #v-enzyme / #w)へのアンカースクロールを滑らかに。
   この CSS は canteen9 商品ページでのみ読み込まれるため影響範囲は当該ページ限定 */
html {
    scroll-behavior: smooth;
}

.pc9-product {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 0 40px;
    position: relative;
    /* 「Check」リンクからのアンカースクロール時の着地位置調整。
       ヘッダーは固定ではない(スクロールで画面外に出る)ため、ヘッダー分のオフセットは不要。
       section 自身の padding-top:60px を相殺し、見出しを画面上部寄り(約24px)に着地させる */
    scroll-margin-top: -36px;
}

/* ヘッダー: タイトル + リード + サブ + 区切り線 */
.pc9-product__header {
    text-align: center;
    padding: 0 20px;
}

.pc9-product__title {
    font-family: var(--pc9-serif);
    font-weight: 500;
    font-size: 60px;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 0;
    position: relative;
    display: inline-block;
}

.pc9-product__title-jp {
    display: inline-block;
    vertical-align: baseline;
    font-size: 16px; /* Figma h:16 */
    line-height: 1;
    letter-spacing: 0.1em;
    margin-left: 9px;
    color: var(--pc9-color-text);
    position: relative;
    top: -8px;
}

.pc9-product__lead {
    font-family: var(--pc9-serif);
    font-size: 28px;
    line-height: 36px;
    margin: 30px auto 0; /* タイトルとの間 30px (Figma) */
    padding-bottom: 20px; /* リードと区切り線の間 20px (Figma) */
    border-bottom: 1px solid #000;
    width: 560px;
    text-align: center;
}

.pc9-product__sub {
    font-family: var(--pc9-serif);
    font-size: 22px; /* design-text と同じ */
    line-height: 1.4;
    margin: 30px 0 0;
    text-align: center;
}

/* スライダー: コンテンツ内 (max-width 600px) に収め、両端に clone で循環表示 */
.pc9-product__slider {
    margin: 50px auto 0;
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    padding: 20px 0; /* shadow が切れないよう */
}

.pc9-product__slider-track {
    display: flex;
    gap: 16px;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.pc9-product__slide {
    flex: 0 0 480px; /* コンテナ 600px の 80% */
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    background: #fff;
    opacity: 0.5;
    transform: scale(0.94);
    transition: opacity 0.4s, transform 0.4s;
}

.pc9-product__slide.is-current {
    opacity: 1;
    transform: scale(1);
}

.pc9-product__slide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.pc9-product__slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.pc9-product__slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #000;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.pc9-product__slider-dot.is-active {
    background: #000;
}

/* 設計説明 */
.pc9-product__design {
    margin: 60px auto 0;
    padding: 0 20px;
    text-align: center;
    max-width: 540px;
}

/* 栄養機能食品ラベル: design ブロック直後、特徴カード直前に配置 */
.pc9-product__category-label {
    display: block;
    width: 274px;
    margin: 50px auto 30px;
    padding: 10px 0;
    background: #f8f9cd;
    border-radius: 2px;
    font-size: 24px;
    line-height: 1.4;
    font-family: var(--pc9-serif);
    text-align: center;
}

.pc9-product--w .pc9-product__category-label {
    background: var(--pc9-tone-purple);
}

.pc9-product__design-title {
    font-family: var(--pc9-serif);
    font-weight: 400;
    font-size: 28px;
    line-height: 40px;
    margin: 0 0 14px;
}

.pc9-product__design-text {
    font-family: var(--pc9-serif);
    font-size: 22px; /* Figma h:102 / ~3行 → line 34 / font 22 推定 */
    line-height: 34px;
    letter-spacing: -0.02em;
    text-align: left;
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid #000;
}

/* 特徴カード: 白背景 + shadow、上部に色付きラベル、下部にテキスト+画像 */
.pc9-product__features {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

/* カード li は外側コンテナ(右下に offset した色付き背景を ::before で表示) */
.pc9-product__feature {
    position: relative;
    width: 550px;
    margin: 0 auto 30px;
    padding: 0 10px 10px 0; /* 右下に offset した色付き四角ぶんの空間 */
}

.pc9-product__feature::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 0;
    bottom: 0;
    background: var(--pc9-tone-yellow);
    border-radius: 2px;
}

.pc9-product--v .pc9-product__feature::before {
    background: var(--pc9-tone-pink);
}

.pc9-product--w .pc9-product__feature::before {
    background: var(--pc9-tone-purple);
}

/* カードはデザイン済み画像(736×334)で差し込み。
   li の ::before(色付きオフセット)の上に重ね、従来のレイヤー感を踏襲する */
.pc9-product__feature-card-img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* V酵素 カード画像(バナナ味)。キャプションは画像に内包済み */
.pc9-product__photo {
    position: relative;
    margin: 40px auto 0;
    width: 540px;
}

.pc9-product__photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* アコーディオン */
.pc9-accordion {
    margin: 24px 20px 0;
    border-top: 1px solid #000;
    padding-top: 16px;
}

.pc9-accordion__summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--pc9-serif);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.06em;
    padding: 18px 8px 28px; /* 和文フォントの descent 分を下に追加 */
    border-bottom: 1px solid #000;
    /* テキストと +/- アイコンを縦中央に揃えるため flex */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pc9-accordion__summary::-webkit-details-marker {
    display: none;
}

.pc9-accordion__summary::after {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cline x1='2' y1='9' x2='16' y2='9'/%3E%3Cline x1='9' y1='2' x2='9' y2='16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

.pc9-accordion[open] .pc9-accordion__summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cline x1='2' y1='9' x2='16' y2='9'/%3E%3C/svg%3E");
}

.pc9-accordion__content {
    padding: 20px 8px 32px;
    font-family: var(--pc9-serif);
    font-size: 16px;
    line-height: 28px;
    letter-spacing: -0.04em;
}

.pc9-accordion__list {
    margin: 0;
    padding: 0;
}

.pc9-accordion__row {
    margin: 0 0 16px;
}

.pc9-accordion__row dt {
    font-weight: 400;
    margin-bottom: 4px;
}

.pc9-accordion__row dd {
    margin: 0;
}

/* 末尾の disclaimer */
.pc9-disclaimer {
    text-align: center;
    font-family: var(--pc9-serif);
    font-size: 10px;
    margin: 40px 0 0;
    padding-bottom: 20px;
    color: var(--pc9-color-text);
}

/* ============================================================
   PC (768px+) レイアウト
   --
   PC では SP の 393px キャンバスを中央配置し、左右に Figma の大きな背景写真を展開。
   各セクションの ::before に 100vw 幅の背景画像を絶対配置、
   ::after に mix-blend-multiply の茶色オーバーレイ rgba(141,116,106,0.4)。
   ============================================================ */

/* 背景画像レイヤー: SP では非表示、PC で fixed 配置 + フェード切替 */
.pc9-bg-layer {
    display: none;
}

@media (min-width: 768px) {
    .product-canteen9 {
        max-width: 1920px;
        margin-inline: auto;
        background: transparent;
        position: relative;
        overflow-x: clip;
    }

    /* スクロール連動背景画像レイヤー: 画面に固定、5枚を重ねて配置 */
    .pc9-bg-layer {
        display: block;
        position: fixed;
        inset: 0;
        z-index: -10;
        pointer-events: none;
        background: #fff;
    }

    .pc9-bg {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .pc9-bg.is-active {
        opacity: 1;
    }

    /* 茶色オーバーレイ: 背景画像と同じく重ねる */
    .pc9-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(141, 116, 106, 0.4);
        mix-blend-mode: multiply;
    }

    .pc9-bg--01 { background-image: url('../images/products/canteen9/bg-01.png'); }
    .pc9-bg--02 { background-image: url('../images/products/canteen9/bg-02.png'); }
    .pc9-bg--03 { background-image: url('../images/products/canteen9/bg-03.png'); }
    .pc9-bg--04 { background-image: url('../images/products/canteen9/bg-04.png'); }
    .pc9-bg--05 { background-image: url('../images/products/canteen9/bg-05.png'); }

    /* 装飾 Canteen9 ロゴ: 背景画像の上に重ねる
       コンテンツ部分(中央 393px 白カラム)の左端を起点に左へ展開 */
    .pc9-bg-decor {
        position: absolute;
        top: 50%;
        /* コンテンツ左端 = calc(50% - 300px)。そこからロゴ幅+余白を引いた位置を left に */
        left: calc(50% - 300px - 197px - 80px);
        transform: translateY(-50%);
        color: #fff;
        text-align: center;
        pointer-events: none;
        z-index: 1;
    }

    .pc9-bg-decor__logo {
        width: 197px;
        height: 33px;
        background-image: url('../images/products/canteen9/logo-decor.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        filter: brightness(0) invert(1); /* 白に */
    }

    .pc9-bg-decor__jp {
        font-family: var(--pc9-sans);
        font-size: 16px;
        font-weight: 500;
        color: #fff;
        letter-spacing: -0.1em;
        margin-top: 4px;
    }

    /* セクション: flow で並ぶ。内部の白カラムはそのまま、背景画像は固定レイヤーが担当 */
    .pc9-section {
        position: relative;
    }

    /* セクション間の余白は廃止(背景画像はスクロール連動でフェード切替) */

    /* 中央コンテンツ全体を 1 つの大枠で扱う(背景白 + 左右シャドウ)。
       分割した 2 つの .pc9-content と、その間の固定シーンを同じ白カラムに揃える。
       blur(16) + spread(-16) で上下方向のにじみを 0 にし、ブロックの継ぎ目に
       横線(シャドウ)が出ないようにする(左右シャドウは継続) */
    .pc9-content,
    .pc9-fv-closing {
        position: relative;
        background: #fff;
        max-width: 600px;
        margin-inline: auto;
        box-shadow:
            -16px 0 16px -16px rgba(0, 0, 0, 0.18),
            16px 0 16px -16px rgba(0, 0, 0, 0.18);
    }

    /* 内部の各セクションは透明(.pc9-content の背景白を共有) */
    .pc9-content .pc9-hero,
    .pc9-content .pc9-concepts,
    .pc9-content .pc9-photo,
    .pc9-content .pc9-concerns,
    .pc9-content .pc9-product {
        position: relative;
        background: transparent;
        max-width: 600px;
        margin-inline: auto;
    }
}

/* ============================================================
   スクロールアニメーション
   参考: https://sinnpurete.com/Page/brandstory.aspx (TweenMax + ScrollMagic)
     - .move-ttl: 一文字ずつ translateY(100%) → 0 を 0.05s stagger でせり上げ
     - 段落 : ブロック単位で translateY(30%) + opacity 1.0s
   イージング: cubic-bezier(.445,.05,.55,.95) (= ease-in-out)
   --anim-order: 0ベースの登場順(❶=0, ❷=1, ❸=2) で stagger
   ============================================================ */
.product-canteen9 [data-anim] {
    opacity: 0;
    transition:
        opacity 0.6s cubic-bezier(0.445, 0.05, 0.55, 0.95),
        transform 0.6s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    transition-delay: calc(var(--anim-order, 0) * 0.18s);
    will-change: opacity, transform;
}

.product-canteen9 [data-anim="zoom-out"] {
    transform: scale(1.08);
    transform-origin: center;
}

.product-canteen9 [data-anim="zoom-in"] {
    transform: scale(0.88);
    transform-origin: center;
}

.product-canteen9 [data-anim="fade-up"],
.product-canteen9 [data-anim="fade-slide"] {
    transform: translateY(30%);
}

.product-canteen9 [data-anim].is-in {
    opacity: 1;
    transform: none;
}

/* 文字単位せり上げ (SINN PURETE .move-ttl span i 相当)
   親に opacity/transform は当てず、子 <i> だけがアニメーションする */
.product-canteen9 [data-anim="char-up"] {
    opacity: 1;
    transform: none;
    transition: none;
}
.product-canteen9 [data-anim="char-up"] > span {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    line-height: inherit;
}
.product-canteen9 [data-anim="char-up"] > span > i,
.product-canteen9 [data-anim="char-up"] > i {
    display: inline-block;
    font-style: normal;
    transform: translateY(105%);
    transition: transform 0.45s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    transition-delay: calc(var(--char-index, 0) * 0.025s);
    will-change: transform;
}
.product-canteen9 [data-anim="char-up"].is-in > span > i,
.product-canteen9 [data-anim="char-up"].is-in > i {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .product-canteen9 [data-anim] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .product-canteen9 [data-anim="char-up"] > span > i,
    .product-canteen9 [data-anim="char-up"] > i {
        transform: none !important;
        transition: none !important;
    }
}
