@charset "UTF-8";


/* 修理・板金・塗装 */

.repair{
    text-align: center;
}

.repair ul{
    width: 65%;
    margin: 30px auto;
    border: double 4px #1a237e;
    text-align: left;

}
.repair li{
    margin: 5px;
    line-height: 1.6;
    padding-left: 0;
    text-indent: 0;
}
.repair li:nth-child(1) {
    margin-left: 40px;
}
.repair li:nth-child(2) {
    margin-left: 120px;
}
.repair li:nth-child(3) {
    margin-left: 240px; 
}


/* --- 修理特徴 --- */

.repair-features {
    padding-block: 80px;
}

.feature-container {
    display: flex;
    gap: 20px; /* カード間のスペース */
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    flex: 1; /* 均等な幅 */
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden; /* 角丸からはみ出さないように */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
    font-weight: 700;
}

/* --- カードヘッダー（青い縦線とタイトル） --- */
.card-header {
    background-color: #fff;
    padding: 20px 15px;
    border-bottom: 2px solid #ddd;
}
.card-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    /* 左側の青い縦線を作成 */
    border-left: 5px solid #1F4F9C; 
    padding-left: 15px;
    line-height: 1.2;
    color: #1F4F9C;
}

/* --- カードボディ（色付き背景部分） --- */
.card-body {
    position: relative;
    padding: 30px 20px 20px 60px; /* 縦書きのスペースを確保 */
    min-height: 350px; 
}

/* 縦書きテキストのスタイル */
.vertical-text {
    position: absolute;
    top: 0;
    left: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(79, 75, 75, 0.8);
    writing-mode: vertical-rl; /* 縦書き（右から左へ） */
    letter-spacing: 0.1em;
    height: 90%;
    transform: rotate(180deg); /* テキストを正立させる */
    user-select: none; /* テキスト選択不可 */
    background-color: #fff86e;
}

/* キャッチコピー（h3） */
.card-body h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #1a237e; /* メインカラーを使用 */
}

/* 詳細テキスト（p.detail-text） */
.detail-text {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 20px;
    color: #333;
}

/* アイコンボックス（右下のアイコン） */
.icon-box {
    position: absolute;
    bottom: 10px;
    left: -65px;
}
.icon-box img {
    width: 60px; /* アイコンサイズ */
    height: auto;
}


/* --- 個別カードの背景と色の設定 --- */

/* 1. 価格 (Price) - 青/水色系 */
.feature-card.price .card-body {
    background-color: #7AA7FA; /* 淡い青 */
    background-image: linear-gradient(to top, #7AA7FA 0%, #B8E1E6 100%); /* グラデーション */
    color: #fff;
}
.feature-card.price .card-body h3 {
    background-color: #0078d4;
    color: #fff;
}


/* 2. 品質 (Quality) - 黄/オレンジ系 */
.feature-card.quality .card-body {
    background-color: #FFF64F; /* 黄色 */
    background-image: linear-gradient(to top, #4fffe5 0%, #7AA7FA 100%); /* グラデーション */
}
.feature-card.quality .card-body h3 {
    background-color: #0078d4;
    color: #fff; 

}


/* 3. 実績 (Achievement) - 緑/青緑系 */
.feature-card.achievement .card-body {
    background-color: #00bcd4; /* シアン系 */
    background-image: linear-gradient(to top, #00bcd4 0%, #80deea 100%); /* グラデーション */
    color: #fff;
}
.feature-card.achievement .card-body h3 {
    background-color: #0078d4;
    color: #fff;
}

.point-comment {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    margin-top: 40px;
}

.point-comment p {
    max-width: 800px;
    line-height: 2.5;
}

.point-comment img {
    max-width: 800px;
    height: auto;
}
.point-img{
    width: 250px;
}

/* レスポンシブ対応 */

@media screen and (max-width: 768px) {
        
    /* 1. 修理リスト（階段状の並びをリセット） */
    .repair ul {
        width: 95%; /* 画面いっぱいに広げる */
        padding: 20px;
        margin: 20px auto;
    }
    .repair li:nth-child(1),
    .repair li:nth-child(2),
    .repair li:nth-child(3) {
        margin-left: 0 !important; /* PC版の段差をすべて解除 */
        margin-bottom: 15px;
        font-size: 0.95rem;
    }

    /* 2. 特徴カード (feature-card) の調整 */
    .feature-container {
        flex-direction: column;
        width: 95%;
        gap: 30px;
    }
    .feature-card {
        min-width: 100%;
    }
    .card-body {
        padding: 30px 20px !important;
        min-height: auto; 
    }
    .vertical-text {
        display: none; }
    
    .icon-box {
        position: relative;
        left: 0;
        bottom: 0;
        text-align: right;
        margin-top: 15px;
    }
    .icon-box img {
        width: 50px;
        margin-left: auto;
    }

    /* 4. 点検セクション (dl) */
    .repair dl {
        width: 95%;
        padding: 15px;
    }
    .repair dt {
        font-size: 1.1rem !important;
    }

    /* 5. 板金・塗装の吹き出しと画像 */
    .point-comment p {
        width: 90%;
        max-width: none;
        padding: 30px 15px 10px 15px;
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0 auto;
    }

    br { display: none; } /* スマホで改行を防止 */

    .painting h3{
        color: #fff;
        font-size: 1rem;
    }
    .point-comment img {
        width: 100% !important;
        height: auto;
    }
    .point-comment .point-img {
        width: 125px !important;
        margin-top: 0 !important;
    }
}
