/* ============================================================
   Universal Price Tool - Front-end styles
   ============================================================ */

.universal-price-tool * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.universal-price-tool {
    font-family: '游ゴシック体', 'Yu Gothic', YuGothic, 'Noto Sans JP', sans-serif;
    font-weight: 500;
    background: transparent;
    margin: 20px 0;
    border: none;
    -webkit-font-smoothing: antialiased;
    color: #333;

    /* カラートークン */
    --green: #58a55c;
    --green-light: #edf7ee;
    --green-lighter: #f5faf5;
    --green-dark: #4a9150;
    --green-border: #c8e6ca;
    --border: #e8ecef;
    --border-light: #f0f2f4;
    --pink: #DC73A2;
}

.universal-price-tool .container {
    background: transparent;
    box-shadow: none;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.universal-price-tool .header {
    background: linear-gradient(135deg, var(--green-lighter) 0%, var(--green-light) 100%);
    padding: 16px 20px 14px;
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--green-border);
    border-bottom: none;
    text-align: center;
}

.universal-price-tool .header:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    border: none !important;
}

.universal-price-tool .header-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--green-dark);
}

.universal-price-tool .header-svg {
    margin-right: 4px;
}

.universal-price-tool .header-note {
    font-size: 12px;
    color: #656565;
    margin-top: 2px;
    font-weight: 400;
}

/* ============================================================
   選択エリア（カテゴリー・キャンペーン）
   ============================================================ */
.universal-price-tool .select-section-group {
    background: #fff;
    border: 1px solid var(--green-border);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 16px 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(88,165,92,0.06);
}

/* ヘッダー（タイトル・サブタイトル）が非表示のとき、枠を繋げる */
.universal-price-tool .container > .main-content:first-child .select-section-group {
    border-top: 1px solid var(--green-border);
    border-radius: 20px 20px 20px 20px;
}

.universal-price-tool .select-section-group .section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 14px;
}

.universal-price-tool .select-section-group .section:last-child {
    margin-bottom: 0;
}

.universal-price-tool .section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: bold;
    color: var(--green);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.universal-price-tool .section-title svg {
    width: 16px;
    height: 16px;
    stroke: var(--green);
    flex-shrink: 0;
}

.universal-price-tool .section-title .section-svg svg {
    width: 16px;
    height: 16px;
}

/* SVGアイコンを非表示にして番号丸・▼に置き換え */
.universal-price-tool .select-section-group .section-title svg,
.universal-price-tool .select-section-group .section-title .section-svg {
    display: none;
}

.universal-price-tool .select-section-group .section:nth-child(1) .section-title::before {
    content: '1';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 2px;
}

.universal-price-tool .select-section-group .section:nth-child(2) .section-title::before {
    content: '2';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 2px;
}

.universal-price-tool #results-section .section-title svg,
.universal-price-tool #results-section .section-title .section-svg {
    display: none;
}

.universal-price-tool #results-section .section-title::before {
    content: '▼';
    color: var(--green);
    font-size: 11px;
    margin-right: 4px;
    flex-shrink: 0;
}

/* ボタングリッド */
.universal-price-tool .button-group {
    margin: 0;
}

.universal-price-tool .button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.universal-price-tool .button-grid button,
.universal-price-tool .selection-button {
    background: #fff;
    color: #777;
    border: 1.5px solid var(--border);
    padding: 8px 16px;
    border-radius: 80px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    min-height: unset;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.universal-price-tool .button-grid button:hover,
.universal-price-tool .selection-button:hover {
    background: var(--green-lighter);
    border-color: var(--green-border);
    color: var(--green);
    transform: none;
}

.universal-price-tool .button-grid button.active,
.universal-price-tool .button-grid button.selected,
.universal-price-tool .selection-button.active,
.universal-price-tool .selection-button.selected {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 2px 8px rgba(88,165,92,0.25);
    font-weight: bold;
}


/* ============================================================
   結果エリア
   ============================================================ */
.universal-price-tool #results-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: none;
}

.universal-price-tool #results-section .section-title {
    font-size: 13px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 3px !important;
    padding: 0 4px;
}

.universal-price-tool #results-section .section-title svg {
    stroke: #58a55c;
}

.universal-price-tool .result-subtitle {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
    padding: 0 4px;
    font-weight: 400;
    line-height: 1.4;
}

.universal-price-tool #results-section .results-area {
    margin-top: 4px;
}

.universal-price-tool .results-area {
    display: block;
}

/* アラート */
.universal-price-tool .alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 12px;
}

