/* main.css - ALMA Academy */

:root {
    /* Colors */
    --primary: hsl(220, 85%, 40%);
    --primary-light: hsl(220, 85%, 55%);
    --secondary: hsl(30, 95%, 55%);
    --text-main: hsl(210, 20%, 20%);
    --text-light: hsl(210, 10%, 40%);
    --bg-main: hsl(0, 0%, 100%);
    --bg-light: hsl(210, 20%, 98%);
    --border: hsl(210, 15%, 90%);

    /* Typography */
    --font-base: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    --font-heading: 'Poppins', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;

    /* Layout */
    --container-width: 1100px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* =======================================
   RESET & BASE
======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary-light);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* =======================================
   TYPOGRAPHY
======================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-main);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.2em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* =======================================
   BUTTONS
======================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 92, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 92, 235, 0.4);
    color: #fff;
}

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

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* =======================================
   HEADER
======================================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-title {
    margin-bottom: 0;
    line-height: 1;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
}

.site-title span {
    color: var(--primary);
}

.site-desc {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-main);
}

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

/* =======================================
   HERO SECTION
======================================= */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1509062522246-3755977927d7?q=80&w=2000&auto=format&fit=crop') center/cover;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    animation: fadeUp 1s 0.2s forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight {
    color: #fff;
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}



.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-light);
}

.scroll-down a::after {
    content: '';
    display: block;
    width: 2px;
    height: 40px;
    background: var(--primary);
    margin-top: 10px;
}

/* =======================================
   CONCEPT SECTION
======================================= */
.concept-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.concept-text {
    flex: 1;
}

.concept-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.concept-text p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.concept-features {
    flex: 1;
    display: grid;
    gap: 30px;
}

.feature-box {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* =======================================
   COURSES SECTION
======================================= */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.course-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 20px;
}

.course-badge.premium {
    background: var(--secondary);
    color: #fff;
}

.course-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.course-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    min-height: 70px;
}

.course-details {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-bottom: 20px;
}

.course-details li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.course-details li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 8px;
    font-weight: bold;
}

.featured-course {
    grid-column: span 3;
    display: flex;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, hsl(230, 20%, 20%), hsl(220, 85%, 20%));
    color: #fff;
}

.featured-course .course-title,
.featured-course .course-desc,
.featured-course .course-details li {
    color: #fff;
}

.featured-course .course-details {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.featured-course .btn {
    margin-top: 20px;
}

/* =======================================
   INSTRUCTOR SECTION
======================================= */
.instructor-profile {
    display: flex;
    align-items: center;
    gap: 50px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 50px;
}

.instructor-image {
    flex-shrink: 0;
}

.instructor-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    background: var(--bg-light);
    /* 縮小時のモアレ（干渉縞）やジャギーを軽減するための設定 */
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0); 
}

.instructor-info {
    flex: 1;
}

.instructor-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.instructor-name span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 10px;
}

.instructor-role {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.instructor-bio {
    color: var(--text-main);
    margin-bottom: 25px;
}

.message blockquote {
    font-style: italic;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
}

/* =======================================
   FAQ SECTION
======================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    position: relative;
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-light);
}

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-light);
}

/* =======================================
   CONTACT SECTION
======================================= */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
}

.contact-info {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 50px;
}

.contact-info h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.contact-form {
    flex: 1.2;
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 92, 235, 0.1);
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
}

/* =======================================
   FOOTER
======================================= */
.site-footer {
    background: var(--text-main);
    color: #fff;
    padding: 80px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav ul {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-nav a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* =======================================
   ANIMATIONS & UTILS
======================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* =======================================
   RESPONSIVE DESIGN (Mobile First & Max-width)
======================================= */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    position: absolute;
    transition: transform 0.3s ease, background-color 0.3s ease, top 0.3s ease;
    border-radius: 3px;
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    top: 8px;
}

.menu-toggle.is-active .hamburger {
    background-color: transparent;
}

.menu-toggle.is-active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 15px;
}

/* =======================================
   LINE BUTTON & CONTACT
======================================= */
.btn-line {
    background: linear-gradient(135deg, #06C755, #05b04b);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.btn-line:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.4);
    color: #fff;
}

.line-contact-wrapper {
    align-items: center;
}

.contact-action {
    flex: 1.2;
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.line-btn-container {
    text-align: center;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    border: 2px dashed #06C755;
    width: 100%;
}

.line-btn-container p {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 1.1rem;
}

@media (max-width: 900px) {

    /* Hide desktop elements */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    /* Header & Navigation */
    .header-container {
        height: auto;
        min-height: 65px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .site-title a {
        font-size: 1.3rem;
    }

    .site-desc {
        font-size: 0.65rem;
        margin-top: -5px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .main-navigation.toggled {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
        padding: 0 30px;
    }

    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Typography Adjustments for Mobile */
    .section-title {
        font-size: 2rem;
    }

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

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

    /* Layout Adjustments */
    .section-padding {
        padding: 50px 0;
    }

    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-container,
    .concept-content,
    .featured-course,
    .instructor-profile,
    .contact-wrapper,
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .hero-image {
        width: 100%;
        margin-top: 30px;
    }

    .image-placeholder {
        height: 250px;
        transform: rotateY(0);
        font-size: 1.5rem;
    }

    /* Courses Grid */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .featured-course {
        grid-column: 1;
        text-align: center;
        padding: 30px 20px;
    }

    .featured-course .btn {
        margin: 20px auto 0;
    }

    /* Instructor Adjustments */
    .instructor-profile {
        padding: 30px 20px;
        text-align: center;
    }

    .avatar-placeholder {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .avatar-placeholder::after {
        font-size: 3rem;
    }

    .message blockquote {
        text-align: left;
    }

    /* Contact Details Adjustments */
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }

    /* Footer Adjustments */
    .footer-container {
        align-items: center;
        text-align: center;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* =======================================
   FLOATING CTA
======================================= */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    /* Below mobile menu and header */
    transition: var(--transition);
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
    border-radius: 0 !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Optional slightly less intrusive pulse if they want, but removing it makes it less distracting full-width */
@keyframes bouncePulse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

/* Adjust body padding so footer content isn't hidden behind the floating button */
body {
    padding-bottom: 80px;
}