/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* リセット */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f9;
    margin: 0;
    /* padding: 10px; */
    box-sizing: border-box;
}

/* ヘッダーは要件資料用なので非表示 */
.header {
    display: none;
}

/* メインレイアウト */
.main-container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff; /* 白背景カード化 */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* 統合メインコンテンツ */
.main-content {
    flex: 1;
    width: 100%;
}

.title-section {
    text-align: center;
    margin-bottom: 20px;
}

.event-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    display: inline-block; /* 内部を左寄せにしつつ中央配置 */
    text-align: left;
    margin: 0; /* 余白リセット */
}

.region-text {
    color: var(--primary-color);
    font-weight: bold;
}

/* 第50回 */
.event-count {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px; /* 上下を詰める */
    line-height: 1.0;
}

/* イベント詳細（日付情報） */
.event-details {
    color: #666;
    font-size: 14px;
    margin: 8px 0 0 0;
    text-align: center;
    font-weight: 500;
}

/* 参加事前登録セクション */
.registration-section {
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0 5px;
}

.date {
    margin-top: 10px;
    margin-bottom: 5px;
}

.seminar-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    margin-left: 20px;
}

/* === 赤枠部分をグレーに === */
.registration-content {
    display: flex;
    gap: 40px;
    background: #f8f8f8; /* グレー背景 */
    padding: 40px;
    border-radius: 8px;
    flex-wrap: wrap;
}

.member-login-area,
.non-member-area {
    flex: 1 1 300px;
}

/* 会員ログインエリア */
.member-login-area {
    text-align: center;
}

.login-text {
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.login-btn,
.registration-btn,
.student-btn,
.member-login-btn,
.non-member-btn,
.student-sidebar-btn,
.participation-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
}

/* 非会員・学生エリア */
.non-member-area {
    text-align: center;
    /* 背景は registration-content と合わせてグレーに見えるよう transparent */
    background: transparent;
}

.registration-btn,
.student-btn {
    padding: 14px 24px;
    font-weight: bold;
    width: 100%;
    margin: 12px 0;
    cursor: pointer;
}

