@charset "UTF-8";

/* =========================================
   Theme: Sophisticated White (Iridescent) - Sub Pages
   ========================================= */

:root {
    /* Updated Palette: Iridescent / Aurora */
    --c-bg: #ffffff;
    --c-surface: #ffffff;
    --c-text-main: #1d1d1f;
    --c-text-sub: #6e6e73;

    /* Vibrant Gradients */
    --c-accent: #0066cc;
    --gradient-primary: linear-gradient(135deg, #ff61d2 0%, #fe9090 100%);
    /* Pink-Peach */
    --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    /* Blue-Cyan */
    --gradient-text: linear-gradient(90deg, #ff3cac 0%, #784ba0 50%, #2b86c5 100%);
    /* Deep Aurora */

    /* Glass Effect Tokens */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(30px);
    --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-en: 'Montserrat', sans-serif;
    --font-ja: 'Zen Kaku Gothic New', sans-serif;

    /* Spacing */
    --section-pad: 120px 5%;
}

/* Base Setup */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--c-bg);
    color: var(--c-text-main);
    font-family: var(--font-ja);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
.en-font {
    font-family: var(--font-en);
    letter-spacing: -0.02em;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Header (Floating Glass) --- */
header.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.logo img {
    height: 24px;
    opacity: 0.9;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-main);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--c-text-main);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* --- Hero Section (Shared) --- */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.sub-hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.sub-title {
    font-family: var(--font-en);
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 900;
    text-align: center;
    line-height: 0.9;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Layout Container --- */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5% 150px;
    position: relative;
    z-index: 2;
}

/* --- Glass Panels --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 60px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* Top accent */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-text);
}

.panel-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Requirements List (Definition List) --- */
.req-dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px 0;
}

.req-dl:last-child {
    border-bottom: none;
}

.req-dt {
    font-weight: 700;
    color: var(--c-accent);
    /* Or gradient? Simple accent is readable */
    font-size: 16px;
    display: flex;
    align-items: flex-start;
}

.req-dt::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gradient-text);
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 8px;
    /* align center */
}

.req-dd {
    font-size: 15px;
    color: var(--c-text-main);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .req-dl {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .glass-panel {
        padding: 30px 20px;
    }
}

/* --- Entry Form --- */
.entry-form .form-group {
    margin-bottom: 30px;
}

.entry-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
}

.entry-form .required-badge {
    display: inline-block;
    background: var(--gradient-text);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Glass Inputs */
input[type='text'],
input[type='email'],
input[type='tel'],
textarea,
select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.4);
    font-family: inherit;
    font-size: 16px;
    color: var(--c-text-main);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    border-color: #784ba0;
    /* Middle of gradient */
    box-shadow: 0 0 0 4px rgba(120, 75, 160, 0.1);
}

.entry-form .flex-row {
    display: flex;
    gap: 20px;
}

.entry-form .flex-1 {
    flex: 1;
}

.submit-btn-wrapper {
    text-align: center;
    margin-top: 60px;
}

.btn-modern {
    display: inline-block;
    padding: 18px 60px;
    background: var(--gradient-text);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(43, 134, 197, 0.3);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(43, 134, 197, 0.4);
}

.error_m_entry {
    color: #ff3366;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* --- Mobile Toggle Menu --- */
@media (max-width: 768px) {
    /* Use header flex space-between */
    header.glass-header { justify-content: space-between; }

    .menu-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 2001; /* Higher index */
    }
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--c-text-main);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .menu-toggle span:nth-child(3) { bottom: 0; }

    /* Active State */
    .menu-open .menu-toggle span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* Nav Overlay */
    nav ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        z-index: 1500;
        gap: 30px;
        margin: 0;
        padding: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        visibility: hidden;
    }

    .menu-open nav ul {
        transform: translateX(0);
        visibility: visible;
    }

    nav a {
        font-size: 20px;
        font-weight: 700;
    }
}

@media (min-width: 769px) {
    .menu-toggle { display: none; }
}

@media (max-width: 768px) {
    .menu-toggle {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: -2px;
    }
}

@media (max-width: 768px) {
    /* Fix Header Logo Distortion */
    header.glass-header .logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        z-index: 2005;
    }
    header.glass-header .logo img {
        width: auto;
        height: 24px;
        object-fit: contain;
    }
    /* Robust Container Constraints */
    header.glass-header {
        width: 95%;
        max-width: 100%;
        box-sizing: border-box;
    }
}
