/* リピーターさま感謝キャンペーン LP：「応募枚数を確認する」ボタン押下後の結果表示とログインモーダル
   JS（js/ticket_check.js）が #tc_result の中身と #tc_modal の表示を切り替える。クラス名は tc_ で始める */

/* ---- 結果表示（ページ内） ---- */
.tc_result {
    max-width: min(calc(474 * 100vw / 1200), 474px);
    margin: min(calc(32 * 100vw / 1200), 32px) auto 0;
    padding: min(calc(20 * 100vw / 1200), 20px) min(calc(20 * 100vw / 1200), 20px) min(calc(38 * 100vw / 1200), 38px);
    background: #fff url(../images/bg_tc.webp) no-repeat center center / cover;
    color: #333;
    text-align: center;
    box-sizing: border-box;
}
.tc_result[hidden] {
    display: none;
}
.tc_result_wrapper {
    background: #fff;
    margin: 0 0 min(calc(32 * 100vw / 1200), 32px);
    padding: min(calc(30 * 100vw / 1200), 30px) 0 0;
    overflow:hidden;
}
.tc_result_title {
    margin: 0;
    font-size: min(calc(32 * 100vw / 1200), 32px);
    font-weight: 800;
    line-height: 1.4;
    color: #333;
}
.tc_tickets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: min(calc(22 * 100vw / 1200), 22px) min(calc(14 * 100vw / 1200), 14px);
    margin: 0;
}
/* .tc_ticket svg,
.tc_ticket img {
    display: block;
    width: min(calc(120 * 100vw / 1200), 120px);
    height: auto;
} */
.tc_tickets img {
    height: auto;
    object-fit: cover;
}
/* チケット 1枚 */
.tc_tickets:has(img:nth-child(1):last-child) img {
    width: min(calc(162 * 100vw / 1200), 162px);
}
.tc_tickets:has(> img:nth-child(1):last-child) {
    margin: min(calc(54 * 100vw / 1200), 54px) 0 min(calc(66 * 100vw / 1200), 66px);
}
  /* チケット 2枚 */
.tc_tickets:has(img:nth-child(2):last-child) img {
    width: min(calc(162 * 100vw / 1200), 162px);
}
.tc_tickets:has(> img:nth-child(2):last-child) {
    margin: min(calc(48 * 100vw / 1200), 48px) 0 min(calc(72 * 100vw / 1200), 72px);
}
/* チケット 3枚 */
.tc_tickets:has(img:nth-child(3):last-child) img {
    width: min(calc(110 * 100vw / 1200), 110px);
}
.tc_tickets:has(> img:nth-child(3):last-child) {
    margin: min(calc(32 * 100vw / 1200), 32px) 0;
    padding: 0 min(calc(50 * 100vw / 1200), 50px);
}
  /* チケット 5枚 */
