/* 既存スタイル */
.input-prepend.input-append input {
    font-size: 24px;
    padding-top: 11px;
    padding-bottom: 11px;
    width: 100px;
    text-align: right;
}

.stock_error {
    color: #DC5656;
    background: rgba(220, 86, 86, 0.1);
    border: 1px solid rgba(220, 86, 86, 0.3);
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
}

/* 商品詳細ページ メインレイアウト */
.product-main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 0px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 商品画像セクション */
.product-image-section {
    position: relative;
}

/* メイン画像表示エリア */
.main-image-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    /* スライドアニメーション用 */
}

.main-product-image {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    cursor: crosshair;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* スライドアニメーション関連のスタイルを削除
.sliding-image, .sliding-image.slide-in, .sliding-image.slide-out,
.main-image-container.animating .magnifier-glass は削除
*/

/* 虫眼鏡ZOOM機能のスタイル */
.magnifier-glass {
    position: absolute;
    border: 3px solid #ffffff;
    border-radius: 50%;
    cursor: none;
    width: 150px;
    height: 150px;
    display: none;
    background-repeat: no-repeat;
    z-index: 99;
    box-shadow:
        0 0 0 3px rgba(0, 123, 255, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 40px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(1px);
    pointer-events: none;
}

/* サムネイルギャラリー */
.thumbnail-gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.thumbnail-image:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.thumbnail-image.active {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.3);
}

/* 画像ナビゲーションボタン */
.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.image-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* 商品詳細セクション */
.product-details-section {
    padding: 0;
}

/* 商品詳細ページ専用のタイトル */
.product-detail-title {
    font-size: 28px;  /* 1.5倍のサイズ */
    font-weight: 200;
    line-height: 1.3;
    margin: 0 0 25px 0;
    color: inherit;
}

/* 型番表示 */
.product-model-number {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

/* 価格セクション */
.price-section {
    margin-bottom: 20px;
    padding: 20px 0;
}

.original-price {
    font-size: 18px;
    color: #888;
    text-decoration: line-through;
    margin-bottom: 5px;
}

/* 商品詳細ページ専用の価格クラス */
.detail-main-price {
    font-size: 24px;  /* 1.5倍のサイズ */
    font-weight: 200;
    color: #ffffff;
    margin-bottom: 8px;
}

.price-label {
    font-size: 14px;
    color: #8bb8e8;
    margin-bottom: 15px;
}

/* 配送情報 */
.delivery-info {
    color: #4CAF50;
    font-size: 13px;
    margin-bottom: 25px;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
    border-radius: 4px;
}

/* 数量選択 */
.quantity-selection {
    margin-bottom: 25px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    width: fit-content;
    overflow: hidden;
}

.qty-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
    user-select: none;
}

.qty-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-input {
    width: 70px;
    height: 45px;
    background: none;
    border: none;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

/* 購入ボタン */
.purchase-section {
    margin-bottom: 30px;
}

/* ソーシャルシェアセクション */
.social-share-section {
    margin-top: 20px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.add-cart-button {
    width: 100%;
    background: #28a745;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.add-cart-button:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.quick-order-button {
    display: block;
    width: 100%;
    background: #007bff;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.quick-order-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
    text-decoration: none;
    color: #ffffff;
}

.unavailable-button,
.members-button {
    width: 100%;
    background: #6c757d;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: not-allowed;
    opacity: 0.7;
}

/* オプション選択 */
.product-options-section {
    padding: 0;
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    display: block;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.option-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: inherit;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.option-select:focus {
    border-color: #007bff;
}

/* 商品情報セクション */
.product-info-sections {
    padding: 0;
    margin-bottom: 40px;
}

.info-section {
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-size: 18px;
    font-weight: 200;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-content {
    padding: 20px;
    color: inherit;
    line-height: 1.6;
}

/* 商品説明 */
.product-order-exp {
    color: inherit;
}

/* 仕様テーブル */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border: none;
    /* 外枠削除 */
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    border: none;
    /* 全ての枠線を削除 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* 薄いグレーの下線のみ */
    text-align: left;
}

.specs-table th {
    color: inherit;
    font-weight: 600;
    width: 150px;
    background: rgba(255, 255, 255, 0.01);
    /* より薄い背景色 */
}

.specs-table td {
    color: inherit;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
    /* 最後の行の下線は削除 */
}

.specs-table .discount {
    color: #ff4444;
    font-weight: bold;
    margin-left: 10px;
}

/* 商品関連リンク */
.product-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.product-links li {
    margin-bottom: 8px;
}

.product-links a {
    color: #8bb8e8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.product-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* SNSボタン */
.social-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* メールシェアボタン */
.email-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 2px 8px;
    height: 20px;
    background: #55ACEE;
    border: 1px solid #55ACEE;
    border-radius: 3px;
    color: #ffffff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    vertical-align: top;
    box-sizing: border-box;
}

.email-share-button:hover {
    background: #4A9DD5;
    border-color: #4A9DD5;
    color: #ffffff;
    text-decoration: none;
}

.email-share-button svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.email-share-button span {
    line-height: 1;
    display: inline-block;
    padding-top: 1px;
}

/* おすすめ商品 */
.recommended-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.recommended-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    padding: 15px;
}

.recommended-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.recommended-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 4px;
}

.recommended-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-details {
    padding: 0;
}

.item-name {
    font-size: 14px;
    color: inherit;
    margin: 0;
    line-height: 1.3;
    font-weight: 500;
}

/* エラーメッセージ */
.product-error {
    text-align: center;
    padding: 60px 20px;
    color: inherit;
}

/* Foundation互換クラス（既存サイトとの統合） */
.mar_t_50 {
    margin-top: 50px;
}

.txt_c {
    text-align: center;
}

.txt_18 {
    font-size: 18px;
}

.mar_auto {
    margin: 0 auto;
}

.mar_b_10 {
    margin-bottom: 10px;
}

.show {
    display: block;
}

.pad_20 {
    padding: 20px;
}

.hide {
    display: none;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .product-main-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 25px;
    }

    /* モバイルでは虫眼鏡機能を無効化 */
    .magnifier-glass {
        display: none !important;
    }

    .main-product-image {
        cursor: default;
    }

    .image-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .thumbnail-gallery {
        gap: 8px;
    }

    .thumbnail-image {
        width: 60px;
        height: 60px;
    }

    .product-detail-title {
        font-size: 28px;  /* モバイル用 */
    }

    .detail-main-price {
        font-size: 24px;  /* モバイル用 */
    }

    .product-info-sections,
    .product-options-section {
        padding: 0 15px;
    }

    .recommended-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .recommended-item {
        padding: 10px;
    }

    .recommended-item img {
        height: 120px;
    }

    .section-content {
        padding: 15px;
    }

    .specs-table th {
        width: 100px;
        font-size: 13px;
    }

    .specs-table th,
    .specs-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .product-main-container {
        padding: 15px;
        gap: 20px;
    }

    .main-image-container {
        padding: 20px;
    }

    .product-detail-title {
        font-size: 28px;  /* 小画面用 */
    }

    .detail-main-price {
        font-size: 24px;  /* 小画面用 */
    }

    .qty-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .qty-input {
        width: 60px;
        height: 40px;
    }

    .add-cart-button,
    .quick-order-button {
        padding: 12px 20px;
        font-size: 15px;
    }

    .recommended-products {
        grid-template-columns: 1fr;
    }
}