html {
    scroll-behavior: smooth;
    /* ページ内リンクでスムーズにスクロールする */
}

body {
    margin: 0;
    padding-top: 20px;
    background-color: #fffbe2;
    /* 薄いクリーム色 */
    /* シンプルなストライプ柄の指定 */
    background-image: repeating-linear-gradient(90deg,
            #fffbe2,
            #fffbe2 10px,
            #fdf6d2 10px,
            #fdf6d2 20px);
    font-family: 'M PLUS 1p', sans-serif;
}




.section-title {

    color: white;
    padding: 10px 40px;

    border-radius: 10px;
    font-size: 2em;
    margin-bottom: 20px;
}




.price {
    color: red;
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0;
}

.price .price-value {
    font-size: 3em;
    /* 数字を大きく */
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9em;
}

.details-table th,
.details-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.details-table th {
    background-color: #EFEFEF;
    width: 25%;
}

.purchase-date {
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
}






.banner-container {
    max-width: 1200px;
    margin: 35px auto;
    padding: 20px;
    background-color: #ffde59;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}



/* style.cssに以下のコードを追加してください */

/* 背景画像やテキストをまとめるラッパー */
.content-wrapper {
    position: relative;
    height: 800px;
    /* ここにあったbackground-imageの指定は不要なので削除します */
    border-radius: 20px;
}

/* 背景スライドショーのコンテナ */
.bg-slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 各スライドのスタイル */
.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* 通常は透明にして見えなくする */
    transition: opacity 1.5s ease-in-out;
    /* 1.5秒かけてフワッと切り替える */
    z-index: 1;
    /* コンテンツより後ろに配置 */
    border-radius: 15px;

}

/* activeクラスがついたスライドだけ表示する */
.bg-slide.active {
    opacity: 1;
    border-radius: 15px;
}

.bg-slide::before {
    content: '';
    /* 疑似要素の生成に必須 */
    position: absolute;
    /* 親要素(.bg-slide)を基準に配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* オーバーレイの色と暗さを指定 */
    background-color: rgba(0, 0, 0, 0.4);

    /* スライドの角丸に合わせてオーバーレイも角を丸くする */
    border-radius: 15px;
}


/* バナーのコンテンツ（テキストやイラストなど） */
.banner-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* スライドより手前に表示 */
}


/* ヘッダーの箱のスタイル */
.header {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ffde59;
    padding: 25px 30px;
    /* 画像に合わせて余白を調整 */
    border-bottom-left-radius: 20px;
    /* 文字用のスタイル(color, font-size, font-weight)は不要なので削除 */
}

/* ヘッダー内の画像のスタイル */
.header img {
    width: 35vw;
    max-width: 550px;
    height: auto;
    display: block;
}

.main-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    /* 幅を指定して、長文でも改行しやすくする */
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    line-height: 1.4;
    color: white;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}

.main-title img {
    width: 100%;
    /* 親要素(h1)の幅いっぱいに広がる */
    height: auto;
    /* 高さは自動で調整 */
    display: block;
    /* 画像の下にできる余分な隙間をなくす */
}

.car {
    position: absolute;
    width: 20vw;
    max-width: 180px;
    z-index: 20;
}

.car-orange {
    top: -25px;
    left: 10px;

}

.car-blue {
    top: -20px;
    left: 195px;
}

.car-red {
    bottom: -30px;
    left: 550px;
}

.car-minivan {
    bottom: -30px;
    left: 750px;
}


@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        /* 1.05倍に拡大 */
    }

    100% {
        transform: scale(1);
    }
}

.cta-button {
    position: absolute;
    bottom: -30px;
    right: 10px;
    width: 230px;
    height: 230px;
    background-color: #ff3399;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: 900;
    font-size: 25px;
    line-height: 1.2;
    border: 5px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    z-index: 1000;
    animation: pulse 2s infinite;
    /* 2秒かけてpulseアニメーションを無限に繰り返す */
}

.cta-text span {
    color: #FFF100;
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: #e60073;
    /* ホバー時に少し色を濃くする */
}

.cta-car-icon {
    display: none;
    /* PC版では車のアイコンを非表示 */
}

