@charset "utf-8";
/* CSS Document */
/* パンくずリスト */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}
.breadcrumb a {
    color: var(--primary-color);
}

/* 製品紹介コンテナ */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

/* 画像ギャラリー */
.product-gallery .main-image {
    margin-bottom: 15px;
}
.product-gallery .large-img {
    width: 100%;
    height: 400px;
    font-size: 1.5rem;
}
.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0px; /* ← 隙間を0にする */
}

.thumbnail-images .thumb-img {
        height: 90px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.thumbnail-images .thumb-img.active,
.thumbnail-images .thumb-img:hover {
    border-color: var(--accent-color);
}

/* 製品情報 */
.product-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.product-model {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}
.highlight-box {
    background: #f7de8c;
    border: 1px solid #e0c56c;
    border-radius: 5px;
    padding: 1em 1.5em;
    margin: 1.5em 0;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}
.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}
.check-icon {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2em;
    line-height: 1.4;
}
.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* =================================== */
/* 1. ページ全体の目次用スタイル        */
/* =================================== */
.page-nav {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin-bottom: 40px;
}

.page-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.page-nav a {
    display: block;
    padding: 10px 20px;
    font-weight: bold;
    color: var(--primary-color);
    border-radius: 5px;
    transition: background-color 0.3s;
    background-color: #f0f0f0; /* ボタンらしい背景色を追加 */
}

.page-nav a:hover {
    background-color: #e0e0e0;
}


/* =================================== */
/* 2. 仕様セクションの目次用スタイル     */
/* =================================== */
.spec-nav {
    padding: 20px;
    background-color: #f9f9f9;
}

.spec-nav ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 20px;
}

/* 仕様セクション内のリンクの背景色をリセット */
.spec-nav a {
    background-color: transparent;
    padding: 5px 10px;
    font-weight: normal;
}

.spec-nav a:hover {
    background-color: #e9e9e9;
}

/* カテゴリー見出しのスタイル */
.spec-nav .nav-group-title {
    font-weight: bold;
    color: #333;
    margin-top: 15px;
    margin-bottom: 5px;
    grid-column: 1 / -1;
}
.spec-nav .nav-group-title:first-child {
    margin-top: 0;
}

.spec-nav li {
    line-height: 1.8;
}

/* スマホでの表示（768px以下） */
@media (max-width: 768px) {
    .spec-nav ul {
        grid-template-columns: 1fr; /* 仕様の目次だけ1カラムに */
    }
}

/* カテゴリー見出しのスタイル */
.page-nav .nav-group-title {
    font-weight: bold;
    color: #333;
    margin-top: 15px;
    margin-bottom: 5px;
    grid-column: 1 / -1; /* 必ず列の先頭に来るようにする */
}
/* 最初の見出しは上の余白をなくす */
.page-nav .nav-group-title:first-child {
    margin-top: 0;
}

.page-nav li {
    line-height: 1.8;
}

.page-nav a {
    display: block;
    padding: 5px 10px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.page-nav a:hover {
    background-color: #e9e9e9;
}

/* スマホでの表示（768px以下） */
@media (max-width: 768px) {
    .page-nav ul {
        grid-template-columns: 1fr; /* スマホでは1カラムに戻す */
    }
}

/* 詳細コンテンツセクション */
.product-content-section {
    padding-top: 10px; /* 上の余白 */
    padding-bottom: 40px; /* 下の余白はそのまま */
    border-bottom: 1px solid #eee;
}
.content-title {
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 25px;
}

/* 仕様テーブル */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}
.spec-table th, .spec-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}
.spec-table th {
    background-color: var(--secondary-color);
    width: 30%;
}

/* Q&Aリスト */
.faq-list dt {
    font-weight: bold;
    background-color: #f1f1f1;
    padding: 10px;
    margin-top: 15px;
}
.faq-list dd {
    margin: 0;
    padding: 15px;
    border-left: 3px solid var(--accent-color);
}

/* レスポンシブ対応 (768px以下) */
@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
    }
    .product-gallery .large-img {
        height: 300px;
    }
}