/* ================================
   Others（Safety Pouch等）ページ専用スタイル
   ================================ */

/* サムネイル4枚用スタイル（16:9比率を維持） */
.slider-dots .dot,
.slider-dots.thumbnail-nav .thumbnail {
    /* 4枚なので横幅が広い → 高さを高く設定して16:9に近づける */
    height: auto;
    aspect-ratio: 16/9;
}

.slider-dots.thumbnail-nav .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header Styles */
.header-nav {
    background: var(--theme-color);
    width: 100%;
}

.header-nav-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
}

.header-nav-item {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .header-nav-item {
        max-width: none;
        flex: 1 1 0;
    }
}

.header-nav-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

.header-nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* サイドメニュー */
.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: var(--theme-color);
    color: white;
}

.side-menu-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.side-menu .close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu-content {
    padding: 20px;
}

.side-menu-section {
    margin-bottom: 30px;
}

.side-menu-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.side-menu .header-nav-item {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    background: white;
    border-right: none;
}

.side-menu .header-nav-item.active {
    background: #f0fff0;
    border-left-color: var(--theme-color);
    font-weight: bold;
}

/* テキストセクション */
.product-text-section {
    padding: 60px 0;
    text-align: left;
}

.product-text-section h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-text-section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    margin-top: 30px;
    line-height: 1.6;
}

.product-text-section h3:first-child {
    margin-top: 0;
}

.product-text-section h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    margin-top: 10px;
    line-height: 1.6;
}

.product-text-section p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 画像セクション */
.product-image-section {
    padding: 40px 0;
}

.product-image-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.product-image-column .product-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* JBRCバナー */
.jbrc-banner {
    margin: 30px 0;
    text-align: center;
}

.jbrc-banner a {
    display: inline-block;
}

.jbrc-banner img {
    max-width: 50%;
    height: auto;
    display: inline-block;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .jbrc-banner img {
        max-width: 100%;
    }
}

.jbrc-banner img:hover {
    opacity: 0.8;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
    font-weight: bold;
}

.image-placeholder.large {
    height: 500px;
}

/* 製品特長セクション */
.product-features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.product-features-section h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
    font-weight: bold;
}

.feature-item h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 2カラムセクション（商品画像 + 製品仕様） */
.two-column-section {
    padding: 60px 0;
    background: white;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* 2カラムレイアウトの逆順（製品仕様 + 構造図） */
.two-column-section.reverse .two-column-layout {
    grid-template-columns: 2fr 1fr;
}

/* 左カラム：商品画像 */
.product-image-column .product-image-wrapper {
    max-width: 100%;
}

.product-image-column .image-placeholder {
    width: 100%;
    height: 400px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
    font-weight: bold;
}

/* 右カラム：製品仕様 */
.product-specs-column h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: left;
}

.product-specs-column .specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.specs-table th {
    background: #f0f8ff;
    color: var(--text-dark);
    font-weight: bold;
    width: 40%;
}

.specs-table td {
    background: white;
    color: var(--text-dark);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .product-text-section h2 {
        font-size: 1.5rem;
    }

    .product-text-section h3 {
        font-size: 1.4rem;
    }

    .product-text-section h4 {
        font-size: 1.1rem;
    }

    .product-text-section p {
        font-size: 0.95rem;
    }

    .image-placeholder {
        height: 300px;
        font-size: 1.2rem;
    }

    .image-placeholder.large {
        height: 400px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-features-section h3 {
        font-size: 1.5rem;
    }

    /* 2カラムを1カラムに */
    .two-column-layout,
    .two-column-section.reverse .two-column-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* reverse時に画像をテーブルの上に表示 */
    .two-column-section.reverse .product-image-column {
        order: -1;
    }

    .product-image-column .image-placeholder {
        height: 300px;
    }

    .product-specs-column h3 {
        font-size: 1.5rem;
    }

    /* テーブルを縦並びに */
    .specs-table tr {
        display: block;
        border: 1px solid #ddd;
    }

    .specs-table th,
    .specs-table td {
        display: block;
        width: 100%;
        padding: 10px 12px;
        font-size: 0.9rem;
        border: none;
    }

    .specs-table th {
        background: #f0f8ff;
        font-weight: bold;
        border-bottom: 1px solid #ddd;
    }

    .specs-table td {
        background: white;
    }
}

@media (max-width: 480px) {
    .product-text-section {
        padding: 40px 0;
    }

    .product-text-section h2 {
        font-size: 1.3rem;
    }

    .product-text-section h3 {
        font-size: 1.2rem;
    }

    .product-text-section h4 {
        font-size: 1rem;
    }

    .product-image-section {
        padding: 30px 0;
    }

    .image-placeholder {
        height: 250px;
        font-size: 1rem;
    }

    .image-placeholder.large {
        height: 300px;
    }

    .product-features-section,
    .two-column-section {
        padding: 40px 0;
    }

    .feature-item {
        padding: 20px 15px;
    }

    .feature-item h4 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .product-image-column .image-placeholder {
        height: 250px;
    }

    .product-specs-column h3 {
        font-size: 1.3rem;
    }

    .specs-table th,
    .specs-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .specs-table th {
        width: 100%;
    }
}
