/**
 * 公開・管理共通フッター。
 *
 * 概要:
 *   申込フォーム・マイページと同じ学会紺／ブルーグレーに揃える。
 *
 * 主な仕様:
 *   - 上端 3px を学会紺にし、見出し帯・主ボタンと視線を揃える。
 *   - 地色はページ背景（#eceff4）より一段暗い #e2e6ee。
 *   - リンクは Bootstrap 青ではなく学会紺。タップ領域は 44px 相当。
 *
 * 制限事項:
 *   - 文言・リンク有無は templates/layout/default.php 側で決まる。
 */
.footer {
    --footer-ink: #121755;
    --footer-text: #3a4260;
    --footer-muted: #68718c;
    --footer-rule: #c5ccd8;
    --footer-bg: #e2e6ee;
    --footer-font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
        "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
    margin-top: auto;
    padding: 1.35rem 0 1.6rem;
    background-color: var(--footer-bg);
    border-top: 3px solid var(--footer-ink);
    color: var(--footer-muted);
    font-family: var(--footer-font);
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer__text {
    margin: 0;
    color: var(--footer-text);
}

.footer__legal {
    margin-top: 0.85rem;
}

.footer__legal-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__legal-list li {
    display: flex;
    align-items: center;
}

.footer__legal-list li:not(:last-child)::after {
    content: "|";
    margin: 0 0.55rem;
    color: var(--footer-rule);
    font-weight: 400;
}

.footer a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--footer-ink);
    font-weight: 600;
    text-decoration: none;
}

.footer a:hover,
.footer a:focus {
    color: #1c2678;
    text-decoration: underline;
}

.footer a:focus-visible {
    outline: 2px solid var(--footer-ink);
    outline-offset: 3px;
    border-radius: 0.25rem;
}

#entry_form table,
#getTokenForm table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
}

#entry_form table th,
#getTokenForm table th {
    width: 22%;
    background: #f4f4f4;
    border: 1px solid #ccc;
    box-sizing: border-box;
    padding: 15px;
    vertical-align: middle;
    font-weight: bold;
    text-align: center;
}

#entry_form table td,
#getTokenForm table td {
    background: #fff;
    border: 1px solid #ccc;
    box-sizing: border-box;
    padding: 15px;
    vertical-align: top;
    text-align: left;
}

@media all and (max-width: 767px) {
    #entry_form table th,
    #entry_form table td,
    #getTokenForm table th,
    #getTokenForm table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }

    #entry_form table tr:last-child td:last-child,
    #getTokenForm table tr:last-child td:last-child {
        border-bottom: 1px solid #ccc;
    }
}

input[type="checkbox"] {
    width: 18px;
    /* チェックボックスの幅を変更 */
    height: 18px;
    /* チェックボックスの高さを変更 */
    /*display: ;background-color: #f00;*/
    /* チェックボックスの背景色を変更 */
    border-color: #444444;

    margin: 8px;
}

input[type="radio"] {
    width: 18px;
    /* チェックボックスの幅を変更 */
    height: 18px;
    /* チェックボックスの高さを変更 */
    /*display: ;background-color: #f00;*/
    /* チェックボックスの背景色を変更 */
    border-color: #444444;

    margin: 8px;
}

.textarea {
    border-color: #444444;

    margin: 8px;
}

.colorRed {
    color: red;
}

.form-ck {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.form-ck input[type="checkbox"].form-check-input {
    margin-top: 0;
    flex-shrink: 0;
}

.form-check {
    padding-left: 0;
}

/* Flash messages */
.message {
    padding: 1rem;

    background: #eff8ff;
    color: #2779bd;

    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.message.hidden {
    display: none;
}

.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}

.message.warning {
    background: #fffabc;
    color: #8d7b00;
    border-color: #d3b800;
}

.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

.error-message {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

.top_info_box {
    padding: 20px;
    margin: 20px;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#fefcea+0,fff2cc+100 */
    background: #fefcea; /* Old browsers */
    background: -moz-linear-gradient(
        top,
        #fefcea 0%,
        #fff2cc 100%
    ); /* FF3.6-15 */
    background: -webkit-linear-gradient(
        top,
        #fefcea 0%,
        #fff2cc 100%
    ); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(
        to bottom,
        #fefcea 0%,
        #fff2cc 100%
    ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefcea', endColorstr='#fff2cc',GradientType=0 ); /* IE6-9 */
}

.top_info_box h3 {
    font-size: 130%;
    color: rgb(43, 42, 42);
}

/*
 * 公開申込フローのページ見出し・手順。
 * 装飾を増やさず、大会名を主役にしたタイポ階層と余白で整える。
 */
.entry-page-head {
    margin: 1.75rem 0 1.25rem;
    padding-bottom: 1.25rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.entry-page-head__label {
    margin: 0 0 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #64748b;
}

.entry-page-head__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.entry-page-head__subtitle {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    color: #64748b;
}

.entry-intro {
    margin: 0 0 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    overflow: hidden;
}

.entry-intro__head {
    padding: 0.7rem 1.15rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.entry-intro__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1e293b;
}

.entry-intro__steps {
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
}

.entry-intro__step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.7rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
}

.entry-intro__step:last-child {
    border-bottom: none;
}

.entry-intro__step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.1rem;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: #475569;
    background: #ffffff;
}

.entry-intro__step-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #475569;
}

.entry-intro__note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.75rem 1.15rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.entry-intro__note-label {
    flex-shrink: 0;
    min-width: 3.5rem;
    padding: 0.1rem 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    color: #64748b;
    background: #ffffff;
}

.entry-intro__note-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #64748b;
}

