/* ============================================================
   上尾市リフォームガイド — メインスタイルシート
   設計方針: モバイルファースト / ネイビー系カラーパレット
   ============================================================ */

/* === リセット & 変数 === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy:        #2c3e6e;
    --navy-dark:   #1a2a4a;
    --navy-mid:    #3d5a80;
    --navy-light:  #e8edf5;
    --accent-red:  #c0392b;
    --accent-green:#1e7e3e;
    --success:     #27ae60;
    --warning:     #f39c12;
    --danger:      #e74c3c;
    --bg:          #f4f6f9;
    --bg-white:    #ffffff;
    --border:      #dce3ed;
    --text:        #2d2d2d;
    --text-mid:    #555555;
    --text-muted:  #888888;
    --radius-sm:   4px;
    --radius-md:   8px;
    --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
    --shadow-md:   0 3px 10px rgba(0,0,0,0.10);
    --shadow-lg:   0 6px 20px rgba(44,62,110,0.15);
    --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Hiragino Kaku Gothic ProN", "Hiragino Sans",
                 Meiryo, "Yu Gothic", sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--navy); transition: color var(--transition); }
a:hover { color: var(--navy-dark); }

.sp-only { display: inline; }

/* ============================================================ レイアウト */
.container { max-width: 860px; margin: 0 auto; padding: 12px 16px; }

/* ============================================================ ヘッダー */
header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    padding: 22px 16px 20px;
    text-align: center;
}
header h1 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: break-word;
}
header .subtitle {
    font-size: clamp(0.82rem, 3.4vw, 0.98rem);
    opacity: 0.88;
    line-height: 1.5;
    margin-top: 8px;
    word-break: keep-all;
}

/* ============================================================ ナビ */
nav {
    background: var(--bg-white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 200;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px 6px;
    max-width: 860px;
    margin: 0 auto;
}
nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.72rem, 2.8vw, 0.88rem);
    padding: 9px 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    transition: background var(--transition);
    white-space: nowrap;
}
nav a:hover, nav a:active { background: var(--navy-light); color: var(--navy-dark); }

/* ============================================================ パンくず */
.breadcrumb {
    max-width: 860px;
    margin: 0 auto;
    padding: 8px 14px;
    font-size: clamp(0.72rem, 2.6vw, 0.82rem);
    color: var(--text-muted);
}
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 5px; color: #bbb; }
.breadcrumb strong { color: var(--text-mid); }

/* ============================================================ コンテンツセクション */
.content-section {
    background: var(--bg-white);
    padding: 18px 16px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.content-section h2 {
    color: var(--navy);
    font-size: clamp(1.05rem, 4.2vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--navy-light);
    line-height: 1.4;
    word-break: keep-all;
}
.content-section h3 {
    color: var(--text);
    font-size: clamp(0.93rem, 3.6vw, 1.08rem);
    font-weight: 700;
    margin: 16px 0 9px;
    line-height: 1.4;
    word-break: keep-all;
}
.content-section p {
    font-size: clamp(0.86rem, 3.3vw, 0.94rem);
    margin-bottom: 11px;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: break-word;
    color: var(--text-mid);
}
.content-section p strong { color: var(--text); }

/* ============================================================ チェックリスト */
.checklist { list-style: none; padding-left: 0; margin: 8px 0 12px; }
.checklist li {
    padding: 6px 0 6px 26px;
    position: relative;
    font-size: clamp(0.83rem, 3.1vw, 0.92rem);
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
    border-bottom: 1px solid var(--bg);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--success); font-weight: 700; }
.checklist.warning-list li::before { content: "⚠"; color: var(--warning); font-size: 0.88rem; }

