/* ================================
   リセット & 基本設定
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Sensual Mode - Elegant Adult Design */
    --primary-color: #E91E63;              /* Pink (Material Design) */
    --primary-rose: #F06292;               /* Light Rose */
    --secondary-color: #ffffff;            /* White */
    --accent-color: #9C27B0;               /* Purple */
    --accent-pink: #FF4081;                /* Accent Pink */
    --accent-lavender: #E1BEE7;            /* Lavender */
    --accent-coral: #FF6F91;               /* Coral Pink */
    --text-color: #2C2C2C;                 /* Dark Gray for light theme */
    --text-light: #666666;                 /* Medium gray */
    --text-dark: #1a1a1a;                  /* Very dark text */
    --bg-light: #FFF5F7;                   /* Very light pink */
    --bg-dark: #ffffff;                    /* Pure white */
    --bg-gradient: linear-gradient(135deg, #FFF5F7 0%, #FCE4EC 50%, #FFF5F7 100%);
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #E91E63 0%, #9C27B0 50%, #673AB7 100%);
    --gradient-vibrant: linear-gradient(135deg, #FF4081 0%, #E91E63 100%);
    --gradient-pink: linear-gradient(135deg, #F06292 0%, #E91E63 100%);
    --gradient-soft: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%);
    --shadow: 0 4px 6px rgba(233, 30, 99, 0.15);
    --shadow-md: 0 8px 16px rgba(233, 30, 99, 0.2);
    --shadow-lg: 0 20px 40px rgba(233, 30, 99, 0.25);
    --shadow-xl: 0 30px 60px rgba(233, 30, 99, 0.3);
    --shadow-glow: 0 0 20px rgba(233, 30, 99, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(156, 39, 176, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(233, 30, 99, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Meiryo', 'メイリオ', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--bg-gradient);
}

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

/* ================================
   ヘッダー & ナビゲーション
   ================================ */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(233, 30, 99, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(233, 30, 99, 0.15);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

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

.logo h1 {
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* ================================
   ヒーローセクション - モダンデザイン
   ================================ */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(252, 228, 236, 0.85) 0%, rgba(248, 187, 208, 0.8) 20%, rgba(233, 30, 99, 0.75) 60%, rgba(156, 39, 176, 0.8) 100%),
        url('/images/optimized/hero-bg.webp');
    background-size: cover, cover;
    background-position: center, center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

/* アニメーションするグラデーション */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 浮遊する装飾要素 */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-main {
    font-size: 5rem;
    margin-bottom: 2rem;
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.8;
}

/* ================================
   ボタン - モダンデザイン
   ================================ */
.btn {
    display: inline-block;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-pink);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3), var(--shadow-glow);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4), var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.3rem;
}

/* ================================
   統計セクション
   ================================ */
.stats {
    background: var(--white);
    color: var(--text-color);
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ================================
   セクション共通
   ================================ */
.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: var(--gradient-vibrant);
    border-radius: 10px;
    box-shadow: var(--shadow-glow);
}

/* ================================
   理念セクション
   ================================ */
.philosophy {
    padding: 6rem 0;
    background:
        linear-gradient(135deg, rgba(255, 245, 247, 0.97) 0%, rgba(252, 228, 236, 0.95) 50%, rgba(255, 245, 247, 0.97) 100%),
        url('/images/optimized/philosophy-bg.webp');
    background-size: cover;
    background-position: center;
}

.philosophy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.philosophy-item {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
}

.philosophy-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.philosophy-item .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.philosophy-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ================================
   学部プレビュー
   ================================ */
.faculties-preview {
    padding: 6rem 0;
}

.faculties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faculty-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(233, 30, 99, 0.15);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.faculty-card:nth-child(1) {
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%),
        url('/images/optimized/faculty-1.webp');
}

.faculty-card:nth-child(2) {
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%),
        url('/images/optimized/faculty-1.webp');
}

.faculty-card:nth-child(3) {
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%),
        url('/images/optimized/faculty-3.webp');
}

.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.5s;
}

.faculty-card:hover::before {
    transform: scaleX(1);
}

.faculty-card:hover {
    border-color: rgba(220, 20, 60, 0.3);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.faculty-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.faculty-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* ================================
   学生の声セクション
   ================================ */
.testimonials {
    padding: 6rem 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    margin-top: -2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid transparent;
    border-image: var(--gradient) 1;
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 8rem;
    color: rgba(220, 20, 60, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.student-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.student-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

.student-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-rating {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
}

/* ================================
   学長セクション
   ================================ */
.president {
    padding: 6rem 0;
    background:
        linear-gradient(135deg, rgba(255, 245, 247, 0.95) 0%, rgba(252, 228, 236, 0.9) 100%),
        url('/images/optimized/president-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.president-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.president-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.president-photo:hover {
    transform: scale(1.05) rotate(5deg);
}

.president-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.president-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.president-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ================================
   ニュースセクション
   ================================ */
.news {
    padding: 6rem 0;
}

.news-grid {
    display: grid;
    gap: 2rem;
}

.news-item {
    background: var(--white);
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateX(10px);
}

.news-date {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.news-item p {
    color: var(--text-light);
}

/* ================================
   CTAセクション
   ================================ */
.cta {
    background:
        linear-gradient(135deg, rgba(233, 30, 99, 0.9) 0%, rgba(156, 39, 176, 0.85) 100%),
        url('/images/optimized/cta-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ================================
   フッター
   ================================ */
.footer {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.95) 0%, rgba(156, 39, 176, 0.9) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ================================
   アニメーション
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ================================
   レスポンシブ
   ================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-main {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .president-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .president-placeholder {
        margin: 0 auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ================================
   Knowledge Base Styles
   ================================ */

/* 検索セクション */
.knowledge-search {
    background: var(--bg-light);
    padding: 3rem 0;
    border-bottom: 2px solid var(--glass-border);
}

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    background: var(--white);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.search-box button {
    padding: 1rem 2rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.search-stats {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.search-stats strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 講義リスト */
.knowledge-list {
    padding: 4rem 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.video-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-title a:hover {
    color: var(--primary-color);
}

.video-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* モーダル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.transcript-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.transcript-text {
    line-height: 2;
    color: var(--text-color);
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* メッセージ */
.loading,
.no-results,
.error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.loading p,
.no-results p,
.error-message p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.no-results p:first-child,
.error-message p:first-child {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ヒーローセクション（小） */
.hero-small {
    padding: 4rem 0 3rem;
    min-height: auto;
}

.hero-small .hero-content {
    text-align: center;
}

.hero-small .hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-small .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .video-actions {
        flex-direction: column;
    }

    .video-actions .btn {
        width: 100%;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .transcript-meta {
        flex-direction: column;
    }

    .transcript-meta .btn {
        width: 100%;
    }
}
