/* ========================================
   Material Design 3 - ゆっくりみのる
   新デザイン - モダン & クリーン
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

/* カラーシステム */
:root {
    /* Primary - 紫系 */
    --primary: #7C4DFF;
    --primary-light: #B47CFF;
    --primary-dark: #651FFF;
    --primary-container: #F3E8FF;
    --on-primary: #FFFFFF;
    --on-primary-container: #4A148C;
    
    /* Secondary - ティール系 */
    --secondary: #00BFA5;
    --secondary-light: #5DF2D6;
    --secondary-container: #E0F7FA;
    --on-secondary: #FFFFFF;
    --on-secondary-container: #004D40;
    
    /* Tertiary - オレンジ系 */
    --tertiary: #FF6D00;
    --tertiary-light: #FF9E40;
    --tertiary-container: #FFF3E0;
    --on-tertiary: #FFFFFF;
    --on-tertiary-container: #E65100;
    
    /* Neutral */
    --surface: #FAFAFA;
    --surface-dim: #F0F0F0;
    --surface-bright: #FFFFFF;
    --surface-container: #F5F5F5;
    --surface-container-high: #EEEEEE;
    --on-surface: #1A1A2E;
    --on-surface-variant: #5C5C6F;
    --outline: #E0E0E0;
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #7C4DFF 0%, #448AFF 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    
    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(124, 77, 255, 0.15);
    
    /* 角丸 */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-full: 9999px;
    
    /* トランジション */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ダークモード */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #B388FF;
        --primary-light: #E1BEE7;
        --primary-dark: #7C4DFF;
        --primary-container: #4A148C;
        --on-primary: #1A1A2E;
        --on-primary-container: #F3E8FF;
        
        --secondary: #64FFDA;
        --secondary-container: #004D40;
        --on-secondary-container: #E0F7FA;
        
        --tertiary: #FFAB40;
        --tertiary-container: #E65100;
        --on-tertiary-container: #FFF3E0;
        
        --surface: #121218;
        --surface-dim: #0D0D12;
        --surface-bright: #1E1E28;
        --surface-container: #1A1A24;
        --surface-container-high: #252532;
        --on-surface: #E8E8F0;
        --on-surface-variant: #A0A0B0;
        --outline: #3A3A4A;
        
        --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #4a148c 50%, #7c4dff 100%);
        --gradient-card: linear-gradient(145deg, #1e1e28 0%, #252532 100%);
        
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
        --shadow-glow: 0 0 60px rgba(179, 136, 255, 0.2);
    }
}

/* リセット */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--surface);
    color: var(--on-surface);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   ナビゲーション
   ======================================== */
.nav-bar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--surface-bright);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--outline);
    border-radius: var(--radius-full);
    padding: 8px;
    box-shadow: var(--shadow-md);
    width: auto;
    max-width: calc(100% - 32px);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.nav-logo:hover {
    background: var(--primary-container);
}

.nav-logo .material-icons-round {
    font-size: 22px;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--outline);
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--on-surface-variant);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    background: var(--surface-container-high);
    color: var(--on-surface);
}

.nav-link.active {
    background: var(--primary);
    color: var(--on-primary);
}

.nav-link .material-icons-round {
    font-size: 20px;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero-section {
    background: var(--gradient-hero);
    padding: 140px 24px 100px;
    position: relative;
    overflow: hidden;
}

/* 装飾用の円 */
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.avatar {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: avatar-pulse 4s ease-in-out infinite;
}

@keyframes avatar-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); }
    50% { transform: scale(1.03); box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25); }
}

.avatar-icon {
    font-size: 70px;
    color: white;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin-bottom: 28px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-chips {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-fast);
}

.hero-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-chip .material-icons-round {
    font-size: 20px;
}

/* ヒーロー下の波形 */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--surface);
    clip-path: ellipse(70% 100% at 50% 100%);
}

/* 小さいヒーロー（名言ページ用） */
.hero-small {
    padding: 120px 24px 80px;
}

.hero-small .avatar {
    display: none;
}

.hero-small .hero-title {
    font-size: 2.5rem;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.main-content {
    flex: 1;
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* セクションヘッダー */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.section-icon {
    font-size: 28px;
    color: var(--on-primary);
    background: var(--gradient-primary);
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--on-surface);
    letter-spacing: -0.5px;
}

/* ========================================
   自己紹介セクション
   ======================================== */
.about-section {
    margin-bottom: 64px;
}

.about-card {
    background: var(--gradient-card);
    border: 1px solid var(--outline);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.about-text {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--on-surface);
}

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   YouTubeセクション
   ======================================== */
.youtube-section {
    margin-bottom: 64px;
}

.youtube-icon {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%) !important;
}

.youtube-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #FF0000 0%, #D50000 50%, #B71C1C 100%);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    text-decoration: none;
    color: white;
    box-shadow: var(--shadow-md), 0 0 40px rgba(255, 0, 0, 0.15);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.youtube-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transition: var(--transition-slow);
}

