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

:root {
    /* カラーパレット - 自然をテーマにした優しい色合い */
    --primary-color: #2bb324;
    --primary-light: #5dd156;
    --primary-dark: #229419;
    --secondary-color: #e8d5b7;
    --accent-color: #2bb324;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-cream: #EFF9FD;
    --bg-light: #f8fcfe;
    --bg-white: #ffffff;
    --border-light: #e5e5dc;

    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* フォント */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;

    /* トランジション */
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-light);
    line-height: 1.8;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* ===================================
   ローディング画面
   =================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.piano-keys {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.piano-keys .key {
    width: 20px;
    height: 60px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 0 0 4px 4px;
    animation: keyPress 1.2s ease-in-out infinite;
}

.piano-keys .key:nth-child(2) {
    animation-delay: 0.2s;
}

.piano-keys .key:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes keyPress {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); background: var(--primary-light); }
}

/* ===================================
   ヘッダー
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition-base);
}

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

.logo h1 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
}

.logo .subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
}

.nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-base);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30rem 2rem 9rem;
    margin-top: 80px;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3)), url('images/top.jpg') center top / cover no-repeat;
    background-attachment: scroll;
    background-size: 100% auto;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.music-note {
    position: absolute;
    font-size: 3rem;
    color: #ffffff;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.note-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    opacity: 0.3;
}

.note-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    opacity: 0.3;
}

.note-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    opacity: 0.3;
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   ボタンスタイル
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(123, 168, 150, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ===================================
   共通セクションスタイル
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

.section-header .instrument-card {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1.5rem 2.5rem;
}

.section-header .instrument-card .section-subtitle {
    margin: 0;
}

/* ===================================
   教室についてセクション
   =================================== */
.about {
    background: var(--bg-light);
}

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

.about-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 169, 227, 0.15);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 169, 227, 0.2));
}

.about-card h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 0.95rem;
}

/* ===================================
   コースセクション
   =================================== */
.courses {
    background: var(--bg-white);
}

.course-category {
    margin-bottom: var(--spacing-lg);
}

.category-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}

.category-title.children {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-light);
}

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

.course-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.course-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.course-card h4 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.course-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.course-philosophy {
    margin-top: 1rem;
}

.philosophy-title {
    font-weight: 700;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.workshop-benefits {
    margin-top: 1.5rem;
}

.benefit {
    margin-bottom: 1.5rem;
}

.benefit h5 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.benefit p {
    font-size: 0.95rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

/* コースオプション */
.course-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.option-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: var(--transition-base);
}

.option-card:hover {
    border-color: #c0c0c0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.option-card h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.option-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* その他のサービス */
.additional-services {
    margin-top: var(--spacing-lg);
    padding: 3rem 0;
    background: transparent;
}

.services-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.services-grid--single {
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

.services-grid--single .service-item {
    width: 100%;
}

.service-item {
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid #e0e0e0;
}

.service-item:hover {
    border-color: #c0c0c0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-item h5 {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.service-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.8rem;
    line-height: 1.6;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
}

/* ===================================
   プロフィールセクション
   =================================== */
.profile {
    background: var(--bg-white);
}

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

.profile-image {
    position: sticky;
    top: 120px;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.image-placeholder::before {
    content: '♪';
    opacity: 0.3;
}

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

.profile-title {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.profile-description {
    margin-bottom: 2rem;
}

.profile-concept {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.profile-description p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    line-height: 1.9;
}

.equipment {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
}

.equipment h4 {
    color: #333333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.equipment ul {
    list-style: none;
}

.equipment li {
    padding: 0.75rem 0;
    color: #666666;
    border-bottom: 1px solid #e8e8e8;
}

.equipment li:last-child {
    border-bottom: none;
}

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

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition-base);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-form-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--bg-cream);
}

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

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* ===================================
   フッター
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-white);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

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

.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.footer-decoration .music-note {
    position: absolute;
    font-size: 4rem;
    animation: float 8s ease-in-out infinite;
}

.footer-decoration .music-note:nth-child(1) {
    top: 10%;
    left: 10%;
}

.footer-decoration .music-note:nth-child(2) {
    top: 50%;
    right: 15%;
    animation-delay: 3s;
}

.footer-decoration .music-note:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

.footer-logo {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-logo h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-nav a {
    opacity: 0.9;
    transition: var(--transition-base);
}

.footer-nav a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ===================================
   スクロールトップボタン
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===================================
   レスポンシブデザイン
   =================================== */
@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-image {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height, 80px);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        max-height: 0;
        overflow: hidden;
        transform: translateY(-10px);
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }

    .nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

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

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

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

    .about-content,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .header-container {
        padding: 1rem 1.5rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .hero {
        padding: 12rem 1.5rem 0rem;
        margin-top: 132px;
        background-position: center top;
    }

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

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

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .course-card,
    .about-card {
        padding: 2rem 1.5rem;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

@media (min-width: 430px) and (max-width: 480px) {
    .hero {
        margin-top: var(--header-height, 80px);
        background-position: none;
    }
}

/* ===================================
   アニメーション用クラス
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
