/* ==========================================================
   Design tokens
   テーマ：夜の集会に灯る提灯の光
   ========================================================== */
:root {
    --bg-night: #12141c;
    --bg-night-2: #1b1e2b;
    --bg-card: #1f2230;
    --accent: #e8a33d;
    --accent-soft: #f4c87a;
    --accent-dim: rgba(232, 163, 61, 0.18);
    --text-main: #f3f1e7;
    --text-muted: #a9adc1;
    --line: rgba(232, 163, 61, 0.22);
    --danger: #d9694f;
    --radius: 14px;

    --font-display: "Shippori Mincho", "Noto Serif JP", serif;
    --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-night);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================
   灯りの区切り線（このサイトの signature element）
   ========================================================== */
.lantern-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 48px;
    width: fit-content;
}
.lantern-divider span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px 2px var(--accent-dim);
}
.lantern-divider span:nth-child(2) {
    width: 9px;
    height: 9px;
    background: var(--accent-soft);
    box-shadow: 0 0 12px 3px rgba(244, 200, 122, 0.35);
}

/* ==========================================================
   Section 1: Hero
   ========================================================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    background-image: url(/assets/image/fv.jpeg);
    overflow: hidden;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-eyebrow {
    font-family: var(--font-display);
    letter-spacing: 0.35em;
    font-size: 13px;
    color: var(--accent-soft);
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(36px, 7vw, 64px);
    line-height: 1.4;
    margin: 0 0 20px;
    letter-spacing: 0.04em;
}
.hero-title em {
    font-style: normal;
    color: var(--accent-soft);
}

.hero-sub {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto 40px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 44px;
}
.hero-meta strong {
    color: var(--text-main);
    font-weight: 600;
}
.hero p, .hero-title, .hero-meta {
    text-shadow: 0 0 1rem var(--bg-night);
}
.btn-primary {
    display: inline-block;
    padding: 16px 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #c9782a);
    color: #1b1206;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 30px rgba(232, 163, 61, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(232, 163, 61, 0.45);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}

/* ==========================================================
   共通セクション
   ========================================================== */
section {
    padding: 96px 0;
}

.section-eyebrow {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--accent);
    text-align: center;
    display: block;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 36px);
    text-align: center;
    margin: 0 0 64px;
    letter-spacing: 0.03em;
}

/* ==========================================================
   Section 2: スケジュール
   ========================================================== */
.schedule {
    background: var(--bg-night-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 560px;
    margin-inline: auto;
}
.schedule-list li {
    display: flex;
    gap: 28px;
    padding: 22px 0;
    border-bottom: 1px dashed var(--line);
    align-items: baseline;
}
.schedule-list li:last-child {
    border-bottom: none;
}
.schedule-time {
    flex: 0 0 88px;
    font-family: var(--font-display);
    color: var(--accent-soft);
    font-size: 17px;
}
.schedule-body strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.schedule-body span {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================================
   Section 3: イベント内容・会費
   ========================================================== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
}
.info-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 16px;
}
.info-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 10px;
}
.info-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ==========================================================
   Section 4: 出欠フォーム
   ========================================================== */
.rsvp {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232, 163, 61, 0.10), transparent 60%),
        var(--bg-night);
}

.rsvp-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 44px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.field {
    margin-bottom: 26px;
    position: relative;
}
.field label {
    display: block;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.field input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    background: #14161f;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 15px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Discordオートコンプリート ドロップダウン */
.autocomplete-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #191c28;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    z-index: 20;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    max-height: 260px;
    overflow-y: auto;
    display: none;
}
.autocomplete-list.open {
    display: block;
}
.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.12s ease;
}
.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--accent-dim);
}
.autocomplete-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    flex: 0 0 auto;
}
.autocomplete-item .names {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.autocomplete-item .names .display-name {
    font-size: 14px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.autocomplete-item .names .username {
    font-size: 12px;
    color: var(--text-muted);
}
.autocomplete-empty {
    padding: 14px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.discord-linked-badge {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--accent-soft);
}
.discord-linked-badge.show {
    display: flex;
}
.discord-linked-badge img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.discord-linked-badge button {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

/* 出欠ラジオボタン（提灯型） */
.status-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.status-option {
    position: relative;
}
.status-option input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}
.status-option .card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.15s ease;
    background: #14161f;
}
.status-option .card .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    margin: 0 auto 10px;
    transition: all 0.15s ease;
}
.status-option .card .label {
    font-family: var(--font-display);
    font-size: 16px;
}
.status-option input:checked + .card {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.status-option input:checked + .card .dot {
    background: var(--accent);
    box-shadow: 0 0 10px 3px rgba(232, 163, 61, 0.5);
}
.status-option input:focus-visible + .card {
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #c9782a);
    color: #1b1206;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(232, 163, 61, 0.35);
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 18px;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}
.form-message.success { color: #7fd99a; }
.form-message.error { color: var(--danger); }

footer {
    text-align: center;
    padding: 40px 24px 60px;
    color: var(--text-muted);
    font-size: 12px;
}

/* ==========================================================
   Reduced motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 600px) {
    section {
        padding: 64px 0;
    }
    .rsvp-card {
        padding: 32px 22px;
    }
    .schedule-list li {
        gap: 16px;
    }
}
