@charset "UTF-8";

/* 車検ページ */

h3{
    background-color: #a62b2b;
    color: #FFF;
    text-align: center;
    font-size: 1.5rem;
    padding: 20px;
    letter-spacing: 0.2em;

}

.feature-heading {
    position: relative;
    padding: .3em 0 .2em 1em;
    border-bottom: 3px solid #2589d0;
    color: #333;
    margin: 30px auto;
    max-width: 65%;

}

.feature-heading::before {
    position: absolute;
    top: 0;
    left: .3em;
    transform: rotate(55deg);
    height: 11px;
    width: 12px;
    background: #2589d0;
    content: '';
}

.feature-heading::after {
    position: absolute;
    transform: rotate(15deg);
    top: .6em;
    left: 0;
    height: 8px;
    width: 8px;
    background: #2589d0;
    content: '';
}

.text{
    text-align: center;
    padding: 40px;
}

.contact-btn{
    padding: 40px;
    text-align: center;
}
.contact-btn p{
    font-size: 1.5rem;
    margin-bottom: 60px;
}
.contact-btn p span {
    font-size: 2.5rem; 
    font-weight: 900; 
    color: #fff; 
    -webkit-text-stroke-width: 2px;  
    -webkit-text-stroke-color: #333;
    padding-left: 10px; 
}
.contact-btn a{
    width: 250px;
    background-color: #1F4F9C;
    color: #FFF;
    padding: 20px;
    margin: 5px;
    border-radius: 15px;
}
.contact-btn a:hover{
    background-color: #FFF;
    color: #1F4F9C;
    outline:solid #1a237e;
}

.triangle {
    display: block;
    width: 50%;
    height: 105px;
    background: linear-gradient(0deg, #517cd3 0%, #b8e1e6 100%);
    clip-path: polygon(0 0, 100% 0%, 50% 100%);
    margin: 30px auto;
}


.inspection-list {
    /* background: #fff; */
    margin: 30px 5%;
    padding: 10px;
    /* border-radius: 10px; */
}
.inspection-box{
    width: 33%;
    border-radius: 10px;
    margin: 10px;
}
.inspection-box:nth-child(1) {
    margin-top: 50px;
}

/* 【追記】2番目：30px下にずらす */
.inspection-box:nth-child(2) {
    margin-top: 150px;
}

/* 【追記】3番目：60px下にずらす */
.inspection-box:nth-child(3) {
    margin-top: 250px;
}

.inspection-bg{
    background-image: url(../img/syaken-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.5);
    background-blend-mode: screen;
}

.inspection-list{
    width: 65%;
    margin: 0 auto;
    padding-top: 50px;
    display: flex;
    justify-content: space-between;
}

.inspection-list dt{
    background-color: #2589d0;
    color: #fff;
    display: flex;
    align-items: center;
    border-radius: 10px 10px 0 0;
    padding: 10px;
}

.inspection-list dd{
    background-color: #ffffff;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    /* margin-bottom: 10px; */
    border: 2px solid #2589d0;

}
.inspection-list img{
    margin: 15px auto;
    display: block;
    width: 350px;
    height: 200px;
    object-fit: cover;
}



.flow-bg{
    padding: 150px 0 50px 0;
    background-image: repeating-linear-gradient(145deg, #ffeb0659, #ffeb0659 10px, transparent 10px, transparent 20px);
    
}


/* ------------------------------------- */
/* 波型セクション区切り (Wave Divider) - 修正版 */
/* ------------------------------------- */

/* 疑似要素を使って波型を生成し、上端に配置 */
.inspection-bg::before {
    content: '';
    position: absolute;
    top: -100px; /* 【修正ポイント】値を -100px に戻します */
    
    /* 【修正1: 画面全体に広げる】 */
    width: 100vw; 
    left: 50%; 
    transform: translateX(-50%); 
    
    height: 100px; 
    
    /* SVGの fill は #2589d0 でOK */
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0 C300,70 400,0 800,0 C1000,0 1200,60 1200,60 L1200,120 L0,120 Z" fill="%232589d0"/></svg>');
    
    background-size: 100% 100px; 
    background-repeat: no-repeat;
    background-position: center bottom; 
}

.inspection-bg::after {
    content: '';
    position: absolute;
    bottom: -70px; 
    
    width: 100vw; 
    left: 50%;
    transform: translateX(-50%);
    
    height: 100px; 
    z-index: 1;
    
    /* 【修正ポイント】背景色とSVGパスを調整 */
    /* background-color: #fff; 波の下の領域の色（ここでは白） */
    
    /* 波型が次のセクションの色（青）に切り込むように、波を青にする */
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0 0C 300 70 400 0 800 0C 1000 0 1200 60 1200 60L1200 120L0 120Z" fill="%232589d0"/></svg>');
    
    background-size: 100% 100px; 
    background-repeat: no-repeat;
    background-position: center top; /* 【修正ポイント】波の開始位置を上に合わせる */
}
/* ------------------------------------- */
/* 既存の .inspection-bg の調整 */
/* ------------------------------------- */

.inspection-bg {
    /* 【重要】波型を配置するために、下側に十分な余白を確保 */
    padding-bottom: 100px; 
    margin-top: 200px;
    position: relative;
    z-index: 1;
    
    
}




.flow {
    max-width: 60%; 
    padding-top: 3px;
    padding-inline: 100px;
    margin: 0px auto 50px auto; 
    background-color: #fff;
}


.flow dl dt {
    font-size: 1.3rem;
    padding-bottom: 5px;
    border-bottom: 1px solid #000;
    position: relative;
    margin-top: 100px;
    
}

.flow dl dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 35px;
    
}

.flow dl dd img{
    width: 300px;
    height: 225px;
    object-fit: cover;
    margin: 20px;
}
.flow dl dd a{
    display: inline-block;
}
.flow-text-group {
    display: flex;
    flex-direction: column; 
    align-items: center;
    
    /* 画像のスペースを確保するため、幅を制限 */
    max-width: 60%; 
}

#openModal{
    margin-top: 30px;
}

