/* Google Fontsの読み込み*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap');

body {
    font-family: "Noto Sans JP", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    text-size-adjust:100%;
    -webkit-text-size-adjust:100%;
}

/* ナビバー */
.custom-navbar {
    background-color: #404040;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 85px;
    border-radius: 7px;

    .brand {
        font-size: 1.5rem;
        font-weight: bold;
    }
    .icon {
        font-size: 1.5rem;
        background-color: white;
        border-radius: 7px;
        color: black;
        width: 3rem;
        height: 3rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 768px) { /* 768pxはBootstrapのMediumコンテナのブレークポイントと同一 */
    .custom-navbar {
        padding: 0 5rem;
    }
}

/* メインコンテンツ */
main {
    max-width: 600px !important;
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    main {
        max-width: 600px !important;
        font-size: 1.2rem;
    }
}

/* テキストインプット */
/*
.form-control:focus {
    background-color: #fff;
    border-color: #404040 !important;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}
input[type="text"]:focus {
    outline: none;
}
    */

/* チェックボックス */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: block;
    width: 100%;
    padding: 1rem;
    border: 1px solid #404040;
    border-radius: 7px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label {
    background-color: #404040;
    color: #fff;
    border-color: #404040;
}

.checkbox-group input[type="checkbox"]:disabled + .checkbox-label {
    cursor: default;
}

form[action*="confirm"] .checkbox-label {
    cursor: default;
}

/* フォームラベル */
.form-label {
    width: 100%;
}

/* エラー表示 */
.text-danger {
    font-size: 0.875rem; /* Adjust the size as needed */
}

/* スライドイン・スライドアウト */
.slide-in {
    animation: slideIn 0.5s forwards;
}

.slide-out {
    animation: slideOut 0.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Member registration theme */
:root {
    --tm-ink: #0f172a;
    --tm-muted: #5b6172;
    --tm-border: rgba(15, 23, 42, 0.12);
    --tm-card: rgba(255, 255, 255, 0.92);
    --tm-surface: #f5f7fb;
    --tm-gradient: linear-gradient(135deg, #0f172a, #1f2b46);
    --tm-glow: rgba(37, 99, 235, 0.25);
    --tm-accent: #2563eb;
    --tm-accent-soft: rgba(37, 99, 235, 0.16);
    --tm-success: #22c55e;
    --tm-warning: #f97316;
    --tm-danger: #ef4444;
}

.tm-body * {
    box-sizing: border-box;
}

.tm-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', 'Hiragino Sans', sans-serif;
    color: var(--tm-ink);
    background: radial-gradient(circle at 15% 20%, rgba(79, 70, 229, 0.15), transparent 45%),
                radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.12), transparent 40%),
                var(--tm-surface);
}

.tm-body::before,
.tm-body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.55;
    z-index: 0;
}

.tm-body::before {
    width: 320px;
    height: 320px;
    top: 60px;
    left: 60px;
    background: rgba(59, 130, 246, 0.25);
}

.tm-body::after {
    width: 260px;
    height: 260px;
    bottom: 60px;
    right: 80px;
    background: rgba(236, 72, 153, 0.18);
}

.tm-navbar {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100% - 32px));
    margin: 32px auto 0;
    padding: 20px 28px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

.tm-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tm-brand__eyebrow {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.7;
}

.tm-brand__title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.tm-navbar__status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.tm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tm-navbar__note {
    font-size: 12px;
    opacity: 0.8;
}

.tm-shell {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100% - 32px));
    margin: 32px auto 64px;
}

.tm-stage {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.tm-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border-radius: 28px;
    background: var(--tm-gradient);
    color: #fff;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.tm-hero__text {
    flex: 1;
    min-width: 240px;
}

.tm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tm-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 600;
}

.tm-hero__lead {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.8);
}

.tm-card {
    padding: clamp(24px, 4vw, 36px);
    border-radius: 28px;
    border: 1px solid var(--tm-border);
    background: var(--tm-card);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
}

