/* ===========================
   共通スタイル - common.css
   =========================== */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS変数 */
:root {
    --primary: #6366f1;
    --secondary: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-color: #fff;
    --bg-dark: #0a0a0a;
    --bg-section: #0f0f0f;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* 基本スタイル */
body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ホームページ用 */
body:not(.thanks-page):not(.privacy-page) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ヘッダー */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 15px 50px;
    background: rgba(10, 10, 10, 0.98);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* ナビゲーション */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-size: 16px;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 100px 30px 30px;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 30px;
}

.mobile-nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 20px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.mobile-nav-links a:hover {
    opacity: 1;
    transform: translateX(10px);
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.mobile-nav-links a:hover::before {
    width: 10px;
}

/* フッター */
footer {
    padding: 50px;
    background: #000;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-nav a:hover::after {
    width: 100%;
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* セクション共通 */
section {
    padding: 100px 50px;
    position: relative;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 60px;
    color: #ccc;
}

/* ボタン共通 */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* 背景アニメーション - オーロラエフェクト */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.aurora {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(99, 102, 241, 0.1) 30%,
        rgba(236, 72, 153, 0.1) 50%,
        rgba(99, 102, 241, 0.1) 70%,
        transparent 100%
    );
    animation: aurora 20s ease-in-out infinite;
}

.aurora:nth-child(2) {
    background: linear-gradient(
        -45deg,
        transparent 0%,
        rgba(236, 72, 153, 0.08) 30%,
        rgba(99, 102, 241, 0.08) 50%,
        rgba(236, 72, 153, 0.08) 70%,
        transparent 100%
    );
    animation-duration: 25s;
    animation-direction: reverse;
}

@keyframes aurora {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(5deg) translateY(-10%);
    }
    50% {
        transform: rotate(-5deg) translateY(10%);
    }
    75% {
        transform: rotate(3deg) translateY(-5%);
    }
}

/* フローティンググロウ */
.glow-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.orb1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    animation: float1 30s ease-in-out infinite;
}

.orb2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    animation: float2 25s ease-in-out infinite;
}

.orb3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    animation: float3 35s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(10%, 10%);
    }
    25% {
        transform: translate(80%, 20%);
    }
    50% {
        transform: translate(70%, 80%);
    }
    75% {
        transform: translate(20%, 70%);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(80%, 20%);
    }
    25% {
        transform: translate(10%, 60%);
    }
    50% {
        transform: translate(20%, 10%);
    }
    75% {
        transform: translate(70%, 50%);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(50%, 70%);
    }
    25% {
        transform: translate(20%, 20%);
    }
    50% {
        transform: translate(80%, 50%);
    }
    75% {
        transform: translate(10%, 90%);
    }
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ローディング */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}