@charset "UTF-8";

/* =========================================================
   TECH SPEC ページ専用スタイル (Clean Paper Style)
   ========================================================= */

/* --- ページヘッダー --- */
.page-header {
    padding: 140px 20px 60px;
    background-color: #fff; /* 白 */
    border-bottom: 1px solid #eaeaea;
    text-align: center;
    background-image: 
        linear-gradient(#f5f5f5 1px, transparent 1px),
        linear-gradient(90deg, #f5f5f5 1px, transparent 1px); /* 方眼紙のような薄いグリッド */
    background-size: 20px 20px;
}

.page-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #333; /* 黒文字 */
    margin-bottom: 10px;
}

.page-subtitle {
    color: #00b4d8;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    background: #eefbff;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
}

/* --- 共通セクション設定 --- */
.spec-section,
.details-section,
.download-section {
    padding: 80px 20px;
    background-color: #fff; /* 全体的に白 */
}

.section-heading {
    font-size: 1.5rem;
    color: #333;
    border-left: 4px solid #00b4d8;
    padding-left: 15px;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* --- スペック比較テーブル --- */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.spec-table th,
.spec-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    font-size: 0.95rem;
    color: #333;
}

.spec-table th {
    background-color: #f9f9f9; /* ヘッダーを薄いグレーに */
    color: #222;
    font-weight: 700;
    vertical-align: middle;
    border-bottom: 2px solid #ddd;
}

.spec-table th .model-num {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-family: 'Roboto Mono', monospace;
    margin-top: 5px;
    font-weight: normal;
}

/* 画像ボックス（白背景用に調整） */
.th-img-box {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #fff; /* 白 */
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #eee;
}

.col-pro .th-img-box {
    border-color: #e74c3c;
    background: #fff5f5; /* PROだけ薄い赤背景 */
}

.board-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.spec-table th:hover .board-img {
    transform: scale(1.1);
}

/* PROカラム強調 */
.spec-table .col-pro {
    color: #c0392b;
    border-bottom: 2px solid #e74c3c;
    background-color: #fffafa; /* カラム全体を極薄い赤に */
}

.spec-table td.label {
    text-align: left;
    background-color: #f4f4f4;
    font-weight: bold;
    color: #555;
    width: 200px;
}

.spec-table tr:hover td {
    background-color: #f0fbff; /* ホバー時は薄い水色 */
}

/* --- 詳細コンポーネントグリッド --- */
.details-section {
    background-color: #fafafa; /* 背景を微かにグレーに */
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.detail-card {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #00b4d8;
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.detail-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #222;
}

.detail-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.tech-list {
    list-style: none;
    padding: 0;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.tech-list li {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #0077b6; /* 濃い青 */
    margin-bottom: 5px;
}

.tech-list li::before {
    content: '> ';
    color: #ccc;
}

/* --- ダウンロードセクション --- */
.download-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dl-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
    transition: all 0.3s;
    color: #333;
}

.dl-item:hover {
    background: #f8f8f8;
    border-color: #00b4d8;
    color: #00b4d8;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.dl-icon {
    font-size: 1.5rem;
    margin-right: 20px;
}

.dl-text {
    font-weight: bold;
    flex-grow: 1;
}

.dl-sub {
    font-size: 0.8rem;
    color: #999;
    font-family: 'Roboto Mono', monospace;
}

/* レスポンシブ対応 (Tech Spec専用) */
@media (max-width: 768px) {
    .page-header {
        padding-top: 100px;
    }
    
    .spec-table th, 
    .spec-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .spec-table td.label {
        width: 120px;
        font-size: 0.8rem;
    }
    
    .dl-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dl-sub {
        margin-left: 0;
    }
}
/* =========================================================
   機能図解セクション (Hardware Overview)
   ========================================================= */
.function-diagram-section {
    background-color: #fff;
    padding: 60px 20px 20px; /* 上は少し開ける */
    text-align: center;
}

.diagram-container {
    max-width: 900px; /* 画像が大きくなりすぎないように制限 */
    margin: 0 auto 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    /* うっすらと影をつけて、紙の上に浮いているような演出 */
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); 
    border: 1px solid #f0f0f0;
}

.diagram-img {
    width: 100%;
    height: auto;
    display: block;
}

.diagram-caption {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .diagram-container {
        padding: 10px;
        box-shadow: none; /* スマホではフラットに見やすく */
        border: none;
    }
}
/* =========================================================
   モーダルウィンドウ (Overlay) スタイル
   ========================================================= */
   .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 背景を少し暗く */
    z-index: 2000; /* ヘッダーより上 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* 背景をぼかす（モダンな演出） */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px; /* PCでの最大幅 */
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

#modalTitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#modalImg {
    max-width: 100%;
    max-height: 60vh; /* 画面からはみ出さないように制限 */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 4px;
}

#modalDesc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- クリック可能な画像エリアの追加スタイル --- */

.th-img-box.clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden; /* アイコンのはみ出し防止 */
}

.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* 通常時は隠す */
    background: rgba(0, 180, 216, 0.8);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ホバー時に虫眼鏡を表示 */
.th-img-box.clickable:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

.th-img-box.clickable:hover .board-img {
    filter: blur(2px) brightness(0.9); /* 画像を少しぼかしてアイコンを目立たせる */
    transform: scale(1.05);
}