/* ========================================
   base.css — CSS変数・リセット・タイポグラフィ
   STUDIO K © 2026
   ======================================== */

:root {
    --miku:       #39C5BB;
    --miku-dark:  #1a7a76;
    --miku-glow:  rgba(57, 197, 187, 0.35);
    --miku-soft:  rgba(57, 197, 187, 0.1);
    --miku-border:rgba(57, 197, 187, 0.2);

    --bg:         #070d12;
    --bg2:        #0d1a22;
    --bg3:        #0f2030;
    --bg4:        #091520;

    --text:       #e8f4f3;
    --text-dim:   #7aacaa;
    --text-muted: #4a7a78;
    --white:      #ffffff;

    --border:     rgba(57, 197, 187, 0.2);
    --border-dim: rgba(57, 197, 187, 0.08);

    --font-display: 'Bebas Neue', sans-serif;
    --font-mono:    'Space Mono', monospace;
    --font-body:    'Noto Sans JP', sans-serif;

    --radius:     0px;
    --transition: 0.3s ease;

    --max-width:  1200px;
    --header-h:   64px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* スキャンライン演出 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,0,0,0.025) 2px, rgba(0,0,0,0.025) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ========== タイポグラフィ ========== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: 2px;
    line-height: 1;
    color: var(--white);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--miku);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 200px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 64px);
    color: var(--white);
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.section-title .accent { color: var(--miku); }

.section-desc {
    font-size: 15px;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 60px;
    line-height: 2;
}

/* ========== ボタン ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--miku);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 32px;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.btn-primary:hover {
    background: #4de8e0;
    box-shadow: 0 0 40px var(--miku-glow);
    transform: translateY(-2px);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--miku);
    color: var(--miku);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 32px;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    transition: all var(--transition);
    cursor: pointer;
    background: none;
    white-space: nowrap;
}
.btn-outline:hover {
    background: var(--miku-soft);
    box-shadow: 0 0 20px var(--miku-glow);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 11px;
}

/* ========== セクション ========== */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

section {
    padding: 100px 40px;
}

section.bg2 { background: var(--bg2); }
section.bg3 { background: var(--bg3); }

/* ========== アニメーション ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--miku-glow); }
    50%       { box-shadow: 0 0 40px var(--miku-glow), 0 0 80px rgba(57,197,187,0.15); }
}

.fade-in        { animation: fadeInUp 0.8s ease forwards; }
.delay-1        { animation-delay: 0.1s; opacity: 0; }
.delay-2        { animation-delay: 0.2s; opacity: 0; }
.delay-3        { animation-delay: 0.35s; opacity: 0; }
.delay-4        { animation-delay: 0.5s; opacity: 0; }

/* スクロールアニメーション */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ========== ユーティリティ ========== */
.text-miku  { color: var(--miku); }
.text-dim   { color: var(--text-dim); }
.text-center { text-align: center; }

.mono {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--bg);
    background: var(--miku);
    padding: 4px 12px;
    text-transform: uppercase;
    display: inline-block;
}

.tag-outline {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--miku);
    border: 1px solid rgba(57,197,187,0.3);
    padding: 3px 10px;
    display: inline-block;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

/* ========== フォーム ========== */
.form-group { margin-bottom: 24px; }

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--miku);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.form-label .req { color: #e74c3c; margin-left: 4px; }

.form-control {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    border-radius: 0;
}
.form-control:focus {
    border-color: var(--miku);
    box-shadow: 0 0 0 3px rgba(57,197,187,0.1);
}
.form-control::placeholder { color: rgba(122,172,170,0.4); }
textarea.form-control { resize: vertical; min-height: 140px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ========== レスポンシブ ========== */
@media (max-width: 768px) {
    section { padding: 60px 20px; }
    .form-row { grid-template-columns: 1fr; }
}
