@charset "UTF-8";

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

/* Base Styles */
:root {
    --color-primary: #8B6F47;
    --color-secondary: #6E5636;
    --color-accent: #6B7D6D;
    --color-dark: #3F4E5E;
    --color-light: #F5EFE6;
    --color-section: #E8DFD4;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-dark);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    background-color: var(--color-light);
    overflow-x: hidden;
}

/* Typography Helpers */
.font-serif {
    font-family: var(--font-serif);
}

/* FV Section */
#fv {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}


.fv-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Floating Circular CTA */
.floating-cta {
    position: fixed;
    right: 5%;
    bottom: 15%;
    width: 200px;
    height: 200px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(139, 111, 71, 0.5);
    z-index: 40;
    animation: floatingBeat 3s ease-in-out infinite;
    cursor: pointer;
    text-decoration: none;
    border: 3px solid white;
}

.floating-cta:hover {
    transform: scale(1.1);
    background-color: var(--color-secondary);
}

@keyframes floatingBeat {
    0% { transform: translateY(0) scale(1.0); box-shadow: 0 15px 35px rgba(139, 111, 71, 0.5); }
    50% { transform: translateY(-20px) scale(1.05); box-shadow: 0 25px 45px rgba(139, 111, 71, 0.4); }
    100% { transform: translateY(0) scale(1.0); box-shadow: 0 15px 35px rgba(139, 111, 71, 0.5); }
}

