/* サービスページのスタイル */
:root {
    --primary: #62A490;
    --dark: #29594F;
    --secondary: #9DC4B9;
    --light: #E5F1EE;
    --accent: #D4A574;
    --gray: #333333;
}

/* シンプルなページヘッダー */
.simple-page-header {
    position: relative;
    padding: 160px 0 80px;
    background-color: var(--bg, #FFFFFF);
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    border-bottom: 1px solid var(--light);
    z-index: 5;
}

.simple-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255,.6));
    z-index: -1;
}

.page-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.05em;
    transition: transform 0.5s ease;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--primary));
}

/* セクション共通スタイル */
section {
    margin: 80px 0;
    position: relative;
}

.section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
}

.section-title.centered {
    text-align: center;
}

.section-title.centered::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* サービス概要セクション */
.services-overview {
    margin: 30px 0 100px; /* About us・Projectsと統一 */
    padding: 0px 0; /* パディング削除で間隔調整 */
}

.overview-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.overview-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

/* サービス詳細セクション */
.service-detail {
    margin: 0 0 120px;
    padding: 60px 0;
    position: relative;
}

.service-detail:nth-child(odd) {
    background-color: rgba(229, 241, 238, 0.2);
}

.service-detail-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-detail.reverse .service-detail-container {
    flex-direction: row-reverse;
}

.service-detail-image {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.service-detail-image::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--secondary);
    border-radius: 4px;
    z-index: -1;
}

.service-detail.reverse .service-detail-image::before {
    left: auto;
    right: -15px;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.service-detail-image:hover img {
    transform: scale(1.02);
}

.service-detail-content {
    flex: 1;
    padding: 0 20px;
    position: relative;
}

.service-number {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: rgba(98, 164, 144, 0.1);
    position: absolute;
    top: -50px;
    left: 0;
    line-height: 1;
    z-index: -1;
}

.service-detail.reverse .service-number {
    left: auto;
    right: 0;
}

.service-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    line-height: 1.3;
    position: relative;
}

.service-subtitle {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--gray);
    margin-top: 5px;
}

.service-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

.service-features {
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.feature-item i {
    color: var(--primary);
    font-size: 18px;
    margin-right: 15px;
    margin-top: 3px;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray);
}

.service-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.service-button i,
.service-button svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-button:hover {
    background-color: var(--dark);
    transform: translateY(-3px);
}

.service-button:hover i,
.service-button:hover svg {
    transform: translateX(5px);
}

/* プロセスセクション */
.process-section {
    padding: 80px 0;
    background-color: rgba(229, 241, 238, 0.3);
    margin: 100px 0;
}

.process-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-subtitle {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.process-flow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(98, 164, 144, 0.3);
    position: relative;
    z-index: 2;
}

.process-connector {
    width: 2px;
    height: 40px;
    background-color: var(--secondary);
    position: absolute;
    left: 24px;
    z-index: 1;
    opacity: 0.6;
}

.process-step:nth-child(1) .process-connector {
    top: 50px;
}

.process-step:nth-child(3) .process-connector {
    top: 50px;
}

.process-step:nth-child(5) .process-connector {
    top: 50px;
}

.process-step:nth-child(7) .process-connector {
    top: 50px;
}

.process-step:nth-child(9) .process-connector {
    top: 50px;
}

.process-step-content {
    flex: 1;
    padding-top: 8px;
}

.process-step-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.process-step-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
}

/* CTA セクション */
.cta-section {
    margin: 100px 0;
}

.cta-container {
    background-color: var(--primary);
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
    color: white;
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(98, 164, 144, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 L40,20 M20,0 L20,40' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.cta-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: white;
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--light);
    transform: translateY(-3px);
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* ホームに戻るボタン */
.back-to-home-container {
    text-align: center;
    margin: 80px 0 100px;
}

.back-to-home-button {
    display: inline-flex;
    align-items: center;
    color: var(--gray);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.back-to-home-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 100%;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.back-to-home-button:hover {
    color: var(--primary);
}

.back-to-home-button:hover::after {
    width: 100%;
    left: 0;
}

.back-to-home-button i,
.back-to-home-button svg {
    margin-right: 12px;
    transition: all 0.3s ease;
    color: inherit;
    display: inline-block;
}

.back-to-home-button:hover i,
.back-to-home-button:hover svg {
    transform: translateX(-5px);
    color: var(--primary);
}

/* レスポンシブデザイン */
@media screen and (max-width: 992px) {
    .service-detail-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .service-detail.reverse .service-detail-container {
        flex-direction: column;
    }
    
    .service-detail-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .service-detail-content {
        padding: 0;
    }
    
    .service-number {
        top: -30px;
        font-size: 60px;
    }
    
    .service-detail.reverse .service-number {
        left: 0;
        right: auto;
    }
}

@media screen and (max-width: 768px) {
    .simple-page-header {
        padding: 130px 0 60px; /* About us・Projectsと統一 */
    }
    
    .page-title {
        font-size: 38px; /* About us・Projectsと統一 */
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .service-title {
        font-size: 24px;
    }
    
    /* 文字サイズ調整 - index.phpと統一 */
    .overview-text {
        font-size: 13px !important; /* 16px → 13px */
        line-height: 1.4 !important; /* 1.8 → 1.4 */
        letter-spacing: -0.2px !important; /* 文字間隔を詰める */
        word-spacing: -1px !important; /* 単語間隔も詰める */
    }
    
    .service-text {
        font-size: 13px !important; /* 16px → 13px */
        line-height: 1.4 !important; /* 1.8 → 1.4 */
        letter-spacing: -0.2px !important;
        word-spacing: -1px !important;
    }
    
    .service-subtitle {
        font-size: 13px !important; /* 16px → 13px */
        line-height: 1.4 !important;
        letter-spacing: -0.2px !important;
    }
    
    .feature-content p {
        font-size: 13px !important; /* 15px → 13px */
        line-height: 1.4 !important; /* 1.6 → 1.4 */
        letter-spacing: -0.2px !important;
    }
    
    .process-subtitle {
        font-size: 13px !important; /* 16px → 13px */
        line-height: 1.4 !important; /* 1.8 → 1.4 */
        letter-spacing: -0.2px !important;
    }
    
    .process-step-content p {
        font-size: 13px !important; /* 15px → 13px */
        line-height: 1.4 !important; /* 1.7 → 1.4 */
        letter-spacing: -0.2px !important;
    }
    
    .cta-text {
        font-size: 13px !important; /* 16px → 13px */
        line-height: 1.4 !important; /* 1.8 → 1.4 */
        letter-spacing: -0.2px !important;
    }
    
    .service-detail {
        margin-bottom: 80px;
    }
    
    .process-step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .process-step-number {
        margin-bottom: 15px;
    }
    
    .process-connector {
        display: none;
    }
    
    .cta-container {
        padding: 40px 20px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .back-to-home-container {
        margin: 60px 0 80px;
    }
    
    .back-to-home-button {
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    .simple-page-header {
        padding: 120px 0 50px; /* About us・Projectsと統一 */
    }
    
    .page-title {
        font-size: 32px; /* About us・Projectsと統一 */
    }
    
    .back-to-home-container {
        margin: 40px 0 60px;
    }
}
