/* ---- 画像: width / height 属性は縦横比の確保用。CSS で高さの指定がなければ幅に合わせて自動にする ---- */
img {
    height: auto;
}

/* ==================================================================
   商品ページ共通スタイル（style.css）
   各商品ページの<head>から <link rel="stylesheet" href="../common/style.css">
   で読み込む。商品固有の見た目（例: クルミッチェルのhero-image--split）は
   各ページ側の<style>に書き、ここには入れないこと。
   ================================================================== */

:root {
    --primary-orange: #F17300;
    --bg-beige: #FAF8F5;
    --text-black: #1a1a1a;
    --text-gray: #666;
    --border-color: #e0e0e0;
    --container-width: 1200px;
    --mobile-inset: 4%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-beige);
    background-image: url('../images/products-common/paper_texture_bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-black);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

    body.no-scroll {
        overflow: hidden;
    }

h1, h2, h3, .serif {
    font-weight: 400;
    letter-spacing: 0.05em;
}

.br-pc {
    display: block;
}

.br-sp {
    display: none;
}

/* -------------------------------------------
   ヘッダー
   ------------------------------------------- */
header {
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    z-index: 1000;
}

.header-logo img {
    height: 60px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: none;
}

.header-nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

    nav ul li a {
        font-size: 13px;
        text-decoration: none;
        letter-spacing: 0.1em;
        color: var(--text-black);
        font-weight: 500;
        transition: color 0.3s;
    }

        nav ul li a:hover {
            color: var(--primary-orange);
        }

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sns-icons {
    display: flex;
    gap: 16px;
    font-size: 16px;
    color: var(--text-black);
}

    .sns-icons a {
        color: inherit;
        transition: color 0.3s;
    }

        .sns-icons a:hover {
            color: var(--primary-orange);
        }

.lang-switch {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    cursor: pointer;
}

    .lang-switch:hover {
        color: var(--primary-orange);
    }

.btn-online {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-orange);
    text-decoration: none;
    border: 1px solid var(--primary-orange);
    padding: 8px 20px;
    transition: all 0.3s;
}

    .btn-online:hover {
        background-color: var(--primary-orange);
        color: #fff;
    }

/* パンくずリスト */
.breadcrumb {
    max-width: var(--container-width);
    margin: 120px auto 20px;
    padding: 0 4%;
    font-size: 12px;
    color: var(--text-gray);
}

    .breadcrumb a {
        color: var(--text-gray);
        text-decoration: none;
        transition: color 0.3s;
    }

        .breadcrumb a:hover {
            color: var(--primary-orange);
        }

/* -------------------------------------------
   商品詳細セクション（キービジュアル・ギャラリー・価格）
   ------------------------------------------- */
