@charset "UTF-8";

/* === TANゴ ブランドパレット（台湾華語版・青系）======================
   cn版（中日辞典・赤ペンギン）と視覚的に区別するため、
   メインカラーを「台湾の青」に変更。
   - 主役：深い藍（台湾故宮の青磁・台鐵を意識）
   - 補助：海を連想する青緑
   - アクセント：温かみのある琥珀色（黄）
   変数名は赤系のまま残し、値だけ青系に置き換えている。
============================================================== */
:root {
    /* === メインカラー（旧 brand-red 系 → 台湾の藍に変更） === */
    --brand-red:        #1B6FA8;   /* メインの藍：強調・例文ハイライト・主要ボタン */
    --brand-red-dark:   #0F4D7A;   /* ホバー・押下 */
    --brand-red-light:  #E8F1F8;   /* 薄い藍：背景バッジ等 */
    --brand-yellow:     #E8B83A;   /* アクセント：くちばし・差し色 */
    --brand-yellow-dark:#C49924;
    --brand-black:      #1a1a1a;
    --brand-white:      #FFFFFF;

    /* === 機能別カラー === */
    --brand-headword:   #2A7BA8;
    --brand-headword-dark: #1B5778;
    --brand-action:     #3D9BC9;
    --brand-action-dark:#1F7BA3;
    --brand-danger:     #c0392b;

    /* === UIカラー === */
    --brand-bg:         #E6F0F7;   /* 全体背景（淡い水色・tw 識別色） */
    --brand-surface:    #FFFFFF;
    --brand-border:     #C9DCEA;
    --brand-text:       #0F2A3E;
    --brand-text-muted: #5A7388;

    --primary: var(--brand-headword);
    --bg:      var(--brand-bg);
    --text:    var(--brand-text);
}

/* === TANゴ AI生成中アニメーション ===
   shiraberu(調べる) ↔ oboeru(覚える) を交互に切り替え。
   ペンギンが「調べて→覚えて」を繰り返している演出 */
.tango-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    gap: 20px;
}
.tango-loading.is-active { display: flex; }

/* ペンギン2枚をopacityアニメーションで切り替え。
   親 .tango-loading-penguin はサイズを必ず確保し、
   img は親に合わせて表示する */
.tango-loading-penguin {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}
.tango-loading-penguin > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    opacity: 0;
    animation: tango-flip 1.6s steps(1) infinite;
}
.tango-loading-penguin > img.shiraberu { animation-delay: 0s; }
.tango-loading-penguin > img.oboeru    { animation-delay: 0.8s; }
@keyframes tango-flip {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

.tango-loading-text {
    color: var(--brand-text);
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}
.tango-loading-sub {
    color: var(--brand-text-muted);
    font-size: 12px;
    margin: -8px 0 0;
}

.tango-loading-bar {
    width: 200px;
    height: 3px;
    background: var(--brand-red-light);
    border-radius: 2px;
    overflow: hidden;
}
.tango-loading-bar-fill {
    height: 100%;
    background: var(--brand-red);
    border-radius: 2px;
    animation: tango-slide 1.6s ease-in-out infinite;
}
@keyframes tango-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}
    100% { transform: translateX(250%); }
}



/* --- 既存の基本設定 --- */
/* 旧定義は新ブランドパレット（上部）で上書き */
body { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh; }
.cn-text { font-family: "PingFang TC", "Microsoft JhengHei", "Heiti TC", "PMingLiU", sans-serif; }

