:root {
    /* Colors */
    --bg-color: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-color: #c5a059;
    /* Muted Gold */
    --accent-hover: #e6c278;
    --border-color: #333333;

    /* Typography */
    --font-serif: "Shippori Mincho", "Times New Roman", serif;
    --font-sans: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Header/Nav */
/* Header/Nav */
header.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-color);
}

.logo:hover {
    color: var(--accent-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-icon:hover {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* Utility */
.work-item a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.work-item a:hover {
    text-decoration-color: var(--accent-color);
}

.work-tag {
    display: inline-block;
    background: rgba(197, 160, 89, 0.15);
    color: var(--accent-color);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    vertical-align: middle;
}

.text-center {
    text-align: center;
}

/* Form Styles */
.form-container {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: #0d0d0d;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.radio-group {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-input {
    accent-color: var(--accent-color);
    width: 18px;
    height: 18px;
}

.hidden {
    display: none;
}

.required-badge {
    color: #ff6b6b;
    margin-left: 4px;
    font-size: 0.8em;
}

.note-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 4px;
    display: none;
}

.btn-submit {
    width: 100%;
    background: var(--accent-color);
    color: var(--bg-color);
    font-weight: bold;
    border: none;
    margin-top: 24px;
}

.btn-submit:hover {
    background: var(--accent-hover);
    color: var(--bg-color);
}

/* Select Styles */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5a059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    cursor: pointer;
}

.datetime-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
}

.datetime-container select {
    min-width: 60px;
    width: auto;
    padding: 8px 24px 8px 8px;
}

.datetime-unit {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 4px;
}

.datetime-separator {
    text-align: center;
    margin: 4px 0;
    color: var(--accent-color);
}

.disabled-section {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(1);
}

.time-label {
    font-size: 0.8rem;
    color: var(--accent-color);
    background: rgba(197, 160, 89, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border-radius: 4px;
    white-space: nowrap;
}

.ib {
    display: inline-block;
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    header.fixed-header {
        height: 60px;
        /* Reduce height */
    }

    .header-container {
        padding: 0 10px;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 4px 8px;
        white-space: nowrap;
    }

    .cross-link {
        display: none;
    }

    .logo {
        font-size: 0.9rem;
        /* Can be slightly larger now */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 75%;
        /* More space available */
    }

    nav {
        gap: 8px;
    }

    /* Hide the "Recording Studio" part if possible or just rely on truncation? 
       Use a span in HTML would be better, but CSS only fix: */
}

/* Side Navigation */
.side-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    /* Center aligning items including the label */
}

.side-nav-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: default;
}

.side-nav a {
    display: block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.side-nav a:hover,
.side-nav a.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

.side-nav a::before {
    content: attr(data-label);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.side-nav a:hover::before {
    opacity: 1;
    visibility: visible;
    right: 25px;
}

@media (max-width: 768px) {
    .side-nav {
        display: none;
    }
}

.disabled-section {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s;
}

.br-sp {
    display: none;
}

@media (max-width: 768px) {
    .br-sp {
        display: block;
    }
}

#studio-floor {
    padding: 80px 0;
}

.floor-frame {
    display: block;
    margin: 0 auto 2rem auto;
    width: 90%;
    max-width: 400px;
    background-color: #333333;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.floor-frame img {
    width: 100%;
    max-width: 100%;
    /* Safety for Safari */
    height: auto;
    display: block;
    border-radius: 2px;
}

.floor-image {
    width: 80%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    /* Light gray frame in dark context */
    padding: 20px;
}

/* Utility for mobile line breaks */
.br-sp {
    display: none;
}

@media (max-width: 768px) {
    .br-sp {
        display: block;
        content: "";
        margin: 0;
    }
}