.product-detail-section {
    padding: 20px 4% 120px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.product-intro {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 120px;
}

/* キービジュアル：一番上に幅広く配置 */
.hero-visual {
    width: 100%;
    margin-bottom: 30px;
}

.hero-image {
    width: 100%;
    aspect-ratio: 21/9;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

/* キービジュアル下のリード文 */
.hero-lead-text {
    max-width: 700px;
    margin: 0 auto 80px;
    text-align: center;
    font-size: 15px;
    line-height: 2;
    color: var(--text-gray);
}

/* 画像エリアの追従（sticky）対応 */
.product-image-wrapper {
    flex: 1.2;
    position: sticky;
    top: 120px;
    z-index: 10;
}

/* 画像ギャラリー */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #e8e4de;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: background-image 0.3s ease-in-out;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

.thumb-img {
    width: 80px;
    aspect-ratio: 4/3;
    background-color: #e8e4de;
    border-radius: 4px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transition: all 0.3s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

    .thumb-img:hover {
        opacity: 0.8;
    }

    .thumb-img.active {
        opacity: 1;
        border-color: var(--primary-orange);
    }

.product-info {
    flex: 1;
    padding-top: 10px;
}

.section-label {
    display: block;
    color: var(--primary-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.story-section .section-label {
    text-align: center;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-en {
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 0.05em;
    margin-bottom: 32px;
    display: block;
    line-height: 1.4;
}

    .product-en span {
        font-size: 11px;
    }

.price-list {
    max-width: 280px;
    margin: 24px 0;
    border-top: 1px solid var(--text-gray);
}

.price-list--wide {
    max-width: 360px;
}

.price-list--full {
    max-width: 100%;
}

    .price-list-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        gap: 12px;
        border-bottom: 1px solid var(--text-gray);
        font-size: 15px;
    }

    .price-list-name {
        color: var(--text-black);
    }

    .price-list-price {
        color: var(--text-gray);
        font-weight: 500;
    }

.product-desc {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* オンラインショップボタン */
.btn-cart-wrapper {
    display: none; /* オンラインショップ準備中のため非表示。準備でき次第この行を削除 */
    margin-top: 40px;
    margin-bottom: 40px;
}

.btn-cart {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 50px;
    background-color: var(--primary-orange);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(241,115,0,0.1);
}

.btn-cart-sub {
    font-size: 10px;
    font-weight: 400;
    margin-bottom: 4px;
    letter-spacing: 0.15em;
    opacity: 0.9;
}

.btn-cart-main {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.btn-cart:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(241,115,0,0.2);
}

/* -------------------------------------------
   ストーリーセクション（ジグザグレイアウト）
   ------------------------------------------- */
.story-section {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 40px 0;
}

.story-title {
    text-align: center;
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 24px;
}

.story-lead {
    max-width: 640px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 15px;
    line-height: 2;
    color: var(--text-gray);
}

.zigzag-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

    .zigzag-row:last-child {
        margin-bottom: 0;
    }

    .zigzag-row.reverse {
        flex-direction: row-reverse;
    }

.zz-img {
    flex: 1;
    aspect-ratio: 4/3;
    background-color: #e8e4de;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.zz-text {
    flex: 1;
}

    .zz-text h3 {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 16px;
        color: var(--primary-orange);
    }

    .zz-text p {
        color: var(--text-gray);
        margin-bottom: 16px;
    }

        .zz-text p:last-child {
            margin-bottom: 0;
        }

/* -------------------------------------------
   商品仕様セクション（表示/非表示・並び替えはブロック単位で行う）
   ------------------------------------------- */
.spec-section {
    max-width: 900px;
    margin: 0 auto;
}

/* -------------------------------------------
   ラインナップセクション（表示/非表示・並び替えはブロック単位で行う）
   ------------------------------------------- */
.lineup-section {
    max-width: 900px;
    margin: 0 auto;
}

.section-heading {
    font-size: 24px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 30px;
    color: var(--text-black);
    font-weight: 500;
}

.lineup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.lineup-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 40px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .lineup-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

.lineup-img-box {
    width: 100%;
    height: 200px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .lineup-img-box img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* 商品画像が未定の場合のプレースホルダー表示 */
.lineup-coming-soon {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-gray);
}

.lineup-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.lineup-name {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

    .lineup-name i {
        display: none;
        color: #a87e6b;
        font-size: 16px;
    }

.lineup-price {
    font-size: 15px;
    padding-left: 0; /* 矢印アイコン非表示中のため0。アイコンを戻す際は 24px に戻す */
    color: var(--text-gray);
}

/* 商品情報テーブル */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 80px;
}

    .spec-table th, .spec-table td {
        padding: 20px;
        border-bottom: 1px solid var(--text-gray);
        font-size: 14px;
    }

    .spec-table th {
        width: 30%;
        text-align: left;
        color: var(--text-gray);
        font-weight: 500;
    }

    .spec-table .spec-note {
        margin-top: 8px;
    }

/* -------------------------------------------
   商品情報に戻るボタン
   ------------------------------------------- */
/* 直前のセクション下余白と重なって空きすぎるため、ボタンがある時だけ詰める */
.product-detail-section:has(+ .back-to-products) {
    padding-bottom: 0;
}

.back-to-products {
    text-align: center;
    padding: 0 4% 100px;
}

.btn-back-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    color: var(--text-black);
    border: 1px solid var(--text-black);
    padding: 12px 40px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .btn-back-list i {
        color: var(--primary-orange);
        margin-right: 12px;
        font-size: 13px;
        transition: color 0.3s ease;
    }

    .btn-back-list:hover {
        background-color: var(--primary-orange);
        color: #fff;
        border-color: var(--primary-orange);
    }

        .btn-back-list:hover i {
            color: #fff;
        }

/* -------------------------------------------
   フッター
   ------------------------------------------- */
footer {
    background-color: #fff;
    padding: 100px 60px 40px;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    max-width: var(--container-width);
    margin: 0 auto 80px;
    display: flex;
    justify-content: space-between;
}

.footer-logo img {
    width: auto;
    height: 50px;
}

.footer-nav {
    display: flex;
    gap: 80px;
}

.footer-nav-col .footer-nav-title {
    font-weight: 700;
    font-size: 11px;
    color: #999;
    margin-bottom: 24px;
    letter-spacing: 0.2em;
}

.footer-nav-col ul li {
    margin-bottom: 14px;
    font-size: 13px;
    list-style: none;
}

.footer-nav-col a {
    text-decoration: none;
    color: var(--text-black);
    transition: color 0.3s;
}

    .footer-nav-col a:hover {
        color: var(--primary-orange);
    }

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #bbb;
    letter-spacing: 0.1em;
}

/* -------------------------------------------
   スマホ対応
   ------------------------------------------- */
@media (max-width: 1024px) {
    .br-pc {
        display: none;
    }

    .br-sp {
        display: block;
    }

    header {
        padding: 20px 30px;
    }

    .header-logo img {
        height: 47px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }

        .hamburger span {
            display: block;
            width: 100%;
            height: 2px;
            background-color: var(--text-black);
            transition: all 0.3s ease;
        }

        .hamburger.active span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }

    .header-nav-wrap {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(250, 248, 245, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }

        .header-nav-wrap.active {
            opacity: 1;
            visibility: visible;
        }

        .header-nav-wrap nav ul {
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }

            .header-nav-wrap nav ul li a {
                font-size: 18px;
            }

        .header-nav-wrap .header-right {
            flex-direction: column;
            gap: 24px;
        }

            .header-nav-wrap .sns-icons {
                gap: 20px;
                font-size: 20px;
            }

    .product-intro {
        flex-direction: column;
        gap: 40px;
    }

    /* モバイル/タブレットでは追従を解除 */
    .product-image-wrapper {
        width: 100%;
        position: static;
        top: auto;
    }

    /* キービジュアルがgallery-mainより小さく見えないよう比率を調整（PC/SP同じ画像がデフォルト） */
    .hero-image {
        aspect-ratio: 4/3;
        padding: 12px;
        background-origin: content-box;
        background-repeat: no-repeat;
    }

    .btn-cart-wrapper {
        display: none; /* オンラインショップ準備中のため非表示。準備でき次第 flex に戻す */
        justify-content: center;
    }

    .lineup-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-table th, .spec-table td {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: none;
    }

    .spec-table th {
        padding-bottom: 4px;
    }

    .spec-table td {
        border-bottom: 1px solid var(--text-gray);
        margin-bottom: 12px;
    }

    footer {
        padding: 60px var(--mobile-inset);
    }

    .footer-main {
        flex-direction: column;
        gap: 50px;
        margin-bottom: 50px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* SP文字サイズ調整 */
    .product-title {
        font-size: 26px;
    }

    .product-en {
        font-size: 13px;
    }

    .price-list {
        max-width: none;
    }

    .price-list--full .price-list-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .product-desc {
        font-size: 14px;
    }

    .hero-lead-text {
        font-size: 14px;
    }

    .story-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .story-lead {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .zz-text h3 {
        font-size: 18px;
    }

    .section-heading {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .lineup-name,
    .lineup-price {
        font-size: 14px;
    }

    .spec-table th, .spec-table td {
        font-size: 13px;
    }

    .footer-nav-col .footer-nav-title {
        font-size: 14px;
        letter-spacing: 0.1em;
        margin-bottom: 18px;
    }

    .footer-nav-col ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
        row-gap: 10px;
    }

    .footer-nav-col ul li {
        margin-bottom: 0;
    }

    .footer-nav-col ul li::before {
        content: "-";
        padding-right: 6px;
    }

    .footer-nav-col ul li {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .zigzag-row, .zigzag-row.reverse {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .zz-img {
        width: 100%;
    }

    .btn-cart {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .lineup-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------
   ページ左右の木のイラスト（装飾）
   ------------------------------------------- */
.deco-tree {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

/* 縦長の画像なので、高さを画面いっぱいにして幅は比率に合わせて自動計算 */
.deco-tree-left {
    left: -25px;
    bottom: -10px;
    height: 100vh;
    width: auto;
}

/* 縦長ではないので高さは画面基準にせず、幅を固定して比率どおりの高さにする */
.deco-tree-right {
    right: 0;
    bottom: 0px;
    width: clamp(220px, 30vw, 290px);
    height: auto;
}

/* 横幅が狭い画面ではコンテンツと重なるため、消さずに透明化して背景として見せる */
@media (max-width: 1400px) {
    .deco-tree {
        opacity: 0.25;
    }
}

/* スマートフォン表示のみ位置を調整 */
@media (max-width: 768px) {
    .deco-tree-left {
        left: -40px;
    }

    .deco-tree-right {
        right: -15px;
    }
}
