/* ============================================================
   /select/shaver/ 完成版
============================================================ */

.selector-intro {
    margin-bottom: 24px;
}

.selector-intro h1 {
    margin-bottom: 14px;
}

.selector-lead {
    color: #555;
    line-height: 1.9;
}

.selector-trial-note {
    margin-top: 18px;
    padding: 14px 16px;
    background: #fff8f7;
    border-left: 4px solid #bf0000;
    border-radius: 6px;
    color: #555;
    font-size: 13px;
    line-height: 1.75;
}

.selector-form {
    margin: 24px 0 28px;
    padding: 22px;
    background: #fff;
    border: 1px solid #eceeef;
    border-radius: 10px;
}

.selector-form-title {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bf0000;
    font-size: 20px;
}

.selector-question {
    margin: 20px 0;
}

.selector-question:first-of-type {
    margin-top: 0;
}

.selector-question > strong {
    display: block;
    margin-bottom: 9px;
    color: #252525;
}

.selector-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selector-option {
    position: relative;
}

.selector-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.selector-option span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    background: #fff;
    border: 1px solid #dfe2e5;
    border-radius: 999px;
    color: #444;
    font-size: 13px;
    cursor: pointer;
    transition: .15s ease;
}

.selector-option input:checked + span {
    background: #fff3f3;
    border-color: #bf0000;
    color: #a00000;
    font-weight: 700;
}

.selector-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 7px;
    background: #bf0000;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.selector-submit:hover {
    background: #a50000;
}

.selector-current {
    margin: 0 0 24px;
    padding: 13px 15px;
    background: #fafafa;
    border: 1px solid #e6e7e8;
    border-radius: 7px;
    color: #555;
    font-size: 13px;
    line-height: 1.75;
}

.selector-results-title {
    margin: 32px 0 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bf0000;
    font-size: 20px;
}

.selector-results-note {
    margin-bottom: 18px;
    color: #777;
    font-size: 12px;
}

.select-card {
    margin-bottom: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e4e6e8;
    border-radius: 10px;
    box-shadow: 0 2px 9px rgba(20,24,28,.035);
}

.select-card-top {
    display: grid;
    grid-template-columns: 110px minmax(0,1fr);
    gap: 18px;
    align-items: start;
}

.select-rank {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #bf0000;
    font-weight: 800;
    font-size: 13px;
}

.select-match {
    padding: 3px 8px;
    background: #fff1f1;
    border-radius: 999px;
    font-size: 11px;
}

.select-image {
    display: block;
    width: 110px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.select-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.select-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.5;
}

.select-card h3 a {
    color: #242424;
    text-decoration: none;
}

.select-card h3 a:hover {
    color: #bf0000;
}

.select-price {
    color: #bf0000;
    font-size: 19px;
    font-weight: 800;
}

.select-review {
    margin-left: 10px;
    color: #c88900;
    font-size: 12px;
}

.select-profile-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
    margin-top: 14px;
}

.select-metric {
    padding: 10px;
    background: #fafafa;
    border-radius: 7px;
}

.select-metric span {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 11px;
}

.select-metric strong {
    font-size: 12px;
}

.select-stars {
    color: #c88e00;
    letter-spacing: .03em;
}

.select-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.select-badge {
    padding: 4px 8px;
    background: #fff7f6;
    border: 1px solid #efd8d4;
    border-radius: 999px;
    color: #8f2525;
    font-size: 11px;
}

.select-reasons {
    margin: 14px 0 0;
    padding: 13px 14px;
    background: #fbfbfb;
    border-left: 3px solid #bf0000;
    color: #555;
    font-size: 12px;
    line-height: 1.7;
}

.select-rakuten-link {
    display: inline-flex;
    margin-top: 12px;
    color: #bf0000;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
}

.select-rakuten-link:hover {
    text-decoration: underline;
}

.selector-side-card {
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #e2e4e6;
    border-radius: 8px;
    overflow: hidden;
}

.selector-side-title {
    padding: 13px 14px;
    border-bottom: 1px solid #e4e6e8;
    border-left: 3px solid #bf0000;
    font-weight: 700;
    font-size: 14px;
}

.selector-side-link {
    display: block;
    padding: 11px 14px;
    border-bottom: 1px solid #eceeef;
    color: #252525;
    text-decoration: none;
    font-size: 13px;
}

.selector-side-link:last-child {
    border-bottom: 0;
}

.selector-side-link:hover {
    background: #fff7f7;
    color: #bf0000;
}