/* ============================================================ 緊急ボックス */
.urgency-box {
    background: #fffbf0;
    padding: 13px 15px;
    border-radius: var(--radius-md);
    margin: 0 0 12px;
    border: 1px solid #f0d080;
    border-left: 4px solid var(--warning);
}
.urgency-box h3 { color: #7a5800; font-size: clamp(0.87rem, 3.4vw, 0.98rem); font-weight: 700; margin: 0 0 7px; line-height: 1.35; }
.urgency-box ul { padding-left: 16px; margin: 5px 0 7px; }
.urgency-box ul li { color: #7a5800; font-size: clamp(0.77rem, 2.9vw, 0.86rem); line-height: 1.45; margin-bottom: 4px; }
.urgency-box p, .urgency-note { color: #7a5800; font-size: clamp(0.77rem, 2.9vw, 0.86rem); line-height: 1.45; margin: 4px 0 0; }

/* ============================================================ アラートボックス */
.alert-box {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin: 10px 0;
    font-size: clamp(0.81rem, 3.0vw, 0.91rem);
    line-height: 1.6;
    word-break: keep-all;
    background: #fff8e1;
    border-left: 4px solid var(--warning);
    color: #7a5800;
}
.alert-box.danger { background: #fff8e1; border-left-color: var(--warning); color: #7a5800; }
.alert-box strong { color: inherit; }

/* ============================================================ 訪問営業警告 */
.scam-warning-box {
    background: #fdf0f0;
    padding: 15px;
    border-radius: var(--radius-md);
    margin: 10px 0;
    border: 1px solid #f0b8b8;
    border-left: 4px solid var(--danger);
}
.scam-warning-box h2, .scam-warning-box h3 { color: #7b1e1e; font-size: clamp(0.9rem, 3.5vw, 1.03rem); font-weight: 700; margin: 0 0 9px; }
.scam-warning-box ul { padding-left: 16px; margin: 5px 0 9px; }
.scam-warning-box ul li { color: #7b1e1e; font-size: clamp(0.79rem, 3vw, 0.89rem); line-height: 1.5; margin-bottom: 4px; }
.scam-warning-box p { color: #7b1e1e; font-size: clamp(0.8rem, 3vw, 0.9rem); line-height: 1.5; margin: 5px 0 0; }

/* ============================================================ 価格ハイライト */
.highlight-price { font-size: clamp(0.98rem, 3.8vw, 1.08rem); font-weight: 700; color: var(--navy); }

/* ============================================================ テーブル */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: clamp(0.75rem, 2.8vw, 0.86rem);
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.price-table thead { background: var(--navy); color: #fff; }
.price-table th, .price-table td {
    padding: 9px 10px;
    text-align: left;
    border: 1px solid #d0d8e8;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.5;
    vertical-align: top;
}
.price-table tbody tr:nth-child(even) { background: #f8f9fc; }

/* ============================================================ FV CTA */
.fv-cta {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 15px 16px;
    margin: 0 0 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.fv-cta__header { margin-bottom: 12px; }
.fv-cta__label {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: clamp(0.68rem, 2.5vw, 0.78rem);
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 20px;
    margin-bottom: 9px;
}
.fv-cta__header h2 {
    color: var(--navy-dark);
    font-size: clamp(1.08rem, 4.3vw, 1.38rem);
    font-weight: 700;
    line-height: 1.4;
    border: none; margin: 0; padding: 0;
    word-break: keep-all;
}
.fv-cta__price-example {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 9px;
}
.fv-price-item {
    display: flex; flex-direction: column; align-items: center;
    border-radius: var(--radius-md); padding: 9px 10px; flex: 1; max-width: 140px;
}
.fv-price-item--bad  { background: #fdecea; border: 1px solid #e8b4b0; }
.fv-price-item--good { background: #e8f5ee; border: 1px solid #9ecfad; }
.fv-price-item__tag { font-size: clamp(0.6rem, 2.1vw, 0.68rem); font-weight: 600; color: var(--text-mid); margin-bottom: 3px; line-height: 1.3; word-break: keep-all; }
.fv-price-item--bad  .fv-price-item__amount { color: var(--accent-red); }
.fv-price-item--good .fv-price-item__amount { color: var(--accent-green); }
.fv-price-item__amount { font-size: clamp(1.45rem, 5.8vw, 1.85rem); font-weight: 800; line-height: 1; }
.fv-price-item__amount small { font-size: clamp(0.74rem, 2.7vw, 0.86rem); font-weight: 700; }
.fv-price-arrow { font-size: 1.3rem; color: #bbb; flex-shrink: 0; }
.fv-cta__note-text { font-size: clamp(0.75rem, 2.8vw, 0.84rem); color: var(--text-mid); line-height: 1.55; margin: 3px 0 12px; word-break: keep-all; }
.fv-cta__steps { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 0 14px; }
.fv-step { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; max-width: 88px; }
.fv-step__num {
    width: 24px; height: 24px;
    background: var(--navy); color: #fff;
    border-radius: 50%; font-size: 0.8rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fv-step__text { font-size: clamp(0.6rem, 2.2vw, 0.7rem); color: var(--text-mid); line-height: 1.35; word-break: keep-all; text-align: center; }
.fv-step__arrow { font-size: 1rem; color: #bbb; flex-shrink: 0; margin-bottom: 8px; }
.fv-cta__button {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy); color: #fff;
    padding: 13px 18px; border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 700;
    font-size: clamp(0.88rem, 3.5vw, 1rem);
    margin: 0 0 7px;
    transition: background var(--transition), transform var(--transition);
    box-shadow: 0 3px 10px rgba(44,62,110,0.22);
    width: 100%; max-width: 340px; min-height: 48px;
    word-break: keep-all; text-align: center; line-height: 1.35;
}
.fv-cta__button:hover, .fv-cta__button:active { background: var(--navy-dark); transform: translateY(1px); color: #fff; }
.fv-note { font-size: clamp(0.68rem, 2.3vw, 0.76rem); color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ============================================================ CTAセクション（下部） */
.cta-section {
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-dark) 100%);
    color: #fff;
    padding: 18px 15px 16px;
    text-align: center;
    margin: 14px 0;
    border-radius: var(--radius-md);
}
.cta-section h2 { color: #fff; border: none; margin: 0 0 5px; padding: 0 5px; font-size: clamp(0.93rem, 3.8vw, 1.18rem); line-height: 1.35; word-break: keep-all; }
.cta-section p { font-size: clamp(0.78rem, 3vw, 0.9rem); line-height: 1.45; padding: 0 5px; margin: 3px 0; color: rgba(255,255,255,0.88); word-break: keep-all; }
.cta-button {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--navy);
    padding: 14px 18px; border-radius: 50px;
    text-decoration: none; font-weight: 700;
    font-size: clamp(0.9rem, 3.7vw, 1.03rem);
    margin: 11px auto 7px;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    min-height: 50px; max-width: 92%;
    word-break: keep-all; text-align: center; line-height: 1.35;
}
.cta-button:hover, .cta-button:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(0,0,0,0.14); color: var(--navy); }
.steps-row { display: flex; gap: 5px; margin: 9px 0 7px; text-align: center; }
.step-item {
    flex: 1; min-width: 0;
    background: rgba(255,255,255,0.12); border-radius: var(--radius-sm);
    padding: 7px 3px;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.step-item .step-icon { font-size: 1.25rem; line-height: 1; }
.step-item .step-label { font-size: clamp(0.63rem, 2.3vw, 0.73rem); font-weight: 700; line-height: 1.3; word-break: keep-all; width: 100%; color: #fff; }
.step-item .step-desc  { font-size: clamp(0.56rem, 1.8vw, 0.64rem); opacity: 0.78; line-height: 1.25; word-break: keep-all; width: 100%; color: #fff; }
.micro-copy {
    background: rgba(255,255,255,0.1); padding: 6px 10px; border-radius: var(--radius-sm);
    margin-top: 7px; font-size: clamp(0.7rem, 2.5vw, 0.8rem); line-height: 1.4;
    word-break: keep-all; text-align: center; color: rgba(255,255,255,0.9);
}

/* ============================================================ バナー型内部リンク */
.internal-banner {
    display: block;
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-dark) 100%);
    color: #fff; padding: 15px 17px; border-radius: var(--radius-md);
    text-decoration: none; margin: 12px 0; text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}
.internal-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.internal-banner h3 { color: #fff; margin: 0 0 4px; font-size: clamp(0.9rem, 3.5vw, 1.02rem); line-height: 1.35; font-weight: 700; }
.internal-banner p { margin: 0; opacity: 0.86; font-size: clamp(0.76rem, 2.8vw, 0.84rem); line-height: 1.35; color: #fff; }

/* ============================================================ 関連記事 */
.related-articles { background: var(--bg); padding: 14px; border-radius: var(--radius-md); margin: 12px 0; border: 1px solid var(--border); }
.related-articles h3 { font-size: clamp(0.9rem, 3.5vw, 1.02rem); font-weight: 700; margin-bottom: 9px; color: var(--text); }
.related-articles ul { list-style: none; padding: 0; }
.related-articles li { border-bottom: 1px solid var(--border); }
.related-articles li:last-child { border-bottom: none; }
.related-articles a {
    color: var(--navy); text-decoration: none;
    font-size: clamp(0.82rem, 3.1vw, 0.91rem); line-height: 1.5;
    display: block; padding: 8px 0;
    transition: color var(--transition), padding-left var(--transition);
}
.related-articles a:hover { color: var(--navy-dark); padding-left: 4px; }

/* ============================================================ エリアグリッド */
.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.area-grid--full { grid-template-columns: repeat(2, 1fr); }
.area-card {
    display: flex; flex-direction: column;
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 11px 10px;
    text-decoration: none; color: var(--text);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    min-height: 56px;
}
.area-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--navy); color: var(--text); }
.area-card strong { color: var(--navy); font-size: clamp(0.84rem, 3.2vw, 0.93rem); font-weight: 700; margin-bottom: 2px; line-height: 1.3; display: block; }
.area-card span   { font-size: clamp(0.66rem, 2.3vw, 0.74rem); color: var(--text-muted); line-height: 1.35; display: block; }

/* ============================================================ 柱記事グリッド */
/* pillar-grid: スマホ1列 → タブレット以上2列 */
.pillar-grid { display: grid; grid-template-columns: 1fr; gap: 9px; margin: 10px 0; }
.pillar-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 13px 14px;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.pillar-card:hover { box-shadow: var(--shadow-md); }
.pillar-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.pillar-card-body { flex: 1; min-width: 0; }
.pillar-card h3 { font-size: clamp(0.86rem, 3.3vw, 0.96rem); font-weight: 700; margin: 0 0 5px; line-height: 1.4; word-break: keep-all; }
.pillar-card h3 a { color: var(--navy); text-decoration: none; display: block; }
.pillar-card h3 a:hover { text-decoration: underline; }
.pillar-card p { font-size: clamp(0.76rem, 2.8vw, 0.84rem); color: var(--text-mid); line-height: 1.5; margin: 0; }

@media (min-width: 520px) {
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .pillar-card { flex-direction: column; gap: 0; align-items: stretch; }
    .pillar-card-icon { margin-bottom: 6px; }
}

/* ============================================================ お役立ちガイドグリッド */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.tips-card {
    display: flex; flex-direction: column;
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 11px 10px;
    text-decoration: none; color: var(--text);
    transition: box-shadow var(--transition), border-color var(--transition);
    min-height: 62px;
}
.tips-card:hover { box-shadow: var(--shadow-md); border-color: var(--navy); color: var(--text); }
.tips-card strong { color: var(--navy); font-size: clamp(0.8rem, 3vw, 0.88rem); font-weight: 700; margin-bottom: 4px; line-height: 1.35; display: block; }
.tips-card span   { font-size: clamp(0.66rem, 2.3vw, 0.74rem); color: var(--text-muted); line-height: 1.4; display: block; }

/* ============================================================ お悩みリスト */
.trouble-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.trouble-item { border-radius: var(--radius-md); padding: 11px 13px; line-height: 1.55; border: 1px solid transparent; }
.trouble-item--yellow { background: #fffbf0; border-color: #f0d080; border-left: 4px solid var(--warning); }
.trouble-item--red    { background: #fdf3f3; border-color: #f0b8b8; border-left: 4px solid var(--danger); }
.trouble-item strong  { display: block; font-size: clamp(0.82rem, 3.1vw, 0.91rem); margin-bottom: 4px; color: var(--text); line-height: 1.4; }
.trouble-item a { color: var(--navy); font-size: clamp(0.77rem, 2.8vw, 0.85rem); text-decoration: none; font-weight: 600; }
.trouble-item a:hover { text-decoration: underline; }

/* ============================================================ 追従CTA（スマホ） */
.fixed-cta-mobile {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -3px 12px rgba(0,0,0,0.18);
    z-index: 9999; text-align: center;
}
.fixed-cta-mobile a {
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--navy);
    padding: 12px 20px; border-radius: 50px;
    text-decoration: none; font-weight: 700;
    font-size: clamp(0.9rem, 3.7vw, 1rem);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    min-height: 46px;
}

/* ============================================================ フッター */
footer {
    background: #1e2832; color: #888;
    padding: 26px 16px; text-align: center; margin-top: 28px;
    font-size: clamp(0.75rem, 2.8vw, 0.84rem); line-height: 1.8;
}
footer a { color: #888; text-decoration: none; }
footer a:hover { color: #bbb; }

/* ============================================================ レスポンシブ */
@media (min-width: 480px) {
    .area-grid--full { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 600px) {
    .container { padding: 14px 18px; }
}

@media (min-width: 768px) {
    header { padding: 28px 20px 26px; }
    .content-section { padding: 26px 22px; }
    .fv-cta { padding: 26px 26px 22px; }
    .cta-section { padding: 26px 28px 22px; }
    .cta-button { max-width: 400px; padding: 17px 36px; }
    .fv-cta__button { max-width: 360px; }
    nav a { padding: 10px 13px; }
    .price-table { display: table; }
    .area-grid--full { grid-template-columns: repeat(4, 1fr); }
    .sp-only { display: none; }
}

@media (max-width: 767px) {
    .fixed-cta-mobile { display: block; }
    body { padding-bottom: 76px; }
    .sp-only { display: inline; }
}

/* ============================================================
   追加クラス — インラインスタイル置き換え分
   ============================================================ */

/* 施工例カード（青） */
.case-card {
    background: #e8f0fa;
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 12px 0;
    border-left: 4px solid var(--navy);
}
.case-card h4 {
    color: var(--navy-dark);
    font-size: clamp(0.86rem, 3.3vw, 0.96rem);
    font-weight: 700;
    margin: 0 0 9px;
}
.case-card ul { padding-left: 16px; margin: 0; }
.case-card ul li {
    font-size: clamp(0.79rem, 3vw, 0.88rem);
    margin-bottom: 5px;
    line-height: 1.55;
    color: var(--text-mid);
}
.case-card p {
    font-size: clamp(0.79rem, 3vw, 0.88rem);
    line-height: 1.6;
    margin: 5px 0 0;
    color: var(--text-mid);
}

/* 施工例カード（黄・失敗例） */
.case-card--warning {
    background: #fffbf0;
    border-left-color: var(--warning);
}
.case-card--warning h4 { color: #7a5800; }
.case-card--warning li,
.case-card--warning p { color: #7a5800; }

/* 結論ボックス（緑） */
.conclusion-box {
    display: block;
    background: #e8f5ee;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin: 12px 0;
    border: 1px solid #9ecfad;
    border-left: 4px solid var(--success);
    font-size: clamp(0.82rem, 3.1vw, 0.91rem);
    line-height: 1.6;
    color: #155724;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.conclusion-box strong { color: #155724; }

/* 価格ボックス */
.price-box {
    background: var(--bg);
    padding: 15px;
    border-radius: var(--radius-md);
    margin: 12px 0;
    border-left: 4px solid var(--navy);
    font-size: clamp(0.82rem, 3.1vw, 0.91rem);
    line-height: 1.6;
}
.price-box p { font-size: inherit; margin-bottom: 6px; color: var(--text-mid); }
.price-box p:first-child { font-weight: 700; color: var(--text); margin-bottom: 8px; }
.price-box ul { padding-left: 16px; margin: 0; }
.price-box ul li { font-size: inherit; margin-bottom: 4px; color: var(--text-mid); }

/* 節約額強調 */
.save-amount {
    color: var(--danger);
    font-weight: 700;
}

/* テーブルハイライト行 */
.highlight-row td {
    background: #e8f0fa !important;
    font-weight: 600;
    color: var(--navy-dark);
}

/* フッターリンク */
.footer-link {
    color: #888;
    text-decoration: none;
    margin: 0 8px;
    transition: color var(--transition);
}
.footer-link:hover { color: #bbb; }

/* コンタクトフォーム */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: clamp(0.84rem, 3.2vw, 0.93rem);
    margin-bottom: 5px;
    color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: clamp(0.88rem, 3.4vw, 0.96rem);
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--bg-white);
    color: var(--text);
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(44,62,110,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.form-note {
    font-size: clamp(0.72rem, 2.6vw, 0.8rem);
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.required {
    color: var(--danger);
    font-size: 0.85em;
    margin-left: 3px;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-size: clamp(0.92rem, 3.6vw, 1.02rem);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    min-height: 48px;
    width: 100%;
    font-family: inherit;
}
.submit-button:hover,
.submit-button:active {
    background: var(--navy-dark);
    transform: translateY(1px);
}

/* ============================================================
   CTA強調 — お断り代行
   ============================================================ */
.step-desc--highlight {
    color: #fff !important;
    background: rgba(39,174,96,0.25);
    border-radius: var(--radius-sm);
    padding: 2px 5px;
    font-weight: 700 !important;
    border: 1px solid rgba(39,174,96,0.5);
    font-size: clamp(0.6rem, 2.1vw, 0.7rem) !important;
    white-space: nowrap;
}

.highlight-assurance {
    color: #7dffb0;
    font-weight: 700;
    white-space: nowrap;
}

/* ============================================================
   モバイルファースト強化 v2 — 2026/02
   ============================================================ */

/* エリアカード：価格表示 */
.area-card-price {
    font-size: clamp(0.64rem, 2.2vw, 0.72rem);
    color: var(--navy);
    font-weight: 700;
    margin-top: 3px;
    display: block;
}

/* 追従CTA — アイコン付き強化 */
.fixed-cta-mobile a {
    gap: 8px;
}
.fixed-cta-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* === タッチターゲット最低44px保証 === */
.area-card { min-height: 64px; }
.related-articles a { min-height: 44px; padding: 10px 0; }
nav a { min-height: 44px; }

/* === フォーカス可視性 (アクセシビリティ) === */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
    border-radius: 3px;
}

/* === 内部バナーリンク — ホバー時の矢印 === */
.internal-banner::after {
    content: " →";
    opacity: 0.7;
    font-size: 0.9em;
}

/* === エリアカード — アクティブ状態 (モバイルタップ) === */
.area-card:active {
    transform: scale(0.98);
    transition: transform 0.08s ease;
}
.cta-button:active,
.fv-cta__button:active {
    transform: translateY(2px);
}

/* === セクション見出しに左ボーダーアクセント === */
.content-section h2 {
    border-left: 4px solid var(--navy);
    padding-left: 10px;
    border-bottom: none;
    margin-bottom: 14px;
}

/* === 価格ボックス強化 === */
.price-box {
    background: linear-gradient(to bottom right, #f8faff, #eef2fa);
    border: 1px solid #c5d0e8;
}

/* === 施工事例カード — 強化 === */
.case-card {
    border-radius: var(--radius-md);
    border: 1px solid #c0d0e8;
}

/* === モバイル: nav スクロール対応 === */
@media (max-width: 400px) {
    nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        gap: 0;
        scrollbar-width: none;
    }
    nav ul::-webkit-scrollbar { display: none; }
    nav a {
        white-space: nowrap;
        padding: 9px 10px;
        font-size: 0.75rem;
    }
}

/* === モバイル: エリアグリッドのタップ領域拡大 === */
@media (max-width: 767px) {
    .area-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }
    .area-card {
        padding: 10px 9px;
    }
    .content-section {
        padding: 16px 14px;
    }
    .price-table th,
    .price-table td {
        padding: 8px 7px;
        font-size: 0.78rem;
    }
    /* CTA セクション padding調整 */
    .cta-section {
        padding: 16px 13px 14px;
        border-radius: 0; /* フルブリード感 */
        margin-left: -14px;
        margin-right: -14px;
    }
    /* 関連記事を少し締める */
    .related-articles {
        padding: 12px;
    }
}

/* === デスクトップ: 3カラムグリッド === */
@media (min-width: 600px) {
    .area-grid--full {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 768px) {
    .area-grid--full {
        grid-template-columns: repeat(4, 1fr);
    }
    .cta-section {
        border-radius: var(--radius-md);
        margin-left: 0;
        margin-right: 0;
    }
    .content-section h2 {
        font-size: 1.22rem;
    }
}

/* === スムーズアニメーション（reduce-motion尊重） === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* === 印刷時の最適化 === */
@media print {
    .fixed-cta-mobile,
    .cta-section,
    .fv-cta,
    nav { display: none; }
    body { padding-bottom: 0; }
    .content-section { box-shadow: none; border: 1px solid #ccc; }
}

/* 断り代行チェックマーク */
.step-check {
    display: inline-block;
    color: #27ae60;
    font-weight: 700;
    font-size: 0.85em;
    margin-right: 2px;
    vertical-align: middle;
}