.youtube-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(255, 0, 0, 0.25);
}

.youtube-card:hover::before {
    transform: translateX(20%);
}

.youtube-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.youtube-svg {
    width: 36px;
    height: 36px;
}

.youtube-info {
    flex: 1;
}

.youtube-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.youtube-info p {
    font-size: 1rem;
    opacity: 0.9;
}

.youtube-arrow {
    font-size: 32px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.youtube-card:hover .youtube-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ========================================
   リンクセクション
   ======================================== */
.links-section {
    margin-bottom: 64px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    border: 1px solid var(--outline);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.link-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--primary);
    opacity: 0.05;
    transition: var(--transition-normal);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.link-card:hover::after {
    height: 100%;
}

.link-card.card-primary {
    background: var(--gradient-card);
}

.link-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.link-icon-wrapper .material-icons-round {
    font-size: 28px;
}

.link-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.link-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 4px;
}

.link-info p {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
}

.link-arrow {
    color: var(--primary);
    font-size: 28px;
    transition: var(--transition-fast);
    position: relative;
    z-index: 1;
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
}

/* ========================================
   名言カード
   ======================================== */
.quotes-section {
    margin-bottom: 48px;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.quote-card {
    position: relative;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    transition: var(--transition-normal);
    overflow: hidden;
    cursor: default;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--transition-normal);
}

.quote-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.quote-card:hover::before {
    opacity: 1;
}

/* カードバリエーション */
.card-primary {
    background: linear-gradient(145deg, var(--primary-container) 0%, #E8DEF8 100%);
}

.card-primary .quote-icon-wrapper {
    background: var(--gradient-primary);
    color: white;
}

.card-primary .quote-text {
    color: var(--on-primary-container);
}

.card-secondary {
    background: linear-gradient(145deg, var(--secondary-container) 0%, #B2DFDB 100%);
}

.card-secondary .quote-icon-wrapper {
    background: linear-gradient(135deg, var(--secondary) 0%, #00897B 100%);
    color: white;
}

.card-secondary .quote-text {
    color: var(--on-secondary-container);
}

.card-tertiary {
    background: linear-gradient(145deg, var(--tertiary-container) 0%, #FFE0B2 100%);
}

.card-tertiary .quote-icon-wrapper {
    background: linear-gradient(135deg, var(--tertiary) 0%, #F57C00 100%);
    color: white;
}

.card-tertiary .quote-text {
    color: var(--on-tertiary-container);
}

.quote-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.quote-icon-wrapper .material-icons-round {
    font-size: 28px;
}

.quote-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
}

.quote-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.1;
}

/* ========================================
   戻るボタン
   ======================================== */
.back-section {
    margin-top: 48px;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-card);
    border: 1px solid var(--outline);
    color: var(--on-surface);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.back-button:hover {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-2px);
}

.back-button .material-icons-round {
    font-size: 22px;
    transition: var(--transition-fast);
}

.back-button:hover .material-icons-round {
    transform: translateX(-4px);
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: var(--surface-container);
    border-top: 1px solid var(--outline);
    padding: 40px 24px;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--on-surface-variant);
}

.footer-content .material-icons-round {
    font-size: 20px;
    color: var(--primary);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.footer p {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========================================
   アニメーション
   ======================================== */
.quote-card {
    animation: fadeInUp 0.6s ease backwards;
}

.quote-card:nth-child(1) { animation-delay: 0.05s; }
.quote-card:nth-child(2) { animation-delay: 0.1s; }
.quote-card:nth-child(3) { animation-delay: 0.15s; }
.quote-card:nth-child(4) { animation-delay: 0.2s; }
.quote-card:nth-child(5) { animation-delay: 0.25s; }
.quote-card:nth-child(6) { animation-delay: 0.3s; }
.quote-card:nth-child(7) { animation-delay: 0.35s; }
.quote-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card,
.youtube-card,
.link-card {
    animation: fadeInUp 0.6s ease backwards;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
    .nav-bar {
        top: 12px;
        padding: 6px;
    }
    
    .nav-logo span:not(.material-icons-round) {
        display: none;
    }
    
    .nav-link span:not(.material-icons-round) {
        display: none;
    }
    
    .nav-link {
        padding: 10px 14px;
    }
    
    .hero-section {
        padding: 120px 20px 80px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .avatar {
        width: 110px;
        height: 110px;
    }
    
    .avatar-icon {
        font-size: 55px;
    }
    
    .main-content {
        padding: 40px 16px;
    }
    
    .quotes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .quote-card {
        padding: 24px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .about-card {
        padding: 28px;
    }
    
    .youtube-card {
        padding: 20px 24px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .youtube-arrow {
        display: none;
    }
    
    .hero-small {
        padding: 100px 20px 60px;
    }
    
    .hero-small .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-chip {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
}