/* ========= レスポンシブ ========= */
@media (max-width: 768px) {
    /* スマホ用カード余白・角丸調整 */
    .main-container {
        margin: 20px 10px;
        padding: 10px 5px;
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    }

    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    /* タイトルセクション - スマホ版で調整 */
    .title-section {
        margin-bottom: 16px;
    }

    .event-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .event-count {
        margin-bottom: 8px;
    }

    /* 参加事前登録セクション - スマホ版調整 */
    .registration-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .member-login-area,
    .non-member-area {
        flex: 1 1 auto;
    }

    /* セクションタイトル調整 */
    .section-title {
        font-size: 18px;
        margin: 24px 0 16px;
    }

    /* スマホ表示時のセミナーグループ調整 */
    .seminar-group {
        padding: 20px;
    }

    .seminar-main-title {
        font-size: 16px;
    }

    .seminar-sub-title {
        font-size: 14px;
    }

    .seminar-option {
        width: 100%;          /* 親幅いっぱいに収める */
        box-sizing: border-box;
        padding: 16px;
        gap: 10px;
    }

    .seminar-option-main {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .option-name {
        font-weight: 500;
        flex-grow: 1;
        text-align: left;
        margin-right: 20px;
    }

    .option-price {
        white-space: nowrap;
        margin-left: 0;
        width: auto;
        flex-shrink: 0;
        text-align: right;
    }

    .option-status {
        white-space: nowrap;
        margin-left: auto;
        width: auto;
        flex-shrink: 0;
    }

    .option-note {
        position: static;
        width: 100%;
        margin-top: 4px;
        font-size: 11px;
        order: 10;
    }

    .seminar-option.has-note {
        padding-bottom: 12px;
    }

    /* スマホでのテーブル表示改善 */
    .seminar-table {
        font-size: 12px;
        margin-top: 10px;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .seminar-table th {
        padding: 8px 4px;
        font-size: 11px;
        line-height: 1.2;
    }

    .seminar-table td {
        padding: 8px 4px;
        font-size: 11px;
        line-height: 1.3;
        word-wrap: break-word;
        white-space: normal;
        vertical-align: middle;
    }

    /* 列幅の調整 */
    .seminar-table th:nth-child(1),
    .seminar-table td:nth-child(1) {
        width: 8%;
        min-width: 30px;
    }

    .seminar-table th:nth-child(2),
    .seminar-table td:nth-child(2) {
        width: 20%;
        min-width: 70px;
    }

    .seminar-table th:nth-child(3),
    .seminar-table td:nth-child(3) {
        width: 28%;
        min-width: 75px;
    }

    .seminar-table th:nth-child(4),
    .seminar-table td:nth-child(4) {
        width: 14%;
        min-width: 45px;
    }

    .seminar-table th:nth-child(5),
    .seminar-table td:nth-child(5) {
        width: 20%;
        min-width: 80px;
    }

    .seminar-table th:nth-child(6),
    .seminar-table td:nth-child(6) {
        width: 10%;
        min-width: 45px;
    }

    /* ラジオボタンのサイズ調整 */
    .seminar-table input[type="radio"] {
        width: 14px;
        height: 14px;
        margin: 0;
    }

    /* スマホ版では予約状況ヘッダーの改行を表示 */
    .seminar-table th br {
        display: block;
    }

    /* 共催学術セミナーセクションの調整 */
    .co-seminar {
        margin-top: 20px;
    }

    .co-seminar .section-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .co-seminar .date {
        font-size: 13px;
        margin: 8px 0;
        font-weight: 600;
        color: #555;
    }

    .co-seminar .seminar-price {
        font-size: 14px;
        color: var(--primary-color);
        font-weight: 700;
        margin-left: 16px;
    }

    /* 各セミナー項目間の余白を拡大 */
    .seminar-item {
        margin-bottom: 20px;
    }

    /* スマホ版での説明文調整 */
    .registration-instructions {
        padding: 16px;
        margin: 16px 0;
    }

    .registration-instructions p {
        font-size: 13px;
    }

    /* スマホ版での会員種別選択調整 */
    .member-type-selection {
        flex-wrap: nowrap;
        gap: 4px;
        width: 100%;
    }

    .member-type-option {
        flex: 1 1 0;
        min-width: 0;
        padding: 4px 6px;
        box-sizing: border-box;
    }

    .member-type-label {
        font-size: 13px;
    }

    .form-row {
        gap: 5px;
    }

    .form-row:not(.responsive-stack) {
        flex-wrap: nowrap;
    }

    .form-row.responsive-stack {
        flex-direction: column;
        gap: 15px;
    }

    .form-group {
        flex: 1 1 auto;
        min-width: 0;
    }

    .form-row:not(.responsive-stack) .form-group {
        min-width: 50px;
    }

    .form-input {
        padding: 10px 8px;
        font-size: 13px;
    }

    .member-type-selection {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .member-type-option {
        padding: 6px 8px;
        flex: 0 1 auto; /* 柔軟に縮小できるように設定 */
    }

    .member-type-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
  .member-type-selection {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    width: 100%;
  }
  .member-type-option {
    flex: 1 1 0;
    min-width: 0 !important;
    padding: 12px 20px !important;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 33.33%;
    border: 1px solid #ddd !important;
  }
  .member-type-option input[type="radio"] {
    margin: 0 2px 0 0;
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
  }
  .member-type-label {
    font-size: 13px !important;
    white-space: nowrap;
    padding: 0;
    margin: 0;
  }
}

/* 既存のボタン共通モダンスタイル整理 */
button,
.login-btn,
.registration-btn,
.student-btn,
.member-login-btn,
.non-member-btn,
.student-sidebar-btn,
.participation-btn {
    font-family: inherit;
    transition: none;
}

button:hover,
.login-btn:hover,
.registration-btn:hover,
.student-btn:hover,
.member-login-btn:hover,
.non-member-btn:hover,
.student-sidebar-btn:hover,
.participation-btn:hover {
    transform: none;
}

/* 会員ログインボタン調整 */
.login-btn {
    padding: 12px 24px;
    width: 100%;
    margin-top: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* ========== 参加申込(会員) 追加 ========== */
.member-info-box {
    display: inline-block;
    background: var(--tint-bg-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    float: right; /* 右寄せ配置 */
    clear: both; /* フロートクリア */
}

/* スマホ版での会員情報ボックス調整 */
@media (max-width: 768px) {
    .member-info-box {
        float: right;
        clear: both;
        text-align: center;
        margin: 0 0 10px 0;
        font-size: 12px;
        padding: 4px 10px;
        display: inline-block;
    }
}

.sub-heading {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin: 15px 0 10px;
}

/* 会員種別選択 */
.member-type-selection {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin: 20px 0;
}

.member-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s;
    min-width: 120px;
    justify-content: center;
}

.member-type-option:hover {
    border-color: var(--primary-color);
    background: var(--tint-bg-color);
}

.member-type-option input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.member-type-option input[type="radio"]:checked + .member-type-label {
    color: var(--primary-color);
    font-weight: 600;
}

.member-type-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: var(--tint-bg-color);
}

.member-type-label {
    font-weight: 500;
    font-size: 14px;
}

/* 参加事前登録の説明 */
.registration-instructions {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.registration-instructions p {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.registration-instructions p:first-child {
    margin-bottom: 8px;
}

/* セミナーグループ（階層構造対応） */
.seminar-group {
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.seminar-main-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* 見出し＋外部リンクボタンの行 */

.seminar-header-with-link {
    display: block;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* ヘッダコンテナ内では h4 側の下線は重複させない */
.seminar-header-with-link .seminar-main-title {
    margin: 0;
    padding: 0;
    border: 0;
}

/* 参加画面の外部リンクボタン（進むボタンと同色系） */
.external-link-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-2) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.external-link-btn:hover {
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color-3) 100%);
    box-shadow: 0 6px 20px var(--shadow-hover-color);
    transform: translateY(-1px);
}

.external-link-btn:active {
    transform: translateY(0);
}

.seminar-item {
    margin-bottom: 8px;
}

.seminar-item:last-child {
    margin-bottom: 0;
}

.seminar-sub-title {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    /* margin-bottom: 5px; */
}

.seminar-option {
    display: block;
    padding: 3px 16px;
    /* background: #f9f9f9; */
    border-radius: 6px;
    cursor: pointer;
    /* transition: background-color 0.2s; */
    position: relative;
}

.seminar-option-main {
    display: flex;
    align-items: center;
    gap: 8px; /* チェックボックスと名称の間など適度な余白 */
    flex-wrap: nowrap; /* 通常は1行で表示、必要に応じて折り返しは名称で制御 */
}

.seminar-option.has-note {
    /* 特別なpadding調整は不要 */
}

.seminar-option:hover {
    /* background: #f0f0f0; */
}

.seminar-option.soldout {
    opacity: 0.6;
    cursor: not-allowed;
}

.seminar-option.soldout:hover {
    /* background: #f9f9f9; */
}

/* 警告メッセージ */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert p {
    margin: 0;
    line-height: 1.4;
}

.alert p:not(:last-child) {
    margin-bottom: 8px;
}

.seminar-option input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.option-name {
    font-weight: 600;
    margin-right: 4em; /* 5em のみで間隔を制御 */
    white-space: normal;
    min-width: 0;
    flex: 0 1 auto; /* コンテンツ幅分のみ使用 */
}

.option-price {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    width: 80px; /* 安定した列幅 */
    text-align: right;
    margin-left: 0;
    flex-shrink: 0;
}

.option-status {
    color: #e74c3c;
    font-weight: 700;
    white-space: nowrap;
    width: 50px; /* ステータスの幅を固定 */
    text-align: left;
    margin-left: 8px;
    flex-shrink: 0;
}

.option-note {
    font-size: 12px;
    line-height: 1.4;
    padding-left: 26px; /* チェックボックス分のインデント */
}

.red-note {
    color: #e74c3c;
}

.black-note {
    color: #666;
}

/* 既存のスタイル（後方互換性のため残す）*/
.application-list .status,
.seminar-table .status {
    color: #e74c3c;
    font-weight: 700;
}

/* セミナーテーブル */
.seminar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    table-layout: fixed;
}

/* PC版での列幅指定 */
.seminar-table th:nth-child(1),
.seminar-table td:nth-child(1) { width: 8%; }

.seminar-table th:nth-child(2),
.seminar-table td:nth-child(2) { width: 7%; }

.seminar-table th:nth-child(3),
.seminar-table td:nth-child(3) { width: 32%; }

.seminar-table th:nth-child(4),
.seminar-table td:nth-child(4) { width: 16%; }

.seminar-table th:nth-child(5),
.seminar-table td:nth-child(5) { width: 25%; }

.seminar-table th:nth-child(6),
.seminar-table td:nth-child(6) { width: 12%; }

/* PC版では予約状況ヘッダーの改行を非表示 */
.seminar-table th br {
    display: none;
}

.seminar-table th {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    line-height: 1.3;
}

.seminar-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.4;
}

/* テーマ列と座長/演者列を左寄せ */
.seminar-table td:nth-child(3),
.seminar-table td:nth-child(5) {
    text-align: left;
}



.soldout-row {
    background: #f3f3f3 !important;
    opacity: 0.6;
    color: #999;
    cursor: not-allowed;
}

.soldout-row td {
    background: #f3f3f3 !important;
    cursor: not-allowed;
}

.soldout-row input[type="radio"] {
    cursor: not-allowed;
    opacity: 0.5;
}

/* 満席ステータスの文字 */
.status {
    color: #e74c3c !important;
    font-weight: 700;
    font-size: 13px;
}

/* ラジオボタン選択状態の行スタイル */
.seminar-table tbody tr.selected {
    background: var(--tint-bg-color) !important;
    border-left: 3px solid var(--primary-color);
}

.seminar-table tbody tr.selected td {
    background: transparent;
}

/* 選択可能行のホバー効果 */
.seminar-table tbody tr:not(.soldout-row) {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.seminar-table tbody tr:not(.soldout-row):hover {
    background: var(--tint-bg-color) !important;
}

.seminar-table tbody tr:not(.soldout-row):hover td {
    background: transparent;
}

/* モバイルで時間列を広げる（PCルールより後勝ちする強制上書き） */
@media (max-width: 768px) {
    .seminar-table th:nth-child(2),
    .seminar-table td:nth-child(2) { width: 20% !important; }
    .seminar-table th:nth-child(3),
    .seminar-table td:nth-child(3) { width: 28% !important; }
    .seminar-table th:nth-child(4),
    .seminar-table td:nth-child(4) { width: 14% !important; }
    .seminar-table th:nth-child(5),
    .seminar-table td:nth-child(5) { width: 20% !important; }
    .seminar-table th:nth-child(6),
    .seminar-table td:nth-child(6) { width: 10% !important; }
}

/* クリアボタンのスタイル */
.clear-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 15px;
    transition: background-color 0.2s;
}

.clear-btn:hover {
    background: #5a6268;
}

.clear-btn:active {
    transform: translateY(1px);
}

/* スマホ版でのクリアボタン調整 */
@media (max-width: 768px) {
    .clear-btn {
        font-size: 12px;
        padding: 6px 12px;
        margin-top: 8px;
        margin-bottom: 12px;
    }
}

/* 進むボタンセクション */
.proceed-section {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
}

.proceed-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-2) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 100px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.proceed-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.proceed-btn:hover {
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color-3) 100%);
    box-shadow: 0 6px 20px var(--shadow-hover-color);
    transform: translateY(-2px);
}

