/* ===== services.css - サービスページ専用スタイル ===== */

/* ===================================================
   サービスセクション
   ================================================ */
.service-section {
    margin-bottom: 80px;
}

.section-header {
    text-align: left;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    color: #334636;
    margin: 60px 0 25px 0;
    font-weight: 600;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    text-align: center;
    position: relative;
}

.section-subtitle::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: #4a7c59;
}

/* ===================================================
   サービスグリッド
   ================================================ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.maintenance-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
}

.maintenance-grid .service-item:nth-child(2) {
    border-right: none;
}

.maintenance-grid .service-item:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.maintenance-grid .service-item:nth-child(4) {
    border-right: none;
    display: none;
}

/* ===================================================
   サービスアイテム
   ================================================ */
.service-item {
    display: flex;
    background: transparent;
    border-right: 2px dotted #ccc;
    border-bottom: 2px dotted #ccc;
    padding: 30px 20px;
    margin-bottom: 0;
}

.service-item:nth-child(2n) {
    border-right: none;
}

.service-grid .service-item:nth-child(n+3) {
    border-bottom: none;
}

.service-image {
    flex: 0 0 150px;
    height: 180px;
    overflow: hidden;
    margin-right: 20px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.service-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-title {
    font-size: 20px;
    color: #9B7B4F;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.service-description {
    margin: 0;
}

/* 大きいサービスアイテム */
.service-single {
    max-width: 800px;
    margin: 0 auto;
}

.service-item-large {
    display: flex;
    background: transparent;
    border-bottom: none;
    padding: 30px;
    margin-bottom: 30px;
}

.service-item-large .service-image {
    flex: 0 0 170px;
    height: 200px;
}

.service-item-large .service-content {
    padding: 0 30px 10px;
}

/* ===================================================
   統計情報
   ================================================ */
.service-stats {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
}

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

.service-stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #49965c;
    display: block;
}

.service-stat-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* ===================================================
   PC版ホバーエフェクト
   ================================================ */
@media (min-width: 769px) {
    .service-item,
    .service-item-large {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
      
    .service-image img {
        transition: transform 0.4s ease;
    }
    
}

/* ===================================================
   レスポンシブ対応
   ================================================ */
@media (max-width: 768px) {
    .service-section {
        margin-bottom: 40px;
    }

.service-title {
    font-size: 18px;
}

    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .maintenance-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .maintenance-grid .service-item:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }
    
    .maintenance-grid .service-item:nth-child(4) {
        display: none;
    }

    .service-grid .service-item:nth-child(n+3) {
        border-bottom: 2px dotted #ccc;
    }
    
    .service-grid .service-item:last-child {
        border-bottom: none;
        margin-bottom: 30px;
        padding-bottom: 0;
    }

    .section-header {
        margin-bottom: 0;
    }
    
    .service-item {
        flex-direction: column;
        border-right: none;
        border-bottom: 2px dotted #ccc;
        padding: 30px 10px;
        margin-bottom: 0;
    }
    
    .service-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .service-item-large {
        flex-direction: column;
        padding: 30px 15px 0;
    }
    
    .service-item-large .service-content {
        padding: 20px 0 0 0;
    }
    
    .service-item-large .service-image,
    .service-image {
        flex: none;
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .service-content {
        padding: 0;
    }
    
    .section-title {
        font-size: 22px;
        margin: 40px 0 10px 0;
    }
    
    .section-subtitle {
        text-align: left;
        font-size: 14px;
    }

    .section-subtitle::before {
        display: none;
    }
    
    /* タップ時のフィードバック */
    .service-item:active,
    .service-item-large:active {
        opacity: 0.8;
        transition: opacity 0.15s ease;
    }
}

@media (max-width: 480px) {
    .service-section {
        margin-bottom: 0;
    }

    .section-title {
        margin: 30px 0 10px 0;
    }

}

/* ===================================================
   アクセシビリティ対応
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    .service-item,
    .service-item-large,
    .service-image img {
        transition: none !important;
    }
}