.flow span {
    position: absolute;
    left: -80px;
    top: -30px;
    font-weight: bold;
    background: linear-gradient(
    to top,
    #b090ff 1%,     /* 下端から */
    #4ce7df 30%,    
    #3630ef 60%,   
    #08ea08 100%    
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 80px;
    height: 80px;
    font-size: 4rem;
    text-align: center;

}

.flow-btn a{
    display: inline-block;
    font-size: 0.85rem;
    text-align: center;
    width: 160px;
    background-color: #1F4F9C;
    color: #FFF;
    padding: 10px;
    margin: 20px auto;
    border-radius: 15px;
}
.flow-btn a:hover{
    background-color: #FFF;
    color: #1F4F9C;
    outline:solid #1a237e;
}
.container {
    position: relative;
    background: #2c3e50;
    height: 50vh;
}

/* 車検持ち物のボタン */
.modalArea {
    display: none;
    position: fixed;
    z-index: 10; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#openModal {
    /* モーダル内にあったabsolute指定を解除 */
    position: static; 
    transform: none;
    
    /* フロー内のテキストに合わせたボタンデザインに調整 */
    display: inline-block;
    padding: 10px 15px;
    color: #fff;
    border: none;
    border-radius: 15px;
    margin-top: 10px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s;
}

#openModal:hover {
    opacity: 0.8;
}


.modalBg {
    width: 100%;
    height: 100%;
    background-color: rgba(30,30,30,0.9);
}

.modalWrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform:translate(-50%,-50%);
    width: 70%;
    max-width: 500px;
    padding: 10px 30px;
    background-color: #fff;
}

.closeModal {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    cursor: pointer;
}


  /* 以下ボタンスタイル */
.button {
    padding: 10px;
    background-color: #fff;
    border-radius: 2px;
    cursor: pointer;
}
.button, #openModal {
    /* 必ず表示されるように設定 */
    display: inline-block; 
    
    /* 位置の干渉を避けるため、静的な配置に戻す */
    position: static !important; 
    transform: none !important;

    /* スタイルを明確に指定 */
    padding: 15px;
    background-color: #1F4F9C; /* 青色 */
    color: #fff;
    border: none;
    border-radius: 15px;
    margin-top: 10px;
    text-decoration: none; 
    cursor: pointer;
    font-size: 0.85rem; 
    line-height: 1; 
}

.button:hover, #openModal:hover {
    background-color: #fff;
    color: #1a237e;
    outline: 1px solid #1a237e;
}