.proceed-btn:hover::before {
    left: 100%;
}

.proceed-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-icon {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.proceed-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* スマホ版での進むボタン調整 */
@media (max-width: 768px) {
    .proceed-section {
        margin-top: 20px;
        padding-top: 16px;
    }

    .proceed-btn {
        font-size: 13px;
        padding: 10px 20px;
        min-width: 85px;
        border-radius: 8px;
        gap: 5px;
        box-shadow: 0 3px 12px var(--shadow-color);
    }

    .btn-icon {
        font-size: 14px;
    }

    .proceed-btn:hover {
        box-shadow: 0 4px 16px var(--shadow-hover-color);
    }
}

/* ========== 申込確認画面専用スタイル ========== */

/* 確認セクション */
.confirmation-section {
    margin-bottom: 30px;
}

.confirmation-section .section-title {
    text-align: center;
}

.confirmation-note {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.confirmation-content {
    background: #f8f9fa;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
}

/* .confirmation-items {
    margin-bottom: 20px;
} */

.confirmation-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 12px;
    justify-content: space-between;
}

.confirmation-item:last-child {
    border-bottom: none;
}

.item-icon {
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
    width: 20px;
}

.item-name {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
    margin-left: 0;
    align-self: center;
}

.item-price {
    color: var(--primary-color) !important;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
    min-width: 80px;
}

/* セミナー詳細 */
.seminar-details {
    /* margin-top: 20px; */
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.seminar-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.seminar-date .option-price {
    margin-left: auto;
}

.confirmation-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.confirmation-table th {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 8px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
}

.confirmation-table td {
    padding: 12px 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
}

.selected-seminar {
    background: var(--tint-bg-color);
}

.change-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-2) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.change-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.change-btn:hover {
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color-3) 100%);
    box-shadow: 0 6px 20px var(--shadow-hover-color);
    transform: translateY(-2px);
}

