/*
 * 在庫詳細ページ専用スタイル (zaiko-single.css)
 * プレフィックス: sz-
 */

.sz-container {
    max-width: 1000px;
    margin: 0 auto 20px auto;
    background-color: #ffffff;
    overflow: auto;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sz-thumbnail {
    margin: 0 0 30px 0;
}

.sz-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.sz-header-info {
    margin: 0 30px;
}

.sz-president-comment {
    color: #e60012;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.sz-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0 !important;
    line-height: 1.2;
}

.sz-grade {
    font-size: 1.3rem;
    font-weight: normal;
    color: #000;
    margin-bottom: 30px;
}

.sz-content-body {
    margin: 0 30px 20px 30px;
}

/* サマリ行 (ギャラリー & スペック) */
.sz-summary-row {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.sz-gallery-col {
    flex: 1.2;
}

.sz-specs-col {
    flex: 1;
}

/* タイルギャラリー */
.sz-tile-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sz-gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #ddd;
    display: block;
    text-decoration: none;
}

.sz-gallery-item:hover {
    text-decoration: none; /* 画像アイテムなので不要 */
}

.sz-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.sz-gallery-item img:hover {
    opacity: 0.8;
}

/* 価格カード (刷新版) */
.sz-price-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: center;
}

.sz-price-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 700;
    padding: 15px 0 5px;
}

.sz-price-total {
    font-size: 4.4rem;
    background: linear-gradient(135deg, #e60012 0%, #b30000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    padding-bottom: 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.sz-price-num, .sz-price-unit {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 500 !important;
    font-style: italic !important;
}

.sz-price-num {
    font-size: 6.6rem; /* 4.4remの1.5倍 */
}

.sz-price-unit {
    font-size: 2.25rem; /* 1.5remの1.5倍 */
    margin-left: 5px;
}

.sz-price-base {
    font-size: 1.1rem;
    color: #333;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    padding: 10px 0;
}

/* スペック表 */
.sz-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.sz-spec-table th,
.sz-spec-table td {
    padding: 10px; /* 元の値に戻す */
    border-bottom: 1px solid #ddd; /* 横線は実線 */
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700; /* 細い字を使わない */
    color: #333;
}

.sz-spec-table tr:last-child th,
.sz-spec-table tr:last-child td {
    border-bottom: none;
}

.sz-spec-table th {
    background: #fff5f5; /* 淡赤に変更 */
    width: 35%;
    border-right: 1px dotted #bbb; /* 縦線（中）は点線 */
}

.sz-spec-table td {
    background: #fff;
}

/* セクション */
.sz-section {
    margin-top: 60px;
    border-top: 2px solid #eee;
    padding-top: 40px;
}

.sz-section-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 6px solid #e60012;
    line-height: 1.4;
    color: #111111;
}

/* 装備 */
.sz-equip-group {
    margin: 0 auto 40px auto; /* 中央寄せ */
    max-width: 700px;
}

.sz-equip-group h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    background: #f0f0f0;
    padding: 8px 15px;
    border-radius: 4px;
}

.sz-equip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.sz-equip-box {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 0.85rem;
    background: #fff;
}

.sz-equip-box.on {
    background-color: #ffebee;
    color: #e60012;
    border-color: #ffcdd2;
    font-weight: 700;
}

.sz-equip-box.off {
    color: #ccc;
    background-color: #fafafa;
    opacity: 0.6;
}

/* 保証 */
.sz-warranty-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #ddd;
}

.sz-warranty-label {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 4px;
    min-width: 120px;
    text-align: center;
    height: fit-content;
}

.sz-warranty-status {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e60012;
    margin-bottom: 10px;
}

.sz-content a {
    text-decoration: none;
    color: #e60012;
}

.sz-content a:hover {
    text-decoration: underline;
}

.sz-content {
    color: #333333;
    line-height: 1.8;
}

.sz-content p {
    font-size: 18px;
    line-height: 30px;
    margin: 0 auto 20px auto;
    max-width: 700px;
}

.sz-content p.caution {
    padding: 15px;
    border: solid 1px #ff7070;
    font-size: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sz-content p.attention {
    padding: 15px;
    border: solid 1px #888888;
    font-size: 16px;
    color: #444444;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sz-content h3 {
    font-size: 26px;
    line-height: 1.2;
    margin: 30px auto;
    max-width: 700px;
    font-weight: 700;
}

.sz-content ul, 
.sz-content ol {
    margin: 0 auto 20px auto;
    max-width: 700px;
    padding-left: 20px;
}

.sz-content li {
    margin-left: 30px;
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 10px;
}

.sz-content blockquote {
    background-color: #f9f9f9;
    border-left: 5px solid #e60012;
    font-style: italic;
    margin: 30px auto;
    padding: 25px 30px;
    max-width: 700px;
    color: #555;
}

.sz-content blockquote p {
    margin-bottom: 1em;
    max-width: 100%;
}

.sz-content .wp-block-image,
.sz-content .wp-block-gallery {
    background-color: #eeeeee;
    overflow: auto;
    margin: 0 auto 20px auto;
}

.sz-content .wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* 動画埋め込み */
.sz-content .wp-block-embed.is-type-video {
    margin: 0 auto 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.2);
    max-width: 700px;
}

.sz-content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.sz-content .wp-block-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Lightbox */
.sz-lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sz-lightbox-img {
    max-width: 90%;
    max-height: 80%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.sz-lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.sz-nav-prev, .sz-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s, color 0.3s;
    z-index: 10001;
}

.sz-nav-prev { left: 10px; }
.sz-nav-next { right: 10px; }

.sz-nav-prev:hover, .sz-nav-next:hover {
    background-color: rgba(255,255,255,0.1);
    color: #e60012;
}

/* SP (639px以下) */
@media screen and (max-width: 639px) {
    .sz-container {
        margin: 0 auto 15px auto;
    }

    .sz-header-info {
        margin: 0 15px;
    }

    .sz-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .sz-grade {
    font-size: 0.8rem;
    font-weight: normal;
    }   

    .sz-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .sz-content-body {
        padding: 0 15px 15px 15px;
        margin: 0;
    }

    .sz-content p,
    .sz-content h3,
    .sz-content ul,
    .sz-content ol,
    .sz-content blockquote,
    .sz-content .wp-block-embed.is-type-video {
        max-width: 100%;
    }

    .sz-content p {
        font-size: 16px;
        line-height: 1.8;
    }

    .sz-content h3 {
        font-size: 20px;
        margin: 20px 0 10px 0;
    }

    .sz-summary-row {
        flex-direction: column;
        gap: 20px;
    }

    /* スマホ横スクロールギャラリー */
    .sz-tile-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 10px;
    }

    .sz-gallery-item {
        flex: 0 0 35%;
        scroll-snap-align: start;
    }

    .sz-price-total {
        font-size: clamp(3.75rem, 22vw, 6.6rem); /* 1.5倍に拡大 */
    }

    .sz-price-num {
        font-size: clamp(3.75rem, 22vw, 6.6rem);
    }

    .sz-price-unit {
        font-size: clamp(1.2rem, 7.5vw, 2.25rem);
    }

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

    .sz-warranty-item {
        flex-direction: column;
    }

    .sz-warranty-label {
        width: 100%;
    }
}
