@charset "UTF-8";

/* ============================================
   製品紹介ページ専用 (product.css)
   ============================================ */

/* 全体共通設定 */
body.product_a {
    background-color: #f9f9f7;
    color: #333;
    line-height: 1.8;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. メインビジュアル --- */
.product-main {
    width: 100%;
    background: #fff;
}
.product-main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 2. ページタイトル --- */
.title-section {
    padding: 40px 0 60px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.main-title {
    font-size: 2.8rem;
    color: #d70035;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}
.sub-title {
    font-size: 1.25rem;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.15em;
}

/* --- 4. 製品説明・特徴 --- */
.description {
    padding: 60px 0 10px;
    background-color: #fff;
}
.description .container {
    max-width: 850px; /* 文章とリストの幅を統一 */
    margin: 0 auto;
}

/* 2つ目のdescription（特徴リスト側）の余白を詰めて一体化 */
.description + .description {
    padding-top: 0;
    padding-bottom: 60px;
}

.description h2 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.description h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin: 15px auto 0;
}

.description p {
    font-size: 1rem; /* 1.1remから標準サイズへ変更 */
    line-height: 1.9; /* 行間も少しだけ詰めてバランスを調整 */
    color: #444;
    text-align: justify;
    margin-bottom: 20px;
}



/* 特徴リスト（縦並びカード形式） */
.description ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column; 
    gap: 15px;
    margin-top: 0;
}
/* 特徴リスト（箇条書きカード） */
.description li {
    background: #fdfafb;
    padding: 18px 25px;
    border-radius: 8px;
    border-left: 5px solid #d70035;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-size: 1.05rem; /* 小さめに調整済み */
    font-weight: 500;
    color: #333;
    line-height: 1.6;
}

/* --- 6. ラインナップ・レシピ共通 --- */
.lineup, .recipes {
    padding: 60px 0 20px; /* 下側のパディング(20px)を大幅に減らしました */
    background: #fff;
}

.lineup h2, .recipes h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

/* グリッドの基本設定：PC時は3列 */
.lineup-grid, .recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PC: 3列 */
    gap: 40px 30px; /* 縦の間隔を少し広めに設定 */
}

.lineup-item, .recipe-item {
    text-align: center;
    transition: transform 0.3s;
}

.lineup-item:hover {
    transform: translateY(-5px);
}

/* --- 6. ラインナップ・レシピ画像（共通設定） --- */
.lineup-item img, .recipe-item img {
    width: 100%;
    max-width: 400px;      /* 画像が巨大化するのを防ぐ */
    aspect-ratio: 1 / 1;   /* 強制的に正方形を維持 */
    object-fit: contain;   /* 写真全体を枠内に収める（切れないようにする） */
    height: auto;
    border-radius: 10px;
    margin: 0 auto 15px;   /* 中央寄せ＋下の余白 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background-color: #fff; /* パッケージの背景を白で綺麗に見せる */
    border: 1px solid #eee; /* 境界線をうっすら付ける */
    display: block;
}

/* リンクがある場合のホバーエフェクトを画像に適用 */
.lineup-item a:hover img {
    opacity: 0.8;
    transform: scale(1.02);
    transition: 0.3s;
}

/* 商品名と価格の調整 */
.lineup-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.price {
    font-weight: bold;
    color: #d70035;
    font-size: 1.1rem;
}

/* --- レスポンシブ調整 --- */

/* タブレット・幅の狭い画面：2列 */
@media (max-width: 992px) {
    .lineup-grid, .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ：1列 */
@media (max-width: 600px) {
    .lineup-grid, .recipes-grid {
        grid-template-columns: 1fr;
        gap: 40px; /* 縦の並びが見やすいように間隔を確保 */
    }
    
    .lineup-item img {
        max-width: 300px; /* スマホで画像が巨大化しすぎないよう調整 */
        margin: 0 auto 15px;
    }
}

/* --- フッターの修正（他ページと統一） --- */
.footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    /* padding: 60px 0; を 30px 0; 程度に詰めると、メニュー上の緑が狭まります */
    padding: 30px 0; 
}

/* ============================================
   製品別カラー設定
   ============================================ */

/* --- A: 梅しば (ピンク系) --- */
.product_a .title-section { background: linear-gradient(to bottom, #fffcfd, #fff0f3); }
.product_a .main-title { color: #d70035; }
.product_a .description h2::after,
.product_a .price { background-color: transparent; color: #d70035; }
.product_a .description li { border-left-color: #d70035; background: #fdfafb; }

/* --- B: あまいカリカリ梅 (イエロー系) --- */
.product_b .title-section { background: linear-gradient(to bottom, #fffffd, #fffce6); }
.product_b .main-title { color: #b8860b; } /* 少し落ち着いたゴールド寄りの黄 */
.product_b .description h2::after,
.product_b .price { background-color: transparent; color: #b8860b; }
.product_b .description li { border-left-color: #e6b422; background: #fffdf0; }

/* --- C: ごんじり (薄いグリーン系) --- */
.product_c .title-section { background: linear-gradient(to bottom, #f9fff9, #eef9ee); }
.product_c .main-title { color: #2e6b4a; }
.product_c .description h2::after,
.product_c .price { background-color: transparent; color: #2e6b4a; }
.product_c .description li { border-left-color: #2e6b4a; background: #f4faf4; }

/* --- D: 玉こんにゃく (薄い茶色・オレンジ系) --- */
.product_d .title-section { background: linear-gradient(to bottom, #fffaf5, #f9f0e6); }
.product_d .main-title { color: #a0522d; }
.product_d .description h2::after,
.product_d .price { background-color: transparent; color: #a0522d; }
.product_d .description li { border-left-color: #d2691e; background: #fffaf5; }

/* --- E: チョロギ (薄いブルー系) --- */
.product_e .title-section { background: linear-gradient(to bottom, #f5faff, #e6f2ff); }
.product_e .main-title { color: #4682b4; }
.product_e .description h2::after,
.product_e .price { background-color: transparent; color: #4682b4; }
.product_e .description li { border-left-color: #4682b4; background: #f0f7ff; }