.modal-close-button {
    position: fixed; /* 画面に固定する */
    top: 15px;
    right: 15px;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 36px;
    text-align: center;
    padding: 0;
    z-index: 1000; /* 他より前面に出す */
}

.open-modal-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}


/* ===============
   基本スタイル
================ */
:root {
    --main-pink: #f06e6e;
    --light-pink: #f4a7b9;
    --text-color: #333;
    --border-color: #333;
    --main-purple: #67588D;
    --main-orange: #F06B3C;
    --light-orange: #EDA144;
    --fill-orange: #F5F1E8;
}
/* モーダルコンテンツのデフォルト背景 (SP) */
.ReactModal__Content {
    background: image-set(
        url(../img/daishi-bg/daishi-sp.webp) 1x,
        url(../img/daishi-bg/daishi-sp@2x.webp) 2x,
        url(../img/daishi-bg/daishi-sp@3x.webp) 3x
    ) center top / cover no-repeat !important;
}

/* タブレット用モーダル背景 */
@media (min-width: 768px) and (max-width: 1023px) {
    .ReactModal__Content {
        background: image-set(
            url(../img/daishi-bg/daishi-tab.webp) 1x,
            url(../img/daishi-bg/daishi-tab@2x.webp) 2x,
            url(../img/daishi-bg/daishi-tab@3x.webp) 3x
        ) center top / cover no-repeat !important;
    }
}

/* PC用モーダル背景 */
@media (min-width: 1024px) {
    .ReactModal__Content {
        background: image-set(
            url(../img/daishi-bg/daishi-pc.webp) 1x,
            url(../img/daishi-bg/daishi-pc@2x.webp) 2x,
            url(../img/daishi-bg/daishi-pc@3x.webp) 3x
        ) center top / cover no-repeat !important;
    }
}

/* 共通ボタンスタイル */
.com-button,
.com-fill-button,
.com-present-button,
.com-disabled-button {
    display: block;
    border-radius: 50px; /* 十分に大きな値で楕円形に */
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

/* デフォルト（白背景・ピンク文字） */
.com-button {
    background-color: #fff;
    color: var(--main-orange);
    border: 2px solid var(--light-orange);
}

/* 塗りつぶし（グラデ背景・白文字） */
.com-fill-button {
    background-image: linear-gradient(to left, var(--light-orange) 0%, var(--main-orange) 100%);
    color: #fff;
}

/* プレゼント応募用ボタン（白背景・ピンク文字・太字） */
.com-present-button {
    background-image: linear-gradient(to left, #E8E01C 0%, #FF8E8E 100%);
    color: #fff;
}

/* 無効化ボタン（グレー背景・白文字・カーソル禁止） */
.com-disabled-button {
    background-color: #ccc;
    color: #fff;
    border: 2px solid gray;
}

/* ボタンの右矢印（共通） */
.com-button::after,
.com-fill-button::after,
.com-present-button::after,
.com-disabled-button::after {
    content: '>';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
}

/* デフォルト矢印色 */
.com-button::after {
    background-color: var(--main-orange);
    color: #fff;
}

/* 塗りつぶし矢印色 */
.com-fill-button::after {
    background-color: #fff;
    color: var(--main-orange);
}
/* プレゼント応募用ボタン矢印色 */
.com-present-button::after {
    background-color: #fff;
    color: var(--main-orange);
}
/* 無効化ボタン矢印色 */
.com-disabled-button::after {
    background-color: #fff;
    color: gray;
}


/* ===============
   スタンプラリーコンテナ
================ */
.stamp-rally-section {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box; /* paddingを含めて100%にする */
    padding: 24px;
    text-align: center;
    position: relative; /* 閉じるボタンの基準位置にする */
}

/* ===============
   ヘッダーエリア
================ */
.stamp-rally-header h1 {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 0 0 4px 0;
    color:var(--main-purple);
}

.stamp-rally-header h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 0 0 20px 0;
    color:var(--main-purple);
}

/* ===============
   お知らせボックス
================ */
.info-box {
    background-color: var(--fill-orange); /* 背景が透けるように半透明に */
    border: 2px solid var(--main-orange);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 30px;
}

.info-box p {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===============
   各スポット
================ */
.rally-point-list {
    margin-bottom: 1rem;
}

.rally-point:not(:last-child)::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(to right, #ccc 60%, transparent 40%);
    background-size: 10px 2px;
    margin: 40px 0; /* 点線の上下に余白を作り、セパレーターとして機能させる */
}

.rally-point-title {
    display: inline-block;
    padding: 0 1rem;
    font-weight: normal;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

/* ===============
   お題（円）のエリア
================ */
.tasks-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0 10px;
}

.task-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    z-index: 2;
    background-color: transparent;
}

.task-label {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

.task-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: var(--main-purple);
    border: none;
    color: white;
}

.completed.task-circle {
    background-image: url('../img/spoticon/stamp/stamprally.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent; 
    border: 4px solid var(--main-orange);
}

.present-section {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* 縦並びにする */
    align-items: center; /* ボタンを中央寄せ */
}

.present-section a {
    margin-bottom: 15px;
    width: 80%; /* 横幅80%にする */
    display: block;
}
