@charset "utf-8";

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

.detail-main {
    padding-top: 50px;
    padding-bottom: 50px;
    background: #efefef;
}

@media screen and (min-width: 767px) {
    .detail-main {
        padding-left: 30px;
        padding-right: 30px;
    }
}

.product-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 左側：商品画像 */
.product-images {
    flex: 1 1 auto;
}

.main-image img,
#currentImage {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: zoom-in;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 4px;
    background: #fff;
}

.thumbnails img:hover,
.thumbnails img.is-active {
    border: 2px solid #1C1987;
    transform: scale(1.05);
}

/* 右側：商品情報 */
.product-info {
    flex: 1 1 auto;
}

.product-info h1,
.product-info h2 {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #393939;
}

.detail-price {
    font-size: 30px;
    color: #d00;
    margin: 10px 0;
    font-weight: bold;
}

.sub-price {
    font-size: 14px;
    color: #666;
}

.detail-meta p {
    margin: 0.4em 0;
}

/* ブランドなど */
.product-brand a,
.detail-link {
    color: blue;
    text-decoration: none;
    font-weight: bold;
}

.product-brand a:hover,
.detail-link:hover {
    color: red;
}

/* ボタン */
.product-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.btn-cart,
.btn-booking,
.btn-share,
.btn-soldout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    padding: 12px 24px;
    margin: 15px 0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cart {
    background: #1C1987;
}

.btn-cart:hover {
    background: #559cff;
}

.btn-booking {
    background: #198731;
}

.btn-booking:hover {
    background: #47d25e;
}

.btn-share {
    gap: 4px;
    background: #000;
    font-size: 16px;
}

.btn-share:hover {
    background: #777;
}

.share-icon {
    width: 1.3em;
    height: 1.3em;
    display: inline-block;
    object-fit: contain;
}

.btn-soldout {
    background: #d00;
    pointer-events: none;
}

.quantity-box {
    margin-top: 15px;
}

.quantity-box input[type="number"] {
    width: 60px;
    padding: 5px;
    margin: 0 5px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 6px;
}

/* 備考 */
.special-box {
    background: #fff;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    border: 1px solid #1C1987;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.special-box h2 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #1C1987;
}

.special-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* 注意事項 */
.caution-h2 {
    padding-bottom: 5px;
    margin: 25px 0 10px 0;
    color: red;
    border-bottom: 1px dashed red;
    font-size: 1.3rem;
}

.caution-h3 {
    margin-top: 15px;
}

.detail-main ul {
    list-style: inside;
}

.small {
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .product-page {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 2rem;
    }

    .product-info h1,
    .product-info h2 {
        font-size: 20px;
    }

    .detail-price {
        font-size: 25px;
    }

    .product-images {
        flex: 1 1 50%;
    }

    .product-info {
        flex: 1 1 50%;
    }
}

/* ========== EC-CUBE標準ヘッダー/標準フッターを商品詳細ページでは隠す ========== */

/* 標準ヘッダーまわり */
.ec-headerRole,
.ec-headerNaviRole,
.ec-headerSearch,
.ec-headerTitle,
.ec-headerNav,
.ec-headerCategoryArea,
.ec-categoryNaviRole,
.ec-topicpath {
    display: none !important;
}

/* 標準フッターが出た場合も隠す */
.ec-footerRole {
    display: none !important;
}

/* EC-CUBE標準レイアウトの余白を詰める */
.ec-layoutRole,
.ec-layoutRole__contents,
.ec-layoutRole__main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

/* ========== EC-CUBE標準方式ベース：カート投入後モーダル 修正版 ========== */

.chukyo-ec-modal {
    display: block;
}

.chukyo-modal-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.chukyo-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 20000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45) !important;
}

#chukyo-cart-modal-checkbox:checked + .chukyo-modal-overlay {
    display: flex !important;
}

.chukyo-modal-wrap {
    position: relative !important;
    z-index: 20001 !important;
    width: min(90vw, 420px);
    padding: 28px 24px;
    background: #fff !important;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
}

.chukyo-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.chukyo-modal-header {
    margin: 0 0 20px;
    padding: 0 28px;
    color: #333 !important;
    font-weight: bold;
    font-size: 1.1rem;
}

.chukyo-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.chukyo-modal-continue,
.chukyo-modal-cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 18px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    pointer-events: auto !important;
}

.chukyo-modal-continue {
    background: #ddd !important;
    color: #333 !important;
}

.chukyo-modal-cart {
    background: #1C1987 !important;
    color: #fff !important;
}

