/* ================================
   Stationery（ラミネーター）ページ専用スタイル
   TOPページのデザインを踏襲
   ================================ */

/* サムネイル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: #f0f8ff;
    border-left-color: var(--theme-color);
    font-weight: bold;
}

/* パンくずリスト */
.breadcrumb {
    background: #f8f9fa;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: var(--color-stationery);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

/* 製品紹介セクション（TOPページスタイル） */
.product-intro {
    padding: 80px 0;
    background: white;
}

.product-intro .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-label.stationery {
    display: inline-block;
    background: var(--color-stationery);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.product-intro h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.8;
}

.price-info {
    font-size: 1rem;
    color: var(--text-gray);
}

.price-info .price {
    color: var(--theme-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* 特徴セクション（TOPページスタイル） */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

/* 特徴グリッド */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--color-stationery);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon span {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 仕様セクション */
.specifications-section {
    padding: 80px 0;
    background: white;
}

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

/* 仕様表 */
.specifications {
    max-width: 1000px;
    margin: 0 auto;
}

.spec-table,
.spec-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.spec-table th,
.spec-detail-table th {
    background: #f0f8ff;
    color: var(--text-dark);
    font-weight: bold;
}

.product-image-cell {
    width: 200px;
    vertical-align: middle;
}

.product-image-placeholder {
    width: 180px;
    height: 150px;
    background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.product-image-placeholder span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    font-weight: bold;
}

.product-image-placeholder p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* サムネイルセクション */
.thumbnail-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.thumbnail-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail-item {
    background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--color-stationery);
}

.thumbnail-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.thumbnail-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 製品説明セクション */
.product-description {
    padding: 60px 0;
    background: #f8f9fa;
}

.description-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
}

/* 2カラムレイアウト */
.product-details {
    padding: 80px 0;
    background: white;
}

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

.two-column-layout:last-child {
    margin-bottom: 0;
}

/* 左カラム：製品画像 */
.product-image-column {
}

.product-image-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.product-image-column .product-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-column .product-image-placeholder span {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.product-name {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 15px 0 0 0;
}

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

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

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

/* 右カラム：仕様表 */
.specifications-column h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.spec-note {
    color: #d9534f;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 10px;
    border-left: 4px solid #ffc107;
}

/* 疑似テーブルボックス */
.spec-table-box {
    background: white;
    width: 100%;
    border: 1px solid #ddd;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* 疑似テーブルのカラム */
.spec-column {
    display: flex;
    flex-direction: column;
}

/* ラベル（左側：th相当） */
.spec-label {
    background: #f0f8ff;
    color: var(--text-dark);
    font-weight: bold;
    padding: 12px 8px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.75rem;
    text-align: left;
}

.spec-column:last-child .spec-label {
    border-right: none;
}

/* 値（右側：td相当） */
.spec-value {
    background: white;
    color: var(--text-dark);
    padding: 12px 8px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.75rem;
    text-align: left;
}

.spec-column:last-child .spec-value {
    border-right: none;
}

.spec-column:nth-last-child(-n+4) .spec-value {
    border-bottom: none;
}

/* 追加説明セクション */
.additional-info {
    padding: 60px 0;
    background: #f8f9fa;
}

.additional-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .product-intro h2 {
        font-size: 1.8rem;
    }

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

    .spec-table,
    .spec-detail-table {
        font-size: 0.85rem;
    }

    .spec-table th,
    .spec-table td,
    .spec-detail-table th,
    .spec-detail-table td {
        padding: 8px;
    }

    .product-image-cell {
        width: 150px;
    }

    .product-image-placeholder {
        width: 130px;
        height: 100px;
    }

    /* 2カラムをモバイルで1カラムに */
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .thumbnail-nav {
        gap: 10px;
    }

    .thumbnail-item {
        min-width: 80px;
        padding: 15px;
    }

    .thumbnail-number {
        font-size: 1.5rem;
    }

    .specifications-table {
        font-size: 0.85rem;
    }

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

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

    /* 仕様表を2カラムに */
    .spec-table-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-label,
    .spec-value {
        font-size: 0.7rem;
        padding: 10px 6px;
    }

    /* 2カラム時のボーダー調整 */
    .spec-column:nth-child(2n) .spec-label,
    .spec-column:nth-child(2n) .spec-value {
        border-right: none;
    }

    .spec-column:nth-last-child(-n+2) .spec-value {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    /* 仕様表を1カラムに */
    .spec-table-box {
        grid-template-columns: 1fr;
    }

    .spec-label,
    .spec-value {
        font-size: 0.75rem;
        padding: 10px 8px;
    }

    /* 1カラム時のボーダー調整 */
    .spec-column .spec-label,
    .spec-column .spec-value {
        border-right: none;
    }

    .spec-column:last-child .spec-value {
        border-bottom: none;
    }
}

/* ================================
   製品画像スタイル
   ================================ */
.product-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* ================================
   製品説明文スタイル
   ================================ */
.specifications-column .product-description {
    padding: 0;
    background: transparent;
    margin-bottom: 30px;
}

.specifications-column .product-description p {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
}

/* ================================
   左揃えスタイル（モバイル対応）
   ================================ */
.spec-left-align .spec-label,
.spec-left-align .spec-value {
    justify-content: flex-start;
    text-align: left;
}

/* ================================
   Coming Soon スタイル
   ================================ */
.two-column-layout.coming-soon {
    opacity: 0.8;
}

.product-coming-soon {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.product-coming-soon span {
    font-size: 1.8rem;
    color: #666;
    font-weight: bold;
    letter-spacing: 2px;
}

.coming-soon-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    text-align: center;
}

.coming-soon-message p {
    color: #666;
    font-size: 1.2rem;
    margin: 10px 0;
}

.coming-soon-message p:first-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--theme-color);
}

@media (max-width: 768px) {
    .product-coming-soon {
        height: 180px;
    }

    .product-coming-soon span {
        font-size: 1.4rem;
    }

    .coming-soon-message {
        min-height: 150px;
    }

    .coming-soon-message p {
        font-size: 1rem;
    }

    .coming-soon-message p:first-child {
        font-size: 1.2rem;
    }
}

/* ================================
   スライダー内 Coming Soon スタイル
   ================================ */
.slide-coming-soon .slide-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #4a6fa5 0%, #2d4a6f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.slide-placeholder .placeholder-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.slide-placeholder .placeholder-text {
    font-size: 1.8rem;
    opacity: 0.8;
    letter-spacing: 3px;
}

