  
/* ========================================
   商品詳細ページ
======================================== */

.jh-detail {
    --detail-yellow: #ffeb32;
    --detail-text: #333333;
    color: var(--detail-text);
    overflow-wrap: anywhere;
}

.jh-detail,
.jh-detail * {
    box-sizing: border-box;
}

/* ========================================
   パンくずリスト
======================================== */

.jh-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 30px;
    font-size: 13px;
    line-height: 1.8;
    color: #777777;
}

.jh-detail-breadcrumb a {
    color: #333333;
    text-decoration: none;
}

.jh-detail-breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   セクションタイトル
======================================== */

.jh-detail-heading {
    margin-bottom: 40px;
}

.jh-detail-heading h1,
.jh-detail-heading h2 {
    margin: 0;
    padding: 0;
    color: #333333;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.03em;
    background: none;
    border: none;
}

/* タイトル下の黄色い装飾ライン */
.jh-detail-heading::after {
    content: "";
    display: block;
    width: 60px;
    height: 5px;
    margin-top: 12px;
    background: var(--detail-yellow);
}

/* ========================================
   商品基本情報（2カラムレイアウト）
======================================== */

.jh-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}

/* 商品メイン画像 */
.jh-detail-photo {
    width: 100%;
    min-width: 0;
}

.jh-detail-photo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* 商品情報エリア */
.jh-detail-info {
    width: 100%;
    min-width: 0;
}

