/* ========================================
   基本設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット（ロゴの配色を反映） */
    --primary-orange: #FF8C42;
    --primary-blue: #4A90E2;
    --secondary-pink: #FFB6C1;
    --secondary-yellow: #FFD966;
    --bg-gradient-start: #FFF5E6;
    --bg-gradient-end: #E6F3FF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #E0E0E0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --white: #FFFFFF;
    --success-green: #4CAF50;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-primary);
    line-height: 1.65;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    font-size: 15px;
}

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

/* ========================================
   ヘッダー（ナビゲーション）
   ======================================== */
.site-header {
    background: var(--white);
    box-shadow: 0 1px 4px var(--shadow-light);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    display: block;
}

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

/* モバイルメニュー（768px以下で表示） */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-orange);
    cursor: pointer;
}

/* ========================================
   BGM コントロール
   ======================================== */
.bgm-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 200;
}

.bgm-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bgm-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.bgm-toggle:active {
    transform: scale(0.95);
}

.bgm-icon {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.bgm-slash {
    position: absolute;
    width: 3px;
    height: 50px;
    background: var(--white);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.bgm-toggle.paused .bgm-icon {
    animation: none;
}

.bgm-toggle.paused .bgm-slash {
    opacity: 0;
}

.bgm-toggle:not(.paused) .bgm-slash {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    position: relative;
    padding: 60px 0 70px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo-wrapper {
    margin-bottom: 25px;
    animation: fadeInDown 1s ease-out;
}

.hero-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px var(--shadow-medium));
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-badge {
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.badge-text {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* 音符アニメーション */
.floating-notes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.note {
    position: absolute;
    font-size: 2.8rem;
    color: var(--primary-orange);
    opacity: 0.5;
    animation: float 15s infinite ease-in-out;
    font-weight: bold;
}

.note-1 { top: 10%; left: 10%; animation-delay: 0s; }
.note-2 { top: 20%; right: 15%; animation-delay: 2s; color: var(--primary-blue); }
.note-3 { bottom: 30%; left: 20%; animation-delay: 4s; color: var(--secondary-pink); }
.note-4 { top: 50%; right: 10%; animation-delay: 6s; }
.note-5 { bottom: 20%; right: 25%; animation-delay: 8s; color: var(--secondary-yellow); }
.note-6 { top: 70%; left: 15%; animation-delay: 10s; color: var(--primary-blue); }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   セクション共通スタイル
   ======================================== */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    /* margin-bottom: 12px; */
    margin-bottom: 40px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: .15rem;
    text-indent: .15rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-blue));
    /* margin: 12px auto 0; */
    margin: 32px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* ========================================
   プロジェクト紹介セクション
   ======================================== */
.about-section {
    padding: 60px 0;
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.about-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-text strong {
    color: var(--primary-orange);
    font-weight: 700;
}

.collaboration {
    margin-top: 40px;
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.05), rgba(74, 144, 226, 0.05));
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.collaboration h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.collab-partners {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.partner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.partner-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.collab-symbol {
    font-size: 1.5rem;
    color: var(--primary-orange);
    font-weight: 700;
}

/* ========================================
   使い方ガイドセクション
   ======================================== */
.guide-section {
    padding: 50px 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.guide-card-simple {
    background: var(--white);
    padding: 24px 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.guide-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.guide-card-simple h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.guide-card-simple p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   学習コンテンツセクション
   ======================================== */
.contents-section {
    padding: 60px 0;
    background: var(--white);
}

.contents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.content-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px var(--shadow-medium);
}

.content-card.coming-soon {
    opacity: 0.7;
}

.card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.available-badge {
    background: var(--success-green);
}

.coming-soon-badge {
    background: rgba(255, 255, 255, 0.3);
}

.card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: var(--border-color);
    overflow: hidden;
}

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

.card-thumbnail.placeholder {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(74, 144, 226, 0.1));
}

.placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.placeholder-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

.placeholder-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card.available:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 4rem;
    color: var(--white);
}

.card-body {
    padding: 20px;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   学習指導案セクション
   ======================================== */
.lesson-plan-section {
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.lesson-plan-card {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.08), rgba(74, 144, 226, 0.08));
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.lesson-plan-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.lesson-plan-content {
    flex: 1;
}

.lesson-plan-content h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.lesson-plan-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.lesson-plan-content .btn {
    display: inline-flex;
    width: auto;
}

/* ========================================
   ボタンスタイル
   ======================================== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-disabled {
    background: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ========================================
   事後アンケートセクション
   ======================================== */
.survey-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.05), rgba(74, 144, 226, 0.05));
}

.survey-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.survey-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required {
    color: var(--primary-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.radio-text {
    font-size: 1rem;
    color: var(--text-primary);
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

/* 成功メッセージ */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 25px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-message h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.success-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact-section {
    padding: 60px 0;
    background: var(--white);
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 5px;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--white);
    padding: 25px 0;
    text-align: center;
}

.site-footer p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ========================================
   動画モーダル
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    animation: slideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 900px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .lesson-plan-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* ナビゲーションをシンプルに */
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
    }
    
    .brand-logo {
        height: 20px;
    }
    
    /* BGMコントロール */
    .bgm-control {
        bottom: 20px;
        right: 20px;
    }
    
    .bgm-toggle {
        width: 50px;
        height: 50px;
    }
    
    .bgm-icon {
        font-size: 1.5rem;
    }
    
    .bgm-slash {
        height: 42px;
    }

    .hero-logo {
        max-width: 90%;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .section-subtitle {
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contents-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .survey-form-wrapper {
        padding: 25px;
    }

    .collab-partners {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    /* ナビゲーションを縦並びに */
    .main-nav {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
    
    .brand-logo {
        height: 18px;
    }
    
    .nav-menu {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu a {
        font-size: 0.75rem;
        padding: 6px 0;
    }

    .hero {
        padding: 50px 0 60px;
    }
    
    .hero-logo {
        max-width: 95%;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .badge-text {
        font-size: 0.8rem;
        padding: 8px 18px;
    }

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

    .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .card-title {
        font-size: 1.1rem;
    }
}