.change-btn:hover::before {
    left: 100%;
}

/* 変更ボタンセクション（枠外） */
.change-btn-section {
    text-align: center;
    margin-top: 10px;
}

/* お申込者情報 */
.applicant-info {
    margin-bottom: 30px;
}

.info-table {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.info-row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    background: #f0f0f0;
    padding: 12px 16px;
    font-weight: 600;
    width: 210px; /* 以前:190px → 転送先メールアドレスラベルが収まるようさらに拡張 */
    flex-shrink: 0;
    border-right: 1px solid #ddd;
}

.info-value {
    padding: 12px 16px;
    flex: 1;
}

/* お支払い方法選択 */
.payment-section {
    margin-bottom: 30px;
}

.payment-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s;
    min-width: 180px;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: var(--tint-bg-color);
}

.payment-option input[type="radio"] {
    margin: 0;
}

.payment-option input[type="radio"]:checked + .payment-label {
    color: var(--primary-color);
    font-weight: 600;
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: var(--tint-bg-color);
}

.payment-label {
    font-weight: 500;
}

/* 決済ボタン */
.payment-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-2) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.payment-btn:hover {
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color-3) 100%);
    box-shadow: 0 6px 20px var(--shadow-hover-color);
    transform: translateY(-2px);
}

.payment-btn:hover::before {
    left: 100%;
}

