/* entry-std 共通スタイル SpeedKing default-m.cssを踏襲しレスポンシブ化 */

body {
    margin: 0;
    font-family: 'Noto Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: #222;
    background-color: #fff;
}

.page {
    max-width: 900px;
    margin: 10px auto 40px;
    padding: 0 12px;
    text-align: center;
}

.top_img {
    width: 100%;
    height: auto;
}

.event_title {
    font-size: 1.7em;
    text-align: center;
    word-break: auto-phrase;
}

.event_date {
    font-size: 1.4em;
    text-align: center;
}

.progress_status {
    font-size: 1.0em;
    text-align: center;
    margin: 20px 0;
}

.index_text {
    margin: 1em 0;
    text-align: left;
    display: inline-block;
}

.entry_state {
    margin: 1.5em 0;
    font-size: 1.2em;
}

.entry_link {
    font-weight: bold;
}

.sub_text {
    font-size: 0.8em;
}

.error_box {
    margin: 1em 0;
    padding: 0.5em 1em;
    border: solid 2px #c00;
    border-radius: 8px;
    color: #c00;
    text-align: left;
}

/* クラス選択アコーディオン */

.hidden_box {
    margin: 2em 0;
    padding: 0;
}

.class_name {
    display: block;
    padding: 15px;
    font-weight: bold;
    border: solid 2px black;
    cursor: pointer;
    font-size: 1.6em;
    border-radius: 15px;
    text-align: center;
    background-color: #f8f8f8;
}

.class_full {
    color: #999;
    border-color: #999;
    cursor: default;
}

.class_checkbox {
    display: none;
}

.hidden_box .hidden_show {
    height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.8s;
    margin-left: 25px;
    margin-right: 25px;
}

.hidden_box input:checked~.hidden_show {
    padding: 10px 0;
    height: auto;
    opacity: 1;
}

.hidden_box input:checked~.class_name,
.class_checkbox:checked+.hidden_show {
    background-color: #e8f2fb;
}

/* 入力部品 */

.input_item {
    margin: 10px;
    padding: 10px;
}

.field_name {
    font-size: 1.2em;
    margin-bottom: 4px;
}

.field_name_sub {
    font-size: 0.9em;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"] {
    font-size: 1.3em;
    border: 1px solid black;
    border-radius: 4px;
    padding: 8px;
    max-width: 45%;
}

input.tp_no,
input.chassis_input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.rental_label {
    display: block;
    margin-top: 8px;
    font-size: 1.1em;
}

textarea {
    font-size: 1.3em;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid black;
    border-radius: 4px;
}

select.item_select {
    font-size: 1.3em;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    cursor: pointer;
    border: 1px solid black;
    border-radius: 15px;
    background: #fff;
}

.please_select {
    font-size: 1.3em;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
}

button {
    width: 100%;
    max-width: 500px;
    padding: 18px 10px;
    margin: 10px auto;
    font-size: 1.3em;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    color: #fff;
    background-color: #0070c9;
    cursor: pointer;
}

/* テーブル */

.table_title {
    font-size: 1.3em;
    margin: 1em 0 0.5em;
}

.table_plain {
    margin: 0 auto;
    border-collapse: collapse;
    text-align: left;
}

.table_plain td {
    padding: 4px 8px;
}

.confirm_table {
    margin-bottom: 1.5em;
}

.confirm_lead {
    font-size: 1.2em;
}

.table_main {
    margin: 0 auto;
    border-collapse: collapse;
}

.table_main th,
.table_main td {
    border: 1px solid #999;
    padding: 6px 10px;
}

.table_main th {
    background-color: #f0f0f0;
}

.list_links {
    margin: 1.5em 0;
}

.complete_box {
    margin: 2em 0;
    font-size: 1.1em;
}

/* staff */

.notice_box {
    margin: 1em 0;
    padding: 0.5em 1em;
    border: solid 2px #0a0;
    border-radius: 8px;
    color: #070;
}

input[type="password"],
input[type="file"] {
    font-size: 1.1em;
    border: 1px solid black;
    border-radius: 4px;
    padding: 8px;
}

.wide_table {
    overflow-x: auto;
    text-align: left;
}

.wide_table .table_main {
    margin: 0;
    white-space: nowrap;
}

.ua_cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.config_table {
    text-align: left;
    width: 100%;
}

/* ラベル列の幅を固定し 複数テーブル間で値の開始位置を揃える */
/* keep-all: ラベルは文字途中で折り返さず スペース位置でのみ改行させる */
.config_table td:first-child {
    width: 35%;
    word-break: keep-all;
}

button.btn_danger {
    background-color: #c0392b;
}

.inline_form {
    display: inline;
}

button.btn_small {
    width: auto;
    max-width: none;
    margin: 0 0 0 8px;
    padding: 6px 16px;
    font-size: 0.95em;
}

button.btn_copy {
    background-color: #6b7b8c;
}

button.btn_copied {
    background-color: #2e9e44;
}

/* パスワード下のボタン行 左にコピー 右に再発行 */
.pass_actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.pass_actions button {
    margin: 0;
}

.upload_row {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.upload_row input[type="file"] {
    max-width: 60%;
    font-size: 0.95em;
}

/* admin画面はPCでは幅を絞る */

.admin_page {
    max-width: 640px;
}

/* admin画面はテーブルをセンタリング */

.admin_page .wide_table {
    text-align: center;
}

.admin_page .wide_table .table_main {
    margin: 0 auto;
    display: inline-table;
}

.config_table td {
    padding: 6px 8px;
    vertical-align: top;
}

.config_table input[type="text"] {
    max-width: 100%;
    font-size: 1em;
}

.equip_choices {
    display: block;
    margin-top: 6px;
}

.equip_choices input[type="text"],
.equip_choices textarea {
    display: block;
    margin-top: 4px;
}

.config_table textarea {
    font-size: 1em;
}

/* スマホ */

@media (max-width: 600px) {
    .event_title,
    .event_date {
        font-size: 1.3em;
    }

    /* 設定テーブルは縦積みにする ラベルの下に入力欄 横スクロール無し */
    /* table/tbodyもブロック化しないとSafariがsize/cols指定の固有幅で
       テーブルを画面より広げてしまう */
    .config_table,
    .config_table tbody,
    .config_table tr,
    .config_table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .config_table td:first-child {
        width: 100%;
        padding: 10px 8px 2px;
        font-weight: bold;
    }

    .config_table td + td {
        padding: 2px 8px 10px;
    }

    .config_table input[type="text"],
    .config_table input[type="date"],
    .config_table input[type="datetime-local"],
    .config_table select,
    .config_table textarea {
        width: 100%;
        box-sizing: border-box;
    }

    .class_name {
        font-size: 1.3em;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        font-size: 16px;
    }

    select.item_select,
    textarea {
        font-size: 16px;
    }
}
