.content-area {
    padding: 20px;
}

.selected-info {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fafcff;
}

.selected-info h3 {
    margin: 0;
    font-size: 18px;
}

.equip-list {
    padding: 0;
}

.equip-category {
    margin-bottom: 28px;
}

.equip-category h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.equip-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.equip-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.equip-card.is-weapon {
    background: #fcfdff;
}

.equip-card.is-armor {
    background: #fafafa;
}

.equip-card__head {
    margin-bottom: 8px;
}

.equip-card__title-row {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.equip-name {
    font-weight: bold;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
    margin-left: 4px;
    min-width: 0;
}

.equip-name-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.equip-name-link:hover {
    color: inherit;
    text-decoration: none;
    border-bottom-color: currentColor;
    opacity: 0.9;
}

.equip-name-en {
    font-size: 11px;
    line-height: 1.25;
    color: var(--text-sub);
    margin-top: 2px;
}

.equip-name-ko-status {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.2;
    vertical-align: middle;
    border: 1px solid #cbd5e1;
    color: #475569;
    background: #f8fafc;
}

.equip-name-ko-status.is-filled {
    border-color: #86efac;
    color: #166534;
    background: #ecfdf5;
}

.equip-name-ko-status.is-missing {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.equip-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    margin-bottom: 2px;
}

.equip-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-main);
}

.equip-stat-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
}

.equip-stat span {
    font-size: 14px;
}

/* ボウガン・スラアク・チャアク共通 */
.weapon-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

.weapon-inline-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 11px;
    line-height: 1.15;
    color: var(--text-main);
}

.weapon-inline-list.is-bowgun .weapon-inline-item {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.weapon-inline-list.is-switch-axe .weapon-inline-item {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.weapon-inline-list.is-charge-blade .weapon-inline-item {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.weapon-inline-prefix {
    color: var(--text-sub);
    font-weight: bold;
    font-size: 11px;
}

.weapon-inline-value {
    font-weight: bold;
    color: inherit;
    font-size: 11px;
}

.bowgun-card-panel {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
}

.bowgun-card-panel__controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.bowgun-level-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
}

.bowgun-level-btn {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
}

.bowgun-level-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.bowgun-level-value {
    min-width: 28px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #312e81;
}

.bowgun-card-table {
    display: grid;
    gap: 4px;
}

.bowgun-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 34px minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px;
    align-items: center;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid #c9d0db;
    background: #e2e8f0;
    font-size: 10px;
    line-height: 1.2;
}

.bowgun-card-ammo-name {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-weight: 700;
    color: #1e293b;
    word-break: break-word;
}

.bowgun-card-ammo-name span {
    min-width: 0;
    word-break: break-word;
}

.bowgun-card-ammo-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
}

.bowgun-card-ammo-icon::before {
    content: "";
    position: absolute;
    inset: 1px;
    display: block;
    background: var(--ammo-color, #94a3b8);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-image: var(--ammo-mask-image);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    mask-image: var(--ammo-mask-image);
}

.bowgun-card-ammo-count {
    text-align: center;
    color: #475569;
    font-weight: 700;
}

.bowgun-card-ammo-value {
    min-width: 0;
    text-align: center;
    padding: 2px 4px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 弓用 */
.bow-shot-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 8px;
}

.bow-shot-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 5px 7px;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    background: #ecfdf5;
}

.bow-shot-charge {
    width: 30px;
    flex-shrink: 0;
    font-size: 11px;
    line-height: 1.2;
    color: #065f46;
    font-weight: bold;
    text-align: center;
}

.bow-shot-main {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}

.bow-shot-level {
    font-size: 11px;
    font-weight: bold;
    color: #065f46;
}

.bow-shot-type {
    font-size: 11px;
    font-weight: 600;
    color: #065f46;
}

/* スキル表示 */
.equip-skills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.equip-skill-card {
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #f8fafc;
    padding: 4px 6px;
    min-width: 0;
}

.equip-skill-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.equip-skill-title {
    font-size: 10px;
    font-weight: bold;
    color: var(--text-main);
    line-height: 1.35;
    min-width: 0;
    word-break: break-word;
}

.equip-skill-lv {
    font-size: 10px;
    font-weight: bold;
    color: var(--text-main);
    white-space: nowrap;
    flex-shrink: 0;
}

.equip-skill-bars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
}

.equip-skill-bar {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #d1d5db;
}

.equip-skill-bar.is-active {
    background: #facc15;
}

.equip-skill-empty {
    font-size: 11px;
    color: var(--text-sub);
}

/* 狩猟笛 */
.horn-melody-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.horn-melody-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid #e9e5ff;
    border-radius: 8px;
    background: #f7f5ff;
}

.horn-sequence-icons {
    position: relative;
    height: 18px;
    width: 54px;
    flex-shrink: 0;
}

.horn-sequence-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    object-fit: contain;
    top: 50%;
    transform: translateY(-50%);
}

.horn-melody-name {
    font-size: 11px;
    line-height: 1.3;
    font-weight: bold;
    color: #4c1d95;
    word-break: break-word;
}

/* アイコン */
.equip-inline-icon,
.equip-series-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.equip-series-icon {
    margin-right: 4px;
    border: 1px;
}

