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

:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --bg-color: #fcfcfc;
    --text-color: #4a4a4a;
    --white: #ffffff;
    --shadow: 0 15px 40px rgba(0,0,0,0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --pastel-pink: #ffe6e6;
    --pastel-blue: #e6f0ff;
    --pastel-green: #e6ffe6;
    --pastel-yellow: #ffffe6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 42px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    padding: 100px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 0;
}

.hero-bg img {
    width: 33.333%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Slightly darker overlay for better text contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    width: 100%;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--white);
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.btn:hover::after {
    left: 100%;
}

/* Sections */
section {
    padding: 150px 0;
}

.relative-section {
    position: relative;
    overflow: hidden;
}

/* Decorative Elements */
.bg-text {
    position: absolute;
    font-size: 15rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    top: 5%;
    left: -5%;
    user-select: none;
    pointer-events: none;
}



.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

/* Teacher Section */
#teacher {
    padding-top: 100px;
}

.teacher-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

.teacher-image {
    flex: 0 0 300px;
}

.teacher-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.teacher-info {
    flex: 1;
}

.teacher-name h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.teacher-name h3 span {
    font-size: 1rem;
    font-weight: normal;
    color: #777;
    margin-left: 10px;
}

.teacher-instruments {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 25px;
}

.teacher-profile, .teacher-message {
    margin-bottom: 20px;
}

.teacher-profile h4, .teacher-message h4 {
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.teacher-profile ul {
    list-style: none;
    padding-left: 0;
}

.teacher-profile li::before {
    content: "・";
    color: var(--accent-color);
    font-weight: bold;
}

/* Recital Section */
.recital-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

.recital-image-wrapper {
    flex: 0 0 350px; /* サイズを限定 */
}

.recital-image-card {
    height: 240px; /* 外観写真に近い高さに調整 */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.recital-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recital-info {
    flex: 1;
}

.recital-info p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-color);
}

/* Lesson Grid */
.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.lesson-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 60px 20px 60px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.color-pink { background-color: var(--pastel-pink); }
.color-blue { background-color: var(--pastel-blue); }
.color-green { background-color: var(--pastel-green); }
.color-yellow { background-color: var(--pastel-yellow); }

.lesson-card:hover {
    transform: translateY(-10px);
}

.lesson-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Repertoire Area */
.repertoire-area {
    margin-top: 80px;
}

.repertoire-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--accent-color);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

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

.rep-item {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid #ccc;
}

.rep-item.pink { border-top-color: #ffb7b7; }
.rep-item.blue { border-top-color: #b7d4ff; }
.rep-item.green { border-top-color: #b7ffb7; }

.rep-item h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rep-item h5 i {
    font-size: 1rem;
}

.rep-item ul {
    list-style: none;
    padding: 0;
}

.rep-item li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.rep-item li::before {
    content: "♪";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Contact/LINE */
.contact-box {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
}

.line-btn {
    background-color: #06C755;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease;
}

[data-aos].active {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px auto;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-bg {
        flex-direction: column;
    }
    
    .hero-bg img {
        width: 100%;
        height: 33.333%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .teacher-name h3 {
        font-size: 1.6rem;
    }
    
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(253, 251, 247, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 1000;
        gap: 40px;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: 0.5s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }

    /* セクションの余白調整 */
    section {
        padding: 60px 0;
    }

    /* 見出しサイズをスマホ向けに最適化 */
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 40px;
    }

    /* 背景の装飾文字のサイズ調整（横揺れ防止） */
    .bg-text {
        font-size: 6rem;
    }

    /* アクセス画面の写真と地図を縦並びに */
    .access-top {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .access-photos {
        grid-template-columns: 1fr !important;
    }

    /* お問い合わせ画面のQRコードとボタンを縦並びに */
    .contact-flex {
        flex-direction: column;
        gap: 20px !important;
    }

    .teacher-flex {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }
    .teacher-image {
        flex: 0 0 auto;
        width: 200px;
        margin: 0 auto;
    }
    .teacher-profile h4, .teacher-message h4 {
        text-align: left;
    }
    .teacher-profile ul {
        text-align: left;
    }

    /* Recital Mobile */
    .recital-flex {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .recital-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
    }

    .recital-image-card {
        height: 200px; /* スマホではさらにコンパクトに */
    }

    .recital-info p {
        font-size: 1rem;
        text-align: left;
    }
}

/* フローティングLINEボタン */
.floating-line-btn {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 9999;
    background-color: #06C755;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    font-weight: bold;
    font-size: 0.85rem;
    line-height: 1.2;
}

.floating-line-btn i {
    font-size: 1.8rem;
}

.floating-line-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: white;
}

/* スマホ表示での調整 */
@media (max-width: 768px) {
    .floating-line-btn {
        right: 15px;
        bottom: 20px;
        padding: 10px 15px;
        font-size: 0.75rem;
    }
    .floating-line-btn i {
        font-size: 1.5rem;
    }
}

/* Screen reader / Crawler only (for SEO and accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

