@charset "UTF-8";

/* =========================================
   1. FV・ベースレイアウト
========================================= */
.vote-fv {
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
    position: relative;
}

.vote-fv img {
    max-width: 100%;
    display: block;
}

.vote-fv .fv-click-area {
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
    width: 41%;
    height: 13%;
    display: block;
    z-index: 10;
}

#tshirt-vote-page.vote-container {
    font-family: sans-serif;
    position: relative;
    container-type: inline-size;
    /* cqw の基準コンテナ */
}

#tshirt-vote-page .scroll-anchor {
    position: absolute;
    top: 17.5%;
    left: 0;
    width: 100%;
    height: 1px;
    pointer-events: none;
    scroll-margin-top: 80px;
}

/* =========================================
   2. ヘッダー・ボタンエリア
========================================= */
#tshirt-vote-page .vote-header {
    max-width: 100%;
    position: relative;
}

#tshirt-vote-page .vote-header img {
    width: 100%;
    height: auto;
    display: block;
}

#tshirt-vote-page .vote-header .btn-primary {
    position: absolute;
    bottom: 1cqw;
    text-align: center;
    transition: opacity 0.5s;
}

#tshirt-vote-page .vote-header .btn-primary img {
    max-width: 95%;
}

#tshirt-vote-page .vote-header .btn-primary:hover {
    opacity: 0.7;
}

#tshirt-vote-page .novelty-btn {
    position: absolute;
    bottom: 10cqw;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    justify-content: center;
}

#tshirt-vote-page .novelty-btn a {
    transition: opacity 0.5s;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

#tshirt-vote-page .novelty-btn a:hover {
    opacity: 0.7;
}

#tshirt-vote-page .novelty-btn img {
    max-width: 100%;
}

/* =========================================
   3. 当選者一覧セクション（金色背景）
========================================= */
#tshirt-vote-page .winner-list-section {
    background: linear-gradient(90deg,
            #a87e34 0%,
            #e8c660 25%,
            #ffffb6 50%,
            #e8c660 75%,
            #a87e34 100%);
    padding: 4.8cqw 2.6cqw 8cqw;
}

#tshirt-vote-page .winner-list-title {
    text-align: center;
    font-size: 8cqw;
    font-weight: 900;
    color: #2b0f00;
    margin: 0 0 3.6cqw;
    line-height: 1.25;
}

/* =========================================
   4. タブ切り替えUI
========================================= */
#tshirt-vote-page .winner-tabs-wrap {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

#tshirt-vote-page .winner-tab-nav {
    display: flex;
    align-items: flex-end;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

#tshirt-vote-page .winner-tab-btn {
    flex: 1;
    width: 50%;
    box-sizing: border-box;
    border: none;
    box-shadow: 0 0 0 0.45cqw #fff;
    /* 外枠と同じく外側に白フチを出す */
    border-radius: 2.2cqw 2.2cqw 0 0;
    background-color: #7d7d7d;
    color: #fff;
    font-size: 3.4cqw;
    font-weight: 900;
    line-height: 1.28;
    padding: 2.2cqw 1cqw 3.4cqw;
    margin-bottom: -1.6cqw;
    cursor: pointer;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: background-color 0.2s;
}

/* アクティブタブ（赤背景＋文字と高さを強調） */
#tshirt-vote-page .winner-tab-btn.is-active {
    background-color: #d8000c;
    font-size: 4cqw;
    padding: 3cqw 1cqw 2.6cqw;
    margin-bottom: 0;
    z-index: 3;
}

/* アクティブタブの下辺の白フチを赤色で隠し、下の赤枠と同化させる */
#tshirt-vote-page .winner-tab-btn.is-active::before {
    content: "";
    position: absolute;
    bottom: -0.5cqw;
    height: 0.5cqw;
    background-color: #d8000c;
    z-index: 3;
}

/* タブ1選択時：右側の白フチ分だけ伸ばして赤枠と繋ぐ */
#tshirt-vote-page .winner-tab-btn[data-target="winner-tab-1"].is-active::before {
    left: 0;
    width: calc(100% + 0.5cqw);
}

/* タブ2選択時：左側の白フチ分だけ伸ばして赤枠と繋ぐ */
#tshirt-vote-page .winner-tab-btn[data-target="winner-tab-2"].is-active::before {
    left: -0.5cqw;
    width: calc(100% + 0.5cqw);
}

