/* =========================================================
   全体レイアウト・背景
========================================================= */
#otakaraya-sel {
    max-width: 767px !important;
}

#otakaraya-sel .reason-container {
    max-width: 90%;
    margin: 0 auto;
}

/* タイトル周り */
#otakaraya-sel .title-wrap {
    text-align: center;
    margin-bottom: 40px;
}

#otakaraya-sel .title {
    border-bottom: 2px solid #d10000; /* タイトル下の赤い線 */
    padding-bottom: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

#otakaraya-sel .title span {
    color: #d10000;
}
#otakaraya-sel .title-lead {
    text-align: left;
    width: 90%;
    margin: auto;
}

/* =========================================================
   カード共通スタイル
========================================================= */
#otakaraya-sel .reason-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    position: relative;
    padding: 5% 3% 5%; /* 上部にバッジ用の余白を確保 */
    margin-bottom: 15%; /* カード間の縦の余白 */
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03); /* わずかな影で立体感を */
}

/* 最後のカードの下マージンを消す */
#otakaraya-sel .reason-card:last-child {
    margin-bottom: 0;
}

/* =========================================================
   丸い数字バッジ（01, 02...）
========================================================= */
#otakaraya-sel .reason-card .speach-bubble {
    top: -2em;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    padding: 1.9cqw 1.7cqw;
    font-weight: 700;
    font-size: 1em;
    position: absolute;
}

/* =========================================================
   カード内コンテンツ（タイトル・画像・テキスト・ボタン）
========================================================= */
#otakaraya-sel .card-title {
    color: #d10000;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -1px;
}

#otakaraya-sel .card-img {
    width: 100%;
}

#otakaraya-sel .card-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    overflow: hidden;
}

#otakaraya-sel .card-txt {
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.6;
    color: #333;
}

/* 赤いリンクボタン */
#otakaraya-sel .red-btn {
    display: block;
    background: #d10000;
    color: #fff;
    text-decoration: none;
    padding: 3cqw 3cqw;
    margin-top: 20px;
    border-radius: 12px;
    position: relative;
    text-align: left;
    transition: opacity 0.3s ease-in-out;
}

#otakaraya-sel .red-btn::after {
    content: ">";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

#otakaraya-sel .red-btn:hover {
    opacity: 0.6;
}
#otakaraya-sel .cacrd-img-text-wrapper {
    display: flex;
    width: 100%;
    gap: 3cqw;
}

#otakaraya-sel .cacrd-img-text-wrapper .x-small-text {
    width: 50%;
}

#otakaraya-sel .cacrd-img-text-wrapper .card-img {
    width: 50%;
}

/* =========================================================
   横並びレイアウト（05, 06 / 08, 09）
========================================================= */
#otakaraya-sel .flex-row {
    display: flex;
    justify-content: space-between;
    gap: 4%; /* カラム間の隙間 */
    margin-bottom: 15%; /* flex-row自体の下余白 */
}

#otakaraya-sel .flex-row .reason-card {
    width: 48%; /* 2カラム均等割り */
    margin-bottom: 0; /* flex-row内でmargin-bottomは不要 */
}

/* =========================================================
   店舗数の装飾（02）
========================================================= */
#otakaraya-sel .store-img-box {
    position: relative;
}

#otakaraya-sel .store-count-overlay {
    position: absolute;
    font-family: serif;
    top: 48%;
    left: 44.2%;
    transform: translate(-50%, -50%);
    font-size: min(13vw, 101px);
    font-weight: 900;
    background: linear-gradient(
        45deg,
        #ffffff 3%,
        #fffcdc 4%,
        #fff8b6 6%,
        #fff699 7%,
        #fff484 9%,
        #fff377 10%,
        #fff373 12%,
        #ecae00 17%,
        #fff373 30%,
        #ffffff 39%,
        #fffcdc 40%,
        #fff8b6 42%,
        #fff699 43%,
        #fff484 45%,
        #fff377 46%,
        #fff373 48%,
        #ecae00 53%,
        #fff373 62%,
        #ffffff 72%,
        #fffcdc 73%,
        #fff8b6 75%,
        #fff699 76%,
        #fff484 77%,
        #fff377 79%,
        #fff373 80%,
        #ecae00 90%,
        #b98900 100%
    );
    -webkit-background-clip: text;
    color: transparent;
    z-index: 5;
}
