@charset "UTF-8";

/* =========================================================
   cuisine_03.css - 食材ページ専用スタイル
   foundation.css + cuisine.css の変数・クラスを活用
   このファイルのみに記述し、既存CSSは一切変更しない
   ========================================================= */


/* =========================================================
   ヒーロー：オーバーレイ調整
   ========================================================= */
.p-hero::after {
    opacity: 0.45;
}


/* =========================================================
   食材セクション（PC版）
   ========================================================= */
.p-shokuzai {
    background-color: var(--bg-color);
    padding: var(--space-xl) var(--space-m);
}

.p-shokuzai__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.p-shokuzai__inner > h2 {
    margin-top: 0;
    font-size: 40px;
    font-weight: 600;
}

/* --- リード文 --- */
.p-shokuzai__lead {
    text-align: center;
    font-size: var(--base-fs);
    line-height: var(--base-lh);
    letter-spacing: var(--base-ls);
    color: var(--text-color);
    margin: 0 0 var(--space-l);
}

/* --- グリッドレイアウト（2列 × 490px） --- */
.p-shokuzai__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 80px;
}

.p-shokuzai__item {
    display: flex;
    flex-direction: column;
}

/* --- カード本体（490 × 490px、ベージュ背景） --- */
.p-shokuzai__card {
    width: 100%;
    height: 490px;
    background-color: #ccc3b4;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px 30px;
    box-sizing: border-box;
    margin-bottom: var(--space-s);
}

/* --- 食材名（h3・カード内上部） --- */
.p-shokuzai__name {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: var(--base-ls);
    color: #6d6d6d;
    text-align: center;
    margin: 0 0 var(--space-s);
    flex-shrink: 0;
}

.p-shokuzai__name--multiline {
    line-height: 1.2;
}

/* --- 画像エリア（カード内・contain表示） --- */
.p-shokuzai__img-wrap {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-shokuzai__img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
}

/* --- 説明文（カード外・中央揃え） --- */
.p-shokuzai__desc {
    font-size: 17px;
    line-height: var(--base-lh);
    letter-spacing: 0;
    color: #6d6d6d;
    text-align: center;
    margin: 0;
}

/* --- 説明文内リンク（お取り寄せ等） --- */
.p-shokuzai__link {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s;
}

.p-shokuzai__link:hover {
    opacity: 0.7;
}


/* =========================================================
   ページ下部リンクエリア：フォント・配置・光彩
   ========================================================= */

/* 縦書きテキスト：20px・上揃え・黒い光彩 */
/* letter-spacing: PSD値50 ÷ 1000 = 0.05em */
.p-cuisine-links .text-vertical {
    font-size: 20px;
    letter-spacing: 0.05em;
    top: 30px;                        /* 上揃え（cuisine.css の top:50% を上書き） */
    transform: translateX(-50%);      /* 垂直中央を解除、水平中央のみ維持 */
    text-shadow:
        0 0  6px rgba(0, 0, 0, 1),
        0 0 12px rgba(0, 0, 0, 0.9),
        0 0 22px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(0, 0, 0, 0.6);
}

/* 「このページ」テキスト：20px・黒い光彩 */
.p-cuisine-links .text-current {
    font-size: 20px;
    letter-spacing: 0.1em;
    text-shadow:
        0 0  6px rgba(0, 0, 0, 1),
        0 0 12px rgba(0, 0, 0, 0.9),
        0 0 22px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(0, 0, 0, 0.6);
}


/* =========================================================
   スマホ版（768px以下 / 650pxカンプ基準）
   すべての px 値を VW で算出：px ÷ 650 × 100
   ========================================================= */
@media (max-width: 768px) {

    /* --- 食材セクション --- */
    /* 左右: このページ専用 40px ÷ 650 × 100 = 6.15vw（コンテンツ幅1000px仕様） */
    .p-shokuzai {
        padding: var(--sp-space-l) 6.15vw;
    }

    .p-shokuzai__inner {
        padding: 0;
    }

    .p-shokuzai__inner > h2 {
        font-size: 6.15vw;
    }

    /* --- リード文（SP） --- */
    /* var(--sp-base-fs)=3.38vw(22px), var(--sp-base-lh)=6.92vw(45px) */
    .p-shokuzai__lead {
        font-size: var(--sp-base-fs);
        line-height: var(--sp-base-lh);
        text-align: center;
        margin-bottom: 6.15vw; /* 40px ÷ 650 × 100 */
    }

    /* --- グリッド：SP も 2列維持 --- */
    /* コンテンツ幅 = 650 - 3.08×2 = 43.84vw×2 + gap */
    /* column-gap: 10px ÷ 650 × 100 = 1.54vw */
    /* row-gap: 40px ÷ 650 × 100 = 6.15vw */
    .p-shokuzai__grid {
        grid-template-columns: repeat(2, 43.08vw);
        column-gap: 1.54vw;
        row-gap: 4.62vw;
        justify-content: center;
    }

    .p-shokuzai__item {
        min-width: 0;
    }

    /* --- カード本体（SP：1:1 正方形） --- */
    /* padding: 20px top / 15px sides / 15px bottom → 3.08vw / 2.31vw */
    /* margin-bottom: 10px ÷ 650 × 100 = 1.54vw（カードと説明文の間） */
    .p-shokuzai__card {
        width: 43.08vw;
        height: 43.08vw;
        padding: 3.08vw 2.31vw 2.31vw;
        margin-bottom: 1.54vw;
    }

    .p-shokuzai__img-wrap {
        overflow: hidden;
    }

    .p-shokuzai__img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* --- 食材名（SP）--- */
    /* 30px ÷ 650 × 100 = 4.62vw  2行名称（しげの家\n自家製杏漬け 等）も対応 */
    /* margin-bottom: 10px ÷ 650 × 100 = 1.54vw */
    .p-shokuzai__name {
        font-size: 4.62vw;
        letter-spacing: 0.05em;
        margin-bottom: 1.54vw;
    }

    /* --- 説明文（SP）--- */
    /* 22px ÷ 650 × 100 = 3.38vw / 行間35px ÷ 650 × 100 = 5.38vw / 文字間0 */
    .p-shokuzai__desc {
        font-size: 2.62vw;
        line-height: 5.38vw;
        letter-spacing: 0;
        text-align: left;
    }

    /* SP: 説明文内の <br> を非表示にして詰め表示 */
    .p-shokuzai__desc br {
        display: none;
    }

    /* 左列アイテムの説明文：右に 10px 余白（10px ÷ 650 × 100 = 1.54vw） */
    .p-shokuzai__item:nth-child(odd) .p-shokuzai__desc {
        padding-right: 1.54vw;
    }

    /* --- ページ下部リンクエリア（SP） --- */
    .p-cuisine-links {
        display: block !important;
        visibility: visible !important;
        margin-top: var(--sp-space-l);
    }

    .p-cuisine-links__list {
        display: flex !important;
        flex-direction: column;
    }

    /* パネル高さ: cuisine_02.css に準拠 */
    .p-cuisine-links__item {
        display: block !important;
        width: 100%;
        height: 60vw;
        min-height: 200px;
    }

    /* 縦書きテキスト：20px ÷ 650 × 100 = 3.08vw、上揃え維持 */
    .p-cuisine-links .text-vertical {
        font-size: 3.08vw;
        top: 4.62vw; /* 30px ÷ 650 × 100 */
    }

    .p-cuisine-links .text-current {
        font-size: 3.08vw;
    }
}
