/* =========================================
   8. Features (特徴セクション)
========================================= */
.features {
    padding: 80px 20px;
    background-color: #fff;
}

.feature-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* スマホ：縦並びカード形式 */
.feature-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    background: var(--bg-surface);
    border-radius: 16px;
    /* overflow: hidden; は画像にだけかけるように変更 */
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    position: relative;
}

.feature-img {
    width: 100%;
    height: 250px;
    overflow: hidden; /* ここで画像を角丸に合わせる */
    border-radius: 16px 16px 0 0;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding: 30px 20px;
    position: relative;
}

/* 背景に浮かぶデカい数字 */
.feature-num {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 60px;
    font-weight: 700;
    color: rgba(255, 122, 0, 0.08);
    line-height: 1;
    z-index: 0;
    pointer-events: none; /* 重なってもクリックを邪魔しない */
}

.feature-point-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* 説明文（会話形式を消した後のスタイル） */
.feature-desc p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* --- 副産物カード（スマホ） --- */
.feature-extra {
    max-width: 800px;
    margin: 60px auto 0;
}

.extra-card {
    display: flex;
    flex-direction: column;
    background: #fff; /* 白背景にして点線を際立たせる */
    border: 2px dashed var(--primary-orange);
    border-radius: 20px;
    position: relative;
    /* overflow: hidden; を削除（バッジをはみ出させるため） */
}

.extra-img-wrap {
    width: 100%;
    height: 220px;
    position: relative;
    border-radius: 18px 18px 0 0;
    overflow: hidden; /* 画像だけを切る */
}

.extra-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.extra-modte-badge {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d4d;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
    z-index: 5;
    white-space: nowrap;
}

.extra-content {
    padding: 45px 20px 30px;
}

.extra-badge {
    display: inline-block;
    background: var(--primary-orange);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* =========================================
   PC画面用（768px以上）
========================================= */
@media (min-width: 768px) {
    /* 特徴行のジグザグ */
    .feature-row {
        flex-direction: row;
        background: transparent;
        box-shadow: none;
        align-items: center;
        gap: 60px;
        margin-bottom: 120px;
    }

    .feature-row:nth-child(even) {
        flex-direction: row-reverse;
    }

    .feature-img {
        width: 50%;
        height: 380px;
        border-radius: 24px;
        box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    }

    .feature-content {
        width: 50%;
        padding: 0;
    }

    .feature-num {
        font-size: 140px;
        top: -50px;
        left: -30px; /* 数字の位置を左上に */
        right: auto;
    }

    /* 偶数番目の数字の位置調整 */
    .feature-row:nth-child(even) .feature-num {
        left: auto;
        right: -30px;
    }

    .feature-point-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .feature-desc p {
        font-size: 16px;
    }

    /* 副産物カード（PC） */
    .feature-extra {
        max-width: 900px;
        margin-top: 100px;
    }

    .extra-card {
        flex-direction: row;
        align-items: stretch;
        text-align: left;
    }

    .extra-img-wrap {
        width: 40%;
        height: auto;
        min-height: 300px;
        border-radius: 18px 0 0 18px;
    }

    .extra-modte-badge {
        bottom: 30px;
        right: -25px; /* 右にはみ出させる */
        left: auto;
        transform: none;
    }

    .extra-content {
        width: 60%;
        padding: 50px 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
}