.tm-card h2 {
    font-size: 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tm-muted);
    margin-bottom: 18px;
}

.tm-card p {
    color: var(--tm-muted);
}

.tm-hint {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--tm-border);
    align-items: flex-start;
}

.tm-hint--subtle {
    background: rgba(15, 23, 42, 0.03);
    border-style: dashed;
}

.tm-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.1);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tm-ink);
    white-space: nowrap;
}

.tm-hint-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.tm-hint-list li {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    font-size: 15px;
}

.tm-hint-icon {
    color: var(--tm-accent);
}

.tm-form-grid {
    display: grid;
    gap: 20px;
}

.tm-form-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tm-card .form-label {
    font-weight: 600;
    color: var(--tm-ink);
    letter-spacing: 0.04em;
}

.tm-card .form-control,
.tm-card .form-select {
    border-radius: 14px;
    border: 1px solid var(--tm-border);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tm-card .form-control:focus,
.tm-card .form-select:focus {
    border-color: var(--tm-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.tm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.tm-actions--between {
    justify-content: space-between;
}

.tm-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--tm-muted);
}

.tm-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tm-summary-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--tm-border);
    background: rgba(15, 23, 42, 0.02);
    gap: 16px;
}

.tm-summary-label {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tm-muted);
}

.tm-summary-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--tm-ink);
}

.tm-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--tm-accent);
    text-decoration: none;
}

.tm-icon-pill {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--tm-accent);
    margin-bottom: 18px;
}

.tm-invite-block {
    padding: 18px;
    border: 1px dashed var(--tm-border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.03);
    margin-bottom: 18px;
}

.tm-countdown {
    font-weight: 600;
    color: var(--tm-warning);
}

.tm-alert {
    border-radius: 18px;
    padding: 12px 16px;
    font-weight: 600;
}

.tm-alert--danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--tm-danger);
}

.tm-footer {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100% - 32px));
    margin: -16px auto 48px;
    text-align: center;
    color: var(--tm-muted);
    font-size: 13px;
}

.tm-body .slide-in {
    opacity: 0;
    transform: translateY(14px);
    animation: tmSlideIn 0.6s ease forwards;
}

.tm-body .slide-out {
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes tmSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-body .btn-dark {
    background: var(--tm-gradient);
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.tm-body .btn-dark:hover,
.tm-body .btn-dark:focus {
    background: linear-gradient(135deg, #1f2b46, #0f172a);
}

.tm-body .btn-outline-secondary {
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    color: var(--tm-ink);
    border-color: var(--tm-border);
    background: transparent;
}

.tm-body .btn-outline-secondary:hover,
.tm-body .btn-outline-secondary:focus {
    background: rgba(15, 23, 42, 0.05);
    color: var(--tm-ink);
}

.tm-code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tm-code-inputs input {
    width: 56px;
    height: 68px;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--tm-border);
}

.tm-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.tm-checklist .checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--tm-border);
    background: rgba(15, 23, 42, 0.02);
}

.tm-checklist .checkbox-label {
    margin: 0;
    font-weight: 600;
}

.tm-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tm-checkbox {
    position: relative;
    display: block;
    cursor: pointer;
}

.tm-checkbox input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.tm-checkbox span {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--tm-border);
    background: rgba(15, 23, 42, 0.02);
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tm-checkbox:hover span {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.tm-checkbox input:focus-visible + span {
    outline: 2px solid var(--tm-accent);
    outline-offset: 2px;
}

.tm-checkbox input:checked + span {
    border-color: var(--tm-accent);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

.tm-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tm-chip {
    border-radius: 999px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.08);
    font-weight: 600;
}

.tm-anchor {
    display: block;
    height: 1px;
}

@media (max-width: 720px) {
    .tm-navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tm-navbar__status {
        align-items: flex-start;
    }

    .tm-actions,
    .tm-actions--between {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 540px) {
    .tm-shell,
    .tm-navbar,
    .tm-footer {
        width: calc(100% - 24px);
    }
}
