.sg-entry-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 14px 48px;
    box-sizing: border-box;
}

.sg-entry-header {
    margin-bottom: 20px;
}

.sg-entry-page-title {
    margin-bottom: 12px;
}

.sg-entry-event-meta {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    box-sizing: border-box;
}

.sg-entry-event-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
    margin-bottom: 4px;
    text-align: center;
}

.sg-entry-event-date {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    text-align: center;
}

/* 基本カード */
.sg-entry-status-card,
.sg-entry-participants-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 18px 16px;
    box-sizing: border-box;
    margin-bottom: 22px;
}

/* 未登録状態の外枠は消す */
.sg-entry-status-card.sg-entry-status-card-join {
    background: transparent;
    border: none;
    padding: 0;
}

.sg-entry-status-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 10px;
    text-align: center;
}

.sg-entry-status-text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    text-align: center;
}

.sg-entry-notice {
    margin: 0 auto 14px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid transparent;
    max-width: 680px;
    box-sizing: border-box;
}

.sg-entry-notice-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.sg-entry-notice-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.sg-entry-form {
    width: 100%;
}

.sg-entry-form-row {
    margin-bottom: 18px;
}

.sg-entry-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
}

.sg-entry-text-input {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 15px;
    color: #111827;
    box-sizing: border-box;
}

.sg-entry-text-input:focus {
    outline: none;
    border-color: #ef4444;
}

.sg-entry-form-actions,
.sg-entry-choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sg-entry-main-btn,
.sg-entry-sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    box-sizing: border-box;
    border: 1px solid transparent;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.sg-entry-main-btn {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
}

.sg-entry-main-btn:hover {
    background: #6d28d9;
    border-color: #6d28d9;
}