.payment-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* スマホ版での確認画面調整 */
@media (max-width: 768px) {
    .confirmation-content {
        padding: 16px;
    }

    .confirmation-table {
        font-size: 11px;
    }

    .confirmation-table th,
    .confirmation-table td {
        padding: 8px 4px;
    }

    .info-label {
        width: 100px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .info-value {
        font-size: 13px;
        padding: 10px 12px;
    }

    .payment-options {
        flex-direction: column;
        gap: 12px;
    }

    .payment-option {
        min-width: auto;
        width: 100%;
    }

    .payment-btn {
        font-size: 13px;
        padding: 10px 20px;
        min-width: 100px;
        gap: 5px;
    }

    .change-btn {
        font-size: 13px;
        padding: 10px 20px;
        min-width: 100px;
    }
}

/* ========== 決済画面専用スタイル ========== */

/* ページヘッダー（再定義） */
.page-header {
    background: var(--primary-color);
    color: #fff;
    padding: 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 12px 12px 0 0;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* 決済用登録セクション */
.payment-registration-section {
    margin-bottom: 30px;
}

.payment-registration-section .section-title {
    text-align: center;
    margin-bottom: 20px;
}

.payment-content {
    background: #f8f9fa;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 30px;
}

.payment-method-section {
    margin-bottom: 20px;
}

.payment-method-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* 決済フォームプレースホルダー */
.payment-form-placeholder {
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    margin-top: 20px;
}

.placeholder-text {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* 3Dセキュア説明 */
.security-notice {
    background: var(--primary-color);
    color: #fff;
    padding: 20px;
    margin: 20px auto 0 auto;
    max-width: 1100px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.security-notice p {
    margin: 0;
}

.highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* スマホ版での決済画面調整 */
@media (max-width: 768px) {
    .page-header {
        margin: -24px -16px 16px -16px;
        padding: 16px;
    }

    .page-title {
        font-size: 18px;
    }

    .payment-content {
        padding: 20px;
    }

    .payment-method-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .payment-form-placeholder {
        padding: 40px 16px;
    }

    .placeholder-text {
        font-size: 14px;
    }

    .security-notice {
        margin: 20px 10px 0 10px;
        padding: 16px;
        font-size: 13px;
    }
}

/* ========== 申込完了画面専用スタイル ========== */

/* 完了セクション */
.completion-section {
    margin-top: 40px;
    text-align: center;
}

.completion-message {
    background: #f8f9fa;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 40px 30px;
    margin: 20px auto;
    max-width: 700px;
}

.completion-message p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0;
    text-align: left;
}

/* スマホ版での完了画面調整 */
@media (max-width: 768px) {
    .completion-section {
        margin-top: 20px;
    }

    .completion-message {
        padding: 24px 20px;
        margin: 16px 0;
        max-width: none;
    }

    .completion-message p {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* ========== 個人情報入力画面専用スタイル ========== */

/* 個人情報入力セクション */
.personal-info-section {
    margin-bottom: 30px;
}

.personal-info-content {
    background: #f8f9fa;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 30px;
}

/* 入力説明 */
.input-instructions {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--tint-bg-color);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.instruction-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.instruction-item:last-of-type {
    margin-bottom: 12px;
}

.instruction-icon {
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
    width: 16px;
}

.instruction-text {
    font-weight: 500;
    color: #333;
}

.instruction-note {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
}

/* 重複チェックメッセージ */
.duplicate-check-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
}

.duplicate-check-message p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

/* 個人情報入力フォーム */
.personal-info-form {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group.full-width {
    flex-basis: 100%;
}

/* 詰めて表示するためのスタイル */
.form-row.packed > .form-group {
    flex: 0 0 auto; /* 不要な拡大を防ぐ */
    min-width: auto; /* グローバルの min-width:200px を上書き */
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-label.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-ring-color);
}

.was-validated .form-input:invalid {
    border-color: #e74c3c;
}

.was-validated .form-input:valid {
    border-color: #27ae60;
}

/* 注意事項セクション */
.notice-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #f39c12;
}

.notice-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.notice-details {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.notice-details p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* ナビゲーションセクション */
.navigation-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.back-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 100px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.back-btn:hover {
    background: #5a6268;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    transform: translateY(-2px);
}

.back-btn:hover::before {
    left: 100%;
}

.back-btn:hover .btn-icon {
    transform: translateX(-4px);
}

/* スマホ版での個人情報入力画面調整 */
@media (max-width: 768px) {
    .personal-info-content {
        padding: 10px;
    }

    /* packed行をモバイルでも横並びにしつつ、幅を自動調整 */
    .form-row.packed {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .form-row.packed > .form-group {
        flex: 1 1 0;
        min-width: 0; /* 縮小を許可して横並び維持 */
    }

    /* 所属施設名フィールドのみスマホで縦並び */
    .form-row.packed:has(#guest_organization) {
        flex-direction: column;
        gap: 10px;
    }

    .form-row.packed:has(#guest_organization) > .form-group {
        flex: none;
        width: 100%;
    }

    /* 住所フィールド（番地・ビル名等）のみスマホで縦並び */
    .form-row.packed:has(#guest_address1) {
        flex-direction: column;
        gap: 10px;
    }

    .form-row.packed:has(#guest_address1) > .form-group {
        flex: none;
        width: 100%;
    }

    /* メールアドレスフィールドのみスマホで縦並び */
    .form-row.packed:has(#guest_email) {
        flex-direction: column;
        gap: 10px;
    }

    .form-row.packed:has(#guest_email) > .form-group {
        flex: none;
        width: 100%;
    }

    .input-instructions {
        padding: 16px;
        margin-bottom: 16px;
    }

    .instruction-text {
        font-size: 13px;
    }

    .instruction-note {
        font-size: 12px;
    }

    .duplicate-check-message {
        padding: 12px;
        margin-bottom: 20px;
    }

    .duplicate-check-message p {
        font-size: 12px;
    }

    .form-row {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
    }

    .form-group {
        flex: 1 1 auto;
        min-width: 150px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .notice-section {
        padding: 12px;
        margin-top: 16px;
    }

    .notice-text {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .notice-details {
        padding: 10px;
    }

    .notice-details p {
        font-size: 12px;
    }

    .navigation-section {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 20px;
        padding-top: 16px;
        gap: 12px;
    }

    .back-btn,
    .proceed-btn {
        font-size: 13px;
        padding: 10px 20px;
        min-width: 85px;
        border-radius: 8px;
        gap: 5px;
    }

    .back-btn {
        box-shadow: 0 3px 12px rgba(108, 117, 125, 0.25);
    }

    .back-btn:hover {
        box-shadow: 0 4px 16px rgba(108, 117, 125, 0.35);
    }

    .btn-icon {
        font-size: 14px;
    }
}

/* 郵便番号の横並びレイアウト */
.postal-code-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.postal-code-row .form-group {
    flex: 1;
    min-width: 0;
}

.postal-code-row .form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.postal-code-row .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.postal-code-row .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-ring-color);
}

.postal-code-row .form-input:invalid {
    border-color: #e74c3c;
}

.postal-code-row .form-input:valid {
    border-color: #27ae60;
}

/* ========== 領収書・参加証発行画面専用スタイル ========== */

/* 領収書発行セクション */
.receipt-section {
    text-align: center;
    margin-bottom: 40px;
}

.receipt-instruction {
    text-align: center;
    color: #666;
    margin: 15px auto;
    line-height: 1.6;
    font-size: 14px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
}

.receipt-form-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.submit-section {
    text-align: center;
    margin-top: 35px;
}

.submit-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: var(--primary-color-2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .receipt-form-container {
        padding: 0 20px;
    }

    .submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .receipt-instruction {
        font-size: 13px;
    }
}

/* ========== 領収書・参加証ダウンロード画面専用スタイル ========== */

/* 領収書ダウンロードセクション */
.receipt-download-section {
    text-align: center;
    margin-bottom: 40px;
}

.download-instruction {
    text-align: center;
    color: #666;
    margin: 15px auto;
    line-height: 1.6;
    font-size: 14px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
}

.download-form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

/* 個別領収書行のレイアウト調整 */
.receipt-selection .seminar-option {
    display: flex;
    align-items: center;
    /* width: 100%; */
    margin: 0;
    padding: 5px 0; /* ユーザー設定を維持 */
    border: none;
    background: none;
    box-shadow: none;
}

.mini-btn {
    width: 36px; /* minimum touch target width */
    height: 36px; /* minimum touch target height */
    padding: 6px; /* increased padding for better touch area */
    font-size: 18px; /* icon size */
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0; /* ボタンが縮まないようにする */
    border-radius: 22px; /* adjust border radius for larger width */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff; /* SVG icon color */
    background: var(--primary-color);
    border: none;
    cursor: pointer;
}

.mini-btn:hover {
    background: var(--primary-color-2);
    box-shadow: 0 4px 12px var(--shadow-hover-color);
    transform: translateY(-1px);
}

.mini-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.mini-btn:hover svg {
    transform: translateY(1px);
}

/* === NEW: Align receipt download button to the far right === */
.receipt-selection .mini-btn {
    margin-left: auto; /* push button to the right edge */
}

/* 保険として、flex 行を100% 幅にしておく */
.receipt-selection .seminar-option-main {
    width: 100%;
}

/* === NEW: Prevent hand cursor on event name hover === */
.receipt-selection .option-name {
    cursor: default; /* イベント名にホバーしてもハンドカーソルにならない */
}

/* 領収書選択リスト */
.receipt-selection {
    margin-bottom: 30px;
}

/* ダウンロードボタン */
.download-section {
    text-align: center;
    margin: 30px 0;
}

.download-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    min-width: 50px;
}

.download-btn-mini {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    min-width: 150px;
}

.download-btn-mini:hover {
    background: var(--primary-color-2);
    box-shadow: 0 6px 20px var(--shadow-hover-color);
    transform: translateY(-2px);
}

.download-btn:hover {
    background: var(--primary-color-2);
    box-shadow: 0 6px 20px var(--shadow-hover-color);
    transform: translateY(-2px);
}

/* 参加証セクション */
.certificate-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.certificate-text {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.arrow-icon {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 8px;
}

.certificate-download-btn {
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .download-form-container {
        padding: 0 20px;
    }

    .download-instruction {
        width: 90%;
        padding: 16px;
        font-size: 13px;
    }

    /* チェックボックス選択エリアのレスポンシブ対応 */
    .receipt-selection .seminar-option {
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .receipt-selection .option-name {
        font-size: 13px;
        line-height: 1.4;
        word-break: break-word;
        margin-right: 12px; /* スマホでは余白を縮小 */
    }

    /* スマホ版でのミニボタン調整 */
    .mini-btn {
        width: 36px; /* minimum touch target width */
        height: 36px; /* minimum touch target height */
        padding: 6px; /* increased padding for better touch area */
        font-size: 16px;
    }

    .mini-btn svg {
        width: 14px;
        height: 14px;
    }

    .download-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        min-width: auto;
    }

    .certificate-section {
        /* スマホでも横並びのまま */
        gap: 15px;
    }

    .certificate-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .download-instruction {
        font-size: 12px;
        width: 95%;
        padding: 12px;
    }

    /* より小さな画面での追加対応 */
    .receipt-selection .seminar-option {
        padding: 8px 10px;
        margin-bottom: 6px;
    }

    .receipt-selection .option-name {
        font-size: 12px;
        line-height: 1.3;
        margin-right: 8px; /* さらに余白を縮小 */
    }

    /* より小さな画面でのミニボタン調整 */
    .mini-btn {
        width: 36px; /* minimum touch target width */
        height: 36px; /* minimum touch target height */
        padding: 6px; /* increased padding for better touch area */
        font-size: 14px;
    }

    .mini-btn svg {
        width: 12px;
        height: 12px;
    }

    .certificate-text {
        font-size: 13px;
    }
}

/* アクセシビリティのためのsr-onlyクラス */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* PC表示時の個人情報フィールドサイズ調整 */
@media (min-width: 769px) {
    body {
        padding: 20px;
    }

    /* 所属施設名・所属施設名（かな）: 固定幅に変更 */
    #guest_organization {
        width: 330px; /* 所属施設名: 固定幅 */
    }

    #guest_organization_kana {
        width: 330px; /* 所属施設名（かな）: 固定幅 */
    }

    /* 部署・職種: 現状の1/5 */
    #guest_department {
        width: 20%;
    }

    /* 姓・名: 固定幅に変更 */
    #guest_last_name,
    #guest_first_name {
        width: 180px;
    }

    /* 姓（かな）・名（かな）: 固定幅に変更 */
    #guest_last_name_kana,
    #guest_first_name_kana {
        width: 180px;
    }

    /* 市区町村: 現状の1/2 */
    #guest_city {
        width: 300px;
    }

    #guest_address1 {
        width: 250px; /* 番地: 固定幅 */
    }

    /* 都道府県: 現状の1/5 */
    #guest_prefecture {
        width: 170px;
    }

    /* 生年月日: 表示内容に合わせた幅 */
    #birth_year {
        width: 120px; /* 年: 最大5文字（例：2023年）*/
    }

    #birth_month {
        width: 90px; /* 月: 3文字（例：12月）*/
    }

    #birth_day {
        width: 90px; /* 日: 3文字（例：31日）*/
    }

    /* 住所フィールドの幅調整 */
    #guest_address1 {
        width: 250px; /* 番地: 固定幅 */
    }

    #guest_address2 {
        width: 560px; /* ビル名等: 固定幅 */
    }

    /* メールアドレスフィールドの幅調整 */
    #guest_email,
    #guest_email_confirm {
        width: 280px; /* メールアドレス: 2/3相当の固定幅 */
    }

    /* PC表示時の姓名・（かな）フィールドの間隔調整 */
    .form-row {
        gap: 10px;
    }
}