.cta-svg-icon {
    width: 100px;
    /* お好みの横幅に調整してください */
    height: auto;
    /* 高さは比率を保ったまま自動調整 */
    margin-bottom: 5px;
    /* アイコンとテキストの間の余白 */
}

.cta-arrow {
    margin-top: 8px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid white;
}

/* リンク先のセクションのスタイル */
.secret-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
}


/* ========== どんな車でも買取セクション ========== */
#buycar {
    padding: 50px 20px;
}

#buycar .container {
    max-width: 900px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: #333;
    line-height: 1.4;
    margin-bottom: 40px;
    /* ピンクの縁取り */
    text-shadow:
        3px 3px 0 #E40077,
        -3px 3px 0 #E40077,
        3px -3px 0 #E40077,
        -3px -3px 0 #E40077;
}

.features-wrapper {
    position: relative;
    /* 猫のイラストを配置する基準 */
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    justify-content: center;
}

/* 偶数番目のアイテムのレイアウトを反転（PCの互い違いレイアウト） */
.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-item:nth-child(even) .feature-text {
    margin-left: 0;
    /* 左の重なりをリセット */
    margin-right: -60px;
    /* 右に-60px移動させて重ねる */
}

.feature-image {
    flex-shrink: 0;
    width: 60%;
    /*【追加】ピンクの枠線を追加 */
    border: 8px solid #E40077;
    /*【追加】コンテナ自体に角丸を設定 */
    border-radius: 60px;
    /*【追加】はみ出した画像を角丸に沿って切り取る */
    overflow: hidden;
    /*【追加】影を少しつけて立体感を出す */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feature-image img {
    width: 100%;
    /*【削除】角丸指定を親要素に移したため、こちらは不要になります */
    display: block;
}

.feature-text {
    background-color: #E40077;
    color: white;
    padding: 40px;
    border-radius: 45px;
    width: 40%;
    margin-left: -110px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    top: 40px;
}

.feature-text h3 {
    font-size: 40px;
    font-weight: bold;
    color: #FFF100;
    margin: 0 0 10px 0;
    border-bottom: 2px solid white;
    padding-bottom: 10px;
}

.feature-text p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}


.cat-image {
    position: absolute;
    width: 180px;
    height: auto;
    z-index: 10;
}

.cat-1 {
    top: -20px;
    right: -5px;
}

.cat-2 {
    top: 24%;
    left: -20px;
}

.cat-3 {
    top: 53%;
    right: -30px;
}

.cat-4 {
    top: 76%;
    left: -20px;
}

/* 最終まとめボックス */
.summary-box {
    border: 5px solid #E40077;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    background-color: white;
}

.summary-box h4 {
    font-size: 22px;
    line-height: 1.5;
    margin: 0 auto;
    font-weight: 600;
}

.summary-box .price-emphasis {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.5;
}

.summary-box .price-emphasis span {
    font-size: 70px;
    color: #ff0000;
}

.summary-box .notes {
    font-size: 14px;
    margin-top: 20px;
    color: #555;
}


/* ========== 買取実績セクション ========== */


.achivetitle-image {
    display: block;
    width: 400px;
    /* ← ここをお好みのサイズに変更してください */
    height: auto;
    /* 高さは自動で調整され、画像の比率が崩れません */
    margin: 0 auto;
}


/* === タイトル画像 === */
.achivetitle-image {
    display: block;
    margin: 0 auto 30px auto;
    /* 下に余白を追加 */
    width: 300px;
    height: auto;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #f00;
    margin: 0 0 15px 0;
}

.price-number {
    font-size: 48px;
}

.details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 14px;
}

.details th,
.details td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

.details th {
    background-color: #f2f2f2;
    width: 25%;
}

.purchase-date {
    font-size: 12px;
    background-color: #f00;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
}

/* === CSSで作成したボタン === */



.achivebg.section {
    background-color: #00AEEB;
    padding: 60px 0;
}

/* --- タイトル画像のスタイル --- */
.achivebg .section-title {
    margin-bottom: 20px;
    text-align: center;
    padding: 0;
}

.achivebg .section-title img {
    max-width: 300px;
    width: 80%;
}

