:root {
    --brand-main: #ccff00;       
    --brand-main-hover: #d9ff33; 
    
    --bg-base: #09090b;      
    --bg-surface: #121214; 
    --bg-surface-hover: #18181b;
    
    --text-high: #fafafa;
    --text-main: #e4e4e7;        
    --text-muted: #a1a1aa;       
    --text-inverse: #09090b;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    
    --transition-snappy: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-base); 
    color: var(--text-main);
    font-family: var(--font-sans); 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    letter-spacing: -0.01em;
    position: relative;
}

body::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 80vw; height: 80vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(204,255,0,0.03) 0%, transparent 70%);
    pointer-events: none; z-index: -1;
}

a { text-decoration: none; color: inherit; transition: var(--transition-snappy); }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.section-padding { padding: 6rem 0; }
@media (min-width: 768px) { .section-padding { padding: 8rem 0; } }

.uppercase { text-transform: uppercase; }
h1, h2, h3, h4 { color: var(--text-high); line-height: 1.1; letter-spacing: -0.03em; }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brand-main); color: var(--text-inverse);
    padding: 1rem 2rem; font-weight: 700; font-size: 0.95rem;
    border-radius: 99px; transition: var(--transition-snappy);
    box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.4);
}
.btn-primary:hover { 
    background: var(--brand-main-hover); transform: translateY(-2px); 
    box-shadow: 0 8px 24px -8px rgba(204, 255, 0, 0.6);
}

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-highlight); color: var(--text-high);
    background: transparent;
    padding: 1rem 2rem; font-weight: 600; font-size: 0.95rem;
    border-radius: 99px; transition: var(--transition-snappy);
}
.btn-outline:hover { 
    border-color: var(--text-high); background: rgba(255,255,255,0.05);
}

.section-badge {
    display: inline-block; padding: 6px 12px; 
    border: 1px solid var(--border-light);
    border-radius: 99px; font-size: 0.75rem; font-weight: 600; color: var(--brand-main);
    margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em;
    background: rgba(204, 255, 0, 0.05);
}
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
@media (min-width: 768px) { .section-title { font-size: 3.5rem; } }

.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Header */
.header { position: fixed; top: 16px; left: 0; width: 100%; z-index: 1000; padding: 0 16px; transition: var(--transition-snappy); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; padding: 0 24px; max-width: 1300px; margin: 0 auto;
    background: rgba(9, 9, 11, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light); border-radius: 999px;
}
.logo { font-weight: 800; font-size: 1.1rem; color: var(--text-high); letter-spacing: -0.02em;}
.desktop-nav { display: none; }
@media (min-width: 1024px) {
    .desktop-nav { display: flex; align-items: center; gap: 32px; }
    .desktop-nav a { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
    .desktop-nav a:hover, .desktop-nav a.active { color: var(--text-high); }
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch, .header-insta-link { color: var(--text-main); transition: color 0.3s ease; display: flex; align-items: center; }
.lang-switch:hover, .header-insta-link:hover { color: var(--text-high); }
.lang-switch svg { width: 16px; height: 16px; margin-right: 4px; }
.header-book-btn { display: none; }
@media (min-width: 768px) {
    .header-book-btn {
        background: var(--text-high); color: var(--text-inverse);
        font-size: 0.8rem; font-weight: 700; padding: 8px 16px; border-radius: 99px;
        transition: var(--transition-snappy);
    }
    .header-book-btn:hover { background: var(--text-main); transform: scale(1.05); }
}
.menu-btn { color: var(--text-high); display: flex; align-items: center; padding: 4px; }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* Mobile Menu */
.menu {
    background: var(--bg-base); position: fixed; top: 0; right: -300px; 
    width: 300px; height: 100%; z-index: 2000; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    padding: 80px 32px; border-left: 1px solid var(--border-light);
    display: flex; flex-direction: column; gap: 24px;
}
.menu a { font-size: 1.25rem; font-weight: 600; color: var(--text-main); }
.overlay {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 1500; cursor: pointer; 
}

/* Compact Header & Breadcrumb */
.page-top-spacer { height: 100px; }
@media (min-width: 768px) { .page-top-spacer { height: 120px; } }

.breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 0.8rem; color: var(--text-muted);
    margin-bottom: 2rem;
    list-style: none; padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand-main); }
.breadcrumb svg { width: 12px; height: 12px; opacity: 0.5; }

.compact-page-header { margin-bottom: 3rem; }
.page-title {
    font-size: 2.25rem; font-weight: 900; margin-bottom: 1rem; letter-spacing: -0.04em; color: var(--text-high); line-height: 1.1;
}
@media (min-width: 768px) { .page-title { font-size: 3.5rem; } }
.page-desc {
    color: var(--text-main); font-size: 1.05rem; font-weight: 400; line-height: 1.7; max-width: 800px;
}

/* Intro Grid (Image & Overview) */
.intro-grid {
    display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem;
}
@media (min-width: 1024px) {
    .intro-grid { 
        grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; 
    }
}

.intro-img-wrap {
    width: 100%; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--border-light); position: relative;
}
@media (min-width: 1024px) { 
    .intro-img-wrap { 
        aspect-ratio: 1/1; /* 縦幅を抑えるために正方形に変更 */
        position: sticky; top: 120px; 
    } 
}
.intro-img-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }

.intro-content-wrap { display: flex; flex-direction: column; gap: 2rem; }

.overview-content h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.overview-content p { margin-bottom: 1rem; color: var(--text-main); line-height: 1.7; font-size: 0.95rem; }
.overview-content p:last-child { margin-bottom: 0; }

.class-stats {
    background: var(--bg-surface); border: 1px solid var(--border-light);
    border-radius: 24px; padding: 1.5rem; 
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem;
}
.stat-item { display: flex; flex-direction: column; }
.stat-item.full-width { grid-column: 1 / -1; }

.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.stat-value { font-size: 1.05rem; font-weight: 600; color: var(--text-high); }

.intensity-bars { display: flex; gap: 4px; margin-top: 0.25rem; }
.intensity-bar { width: 24px; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.1); }
.intensity-bar.active { background: var(--brand-main); box-shadow: 0 0 10px rgba(204, 255, 0, 0.4); }

/* HYROX Workouts Bento Grid */
.workout-section { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--border-light); }
.workout-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem;
}
@media (min-width: 600px) { .workout-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .workout-grid { grid-template-columns: repeat(4, 1fr); } }

.workout-card {
    background: var(--bg-surface); border: 1px solid var(--border-light);
    border-radius: 16px; overflow: hidden; transition: var(--transition-snappy);
    display: flex; flex-direction: column;
}
.workout-card:hover { border-color: var(--brand-main); transform: translateY(-4px); }

.workout-img {
    width: 100%; aspect-ratio: 4/3; position: relative; background: #000;
}
.workout-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.workout-number {
    position: absolute; top: 12px; left: 12px;
    background: var(--brand-main); color: var(--text-inverse);
    font-weight: 900; font-size: 0.85rem; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
}

.workout-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.workout-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text-high); }
.workout-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* Footer */
.footer { border-top: 1px solid var(--border-light); padding: 5rem 0 2rem; background: var(--bg-surface); margin-top: 6rem; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-title { font-size: 0.8rem; color: var(--text-high); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; font-weight: 700; }
.footer-nav li { margin-bottom: 0.75rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--text-high); }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-light); display: flex; flex-direction: column; align-items: center; gap: 1.5rem; color: var(--text-muted); font-size: 0.85rem; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-legal-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0;}
.footer-legal-nav a { color: var(--text-muted); }
.footer-legal-nav a:hover { color: var(--text-high); }