/* LINEMO Device Checker */

.linemo-dc-wrap {
    max-width: 100%;
    margin: 0 auto;
}

/* フィルター */
.linemo-dc-filters {
    background: #f0faf8;
    border: 1px solid #b2e4dc;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.linemo-dc-filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.linemo-dc-filter-row:last-child {
    margin-bottom: 0;
}

.linemo-dc-label {
    min-width: 160px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.linemo-dc-select {
    padding: 8px 12px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    background: #fff;
    cursor: pointer;
}

.linemo-dc-checkboxes {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.linemo-dc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.linemo-dc-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00b0a0;
}

/* サマリー */
.linemo-dc-summary {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* メーカーセクション */
.linemo-dc-maker-section {
    margin-bottom: 32px;
}

.linemo-dc-maker-heading {
    font-size: 20px;
    font-weight: 700;
    color: #14cd0a;
    letter-spacing: -0.5px;
    margin: 24px 0 12px 0;
    padding: 0;
}

/* セクションラベル */
.linemo-dc-section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* アコーディオンリスト */
.linemo-dc-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.linemo-dc-accordion-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.linemo-dc-accordion-btn {
    width: 100%;
    padding: 12px 14px;
    background: #fafafa;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.linemo-dc-accordion-btn:hover {
    background: #f0f0f0;
}

.linemo-dc-accordion-btn.active {
    background: #14cd0a;
    color: #fff;
}

.linemo-dc-accordion-icon {
    font-size: 12px;
    transition: transform 0.2s;
    display: inline-block;
}

.linemo-dc-accordion-btn.active .linemo-dc-accordion-icon {
    transform: rotate(180deg);
}

.linemo-dc-device-name {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.linemo-dc-accordion-content {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 0 14px;
    background: #fafafa;
    border-top: 0 solid #ddd;
}

.linemo-dc-accordion-content.active {
    max-height: 2000px;
    padding: 12px 14px;
    border-top: 1px solid #ddd;
}

.linemo-dc-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

/* キャリア表示 */
.linemo-dc-carriers {
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.linemo-dc-carriers strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.linemo-dc-carriers ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.linemo-dc-carriers li {
    font-size: 13px;
    padding: 2px 0;
    color: #333;
}

/* 機能ラベル */
.linemo-dc-specs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.linemo-dc-spec-tag {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    background: #e0f4ff;
    color: #0070c0;
    border-radius: 3px;
    border: 1px solid #b3d9ff;
}

/* 利用できる機能 */
.linemo-dc-features {
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.linemo-dc-features strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.linemo-dc-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
}

.linemo-dc-features-list li {
    font-size: 13px;
    white-space: nowrap;
}

.linemo-dc-cell-ok { color: #14cd0a; font-weight: bold; }
.linemo-dc-cell-ng { color: #aaa; }

/* 備考 */
.linemo-dc-remarks {
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.linemo-dc-remarks strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.linemo-dc-remarks > div {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}

/* デバイスバッジコンテナ（展開後コンテンツ内） */
.linemo-dc-device-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

/* タグバッジ */
.linemo-dc-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 500;
}

.linemo-dc-badge-sim  { background: #f0f0f0; color: #333; border: 1px solid #ccc; }
.linemo-dc-badge-esim { background: #e8f5ff; color: #0055cc; border: 1px solid #b3d9ff; }
.linemo-dc-badge-5g   { background: #f0fff0; color: #00aa00; border: 1px solid #b3ffb3; }
.linemo-dc-badge-ng   { background: #f8f8f8; color: #aaa; border: 1px solid #ddd; }

.linemo-dc-badge-ok      { color: #14cd0a; font-weight: bold; }
.linemo-dc-badge-ng-mark { color: #aaa; font-weight: bold; }

/* キャリア詳細セクション（キャリアごとの枠） */
.linemo-dc-career-detail {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fff;
}

.linemo-dc-career-detail:last-child {
    margin-bottom: 0;
}

.linemo-dc-career-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* eSIM専用注釈 / ソフトバンク回線注記 */
.linemo-dc-softbank-note {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.linemo-dc-esim-note {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* ローディング・エラー */
.linemo-dc-loading,
.linemo-dc-no-result {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 14px;
}

.linemo-dc-error {
    color: #c00;
    padding: 12px;
    border: 1px solid #f99;
    border-radius: 4px;
    background: #fff5f5;
}

/* モバイル対応 */
@media (max-width: 600px) {
    .linemo-dc-label {
        min-width: 120px;
        font-size: 13px;
    }

    .linemo-dc-select {
        min-width: 160px;
        font-size: 13px;
    }

    .linemo-dc-filters {
        padding: 14px 16px;
    }

    .linemo-dc-accordion-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .linemo-dc-accordion-content.active {
        padding: 10px 12px;
    }

    .linemo-dc-detail {
        gap: 8px;
        font-size: 12px;
    }

    .linemo-dc-features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}

/* 機種名検索（テキスト入力＋完全一致チェック） */
.linemo-dc-keyword-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.linemo-dc-input {
    padding: 8px 12px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    background: #fff;
}

.linemo-dc-input:focus {
    outline: 2px solid #14cd0a;
    outline-offset: -1px;
}

/* ===== 表形式（view="table"） ===== */
.linemo-dc-table-scroll {
    overflow-x: auto;
}

.linemo-dc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    table-layout: fixed;
}

.linemo-dc-table th,
.linemo-dc-table td {
    border: 1px solid #d5d5d5;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.linemo-dc-table thead th {
    background: #14cd0a;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
}

.linemo-dc-th-name   { width: 38%; }
.linemo-dc-th-func   { width: 31%; }
.linemo-dc-th-remark { width: 31%; }

.linemo-dc-table tbody tr:nth-child(even) td {
    background: #f7fbf7;
}

/* 機種名セル */
.linemo-dc-td-name-main {
    font-weight: bold;
}

.linemo-dc-td-name-sub {
    font-size: 13px;
    color: #666;
}

/* 機能・備考セルの項目リスト */
.linemo-dc-t-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.linemo-dc-t-list li {
    margin: 0;
    padding: 2px 0;
    line-height: 1.6;
}

.linemo-dc-t-mark {
    display: inline-block;
    width: 1.4em;
    font-weight: bold;
}

.linemo-dc-t-ok  { color: #1a7f12; }
.linemo-dc-t-ng  { color: #999; }

/* スマホ表示 */
@media screen and (max-width: 600px) {
    .linemo-dc-table {
        font-size: 13px;
    }

    .linemo-dc-table th,
    .linemo-dc-table td {
        padding: 8px 10px;
    }

    .linemo-dc-td-name-sub {
        font-size: 12px;
    }
}

/* 絞り込み固定時の説明文 */
.linemo-dc-summary-text {
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 16px;
}