@media (max-width: 768px) {
    .slide-coming-soon .slide-placeholder {
        min-height: 250px;
    }

    .slide-placeholder .placeholder-name {
        font-size: 1.8rem;
    }

    .slide-placeholder .placeholder-text {
        font-size: 1.3rem;
    }
}

/* ================================
   スライダーリンクの下線削除
   ================================ */
.hero-slider .slide a {
    text-decoration: none;
    display: block;
}

.hero-slider .slide a:hover {
    text-decoration: none;
}

/* ================================
   サムネイルスタイル（SafetyPouch形式）
   ================================ */
.slider-dots.thumbnail-nav {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    background: transparent;
    flex-wrap: wrap;
}

.slider-dots.thumbnail-nav .thumbnail {
    flex: 1;
    min-width: 0;
    aspect-ratio: 16/9;
    cursor: pointer;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.slider-dots.thumbnail-nav .thumbnail:hover {
    opacity: 0.8;
}

.slider-dots.thumbnail-nav .thumbnail.active {
    border: none;
    border-bottom: 3px solid var(--theme-color);
}

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

/* サムネイル Coming Soon */
.slider-dots.thumbnail-nav .thumbnail-coming-soon .thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a6fa5 0%, #2d4a6f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.thumbnail-placeholder .thumb-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.thumbnail-placeholder .thumb-soon {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ================================
   レスポンシブ: スマホ幅でドットナビに切り替え
   ================================ */
@media (max-width: 480px) {
    /* サムネイル画像ナビ → ドットナビに変換 */
    .slider-dots.thumbnail-nav {
        justify-content: center;
        gap: 16px;
        padding: 12px 0;
        background: transparent !important;
    }

    .slider-dots.thumbnail-nav .thumbnail {
        flex: none !important;
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        aspect-ratio: auto !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: none !important;
        opacity: 1 !important;
    }

    .slider-dots.thumbnail-nav .thumbnail img,
    .slider-dots.thumbnail-nav .thumbnail-coming-soon .thumbnail-placeholder {
        display: none !important;
    }

    .slider-dots.thumbnail-nav .thumbnail.active {
        background: var(--theme-color, #333) !important;
        border: none !important;
        box-shadow: none !important;
    }

    .slider-dots.thumbnail-nav .thumbnail:hover {
        background: rgba(0, 0, 0, 0.5) !important;
        border: none !important;
    }
}
