/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #0a0a0a;
    --dark: #141414;
    --gray-dark: #1e1e1e;
    --gray: #333;
    --gray-mid: #666;
    --gray-light: #999;
    --silver: #ccc;
    --white: #f5f5f5;
    --pure-white: #fff;
    --accent: #fff;
    --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray);
    padding: 16px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.logo-icon {
    font-size: 1.5rem;
    background: var(--pure-white);
    color: var(--black);
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
    font-weight: 700;
}

.nav { display: flex; gap: 32px; }
.nav a {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--silver);
    transition: color 0.3s;
}
.nav a:hover { color: var(--pure-white); }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px;
}
.burger span {
    display: block;
    width: 26px; height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--black) 0%, var(--dark) 100%);
}

.hero-bg::before {
    content: '空手道';
    position: absolute;
    font-size: 28vw;
    color: rgba(255,255,255,0.025);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-weight: 900;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.accent {
    color: var(--pure-white);
    position: relative;
}

.accent::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 4px;
    background: var(--pure-white);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--silver);
    margin-bottom: 40px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--pure-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--pure-white);
    color: var(--black);
}
.btn-primary:hover {
    background: transparent;
    color: var(--pure-white);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--gray-light);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: var(--gray-light);
    margin: 12px auto 0;
    position: relative;
    animation: scrollPulse 2s ease infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0; left: -4px;
    width: 9px; height: 9px;
    border-right: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    transform: rotate(45deg);
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== ABOUT ===== */
.about {
    padding: 120px 0;
    background: var(--dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
}

.about-image-frame {
    aspect-ratio: 3/4;
    border: 2px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image-frame::before {
    content: '';
    position: absolute;
    top: -1px; right: -1px;
    width: 60px; height: 60px;
    border-top: 3px solid var(--pure-white);
    border-right: 3px solid var(--pure-white);
}

.about-image-frame::after {
    content: '';
    position: absolute;
    bottom: -1px; left: -1px;
    width: 60px; height: 60px;
    border-bottom: 3px solid var(--pure-white);
    border-left: 3px solid var(--pure-white);
}

.about-placeholder {
    text-align: center;
    color: var(--gray-mid);
}

.kanji-big {
    display: block;
    font-size: 6rem;
    margin-bottom: 16px;
    color: var(--gray);
}

.placeholder-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 3px;
    background: var(--pure-white);
}

.section-title.center { text-align: center; }
.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--silver);
    font-size: 1.05rem;
}

.about-text strong { color: var(--pure-white); }

/* ===== ADVANTAGES ===== */
.advantages {
    padding: 120px 0;
    background: var(--black);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.advantage-card {
    background: var(--dark);
    border: 1px solid var(--gray);
    padding: 40px 28px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 3px;
    background: var(--pure-white);
    transition: width 0.4s ease;
}

.advantage-card:hover::before { width: 100%; }

.advantage-card:hover {
    border-color: var(--gray-mid);
    transform: translateY(-4px);
}

.advantage-icon {
    width: 64px; height: 64px;
    margin: 0 auto 24px;
    color: var(--pure-white);
}

.advantage-icon svg {
    width: 100%; height: 100%;
}

.advantage-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.advantage-card p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

/* ===== SCHEDULE ===== */
.schedule {
    padding: 120px 0;
    background: var(--dark);
}

.schedule-table {
    max-width: 800px;
    margin: 48px auto 0;
    border: 1px solid var(--gray);
}

.schedule-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    border-bottom: 1px solid var(--gray);
}

.schedule-row:last-child { border-bottom: none; }

.schedule-row.header {
    background: var(--pure-white);
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.schedule-cell {
    padding: 18px 24px;
    display: flex;
    align-items: center;
}

.schedule-row:not(.header):hover {
    background: rgba(255,255,255,0.03);
}

.schedule-note {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-light);
    font-size: 0.85rem;
}

/* ===== CONTACT ===== */
.contact {
    padding: 120px 0;
    background: var(--black);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info p {
    color: var(--silver);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: var(--silver);
}

.contact-item svg {
    width: 24px; height: 24px;
    flex-shrink: 0;
    color: var(--pure-white);
}

.contact-form {
    background: var(--dark);
    border: 1px solid var(--gray);
    padding: 40px;
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: var(--gray-dark);
    border: 1px solid var(--gray);
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus {
    border-color: var(--pure-white);
}

.contact-form input::placeholder { color: var(--gray-mid); }

.contact-form select option { background: var(--dark); }

.contact-form .btn {
    width: 100%;
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    padding: 32px 0;
    background: var(--dark);
    border-top: 1px solid var(--gray);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray-light);
}

.footer-content .logo-icon {
    width: 32px; height: 32px;
    font-size: 1rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 48px; }
}

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

    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(10,10,10,0.98);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--gray);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image { order: -1; max-width: 400px; margin: 0 auto; }

    .about-stats { gap: 24px; flex-wrap: wrap; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .advantages-grid { grid-template-columns: 1fr; }

    .schedule-row { grid-template-columns: 1fr; }
    .schedule-row.header { display: none; }
    .schedule-cell { padding: 12px 20px; }
    .schedule-cell:first-child {
        font-weight: 700;
        font-size: 1.05rem;
        color: var(--pure-white);
    }

    .hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .about-stats { gap: 16px; }
    .stat-number { font-size: 2.2rem; }
    .section-title { font-size: 1.6rem; }
    .contact-form { padding: 24px; }
}