/* ヘッダー */
header { background: #fff; padding: 10px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: space-between; position: relative; height: 50px; z-index: 100; }
header h1 a { text-decoration: none; font-size: 20px; color: var(--primary); font-weight: bold; }
.pc-nav { display: block; }
.btn-login { background-color: var(--primary); color: white; padding: 6px 12px; text-decoration: none; border-radius: 4px; font-size: 13px; font-weight: bold; }
.mobile-menu-icon { display: none; font-size: 24px; cursor: pointer; color: var(--primary); }
.mobile-nav { display: none; position: absolute; top: 100%; right: 0; width: 200px; background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 8px rgba(0,0,0,0.1); z-index: 1000; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li a { display: block; padding: 12px; text-decoration: none; color: #333; border-bottom: 1px solid #eee; }
@media (max-width: 768px) { .pc-nav { display: none; } .mobile-menu-icon { display: block; } }

/* レイアウト */
.container { max-width: 800px; margin: 20px auto; padding: 0 15px; flex: 1; width: 100%; box-sizing: border-box; }
.ad-banner { background: #e0e0e0; color: #999; height: 100px; display: flex; align-items: center; justify-content: center; margin: 20px 0; border-radius: 8px; font-weight: bold; }

/* 検索ボックス */
.search-box { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 30px; }
.search-input-group { display: flex; gap: 10px; margin-bottom: 15px; }
.search-input { flex: 1; padding: 10px; font-size: 16px; border: 2px solid #ddd; border-radius: 4px; outline: none; min-width: 0; }
.search-input:focus { border-color: var(--primary); }
.btn-search { background: var(--primary); color: #fff; border: none; padding: 0 20px; border-radius: 4px; font-weight: bold; cursor: pointer; white-space: nowrap; }
/* 検索オプション：対象 + 一致 */
.search-options {
    font-size: 13px; color: #666;
    display: flex; gap: 6px 14px;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
}
.search-options label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.search-options input[type="radio"] { margin: 0; }
.search-options .opt-label { font-weight: 600; color: #555; }
.search-options .opt-divider {
    color: #ccc;
    margin: 0 4px;
    user-select: none;
}
/* 一致グループは1つのまとまりとして wrap させる */
.search-options .match-group,
.search-options .target-group {
    display: inline-flex;
    align-items: center;
    gap: 6px 14px;
    flex-wrap: wrap;
}

/* スマホでの search-options 改善 */
@media (max-width: 700px) {
    .search-options {
        gap: 6px 10px;
        font-size: 12px;
        /* 対象と一致を別の行に綺麗に分ける */
        flex-direction: column;
        align-items: flex-start;
    }
    .search-options > .target-group,
    .search-options > .match-group {
        /* グループ内は横並びをキープ（縦並びは search-options 全体だけ）*/
        flex-direction: row;
    }
    /* スマホでは｜区切りは不要（縦並びで明確に分かれる） */
    .search-options .opt-divider {
        display: none;
    }
    .search-options label { gap: 3px; }
}

/* 結果表示 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; margin-top: 10px; }
.word-card { background: #fff; padding: 15px; border-radius: 6px; cursor: pointer; border: 1px solid #eee; transition: 0.2s; text-decoration: none; color: inherit; display: block; }
.word-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.head-text { font-size: 18px; font-weight: bold; color: var(--primary); margin-right: 10px; }
.pinyin-text { color: #666; font-family: "Courier New", monospace; }
.mean-text { color: #555; font-size: 14px; margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 検索結果リスト */
.result-list { margin-top: 20px; }
.result-row { background: #fff; padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: background 0.2s; }
.result-row:hover { background: #fdfdfd; }

/* 詳細ページ */
.detail-box { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.d-headword { font-size: 32px; font-weight: bold; color: var(--primary); }
.highlight-red { color: red; font-weight: bold; }
.pos-block { margin-top: 20px; padding: 15px; background: #f9f9f9; border-radius: 8px; }

footer { background: #333; color: #fff; text-align: center; padding: 15px; margin-top: auto; font-size: 12px; }

/* ▼▼▼ 追加・修正箇所 (AI機能 & モーダル) ▼▼▼ */

/* 該当なしエリアのデザイン修正 */
.not-found {
    text-align: center;
    padding: 40px 20px;
    background: #fff; /* 背景色を追加 */
    border-radius: 8px; /* 角丸 */
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 影を追加 */
}
.not-found h3 { margin: 0 0 10px 0; font-size: 1.2rem; color: #555; }
.not-found p { color: #777; font-size: 0.9rem; margin-bottom: 20px; }

/* AIボタン */
.btn-ask-ai {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; border: none; padding: 12px 30px;
    border-radius: 30px; font-size: 15px; font-weight: bold;
    cursor: pointer; box-shadow: 0 4px 10px rgba(118, 75, 162, 0.4);
    transition: transform 0.2s;
    display: inline-block;
}
.btn-ask-ai:hover { transform: scale(1.05); opacity: 0.9; }

/* モーダル (z-indexを強化) */
.modal-wrap {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); 
    z-index: 9999; /* ヘッダーより確実に上にする */
    display: none; /* 初期状態は非表示 */
    align-items: center; justify-content: center;
    backdrop-filter: blur(2px); /* 背景を少しぼかす */
}
.modal-box {
    background: #fff; width: 90%; max-width: 500px; max-height: 85vh;
    border-radius: 10px; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.modal-head {
    padding: 15px 20px; border-bottom: 1px solid #eee;
    background: #fafafa; font-weight: bold; color: #333;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-body { padding: 20px; overflow-y: auto; flex: 1; font-size: 14px; }
/* === TANゴ ペンギン共通スタイル === */

/* セクション見出しの横にペンギンを置くパターン */
.tango-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 14px;
}
.tango-section-head img {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}
.tango-section-head h2 {
    margin: 0;
    font-size: 22px;
    color: var(--brand-text);
    font-weight: 700;
}

/* 一般的なペンギンの吹き出し */
.tango-bubble-scene {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin: 20px 0;
}
.tango-bubble-scene .tango-bubble-penguin {
    flex-shrink: 0;
    width: 110px;
    height: auto;
}
.tango-bubble-scene .tango-bubble-text {
    position: relative;
    flex: 1;
    background: #fff;
    border: 2px solid var(--brand-black);
    border-radius: 16px;
    padding: 18px 22px;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 3px 0 var(--brand-black);
}
.tango-bubble-scene .tango-bubble-text::before {
    content: "";
    position: absolute;
    bottom: 18px;
    left: -12px;
    border: 9px solid transparent;
    border-right-color: var(--brand-black);
}
.tango-bubble-scene .tango-bubble-text::after {
    content: "";
    position: absolute;
    bottom: 18px;
    left: -9px;
    border: 8px solid transparent;
    border-right-color: #fff;
}

/* お知らせバッジ（kakuseiペンギンを左に） */
.tango-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--brand-red-light);
    border: 1px solid #f0c0c0;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 16px 0;
}
.tango-notice-penguin {
    height: 56px;
    width: auto;
    flex-shrink: 0;
}
.tango-notice-text {
    flex: 1;
    color: var(--brand-red-dark);
    font-size: 14px;
    line-height: 1.6;
}
.tango-notice-text strong {
    display: block;
    color: var(--brand-text);
    font-size: 15px;
    margin-bottom: 2px;
}

/* ようこそメッセージ（normal ペンギンを左に） */
.tango-welcome {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}
.tango-welcome-penguin {
    height: 70px;
    width: auto;
    flex-shrink: 0;
}
.tango-welcome-text {
    flex: 1;
}
.tango-welcome-text h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--brand-text);
}
.tango-welcome-text p {
    margin: 0;
    color: var(--brand-text-muted);
    font-size: 14px;
}

@media (max-width: 600px) {
    .tango-bubble-scene { flex-direction: column; align-items: center; }
    .tango-bubble-scene .tango-bubble-penguin { width: 90px; }
    .tango-bubble-scene .tango-bubble-text { width: 100%; box-sizing: border-box; }
    .tango-bubble-scene .tango-bubble-text::before,
    .tango-bubble-scene .tango-bubble-text::after { display: none; }
    .tango-section-head img { height: 40px; }
    .tango-section-head h2 { font-size: 18px; }
    .tango-notice-penguin { height: 44px; }
    .tango-welcome-penguin { height: 56px; }
}

/* === 検索結果なし（index.php JSが動的生成） === */
.nf-with-penguin {
    text-align: center;
}
.nf-scene-inline {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    margin: 0 0 24px;
    text-align: left;
}
.nf-penguin-inline {
    width: 110px;
    height: auto;
    flex-shrink: 0;
}
.nf-bubble-inline {
    position: relative;
    max-width: 420px;
    background: #fff;
    border: 2px solid var(--brand-black);
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--brand-text);
    box-shadow: 0 3px 0 var(--brand-black);
    margin-left: 16px;
}
/* 三角形を吹き出しの完全に外側に配置（border幅2pxを跨ぐ） */
.nf-bubble-inline::before {
    content: "";
    position: absolute;
    bottom: 22px;
    left: -16px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-right: 16px solid var(--brand-black);
    width: 0;
    height: 0;
}
.nf-bubble-inline::after {
    content: "";
    position: absolute;
    bottom: 22px;
    left: -13px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-right: 14px solid #fff;
    width: 0;
    height: 0;
}
.nf-bubble-inline strong {
    color: var(--brand-red);
    font-size: 1.1em;
    display: block;
    margin-bottom: 4px;
}
@media (max-width: 600px) {
    .nf-scene-inline { flex-direction: column; align-items: center; gap: 8px; }
    .nf-penguin-inline { width: 90px; }
    .nf-bubble-inline { max-width: 100%; }
    .nf-bubble-inline::before, .nf-bubble-inline::after { display: none; }
}

/* === TANゴ 確認モーダル（汎用 confirm 代替） === */
.tango-confirm {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 10, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    box-sizing: border-box;
}
.tango-confirm.is-active { display: flex; }

.tango-confirm-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 28px 22px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    box-sizing: border-box;
}
.tango-confirm-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-text);
    margin: 0 0 16px;
    line-height: 1.5;
}
.tango-confirm-word {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-red);
    margin: 0 0 12px;
    letter-spacing: 0.04em;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.tango-confirm-detail {
    font-size: 13px;
    color: var(--brand-text-muted);
    line-height: 1.6;
    margin: 0 0 22px;
}
.tango-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.tango-confirm-cancel,
.tango-confirm-ok {
    flex: 1;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
    max-width: 160px;
}
.tango-confirm-cancel {
    background: var(--brand-bg);
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
}
.tango-confirm-ok {
    background: var(--brand-red);
    color: #fff;
}
.tango-confirm-cancel:hover,
.tango-confirm-ok:hover { opacity: 0.85; }

/* === 広告エリアを一時的に非表示（学会発表期間中） === */
.ad-banner,
.ad-zone,
[class*="ad-banner"],
[class*="adsense"] {
    display: none !important;
}

/* === Sticky footer：コンテンツが短くてもフッターを画面下に === */
html, body {
    min-height: 100vh;
}
body {
    display: flex;
    flex-direction: column;
}
body > footer {
    margin-top: auto;
}
/* main相当のラッパーが伸びるよう（複数のクラスに対応） */
body > .container,
body > .home-wrap,
body > main,
body > .my-wrap,
body > .nf-wrap,
body > .acc-wrap,
body > .verify-wrap,
body > .cfm-wrap,
body > .lg-card,
body > .login-wrap {
    flex: 1 0 auto;
}


/* === ピンイン表示の可読性向上 === */
.pinyin-display {
    color: #424242 !important;        /* スクショの薄すぎ問題対策 */
    font-style: italic;
    letter-spacing: 0.04em;
    font-family: "Helvetica Neue", "Hiragino Sans", sans-serif;
}
/* 詳細ページのピンインもしっかり見えるように */
.detail-pinyin {
    color: #424242;
    font-size: 1.15em;
    letter-spacing: 0.03em;
}

/* === 詳細ページ サイドメニュー付き2カラムレイアウト === */
.dt-layout {
    /* 注意：外側の .container.home-container が padding:0 15px を持っているので
       ここでは padding を持たせない（二重 padding になるため） */
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: flex-start;
}
.dt-layout > .container {
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    min-width: 0; /* grid で overflow を防ぐ */
}

.dt-side {
    position: sticky;
    top: 80px;
    align-self: flex-start;
}
.dt-side-card {
    background: #fff;
    border: 1px solid #E8E3D8;
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.dt-side-section {
    padding: 12px 0;
    border-bottom: 1px solid #f0ece2;
}
.dt-side-section:first-child { padding-top: 0; }
.dt-side-section:last-child  { padding-bottom: 0; border-bottom: none; }

.dt-side-heading {
    font-size: 11px;
    color: #8a8076;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.dt-side-word {
    font-size: 24px;
    font-weight: 700;
    color: #00897b;
    line-height: 1.2;
    margin-bottom: 4px;
    word-break: break-all;
}
.dt-side-pinyin {
    font-size: 13px;
    color: #6B6258;
    font-style: italic;
    letter-spacing: 0.03em;
}
.dt-side-link {
    display: block;
    padding: 7px 8px;
    margin: 2px -8px;
    color: #1F1B16;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.12s;
}
.dt-side-link:hover {
    background: #FAF8F3;
}
.dt-side-related {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dt-side-related-item {
    display: inline-block;
    padding: 5px 11px;
    background: #FAF8F3;
    border: 1px solid #E8E3D8;
    border-radius: 14px;
    font-size: 13px;
    color: #00897b;
    text-decoration: none;
    transition: all 0.12s;
}
.dt-side-related-item:hover {
    background: #00897b;
    color: #fff;
    border-color: #00897b;
}

/* タブレット以下ではサイドバーを上部に積む */
@media (max-width: 900px) {
    .dt-layout {
        grid-template-columns: 1fr;
    }
    .dt-side {
        position: static;
    }
    .dt-side-card {
        padding: 12px 14px;
    }
}

/* === ホームレイアウト：サイドバー + 新着 === */
.home-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: flex-start;
}
.home-layout > .home-main {
    min-width: 0;
}
@media (max-width: 900px) {
    .home-layout {
        grid-template-columns: 1fr !important;
        display: block !important;
    }
    /* スマホでは サイドバーを完全に隠す（三本線メニューに統合） */
    .ct-sidebar {
        display: none !important;
    }
}

/* === ホーム/詳細などサイドバー付きページのコンテナを広げる === */
.container.home-container {
    max-width: 1200px;
}
.dt-layout {
    /* 既に max-width: 1200px、変更不要 */
}

/* === 検索結果の見出し「全 N 件」の改行防止 === */
.result-count-label {
    white-space: nowrap;
    display: inline-block;
}

/* === 詳細ページ：見出しエリアのレイアウト === */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
}
.detail-header .detail-title-area {
    flex: 1 1 auto;     /* 見出し側を伸ばす */
    min-width: 0;
}
.detail-header .detail-actions {
    flex: 0 0 auto;     /* ボタン群は縮ませない */
}

/* === スマホ：詳細ページの padding 縮小 === */
@media (max-width: 768px) {
    .detail-box {
        padding: 18px 14px !important;
    }
    .pos-block {
        padding: 12px 10px !important;
    }
    /* メインカラムの左右マージン詰める */
    .container.home-container,
    body > .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    /* 検索結果見出しもスマホ幅で見やすく */
    .result-header {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    /* 詳細ページのアクションボタン：スマホでは右寄せ・コンパクト */
    .detail-actions {
        margin-left: auto !important;       /* 右寄せ */
        gap: 4px !important;
    }
    /* スタンプグループはそのままアイコンサイズ（既にコンパクト） */
    .detail-actions .dt-stamp-group {
        gap: 3px !important;
        padding: 1px !important;
    }
    .detail-actions .dt-stamp-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    /* 編集・削除・通報・書籍モードはアイコンのみ */
    .detail-actions .dt-btn {
        padding: 6px 8px !important;
        font-size: 13px !important;
    }
    .detail-actions .dt-btn .dt-btn-label {
        display: none !important;
    }
    .detail-actions .dt-btn .dt-btn-icon {
        margin: 0 !important;
        font-size: 14px;
    }
    .detail-actions .dt-btn {
        gap: 0 !important;
    }
}

/* === 検索結果の見出し === */
.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.result-header > h2,
.result-header > .result-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}