/* モーダルの初期状態を非表示に */
.modalArea {
    display: none;
    position: fixed;
    z-index: 1001; /* 既存の z-index との兼ね合いで高く設定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
h4{
    border: double 2px #2589d0;
    display: inline-block;
}

.modalContents ul li{
    width: 300px;
    padding: 5px;
    border-bottom: dotted 2px #1a237e;
}

.modalContents ul li img{
    width: 20px;
    height: 20px;
    margin: 10px 5px -3px 5px;
}

/* スマホ向けのレスポンシブ設定 */
@media screen and (max-width: 768px) {

    .contact-btn {
        padding: 40px 10px; 
    }

    .contact-btn p {
        font-size: 1.2rem;
        margin-bottom: 30px; 
    }

    .contact-btn p span {
        font-size: 1.8rem;
        display: block;
        margin-top: 10px;
    }

    .contact-btn a {
        display: block;    
        width: 90%;
        margin: 15px auto; 
        padding: 15px;
        font-size: 1rem;
        box-sizing: border-box;
    }

    .inspection-list {
        width: 90% !important; /* 65%を解除 */
        padding-top: 20px;
        display: block;
    }
    .inspection-box {
        width: 100% !important;
        margin: 0 auto !important;
    }
    .inspection-box:nth-child(1),
    .inspection-box:nth-child(2),
    .inspection-box:nth-child(3) {
        margin-top: 30px !important;
    }
    .inspection-list dt,
    .inspection-list dd{
        width: 100%;
    }
    .inspection-list img {
        width: 100%;
        height: 250px;
    }

    /* @media screen and (max-width: 768px) の中に追加 */

    .flow-bg {
        padding: 80px 0 40px 0; /* 上下の余白をスマホ向けに調整 */
    }

    .flow {
        max-width: 95%;     /* 60%から95%に広げて画面いっぱい使う */
        padding-inline: 20px; /* 左右の余白を適切に */
        padding-top: 50px;
    }

    .flow dl dt {
        font-size: 1.1rem;
        margin-top: 60px;   /* 数字(span)が乗るスペースを確保 */
        padding-left: 10px;
    }

    /* 数字（STEP）の調整 */
    .flow span {
        left: 0;            /* 左端に寄せる */
        top: -50px;         /* タイトルの上に配置 */
        font-size: 2.5rem;    /* 少しサイズダウン */
        width: auto;
        height: auto;
    }

    .flow dl dd {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .flow-text-group {
        max-width: 100%;    /* 幅制限を解除 */
        text-align: left;   /* 文章は左揃えが読みやすい */
        order: 2;           /* 画像の下に配置 */
    }

    .flow dl dd img {
        width: 100%;        /* 画像を横いっぱいに */
        height: auto;
        margin: 10px 0 20px 0; /* 画像の上下余白 */
        order: 1;           /* テキストの上に配置 */
    }

    /* お見積もりボタン（モーダル）を押しやすく */
    #openModal, .button {
        width: 70%;        /* ボタンを横いっぱいに広げる */
        box-sizing: border-box;
        font-size: 1rem;
        padding: 18px;
    }

    /* @media screen and (max-width: 768px) の中に追加 */

    .modalWrapper {
        width: 90% !important;    /* 70%から90%に広げて画面を有効活用 */
        max-width: none;          /* 最大幅の制限を解除 */
        padding: 30px 20px;       /* 上下左右の余白をスッキリさせる */
        box-sizing: border-box;
    }

    .modalContents h4 {
        display: block;           /* タイトルを横いっぱいに */
        text-align: center;       /* 中央寄せで見やすく */
        margin-bottom: 20px;
        font-size: 1.1rem;
    }

    .modalContents ul {
        padding: 0;               /* リストの余計な隙間を消す */
    }

    .modalContents ul li {
        width: 100% !important;   /* 300px固定を解除して、モーダル幅に合わせる */
        font-size: 0.95rem;       /* 文字サイズを程よく調整 */
        padding: 12px 5px;        /* 項目同士の間隔を広げて押しやすく */
        box-sizing: border-box;
        display: flex;            /* アイコンと文字を並べる */
        align-items: center;
    }

    .modalContents ul li img {
        margin: 0 10px 0 0;       /* アイコンの横の隙間を調整 */
    }

    /* 閉じるボタン（×）を大きく押しやすく */
    .closeModal {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
        padding: 5px;             /* タップしやすく領域を確保 */
    }

    .modalWrapper {
        max-height: 80vh;   /* 画面の高さの80%までに制限 */
        overflow-y: auto;   /* はみ出たらスクロールさせる */
    }
    .modalContents ul li img{
        width: 20px;
    }


}