/*
Theme Name: SWELL CHILD - Garagehouse Hikaku
Theme URI: https://garagehouse-hikaku.com/
Description: 東海ガレージハウス比較.com専用のSWELL子テーマ。工務店個別ページ、ランキング、エリア別一覧などのカスタムテンプレートを格納。
Author: garagehouse-hikaku.com
Version: 1.0.0
Template: swell
Text Domain: swell-child-garagehouse
*/

/* ===========================================
 * 工務店個別ページ専用スタイル
 * single-koumuten.php で使用
 * =========================================== */

.koumuten-page {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px;
}

/* パンくずリスト */
.koumuten-breadcrumb {
    font-size: 13px;
    color: #666;
    margin: 16px 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.koumuten-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}
.koumuten-breadcrumb a:hover {
    text-decoration: underline;
}

/* タイトル部分 */
.koumuten-header {
    margin-bottom: 32px;
}
.koumuten-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
}
.koumuten-header .koumuten-meta-line {
    font-size: 14px;
    color: #666;
}

/* 基本情報ボックス */
.koumuten-info-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}
.koumuten-info-box dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 20px;
    margin: 0;
}
.koumuten-info-box dt {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
.koumuten-info-box dd {
    margin: 0;
    color: #555;
    font-size: 14px;
}
.koumuten-info-box a {
    color: #0066cc;
    word-break: break-all;
}

/* ガレージハウス特化情報 */
.koumuten-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.koumuten-feature-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.koumuten-feature-card .feature-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}
.koumuten-feature-card .feature-value {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

/* 紹介文 */
.koumuten-introduction {
    background: #fff;
    padding: 24px;
    border-left: 4px solid #ff6b35;
    margin-bottom: 32px;
    line-height: 1.9;
    font-size: 15px;
}

/* 施工事例 */
.koumuten-examples {
    margin-bottom: 32px;
}
.koumuten-examples h2 {
    font-size: 22px;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 8px;
    margin-bottom: 20px;
}
.koumuten-examples ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.koumuten-examples li {
    padding: 12px 16px;
    background: #f8f9fa;
    margin-bottom: 8px;
    border-radius: 6px;
}
.koumuten-examples li a {
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
}
.koumuten-examples li a::after {
    content: " ↗";
    color: #999;
}

/* 口コミ */
.koumuten-review {
    background: #fffbf0;
    border: 1px solid #f5d976;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: center;
}
.koumuten-review .review-stars {
    font-size: 28px;
    color: #f5b400;
    letter-spacing: 4px;
}
.koumuten-review .review-score {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0;
}
.koumuten-review .review-meta {
    font-size: 13px;
    color: #888;
}

/* 一括見積CTA */
.koumuten-cta {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}
.koumuten-cta .cta-headline {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.koumuten-cta .cta-sub {
    color: #fff5e6;
    font-size: 14px;
    margin-bottom: 20px;
}
.koumuten-cta .cta-button {
    display: inline-block;
    background: #fff;
    color: #ff6b35;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease;
}
.koumuten-cta .cta-button:hover {
    transform: translateY(-2px);
    color: #ff6b35;
}

/* セクション見出し */
.koumuten-page h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6b35;
}

/* 関連ページへの誘導 */
.koumuten-related {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin-top: 40px;
}
.koumuten-related h3 {
    font-size: 16px;
    margin-bottom: 12px;
}
.koumuten-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.koumuten-related li {
    margin-bottom: 8px;
}
.koumuten-related a {
    color: #0066cc;
    text-decoration: none;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .koumuten-info-box dl {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
    .koumuten-info-box dt {
        margin-top: 8px;
    }
    .koumuten-header h1 {
        font-size: 22px;
    }
}
.koumuten-ranking-list {
    max-width: 880px;
    margin: 0 auto;
}

/* ランキング1件 */
.koumuten-rank-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.koumuten-rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* TOP3のメダルカラー枠 */
.koumuten-rank-item.rank-gold {
    border: 3px solid #FFD700;
    background: linear-gradient(135deg, #fffbe0 0%, #ffffff 30%);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
}
.koumuten-rank-item.rank-silver {
    border: 3px solid #C0C0C0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 30%);
}
.koumuten-rank-item.rank-bronze {
    border: 3px solid #CD7F32;
    background: linear-gradient(135deg, #fff0e0 0%, #ffffff 30%);
}

/* ランクバッジ */
.rank-badge {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.rank-gold .rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
}
.rank-silver .rank-badge {
    background: linear-gradient(135deg, #E5E5E5, #B0B0B0);
    color: #fff;
}
.rank-bronze .rank-badge {
    background: linear-gradient(135deg, #D4915C, #A0522D);
    color: #fff;
}
.rank-badge .rank-number {
    font-size: 28px;
    line-height: 1;
}
.rank-badge .rank-label {
    font-size: 12px;
    margin-top: 2px;
}

/* コンテンツ部分 */
.rank-content {
    flex: 1;
    min-width: 0;
}
.rank-company {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}
.rank-company a {
    color: #222;
    text-decoration: none;
}
.rank-company a:hover {
    color: #ff6b35;
}

/* メタ情報 */
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* 紹介文 */
.rank-intro {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 16px;
}

/* アクションボタン */
.rank-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-detail,
.btn-quote {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.btn-detail {
    background: #fff;
    border: 1px solid #ccc;
    color: #555;
}
.btn-detail:hover {
    background: #f8f8f8;
    color: #555;
}
.btn-quote {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    border: none;
}
.btn-quote:hover {
    transform: translateY(-1px);
    color: #fff;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .koumuten-rank-item {
        flex-direction: column;
        padding: 20px 16px;
    }
    .rank-badge {
        width: 60px;
        height: 60px;
    }
    .rank-badge .rank-number {
        font-size: 24px;
    }
    .rank-company {
        font-size: 18px;
    }
    .rank-actions {
        flex-direction: column;
    }
    .btn-detail,
    .btn-quote {
        text-align: center;
    }
}

/* ===========================================
 * トップページ用スタイル
 * front-page.php / template-ranking.php で使用
 * =========================================== */

.front-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
    padding: 60px 24px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0;
}
.front-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.4;
}
.front-hero .hero-sub {
    font-size: 16px;
    color: #c5d0d8;
    margin-bottom: 24px;
}
.front-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.front-hero .stat-item {
    text-align: center;
}
.front-hero .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b35;
    display: block;
}
.front-hero .stat-label {
    font-size: 12px;
    color: #c5d0d8;
}
.front-hero .hero-cta {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    transition: transform 0.15s ease;
}
.front-hero .hero-cta:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* セクション共通 */
.front-section {
    max-width: 880px;
    margin: 0 auto 60px;
    padding: 0 16px;
}
.front-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff6b35;
    text-align: center;
}
.front-section .section-sub {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

/* エリア別リンクブロック */
.area-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.area-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.area-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #ff6b35;
}
.area-block .area-name {
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}
.area-block .area-count {
    font-size: 13px;
    color: #888;
}

@media (max-width: 600px) {
    .area-blocks {
        grid-template-columns: 1fr;
    }
    .front-hero h1 {
        font-size: 24px;
    }
    .front-hero .hero-stats {
        gap: 16px;
    }
}
/* プログレスバー */
.sim-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 16px;
}
.sim-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    color: #ccc;
    font-weight: 600;
    transition: color 0.3s ease;
}
.sim-step-indicator.active {
    color: #ff6b35;
}
.sim-step-indicator .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}
.sim-step-indicator.active .step-num {
    background: #ff6b35;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}
.sim-step-indicator.current .step-num {
    transform: scale(1.1);
}
.sim-step-indicator .step-label {
    font-size: 12px;
}
.sim-step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
    margin-bottom: 22px;
}