@media (max-width: 700px) {
    .selector-form {
        padding: 17px 14px;
    }

    .select-card-top {
        grid-template-columns: 82px minmax(0,1fr);
        gap: 12px;
    }

    .select-image {
        width: 82px;
        height: 82px;
    }

    .select-profile-grid {
        grid-template-columns: 1fr;
    }

    .selector-option span {
        font-size: 12px;
    }
}

/* ============================================================
   v0.2.4 UX微調整
============================================================ */

.selector-results-anchor {
    scroll-margin-top: 18px;
}

.selector-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: 32px;
    border-bottom: 2px solid #bf0000;
}

.selector-results-head .selector-results-title {
    flex: 1 1 auto;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 0;
}

.selector-change-link {
    flex: 0 0 auto;
    margin-bottom: 10px;
    color: #777;
    font-size: 12px;
    text-decoration: none;
}

.selector-change-link:hover {
    color: #bf0000;
    text-decoration: underline;
}

.select-series-label {
    margin-bottom: 4px;
    color: #8b8f93;
    font-size: 10.5px;
    line-height: 1.4;
}

.selector-submit.is-loading,
.selector-submit:disabled {
    opacity: .72;
    cursor: wait;
}

@media screen and (max-width: 560px) {
    .selector-results-head {
        align-items: center;
    }

    .selector-change-link {
        margin-bottom: 8px;
        font-size: 11px;
    }
}

/* ============================================================
   v0.2.5 結果グループ
============================================================ */

.selector-result-group {
    margin-top: 18px;
}

.selector-result-group-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 7px;
}

.selector-result-group-title h3 {
    margin: 0;

    color: #222;

    font-size: 17px;
    line-height: 1.45;
}

.selector-result-group-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 25px;
    padding: 4px 9px;

    background: #bf0000;
    border-radius: 999px;

    color: #fff;

    font-size: 11px;
    font-weight: 700;
}

.selector-result-group-badge.is-relaxed {
    background: #7a7f84;
}

.selector-result-count {
    color: #8a8e92;
    font-size: 11px;
}

.selector-result-group-note {
    margin: 0 0 13px;

    color: #777;

    font-size: 12px;
    line-height: 1.7;
}

.selector-result-group-relaxed {
    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid #eceeef;
}

.select-card-relaxed {
    background: #fdfdfd;
}

.select-relaxed-alert {
    margin: 0 0 12px;
    padding: 9px 11px;

    background: #f5f6f7;

    border-left: 3px solid #7a7f84;
    border-radius: 5px;

    color: #5c6064;

    font-size: 11.5px;
    line-height: 1.65;
}

.selector-no-results {
    margin-top: 18px;
}

@media screen and (max-width: 560px) {
    .selector-result-group-title {
        flex-wrap: wrap;
    }

    .selector-result-group-title h3 {
        font-size: 16px;
    }
}

/* ============================================================
   v0.2.6 条件一致度・ランキング精密化
============================================================ */

.select-match {
    white-space: nowrap;
}

.selector-result-group-note {
    max-width: 760px;
}

.select-reasons strong {
    color: #303438;
}

@media screen and (max-width: 560px) {
    .select-match {
        white-space: normal;
        line-height: 1.45;
    }
}



/* ============================================================
   v0.2.7 おすすめ適合度・商品信頼度強化
============================================================ */
.select-rank {
    gap: 9px;
    flex-wrap: wrap;
    font-size: 14px;
}

.select-match,
.select-trust {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    white-space: nowrap;
}

.select-match {
    color: #b40000;
    background: #fff1f1;
    border: 1px solid #ffd8d8;
}

.select-trust {
    color: #4b5157;
    background: #f5f6f7;
    border: 1px solid #e1e4e7;
}

@media screen and (max-width: 560px) {
    .select-match,
    .select-trust {
        white-space: normal;
        font-size: 12.5px;
    }
}


/* ============================================================
   v0.2.8 ランキングロジック確定版
============================================================ */
.select-rank {
    align-items: center;
}

.select-match,
.select-trust {
    min-height: 30px;
    padding: 6px 11px;
    font-size: 13.5px;
}

@media screen and (max-width: 560px) {
    .select-match,
    .select-trust {
        min-height: 29px;
        padding: 5px 9px;
        font-size: 13px;
    }
}

/* ============================================================
   v0.2.9 条件緩和ポリシー確定版
============================================================ */

.select-relaxed-alert {
    font-size: 12.5px;
    line-height: 1.75;
}

.select-relaxed-alert strong {
    color: #44494d;
}

