/* ===== 屋根雨漏り.jp 共通スタイル ===== */

/* リセット＆ベース */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラー */
    --primary-blue: #1565C0;
    --light-blue: #E3F2FD;
    --dark-blue: #0D47A1;
    --cta-orange: #FF6F00;
    --cta-orange-hover: #E65100;
    --text-dark: #212121;
    --text-gray: #616161;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --success-green: #2E7D32;
    
    /* フォント */
    --font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'メイリオ', Meiryo, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== ヘッダー ===== */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--cta-orange);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.header-phone:hover {
    background: var(--cta-orange-hover);
    transform: scale(1.05);
}

.phone-icon {
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

/* ===== ヒーローセクション ===== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 71, 161, 0.7), rgba(21, 101, 192, 0.85));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    font-weight: bold;
}

/* ===== CTAボタン ===== */
.cta-button {
    display: inline-block;
    background: var(--cta-orange);
    color: var(--white);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 111, 0, 0.4);
}

.cta-button:hover {
    background: var(--cta-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 111, 0, 0.5);
}

.cta-button-large {
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
}

/* ===== セクション共通 ===== */
.section {
    padding: 4rem 0;
}

.section-gray {
    background-color: var(--bg-light);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--cta-orange);
    border-radius: 2px;
}

/* ===== 地域選択カード（トップページ用） ===== */
.area-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.area-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}

.area-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.area-card-content {
    padding: 2rem;
}

.area-card-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.area-card-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.area-card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.area-card-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.area-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

/* ===== 強み・特徴カード ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== 料金表 ===== */
.price-table {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.price-row {
    display: grid;
    grid-template-columns: 2fr 1fr 3fr;
    border-bottom: 1px solid #E0E0E0;
    padding: 1.5rem;
    align-items: center;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row:nth-child(even) {
    background: var(--light-blue);
}

.price-service {
    font-weight: bold;
    color: var(--primary-blue);
}

.price-amount {
    font-size: 1.3rem;
    color: var(--cta-orange);
    font-weight: bold;
}

.price-description {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--light-blue);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== お問い合わせフォーム ===== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

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

.form-submit {
    width: 100%;
}

/* ===== フッター ===== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-info {
    margin-bottom: 2rem;
    line-height: 2;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--cta-orange);
}

.footer-copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .area-cards {
        grid-template-columns: 1fr;
    }
    
    .price-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .price-amount {
        text-align: left;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .cta-button-large {
        padding: 1.2rem 2rem;
        font-size: 1.2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .header-phone {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }
}
