@charset "UTF-8";

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

/* 全体共通設定 */
body.product_a, body.product_b, body.product_c, body.product_d, body.product_e {
    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;
    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;
}
.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;
    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;
}
.description li {
    padding: 18px 25px;
    border-radius: 8px;
    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 40px;
    background: #fff;
}
.lineup h2, .recipes h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}
.lineup-grid, .recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}
.lineup-item, .recipe-item {
    text-align: center;
}

/* リンクエリアの設定 */
.lineup-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: 0.3s;
}

/* 画像の設定 */
.lineup-item img, .recipe-item img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    height: auto;
    border-radius: 10px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background-color: #fff;
    border: 1px solid #eee;
    display: block;
    transition: transform 0.3s;
}

/* テキスト情報のスタイル整理 */
.lineup-item h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: 700;
}
.product-spec {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}
.price {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* ホバーアクション */
.lineup-item a:hover {
    opacity: 0.8;
}
.lineup-item a:hover img {
    transform: translateY(-5px) scale(1.02);
}

/* --- レスポンシブ調整 --- */
@media (max-width: 992px) {
    .lineup-grid, .recipes-grid { grid-template-columns: repeat(2, 1fr); }
    .main-title { font-size: 2.2rem; }
}
@media (max-width: 600px) {
    .lineup-grid, .recipes-grid { grid-template-columns: 1fr; gap: 40px; }
    .lineup-item img { max-width: 280px; }
    .main-title { font-size: 1.8rem; }
}

/* ============================================
   製品別カラー設定 (各ページのbody classに連動)
   ============================================ */

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

/* B: あまいカリカリ梅 */
.product_b .title-section { background: linear-gradient(to bottom, #fffffd, #fffce6); }
.product_b .main-title, .product_b .price, .product_b .description h2::after { color: #b8860b; }
.product_b .description li { border-left: 5px solid #e6b422; background: #fffdf0; }

/* C: ごんじり */
.product_c .title-section { background: linear-gradient(to bottom, #f9fff9, #eef9ee); }
.product_c .main-title, .product_c .price, .product_c .description h2::after { color: #2e6b4a; }
.product_c .description li { border-left: 5px solid #2e6b4a; background: #f4faf4; }

/* D: 玉こんにゃく */
.product_d .title-section { background: linear-gradient(to bottom, #fffaf5, #f9f0e6); }
.product_d .main-title, .product_d .price, .product_d .description h2::after { color: #a0522d; }
.product_d .description li { border-left: 5px solid #d2691e; background: #fffaf5; }

/* E: チョロギ */
.product_e .title-section { background: linear-gradient(to bottom, #f5faff, #e6f2ff); }
.product_e .main-title, .product_e .price, .product_e .description h2::after { color: #4682b4; }
.product_e .description li { border-left: 5px solid #4682b4; background: #f0f7ff; }