.chukyo-modal-continue:hover {
    background: #ccc !important;
}

.chukyo-modal-cart:hover {
    background: #559cff !important;
    color: #fff !important;
    text-decoration: none;
}

/* ========== お気に入りボタン ========== */

.btn-favorite,
.btn-favorite-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    padding: 12px 24px;
    margin: 15px 0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-favorite {
    background: #e77b00;
}

.btn-favorite:hover {
    background: #ff9b21;
    color: #fff;
    text-decoration: none;
}

.btn-favorite-done {
    background: #999;
    cursor: default;
}

/* ========== 商品詳細ページ 微調整 ========== */

/* 商品詳細全体の余白 */
.detail-main {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* 商品画像と商品情報の横並び全体 */
.product-page {
    max-width: 1100px;
    margin: 0 auto;
}

/* 商品画像の白い枠を少し綺麗に */
.product-images {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
}

/* メイン画像 */
.main-image img,
#currentImage {
    border: none;
    border-radius: 4px;
    background: #fff;
}

/* サムネイル */
.thumbnails {
    margin-top: 12px;
}

.thumbnails img {
    width: 68px;
    height: 68px;
    padding: 3px;
    box-sizing: border-box;
}

.thumbnails img.is-active {
    border: 2px solid #1C1987;
}

/* 商品情報側 */
.product-info {
    padding: 8px 0;
}

/* 商品タイトル */
.product-info h1 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.6;
    font-weight: normal;
    color: #222;
}

/* 発売日 */
.detail-meta {
    margin: 8px 0;
}

.detail-meta p {
    margin: 0;
    font-size: 15px;
}

/* 価格 */
.detail-price {
    margin: 12px 0 18px;
    font-size: 30px;
    line-height: 1.2;
}

/* 数量 */
.quantity-box {
    margin-top: 18px;
    margin-bottom: 10px;
}

.quantity-box label {
    display: block;
    margin-bottom: 4px;
}

/* ボタン横並び */
.product-buttons {
    margin-top: 18px;
    gap: 10px;
}

/* ボタンの高さを統一 */
.btn-cart,
.btn-booking,
.btn-favorite,
.btn-favorite-done,
.btn-share,
.btn-soldout {
    min-height: 46px;
    padding: 0 24px;
    margin: 0;
    box-sizing: border-box;
    line-height: 1;
}

/* シェアアイコンと文字の位置調整 */
.btn-share {
    gap: 8px;
}

/* 注意欄 */
.special-box {
    margin-top: 28px;
    padding: 22px 24px;
}

.special-box h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

.special-box li {
    line-height: 1.8;
}

/* スマホ時はボタンを押しやすく */
@media (max-width: 767px) {
    .detail-main {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .product-page {
        gap: 1.5rem;
    }

    .product-info h1 {
        font-size: 20px;
    }

    .detail-price {
        font-size: 26px;
    }

    .btn-cart,
    .btn-booking,
    .btn-favorite,
    .btn-favorite-done,
    .btn-share,
    .btn-soldout {
        min-width: 140px;
        min-height: 44px;
    }
}

/* ========== 定価表示 ========== */

.detail-list-price {
    margin: 6px 0;
    font-size: 16px;
    line-height: 1.7;
}

/* ========== 特典付きアイコン ========== */

.detail-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-offer-icon {
    width: 44px;
    height: auto;
    flex: 0 0 auto;
}

.detail-price-main {
    color: #d00;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.2;
}

/* ========== ブランド表示 ========== */

.product-extra-info {
    margin-top: 18px;
}

.product-extra-info p,
.product-brand p {
    margin: 6px 0;
    font-size: 16px;
    line-height: 1.7;
}

.product-brand a {
    color: #1C1987;
    text-decoration: none;
    font-weight: bold;
}

.product-brand a:hover {
    color: #559cff;
    text-decoration: underline;
}

/* ========== 備考エリア ========== */

.detail-remarks {
    margin-top: 26px;
}

.detail-remarks h2 {
    color: #1C1987;
}

.detail-remarks ul {
    margin: 0;
    padding-left: 1.3em;
}

.detail-remarks li {
    line-height: 1.8;
}

/* ========== フリーエリア備考 ========== */

/* 備考ボックスだけ余白を詰める */
.detail-remarks {
    padding: 12px 18px;
    margin-top: 20px;
}

/* 「備考」見出しの上の空きをなくす */
.detail-remarks h2 {
    margin: 0 0 6px;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    color: #1C1987;
    line-height: 1.4;
}

/* フリーエリア全体の上余白をなくす */
.detail-free-area {
    margin: 0;
    padding: 0;
    font-weight: bold;
}

/* フリーエリア内のpタグ余白対策 */
.detail-free-area p {
    margin: 0;
    padding: 0;
    font-weight: bold;
    line-height: 1.7;
}

/* フリーエリア内のul/li余白対策 */
.detail-free-area ul {
    margin: 0;
    padding-left: 1.2em;
}

.detail-free-area li {
    margin: 0;
    padding: 0;
    font-weight: bold;
    line-height: 1.7;
}

/* ========== 商品スペック表示 ========== */

.product-specs {
    margin-top: 8px;
}

.product-specs p {
    margin: 6px 0;
    font-size: 16px;
    line-height: 1.7;
}

/* ========== 商品情報ラベル ========== */

.detail-label {
    font-weight: bold;
    color: #222;
}

/* ========== 商品詳細下部 注意事項 ========== */

.detail-caution {
    max-width: 1100px;
    margin: 42px auto 0;
    padding-top: 10px;
}

.detail-caution-title {
    margin: 0 0 16px;
    padding-bottom: 6px;
    color: #d00;
    border-bottom: 1px dashed #d00;
    font-size: 22px;
    font-weight: bold;
}

.detail-caution-block {
    margin-top: 18px;
}

.detail-caution-block h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: bold;
    color: #393939;
}