.sg-entry-sub-btn {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.sg-entry-sub-btn:hover {
    opacity: 0.92;
    color: #ffffff;
    text-decoration: none;
}

.sg-entry-sub-btn-light {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

.sg-entry-sub-btn-light:hover {
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
}

.sg-entry-main-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.sg-entry-profile-box {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 12px 14px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.sg-entry-profile-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sg-entry-profile-row:last-child {
    border-bottom: none;
}

.sg-entry-profile-label {
    width: 88px;
    min-width: 88px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #6b7280;
}

.sg-entry-profile-value {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: #111827;
    word-break: break-word;
}

.sg-entry-participants-head {
    margin-bottom: 14px;
}

.sg-entry-participants-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sg-entry-team-card {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-sizing: border-box;
}

.sg-entry-team-card-head {
    padding: 12px 14px;
    background: #f3f4f6;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
    cursor: default;
    border-bottom: 1px solid #e5e7eb;
}



.sg-entry-team-count {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-left: 6px;
}

.sg-entry-member-list {
    list-style: none;
    margin: 0;
    padding: 10px 14px 12px;
}

.sg-entry-member-item {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
        font-weight: 700;

}

.sg-entry-member-item:last-child {
    border-bottom: none;
}

.sg-entry-empty {
    padding: 14px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    text-align: center;
}

.sg-entry-error {
    color: #b91c1c;
    font-weight: 700;
}

/* =========================
   未登録状態 登録フェーズ
========================= */
.sg-entry-register-phase {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.sg-entry-register-image-wrap {
    width: 100%;
    margin: 0 auto 18px;
}

.sg-entry-register-image {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto;
}

.sg-entry-register-lead {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
    color: #111827;
    text-align: center;
}

.sg-entry-form-register {
    max-width: 560px;
    margin: 0 auto;
}

.sg-entry-form-row-name {
    margin-bottom: 22px;
}

.sg-entry-field-label-inline {
    display: block;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
    text-align: center;
}

.sg-entry-form-row-name .sg-entry-text-input {
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #d1d5db;
    min-height: 48px;
    border-radius: 0;
}

.sg-entry-team-select-text {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
    text-align: center;
}

/* 2択を明確なボタン化 */
.sg-entry-team-list-inline {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    flex-wrap: nowrap;
    margin-bottom: 22px;
}

.sg-entry-team-inline-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 52px;
    padding: 0 18px;
    border: 2px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    border-radius: 8px;

    transition: all 0.18s ease;
}

/* ホバー */
.sg-entry-team-inline-item:hover {
    border-color: #7c3aed;
    background: #f5f3ff;
    color: #5b21b6;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.15);
}

/* 押した瞬間（これ重要） */
.sg-entry-team-inline-item:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sg-entry-team-inline-item:active {
    transform: translateY(0);
}

.sg-entry-team-inline-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sg-entry-team-inline-label {
    display: inline-block;
    width: 100%;
}

/* 選択中 */
/* 選択中 */
.sg-entry-team-inline-item:has(input[type="radio"]:checked) {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.25);
}

/* 選択中ホバー */
.sg-entry-team-inline-item:has(input[type="radio"]:checked):hover {
    border-color: #6d28d9;
    background: #6d28d9;
    color: #ffffff;
}
/* has未対応環境の保険 */
.sg-entry-team-inline-item input[type="radio"]:checked + .sg-entry-team-inline-label {
    color: inherit;
}

.sg-entry-form-actions-center {
    justify-content: center;
}

.sg-entry-form-actions-center .sg-entry-main-btn {
    min-width: 180px;
}

/* 旧構造も一応残す */
.sg-entry-team-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.sg-entry-team-option {
    display: block;
    position: relative;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    padding: 14px 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.sg-entry-team-option:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.sg-entry-team-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sg-entry-team-option-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
    text-align: center;
}

.sg-entry-team-option.is-selected,
.sg-entry-team-option input[type="radio"]:checked + .sg-entry-team-option-label {
    color: inherit;
}

.sg-entry-team-option.is-selected {
    border-color: #ef4444;
    background: #fff1f2;
    transform: translateY(-1px);
}

.sg-entry-team-item {
    position: relative;
}

.sg-entry-team-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sg-entry-team-radio:checked + .sg-entry-team-option {
    border-color: #ef4444;
    background: #fff1f2;
    transform: translateY(-1px);
}

.sg-entry-joined-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
    text-align: center;
}

.sg-entry-joined-sep {
    color: #9ca3af;
}

.sg-entry-participants-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 767px) {
    .sg-entry-page {
        padding: 16px 10px 36px;
    }

    .sg-entry-event-meta,
    .sg-entry-participants-wrap {
        padding: 14px 12px;
    }

    .sg-entry-status-card.sg-entry-status-card-join {
        padding: 0;
    }

    .sg-entry-status-title {
        font-size: 19px;
    }

    .sg-entry-event-name {
        font-size: 17px;
    }

    .sg-entry-register-lead {
        font-size: 19px;
        margin-bottom: 18px;
    }

    .sg-entry-field-label-inline {
        font-size: 17px;
    }

    .sg-entry-team-select-text {
        font-size: 17px;
    }

    .sg-entry-form-register {
        max-width: 100%;
    }

    .sg-entry-form-row-name .sg-entry-text-input {
        max-width: 100%;
    }

    /* スマホでも横並び維持 */
    .sg-entry-team-list-inline {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .sg-entry-team-inline-item {
        min-width: 0;
        width: calc(50% - 4px);
        padding: 0 10px;
        font-size: 14px;
        min-height: 48px;
    }

    .sg-entry-team-list,
    .sg-entry-participants-grid {
        grid-template-columns: 1fr;
    }

    .sg-entry-form-actions,
    .sg-entry-choice-buttons {
        flex-direction: column;
    }

    .sg-entry-main-btn,
    .sg-entry-sub-btn {
        width: 100%;
    }

    .sg-entry-form-actions-center .sg-entry-main-btn {
        min-width: 0;
        width: 100%;
    }

    .sg-entry-profile-row {
        flex-direction: column;
        gap: 4px;
    }

    .sg-entry-profile-label {
        width: auto;
        min-width: 0;
    }

    .sg-entry-joined-inline {
        font-size: 17px;
    }

    .sg-entry-participants-two-col {
        grid-template-columns: 1fr;
    }
}

.sg-entry-form-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ラベル */
.sg-entry-field-label {
    margin: 0;
    white-space: nowrap;
}

/* input幅調整 */
.sg-entry-text-input {
    width: 260px;
}

/* =========================
   レイアウト修正（完全版）
========================= */

/* まず全体の flex を無効化 */
.sg-entry-form-row {
    display: block;
    margin-bottom: 18px;
}

/* 名前だけ横並びにする */
.sg-entry-form-row-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ラベル（名前） */
.sg-entry-field-label-inline {
    margin: 0;
    white-space: nowrap;
}

/* 入力欄 */
.sg-entry-form-row-name .sg-entry-text-input {
    width: 260px;
    max-width: 260px;
    margin: 0;
    text-align: left;
}

/* チーム説明は1行固定 */
.sg-entry-team-select-text {
    text-align: center;
    margin-bottom: 14px;
}

/* チームボタン横並び */
.sg-entry-team-list-inline {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* =========================
   紫UI（統一）
========================= */

.sg-entry-text-input:focus {
    border-color: #7c3aed;
}

.sg-entry-main-btn {
    background: #7c3aed;
    border-color: #7c3aed;
}

.sg-entry-main-btn:hover {
    background: #6d28d9;
    border-color: #6d28d9;
}

/* チームボタン */
.sg-entry-team-inline-item {
    border-radius: 8px;
}

/* hover */
.sg-entry-team-inline-item:hover {
    border-color: #7c3aed;
    background: #f5f3ff;
    color: #5b21b6;
}

/* 選択中 */
.sg-entry-team-inline-item:has(input[type="radio"]:checked) {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #ffffff;
}

/* 選択hover */
.sg-entry-team-inline-item:has(input[type="radio"]:checked):hover {
    border-color: #6d28d9;
    background: #6d28d9;
}

.sg-entry-status-card.sg-entry-status-card-complete {
    background: transparent;
    border: none;
    padding: 0;
}

.sg-entry-complete-image {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 18px;
    display: block;
}

/* =========================
   登録完了UI 調整
========================= */

/* ① 画像下の余白 */
.sg-entry-complete-image {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 28px; /* ←ここで余白追加 */
    display: block;
}

/* 名前・チーム */
.sg-entry-joined-inline {
    margin-bottom: 26px; /* ←ボタンとの間も調整 */
        margin-top: 20px;     /* ←追加 */

    font-size: 20px;
    font-weight: 700;
}

/* ② ボタン中央寄せ */
.sg-entry-choice-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ③ ボタン色統一（紫） */
.sg-entry-choice-buttons .sg-entry-main-btn,
.sg-entry-choice-buttons .sg-entry-sub-btn {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
}

/* ホバー */
.sg-entry-choice-buttons .sg-entry-main-btn:hover,
.sg-entry-choice-buttons .sg-entry-sub-btn:hover {
    background: #6d28d9;
    border-color: #6d28d9;
}

/* 参加者一覧 全体を中央に */
.sg-entry-participants-wrap {
    max-width: 760px;
    margin: 0 auto;
}

/* タイトル中央 */
.sg-entry-participants-head {
    text-align: center;
}

/* 2カラム全体中央寄せ */
.sg-entry-participants-two-col {
    justify-content: center;
}

/* 各チームカード */
.sg-entry-team-card {
    text-align: center;
}

/* チーム名 */
.sg-entry-team-card-head {
    text-align: center;
}

/* メンバーリスト中央 */
.sg-entry-member-list {
    padding: 10px 0;
}

/* 名前中央 */
.sg-entry-member-item {
    text-align: center;
}

/* 共通ボタン */
.sg-entry-main-btn,
.sg-entry-sub-btn {
    border-radius: 12px; /* ←角丸強化 */
    padding: 0 26px;
    min-height: 52px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;

    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.18);
    transition: all 0.2s ease;
}

/* 紫統一 */
.sg-entry-main-btn,
.sg-entry-sub-btn {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border: none;
    color: #ffffff;
}

/* ホバー */
.sg-entry-main-btn:hover,
.sg-entry-sub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.25);
}

/* 押した時 */
.sg-entry-main-btn:active,
.sg-entry-sub-btn:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}