/* 商品カテゴリー */
.jh-detail-category {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 18px;
    border: 1px solid var(--detail-yellow);
    border-radius: 30px;
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

/* 商品名 */
.jh-detail-info .jh-detail-name {
    margin: 0 0 24px;
    padding: 0;
    background: none;
    border: none;
    color: #333333;
    font-size: clamp(24px, 2.3vw, 36px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* 商品概要 */
.jh-detail-description {
    margin-bottom: 30px;
}

.jh-detail-description p {
    margin: 0 0 15px;
    padding: 0;
    color: #333333;
    font-size: 15px;
    line-height: 1.9;
}

.jh-detail-description p:last-child {
    margin-bottom: 0;
}

/* ========================================
   商品仕様
======================================== */

.jh-detail-spec {
    margin-top: 30px;
}

/* 商品仕様タイトル */
.jh-detail-spec .jh-detail-spec-title {
    margin: 0 0 18px;
    padding: 0 0 0 12px;
    border: none;
    border-left: 5px solid var(--detail-yellow);
    background: none;
    color: #333333;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
}

/* 商品仕様テーブル */
.jh-detail .jh-detail-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.8;
}

/* テーブルセルの共通設定 */
.jh-detail-table th,
.jh-detail-table td {
    padding: 14px 18px;
    border: 1px solid #dddddd;
    text-align: left;
    vertical-align: middle;
}

/* 項目名 */
.jh-detail-table th {
    width: 27%;
    background: #f3f3f3;
    color: #333333;
    font-weight: 700;
}

/* 項目内容 */
.jh-detail-table td {
    width: 73%;
    background: #ffffff;
    color: #333333;
    font-weight: 400;
}

/* カラーバリエーション */
.jh-detail-colors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 15px;
}

/* カラー項目 */
.jh-detail-color {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* カラーサンプル */
.jh-detail-color i {
    display: inline-block;
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
}

/* ========================================
   商品の詳細紹介
======================================== */

.jh-detail-content {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #eeeeee;
}

/* 詳細紹介コンテンツエリア */
.jh-detail-body {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* 詳細紹介テキスト */
.jh-detail-body p {
    margin: 0 0 22px;
    padding: 0;
    color: #333333;
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.02em;
}

/* 詳細紹介画像 */
.jh-detail-body img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 45px;
    border-radius: 10px;
}

/* 最後の画像の下余白を削除 */
.jh-detail-body img:last-child {
    margin-bottom: 0;
}

/* ========================================
   商品一覧へ戻るボタン
======================================== */

.jh-detail-back {
    margin-top: 60px;
    margin-bottom: 20px;
    text-align: center;
}

/* ボタンの基本スタイル */
.jh-detail-back a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    max-width: 100%;
    min-height: 55px;
    padding: 15px 35px;
    border: 1px solid var(--detail-yellow);
    background: var(--detail-yellow);
    color: #222222;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 0.3s,
                border-color 0.3s,
                color 0.3s;
}

/* 戻る矢印 */
.jh-detail-back a span {
    position: absolute;
    left: 18px;
    font-size: 25px;
    line-height: 1;
}

/* ホバー時のスタイル */
.jh-detail-back a:hover {
    border-color: #333333;
    background: #333333;
    color: #ffffff;
    text-decoration: none;
}

/* キーボード操作時のフォーカス表示 */
.jh-detail-back a:focus-visible {
    outline: 2px solid #333333;
    outline-offset: 4px;
}

/* ========================================
   タブレット対応（1024px以下）
======================================== */

@media screen and (max-width: 1024px) {

    /* カラム間の余白調整 */
    .jh-detail-main {
        gap: 30px;
    }

    /* セクションタイトル */
    .jh-detail-heading h1,
    .jh-detail-heading h2 {
        font-size: 28px;
    }

    /* 商品名 */
    .jh-detail-info .jh-detail-name {
        font-size: 26px;
    }

    /* 商品仕様テーブル */
    .jh-detail-table th,
    .jh-detail-table td {
        padding: 10px 12px;
    }

    /* 詳細紹介エリア */
    .jh-detail-content {
        margin-top: 60px;
        padding-top: 40px;
    }

}

/* ========================================
   スマートフォン対応（767px以下）
======================================== */

@media screen and (max-width: 767px) {

    /* パンくずリスト */
    .jh-detail-breadcrumb {
        gap: 5px 8px;
        margin-bottom: 22px;
        font-size: 11px;
    }

    /* セクションタイトル */
    .jh-detail-heading {
        margin-bottom: 25px;
    }

    .jh-detail-heading h1,
    .jh-detail-heading h2 {
        font-size: 25px;
    }

    /* タイトル下の装飾ライン */
    .jh-detail-heading::after {
        width: 45px;
        height: 4px;
        margin-top: 10px;
    }

    /* 2カラムから1カラムへ変更 */
    .jh-detail-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* 商品メイン画像 */
    .jh-detail-photo img {
        border-radius: 10px;
    }

    /* 商品カテゴリー */
    .jh-detail-category {
        margin-bottom: 12px;
        padding: 5px 14px;
        font-size: 11px;
    }

    /* 商品名 */
    .jh-detail-info .jh-detail-name {
        margin-bottom: 18px;
        font-size: 24px;
        line-height: 1.5;
    }

    /* 商品概要 */
    .jh-detail-description {
        margin-bottom: 24px;
    }

    .jh-detail-description p {
        font-size: 14px;
        line-height: 1.9;
    }

    /* 商品仕様エリア */
    .jh-detail-spec {
        margin-top: 25px;
    }

    /* 商品仕様タイトル */
    .jh-detail-spec .jh-detail-spec-title {
        margin-bottom: 15px;
        font-size: 19px;
        border-left-width: 4px;
    }

    /* 商品仕様テーブル */
    .jh-detail .jh-detail-table {
        font-size: 13px;
    }

    .jh-detail-table th {
        width: 30%;
    }

    .jh-detail-table td {
        width: 70%;
    }

    .jh-detail-table th,
    .jh-detail-table td {
        padding: 12px 10px;
    }

    /* カラーバリエーションを縦並びに変更 */
    .jh-detail-colors {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* 商品の詳細紹介 */
    .jh-detail-content {
        margin-top: 45px;
        padding-top: 30px;
    }

    /* 詳細紹介コンテンツエリア */
    .jh-detail-body {
        width: 100%;
        max-width: none;
    }

    /* 詳細紹介テキスト */
    .jh-detail-body p {
        margin-bottom: 15px;
        font-size: 14px;
        line-height: 1.9;
    }

    /* 詳細紹介画像 */
    .jh-detail-body img {
        margin-bottom: 28px;
        border-radius: 8px;
    }

    /* 商品一覧へ戻るボタン */
    .jh-detail-back {
        margin-top: 35px;
        margin-bottom: 10px;
    }

    .jh-detail-back a {
        width: 240px;
        min-height: 48px;
        font-size: 14px;
    }

}

/* ========================================
   アクセシビリティ対応
   アニメーションを減らす設定
======================================== */

@media (prefers-reduced-motion: reduce) {
    .jh-detail-back a {
        transition: none;
    }
}
/* 商品詳細ページの高さと表示領域を調整 */
#product-detail {
    position: relative;
    height: auto;
    max-height: none;
    overflow: visible;
}

/* 商品詳細コンテンツの高さを自動調整 */
.jh-detail-main,
.jh-detail-content,
.jh-detail-body {
    height: auto;
    max-height: none;
    overflow: visible;
}

/* 商品詳細ページ下部の余白 */
.jh-detail {
    padding-bottom: 80px;
}
/* スマートフォン版の固定ヘッダー対策 */
@media screen and (max-width: 767px) {

    #product-detail {
        padding-top: 100px;
    }

}

/* ========================================
   商品仕様に関する注意事項
======================================== */

.jh-detail .jh-detail-spec-note {
    margin-top: 18px;
    padding: 15px 18px;
    background: #f7f7f7;
    border-left: 3px solid var(--detail-yellow, #ffeb32);
    color: #777777;
    font-size: 12px;
    line-height: 1.8;
}

.jh-detail .jh-detail-spec-note p {
    margin: 0 0 10px;
    padding: 0;
    font-size: 12px;
    line-height: 1.8;
}

.jh-detail .jh-detail-spec-note p:last-child {
    margin-bottom: 0;
}

/* 詳細紹介の最後の段落の余白を調整 */
.jh-detail-body p:last-child {
    margin-bottom: 0;
}

/* ========================================
   スマートフォン対応
======================================== */

@media screen and (max-width: 767px) {

    .jh-detail .jh-detail-spec-note {
        margin-top: 12px;
        padding: 12px;
        font-size: 11px;
    }

    .jh-detail .jh-detail-spec-note p {
        font-size: 11px;
        line-height: 1.8;
    }

}
