/* サービス詳細ページ共通スタイル */
:root {
    --service-accent: #167cfa;
    --service-text: #2C2C2C;
    --service-bg: #F9F9F9;
    --service-card-bg: #FFFFFF;
}

.service-detail {
    background-color: var(--service-bg);
    overflow-x: hidden;
    width: 100%;
}

/* ヒーローセクション */
.service-hero {
    position: relative;
    height: 50vh;
    background-color: var(--service-bg);
    color: var(--service-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    margin-top: 60px;
    width: 100%;
    overflow: hidden;
}

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

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.service-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
}

.service-hero h1 {
    font-family: 'Playfair Display', 'Noto Serif JP', serif;
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.service-hero p {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #ffffff;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.02em;
    font-feature-settings: "palt";
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* サービスセクションの区切り */
.service-block {
    padding: 100px 0;
    position: relative;
    background: #ffffff;
}

.service-block:nth-child(even) {
    background: #ffffff;
}

.service-block .service-section {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-block .service-section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--service-text);
    letter-spacing: 0.05em;
}

.service-block .service-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--service-accent);
}

.service-block .service-section p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--service-text);
    opacity: 0.9;
}

/* メインコンテンツ */
.service-content {
    padding: 60px 0;
    background: #fff;
}

.service-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;
}

.service-section h2 {
    font-family: 'Playfair Display', 'Noto Serif JP', serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--service-text);
    letter-spacing: 0.02em;
}

.service-section p {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--service-text);
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: 0.02em;
    font-feature-settings: "palt";
}

/* サービス機能カード */
.service-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.feature-card {
    background: var(--service-card-bg);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(201, 169, 110, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--service-accent);
    margin-bottom: 1.5rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--service-text);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.6;
    width: 100%;
}

.feature-card p {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--service-text);
    opacity: 0.9;
    letter-spacing: 0.02em;
    font-feature-settings: "palt";
    margin: 0;
    width: 100%;
}

/* CTAセクション */
.cta-section {
    background: #f8f9fa;
    padding: 100px 20px;
    text-align: center;
    margin-top: 60px;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 124, 250, 0.05), rgba(22, 124, 250, 0.1));
}

.cta-section h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--service-text);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.cta-section p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--service-text);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    letter-spacing: 0.02em;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    background: var(--service-accent);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(22, 124, 250, 0.2);
}

.cta-section .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(22, 124, 250, 0.3);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .service-hero {
        height: auto;
        min-height: 40vh;
        padding: 100px 15px 40px;
        margin-top: 40px;
    }

    .service-hero-content {
        width: 100%;
        padding: 0 10px;
    }

    .service-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        padding: 0;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .service-hero p {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0;
    }

    .service-section {
        padding: 0 15px;
        margin-bottom: 40px;
    }

    .service-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .service-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        margin: 30px auto;
    }

    .feature-card {
        padding: 30px 20px;
        min-height: auto;
    }

    .feature-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
        height: 32px;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .cta-section {
        padding: 40px 15px;
    }

    .cta-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-section .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .service-block {
        padding: 60px 0;
    }

    .service-block .service-section h2 {
        font-size: 1.8rem;
    }
}