/* ステップ本体 */
.sim-step {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px 28px;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.sim-step h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    text-align: center;
    border: none;
    padding: 0;
}
.sim-step-sub {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-bottom: 24px;
}

/* フィールド */
.sim-field {
    margin-bottom: 24px;
}
.sim-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}
.required {
    color: #e74c3c;
    font-size: 12px;
    margin-left: 4px;
}
.sim-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* テキスト入力 */
.sim-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
    font-family: inherit;
}
.sim-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
textarea.sim-input {
    resize: vertical;
    min-height: 100px;
}

/* ラジオカード型 */
.sim-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.sim-radio-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    transition: all 0.15s ease;
    background: #fff;
}
.sim-radio-card:hover {
    border-color: #ffaa80;
    background: #fff8f3;
}
.sim-radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sim-radio-card.checked {
    border-color: #ff6b35;
    background: #fff5ec;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}
.sim-radio-card .radio-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.sim-radio-card.checked .radio-label {
    color: #ff6b35;
    font-weight: 700;
}

/* チェックボックス */
.sim-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}
.sim-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    transition: all 0.15s ease;
    font-size: 14px;
}
.sim-checkbox:hover {
    border-color: #ffaa80;
}
.sim-checkbox.checked {
    border-color: #ff6b35;
    background: #fff5ec;
}
.sim-checkbox input {
    margin: 0;
    cursor: pointer;
    accent-color: #ff6b35;
}

/* 含む工務店の通知 */
.sim-include-notice {
    background: #fff5ec;
    border: 1px solid #ffaa80;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #c54a14;
    text-align: center;
}
.sim-include-notice strong {
    color: #ff6b35;
    font-size: 15px;
}

/* アクションボタン */
.sim-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}
.sim-actions:has(.sim-btn-secondary) {
    /* 戻るボタンがあるケース */
}
.sim-btn {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    font-family: inherit;
}
.sim-btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    flex: 1;
}
.sim-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}
.sim-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.sim-btn-secondary {
    background: #fff;
    color: #666;
    border: 1px solid #ccc;
}
.sim-btn-secondary:hover {
    background: #f8f8f8;
}

/* エラー表示 */
.sim-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px auto;
    max-width: 700px;
    font-size: 14px;
    text-align: center;
}

/* 完了画面 */
.sim-complete {
    text-align: center;
    padding: 60px 28px;
}
.sim-complete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: #fff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}
.sim-complete h2 {
    color: #2e7d32;
}
.sim-complete p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
}
.sim-complete .sim-btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 40px;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .sim-step {
        padding: 24px 16px;
    }
    .sim-step h2 {
        font-size: 18px;
    }
    .sim-radio-group,
    .sim-checkbox-group {
        grid-template-columns: 1fr 1fr;
    }
    .sim-actions {
        flex-direction: column-reverse;
    }
    .sim-btn {
        width: 100%;
    }
}