/* 基本のフォント設定 */
:root {
    --color-primary: #3b82f6; /* blue-500 */
    --color-secondary: #8b5cf6; /* violet-500 */
    --color-accent: #0ea5e9; /* sky-500 */
    --color-text: #e5e7eb; /* gray-200 */
    --color-bg-dark: #111827; /* gray-900 */
    --color-bg-light: #1f2937; /* gray-800 */
    --color-border: #374151; /* gray-700 */
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15), transparent 30%),
        url('https://www.transparenttextures.com/patterns/carbon-fibre-v2.png');
    background-attachment: fixed;
}

/* ヘッダー */
.hero-bg {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.9)),
        url('https://images.unsplash.com/photo-1599493343903-82a17c069c88?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
}
.hero-bg::before, .hero-bg::after {
    content: '';
    position: absolute;
    left: 50%;
    min-width: 300vw;
    min-height: 300vw;
    background-color: var(--color-primary);
    animation-name: rotate;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
.hero-bg::before {
    bottom: 15vh;
    border-radius: 45%;
    animation-duration: 15s;
    opacity: 0.3;
}
.hero-bg::after {
    bottom: 12vh;
    opacity: 0.1;
    border-radius: 47%;
    animation-duration: 15s;
}
@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* カード */
.card {
    background: rgba(31, 41, 55, 0.5);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(55, 65, 81, 0.6);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ボタン */
.btn-entry {
    background-image: linear-gradient(to right, var(--color-primary) 0%, var(--color-secondary) 51%, var(--color-primary) 100%);
    background-size: 200% auto;
    color: white;
    transition: all 0.5s;
    border: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.btn-entry:hover:not(:disabled) {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px 0 rgba(59, 130, 246, 0.4);
}
.btn-entry:disabled, .btn-disabled {
    background-image: none;
    background-color: #4b5563;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 強調テキスト */
.highlight {
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
}

/* フォーム */
.form-input, .form-select, .form-textarea {
    width: 100%;
    background-color: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem; /* rounded-lg */
    padding: 0.75rem 1rem;
    color: var(--color-text);
    transition: all 0.2s ease-in-out;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}
.form-checkbox {
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 0.25rem;
    background-color: #374151;
    border-color: var(--color-border);
    color: var(--color-primary);
    cursor: pointer;
}
.form-checkbox:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
/* 必須マーク */
.required-mark::after {
    content: '必須';
    background-color: #ef4444; /* red-500 */
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px; /* rounded-full */
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* エントリーリストPC表示用バッジ */
.entry-status-badge {
    display: inline-block;
    padding: 0.125rem 0.6rem; /* py-0.5 px-2.5 */
    font-size: 0.75rem; /* text-xs */
    font-weight: bold;
    line-height: 1.2;
    border-radius: 9999px; /* rounded-full */
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.entry-status-badge.confirmed {
    background-color: #16a34a; /* green-600 */
}
.entry-status-badge.waitlist {
    background-color: #dc2626; /* red-600 */
}