/* アクティブタブの下向き三角 */
#tshirt-vote-page .winner-tab-btn.is-active::after {
    content: "";
    position: absolute;
    bottom: -2cqw;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 1.6cqw solid transparent;
    border-right: 1.6cqw solid transparent;
    border-top: 2cqw solid #d8000c;
    z-index: 4;
}

/* 外枠（白背景＋赤枠＋白フチ） */
#tshirt-vote-page .winner-tab-body {
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    border: 0.55cqw solid #d8000c;
    box-shadow: 0 0 0 0.45cqw #fff;
    border-radius: 0 2.4cqw 2.4cqw 2.4cqw;
    padding: 4cqw 3.2cqw;
    position: relative;
    z-index: 2;
}

/* タブ1選択時：左上は直角、それ以外の3角を丸く */
#tshirt-vote-page .winner-tabs-wrap:has(.winner-tab-btn[data-target="winner-tab-1"].is-active) .winner-tab-body {
    border-radius: 0 2.4cqw 2.4cqw 2.4cqw;
}

/* タブ2選択時：右上は直角、それ以外の3角を丸く */
#tshirt-vote-page .winner-tabs-wrap:has(.winner-tab-btn[data-target="winner-tab-2"].is-active) .winner-tab-body {
    border-radius: 2.4cqw 0 2.4cqw 2.4cqw;
}

#tshirt-vote-page .winner-tab-panel {
    display: none;
}

#tshirt-vote-page .winner-tab-panel.is-active {
    display: block;
}

/* =========================================
   5. 期間カード・当選者リスト
========================================= */
#tshirt-vote-page .winner-period-card {
    border: 0.5cqw solid #888;
    border-radius: 1.8cqw;
    overflow: hidden;
    background-color: #fff;
}

#tshirt-vote-page .winner-period-card+.winner-period-card {
    margin-top: 3.4cqw;
}

#tshirt-vote-page .winner-period-header {
    background-color: #fbf7bd;
    border-bottom: 0.5cqw solid #888;
    text-align: center;
    padding: 1.8cqw 1.3cqw;
    color: #111;
}

#tshirt-vote-page .winner-period-label {
    font-size: 4cqw;
    font-weight: 900;
    margin: 0 0 0.5cqw;
    line-height: 1.3;
}

#tshirt-vote-page .winner-period-date {
    font-size: 6cqw;
    font-weight: 900;
    margin: 0;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

#tshirt-vote-page .winner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2cqw 2.4cqw;
    list-style: none;
    margin: 0;
    padding: 3cqw 3.2cqw;
}

#tshirt-vote-page .winner-item {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    font-size: 5cqw;
    font-weight: 900;
    color: #111;
    line-height: 1.45;
    white-space: nowrap;
}

#tshirt-vote-page .winner-pref {
    min-width: 4.2em;
    display: inline-block;
}

/* 3倍・5倍のサブグループ */
#tshirt-vote-page .winner-sub-group+.winner-sub-group {
    margin-top: 5cqw;
}

/* 赤リボン見出し（左端は赤枠に密着・右端は三角切り欠き） */
#tshirt-vote-page .winner-ribbon-title {
    background-color: #d8000c;
    color: #fff;
    font-size: 4cqw;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 2.6cqw -3.2cqw;
    padding: 1.2cqw 4.8cqw 1.2cqw 3.2cqw;
    clip-path: polygon(0 0, 100% 0, calc(100% - 2.1cqw) 50%, 100% 100%, 0 100%);
    letter-spacing: 0.04em;
}

#tshirt-vote-page .winner-ribbon-title .ribbon-num {
    font-size: 1.45em;
    margin: 0 0.3cqw;
    vertical-align: -0.15cqw;
}

/* =========================================
   6. 「もっと見る」エリアの調整
========================================= */
#tshirt-vote-page .common-view-limit-wrap {
    margin: 0 -3.2cqw;
    padding: 0 3.2cqw;
    box-sizing: border-box;
}

#tshirt-vote-page .limit-btn-area {
    padding-bottom: 1.5cqw;
}

#tshirt-vote-page .common-view-limit-wrap.is-opened .limit-btn-area {
    padding-bottom: 0;
}