/* アイコンまとめ枠 */
.equip-icon-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 1px;
    border-radius: 5px;
    border: 1px solid #cfd8e3;
    background: #f8fbff;
}

.equip-icon-group img {
    margin: 0;
}

.equip-icon-group img:first-child {
    border-radius: 4px 0 0 4px;
}

.equip-icon-group img:last-child {
    border-radius: 0 4px 4px 0;
}

@media (max-width: 1400px) {
    .equip-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .equip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .equip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .equip-card {
        padding: 10px;
    }

    .bowgun-card-panel__controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bowgun-card-row {
        grid-template-columns: minmax(0, 1.4fr) 32px minmax(0, 0.9fr) minmax(0, 0.9fr);
    }
}

@media (max-width: 520px) {
    .equip-grid {
        grid-template-columns: 1fr;
    }
}

.equip-stat img[src*="slot"] {
    margin-right: -2px;
}

/* =========================
   操虫棍 / 猟虫表示
   ========================= */
.kinsect-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.kinsect-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.kinsect-row--name {
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #111827;
}

.kinsect-name {
    line-height: 1.25;
    word-break: break-word;
}

.kinsect-row--meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.kinsect-chip {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #4b5563;
}

.kinsect-chip--type {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.kinsect-chip--perf {
    color: #d97706;
    background: #fff7ed;
    border-color: #fed7aa;
}

.kinsect-chip--attack {
    color: #a16207;
    background: #fff7ed;
    border-color: #fcd34d;
}

.kinsect-chip--bonus {
    color: #6b7280;
    background: #f8fafc;
    border-color: #d1d5db;
}

.kinsect-row--gauge {
    align-items: center;
}

.kinsect-gauge-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-top: 0;
}

.kinsect-stamina {
    display: flex;
    align-items: center;
    gap: 3px;
    min-height: 10px;
    flex: 0 0 auto;
}

.kinsect-stamina-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9ca3af;
    display: inline-block;
}

.kinsect-extract {
    position: relative;
    height: 12px;
    min-height: 12px;
    flex: 0 0 auto;
}

.kinsect-extract-track {
    position: relative;
    height: 12px;
}

.kinsect-extract-diamond {
    position: absolute;
    width: 9px;
    height: 9px;
    transform: rotate(45deg);
    transform-origin: center;

    background: #f59e0b;

    /* ★ここ変更 */
    border: 1.5px solid #111827; /* 黒枠 */

    box-sizing: border-box;
}

/* 中を埋めず輪郭寄りにしたい場合はこっち
.kinsect-extract-diamond {
    position: absolute;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    transform-origin: center;
    background: #ffffff;
    border: 2px solid #f59e0b;
    box-sizing: border-box;
}
*/

.kinsect-row--name .equip-stat-icon {
    width: 14px;
    height: 14px;
    margin-top: 1px;
}
.kinsect-chip {
    min-height: 20px;
    padding: 1px 8px;
    font-size: 10px;
}

/* ===== エキスゲージ色 ===== */
.kinsect-extract-diamond.is-gray {
    background: #9ca3af;
    border-color: #111827;
}

.kinsect-extract-diamond.is-red {
    background: #ef4444;
    border-color: #111827;
}

.kinsect-extract-diamond.is-orange {
    background: #f59e0b;
    border-color: #111827;
}

.kinsect-extract-diamond {
    width: 9px;
    height: 9px;
    border-width: 1.5px;
}

.kinsect-extract-diamond {
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2);
}

/* ===== 猟虫型 ===== */

/* Assist（共闘）＝サポート感 → 緑 */
.kinsect-chip--assist {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

/* Flight（飛翔）＝空 → 青 */
.kinsect-chip--flight {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* Powder（粉塵）＝毒・煙 → 紫 */
.kinsect-chip--powder {
    background: #faf5ff;
    border-color: #d8b4fe;
    color: #6b21a8;
}

/* ===== 性能タイプ ===== */

/* Rapid＝速さ → 青緑 */
.kinsect-chip--rapid {
    background: #ecfeff;
    border-color: #67e8f9;
    color: #0e7490;
}

/* Stamina＝持久 → 黄 */
.kinsect-chip--stamina {
    background: #fefce8;
    border-color: #fde047;
    color: #854d0e;
}

/* Power＝火力 → 赤 */
.kinsect-chip--power {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* ===== 攻撃タイプ ===== */

/* Sever（切断）＝刃 → グレー（鋼） */
.kinsect-chip--sever,
.kinsect-chip--severing {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

/* Blunt（打撃）＝鈍器 → 茶 */
.kinsect-chip--blunt {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.kinsect-chip {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
}
.ig-gauge-box:hover {
    transform: scale(1.2);
}

.kinsect-chip--bonus {
    font-weight: 600;
    opacity: 1;
}

.weapon-inline-list.is-gunlance .weapon-inline-item {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #6d28d9;
    line-height: 1;
}

.weapon-inline-list.is-gunlance .equip-stat-icon {
    width: 15px;
    height: 15px;
    display: block;
    margin-top: 0;
}

.weapon-inline-list.is-gunlance .weapon-inline-value {
    display: inline-block;
    line-height: 1;
    transform: translateY(0.5px);
}
