@charset "UTF-8";

/* ─── 全体の器のサイズ調整 ─── */
.myschedule-container {
    /* 今後入る program-card (最大約760〜800px) が左右に余白を持って綺麗に収まるサイズ */
    /* board-wrap（max-width: 840px）が余白を持って収まるよう少し広めに確保 */
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

/* ─── タイトルエリア（装飾の位置コントロール） ─── */
.myschedule-header {
    position: relative;
    display: table;
    /* 文字の幅に合わせる */
    margin: 70px auto 70px;
    padding: 10px 40px;
    /* 左右のアイコンのための余白 */
}

/* My schedule の文字自体 */
.myschedule-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

/* 装飾画像共通のベース設定 */
.deco-icon {
    position: absolute;
    width: clamp(35px, 8vw, 50px);
    /* 画面幅に合わせて程よく縮小 */
    height: auto;
    z-index: 1;
}

/* 左下のプラスアイコン位置 */
.icon-plus {
    left: -20px;
    bottom: -30px;
    z-index: 2;
    transform: rotate(-15deg);
}

/* 右上のマイナスアイコン位置 */
.icon-minus {
    right: -10px;
    top: -25px;
    transform: rotate(9deg);
}

/* タイトル下のオレンジのうねうね線 */
.deco-line {
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 105%;
    bottom: -40px;
    /* タイトルの幅より少しだけワイドに */
    height: auto;
    z-index: 1;
}

/* ─── タイトル下の説明文（リード文） ─── */
.myschedule-lead {
    text-align: center;
    /* 💡 文字を中央寄せにする */
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    /* 読みやすいように少し太めに設定 */
    color: #111111;
    line-height: 1.7;

    /* 💡 上下の距離調整（上には0、下にはボードとの隙間を40px空ける） */
    margin: 0 auto 60px;

    padding: 0 20px;
    /* スマホで画面端に文字がくっつかないための予防策 */
}

/* ─── メインボード & プログラム集エリア ─── */
.myschedule-board-wrap {
    position: relative;
    margin: 40px auto 0;
    /* 今後入る program-card（最大約760〜800px）より一回りだけ広くする */
    width: 100%;
    max-width: 840px;
}

/* 赤いプログラム集ラベル */
.program-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    /* ボードの上辺に、ラベルの下辺がぴったり揃うように上へ乗せる */
    background-color: #E8380D;
    /* common.cssの--text-redに合わせた赤 */
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 32px;
    border-radius: 4px;
    /* ほんの少し角丸にしてカンプに合わせる */
    z-index: 3;
}

/* 薄黄色のスケジュールボード本体 */
.myschedule-board {
    background-color: #FFE158;
    /* カンプの少し薄い黄色 */
    border-radius: 15px;
    /* 角丸をカンプに合わせて少し滑らかに */
    min-height: 600px;
    /* 最低限の高さ */
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

    /* 💡ここが重要：ボードの内側に余白を作ります */
    /* これにより、中にカードが入ったときに自動的にカードより一回り大きいサイズになります */
    padding: 50px 40px;
    box-sizing: border-box;
    /* パディングを含めたサイズ計算にする */
}

/* ─── アクションボタンエリア ─── */
.myschedule-action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* ボタン同士の隙間 */
    margin-top: 40px;
    /* ボードとの隙間 */
    margin-bottom: 20px;
}

/* ボタン共通設定 */
.myschedule-action-buttons button {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    /* 丸みのある可愛い形状 */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.myschedule-action-buttons button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    /* ホバー時に少し浮かす */
}

.myschedule-action-buttons button:active {
    transform: translateY(0);
}

/* すべてクリア（グレー・落ち着いたトーン） */
.btn-clear {
    background-color: #7a7a7a;
    color: #ffffff;
}

/* マイスケジュールを保存（目立つ赤 / --text-red） */
.btn-save {
    background-color: #E8380D;
    color: #ffffff;
}

/* ==================================================
トースト通知（画面下のポップアップ）
================================================== */
.toast-message {
    position: fixed;
    bottom: -50px;
    /* 初期状態は画面の下に隠しておく */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(17, 17, 17, 0.9);
    /* 少し透けた黒 */
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 50px;
    /* 丸っこくて可愛い形 */
    font-size: 1rem;
    font-weight: 500;
    z-index: 9999;
    /* 画面の一番手前に出す */

    /* アニメーション前の状態 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* フワッと動く設定 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* JSで is-visible クラスが付いたとき（表示状態） */
.toast-message.is-visible {
    bottom: 50px;
    /* 画面下から50pxの位置にスッと上がる */
    opacity: 1;
    visibility: visible;
}

/* スマホ表示の時は少し位置を下げる（邪魔にならないように） */
@media (max-width: 767px) {
    .toast-message.is-visible {
        bottom: 30px;
        font-size: 0.9rem;
        padding: 10px 24px;
    }
}

/* スマホ表示での調整 */
@media (max-width: 767px) {
    .myschedule-action-buttons {
        flex-direction: column-reverse;
        /* スマホでは縦並び（保存を上に） */
        gap: 15px;
        padding: 0 10px;
    }

    .myschedule-action-buttons button {
        width: 100%;
        padding: 14px;
    }
}

/* ─── スマホ表示の微調整 ─── */
@media (max-width: 767px) {
    .myschedule-header {
        margin-bottom: 80px;
    }

    .icon-plus {
        left: -5px;
        bottom: -30px;
    }

    .icon-minus {
        right: -10px;
        top: -15px;
    }

    .myschedule-container {
        padding: 40px 10px;
    }

    .myschedule-board-wrap {
        width: 100%;
        max-width: 100%;
        /* 横幅の制限を解除してぴったり揃えます */
    }

    /* 必要であればスマホの文字サイズもここで微調整できます */
    .myschedule-lead {
        font-size: 0.95rem;
        margin-bottom: 50px;
        /* 💡 スマホのときは下のボードとの距離を30pxに */
    }

    /* 3. ボード自体の内側余白を微調整 */
    .myschedule-board {
        padding: 40px 15px;
        border-radius: 16px;
        min-height: 350px;
    }

    .program-label {
        font-size: 0.9rem;
        padding: 6px 24px;
    }
}

/* ==================================================
クリア確認用ポップアップ（モーダル）
================================================== */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明の暗い背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* 画面の一番手前に出す */

    /* 初期状態は透明で隠しておく */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* JSで .is-show が付いたらフワッと表示 */
.custom-modal.is-show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);

    /* 下から少し浮き上がるアニメーション */
    transform: translateY(20px);
    transition: transform 0.3s ease;
    width: 90%;
    max-width: 400px;
}

.custom-modal.is-show .modal-content {
    transform: translateY(0);
}

.modal-content p {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #111111;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-buttons button {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    width: 120px;
}

.modal-buttons button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.btn-no {
    background-color: #7a7a7a;
    color: #ffffff;
}

.btn-yes {
    background-color: #E8380D;
    color: #ffffff;
}