/*
Theme Name: AXENOR Original
Theme URI: https://axenor.jp/
Description: AXENOR Ultimate Edition (Fixed & Full Features)
Author: AXENOR
Version: 17.0.0
*/

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;500;600&family=Noto+Sans+JP:wght@300;400;500;700&family=Shippori+Mincho:wght@400;600&family=Cormorant+Garamond:wght@400;600&family=Cinzel:wght@400;700&family=Roboto+Mono:wght@300;400&family=Oswald:wght@300;500&family=Zen+Maru+Gothic:wght@400;700&display=swap');

:root {
    --color-bg: #050505; /* Default Dark */
    --color-text: #f5f5f5;
    --color-text-muted: #888888;
    --color-primary: #C5A059;
    --color-border: rgba(255, 255, 255, 0.15);
    --container-width: 1280px;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Dynamic Values (Set by functions.php) */
    --font-en: 'Montserrat', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --fs-hero: clamp(3rem, 7vw, 5.5rem);
    --fs-h2: clamp(2rem, 4vw, 3rem);
    --fs-h3: 1.5rem;
    
    --space-section: 140px;
}

[data-theme="light"] {
    --color-bg: #FFFFFF;
    --color-text: #111111;
    --color-text-muted: #666666;
    --color-primary: #B49545;
    --color-border: rgba(0, 0, 0, 0.1);
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-jp);
    line-height: 2;
    font-size: 15px;
    letter-spacing: 0.05em;
    overflow-x: hidden;
    transition: background-color 0.5s var(--easing), color 0.5s var(--easing);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-en); font-weight: 400; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
img, video { max-width: 100%; height: auto; vertical-align: bottom; display: block; }

/* --- Components --- */
.l-section { padding: var(--space-section) 0; position: relative; z-index: 2; }
.l-container { max-width: var(--container-width); margin: 0 auto; padding: 0 40px; position: relative; }
.text-center { text-align: center; }

/* Titles */
.c-title {
    font-family: var(--font-en);
    font-size: var(--fs-hero);
    font-weight: 200;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    color: transparent;
    transition: 0.5s;
}
[data-theme="light"] .c-title { -webkit-text-stroke: 1px rgba(0,0,0,0.1); }
.l-section:hover .c-title, #hero:hover .c-title { color: var(--color-text); -webkit-text-stroke: 1px transparent; }

.c-section-title {
    font-size: var(--fs-h2);
    font-family: var(--font-en);
    margin-bottom: 40px;
    text-transform: uppercase;
    color: var(--color-text);
}

.c-sub {
    font-size: 0.8rem;
    color: var(--color-primary);
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
    font-family: var(--font-en);
    text-transform: uppercase;
}

/* Buttons */
.c-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 60px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-transform: uppercase;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: 0.3s;
    background: transparent;
    cursor: pointer;
}
[data-theme="light"] .c-btn { border-color: rgba(0,0,0,0.2); color: #111; }
.c-btn:hover { background: #fff; color: #000; }
[data-theme="light"] .c-btn:hover { background: #111; color: #fff; }

/* Cards */
.c-card {
    padding: 50px 40px;
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.02);
    transition: 0.4s;
}
.c-card:hover { transform: translateY(-10px); border-color: var(--color-primary); }
.c-card h3 { font-size: 1.5rem; margin-bottom: 20px; font-family: var(--font-en); color: var(--color-primary); }
.c-card p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.8; }

/* Layouts */
.hero-layout-center { text-align: center; }
.hero-layout-left { text-align: left; }
.hero-layout-right { text-align: right; }
.hero-layout-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* LP: Pain Section */
.lp-pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-pain-item { background: var(--color-bg); padding: 30px; border: 1px solid var(--color-border); text-align: center; }

/* WebGL */
#webgl-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.6; }
.hero-overlay-dynamic { position: absolute; inset: 0; background: radial-gradient(circle, transparent 20%, var(--color-bg) 100%); z-index: 1; pointer-events: none; }

/* Header & Footer */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 5000; padding: 30px 50px; display: flex; justify-content: space-between; align-items: center; mix-blend-mode: difference; color: #fff; transition: 0.3s; }
.site-logo img { height: 40px; width: auto; filter: invert(1); }
.site-footer { padding: 80px 0; border-top: 1px solid var(--color-border); background: #020202; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; }
.footer-nav ul { display: flex; gap: 30px; list-style: none; padding: 0; margin: 0; }
.footer-nav a { font-family: var(--font-en); font-size: 0.9rem; opacity: 0.7; }

/* Loading */
.loading-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-bg); z-index: 10000; display: flex; align-items: center; justify-content: center; transition: 0.8s; }
body.is-loaded .loading-screen { opacity: 0; visibility: hidden; }

/* Cursor */
.cursor-dot, .cursor-circle { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); }
body.use-custom-cursor * { cursor: none !important; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(40px); transition: 1s var(--easing); }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .hero-layout-split, .grid-2, .grid-3, .lp-pain-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-nav ul { flex-direction: column; gap: 15px; }
    .c-title { font-size: 3rem; }
    .l-section { padding: 80px 0; }
    .site-header { padding: 20px; }
    .cursor-dot, .cursor-circle { display: none; }
}