/* --- Swiperコンテナのスタイル --- */
.achive-swiper.swiper {
    width: 100%;
    max-width: 1200px;
    /* PCでの最大幅を固定 */
    margin: 0 auto;
    /* 中央寄せ */
    padding-top: 50px;
    padding-bottom: 50px;
    overflow: hidden;
    /* はみ出し防止のため追加 */
}



/* --- スライド内のカードデザイン --- */
.achive-card {
    background: #fff;
    border: 5px solid #000;
    border-radius: 20px;
    overflow: hidden;

    max-width: 480px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* ▼▼▼ この2つのルールを追加 ▼▼▼ */

/* ★★★ カード自体にオーバーレイをかけるように変更 ★★★ */
.achive-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.5s;
    z-index: 5;
    border-radius: 20px;
    /* カードの角丸と合わせる */
}

/* ★★★ アクティブなスライドの中のカードだけオーバーレイを透明にする ★★★ */
.swiper-slide-active .achive-card::after {
    background-color: transparent;
}

/* ▲▲▲ ここまでを追加 ▲▲▲ */


.achive-card__img img {
    width: 100%;
    display: block;
    border-bottom: 5px solid #000;
}

.achive-card__body {
    background: #fff;

    padding: 15px;
    text-align: center;
}

.achive-card__price {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(to top, #F8E600 25%, transparent 25%);
    display: table;
    /* 幅の計算方法を変更して文字幅に合わせる */
    padding-left: 10px;
    /* 左側にはみ出す量 */
    padding-right: 10px;
    /* 右側にはみ出す量 */
    margin: 0 auto;
    /* 要素を中央に配置し直す */
}

.achive-card__price span {
    color: #FF0000;
    font-size: 60px;
    font-family: sans-serif;
    margin: 0 5px;
}

.achive-card__spec {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
    font-size: 14px;

}

.achive-card__spec div {
    background: #fff;
    color: #000;
    padding: 5px;
    border: 1px solid #999999;
    border-radius: 6px;
}

.achive-card__spec dt {
    font-weight: bold;
    font-size: 12px;
}

.achive-card__date {
    font-size: 12px;
    margin: 10px 0 0 0;
}

/* --- ナビゲーション矢印のスタイル --- */
.achive-arrow.swiper-button-prev,
.achive-arrow.swiper-button-next {
    width: 60px;
    height: 60px;
    background-color: #F8E600;
    border-radius: 50%;
    border: 3px solid #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    /* ★★★ 修正ポイント：手前に表示する ★★★ */
}

.achive-arrow.swiper-button-prev::after,
.achive-arrow.swiper-button-next::after {
    font-size: 30px;
    font-weight: bold;
    color: #000;
}



/* タイトル画像 */
.section-title {
    margin-bottom: 20px;
    text-align: center;
}

.section-title img {
    max-width: 300px;
    width: 80%;
}

/* ナビゲーション矢印 */
.achive-arrow {
    width: 60px;
    height: 60px;
    background-color: #F8E600;
    /* 黄色 */
    border-radius: 50%;
    border: 3px solid #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
}

.achive-arrow::after {
    font-size: 30px;
    font-weight: bold;
    color: #000;
}

/* --- ボタン全体を囲むコンテナのスタイル --- */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

/* --- ボタン共通の基本スタイル --- */
.estimate-button {
    display: inline-block;
    padding: 18px 80px;
    border-radius: 15px;
    border: 3px solid #1a1a1a;
    box-shadow: 0 4px 0px #1a1a1a;

    color: white;
    font-size: 35px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;

    letter-spacing: 0.05em;
    line-height: 1.5;
    transition: all 0.1s ease-in-out;
    text-shadow: none;
    width: 500px;
}

/* --- ボタンを押した時のスタイル --- */
.estimate-button:active {
    transform: translateY(4px);
    box-shadow: none;
}



/* --- 色ごとの個別スタイル --- */
.line-button {
    background-color: #00B900;
}

.mail-button {
    background-color: #E63946;
}



.line-button:hover {
    transform: scale(1.05);
    background-color: #009944;
    /* ホバー時に少し色を濃くする */
}

.mail-button:hover {
    transform: scale(1.05);
    background-color: #D80C24;
    /* ホバー時に少し色を濃くする */
}



.br-sp {
    display: none;
}


.titleh2 {
    margin-top: 20px;
    margin-bottom: 60px;
}


.kaitoribg2 {
    background-image: none;
}

.reserve-linebg {
    background-image: none;
}

.pinkbg-ing {
    background-color: #fdcf00;
}






@media (max-width: 1259px) {
    /* --- 画面幅が1259px以下の時のスタイル --- */

    .car-red {
        left: auto;
        right: 450px;
    }

    .car-minivan {
        right: clamp(250px, calc(286px + (250 - 286) * ((100vw - 768px) / (1259 - 768))), 286px);
        left: auto;
    }

    .car-blue {
        top: -20px;
        left: clamp(175px, calc(175px + (195 - 175) * ((100vw - 768px) / (1000 - 768))), 195px);
    }

    .banner-container {
        margin: 35px;
    }

}



@media (max-width: 1000px) {
    .cat-1 {
        top: -20px;
        right: -5px;
    }

    .cat-2 {
        top: 22%;
        left: -20px;
    }

    .cat-3 {
        top: 50%;
        right: -30px;
    }

    .cat-4 {
        top: 73.5%;
        left: -20px;
    }

    .cat-image {
        position: absolute;
        width: 130px;
        height: auto;
        z-index: 10;
    }


    .feature-item {
        margin-bottom: 80px;
        gap: 15px;
    }

}

/* --- レスポンシブ対応 (スマートフォン) --- */
@media (max-width: 768px) {
    .swiper-slide-active .achive-card {
        transform: scale(1);
    }



    .achive-swiper .swiper-wrapper {
        overflow: visible;
    }

    .achive-arrow.swiper-button-prev,
    .achive-arrow.swiper-button-next {
        width: 45px;
        height: 45px;
    }

    .achive-arrow.swiper-button-prev::after,
    .achive-arrow.swiper-button-next::after {
        font-size: 20px;
    }

    .achive-card__price {
        font-size: 25px;
    }

    .achive-card__price span {
        font-size: 50px;
    }

    .achive-card::after {
        border-radius: 20px;
        /* カード本体の角丸と同じ数値を指定 */
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
        padding: 5px;
    }

    .estimate-button {
        width: 90%;
        max-width: 350px;
        font-size: clamp(20px, 1.07vw + 16.8px, 25px);
        padding: 10px 15px;
    }


    .br-sp {
        display: initial;
    }

    .car {
        width: 18vw;
    }


    .car-orange {
        left: clamp(5px, calc(5px + (10 - 5) * ((100vw - 600px) / (768 - 600))), 10px);
    }

    .car-blue {
        left: clamp(120px, calc(120px + (150 - 120) * ((100vw - 600px) / (768 - 600))), 150px);
    }

    .car-red {
        left: 5px;
    }

    .car-minivan {
        left: clamp(65px, calc(65px + (150 - 65) * ((100vw - 330px) / (768 - 330))), 150px);
    }

    body {
        padding-top: 0px;
    }

    .header {
        padding: 15px 20px;
    }

    .achivebg .section-title {
        margin-bottom: 0px !important;
    }

    .titleh2 img {
        width: 85%;
        height: auto;
        justify-content: center;
    }

    .titleh2 {
        text-align: center;
        margin-bottom: 30px;
    }


    .feature-text {

        padding: 25px;
        border-radius: 45px;
        width: 80%;
        top: 128px;
    }


    .feature-item:nth-child(even) {
        flex-direction: initial;
    }

    .feature-item:nth-child(even) .feature-text {
        margin-right: 0px;
        margin-left: -110px;
    }

    .feature-text p {
        font-size: 14px;
        line-height: 1.4;
        margin: 0;
    }

    .feature-item {
        margin-bottom: 120px;
        gap: 0px;
    }


    .cat-1 {
        top: 5%;
        right: -5px;
    }

    .cat-2 {
        top: 20%;
        left: -20px;
    }

    .cat-3 {
        top: 53%;
        right: -30px;
    }

    .cat-4 {
        top: 75%;
        left: -20px;
    }

    .cat-image {
        width: 120px;
    }
}

/* 画面幅が600px以下の場合に適用される */
@media (max-width: 600px) {


    .banner-container {
        padding: 10px;
        margin: 10px;
        margin-bottom: 15px;
    }

    .content-wrapper {
        height: 450px;
        /* 縦長のレイアウトに合わせて高さを変更 */
    }



    .main-title {
        width: 80%;
        /* タイトルをスマホ向けサイズに */
    }

    /* 車のイラストのサイズと位置をスマホ版デザインに合わせる */



    /* CTAボタンをスマホ版デザインに合わせる */
    .cta-button {
        width: 150px;
        height: 150px;
        bottom: -50px;
        right: 5px;
    }



    .cta-text {
        font-size: 14px;
    }

    /* 新しいSVGアイコン用のスタイル */


    .cta-arrow {
        margin-top: 5px;
        border-left-width: 8px;
        border-right-width: 8px;
        border-top-width: 12px;
    }

    .section-heading {
        font-size: 28px;
    }




    .feature-text {
        margin-top: -30px;
        /* 画像に少し重ねる */
        padding-top: 40px;
    }

    .feature-text h3 {
        font-size: 32px;
    }

    .feature-text p {
        font-size: 14px;
    }

    /* 猫のイラストの配置（スマホ版） */
    .cat-1 {
        top: 70px;
        right: 0;
    }

    .cat-2 {
        top: 300px;
        left: -10px;
    }

    .cat-3 {
        top: 550px;
        right: -15px;
    }

    .cat-4 {
        top: 820px;
        left: 0;
    }

    .summary-box {
        padding: 20px;
    }

    .summary-box h4 {
        font-size: 18px;
    }


    .summary-box .price-emphasis {
        font-size: 25px;
    }

    .summary-box .price-emphasis span {
        font-size: 36px;
    }

    .cta-svg-icon {
        width: 70px;
        /* お好みの横幅に調整してください */

    }

    .achivebg .section-title img {
        width: 60%;
    }

    .achivebg.section {
        padding: 40px 0;
    }

    .achive-swiper.swiper {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* 画像を囲むコンテナに高さを指定 */
    .achive-card__img {
        height: 180px;
        /* ← お好みの高さに調整してください */
        overflow: hidden;
        /* はみ出した部分を隠す */
    }

    /* 画像がコンテナに合わせて表示されるよう調整 */
    .achive-card__img img {
        height: 100%;
        object-fit: cover;
        /* 画像の比率を保ったままトリミング */
    }

    .achive-card__body {
        padding: 5px;
    }

    .achive-card__spec dd {
        margin-bottom: 0.2rem;
        margin-left: 0;
    }

    .achive-card__spec {

        margin: 5px 0;
    }

    .car-orange,
    .car-blue {
        display: none;
    }


    .header {
        position: static;
        width: 85vw;
        /* ★★★ 親要素であるheaderに幅を指定 ★★★ */
        margin: 0 auto;
        /* ★★★ header自体を中央揃え ★★★ */

        background-color: #ffde59;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .header img {
        width: 100%;
        /* ★★★ 親要素の幅いっぱいに広がるように変更 ★★★ */
        height: auto;
        display: block;
        /* margin: 0 auto; は不要になったため削除 */
    }

    .feature-item {
        display: block;
    }

    .feature-text {
        padding-top: 20px;
        margin-left: auto;
        top: 0;
        border-radius: 35px;
    }

    .feature-image {
        width: 95% !important;
        border: 4px solid #E40077;
        /*【追加】コンテナ自体に角丸を設定 */
        border-radius: 40px;
        /*【追加】はみ出した画像を角丸に沿って切り取る */
    }

    .feature-item:nth-child(even) .feature-text {
        padding-top: 20px;
        margin-left: auto;
        top: 0;
        border-radius: 35px;
    }


    .feature-item {
        margin-bottom: 55px;
    }

    #buycar {
        padding: 20px 15px;
    }


    .cat-1 {
        top: 30%;
        left: -20px;
    }

    .cat-2 {
        top: 45%;
        left: -20px;
    }

    .cat-3 {
        top: 70%;
        left: -20px;
    }

    .cat-4 {
        top: 97%;
        left: -20px;
    }

    .cat-image {
        width: 100px;
    }


}