@charset "UTF-8";

/* -------------------------------------------------------------------- *
 * PC/Webブラウザ向け
 * -------------------------------------------------------------------- */
@media screen and (min-width: 1024px) {

    /* ==================================================
     * 1. ベース設定
     * ================================================== */

    * {
        font-size: 14px !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        box-sizing: border-box;
    }

    body {
        width: 100% !important;
        margin: 0 !important;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 100vh;
    }

    header {
        width: 100% !important;
        margin: 0 !important;
        background-color: #fff;
        padding: 15px 0 !important;
        border-bottom: 1px solid #eee;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 100;
        height: auto !important;
    }

    header img {
        height: auto !important;
        max-height: 80px;
        width: auto !important;
        max-width: 100%;
        object-fit: contain;
    }

    header .title {
        display: block !important;
        font-size: 20px !important;
        font-weight: bold;
        color: #002E6B;
        margin-top: 10px;
    }

    header p {
        display: none !important;
    }

    /* メインコンテンツ（枠線・影なし） */
    main#reservation {
        width: 100%;
        max-width: 900px;
        margin: 0 auto 50px;
        padding: 40px;
        background: none;
        border: none;
        box-shadow: none;
    }


    /* ==================================================
     * 2. 見出し・テキスト
     * ================================================== */

    section {
        margin-bottom: 30px;
        padding: 0 !important;
        border: none;
    }

    #facility {
        display: block !important;
        padding: 0 !important;
        background: none !important;
        border: none;
    }

    /* 施設選択のプルダウンデザイン */
    #facility select {
        width: 100%;
        max-width: 300px;
        margin-top: 5px;
        display: block;
    }

    /* タイトル */
    section>.title,
    #reservation>.title,
    .questionDescription .title,
    #dateTime>.title,
    #numberUsers>.title,
    #facility>.title {
        font-size: 18px !important;
        font-weight: bold;
        color: #002E6B;
        margin: 0 0 15px 0;
        padding: 0 0 0 12px;
        border-left: 6px solid #002E6B;
        line-height: 1.4;
        background: none !important;
        width: 100%;
    }

    #reservation>.title {
        border-bottom: 1px solid #eee;
        border-left: none;
        padding-left: 0;
        margin-bottom: 30px;
        font-size: 24px !important;
        color: #333;
    }

    .text,
    .asterisk,
    #dateTime div,
    .c-table-caution {
        font-size: 12px !important;
        color: #666;
        margin-top: 5px;
        line-height: 1.5;
        padding-left: 0;
    }

    .asterisk {
        color: red;
    }

    #dateTime>div {
        margin-left: 0;
    }


    /* ==================================================
     * 3. フォーム要素
     * ================================================== */

    select,
    input[type="text"],
    input[type="number"] {
        height: 50px !important;
        padding: 0 15px !important;
        font-size: 15px !important;
        color: #333 !important;
        border: 1px solid #ccc;
        border-radius: 6px !important;
        background-color: #fff;
        line-height: normal;
    }

    #numberUsers {
        display: block;
        padding: 0 !important;
        background: none !important;
        border: none;
    }

    #numberUsers>.title {
        border: none;
        padding: 0 0 0 12px;
        margin-bottom: 10px;
        font-size: 18px !important;
        color: #002E6B;
        border-left: 6px solid #002E6B;
    }

    #numberUsers select.answer {
        width: 100%;
        max-width: 300px;
        margin-top: 5px;
        display: block;
    }

    .inputUsers {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-top: 10px;
    }

    .inputUsers input {
        width: 80px;
        text-align: center;
        margin: 0 !important;
    }


    /* ==================================================
     * 4. カレンダーエリア
     * ================================================== */

    #dateTime {
        margin-top: 20px;
    }

    #dateTime .button {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        margin: 0 0 20px 0;
        padding: 0;
    }

    #year,
    #month {
        font-size: 20px !important;
        font-weight: bold;
        color: #333;
    }

    #dateTime .fixed,
    #dateTime .calendarArea {
        position: static;
        width: 100%;
        border: none;
        padding: 0;
        margin: 0;
        background: none;
        box-shadow: none;
    }

    #dateTime table {
        table-layout: fixed !important;
        width: 100% !important;
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid #ccc;
        border-radius: 8px;
        overflow: hidden;
        margin: 0;
    }

    #dateTime th,
    #dateTime td {
        box-sizing: border-box !important;
        border-right: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        padding: 0 !important;
        vertical-align: middle;
        text-align: center;
        height: 50px !important;
    }

    #dateTime tr:last-child td {
        border-bottom: none;
    }

    #dateTime tr td:last-child,
    #dateTime tr th:last-child {
        border-right: none;
    }

    /* 1列目（時間列） */
    #dateTime tr>td:first-child,
    #dateTime tr>th:first-child,
    #yoyakubi {
        width: 60px !important;
        background-color: #f5f5f5;
        font-size: 12px !important;
        color: #555;
        font-weight: bold;
    }

    /* 2列目以降（日付列） */
    #dateTime tr>td:not(:first-child),
    #dateTime tr>th:not(:first-child),
    [id^="yoyakubi_"] {
        width: calc((100% - 60px) / 7) !important;
    }

    /* 日付ヘッダー（基本設定：平日用） */
    .subtitle td {
        height: 50px !important;
        background-color: #f7f7f7 !important;
        border-bottom: 1px solid #ddd !important;
    }

    /* 基本文字色（平日用） */
    [id^="nichi_"] {
        display: block;
        font-size: 16px !important;
        font-weight: bold;
        color: #333 !important;
        margin: 0 auto;
    }

    [id^="youbi_"] {
        display: block;
        font-size: 12px !important;
        color: #666 !important;
        margin: 0 auto;
    }

    .subtitle td.saturday {
        background-color: #3B96DD !important;
    }

    .subtitle td.holiday {
        background-color: #E57373 !important;
    }

    .saturday [id^="nichi_"],
    .saturday [id^="youbi_"],
    .holiday [id^="nichi_"],
    .holiday [id^="youbi_"] {
        color: #fff !important;
    }

    /* 予約枠 */
    #yoyaku td {
        font-size: 18px !important;
        background-color: #fff;
        cursor: default;
    }

    #yoyaku td.reservable_ok {
        color: #2e7d32;
        cursor: pointer;
    }

    #yoyaku td.reservable_ok:hover {
        background-color: #e8f5e9;
    }

    /* 選択中 */
    table .check {
        background-color: #fffde7 !important;
        box-shadow: inset 0 0 0 3px #fbc02d !important;
        color: #000;
        z-index: 5;
    }

    /* 予約日表示エリア */
    #conform {
        margin-top: 20px;
        padding: 15px 30px;
        background-color: #f0f7ff;
        border: 1px solid #cce3f6;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 20px;
    }

    #conform .title {
        margin: 0;
        margin-left: 15px !important;
        font-size: 14px !important;
        border: none;
        padding: 0;
        background: none;
        color: #555;
        white-space: nowrap;
    }

    #conform #reservDateTime {
        font-size: 18px !important;
        font-weight: bold;
        color: #002E6B;
        background: none;
        border: none;
        padding: 0;
        line-height: 1;
        margin-top: 1px;
    }


    /* ==================================================
     * 5. 料金・支払い
     * ================================================== */

    #estimate {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #fff8e1;
        border: 1px solid #ffecb3;
        padding: 15px 25px;
        border-radius: 6px;
        margin-bottom: 25px !important;
    }

    #estimate .title {
        margin: 0;
        font-size: 14px !important;
        border: none;
        padding: 0;
        background: none;
        color: #555;
    }

    #estimate .amount {
        font-size: 24px !important;
        font-weight: bold;
        color: #d32f2f;
    }

    .c-table__wrap {
        margin-top: 25px !important;
    }

    .c-table__wrap.mt30 {
        margin-top: 25px !important;
    }

    .c-table {
        width: 100%;
        border-collapse: collapse;
        border-radius: 0;
        margin-top: 0 !important;
    }

    .c-table th {
        background-color: #333;
        color: #fff;
        padding: 10px 15px !important;
        font-size: 13px !important;
        border: 1px solid #ccc;
    }

    .c-table td {
        padding: 10px 15px !important;
        font-size: 13px !important;
        border: 1px solid #ccc;
    }

    #fee img {
        max-width: 100%;
        border: 1px solid #eee;
        margin-top: 20px;
    }

    #payment .cashless-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
    }

    #payment .cashless-wrapper>div {
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 0 !important;
        text-align: center;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #payment .cashless-wrapper p {
        font-size: 13px !important;
        margin: 0;
        font-weight: bold;
        background-color: #002E6B;
        color: #fff;
        padding: 8px 0;
        width: 100%;
        display: block;
        flex-shrink: 0;
    }

    #payment .cashless-wrapper img {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain;
        display: block;
        flex-grow: 1;
        padding: 5px;
    }


    /* ==================================================
     * 6. 利用規約
     * ================================================== */

    #agreeArea {
        padding: 10px 0;
        margin-bottom: 20px;
        background: none;
        border: none;
    }

    #agreeBack {
        border: 1px solid #ccc;
        border-radius: 4px;
        height: 250px;
        padding: 20px;
        margin-bottom: 25px;
        overflow-y: auto;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
        background-color: #f3f3f3 !important;
    }

    #agreeBack * {
        font-size: 14px !important;
        line-height: 1.6;
        color: #333;
    }

    #agreeBack .title {
        font-size: 16px !important;
        font-weight: bold;
        margin-bottom: 15px;
        border-bottom: 1px solid #bbb;
        padding-bottom: 5px;
        border-left: none;
        color: #333;
    }

    #agreeBack ol {
        padding-left: 1.5em;
    }

    #agreeBack li {
        list-style: inherit;
    }

    #chkColunmn {
        width: fit-content;
        margin: 0 auto 40px;
        padding: 15px 40px;
        background-color: #fff;
        border: 2px solid #ccc;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
    }

    #chkColunmn:hover {
        border-color: #002E6B;
        background-color: #f0f8ff;
    }

    .checkBox {
        width: 24px;
        height: 24px;
        min-width: 24px;
        border: 2px solid #999;
        border-radius: 4px;
        margin-right: 15px;
        background-color: #fff;
        position: relative;
    }

    .checkBox.checked {
        background-color: #002E6B !important;
        border-color: #002E6B;
        background-image: none !important;
    }

    .checkBox.checked::after {
        content: '';
        position: absolute;
        left: 7px;
        top: 3px;
        width: 6px;
        height: 12px;
        border: solid #fff;
        border-width: 0 3px 3px 0;
        transform: rotate(45deg);
    }

    #chkColunmn label {
        font-size: 16px !important;
        font-weight: bold;
        cursor: pointer;
        margin: 0;
    }


    /* ==================================================
     * 7. ボタン
     * ================================================== */

    #btnReservation,
    .btn,
    button.acceptBtn,
    button.backBtn {
        width: 320px;
        margin: 0 auto 50px;
        padding: 16px 0;
        font-size: 18px !important;
        font-weight: bold;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        transition: opacity 0.2s;
    }

    #btnReservation:hover {
        opacity: 0.85;
    }


    /* ==================================================
     * 8. ツアー予約カレンダー（日程カレンダー）
     * ================================================== */

    #popMaster {
        width: 450px !important;
    }

    #popCalender {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: none !important;
        animation: none !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    #popCalender.show {
        opacity: 1;
        pointer-events: auto;
        transform: none !important;
        animation: none !important;
    }

    #popCalender .container {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        width: 600px;
        max-width: 90%;
        max-height: 90vh;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
        overflow-y: auto;
        padding: 25px 30px;
        margin: 0;
    }

    #popCalender .header {
        margin: 0 0 15px 0;
    }

    #popCalender .header .title {
        font-size: 20px !important;
        font-weight: bold;
        margin-bottom: 0;
        color: #002E6B;
    }

    .month-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    #currentMonth {
        font-size: 18px !important;
        font-weight: bold;
        color: #333;
        margin: 0;
    }

    #currentMonth span {
        font-size: 28px !important;
        color: #002E6B;
        margin: 0 5px;
    }

    #prevMonth,
    #nextMonth {
        background: #fff;
        border: 1px solid #e0e0e0;
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 13px !important;
        cursor: pointer;
        transition: all 0.2s;
        color: #555;
    }

    #prevMonth:hover,
    #nextMonth:hover {
        background-color: #f5f5f5;
        border-color: #ccc;
    }

    /* テーブル：コンパクト化 */
    .calendar-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 4px;
    }

    .calendar-table th {
        background: none;
        border: none;
        border-bottom: 2px solid #ddd;
        color: #666;
        font-size: 13px !important;
        font-weight: bold;
        padding: 5px 0 !important;
        height: auto;
        vertical-align: bottom;
    }

    .calendar-table td {
        border: none;
        background: #fff;
        vertical-align: top;
        height: 65px;
        padding: 5px;
        border-radius: 6px;
        position: relative;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
        border: 1px solid #f2f2f2;
        transition: all 0.2s;
    }

    .calendar-table .date {
        font-size: 13px;
        color: #555;
        font-weight: bold;
        position: absolute;
        top: 6px;
        left: 8px;
    }

    .calendar-table .status {
        position: absolute;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 20px;
        font-weight: bold;
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .calendar-table td.available:hover {
        background-color: #f7fbff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 46, 107, 0.1);
        cursor: pointer;
        border-color: #002E6B;
    }

    .calendar-table td.selected {
        background-color: #002E6B !important;
        color: #fff !important;
        box-shadow: 0 2px 6px rgba(0, 46, 107, 0.3);
        transform: scale(1.02);
    }

    .calendar-table td.selected .date {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .calendar-table td.selected .status {
        color: #fff !important;
    }

    .calendar-table td.unavailable,
    .calendar-table td.capazero {
        background-color: #fafafa;
        box-shadow: none;
        border-color: #eee;
    }

    .calendar-table td.unavailable .status,
    .calendar-table td.capazero .status {
        color: #ddd;
        font-size: 18px;
    }

    #popCalender .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 48px;
        color: #ccc;
        background: none;
        border: none;
        cursor: pointer;
        line-height: 0.8;
        padding: 0;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #popCalender .close-btn:hover {
        color: #555;
        background-color: #f7f7f7;
        border-radius: 50%;
    }

    #schedule {
        width: auto;
        max-width: 900px;
        margin: 30px auto;
        transform: none;
        background: none;
    }


    /* ==================================================
     * 9. ツアー予約時間
     * ================================================== */

    #timeOptions .time-item {
        margin: 0px;
    }
    #timeOptions label {
        padding-top: 10px;
    }
    #timeOptions span {
        font-size: 18px !important;
    }


    /* ==================================================
     * 10. 予約確認画面
     * ================================================== */

    /* 確認画面全体エリア */
    #conf {
        width: 100%;
        max-width: 600px;
        margin: 0 auto 30px;
        padding: 20px;
        box-sizing: border-box;
    }

    /* タイトルエリア */
    #conftitle {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        margin-bottom: 5px;
        border: none !important;
        background: none !important;
    }
    #conftitle #confhead {
        display: block !important;
        width: 100%;
        font-size: 30px !important;
        font-weight: bold;
        color: #002E6B;
        text-align: center;
        margin-bottom: 0px;
    }
    #conftitle .title {
        display: block !important;
        width: 100%;
        font-size: 14px !important;
        color: #333;
        line-height: 1.8;
        text-align: center;
        font-weight: normal !important;
        border: none !important;
    }

    /* 各項目のカード */
    #conf #feeBreakDown {
        /* サイズと配置 */
        width: 100% !important;
        padding: 20px 30px !important;
        /* デザイン（モダンな独立カード） */
        border: 1px solid #eaeaea;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
        /* 内部レイアウト */
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        float: none !important;
    }

    #conf #confname,
    #conf #confshisetu,
    #conf #confnameUsers,
    #conf #conffee,
    #conf #confdate {
        margin: 10px;
    }

    /* 項目名（左側） */
    #conf .confcont .title {
        float: none !important;
        width: auto !important;
        font-weight: bold;
        margin: 0;
        padding: 0;
        border: none;
        background: none;
        text-align: left;
        white-space: nowrap;
    }

    /* 内容（右側） */
    #conf .confcont .content {
        float: none !important;
        width: auto !important;
        text-align: right !important;
        font-size: 15px !important;
        font-weight: bold;
        color: #002E6B;
        margin-left: 20px;
    }

    /* ボタンエリア */
    #confBtn,
    #payacceptBtn,
    #BackBtn {
        text-align: center;
        margin: 0;
        clear: both;
    }

    /* ボタン共通 */
    #conf button,
    #payacceptBtn button,
    #BackBtn button {
        width: 100%;
        max-width: 320px;
        margin: 12px auto;
        padding: 14px 0;
        font-size: 16px !important;
        font-weight: bold;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: transform 0.2s, opacity 0.2s;
        border: none;
        display: block;
    }

    #conf button:hover,
    #payacceptBtn button:hover,
    #BackBtn button:hover {
        transform: translateY(-2px);
    }

    /* 予約確定ボタン */
    .acceptBtn {
        background-color: #002E6B;
        color: white;
        margin-top: 30px !important;
    }

    /* 戻るボタン */
    .backBtn {
        background-color: #fff;
        color: #555;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    .backBtn:hover {
        background-color: #f9f9f9;
        border-color: #ccc !important;
    }


    /* ==================================================
     * 11. スタジアムシティ会員情報
     * ================================================== */

    #memberInfo {
        display: block;
        width: 100%;
    }

    #memberInfo .member-options {
        display: flex;
        flex-direction: column;
        gap: 5px !important;
        margin-top: 15px !important;
        margin-left: 20px !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }

    /* 選択肢（ラベル）のデザイン */
    #memberInfo label {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 300px;
        padding: 5px 20px;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 15px !important;
        font-weight: bold !important;
        color: #333 !important;
        margin-right: 0 !important;
        background: none;
    }

    /* ラジオボタン本体 */
    #memberInfo input[type="radio"] {
        /* スマホのサイズ指定(inline-size/block-size)をリセット */
        inline-size: auto !important;
        block-size: auto !important;
        width: auto !important;
        height: auto !important;

        margin: 0 15px 0 0 !important;
        transform: scale(1.2);
        cursor: pointer;
        accent-color: #002E6B;
    }
}