.tc_tickets:has(img:nth-of-type(5):last-child) img {
    width: min(calc(100 * 100vw / 1200), 100px);
}
.tc_tickets:has(> img:nth-child(5):last-child) {
    margin: min(calc(32 * 100vw / 1200), 32px) 0 min(calc(44 * 100vw / 1200), 44px);
}
.tc_result_text {
    margin: 0 0 min(calc(26 * 100vw / 1200), 26px);;
    font-size: min(calc(24 * 100vw / 1200), 24px);;
    font-weight: 600;
    line-height: 1.5;
    white-space: pre-line;
}
.tc_cta {
    display: inline-block;
    padding: min(calc(14 * 100vw / 1200), 14px) min(calc(64 * 100vw / 1200), 64px) min(calc(14 * 100vw / 1200), 14px) min(calc(32 * 100vw / 1200), 32px);
    border-radius: 9999px;
    background: #EE0000;
    color: #fff;
    font-size: min(calc(25 * 100vw / 1200), 25px);
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    position: relative;
}
.tc_cta::before {
    position: absolute;
    content: "";
    width: min(calc(24 * 100vw / 1200), 24px);
    height: min(calc(24 * 100vw / 1200), 24px);
    border-radius: 50%;
    background: #fff;
    top: 50%;
    right: min(calc(24 * 100vw / 1200), 24px);
    transform: translate(-50%, -50%);
}
.tc_cta::after {
    position: absolute;
    content: "";
    top: 50%;
    right: min(calc(34 * 100vw / 1200), 34px);
    transform: translate(-50%, -50%);
    width: min(calc(12 * 100vw / 1200), 12px);
    height: min(calc(14 * 100vw / 1200), 14px);
    background-color: #EE0000;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
}
.tc_cta:hover {
    opacity: .8;
}
@media screen and (max-width: 750px) {
    .tc_result {
        max-width: 100%;
        margin: calc(56 * 100vw / 750) auto 0;
        padding: calc(28 * 100vw / 750) calc(28 * 100vw / 750) calc(56 * 100vw / 750);
    }
    .tc_result_wrapper {
        margin: 0 0 calc(50 * 100vw / 750);
        padding: calc(50 * 100vw / 750) 0 0;
    }
    .tc_result_title {
        margin: 0 0 calc(46 * 100vw / 750);
        font-size: calc(48 * 100vw / 750);
    }
    .tc_tickets {
        gap: calc(34 * 100vw / 750) calc(18 * 100vw / 750);
    }
    /* .tc_ticket svg,
    .tc_ticket img {
        width: calc(146 * 100vw / 750);
    } */
    .tc_tickets:has(img:nth-child(1):last-child) img {
        width: calc(235 * 100vw / 750);
    }
    .tc_tickets:has(> img:nth-child(1):last-child) {
        margin: calc(78 * 100vw / 750) 0 calc(98 * 100vw / 750);
    }
      /* チケット 2枚 */
    .tc_tickets:has(img:nth-child(2):last-child) img {
        width: calc(235 * 100vw / 750);
    }
    .tc_tickets:has(> img:nth-child(2):last-child) {
        margin: calc(70 * 100vw / 750) 0 calc(106 * 100vw / 750);
    }
    /* チケット 3枚 */
    .tc_tickets:has(img:nth-child(3):last-child) img {
        width: calc(160 * 100vw / 750);
    }
    .tc_tickets:has(> img:nth-child(3):last-child) {
        margin: calc(46 * 100vw / 750) 0 calc(50 * 100vw / 750);
        padding: 0 calc(70 * 100vw / 750);
    }
      /* チケット 5枚 */
    .tc_tickets:has(img:nth-of-type(5):last-child) img {
        width: calc(146 * 100vw / 750);
    }
    .tc_tickets:has(> img:nth-child(5):last-child) {
        margin: calc(46 * 100vw / 750) 0 calc(66 * 100vw / 750);
    }
    .tc_result_text {
        margin: 0 0 calc(44 * 100vw / 750);
        font-size: calc(34 * 100vw / 750);
    }
    .tc_cta {
        padding: calc(30 * 100vw / 750) calc(100 * 100vw / 750) calc(30 * 100vw / 750) calc(50 * 100vw / 750);
        font-size: calc(36 * 100vw / 750);
    }
    .tc_cta::before {
        width: calc(36 * 100vw / 750);
        height: calc(36 * 100vw / 750);
        right: calc(36 * 100vw / 750);
    }
    .tc_cta::after {
        right: min(calc(82 * 100vw / 1200), 82px);
        width: calc(18 * 100vw / 750);
        height: calc(22 * 100vw / 750);
    }
}

/* ---- ログインモーダル ---- */
html.tc_modal_open {
    overflow: hidden;
}
.tc_modal_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    z-index: 10000;
}
.tc_modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 28px 32px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: center;
    z-index: 10001;
}
.tc_modal[hidden],
.tc_modal_bg[hidden] {
    display: none;
}
.tc_modal_close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
}
.tc_modal_title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
}
.tc_modal_label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
}
.tc_modal_input {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.tc_modal_error {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #e73323;
    text-align: left;
}
.tc_modal_error[hidden] {
    display: none;
}
.tc_modal_submit {
    display: block;
    width: 100%;
    margin: 4px 0 0;
    padding: 14px 10px;
    border: none;
    border-radius: 4px;
    background: #dc3023;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.tc_modal_submit:disabled {
    opacity: .6;
    cursor: default;
}
.tc_modal_note {
    margin: 28px 0 20px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
}
.tc_modal_note .tc_red {
    color: #e73323;
}
.tc_modal_register {
    font-size: 14px;
    color: #333;
    text-decoration: underline;
}
