/*!
 * Ookubo Horoscope All-in-One Calculator — stylesheet
 * Part of the senjutsu.jp / Ookubo Uranai Laboratory project.
 *
 * No third-party CSS is bundled. All rules below are original.
 */

.ookubo-horoscope-aio {
    max-width: 1024px;
    margin: 24px auto;
    padding: 20px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    background: #fafbfc;
    /* この font-family は装飾ではなく防具。消さない・Noto に変えない。
       body は ookubo-design-base.css で "Noto Sans JP" 先頭のため、この宣言が無いと
       継承でウェブフォントが降りてきて、出生図SVGのテキストにも当たる。
       SVGの座標は固定 x/y だが text-anchor で再配置されるので字幅に依存し、
       強制フォールバック実測では46要素すべてが最大11.7px動いた（2026-09-02）。
       いまのスタックはローカル導入書体のみ＝ネットワーク依存ゼロなので、
       Google Fonts を非同期化してもチャートの描画は一切動かない。
       「ツールも本文と同じ書体に揃えよう」でこの1行が落ちると、そこで初めてFOUTが出る。
       変える・消す場合は、SVG全テキストに font-family:monospace!important を注入して
       getBoundingClientRect が動かないことを実測してから。JS側の書体指定は horoscope-aio.js:4220 の1箇所のみ。 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Meiryo", sans-serif;
    line-height: 1.6;
    color: #24292f;
}
/* 見出しの「紺文字＋青い下線」はハイパーリンクの視覚記号そのもので、押せると
   誤解される（デッドクリックの原因）。文字は本文色にし、h3 の下線は無彩色へ。
   h4 の左罫はリンクの記号ではないので装飾として残す。 */
.ookubo-horoscope-aio h3 {
    margin: 0 0 8px 0;
    font-size: 1.18em;
    border-bottom: 2px solid #d0d7de;
    padding-bottom: 4px;
    color: #24292f;
}
.ookubo-horoscope-aio h4 {
    margin: 18px 0 8px 0;
    font-size: 1.04em;
    color: #24292f;
    border-left: 4px solid #4a6fa5;
    padding-left: 8px;
}
.ookubo-horoscope-aio .haio-note {
    font-size: 0.92em;
    color: #444;
    margin: 0 0 16px 0;
}

/* Form */
.ookubo-horoscope-aio .haio-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 14px;
    align-items: end;
}
.ookubo-horoscope-aio .haio-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ookubo-horoscope-aio .haio-field label {
    font-size: 0.82em;
    font-weight: 600;
    color: #24292f;
}
.ookubo-horoscope-aio .haio-field select,
.ookubo-horoscope-aio .haio-field input[type="number"] {
    padding: 5px 8px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #fff;
    font-size: 0.95em;
    min-height: 32px;
    color: #24292f;
}
.ookubo-horoscope-aio .haio-field.haio-check {
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
/* 「時刻不明」チェックボックス。実測でタップ領域が 60x24px しかなく、
   モバイルの推奨 44x44px に届いていなかった（他のラジオは既に 44px 以上）。
   input の見た目は変えず、ラベル側の当たり判定だけを広げる。 */
.ookubo-horoscope-aio .haio-field.haio-check label {
    font-size: 0.88em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
    box-sizing: border-box;
}
.ookubo-horoscope-aio .haio-field.haio-check input[type="checkbox"] {
    min-width: 22px;
    min-height: 22px;
}
.ookubo-horoscope-aio button.haio-calc {
    padding: 8px 22px;
    background: #4a6fa5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.0em;
    cursor: pointer;
    font-weight: 600;
}
.ookubo-horoscope-aio button.haio-calc:hover { background: #3d5d8a; }

/* Result panels */
.ookubo-horoscope-aio .haio-result {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ookubo-horoscope-aio .haio-panel {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 14px 16px;
}
.ookubo-horoscope-aio .haio-panel.haio-panel-western { border-color: #4a6fa5; }
.ookubo-horoscope-aio .haio-panel.haio-panel-vedic   { border-color: #a05a6e; background: #fff8f9; }
.ookubo-horoscope-aio .haio-panel.haio-panel-sizhu   { border-color: #5a8a5a; background: #f8fbf8; }
.ookubo-horoscope-aio .haio-panel-western h4 { color: #1e3a5f; border-left-color: #4a6fa5; }
.ookubo-horoscope-aio .haio-panel-vedic h4   { color: #6a2a3f; border-left-color: #a05a6e; }
.ookubo-horoscope-aio .haio-panel-sizhu h4   { color: #2a5a2a; border-left-color: #5a8a5a; }

.ookubo-horoscope-aio .haio-summary {
    font-size: 0.92em;
    color: #444;
    margin-bottom: 8px;
}
.ookubo-horoscope-aio .haio-summary strong {
    color: #24292f;
}

/* Tables */
.ookubo-horoscope-aio table.haio-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
    margin: 6px 0;
    table-layout: auto;
}
.ookubo-horoscope-aio table.haio-table th,
.ookubo-horoscope-aio table.haio-table td {
    border: 1px solid #d0d7de;
    padding: 5px 8px;
    text-align: center;
    vertical-align: middle;
}
.ookubo-horoscope-aio table.haio-table th {
    background: #eef3f8;
    font-weight: 600;
    font-size: 0.88em;
}
.ookubo-horoscope-aio .haio-scroll { overflow-x: auto; }

/* Status messages */
.ookubo-horoscope-aio .haio-stub {
    padding: 12px 14px;
    background: #fff8e1;
    border-radius: 6px;
    border: 1px solid #e0c878;
    font-size: 0.92em;
    color: #7a5a00;
}
.ookubo-horoscope-aio .haio-error {
    padding: 12px 14px;
    background: #ffe5e5;
    border-radius: 6px;
    border: 1px solid #d09090;
    font-size: 0.92em;
    color: #7a2a2a;
}

/* Privacy / credits */
.ookubo-horoscope-aio .haio-privacy {
    font-size: 0.82em;
    color: #6a7080;
    margin-top: 14px;
    padding: 6px 10px;
    background: #f3f5f7;
    border-radius: 4px;
    border-left: 3px solid #8a9aae;
}
.ookubo-horoscope-aio .haio-credits {
    margin-top: 18px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    font-size: 0.86em;
    color: #444;
}
.ookubo-horoscope-aio .haio-credits h4 {
    margin-top: 0;
    border-left-color: #8a9aae;
    color: #444;
}
.ookubo-horoscope-aio .haio-credits ul {
    margin: 6px 0 6px 1.2em;
    padding: 0;
}
.ookubo-horoscope-aio .haio-credits li {
    margin-bottom: 6px;
    line-height: 1.55;
}
.ookubo-horoscope-aio .haio-credits code {
    background: #eef3f8;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.92em;
}
.ookubo-horoscope-aio .haio-caution {
    /* v0.21.45: プライバシー枠に統合したためインライン表示。独立ボックスだった頃の
       margin-top は不要（枠が1つになり、2箱に分かれて見える問題を解消） */
    display: inline-block;
    font-size: 0.95em;
    margin-top: 4px;
    color: #6a4a1a;
}

/* Phase 5: SVG charts */
.ookubo-horoscope-aio .haio-svg-wrap {
    text-align: center;
    margin: 12px 0;
    overflow: visible;     /* SVG の viewBox 外余白（AC/MC ラベル等）が親で切れないよう保護 */
}
.ookubo-horoscope-aio .haio-svg-western,
.ookubo-horoscope-aio .haio-svg-southindian {
    max-width: 100%;
    height: auto;
    display: inline-block;
    background: #fff;
    overflow: visible;
}
.ookubo-horoscope-aio .haio-vedic-charts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    margin: 12px 0;
}
.ookubo-horoscope-aio .haio-vedic-charts .haio-svg-wrap {
    flex: 0 1 auto;
    margin: 0;
}
/* Phase 7c: 品位欄の小字（Mrityubhag/Gandanta）と四柱推命の天干/地支太字 */
.ookubo-horoscope-aio .haio-dignity-small {
    font-size: 0.78em;
    color: #a05a3a;
    font-weight: 600;
    margin-left: 2px;
}
.ookubo-horoscope-aio table.haio-table td.haio-sizhu-stem,
.ookubo-horoscope-aio table.haio-table td.haio-sizhu-branch {
    font-weight: 700;
    font-size: 1.18em;
}

/* Phase 7: ヨーガ表 — ツールチップが切れないよう overflow visible に保つ。
   3 列構成（ヨーガ名/関連天体/性質）で縦書きを許容しつつ、テーブルそのものは
   折り返して縦長になっても OK。テーブル幅が画面幅に収まらない場合は table
   セル内で折り返して対応する（haio-scroll の clip 効果を避けるため）。 */
.ookubo-horoscope-aio .haio-yoga-table-wrap {
    overflow: visible;
    margin: 8px 0;
}
.ookubo-horoscope-aio .haio-yoga-table-wrap table.haio-table {
    table-layout: auto;
}
.ookubo-horoscope-aio .haio-yoga-table-wrap table.haio-table td:first-child,
.ookubo-horoscope-aio .haio-yoga-table-wrap table.haio-table th:first-child {
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: normal;
}

/* Phase 7: ヨーガツールチップ */
.ookubo-horoscope-aio .haio-yoga-trigger {
    position: relative;
    cursor: pointer;
    color: #6a2a3f;
    border-bottom: 1px dotted #a05a6e;
    padding: 1px 2px;
    user-select: none;
    -webkit-tap-highlight-color: rgba(160, 90, 110, 0.15);
}
.ookubo-horoscope-aio .haio-yoga-trigger:hover,
.ookubo-horoscope-aio .haio-yoga-trigger:focus,
.ookubo-horoscope-aio .haio-yoga-trigger.haio-active {
    background: #fff8f9;
    outline: none;
}
.ookubo-horoscope-aio .haio-yoga-icon {
    color: #a05a6e;
    font-size: 0.85em;
    margin-left: 2px;
    opacity: 0.8;
}
.ookubo-horoscope-aio .haio-yoga-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #a05a6e;
    border-radius: 6px;
    padding: 10px 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    width: 320px;
    max-width: 90vw;
    font-size: 0.92em;
    line-height: 1.65;
    color: #333;
    font-weight: 400;
    white-space: normal;
    margin-top: 4px;
    text-align: left;
    cursor: auto;
}
.ookubo-horoscope-aio .haio-yoga-trigger:hover .haio-yoga-tooltip,
.ookubo-horoscope-aio .haio-yoga-trigger:focus .haio-yoga-tooltip,
.ookubo-horoscope-aio .haio-yoga-trigger.haio-active .haio-yoga-tooltip {
    display: block;
}
.ookubo-horoscope-aio .haio-yoga-good {
    color: #2a6a3f;
    font-weight: 600;
}
.ookubo-horoscope-aio .haio-yoga-bad {
    color: #a05a3a;
    font-weight: 600;
}
@media (max-width: 480px) {
    .ookubo-horoscope-aio .haio-yoga-tooltip {
        width: 84vw;
        font-size: 0.88em;
    }
}

/* Phase 14a: 特殊配置のアスペクト (Aspect Patterns)
   既存の haio-yoga-* と同じ体裁で実装。クラス名は haio-pattern-* で独立し、
   将来的にスタイル分岐できるようにする (色のみ西洋占星術用に調整)。 */
.ookubo-horoscope-aio .haio-pattern-table-wrap {
    overflow: visible;
    margin: 8px 0;
}
.ookubo-horoscope-aio .haio-pattern-table-wrap table.haio-table {
    table-layout: auto;
}
.ookubo-horoscope-aio .haio-pattern-table-wrap table.haio-table td:first-child,
.ookubo-horoscope-aio .haio-pattern-table-wrap table.haio-table th:first-child {
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: normal;
}
.ookubo-horoscope-aio .haio-pattern-trigger {
    position: relative;
    cursor: pointer;
    color: #4a3a8a;
    border-bottom: 1px dotted #6a5aa0;
    padding: 1px 2px;
    user-select: none;
    -webkit-tap-highlight-color: rgba(106, 90, 160, 0.15);
}
.ookubo-horoscope-aio .haio-pattern-trigger:hover,
.ookubo-horoscope-aio .haio-pattern-trigger:focus,
.ookubo-horoscope-aio .haio-pattern-trigger.haio-active {
    background: #f8f6fc;
    outline: none;
}
.ookubo-horoscope-aio .haio-pattern-icon {
    color: #6a5aa0;
    font-size: 0.85em;
    margin-left: 2px;
    opacity: 0.8;
}
.ookubo-horoscope-aio .haio-pattern-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #6a5aa0;
    border-radius: 6px;
    padding: 10px 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    width: 320px;
    max-width: 90vw;
    font-size: 0.92em;
    line-height: 1.65;
    color: #333;
    font-weight: 400;
    white-space: normal;
    margin-top: 4px;
    text-align: left;
    cursor: auto;
}
.ookubo-horoscope-aio .haio-pattern-trigger:hover .haio-pattern-tooltip,
.ookubo-horoscope-aio .haio-pattern-trigger:focus .haio-pattern-tooltip,
.ookubo-horoscope-aio .haio-pattern-trigger.haio-active .haio-pattern-tooltip {
    display: block;
}
/* 性質ラベルの色分け 4 種 (調和・緊張・運命・集中) */
.ookubo-horoscope-aio .haio-pattern-harmony {
    color: #2a6a3f;
    font-weight: 600;
}
.ookubo-horoscope-aio .haio-pattern-tension {
    color: #a05a3a;
    font-weight: 600;
}
/* 「性質」列は、隣のセルがクリック可（.haio-pattern-trigger = #4a3a8a）なので、
   紫や青で塗ると押せるセルと見分けが付かない。文字色は本文色に戻し、太字だけ残す。
   調和（緑）／緊張（茶）は吉凶の意味を持つ配色なのでそのまま。 */
.ookubo-horoscope-aio .haio-pattern-fate {
    color: #24292f;
    font-weight: 600;
}
.ookubo-horoscope-aio .haio-pattern-concentration {
    color: #24292f;
    font-weight: 600;
}
@media (max-width: 480px) {
    .ookubo-horoscope-aio .haio-pattern-tooltip {
        width: 84vw;
        font-size: 0.88em;
    }
}

.ookubo-horoscope-aio button.haio-aspect-toggle {
    padding: 6px 14px;
    background: #4a6fa5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.88em;
    cursor: pointer;
    margin: 4px 0 12px 0;
    font-weight: 500;
}
.ookubo-horoscope-aio button.haio-aspect-toggle:hover { background: #3d5d8a; }

/* Phase 11: 緯度経度入力（世界対応） */
.ookubo-horoscope-aio .haio-place-mode-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}
.ookubo-horoscope-aio .haio-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92em;
    cursor: pointer;
    font-weight: 500;
}
.ookubo-horoscope-aio .haio-radio input[type="radio"] {
    margin: 0;
}
.ookubo-horoscope-aio .haio-place-pref-fields,
.ookubo-horoscope-aio .haio-place-latlng-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    flex-basis: 100%;
    align-items: end;
}
.ookubo-horoscope-aio .haio-field-hint {
    font-weight: 400;
    color: #6a7080;
    font-size: 0.84em;
    margin-left: 4px;
}
.ookubo-horoscope-aio .haio-in-place-name {
    padding: 5px 8px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #fff;
    font-size: 0.95em;
    min-height: 32px;
    color: #24292f;
    width: 100%;
    box-sizing: border-box;
}
.ookubo-horoscope-aio .haio-latlng-note {
    font-size: 0.85em;
    color: #6a4a1a;
    margin: 4px 0 0 0;
    padding: 6px 10px;
    background: #fff8e1;
    border-left: 3px solid #e0c878;
    border-radius: 4px;
}
.ookubo-horoscope-aio .haio-overseas-banner {
    background: #fff5e7;
    border: 1px solid #d8a878;
    border-left: 4px solid #c87830;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0 0 12px 0;
    font-size: 0.92em;
    color: #6a4010;
    line-height: 1.55;
}
.ookubo-horoscope-aio .haio-overseas-banner strong {
    color: #6a3010;
    font-size: 0.96em;
    display: block;
    margin-bottom: 4px;
}
.ookubo-horoscope-aio .haio-overseas-banner p {
    margin: 0;
}

/* Phase 10: 結果 JSON ダウンロードセクション */
.ookubo-horoscope-aio .haio-download-section {
    margin-top: 18px;
    padding: 14px 16px;
    background: #f3f7fb;
    border: 1px solid #c8d4e3;
    border-radius: 8px;
}
.ookubo-horoscope-aio .haio-download-section h4 {
    margin: 0 0 10px 0;
    font-size: 1.02em;
    color: #1e3a5f;
    border-left: 4px solid #4a6fa5;
    padding-left: 8px;
}
.ookubo-horoscope-aio button.haio-download-btn {
    padding: 10px 22px;
    background: #4a6fa5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.96em;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin: 4px 0 12px 0;
}
/* v0.21.48: DL とコピーを同じ行に。タップ領域は両方 44px 以上。
   copysrc は execCommand フォールバック用の実体（display:none だと選択できず死ぶので画面外へ） */
.ookubo-horoscope-aio .haio-download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 4px 0 12px 0;
}
.ookubo-horoscope-aio .haio-download-row button.haio-download-btn { margin: 0; min-height: 44px; }
.ookubo-horoscope-aio button.haio-json-copybtn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    background: #fff;
    color: #2f5788;
    border: 2px solid #4a6fa5;
    border-radius: 6px;
    font-size: 0.96em;
    font-weight: 600;
    cursor: pointer;
}
.ookubo-horoscope-aio button.haio-json-copybtn:hover { background: #eef3fa; }
.ookubo-horoscope-aio button.haio-json-copybtn:focus { outline: 2px solid #4a6fa5; outline-offset: 2px; }
.ookubo-horoscope-aio .haio-json-copysrc { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
/* 2026-09-08: DL/コピー行の直下の用途注記。14px未満にしない・左揃え */
.ookubo-horoscope-aio .haio-json-copynote { margin: -4px 0 12px; font-size: max(14px, 0.9em); line-height: 1.7; color: #4a5060; text-align: left; }
.ookubo-horoscope-aio button.haio-download-btn:hover { background: #3d5d8a; }
.ookubo-horoscope-aio button.haio-download-btn:focus {
    outline: 2px solid #4a6fa5;
    outline-offset: 2px;
}
.ookubo-horoscope-aio .haio-download-notice {
    font-size: 0.84em;
    color: #4a5060;
    line-height: 1.6;
}
.ookubo-horoscope-aio .haio-download-points {
    margin: 0;
    padding-left: 1.2em;
}
.ookubo-horoscope-aio .haio-download-points li {
    margin-bottom: 4px;
}

/* Phase 13: /horoscope/star-meanings/ ガイドへの誘導 CTA (結果末尾) */
.ookubo-horoscope-aio .haio-star-meanings-cta {
    margin-top: 18px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f3f0fa 0%, #e8eaf3 100%);
    border: 1px solid #c8cce3;
    border-left: 4px solid #6a4a8a;
    border-radius: 8px;
}
.ookubo-horoscope-aio .haio-star-meanings-cta h4 {
    margin: 0 0 8px 0;
    color: #4a2a6a;
    font-size: 1.02em;
    border-left: none;
    padding-left: 0;
}
.ookubo-horoscope-aio .haio-star-meanings-cta-text {
    margin: 0 0 10px 0;
    font-size: 0.92em;
    color: #4a4060;
    line-height: 1.65;
}
.ookubo-horoscope-aio .haio-star-meanings-cta-link {
    display: inline-block;
    padding: 8px 18px;
    background: #6a4a8a;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
}
.ookubo-horoscope-aio .haio-star-meanings-cta-link:hover {
    background: #5a3a7a;
    color: #fff !important;
}

/* Phase 12: iOS Safari 向け注記 (ダウンロード非対応の案内) */
.ookubo-horoscope-aio .haio-download-safari-note {
    font-size: 0.86em;
    color: #6a4010;
    line-height: 1.55;
    margin: 6px 0 10px 0;
    padding: 8px 12px;
    background: #fff5e7;
    border-left: 4px solid #c87830;
    border-radius: 4px;
}
.ookubo-horoscope-aio .haio-download-safari-note strong {
    color: #6a3010;
    display: inline-block;
    margin-right: 2px;
}

@media (max-width: 480px) {
    /* 2026-09-15（田中さん指摘「本体がボックスの入れ子で窮屈」）: スマホでは外枠（灰色の箱）を
       消して、色付きの結果パネルだけを箱にする。375px で図表の幅 280px→310px。
       枠・余白・背景だけの変更で、機能・JSON・文言は不変。 */
    .ookubo-horoscope-aio { padding: 0; border: 0; border-radius: 0; background: transparent; }
    .ookubo-horoscope-aio table.haio-table { font-size: 0.85em; }
    .ookubo-horoscope-aio table.haio-table th,
    .ookubo-horoscope-aio table.haio-table td { padding: 4px 5px; }
    /* SVG 図表: 親 (.haio-panel) のコンテンツ幅にフィットさせる。
       v0.12.4 で 95vw を使ったところ、ビューポート全幅基準のためパネル左右
       パディング分を考慮できず右にはみ出した。100% 基準に変更し、
       max-width で上限を設けるだけにする。height:auto と viewBox に任せて
       アスペクト比は SVG 側で維持される。 */
    .ookubo-horoscope-aio .haio-svg-southindian {
        width: 100%;
        max-width: 380px;
        height: auto;
    }
    .ookubo-horoscope-aio .haio-svg-western {
        width: 100%;
        max-width: 420px;
        height: auto;
    }
}

/* ============ クイックアクセス (作成ボタン直下: JSON DL + プロンプト集リンク) ============ */
/* 重い装飾を避け、シンプルなテキストリンクで控えめに配置 */
.haio-quick-access {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45em 1.3em;
    align-items: center;
    margin: 0.5em 0 1.2em;
    padding: 0.7em 1em;
    background: #f7f3fb;
    border: 1px solid #e3d6f0;
    border-radius: 8px;
}
/* クイックリンク2本はピル型（2026-08-31 田中さん指示）。
   下線リンクだと「読むもの」に見えて、押す対象だと分かりにくかった。
   1本目（JSONダウンロード）が主動線なので塗り、2本目は枠線で従にする。
   タップ領域は縦44px以上を確保する（min-height）。文字は縮めない。 */
.haio-quick-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 20px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #7a5a9f 0%, #8568a8 100%);
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(61, 41, 82, 0.18);
    transition: filter 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.haio-quick-link:hover,
.haio-quick-link:focus-visible {
    filter: brightness(1.07);
    box-shadow: 0 2px 7px rgba(61, 41, 82, 0.26);
    color: #fff;
}
.haio-quick-link:focus-visible {
    outline: 2px solid #4a2a6f;
    outline-offset: 2px;
}
/* 2本目以降は従の見た目（枠線のみ）。主動線はJSONダウンロードの1本だけにする。 */
.haio-quick-link ~ .haio-quick-link {
    background: #fff;
    color: #6b4a86;
    border-color: #c9a9e0;
    box-shadow: none;
}
.haio-quick-link ~ .haio-quick-link:hover,
.haio-quick-link ~ .haio-quick-link:focus-visible {
    background: #f6f2fb;
    color: #4a2a6f;
    filter: none;
    box-shadow: 0 1px 3px rgba(61, 41, 82, 0.14);
}
@media (prefers-reduced-motion: reduce) {
    .haio-quick-link { transition: none; }
}
/* 2026-09-08: この行にもコピーを併設した（田中さん指摘）。button 要素なので、
   ピルの見た目を a と揃えるために既定の外観だけ打ち消す。文字は縮めない。 */
.ookubo-horoscope-aio button.haio-quick-copy {
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
/* 注記はピル行の次の行に全幅で置く（flex の子なので width:100% で改行させる）。 */
.ookubo-horoscope-aio .haio-quick-access .haio-json-copynote {
    width: 100%;
    margin: 2px 0 0;
}
/* 下部ダウンロードボタン直下: プロンプト集リンク (DLボタンと同じボタン形状に統一) */
.haio-download-prompt-link-wrap {
    margin: 0 0 12px 0;
    text-align: left;
}
.ookubo-horoscope-aio a.haio-download-prompt-link {
    padding: 10px 22px;
    background: #4a6fa5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.96em;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: background 0.12s ease;
}
.ookubo-horoscope-aio a.haio-download-prompt-link:hover {
    background: #3d5d8a;
    color: #fff;
}
.ookubo-horoscope-aio a.haio-download-prompt-link:focus {
    outline: 2px solid #4a6fa5;
    outline-offset: 2px;
}

/* ============ JSON保存成功パネル (v0.21.25: 非iOSのみ・保存直後に表示) ============ */
.haio-save-success {
    margin: 0.6em 0 1.2em;
    padding: 12px 16px;
    background: #eefaf1;
    border: 1px solid #bfe3c8;
    border-left: 4px solid #2e8b57;
    border-radius: 8px;
    font-size: 0.92em;
    line-height: 1.75;
    color: #1f4630;
}
.haio-save-success-head {
    font-size: 1.02em;
    margin-bottom: 2px;
}
.haio-save-success-file {
    font-family: Consolas, Menlo, monospace;
    font-size: 0.92em;
    word-break: break-all;
    background: #fff;
    border: 1px solid #d5e8db;
    border-radius: 4px;
    padding: 0 4px;
}
.haio-save-success-next {
    margin-top: 4px;
}
.ookubo-horoscope-aio a.haio-save-success-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 22px;
    background: #2e8b57;
    color: #fff;
    border-radius: 6px;
    font-size: 0.96em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.12s ease;
}
.ookubo-horoscope-aio a.haio-save-success-cta:hover {
    background: #246e45;
    color: #fff;
}
.ookubo-horoscope-aio a.haio-save-success-cta:focus {
    outline: 2px solid #2e8b57;
    outline-offset: 2px;
}
/* 再保存時にもう一度気づかせる短いハイライト */
@keyframes haio-save-flash {
    0%   { box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.45); }
    100% { box-shadow: 0 0 0 0 rgba(46, 139, 87, 0); }
}
.haio-save-success-flash {
    animation: haio-save-flash 0.9s ease-out 1;
}
@media (prefers-reduced-motion: reduce) {
    .haio-save-success-flash {
        animation: none;
    }
}
/* 保存成功パネル内: 会員差分の1行 (v0.21.37: テキスト1行+リンクのみ) */
.haio-save-success-mond {
    margin: 6px 0 0 0;
    font-size: 0.95em;
}
.ookubo-horoscope-aio a.haio-save-success-mond-link {
    color: #7a5a9f;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ookubo-horoscope-aio a.haio-save-success-mond-link:hover {
    color: #5b3d8a;
}

/* ============ 結果内ポインタ (v0.21.37: JSON保存ボタン直近の1行 → #ai-kantei) ============ */
.haio-result-pointer {
    margin: 2px 0 10px 0;
    font-size: 0.95em;
}
.ookubo-horoscope-aio a.haio-result-pointer-link {
    color: #5b3d8a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ookubo-horoscope-aio a.haio-result-pointer-link:hover {
    color: #7a5a9f;
}

/* 緯度経度モード: 座標検索サイトへの誘導リンク */
.ookubo-horoscope-aio .haio-coord-lookup {
    margin: 0 0 6px 0;
    font-size: 0.9em;
}
.ookubo-horoscope-aio .haio-coord-lookup a {
    color: #4a6fa5;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(74, 111, 165, 0.4);
}
.ookubo-horoscope-aio .haio-coord-lookup a:hover {
    color: #3d5d8a;
    border-bottom-color: #3d5d8a;
}

/* ------------------------------------------------------------------
   クイックアクセス行の「厳選プロンプト」リスト (v0.21.47 / 2026-08-30)
   flex-wrap の横並びは、行頭に記号が無いため折り返した項目同士が繋がって
   読めなかった（スマホで特に顕著・田中さん指摘）。ul/li の縦並びに変更する。
   マーカーは絵文字ではなくリストマーカーを使う。
   注記は 14px 相当を下限にする（視認性優先の全体方針）。
   ------------------------------------------------------------------ */
.haio-picks-list {
    margin: 0;
    padding: 0 0 0 1.15em;
    list-style: disc;
}
.haio-picks-list li {
    margin: 0;
    padding: 0;
    font-size: 0.92em;
    line-height: 1.75;
    color: #7a5a9f;
    break-inside: avoid;
}
.haio-picks-list li.is-member {
    color: #a61e4d;
}
/* リンクを行いっぱいに広げる（2026-09-08）。
   inline のままだと、押せるのは文字グリフの上だけだった。行の幅221pxに対しリンクの実体は
   最短93.8px＝右側126.9px（行の57%）が「色の付いた行に見えるのに押せない」領域。
   1280px（columns:2・列幅306px）では最悪212pxが不感帯。
   実測（本番 v0.21.47・elementFromPoint の格子サンプル）でリスト面積の不感率は
   375px:53.7% / 1280px:65.1%。Clarity のデッドクリックが 6.4%→12.0% に増えた時期
   （8/30 このリスト新設）と一致する。
   display:block で 375px:16.6% / 1280px:20.1% まで下がることを実測（padding 3px時）。
   padding は 8px を採用＝リンクの高さ 21px→43.4px でタップ標的44pxにほぼ届く
   （3px:33.4px / 6px:39.4px も実測。不感率は 16.6/16.1/15.9% とほぼ変わらないので、
   差が出るのはタップ標的の高さ）。代償はリスト全体が 472px→664px（1280px幅では238→334px）。
   残る不感はリストマーカー（ul の padding-left 側）と行間で、面積が小さいので許容する。
   2段組（min-width:700px の columns:2）でも 6行/6行の均等・列幅いっぱいが当たり判定に
   なることを実測済み（break-inside:avoid との衝突なし）。文字サイズは変えない。 */
/* 2026-09-08 追記（田中さん指摘「リストタグの行間が開きすぎ」）: padding 8px + li の margin 3.1px で
   項目間の空きが 19.1px あり、折り返し行の内側（約10px）と揃わずリズムが崩れていた（本番実測）。
   li の margin を 0、padding を 4px にして項目間 8px に詰める。実測: リンク高 43.4px→35.4px、
   リスト全体 390px幅 636.8→506.4px／1280px幅 333.6→266.9px。文字サイズ・行間（15.64px/1.75）は変えない。
   display:block による横方向の当たり判定（デッドクリック対策の本体）はそのまま。 */
.haio-picks-list li > a {
    display: block;
    padding: 4px 0;
}
.haio-picks-note {
    font-size: 0.88em;
    line-height: 1.75;
    color: #6a6276;
    margin: 8px 0 0;
}
/* 広い画面だけ2段組にして縦の伸びを抑える。狭い画面は1列のまま。 */
@media (min-width: 700px) {
    .haio-picks-list {
        columns: 2;
        column-gap: 2em;
    }
}