/* CTA Inner Content */
.floating-cta .cta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.floating-cta .cta-line2 {
    font-size: 1.4em;
    color: #FFD700; /* Gold/Yellow for visibility */
    display: block;
    margin: 2px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.floating-cta .cta-balloon {
    position: absolute;
    bottom: 208px; /* height of circle (200) + 8px gap */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: var(--color-primary);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: balloonFloat 2s ease-in-out infinite;
    white-space: nowrap; /* Ensure it stays on one line */
}

.floating-cta .cta-balloon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

@media (max-width: 991px) {
    .floating-cta {
        width: 160px;
        height: 160px;
        font-size: 14px;
        padding: 20px;
        right: 3%;
    }
    .floating-cta .cta-balloon {
        bottom: 168px; /* height of circle (160) + 8px gap */
    }
}

@media (max-width: 768px) {
    .floating-cta {
        position: relative; /* Move into flow */
        width: 150px;
        height: 150px;
        font-size: 12px;
        padding: 10px;
        left: auto;
        right: auto;
        margin: 40px auto 20px; /* Center and add space */
        bottom: auto;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .floating-cta .cta-balloon {
        font-size: 16px;
        white-space: nowrap;
        padding: 6px 16px;
        bottom: 160px; /* height of circle (150) + 10px gap as requested */
    }
}

@keyframes balloonFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* Animations */
@keyframes slowZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-slow-zoom {
    animation: slowZoom 20s ease-in-out infinite;
}

/* Sparkle Animation for Registration Heading */
@keyframes sparkle {
    0%, 100% { text-shadow: 0 0 0 rgba(139, 111, 71, 0); }
    50% { text-shadow: 0 0 20px rgba(139, 111, 71, 0.4); color: var(--color-primary); }
}

.registration-heading-premium {
    animation: sparkle 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

@keyframes bounceSlow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.animate-bounce-slow {
    animation: bounceSlow 3s ease-in-out infinite;
}

@keyframes flowBg {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.animate-flow-bg {
    background: linear-gradient(90deg, #fff, #F5EFE6, #fff);
    background-size: 200% auto;
    animation: flowBg 4s linear infinite;
    padding: 10px 20px;
}

/* Course Card Hover */
.course-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    inset: 0;
    background: var(--color-light);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-menu.active {
    transform: translateY(0);
}

/* Scroll Animation (Fade Up) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* Mobile CTA */
.mobile-cta {
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.mobile-cta.visible {
    transform: translateY(0);
}

/* Section Specifics */
.bg-section {
    background-color: var(--color-section);
}

/* Utilities */
.container {
    max-width: 1200px;
}

/* Buttons */
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 左から右へのフェードインアニメーション */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 時間差表示用クラス */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }

/* -- FV Special Animations & Visibility -- */

/* 1. Visibility: White Glow Shadow or White Shadow */
@media (min-width: 768px) {
    .text-white-shadow {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 5px rgba(255, 255, 255, 1);
    }

    .text-dark-shadow {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 0 0 5px rgba(0, 0, 0, 0.4);
    }
}

/* 2. Character Reveal (Note-like Pop) */
@keyframes notePop {
    0% { opacity: 0; transform: translateY(20px) scale(0.5); filter: blur(5px); }
    70% { transform: translateY(-3px) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1.0); filter: blur(0); }
}

.char-note {
    display: inline-block;
    opacity: 0;
    animation: notePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 3. Sparkling Shine Effect */
@media (min-width: 768px) {
    .text-shiny-sparkle {
        background: linear-gradient(110deg, rgba(255, 255, 255, 0.8) 45%, #fff 50%, rgba(255, 255, 255, 0.8) 55%);
        background-size: 200% auto;
        color: transparent;
        -webkit-background-clip: text;
        background-clip: text;
        animation: shineSwipe 5s linear infinite;
    }
}

/* 4. Elegant Fog-to-Light (Subtitle) */
@keyframes revealLightIn {
    0% { opacity: 0; filter: blur(10px); letter-spacing: 0.2em; text-shadow: 0 0 20px #fff; }
    100% { opacity: 1; filter: blur(0); letter-spacing: 0.05em; text-shadow: 1px 1px 2px rgba(255,255,255,0.7); }
}

.reveal-light-in {
    opacity: 0;
    animation: revealLightIn 1.8s ease-out forwards;
}

/* 5. Beat rhythmic pop (Checkboxes) */
@keyframes rhythmPop {
    0% { opacity: 0; transform: scale(0.5); }
    50% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.animate-rhythm-pop {
    opacity: 0;
    animation: rhythmPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* -- Precision Delays for Characters -- */
.char-delay-1 { animation-delay: 0.3s; }
.char-delay-2 { animation-delay: 0.35s; }
.char-delay-3 { animation-delay: 0.4s; }
.char-delay-4 { animation-delay: 0.45s; }
.char-delay-5 { animation-delay: 0.5s; }
.char-delay-6 { animation-delay: 0.55s; }
.char-delay-7 { animation-delay: 0.6s; }
.char-delay-8 { animation-delay: 0.65s; }
.char-delay-9 { animation-delay: 0.7s; }
.char-delay-10 { animation-delay: 0.75s; }
.char-delay-11 { animation-delay: 0.8s; }
.char-delay-12 { animation-delay: 0.85s; }
.char-delay-13 { animation-delay: 0.9s; }
.char-delay-14 { animation-delay: 0.95s; }
.char-delay-15 { animation-delay: 1.0s; }
.char-delay-16 { animation-delay: 1.05s; }
.char-delay-17 { animation-delay: 1.1s; }
.char-delay-18 { animation-delay: 1.15s; }
.char-delay-19 { animation-delay: 1.2s; }
.char-delay-20 { animation-delay: 1.25s; }
.char-delay-21 { animation-delay: 1.3s; }
.char-delay-22 { animation-delay: 1.35s; }
.char-delay-23 { animation-delay: 1.4s; }
.char-delay-24 { animation-delay: 1.45s; }
.char-delay-25 { animation-delay: 1.5s; }
.char-delay-26 { animation-delay: 1.55s; }
.char-delay-27 { animation-delay: 1.6s; }
.char-delay-28 { animation-delay: 1.65s; }
.char-delay-29 { animation-delay: 1.7s; }
.char-delay-30 { animation-delay: 1.75s; }

/* Responsive Fixed Backgrounds */
.bg-fixed-about-responsive {
    background-image: url('../img/about_bg.jpg');
    background-attachment: fixed !important;
}

@media (max-width: 768px) {
    .bg-fixed-about-responsive {
        background-image: url('../img/aboutsp_bg.jpg') !important;
        background-attachment: fixed !important;
        background-size: cover;
        background-position: center;
    }
}