.universal-price-tool .alert-info {
    background-color: var(--green-lighter);
    color: var(--green-dark);
    border: 1px solid var(--green-border);
    display: block;
}

.universal-price-tool .alert-danger {
    background-color: #fdf2f6;
    color: #c0395f;
    border: 1px solid #f4c2d2;
    display: block;
}

.universal-price-tool .alert-warning {
    background-color: #fffbee;
    color: #856404;
    border: 1px solid #ffe99a;
    font-size: 12px;
    display: block;
}

/* ============================================================
   アコーディオン結果リスト
   ============================================================ */

/* リスト全体 */
.universal-price-tool .result-list {
    border: 1.5px solid var(--green-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(88,165,92,0.06);
}

/* 各行 */
.universal-price-tool .result-row {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
}

.universal-price-tool .result-row:last-child {
    border-bottom: none;
}

/* 行メイン */
.universal-price-tool .row-main {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    gap: 10px;
}

/* クリニック名グループ（インライン折り返し） */
.universal-price-tool .name-group {
    display: block;
    flex: 1;
    min-width: 0;
}

.universal-price-tool .name-group .clinic-name,
.universal-price-tool .name-group .cheapest-tag {
    display: inline;
    vertical-align: middle;
}

.universal-price-tool .name-group .cheapest-tag {
    margin-left: 1px;
    white-space: nowrap;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    color: #d48a00;
    font-size: 11px;
}

.universal-price-tool .clinic-name {
    font-weight: bold;
    font-size: 13px;
    color: #333;
    line-height: 1;
}

/* 最安値バッジ */
.universal-price-tool .cheapest-tag {
    background: #fff8e1;
    color: #d48a00;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 80px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
}

/* 価格ブロック */
.universal-price-tool .price-block {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.universal-price-tool .price-block .final-price {
    font-size: 18px;
    font-weight: 900;
    color: #333;
    letter-spacing: -0.5px;
    line-height: 1;
    margin: 0;
    display: block;
}

.universal-price-tool .price-block .final-price .yen {
    font-size: 12px;
    font-weight: 600;
}

.universal-price-tool .discount-text {
    font-size: 10px;
    font-weight: bold;
    color: #e86060;
    margin-top: 1px;
}

/* 右側ボタン群 */
.universal-price-tool .row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* 公式サイトボタン：SP/PC文言切替 */
.universal-price-tool .site-btn-pc { display: none; }
.universal-price-tool .site-btn-sp { display: inline; }

/* 公式サイトボタン */
.universal-price-tool .site-btn {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 80px;
    font-size: 11px;
    font-weight: bold;
    border: 1.5px solid var(--pink);
    color: var(--pink);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.3;
}

.universal-price-tool .result-row:hover .site-btn {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,115,162,0.2);
}

/* 展開ボタン */
.universal-price-tool .expand-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #aaa;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
}

.universal-price-tool .expand-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.universal-price-tool .result-row.open .expand-btn {
    transform: rotate(180deg);
    border-color: var(--green);
    color: var(--green);
}

/* 展開エリア */
.universal-price-tool .row-detail {
    display: none;
    padding: 0 14px 14px;
    border-top: 1px solid var(--border-light);
    background: var(--green-lighter);
}

.universal-price-tool .result-row.open .row-detail {
    display: block;
}