/* ===================================
   フラッシュメッセージ（統一デザイン）
   =================================== */

.flash-message {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 8px;
    border-left: 4px solid;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: flashSlideIn 0.3s ease-out;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 成功メッセージ */
.flash-message--success {
    border-left-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
}

.flash-message--success .flash-message__icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

/* エラーメッセージ */
.flash-message--error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
}

.flash-message--error .flash-message__icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* 警告メッセージ */
.flash-message--warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
}

.flash-message--warning .flash-message__icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

/* アイコン部分 */
.flash-message__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

/* コンテンツ部分 */
.flash-message__content {
    flex: 1;
    min-width: 0;
}

.flash-message__title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    letter-spacing: 0.025em;
}

.flash-message__text {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.flash-message__text p {
    margin: 0;
    line-height: 1.5;
}

.flash-message__text p + p {
    margin-top: 6px;
}

/* 閉じるボタン */
.flash-message__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.2s ease;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-message__close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.flash-message__close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .flash-message {
        margin: 12px 0;
        padding: 14px 16px;
        gap: 10px;
    }

    .flash-message__icon {
        width: 28px;
        height: 28px;
    }

    .flash-message__title {
        font-size: 13px;
    }

    .flash-message__text {
        font-size: 13px;
    }
}

/* 統合メインコンテンツ内での位置調整 */
.main-content .flash-message:first-child {
    margin-top: 0;
}

