@charset "utf-8";

/*------------------------------------------------------------------------------
  製品アーカイブページ用スタイル
------------------------------------------------------------------------------*/

/* カテゴリフィルタ */
.product-category-filter {
    margin: 30px 0 !important;
    text-align: center !important;
    clear: both !important;
}

.category-filter-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.category-filter-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.filter-link {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: #f0f0f0 !important;
    color: #333 !important;
    text-decoration: none !important;
    border: 1px solid #ddd !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
}

.filter-link:hover,
.filter-link.active {
    background: #013567 !important;
    color: #fff !important;
    border-color: #013567 !important;
    text-decoration: none !important;
}

.filter-link .count {
    font-size: 0.8rem !important;
    opacity: 0.7 !important;
    margin-left: 4px !important;
}

/* 3列グリッドレイアウト */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 40px 0 !important;
}

.products-grid.three-column {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

.product-item {
    margin: 0 !important;
}

.product-card {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-card:hover {
    border-color: #013567;
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px !important;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #013567;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-categories {
    margin-bottom: 15px;
}

.product-category {
    background: #f0f0f0;
    color: #013567;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 4px;
}

.product-info .product-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    line-height: 1.4;
    flex-grow: 1;
}

.product-info .product-title a {
    color: #333;
    text-decoration: none;
}

.product-info .product-title a:hover {
    color: #013567;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-actions {
    margin-top: auto;
    text-align: center;
}

.view-details-btn {
    display: inline-block !important;
    padding: 8px 20px !important;
    background: #013567 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    border: 1px solid #013567 !important;
    border-radius: 0 !important;
}

.view-details-btn:hover {
    background: #fff;
    color: #013567;
    text-decoration: none;
}

/* ページネーション */
.products-pagination {
    text-align: center;
    margin: 40px 0;
}

.products-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
}

.products-pagination .page-numbers:hover,
.products-pagination .page-numbers.current {
    background: #013567;
    color: #fff;
    border-color: #013567;
}

/* 製品が見つからない場合 */
.no-products {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    margin: 40px 0;
}

.no-products p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* お問い合わせCTA - 削除済み（footerのCTAを使用） */

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .products-grid.three-column {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    .product-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .products-grid.three-column {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info .product-title {
        font-size: 1.1rem;
    }
    
    /* カテゴリフィルタ - モバイル対応 */
    .category-filter-list {
        gap: 5px !important;
    }
    
    .filter-link {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    
    /* CTA関連CSSは削除済み */
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        margin: 30px 0;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info .product-title {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.9rem;
    }
    
    .view-details-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    /* カテゴリフィルタ - 小さい画面対応 */
    .category-filter-list {
        gap: 3px !important;
    }
    
    .filter-link {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }
    
    .filter-link .count {
        font-size: 0.7rem !important;
    }
}

/*------------------------------------------------------------------------------
  製品詳細ページ専用スタイル
------------------------------------------------------------------------------*/

/* 製品詳細ブロック */
.product-detail-block {
    background: #fff;
    padding: 40px 0;
}

/* シングルページのカテゴリ表示 */
.product-categories-single {
    margin-bottom: 15px;
}

.product-category-link {
    display: inline-block;
    background: #f0f0f0;
    color: #013567;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 4px;
    border: 1px solid #ddd;
}

.product-category-link:hover {
    background: #013567;
    color: #fff;
    border-color: #013567;
    text-decoration: none;
}

/* 製品ヘッダー */
.product-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.product-title-area {
    flex: 1;
}

.product-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-catchcopy {
    font-size: 16px;
    color: #666;
    font-weight: bold;
    background: #f8f8f8;
    padding: 15px 20px;
    border-left: 4px solid #013567;
    margin: 0;
}

.product-main-image {
    flex: 1;
    max-width: 500px;
}

.main-product-image {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* タブナビゲーション */
.product-tabs {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.tab-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-nav li {
    margin-right: 2px;
}

.tab-link {
    display: block;
    padding: 15px 25px;
    background: #f8f8f8;
    color: #666;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-link:hover,
.tab-link.active {
    background: #013567;
    color: #fff;
}

/* タブコンテンツ */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #013567;
}

/* 製品概要 */
.product-description {
    margin-bottom: 30px;
}

.description-text {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.product-price-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.price-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* 製品仕様 */
.product-specifications {
    background: #fff;
}

.specs-content {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.technical-docs {
    text-align: center;
    padding: 20px;
}

.doc-download-btn {
    display: inline-block;
    background: #013567;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.doc-download-btn:hover {
    background: #0052a3;
    color: #fff;
}

/* 製品ギャラリー */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: #013567;
    transform: scale(1.05);
}

.gallery-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* お問い合わせ */
.product-inquiry {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.inquiry-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #444;
}

/* CTA関連のCSSはheader-footer-styles.cssに移動 */

.contact-phone {
    text-align: center;
}

.contact-phone img {
    margin-bottom: 10px;
}

.contact-phone p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.inquiry-btn {
    display: inline-block;
    background: #ff6600;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s ease;
}

.inquiry-btn:hover {
    background: #e55a00;
    color: #fff;
}

.product-inquiry-form {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* 関連製品 */
.related-products {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-product-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.related-product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-item:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-info {
    padding: 15px;
}

.related-product-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.related-product-title a {
    color: #333;
    text-decoration: none;
}

.related-product-title a:hover {
    color: #013567;
}

.related-product-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* 製品ナビゲーション */
.product-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.product-nav-ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-nav-ul li {
    flex: 1;
}

.product-nav-ul li.prev {
    text-align: left;
}

.product-nav-ul li.home {
    text-align: center;
}

.product-nav-ul li.next {
    text-align: right;
}

.product-nav-ul a {
    color: #013567;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: inline-block;
    border: 2px solid #013567;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.product-nav-ul a:hover {
    background: #013567;
    color: #fff;
}

/* ライトボックス */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

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

.modal-close:hover {
    color: #ccc;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .product-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* CTA関連のCSSはheader-footer-styles.cssに移動 */
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-nav-ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-nav-ul li {
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .product-detail-block {
        padding: 20px 0;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        justify-content: space-around;
    }
    
    .tab-link {
        padding: 8px 10px;
        font-size: 12px;
    }
}