/* ==========================================================================
   車売却の達人 - メインスタイルシート (Vanilla CSS)
   ========================================================================== */

/* 1. 変数定義・デザインシステム */
:root {
    --primary: #0f172a;        /* ディープネイビー */
    --primary-light: #1e293b;  /* ライトネイビー */
    --accent: #0d9488;         /* ビブラントティール */
    --accent-hover: #0f766e;   /* ホバー時のダークティール */
    --accent-light: #f0fdfa;   /* 薄いティール */
    --warning: #f59e0b;        /* アンバーゴールド（コンバージョン） */
    --warning-hover: #d97706;  /* 警告ホバー */
    --warning-light: #fef3c7;  /* 警告ライト */
    --bg-base: #f8fafc;        /* ベース背景 */
    --bg-card: #ffffff;        /* カード背景 */
    --text-main: #334155;      /* 本文テキスト */
    --text-dark: #0f172a;      /* 太字・見出しテキスト */
    --text-muted: #64748b;     /* サブテキスト */
    --border: #e2e8f0;         /* 枠線カラー */

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-sans: 'Noto Sans JP', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. リセット・基本スタイル */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

/* 共通コンテナ */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
}

/* ユーティリティ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-muted { color: var(--text-muted); }
.p-bold { font-weight: 700; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.d-none { display: none !important; }
.w-100 { width: 100% !important; }

@media (min-width: 768px) {
    .d-md-block { display: block !important; }
    .d-md-none { display: none !important; }
}

@media (min-width: 992px) {
    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: #fff;
}

.btn-accent {
    background-color: var(--warning);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background-color: var(--warning-hover);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #fff;
}

/* アニメーション */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
    100% { transform: scale(1); }
}

.btn-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* 3. ヘッダー */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header-logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
}

.logo-accent {
    color: var(--accent);
    font-size: 1.6rem;
}

.header-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-left: 1px solid var(--border);
    padding-left: 1rem;
    line-height: 1.2;
}

.header-nav ul {
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.25rem;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width var(--transition-normal);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

/* モバイルメニューボタン */
.mobile-menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 101;
}

.mobile-menu-trigger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: all var(--transition-fast);
}