.entry-form-wrap {
    margin-top: 0.25rem;
}

/* テスト決済バナー（ページ内・非固定） */
.entry-test-mode-alert {
    margin: 0.75rem 0 0;
    border-radius: 0.375rem;
}

@media all and (max-width: 767px) {
    .entry-page-head {
        margin: 1.1rem 0 0.9rem;
        padding-bottom: 0.9rem;
        text-align: left;
    }

    .entry-intro {
        margin-bottom: 1.15rem;
    }

    .entry-intro__step {
        gap: 0.65rem;
        padding: 0.65rem 1rem;
    }

    .entry-intro__note {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.7rem 1rem;
    }

    .entry-intro__note-label {
        min-width: 0;
        align-self: flex-start;
    }
}

/* 参加登録トップ（/users/top） */
.entry-top {
    margin: 1.75rem 0 2.5rem;
    padding: 0;
}

.entry-top__society {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #121755;
}

.entry-top__organizer {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: #475569;
}

.entry-top__title {
    margin: 1rem 0 0;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.45;
    color: #121755;
}

.entry-top__notice {
    margin-top: 1.35rem;
    padding: 1.15rem 1.25rem 1.2rem;
    background: #fff;
    border: 1px solid #d7deea;
    border-left: 4px solid #121755;
    border-radius: 0.25rem;
}

.entry-top__notice-title {
    margin: 0 0 0.7rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #121755;
}

.entry-top__notice p {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #1e293b;
}

.entry-top__list {
    margin: 0 0 0.9rem;
    padding-left: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #1e293b;
}

.entry-top__note {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.entry-top__actions {
    margin-top: 1.5rem;
    text-align: center;
}

.entry-top__cta {
    display: inline-block;
    min-width: 16rem;
    padding: 0.85rem 1.75rem;
    background: #121755;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 0.35rem;
}

.entry-top__cta:hover,
.entry-top__cta:focus {
    background: #1c2678;
    color: #fff;
}

.entry-top__cta:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

@media all and (max-width: 767px) {
    .entry-top__title {
        font-size: 1.2rem;
    }

    .entry-top__cta {
        width: 100%;
        min-width: 0;
    }
}


/* マイページログイン・再発行・再設定（スマホ幅でも横スクロールしない縦積みフォーム） */
.mypage-auth {
    margin: 1.35rem auto 2.5rem;
    max-width: 32rem;
}

.mypage-auth__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
    color: #121755;
}

.mypage-auth__lead {
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #1e293b;
}

.mypage-auth__hint {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.mypage-auth__form .input {
    margin-bottom: 1rem;
}

.mypage-auth__form .form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: #334155;
}

.mypage-auth__form .form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 16px;
}

.mypage-auth__submit {
    min-height: 44px;
    min-width: 8rem;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
}

.mypage-auth__links {
    margin: 1.15rem 0 0;
}

.mypage-auth__link {
    display: inline-block;
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: break-word;
}

@media all and (max-width: 767px) {
    .mypage-auth {
        margin: 1rem 0 2rem;
        max-width: none;
    }

    .mypage-auth__title {
        font-size: 1.05rem;
    }

    .mypage-auth .card-body {
        padding: 1rem;
    }

    .mypage-auth__submit {
        display: block;
        width: 100%;
    }
}

/* マイページ（ログイン後） */
.mypage {
    margin: 0.75rem 0 2.5rem;
}

.mypage__toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.85rem;
}

.mypage__logout {
    min-height: 44px;
}

.mypage__notice {
    margin: 0 0 1.25rem;
}

.mypage-docs__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mypage-docs__actions .btn {
    min-height: 44px;
    font-weight: 700;
}

.mypage-docs__note {
    margin: 1rem 0 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #64748b;
}

.mypage-action {
    min-height: 44px;
    font-weight: 700;
}

.mypage-action-footer {
    text-align: left;
}

.mypage-qr svg {
    max-width: min(100%, 240px);
    height: auto;
}

.mypage .entry-form-table th,
.mypage .entry-form-table td {
    overflow-wrap: anywhere;
}

@media all and (max-width: 767px) {
    .mypage__logout,
    .mypage-docs__actions .btn,
    .mypage-action {
        display: block;
        width: 100%;
    }

    .mypage-docs__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mypage .list-group-item.d-flex {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}
