/* ==========================================================================
   グローバルスタイル
   ========================================================================== */

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #6b7280;
    --success-color: #059669;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

.logo i {
    font-size: 1.5rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */

.hero {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    color: var(--text-dark);
    padding: 5rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.feature-item {
    color: var(--primary-color);
    font-weight: 500;
}

.feature-item i {
    font-size: 1.25rem;
}

/* ==========================================================================
   ボタン
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   セクション
   ========================================================================== */

.features,
.how-it-works,
.cta {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* 特徴セクション */
.features {
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background-color: #e6f2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* 使い方セクション */
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-gray);
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
}

/* CTAセクション */
.cta {
    background-color: #f0f7ff;
    color: var(--text-dark);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

/* ==========================================================================
   見積もりページ
   ========================================================================== */

.estimate-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 1rem;
}

.progress-text {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.question-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    min-height: 400px;
}

.question-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.question-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option {
    padding: 1.25rem;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option:hover {
    border-color: var(--primary-color);
    background-color: #f9fafb;
}

.option.selected {
    border-color: var(--primary-color);
    background-color: #eff6ff;
    font-weight: 500;
}

.option input[type="radio"],
.option input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.option-label {
    flex: 1;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    user-select: none;
}

.input-field {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* ==========================================================================
   結果ページ
   ========================================================================== */

.result-section {
    padding: 3rem 0;
}

.result-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-header i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.result-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

.result-summary {
    text-align: center;
    margin-bottom: 2rem;
}

.project-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    font-size: 1rem;
}

.project-type .label {
    color: var(--text-gray);
}

.project-type .value {
    font-weight: 700;
    color: var(--primary-color);
}

.price-display {
    text-align: center;
    padding: 3rem;
    background-color: var(--primary-color);
    border-radius: 12px;
    color: white;
    margin-bottom: 2rem;
}

.price-label {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.price-value {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 4.5rem;
}

.price-unit {
    font-size: 2rem;
    margin-left: 0.5rem;
}

.price-range {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.price-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

.result-details,
.result-breakdown {
    margin-bottom: 2rem;
}

.result-details h3,
.result-breakdown h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.answer-list,
.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-item,
.breakdown-item {
    padding: 1.25rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.answer-question,
.breakdown-label {
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.answer-value,
.breakdown-value {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.cta-box {
    text-align: center;
    padding: 3rem;
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 2rem;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-box p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ==========================================================================
   問い合わせフォーム
   ========================================================================== */

.contact-form {
    margin-top: 2rem;
}

.form-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.form-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==========================================================================
   成功メッセージ
   ========================================================================== */

.success-message {
    margin-top: 2rem;
}

.success-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.success-card i {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.success-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.success-card p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ==========================================================================
   フッター
   ========================================================================== */

.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer .container {
    text-align: center;
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .nav {
        display: none;
    }

    .question-container {
        padding: 1.5rem;
    }

    .question-title {
        font-size: 1.5rem;
    }

    .price-value {
        font-size: 3rem;
    }

    .price-amount {
        font-size: 3.5rem;
    }

    .result-card,
    .form-card {
        padding: 1.5rem;
    }

    .navigation-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}