/* モバイルメニュードロワー */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--bg-card);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: right var(--transition-normal);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-logo {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drawer-logo i {
    color: var(--accent);
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.drawer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-nav a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    padding: 0.5rem 0;
}

.drawer-cta {
    margin-top: auto;
    background-color: var(--bg-base);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.drawer-cta p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.drawer-overlay.open {
    display: block;
    opacity: 1;
}

/* パンくずリスト */
.breadcrumbs {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.breadcrumbs li::after {
    content: '/';
    color: var(--border);
}

.breadcrumbs li:last-child::after {
    display: none;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

/* 4. メインコンテンツ・ポータル */

/* ヒーローセクション */
.hero-section {
    background-color: var(--primary);
    color: #fff;
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 1fr;
    }

    .hero-grid.hero-grid-single {
        grid-template-columns: 1fr;
    }
}

.hero-content h1 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    max-width: 920px;
}

.hero-content h1 span {
    background: linear-gradient(to right, #2dd4bf, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--border);
    margin-bottom: 2rem;
    max-width: 900px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-actions .btn {
    white-space: normal;
    min-height: 46px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-badge {
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(4px);
}

.hero-badge i {
    color: #2dd4bf;
}

/* 申込先診断とホームページ */
.homepage-main {
    overflow: clip;
}

.hero-eyebrow,
.section-kicker {
    color: var(--accent-hover);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
}

.hero-eyebrow {
    color: #5eead4 !important;
    margin-bottom: 0.75rem !important;
}

.hero-outline {
    border-color: #5eead4;
    color: #fff;
}

.hero-outline:hover {
    background-color: #5eead4;
    color: var(--primary);
}

.hero-decision-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
}

.hero-decision-flow li {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-decision-flow li:last-child {
    border-bottom: 0;
}

.hero-decision-flow span {
    grid-row: 1 / 3;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #5eead4;
    color: var(--primary);
    border-radius: 50%;
    font-weight: 900;
}

.hero-decision-flow strong {
    color: #fff;
}

.hero-decision-flow small {
    color: #cbd5e1;
    font-size: 0.82rem;
}

.homepage-section {
    padding: 4.5rem 0;
    scroll-margin-top: 5.5rem;
}

.homepage-section-heading {
    max-width: 780px;
    margin-bottom: 2rem;
}

.homepage-section-heading h2,
.checklist-intro h2,
.policy-summary-grid h2,
.operation-grid h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.homepage-section-heading > p:last-child,
.checklist-intro > p,
.policy-summary-grid p,
.operation-grid p {
    color: var(--text-muted);
}

.compact-heading {
    margin-bottom: 1.5rem;
}

.diagnosis-section,
.condition-section,
.first-articles-section,
.operation-section {
    background-color: #fff;
}

.result-section,
.checklist-section,
.policy-summary-section {
    background-color: var(--bg-base);
}

.service-types-section,
.contract-section {
    background-color: #eef8f6;
}

.diagnosis-form {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.diagnosis-progress-wrap {
    background-color: var(--primary);
    color: #fff;
    padding: 1.25rem;
}

.diagnosis-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.diagnosis-progress-wrap progress {
    display: block;
    width: 100%;
    height: 0.7rem;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background-color: #334155;
}

.diagnosis-progress-wrap progress::-webkit-progress-bar {
    background-color: #334155;
}

.diagnosis-progress-wrap progress::-webkit-progress-value {
    background-color: #2dd4bf;
}

.diagnosis-progress-wrap progress::-moz-progress-bar {
    background-color: #2dd4bf;
}

.diagnosis-question {
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    min-width: 0;
}

.diagnosis-question legend {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.diagnosis-question legend span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background-color: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    flex: 0 0 auto;
}

.diagnosis-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.diagnosis-option {
    display: block;
    min-width: 0;
    position: relative;
    cursor: pointer;
}

.diagnosis-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.diagnosis-option-content {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: #fff;
    color: var(--text-main);
    text-align: center;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
    overflow-wrap: anywhere;
}

.diagnosis-option-content i {
    color: var(--accent);
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.diagnosis-option input:checked + .diagnosis-option-content {
    border-color: var(--accent);
    background-color: var(--accent-light);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.diagnosis-option input:checked + .diagnosis-option-content::after {
    content: '選択済み';
    display: inline-block;
    color: var(--accent-hover);
    font-size: 0.72rem;
    font-weight: 700;
}

.diagnosis-option input:focus-visible + .diagnosis-option-content {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}

.diagnosis-submit-wrap {
    padding: 1.5rem;
    text-align: center;
}

.diagnosis-submit-wrap .btn {
    width: 100%;
    max-width: 420px;
    white-space: normal;
}

.diagnosis-submit-wrap .btn:disabled {
    background-color: #cbd5e1;
    color: #475569;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.diagnosis-submit-wrap p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0.85rem auto 0;
    max-width: 680px;
}

.diagnosis-result-area {
    min-height: 9rem;
    scroll-margin-top: 6rem;
}

.diagnosis-result-area:focus-visible {
    outline: 3px solid var(--warning);
    outline-offset: 4px;
}

.diagnosis-result-placeholder {
    min-height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: 1px dashed #94a3b8;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    background-color: #fff;
    padding: 1.5rem;
    text-align: center;
}

.diagnosis-result-placeholder i {
    color: var(--accent);
    font-size: 1.4rem;
}

.diagnosis-result-card {
    background-color: #fff;
    border: 1px solid var(--border);
    border-top: 5px solid var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.diagnosis-result-card-secondary {
    border-top-color: var(--warning);
}

.diagnosis-result-kicker {
    color: var(--accent-hover);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.diagnosis-result-title {
    font-size: 1.65rem;
    margin-bottom: 0.5rem;
}

.diagnosis-result-summary {
    font-size: 1.02rem;
    margin-bottom: 1.25rem;
}

.diagnosis-detail {
    border-top: 1px solid var(--border);
    padding: 1.1rem 0 0;
    margin-top: 1.1rem;
}

.diagnosis-detail h4,
.diagnosis-related h4 {
    font-size: 1rem;
    margin-bottom: 0.55rem;
}

.diagnosis-detail-list {
    display: grid;
    gap: 0.45rem;
}

.diagnosis-detail-list li {
    position: relative;
    padding-left: 1.25rem;
}

.diagnosis-detail-list li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.68rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background-color: var(--accent);
}

.diagnosis-caution {
    border: 1px solid #f59e0b;
    background-color: #fffbeb;
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.diagnosis-caution .diagnosis-detail-list li::before {
    background-color: #b45309;
}

.diagnosis-official-note {
    background-color: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1.25rem;
    font-weight: 700;
}

.diagnosis-related {
    margin-top: 1.25rem;
}

.diagnosis-related-links,
.inline-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.result-cta-card,
.inline-cta-card {
    display: block;
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.result-cta-card:hover,
.inline-cta-card:hover {
    border-color: var(--accent);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.result-cta-card span,
.inline-cta-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.result-cta-card strong,
.inline-cta-card strong {
    display: block;
    color: var(--accent-hover);
}

@media (min-width: 768px) {
    .hero-decision-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-decision-flow li {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 0;
    }

    .hero-decision-flow li:last-child {
        border-right: 0;
    }

    .diagnosis-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .diagnosis-result-card {
        padding: 2rem;
    }

    .diagnosis-related-links,
    .inline-cta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1050px) {
    .diagnosis-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .diagnosis-options-five {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.heading-with-action {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.heading-with-action .btn {
    white-space: normal;
}

.service-table-scroll {
    background-color: #fff;
    border-radius: var(--radius-sm);
}

.service-type-table {
    min-width: 1080px;
}

.service-type-table th:first-child {
    min-width: 180px;
}

.service-type-table tbody th {
    color: var(--text-dark);
    background-color: #f8fafc;
    text-align: left;
}

.section-note {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-top: 1rem;
}

.condition-grid,
.first-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.condition-card {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.1rem 0.8rem;
    align-items: center;
    color: var(--text-main);
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.condition-card:hover {
    border-color: var(--accent);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
}

.condition-card i {
    grid-row: 1 / 3;
    color: var(--accent);
    font-size: 1.5rem;
    text-align: center;
}

.condition-card strong {
    color: var(--text-dark);
}

.condition-card span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.checklist-layout,
.policy-summary-grid,
.operation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.checklist-intro .btn {
    margin-top: 1.25rem;
    white-space: normal;
}

.practical-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.practical-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
}

.practical-checklist i {
    color: var(--accent);
    margin-top: 0.25rem;
    flex: 0 0 auto;
}

.practical-checklist strong {
    display: block;
    color: var(--text-dark);
}

.contract-check-items i {
    color: #b45309;
}

.guide-card {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.guide-card > i {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-light);
    color: var(--accent-hover);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}

.guide-card p {
    color: var(--accent-hover);
    font-size: 0.76rem;
    font-weight: 800;
}

.guide-card h3 {
    font-size: 1rem;
    margin: 0.2rem 0 0.4rem;
}

.guide-card h3 a {
    color: var(--text-dark);
}

.guide-card span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.policy-summary-grid > div {
    border-left: 4px solid var(--accent);
    padding-left: 1.25rem;
}

.policy-summary-grid > div:last-child {
    border-left-color: var(--warning);
}

.policy-summary-grid a,
.operation-contact a {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 700;
}

.operation-contact {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.operation-contact > i {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
}

.operation-contact h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

@media (min-width: 700px) {
    .condition-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .first-articles-grid,
    .practical-checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .heading-with-action {
        flex-direction: row;
        align-items: end;
        justify-content: space-between;
    }

    .heading-with-action > div {
        max-width: 760px;
    }

    .condition-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .checklist-layout,
    .policy-summary-grid,
    .operation-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
        align-items: start;
    }

    .checklist-layout-reverse .checklist-intro {
        order: 2;
    }

    .first-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .hero-section {
        padding: 2.6rem 0 2.25rem;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-badges {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .hero-badge {
        width: auto;
        border-radius: var(--radius-sm);
        padding: 0.55rem 0.65rem;
        justify-content: center;
        text-align: center;
    }

    .hero-badge:last-child {
        grid-column: 1 / -1;
    }

    .hero-decision-flow {
        display: none;
    }

    .homepage-section {
        padding: 3.25rem 0;
    }

    .homepage-section-heading h2,
    .checklist-intro h2,
    .policy-summary-grid h2,
    .operation-grid h2 {
        font-size: 1.55rem;
    }

    .diagnosis-question,
    .diagnosis-submit-wrap,
    .diagnosis-result-card {
        padding: 1.1rem;
    }

    .diagnosis-option input:checked + .diagnosis-option-content {
        flex-wrap: wrap;
    }

    .operation-contact {
        grid-template-columns: 1fr;
    }
}

/* メイン２カラムレイアウト */
.content-wrapper {
    padding: 4rem 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.main-grid > * {
    min-width: 0;
}

@media (min-width: 992px) {
    .main-grid {
        grid-template-columns: 2.2fr 1fr;
    }
}

/* セクションタイトル */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
    border-left: 5px solid var(--accent);
}

.section-title span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* おすすめ比較ランキング（ポータル） */
.ranking-section {
    margin-bottom: 3.5rem;
}

.ranking-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ranking-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.card-badge.gold { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.card-badge.silver { background: linear-gradient(135deg, #94a3b8 0%, #475569 100%); }
.card-badge.bronze { background: linear-gradient(135deg, #b45309 0%, #78350f 100%); }

.ranking-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .ranking-card-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content h3 span {
    font-size: 0.8rem;
    background-color: var(--accent-light);
    color: var(--accent-hover);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warning);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-hover);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-note i {
    color: var(--accent);
}

.card-rating .stars {
    font-size: 1.1rem;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.card-features li i {
    color: var(--accent);
    margin-top: 0.25rem;
}

.card-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

@media (min-width: 768px) {
    .card-actions {
        border-top: none;
        padding-top: 0;
        border-left: 1px solid var(--border);
        padding-left: 1.5rem;
    }
}

.card-cta-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* 最新・カテゴリ別記事一覧（グリッド） */
.articles-section {
    margin-bottom: 3.5rem;
}

.article-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.article-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.article-card-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-hover) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 2.5rem;
}

.article-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.1);
}

.article-card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.article-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--text-dark);
}

.article-card-title a:hover {
    color: var(--accent);
}

.article-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-more {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-card-more:hover {
    color: var(--accent-hover);
}

/* 査定ステップ解説 */
.steps-section {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 3.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-item {
    text-align: center;
    position: relative;
}

.step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    box-shadow: var(--shadow-md);
    font-family: 'Outfit', sans-serif;
}

.step-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.step-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 5. サイドバーウィジェット */
.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
    max-width: 100%;
}

.sidebar-widget {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: var(--accent);
}

.widget-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* サイドバーランキング */
.sidebar-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-ranking-item {
    display: flex;
    gap: 1rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.sidebar-ranking-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ranking-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}

.ranking-badge.gold { background-color: #f59e0b; }
.ranking-badge.silver { background-color: #94a3b8; }
.ranking-badge.bronze { background-color: #b45309; }

.ranking-body {
    flex-grow: 1;
}

.ranking-name {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.ranking-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* 人気記事リスト */
.popular-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-articles-list li a {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.popular-index {
    width: 20px;
    height: 20px;
    background-color: var(--bg-base);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}

.popular-articles-list li:nth-child(-n+3) .popular-index {
    background-color: var(--accent-light);
    color: var(--accent-hover);
}

.popular-title {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.popular-articles-list li a:hover .popular-title {
    color: var(--accent);
}


/* 6. 記事詳細ページレイアウト */
.article-main {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 768px) {
    .article-main {
        padding: 2.5rem;
    }
}

.article-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.article-category {
    background-color: var(--accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.75rem;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 2.25rem;
    }
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-body {
    min-width: 0;
    max-width: 100%;
}

/* 記事内目次 (TOC) */
.article-toc {
    background-color: var(--bg-base);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
}

.article-toc h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-toc ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-toc li {
    font-size: 0.9rem;
}

.article-toc li.depth-2 { margin-left: 0; font-weight: 700; }
.article-toc li.depth-3 { margin-left: 1.25rem; font-size: 0.85rem; }

.article-toc a {
    color: var(--text-main);
}

.article-toc a:hover {
    color: var(--accent);
}

/* 記事本文コンテンツ */
.article-body h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.25rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-base);
    border-left: 6px solid var(--accent);
    border-radius: 0 4px 4px 0;
    scroll-margin-top: 5.5rem;
}

.article-body section[id] {
    scroll-margin-top: 6rem;
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    scroll-margin-top: 5.5rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-body ul {
    list-style-type: disc;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-disclosure {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background-color: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 1.5rem 0;
}

.article-disclosure i {
    color: var(--accent);
    margin-top: 0.2rem;
}

.article-disclosure p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* コールアウトボックス */
.callout-box {
    background-color: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
}

.callout-box.warning-box {
    background-color: var(--warning-light);
    border-left-color: var(--warning);
}

.callout-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.callout-content {
    font-size: 0.9rem;
}

.checklist-box,
.template-box,
.caution-box,
.flowchart-box {
    background-color: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.checklist-box {
    border-left: 4px solid var(--accent);
}

.caution-box {
    border-left: 4px solid var(--warning);
    background-color: var(--warning-light);
}

.template-box h3 {
    margin-top: 1.25rem;
}

.template-box h3:first-child {
    margin-top: 0;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.case-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.case-card h3 {
    margin-top: 0;
}

.trust-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* メリット・デメリット比較表 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    text-align: left;
}

.comparison-table th {
    background-color: var(--bg-base);
    font-weight: 700;
    color: var(--text-dark);
}

.table-header-accent {
    background-color: var(--accent-light) !important;
    color: var(--accent-hover) !important;
}

.table-scroll,
.responsive-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.table-scroll:focus,
.responsive-table-wrap:focus {
    outline: 3px solid var(--accent-light);
    outline-offset: 2px;
}

.table-scroll-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0.5rem 0 -0.75rem;
}

.table-scroll .comparison-table,
.responsive-table-wrap .comparison-table {
    margin: 0;
    min-width: 680px;
}

.table-scroll .wide-table,
.responsive-table-wrap .wide-table,
.wide-table {
    min-width: 1040px;
}

@media (min-width: 768px) {
    .table-scroll-hint {
        display: none;
    }
}

/* コンバージョンバナー (CTA) */
.article-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.article-cta h2,
.article-cta h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.contextual-cta {
    text-align: left;
}

.contextual-cta .article-cta-content {
    max-width: 760px;
    margin: 0 auto;
}

.contextual-cta .btn {
    white-space: normal;
}

.article-cta p {
    font-size: 0.95rem;
    color: var(--border);
    margin-bottom: 1.5rem;
}

/* 記事投稿フッター・SNSシェア */
.article-footer {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 3rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.share-btn.twitter { background-color: #000000; }
.share-btn.facebook { background-color: #1877f2; }
.share-btn.line { background-color: #06c755; }

.share-x-letter {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

/* 著者・運営者情報カード */
.author-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background-color: var(--bg-base);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

@media (min-width: 768px) {
    .author-card {
        flex-direction: row;
        align-items: center;
    }
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* 7. 固定ページ固有スタイル */

/* 問い合わせフォーム */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent);
}

.no-results-message {
    text-align: center;
    padding: 3rem;
}

.no-results-message i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-success {
    display: none;
    background-color: var(--accent-light);
    border: 1px solid var(--accent);
    color: var(--accent-hover);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 700;
}

/* 8. フッター・その他 */
.site-footer {
    background-color: var(--primary);
    color: var(--border);
    padding: 4rem 0 7rem; /* モバイル固定ナビ用のスペースを底面に追加 */
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
    .site-footer {
        padding-bottom: 4rem; /* デスクトップでは通常の余白 */
    }
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-description {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #94a3b8;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: #fff;
    background-color: var(--accent);
}

.footer-links h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a i {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom .copyright {
    color: #94a3b8;
    font-weight: 500;
}

/* スクロールトップボタン */
.scroll-top-btn {
    position: fixed;
    bottom: 80px; /* モバイル固定バーと被らないよう高さを調整 */
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 99;
}

@media (min-width: 768px) {
    .scroll-top-btn {
        bottom: 30px;
    }
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

/* モバイルボトム固定ナビ */
.mobile-sticky-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
    z-index: 998;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
}

.mobile-sticky-nav .btn {
    width: 100%;
    justify-content: center;
}