.selector-result-group-relaxed .selector-result-group-note {
    line-height: 1.8;
}

@media screen and (max-width: 560px) {
    .select-relaxed-alert {
        font-size: 12px;
    }
}



/* ============================================================
   v0.3.0 評価根拠・ランキング品質強化
============================================================ */

.select-score-number {
    display: inline-block;
    margin-right: 7px;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.select-evidence {
    margin-top: 12px;
    padding: 12px 13px;
    background: #fbfbfb;
    border: 1px solid #eceeef;
    border-radius: 7px;
}

.select-evidence-title {
    margin-bottom: 8px;
    color: #444;
    font-size: 12px;
    font-weight: 700;
}

.select-evidence-list,
.select-match-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.select-evidence-chip,
.select-match-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    background: #fff;
    border: 1px solid #e2e4e6;
    border-radius: 999px;
    color: #555;
    font-size: 11.5px;
    line-height: 1.4;
}

.select-match-summary {
    margin-top: 9px;
}

.select-match-summary span {
    background: #fff8f7;
    border-color: #efd9d5;
    color: #6d3b36;
    font-weight: 600;
}

.select-reason-text {
    margin: 9px 0 0;
    color: #555;
    line-height: 1.75;
}

@media screen and (max-width: 560px) {
    .select-score-number {
        display: block;
        margin: 0 0 3px;
        font-size: 12px;
    }

    .select-evidence-chip,
    .select-match-summary span {
        font-size: 11px;
    }
}

/* ============================================================
   v0.3.1 商品同定・最終安定化
============================================================ */

.select-identity {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 10px;
    border: 1px solid #d9e2ea;
    border-radius: 999px;
    background: #f7fafc;
    color: #425466;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
}

.select-identity-note {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #eceeef;
    color: #687078;
    font-size: 11.5px;
    line-height: 1.7;
}

.select-identity-note strong {
    color: #30363b;
}

@media screen and (max-width: 560px) {
    .select-identity {
        font-size: 12px;
    }

    .select-identity-note {
        font-size: 11px;
    }
}


/* ============================================================
   WordPress ⇄ セレクトナビ 双方向連携
============================================================ */

.select-wp-guides {
    margin-top: 34px;
    padding: 22px 24px 24px;
    background: #fff;
    border: 1px solid #e7e9eb;
    border-radius: 9px;
}

.select-wp-guides-kicker {
    margin-bottom: 5px;
    color: #bf0000;
    font-size: 12px;
    font-weight: 700;
}

.select-wp-guides-title {
    margin: 0 0 8px !important;
    padding: 0 0 10px !important;
    border-bottom: 2px solid #bf0000 !important;
    color: #202124 !important;
    font-size: 19px !important;
    line-height: 1.5 !important;
}

.select-wp-guides-lead {
    margin: 0 0 18px;
    color: #686d72;
    font-size: 12.5px;
    line-height: 1.8;
}

.select-wp-guide-section + .select-wp-guide-section {
    margin-top: 22px;
}

.select-wp-guide-section h3 {
    margin: 0 0 7px;
    color: #25282b;
    font-size: 15px;
    line-height: 1.55;
}

.select-wp-guide-list {
    border: 1px solid #eceeef;
    border-radius: 7px;
    overflow: hidden;
}

.select-wp-guide-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 9px 12px;
    background: #fff;
    border-bottom: 1px solid #eceeef;
    color: #292d31 !important;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none !important;
}

.select-wp-guide-link:last-child {
    border-bottom: 0;
}

.select-wp-guide-link:hover {
    background: #fff7f7;
    color: #bf0000 !important;
}

.select-wp-guide-arrow {
    flex: 0 0 auto;
    color: #bf0000;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

@media screen and (max-width: 650px) {
    .select-wp-guides {
        margin-top: 26px;
        padding: 18px 15px 20px;
    }

    .select-wp-guides-title {
        font-size: 18px !important;
    }

    .select-wp-guide-link {
        font-size: 12.5px;
    }
}


/* v1.2 WordPress関連記事 REST同一オリジン取得 */
.select-wp-guide-loading,
.select-wp-guide-error {
    margin-top: 26px;
    padding: 13px 15px;
    border: 1px solid #e3e6e8;
    border-radius: 7px;
    background: #fff;
    color: #656a70;
    font-size: 12px;
    line-height: 1.7;
}

.select-wp-guide-error {
    border-color: #efd8d8;
    background: #fff8f8;
    color: #8a4040;
}
