/* Reset and Base Styles */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #C5A059;
    /* Gold */
    --text-color: #e0e0e0;
    --bg-overlay: rgba(0, 0, 0, 0.75);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: #4a4a4a;
    --font-main: 'Shippori Mincho', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--primary-color);
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.global-nav {
    margin: 2.5rem 0;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.global-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 3rem;
}

.global-nav a {
    text-decoration: none;
}


.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    margin: 2rem;
}

/* Header */
header {
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 2rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 0.5em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-right: -0.5em;
    /* Compensate for letter-spacing */
}

.subtitle {
    font-size: 1.2rem;
    color: #ccc;
    letter-spacing: 0.2em;
}

/* Description Section */
.description p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-feature-settings: "palt";
}

.price-tag {
    display: inline-block;
    border: 1px solid var(--accent-color);
    padding: 1rem 2rem;
    margin-bottom: 3rem;
    background: rgba(197, 160, 89, 0.1);
    position: relative;
}

.price-tag::before,
.price-tag::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.price-tag::before {
    top: -4px;
    left: -4px;
    border-right: none;
    border-bottom: none;
}

.price-tag::after {
    bottom: -4px;
    right: -4px;
    border-left: none;
    border-top: none;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #aaa;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.yen {
    font-size: 1.2rem;
    margin-left: 0.2rem;
}

.tax {
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Form Section */
.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

label {
    display: block;
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

input[type="text"],
select {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 0;
    /* Square edges for dignigied look */
    color: #888;
    font-family: var(--font-main);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    appearance: none;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(197, 160, 89, 0.05);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--accent-color);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(to bottom, #d4af66, #9c7c3b);
    border: none;
    color: #000;
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.submit-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Footer */
footer {
    margin-top: 4rem;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .container {
        padding: 2rem 1rem;
        margin: 0;
        min-height: 100vh;
        border: none;
    }
}

/* Hamburger Menu & Global Nav */
.hamburger-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(197, 160, 89, 0.2);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

.hamburger-btn .bar {
    width: 24px;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.4s ease;
    border-radius: 1px;
}

/* Hamburger Animation */
.hamburger-btn.active .bar-1 {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .bar-2 {
    opacity: 0;
}

.hamburger-btn.active .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Global Menu Overlay */
.global-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #000 0%, #1a1a1a 100%);
    z-index: 999;
    /* Behind button */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.global-menu::before {
    /* Texture Overlay */
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVQIW2NkQAKrVq36zwjjgzjwqUAABIn//88M4sAHGAEAhq4N+V8d1mEAAAAASUVORK5CYII=');
    /* Subtle pattern */
    opacity: 0.1;
    pointer-events: none;
}

.global-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-container {
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu-container::-webkit-scrollbar {
    display: none;
}

.menu-list {
	list-style: none;
    padding: 2rem;
    margin: auto;
    display: block;
    justify-content: inherit;
    align-items: center;
    gap: inherit;
    writing-mode: inherit;
    text-orientation: inherit;
    flex-shrink: 0;
}

.menu-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.global-menu.active .menu-list li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for menu items */
.global-menu.active .menu-list li:nth-child(1) {
    transition-delay: 0.2s;
}

.global-menu.active .menu-list li:nth-child(2) {
    transition-delay: 0.3s;
}

.global-menu.active .menu-list li:nth-child(3) {
    transition-delay: 0.4s;
}

.menu-link {
    display: block;
    font-size: 2rem;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-main);
    letter-spacing: 0.5em;
    position: relative;
    padding: 1rem 0.5rem;
    transition: color 0.3s ease;
}

.menu-link::after {
    /* Line decoration */
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    transform: translate(-50%, -50%) scaleY(0);
    width: 1px;
    height: 100%;
    background-color: var(--accent-color);
    transition: transform 0.4s ease;
    z-index: -1;
    opacity: 0.5;
}

.menu-link:hover {
    color: var(--accent-color);
}

.menu-link:hover::after {
    transform: translate(-50%, -50%) scaleY(1.2);
}

/* Mobile Adjustments for Menu */
@media (max-width: 480px) {
    .menu-link {
        font-size: 1.5rem;
        letter-spacing: 0.3em;
    }
}

/* Error Messages */
.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.error-message.active {
    display: block;
}

input.is-error,
select.is-error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}