.universal-price-tool .detail-inner {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.universal-price-tool .detail-cols {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.universal-price-tool .detail-cols .detail-row {
    flex: 1;
}

.universal-price-tool .detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.universal-price-tool .detail-label {
    color: #888;
    min-width: 72px;
    flex-shrink: 0;
}

.universal-price-tool .detail-comment {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
}

.universal-price-tool .detail-comment .detail-value {
    font-weight: 600;
    font-size: 12px;
    color: var(--green-dark);
    line-height: 1.5;
}

.universal-price-tool .detail-value {
    color: #333;
    font-weight: 600;
    flex: 1;
}

.universal-price-tool .campaign-chip {
    background: var(--green-light);
    color: var(--green);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 80px;
    border: 1px solid var(--green-border);
    white-space: nowrap;
}

/* ============================================================
   管理画面用スタイル
   ============================================================ */
.tools-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tools-list-table th,
.tools-list-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tools-list-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.tools-list-table tr:hover {
    background-color: #f5f5f5;
}

.setting-group {
    margin-top: 20px;
    border-radius: 5px;
}

.setting-box {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.save-actions {
    margin-top: 20px;
}

.save-actions .submit {
    padding: 0;
    margin: 15px 0;
}

.tracking-filters {
    background: #f9f9f9;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

/* ============================================================
   分析画面
   ============================================================ */
.analytics-wrap {
    max-width: 1000px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.analytics-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 14px 18px;
}

.analytics-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* KPIカード */
.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.analytics-kpi-card {
    background: #fff;
    border: 2px solid var(--kpi-color, #138496);
    border-radius: 12px;
    padding: 20px 16px 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.analytics-kpi-icon {
    display: none;
}

.analytics-kpi-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--kpi-color, #138496);
    line-height: 1.1;
    margin-bottom: 6px;
}

.analytics-kpi-label {
    font-size: 13px;
    color: #656565;
    font-weight: 500;
}

/* 汎用カード */
.analytics-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.analytics-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* 完了タイプ */
.analytics-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.analytics-breakdown-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-left: 4px solid var(--bd-color, #ccc);
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
}

.analytics-breakdown-number {
    font-size: 26px;
    font-weight: 700;
    color: var(--bd-color, #333);
    margin-bottom: 4px;
}

.analytics-breakdown-label {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 2px;
}

.analytics-breakdown-desc {
    font-size: 10px;
    color: #aaa;
}

/* ランキングリスト */
.analytics-bar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}



/* ============================================================
   イベントシーケンス可視化
   ============================================================ */

/* ① よく使われたパス */
.seq-path-list { display: flex; flex-direction: column; gap: 10px; }
.seq-path-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; background: #fafafa;
    border: 1px solid #eee; border-radius: 8px;
}
.seq-path-rank { font-size: 12px; font-weight: 700; color: #999; width: 24px; text-align: center; flex-shrink: 0; }
.seq-path-steps { display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: wrap; }
.seq-step {
    display: inline-flex; align-items: center;
    background: #edf7ee; color: #3a7d3e;
    border-radius: 99px; padding: 3px 10px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.seq-step-click   { background: #fff0f5; color: #c0395f; }
.seq-step-change  { background: #fff8e1; color: #8a6200; }
.seq-step-timeout { background: #f5f5f5; color: #999; }
.seq-arrow { color: #ccc; font-size: 12px; }
.seq-path-count { font-size: 14px; font-weight: 700; color: #333; white-space: nowrap; flex-shrink: 0; }
.seq-path-count span { font-size: 11px; font-weight: 400; color: #999; margin-left: 1px; }

/* ② ファネル */
.seq-funnel-list { display: flex; flex-direction: column; gap: 10px; }
.seq-funnel-row { display: flex; align-items: center; gap: 14px; }
.seq-funnel-label { font-size: 12px; font-weight: 600; color: #555; width: 130px; flex-shrink: 0; text-align: right; }
.seq-funnel-bar-wrap { flex: 1; }
.seq-funnel-track { height: 32px; background: #f0f0f0; border-radius: 6px; overflow: hidden; }
.seq-funnel-fill {
    height: 100%; border-radius: 6px; min-width: 40px;
    display: flex; align-items: center; padding-left: 12px;
    font-size: 12px; font-weight: 700; color: #fff;
    transition: width 0.5s;
}
.seq-funnel-meta { font-size: 11px; color: #aaa; margin-top: 4px; padding-left: 2px; }
.seq-funnel-drop { color: #e17055; }

/* ③ フロー一覧 */
.seq-flow-list { display: flex; flex-direction: column; gap: 12px; }
.seq-flow-item {
    border: 1px solid #eee; border-radius: 8px;
    padding: 12px 14px; background: #fafafa;
}
.seq-flow-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.seq-badge {
    display: inline-block; padding: 2px 8px; border-radius: 99px;
    font-size: 11px; font-weight: 700;
}
.seq-badge-click   { background: #e8f5e9; color: #2e7d32; }
.seq-badge-timeout { background: #ffebee; color: #c62828; }
.seq-badge-change  { background: #fff8e1; color: #f57f17; }
.seq-flow-subject  { font-size: 12px; color: #333; }
.seq-flow-date     { font-size: 11px; color: #aaa; margin-left: auto; }
.seq-timeline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.seq-ev { display: flex; align-items: center; }
.seq-ev-bubble {
    display: flex; flex-direction: column; align-items: center;
    background: #fff; border: 1px solid #ddd; border-radius: 8px;
    padding: 6px 10px; font-size: 11px; min-width: 76px; text-align: center;
}
.seq-ev-start   { border-color: #4a90d9; background: #eef4fb; }
.seq-ev-click   { border-color: #28a745; background: #edf7ee; }
.seq-ev-timeout { border-color: #ff7675; background: #fff5f5; }
.seq-ev-change  { border-color: #fdcb6e; background: #fff8e1; }
.seq-ev-type  { font-size: 10px; color: #aaa; margin-bottom: 2px; }
.seq-ev-value { font-size: 12px; font-weight: 600; color: #333; }
.seq-connector {
    width: 20px; height: 1px; background: #ddd; flex-shrink: 0; position: relative;
}
.seq-connector::after {
    content: ''; position: absolute; right: 0; top: -3px;
    border: 4px solid transparent; border-left-color: #ddd;
}
.seq-flow-footer { margin-top: 10px; font-size: 11px; color: #aaa; display: flex; gap: 16px; }
.seq-flow-footer strong { color: #555; }

/* ドラッグ&ドロップ */
.button-setting-header {
    display: grid;
    grid-template-columns: 30px 1fr 1fr 60px 80px;
    gap: 5px;
    align-items: center;
    padding: 8px 1px 8px 20px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.draggable-row {
    display: grid;
    grid-template-columns: 30px 1fr 1fr 60px 80px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: move;
    transition: all 0.3s ease;
}

.draggable-row:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.drag-handle {
    cursor: grab;
    color: #666;
    font-weight: bold;
    text-align: center;
    padding: 4px;
    border-radius: 3px;
    background: #f1f3f4;
    transition: all 0.2s ease;
    user-select: none;
    justify-self: center;
}

.drag-handle:hover {
    background: #e8eaed;
    color: #333;
}

.drag-handle:active {
    cursor: grabbing;
    background: #dadce0;
}

.draggable-row input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.order-display {
    color: #1976d2;
    font-weight: bold;
    text-align: center;
    padding: 6px;
    border-radius: 50%;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    justify-self: center;
}

.draggable-row.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    position: relative;
}

.draggable-row.drag-over {
    border-top: 3px solid #007cba;
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (min-width: 600px) {
    /* PC: name-groupを固定幅・flex横並びに */
    .universal-price-tool .name-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex: 0 0 220px;
        min-width: 0;
    }

    .universal-price-tool .name-group .clinic-name,
    .universal-price-tool .name-group .cheapest-tag {
        display: inline-block;
        vertical-align: middle;
    }

    .universal-price-tool .name-group .cheapest-tag {
        margin-left: 0;
        background: #fff8e1;
        border: none;
        padding: 2px 7px;
        border-radius: 80px;
        color: #d48a00;
        font-size: 10px;
    }

    .universal-price-tool .detail-cols {
        flex-direction: row;
        gap: 16px;
    }

    /* PC: 価格を名前列の右に */
    .universal-price-tool .price-block {
        margin-left: 16px;
    }

    /* PC: row-actionsを解体して公式サイトボタンを価格の横へ */
    .universal-price-tool .row-actions {
        display: contents;
    }

    .universal-price-tool .site-btn {
        margin-left: 16px;
        padding: 7px 32px;
        font-size: 12px;
    }

    .universal-price-tool .site-btn-pc { display: inline; }
    .universal-price-tool .site-btn-sp { display: none; }

    .universal-price-tool .expand-btn {
        margin-left: auto;
    }

}

@media (max-width: 599px) {
    .universal-price-tool .button-grid {
        gap: 7px;
    }

    .universal-price-tool .button-grid button,
    .universal-price-tool .selection-button {
        padding: 7px 13px;
        font-size: 12px;
    }

    .button-setting-header,
    .draggable-row {
        grid-template-columns: 25px 1fr 1fr 50px 70px;
        gap: 5px;
        padding: 8px;
    }

    .drag-handle {
        font-size: 12px;
        padding: 2px;
    }

    .order-display {
        min-width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .draggable-row input[type="text"] {
        font-size: 10px;
        padding: 6px 8px;
    }
}

/* ============================================================
   アニメーション
   ============================================================ */
@keyframes resultsSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.universal-price-tool .result-list {
    animation: resultsSlideIn 0.3s ease;
}

/* ============================================================
   アクセシビリティ
   ============================================================ */
.universal-price-tool button:focus {
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-contrast: high) {
    .universal-price-tool .select-section-group {
        border-width: 2px;
    }

    .universal-price-tool button {
        border: 2px solid currentColor;
    }
}

@media (prefers-reduced-motion: reduce) {
    .universal-price-tool * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   追跡・統計画面
   ============================================================ */
.tracking-quick-check {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.tracking-quick-check h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

#quick-check-results {
    min-height: 20px;
}

#quick-check-results > div {
    animation: slideIn 0.3s ease;
}
