@charset "utf-8";
/* --- スタイル設定 --- */
#countdown-wrapper {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 20px auto; /* 上下の余白 */
    padding: 0;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.3));
    background: transparent;
}

#countdown-wrapper * { box-sizing: border-box; margin: 0; padding: 0; }

/* --- セグメント共通 --- */
#countdown-wrapper .seg {
    position: relative;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* ----------------------------------------------------
    【PC / タブレット表示】 (幅769px以上)
---------------------------------------------------- */

/* 1. 左エリア：情報（黒） */
#countdown-wrapper .seg-info {
    z-index: 3;
    width: 33.3%;
    padding-left: 20px;
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(to bottom, #555555 0%, #333333 50%, #111111 100%);
}

/* 2. 中央エリア：日数（赤） */
#countdown-wrapper .seg-days {
    z-index: 2;
    width: 33.3%;
    margin-left: -20px;
    padding: 0 30px 0 40px;
    overflow: hidden;
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%, 15% 50%);
    background: linear-gradient(to bottom, #D90429 0%, #990022 50%, #660011 100%);
    box-shadow: inset 0 20px 20px -10px rgba(255,255,255,0.25), inset 0 -5px 10px rgba(0,0,0,0.3);
}
/* ブラシ装飾 */
#countdown-wrapper .seg-days::before {
    content: ""; position: absolute; top: -20%; left: 20%;
    width: 35px; height: 140%; transform: rotate(20deg);
    z-index: -1; opacity: 0.6; mix-blend-mode: overlay;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0.5) 70%, transparent);
    clip-path: polygon(10% 0, 90% 5%, 85% 40%, 100% 60%, 80% 90%, 20% 100%, 0% 50%);
}
#countdown-wrapper .seg-days::after {
    content: ""; position: absolute; top: -10%; right: 15%;
    width: 15px; height: 120%; transform: rotate(-20deg);
    z-index: -1; opacity: 0.5; mix-blend-mode: overlay;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
    clip-path: polygon(20% 0, 100% 10%, 80% 100%, 0% 90%);
    display: block;
}

/* 3. 右エリア：時間（白） */
#countdown-wrapper .seg-time {
    z-index: 1;
    width: 33.3%;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 40px;
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%, 15% 50%);
    color: #333;
    background: linear-gradient(to bottom, #FFFFFF 0%, #F2F2F2 60%, #DCDCDC 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,1), inset 0 -1px 0 rgba(0,0,0,0.15);
}

/* --- 文字サイズ（PX固定） --- */
#countdown-wrapper .league {
    font-size: 13px !important; /* 固定 */
    opacity: 0.9; margin-bottom: 4px; font-weight: bold; white-space: nowrap; text-shadow: 0 2px 2px rgba(0,0,0,0.5);
}
#countdown-wrapper .title {
    font-size: 16px !important; /* 固定 */
    font-weight: bold; line-height: 1.3; white-space: nowrap; text-shadow: 0 2px 2px rgba(0,0,0,0.5);
}
#countdown-wrapper .num {
    font-size: 34px !important; /* 固定 */
    font-weight: 700; text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
#countdown-wrapper .lbl {
    font-size: 12px !important;
    font-weight: bold; margin-left: 4px; margin-top: 8px; text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
#countdown-wrapper .time-container { display: flex; align-items: baseline; justify-content: center; gap: 5px; flex-wrap: wrap; }
#countdown-wrapper .t-val {
    font-size: 22px !important; /* 固定 */
    font-weight: 700; color: #222; text-shadow: 0 1px 0 rgba(255,255,255,1);
}
#countdown-wrapper .t-unit {
    font-size: 11px !important;
    font-weight: 700; color: #555;
}

/* ----------------------------------------------------
    【スマホ表示】 (幅768px以下)
---------------------------------------------------- */
@media (max-width: 768px) {
    #countdown-wrapper {
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
    }

    /* 1. 上段（黒） */
    #countdown-wrapper .seg-info {
        width: 94%;
        margin: 0 auto -5px 0;
        padding: 8px 10px 12px 15px !important;
        height: auto;
        clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%);
        border-radius: 4px 0 0 0;
        align-items: flex-start;
        background: linear-gradient(135deg, #444 0%, #222 100%);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    }

    /* スマホ用文字サイズ（PX固定） */
    #countdown-wrapper .league { font-size: 11px; margin-bottom: 1px; letter-spacing: 1px; line-height: 1; }
    #countdown-wrapper .title { font-size: 15px; line-height: 1.2; }

    /* 2. 下段左（赤） */
    #countdown-wrapper .seg-days {
        width: 30%;
        margin-left: 0;
        padding: 15px 5px 15px 10px !important;
        height: 65px;
        clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
        border-radius: 0 0 0 4px;
    }
    #countdown-wrapper .seg-days::before { left: 20%; width: 25%; height: 150%; }
    #countdown-wrapper .seg-days::after { right: 10%; width: 10%; height: 120%; }

    /* 3. 下段右（白） */
    #countdown-wrapper .seg-time {
        width: 70%;
        margin-left: -15px;
        padding: 15px 25px 15px 25px !important;
        height: 65px;
        clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%, 6% 50%);;
        border-radius: 0;
    }

    /* スマホ用数字サイズ（PX固定） */
    #countdown-wrapper .num { font-size: 28px !important; }
    #countdown-wrapper .lbl { font-size: 10px !important; margin-top: 4px; }
    #countdown-wrapper .t-val { font-size: 18px !important; }
    #countdown-wrapper .t-unit { font-size: 10px !important; }
}