.main-content .flash-message:last-child {
    margin-bottom: 20px;
}

/* タイトルセクション直後での位置調整 */
.title-section + .flash-message {
    margin-top: 20px;
}

/* バリデーションエラー時の強調表示 */
.is-invalid {
    border-color: #e74c3c !important;
    background-color: #fff0f0 !important;
    box-shadow: 0 0 0 2px #e74c3c33;
    transition: border-color 0.3s, background-color 0.3s;
}

/* 性別ラジオボタンのバリデーションエラー時の強調 */
.member-type-selection.is-invalid {
    border: 2px solid #e74c3c !important;
    background-color: #fff0f0 !important;
    border-radius: 6px;
    box-shadow: 0 0 0 2px #e74c3c33;
    padding: 12px 16px;
    transition: border-color 0.3s, background-color 0.3s;
}

/* ========== 価格表示の統一スタイル ========== */

/* MPI画面・決済画面の価格表示統一 */
.amount-display .amount,
.amount {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* 申込内容の価格表示 */
.item-price,
.registration-summary .item-price {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* 決済画面全般の価格表示 */
.payment-details .amount,
.payment-amount-section .amount,
.card-payment-container .amount,
.cvs-payment-container .amount {
    color: var(--primary-color) !important;
}

/* MPI画面専用の価格表示修正 */
.payment-details .amount-display .amount {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 24px;
}

/* MPI画面の決済ボタン内の金額表示 */
.payment-btn .btn-text {
    color: #fff !important;
}

/* MPI画面の金額表示（より具体的なセレクタ） */
main .payment-details .amount-display .amount {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 24px;
}

/* 最強セレクタ - すべての金額表示を強制的に変更 */
.main-content .payment-details .amount-display .amount,
.main-content .payment-details .amount,
.main-content .amount-display .amount,
.main-content .amount,
.main-content .item-price,
.payment-btn .btn-text,
span.amount,
.amount-display span.amount {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

/* ボタン内のテキストは白色を維持 */
.payment-btn .btn-text,
.payment-btn span.btn-text {
    color: #ffffff !important;
}

/* スペシフィックセレクタで全ての価格表示をターゲット */
body .main-content .payment-details .amount-display .amount {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 24px !important;
}

/* 名前領域を伸ばしボタンを右端揃え */
.receipt-selection .option-name {
    flex-grow: 1;
    margin-right: 20px;
    /* text-align: left; */
}

/* スマホ版での合計欄との重複を防ぐための余白 */
.mobile-bottom-spacer {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-spacer {
        display: block;
        height: 100px; /* 合計欄の高さ + 余白 */
        width: 100%;
    }
}

/* ナビゲーションセクション */