.detail-caution-block p {
    margin: 6px 0;
    line-height: 1.8;
}

.detail-caution-block ul {
    margin: 6px 0 0;
    padding-left: 1.3em;
}

.detail-caution-block li {
    line-height: 1.8;
}

.detail-caution .small {
    font-size: 0.85rem;
    color: #555;
}

/* 注意事項リンク */
.detail-caution-link {
    color: #1C1987;
    font-weight: bold;
    text-decoration: underline;
}

.detail-caution-link:hover {
    color: #559cff;
}

/* ========== 商品詳細下部 注意事項 仕上げ ========== */

.detail-caution {
    max-width: 1100px;
    margin: 46px auto 0;
    padding: 0 4px;
    box-sizing: border-box;
}

/* 注意事項の大見出し */
.detail-caution-title {
    margin: 0 0 18px;
    padding-bottom: 6px;
    color: #d00;
    border-bottom: 1px dashed #d00;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.5;
}

/* 各ブロック */
.detail-caution-block {
    margin-top: 22px;
}

/* 小見出し */
.detail-caution-block h3 {
    margin: 0 0 8px;
    color: #393939;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
}

/* 本文 */
.detail-caution-block p {
    margin: 4px 0;
    line-height: 1.8;
}

/* 箇条書き */
.detail-caution-block ul {
    margin: 6px 0 0;
    padding-left: 1.4em;
}

.detail-caution-block li {
    line-height: 1.8;
}

/* 補足文 */
.detail-caution .small {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
}

/* 「こちら」リンク */
.detail-caution-link {
    color: #1C1987;
    font-weight: bold;
    text-decoration: underline;
}

.detail-caution-link:hover {
    color: #559cff;
}

/* スマホ時の余白 */
@media (max-width: 767px) {
    .detail-caution {
        margin-top: 34px;
    }

    .detail-caution-title {
        font-size: 21px;
    }

    .detail-caution-block h3 {
        font-size: 17px;
    }
}


/* ========== 商品詳細下部 店舗情報 ========== */

.detail-store {
    max-width: 1100px;
    margin: 46px auto 0;
    padding: 0 4px;
    box-sizing: border-box;
}

.detail-store-title {
    margin: 0 0 18px;
    padding: 10px 16px;
    background: #1C1987;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    border-radius: 4px;
    line-height: 1.5;
}

.detail-store-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.detail-store-calendar,
.detail-store-map,
.detail-store-shop {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.detail-store-calendar img,
.detail-store-shop img {
    display: block;
    width: 100%;
    height: auto;
}

.detail-store-map iframe {
    display: block;
    width: 100%;
    height: 320px;
}

.detail-store-tel {
    margin-top: 22px;
    text-align: center;
}

.detail-store-tel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    min-height: 48px;
    padding: 0 24px;
    background: #1C1987;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.detail-store-tel a:hover {
    background: #559cff;
    color: #fff;
    text-decoration: none;
}

/* PCでは横並び */
@media (min-width: 768px) {
    .detail-store-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-store-map {
        grid-column: span 2;
    }
}