/* ---- 全体設定・レイアウト幅 ---- */
.cp_allstyle {
    width: 100%;
    color: #333;
    font-feature-settings: "pwid";
    letter-spacing: 0.05em;
    font-size: 16px;
}

h1.cp_h1 {
    width: 100%;
    max-width: 950px;
    margin: auto;
}

h1.cp_h1 img {
    width: 100%;
    height: auto;
}

.cp_intro, 
.cp_allstyle h2, 
.cp_pp, 
.coupon_container {
    width: 94%;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.cp_intro {
    font-size: 1.2em;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.cp_allstyle h2 {
    margin-top: 50px;
    margin-bottom: 1em;
    padding: 0.4em;
    font-size: 1.4em;
    font-weight: bold;
    color: #ffffff;
    background: #ff8c00;
    text-align: left;
}

.cp_pp p {
    font-size: 1.2em;
}

.cp_pp ul {
    list-style: disc;
    margin: 0 0 1em;
    padding-left: 1.5em;
}

/* ---- マーカー・番号アイコン ---- */
.marker {
    position: relative;
    display: inline-block;
    font-weight: bold;
}

.marker::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.1em;
    width: 100%;
    height: 0.6em;
    background: #ffeb3b;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: marker 1s ease forwards;
}

@keyframes marker {
    to { transform: scaleX(1); }
}

.maru {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    text-align: center;
    line-height: 1.5em;
    margin-right: 0.5em;
    color: #ff8c00;
    background-color: #ffffff;
}

/* ---- クーポンエリア（共通） ---- */
.cp_big_coupon_wrap {
    width: 100%;
    max-width: 750px;
    margin: 30px auto;
    background: #e4f4eb;
    padding: 40px;
    border: 2px solid #00a078;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
    font-weight: bold;
}

.cp_big_coupon_title {
    font-size: 1.4em;
    font-weight: bold;
    color: #00a078;
    margin-bottom: 25px;
}

.cp_big_coupon_subtitle {
    font-size: 1.3em;
    color: #ff0000;
}

.cp_big_coupon_inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
}

.cp_big_coupon_code {
    flex: 1;
    font-size: 2em;
    letter-spacing: 0.1em;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    background: #fff;
}

.cp_big_coupon_btn {
    width: 220px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.cp_big_coupon_btn:hover {
    opacity: 0.6;
}

/* ---- 商品カード（Flexレイアウト） ---- */
.coupon_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.coupon_container::after {
    content: "";
    width: calc((100% - 40px) / 3);
}

.cp_details {
    width: calc((100% - 40px) / 3);
    background: #e4f4eb;
    padding: 2%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.cp_details h3 {
    color: #00a078;
    margin: 0 0 10px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    min-height: 3.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.shipping {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.flex_box {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flex_box img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    object-position: center;
}

.flex_box_text {
    margin: 10px 0;
    font-size: 0.9em;
    line-height: 1.5;
    text-align: left;
    flex-grow: 1;
}

.flex_box_price {
    text-align: center;
    margin-bottom: 10px;
}

.price_old {
    font-size: 0.9em;
    text-decoration: line-through;
}

.price_new {
    font-size: 1.2em;
    color: #ff0000;
    font-weight: bold;
}

.flex_box_btn {
    margin-top: auto;
}

a.btn_mt23 {
    display: block;
    width: 100%;
    margin: 0.5em auto;
    padding: 1em 0.3em;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    color: #fff;
    background: #ff7700;
    box-sizing: border-box;
}

a.btn_mt23:hover {
    opacity: 0.7;
    transition: 0.3s;
}

/* ---- その他の要素 ---- */
.cp_htu img {
    max-width: 100%;
    margin-bottom: 1em;
    height: auto;
}

.topback {
    text-align: center;
    margin-top: 8em;
}

.topback a {
    font-size: 1.8em;
    padding: 10px 80px;
    border-radius: 5px;
    color: #fff;
    background: #285FD5;
    text-decoration: none;
}

.topback a:hover {
    opacity: 0.7;
    transition: 0.5s;
}

/* =========================================================
   レスポンシブ対応（スマートフォン等 768px以下）
========================================================= */
@media screen and (max-width: 768px) {
    /* 横3列を縦1列へ変更 */
    .cp_details {
        width: 100%;
    }
    .coupon_container::after {
        display: none;
    }
    
    /* 1列になるためタイトル行の高さ揃えを解除 */
    .cp_details h3 {
        min-height: auto;
    }

    /* クーポンコード表示の調整 */
    .cp_big_coupon_wrap {
        padding: 20px 15px;
    }
    .cp_big_coupon_inner {
        flex-direction: column;
    }
    .cp_big_coupon_code {
        padding: 15px 0;
        font-size: 1.8em;
    }
    .cp_big_coupon_btn {
        width: 100%;
        padding: 15px 0;
    }

    /* 文字サイズ・余白・画像の調整 */
    .flex_box img {
        height: 200px; /* スマホで画像が大きくなりすぎないように調整 */
    }
    .cp_intro, .cp_pp p {
        font-size: 1em;
    }
    .topback a {
        font-size: 1.4em;
        padding: 10px 40px;
        display: block;
        width: 90%;
        margin: 0 auto;
        box-sizing: border-box;
    }
}