@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600;700&display=swap');

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #2d3748;
    background-color: #fcfbf9;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
    font-family: 'Noto Serif JP', serif;
}

:root {
    --color-gold: #c6a87c;
    --color-navy: #1e293b;
    --color-accent: #e55039;
}

/* アニメーション基本設定 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-500 { transition-delay: 500ms; }

/* ヘッダー */
nav {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
}

/* 洗練されたコンパスデザイン */
.compass-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 軌道リング */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(198, 168, 124, 0.2); /* 薄いゴールド */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 { width: 450px; height: 450px; border-style: dashed; animation: spin 60s linear infinite; }
.orbit-2 { width: 350px; height: 350px; border-color: rgba(30, 41, 59, 0.1); animation: spin 40s linear infinite reverse; }
.orbit-3 { width: 250px; height: 250px; border: 1px solid rgba(198, 168, 124, 0.3); animation: spin 20s linear infinite; }

/* 中央のガラスプレート */
.center-plate {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.05),
        inset 0 0 0 1px rgba(255,255,255,0.8);
    position: relative;
    z-index: 10;
}

/* 浮遊するノード（要素） */
.floating-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,1);
    transition: transform 0.3s ease;
    z-index: 20;
}

.node-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.node-navy { 
    top: 15%; 
    right: 0; 
    animation: float-1 6s ease-in-out infinite alternate;
}
.node-navy .node-icon { background-color: var(--color-navy); color: white; }
.node-navy h4 { color: var(--color-navy); font-size: 0.9rem; font-weight: bold; letter-spacing: 0.1em; }

.node-gold { 
    bottom: 15%; 
    left: 0; 
    animation: float-2 7s ease-in-out infinite alternate-reverse;
}
.node-gold .node-icon { background-color: white; border: 1px solid var(--color-gold); color: var(--color-gold); }
.node-gold h4 { color: var(--color-gold); font-size: 0.9rem; font-weight: bold; letter-spacing: 0.1em; }

/* 接続ライン（装飾） */
.connector-line {
    position: absolute;
    background-color: var(--color-gold);
    opacity: 0.3;
    z-index: 5;
}
.line-1 { width: 1px; height: 100px; top: 50%; left: 50%; transform: rotate(45deg); transform-origin: top left; }
.line-2 { width: 1px; height: 80px; top: 50%; left: 50%; transform: rotate(-135deg); transform-origin: top left; }

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

@keyframes float-1 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes float-2 {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* ヒーロー背景 */
.hero-bg-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.03) 0%, rgba(198, 168, 124, 0.1) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

/* ボタンのきらめき効果 */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s;
}
.btn-shine:hover::after {
    transform: rotate(45deg) translate(100%, 100%);
}

/* その他ユーティリティ */
.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
}
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-navy);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--color-gold);
    z-index: 1;
}
.speech-bubble {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}
