/* --- レイアウト基本設定 --- */
#container {
    width: 1200px;
    margin: 0 auto;
}

#main {
    width: 100%;
}

#wrap {
    z-index: 99 !important;
}

/* --- 全体の配色：明るいラグジュアリー --- */
body {
    line-height: 1.8;
}

/* 商品コンテナ */
.product-page-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 40px;
}

.mousetrap {
    width: 100% !important;
}

/* 右側：購入エリアの枠線デザイン */
.product-info-section {
    display: flex;
    flex-direction: column;
}

/* タイトル：文字を少し濃くして引き締める */
.main-product-name {
    font-size: 20px !important;
    letter-spacing: 0.1em !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #ddd !important; /* 下線を少し太くしてアクセントに */
    padding-bottom: 15px !important;
    line-height: 1.6;
}

/* 価格：上品なゴールド系 */
.sale-price {
    font-size: 26px !important;
    margin: 30px 0 !important;
    font-weight: bold;
}

.sale-price small{
  font-size:14px;
}

/* カートボタン：背景が明るいので「黒」で引き締めるのが一番モダンです */
.btn-cart-main {
    background: #1a1a1a !important; 
    color: #fff !important;
    border-radius: 0 !important;
    letter-spacing: 0.2em !important;
    transition: all 0.4s ease;
    border: 1px solid #1a1a1a !important;
    padding: 18px !important;
    cursor: pointer;
}

.btn-cart-main:hover {
    background: #a68b5a !important; /* ホバー時はゴールドに */
    border-color: #a68b5a !important;
}

/* --- ワイドな商品説明 --- */
.product-description-wide {
    margin: 35px auto 0;
    padding: 40px 0;
    border-top: 1px solid #ddd;
    max-width: 900px;
    text-align: left;
}

.description-title {
    font-size: 16px;
    color: #a68b5a;
    letter-spacing: 0.4em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.description-content {
    line-height: 1.7;
    color: #444; /* 文字を少し濃くして読みやすく */
    font-size: 15px;
}

.custom-breadcrumb {
  	margin: 0 0 25px;
}

.sold-out-msg {
    margin: 20px 0 0;
 }

/* =============================================
   Responsive Design
   ============================================= */

/* 1. 1300px以下：コンテナを画面幅に合わせる（左右にゆとりを持たせる） */
@media screen and (max-width: 1300px) {
    #container {
        width: 100%;
        padding: 0 4%; /* 左右に4%の余白 */
    }
    .product-page-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* 2. 820px以下：メインを1カラムに切り替え（タブレット・大型スマホ） */
@media screen and (max-width: 820px) {
    .product-form-layout {
        display: block; /* 横並びを解除 */
    }

    .product-gallery-section, 
    .product-info-section {
        width: 100%; /* 全幅にする */
    }

    .product-info-section {
        margin-top: 10px; /* 画像との間に隙間を作る */
    }

    .main-product-name {
        font-size: 18px !important;
        text-align: center; /* タイトルを中央に（高級感を出す手法） */
    }

    .sale-price {
        text-align: center;
        font-size: 24px !important;
        margin: 20px 0 !important;
    }

    .product-description-wide {
        padding: 30px 15px;
        max-width: 100%;
    }
    
    .product-page-container {
        padding: 0;
    }
}

/* 3. 590px以下：文字サイズとボタンをスマホ最適化 */
@media screen and (max-width: 590px) {
    .product-page-container {
        margin: 30px auto; /* 上下の余白を詰める */
    }

    .main-product-name {
        font-size: 16px !important;
        padding-bottom: 10px !important;
    }

    .sale-price {
        font-size: 22px !important;
    }

    .btn-cart-main {
        padding: 15px !important;
        font-size: 14px !important;
        letter-spacing: 0.1em !important;
    }

    .description-title {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .description-content {
        font-size: 14px;
        line-height: 1.8;
    }

    /* パンくずリストもスマホでは少し小さく */
    .custom-breadcrumb {
        font-size: 11px;
        margin-bottom: 15px;
    }
}