:root {
    --bg-color: #fdfdfd;
    --card-bg: rgba(0, 0, 0, 0.02);
    --card-hover-bg: rgba(0, 0, 0, 0.05);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.3);
    --text-main: #050505;
    --text-muted: #666666;
    --accent: #050505;
    --transition-base: all 0.4s cubic-bezier(0.2, 0, 0, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    padding: 3rem 1.5rem;
}

/* Background Decoration */
.bg-decoration {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.05;
    transition: transform 0.2s ease-out;
}

.glow-1 { top: -10%; left: -10%; background: radial-gradient(circle, var(--text-main) 0%, transparent 70%); }
.glow-2 { bottom: -10%; right: -10%; background: radial-gradient(circle, var(--text-muted) 0%, transparent 70%); }

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 4rem;
}

.logo-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border: 2px solid var(--text-main);
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.logo-wrapper:hover {
    background: var(--text-main);
    transform: rotate(90deg);
}

.logo-wrapper .letter {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition-base);
}

.logo-wrapper:hover .letter {
    color: var(--bg-color);
    transform: rotate(-90deg);
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

header .subtitle { font-weight: 300; color: var(--text-muted); }
header .tagline { font-size: 1rem; color: var(--text-muted); font-weight: 300; letter-spacing: 0.15em; }

/* Sections */
section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Calendar */
.calendar-section { padding: 2rem; }

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.weekday {
    background: var(--bg-color);
    padding: 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.calendar-day {
    background: var(--bg-color);
    height: 80px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    font-weight: 600;
}

.calendar-day:hover {
    background: var(--card-hover-bg);
    color: var(--text-main);
}

.calendar-day.today { background: rgba(0, 0, 0, 0.03); }
.calendar-day.selected { background: var(--text-main) !important; color: var(--bg-color) !important; }
.calendar-day.other-month { opacity: 0.3; }

.has-reservation::before {
    content: '';
    width: 6px; height: 6px; background: var(--text-main);
    border-radius: 50%;
    position: absolute; top: 10px; right: 10px;
}

/* Timeline */
.timeline-section { overflow-x: auto; padding: 2rem; }
.timeline-container { min-width: 800px; position: relative; }

.time-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-left: 100px;
    padding-right: 10px;
    font-family: 'Outfit';
    font-weight: 600;
}

.room-timeline-row { display: flex; align-items: center; margin-bottom: 2rem; }
.timeline-room-label { width: 100px; font-weight: 800; font-family: 'Outfit'; flex-shrink: 0; }

.timeline-track {
    flex: 1;
    height: 12px;
    background: var(--border-color);
    position: relative;
    border-radius: 6px;
}

.timeline-bar {
    position: absolute;
    height: 100%;
    background: var(--text-main);
    opacity: 0.8;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

/* Form */
.input-group { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
label { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; }

input[type="text"], input[type="date"], input[type="time"] {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
}

input:focus { outline: none; border-color: var(--text-main); background: #ffffff; }

/* Radio Chips */
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.radio-chip { cursor: pointer; display: block; position: relative; }
.radio-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-chip span {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; border: 1px solid var(--border-color);
    cursor: pointer; transition: var(--transition-base);
    font-weight: 600; min-width: 100px; background: #ffffff;
    line-height: 1;
}
.radio-chip input:checked + span { background: var(--text-main); color: var(--bg-color); border-color: var(--text-main); }

/* Buttons */
.btn-primary {
    width: 100%; padding: 1.5rem; background: var(--text-main); color: var(--bg-color);
    border: none; font-weight: 800; font-family: 'Outfit'; font-size: 1.2rem;
    text-transform: uppercase; cursor: pointer; transition: var(--transition-base);
}
.btn-primary:hover { transform: scale(1.02); }

.btn-secondary {
    background: transparent; border: 1px solid var(--border-color); padding: 1.5rem;
    font-weight: 700; font-family: 'Outfit'; cursor: pointer; transition: var(--transition-base);
    text-transform: uppercase;
}
.btn-secondary:hover { border-color: var(--text-main); }

/* Reservations List */
.tabs { display: flex; gap: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.tab-btn {
    background: none; border: none; padding: 1rem 0.5rem; font-weight: 700;
    cursor: pointer; color: var(--text-muted); transition: var(--transition-base);
    position: relative;
}
.tab-btn.active { color: var(--text-main); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--text-main); }

.tab-content { display: none; }
.tab-content.active { display: flex; flex-direction: column; }

.reservation-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem; border-bottom: 1px solid var(--border-color);
}

.res-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.8rem; }
.res-user { font-weight: 700; font-size: 1.1rem; }
.res-actions { display: flex; gap: 0.5rem; }

.btn-sm {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.5rem 1rem; background: transparent; border: 1px solid var(--border-color);
    font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--transition-base);
    color: var(--text-muted);
}
.btn-sm:hover { border-color: var(--text-main); color: var(--text-main); }

/* Animations */
.animate-in { opacity: 0; animation: fadeInUp 1s cubic-bezier(0.2, 0, 0, 1) forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 768px) {
    body { padding: 1.5rem 1rem; }
    header h1 { font-size: 1.8rem; }
    section { padding: 1.5rem; }
    .input-group-row { grid-template-columns: 1fr; }
    .calendar-day { height: 60px; }
    .reservation-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .res-actions { width: 100%; justify-content: flex-end; }
}