/* 
  Design System for Ganbaruman Gakushujuku Akita Hiroomote-ko
  Author: Antigravity
*/

:root {
    /* Color Palette - Updated to Vibrant Green and Orange */
    --primary: #8ec31f; /* Vibrant Green - Reference base */
    --secondary: #f26522; /* Vibrant Orange - Ganbaruman accent */
    --accent: #4caf50; /* Deep Green */
    --gold: #daa520; /* Luxury Gold */
    --light-green: #f7fbf0; /* Very light green for backgrounds */
    --light-orange: #fff8f5; /* Very light orange for backgrounds */
    --bg-alt: #f1f8e9; /* Light green background for sections */
    --light: #f8faff;
    --dark: #1a1a2e;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    
    /* Typography - Professional Gothic */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Noto Sans JP', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --space-xl: 8rem;
    
    /* Shadow & Border */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-s: 8px;
    --radius-m: 16px;
    --radius-l: 24px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

.nowrap {
    white-space: nowrap;
    display: inline-block;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 900;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: var(--space-xl) 0;
    text-align: left !important; /* 徹底的に左寄せ */
}

.section-title {
    text-align: left !important;
    margin-bottom: var(--space-m);
}

.section-title h2, .section-title p, .section-title span {
    text-align: left !important;
}

.text-left { text-align: left; }
.text-secondary { color: var(--secondary); }

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7ab01a);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(142, 195, 31, 0.3);
}

.btn-orange {
    background: linear-gradient(135deg, var(--secondary), #d35400);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(242, 101, 34, 0.3);
}

.btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-text .branch-name {
    color: var(--secondary);
    font-size: 1.4rem;
    margin-left: 0.3rem;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 700;
    color: var(--primary);
}

nav a:hover {
    color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 992px) {
    .header-cta { display: none; }
    nav { display: none; }
    .mobile-menu-btn { display: block; }
}

/* Hero Section Styles */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    background: var(--dark);
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
}

.hero-brand-logo {
    margin-bottom: 4rem;
}

.hero-brand-logo img {
    height: 250px; /* PCでの圧倒的な巨大化 */
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-brand-logo img:hover {
    transform: scale(1.05) rotate(1deg);
}

.hero-title {
    font-size: 5rem; /* PCでもさらに巨大化 */
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-align: left; /* 左寄せに固定 */
    color: var(--white);
}

.hero-title .text-secondary {
    color: #f26522 !important; /* Force orange color directly */
    display: inline-block;
}

.hero-content .highlight {
    color: var(--secondary);
    display: inline-block;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 500;
    max-width: 700px;
    text-align: left; /* 左寄せ */
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start; /* 左寄せ */
}

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

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slider-item.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero {
        text-align: left; /* 左寄せ */
        padding-top: 80px;
        padding-bottom: 4rem; /* 下部への重なり防止 */
        align-items: flex-start;
        padding-left: 20px;
        padding-right: 20px;
        height: auto;
        min-height: 100vh;
    }
    .hero-container {
        width: 100%;
    }
    .hero-title { 
        font-size: clamp(2.2rem, 8vw, 3.5rem); /* スマホでの途切れ防止 */
        line-height: 1.1; 
        text-align: left !important;
        margin-bottom: 2.5rem;
        color: var(--white) !important;
        word-break: keep-all; /* 不自然な改行を防止 */
    }
    .hero-brand-logo {
        margin-bottom: 3rem;
        text-align: left;
    }
    .hero-brand-logo img { 
        height: 45vh; /* スマホの縦画面で一面になる巨大サイズ */
        max-width: 100%;
        object-fit: contain;
    }
    .hero-btns { 
        flex-direction: column; 
        align-items: flex-start; /* 左寄せ */
        width: 100%;
    }
    .hero-btns .btn {
        width: 100%;
        text-align: left;
    }
    .logo-text { font-size: 1.3rem; }
    .logo-text .branch-name { font-size: 1rem; }
    .hero-content p { 
        margin: 0 0 2.5rem; 
        text-align: left;
    }
    .about-text h2 {
        font-size: 1.6rem !important; /* スマホで1行に収まるように微調整 */
        white-space: nowrap;
        letter-spacing: -0.02em;
    }
}

/* Points Grid */
.points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--space-l);
}

.point-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-md);
    text-align: left !important; /* 徹底的に左寄せ */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.point-icon {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 2.5rem;
    overflow: hidden;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-md);
    background: var(--bg-alt);
    display: block;
}

.point-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.point-card:hover .point-icon img {
    transform: scale(1.1);
}

.point-card h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem); /* 強調しつつもバランスの良いサイズに調整 */
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: break-word;
}
@media (min-width: 1025px) {
    .point-card h3 {
        white-space: nowrap; /* PCでは1行で美しく */
        font-size: 1.8rem;
    }
}

@media (max-width: 900px) {
    .points-grid { grid-template-columns: 1fr; }
}

/* About Section */
.about-flex {
    display: flex;
    align-items: center;
    gap: var(--space-l);
}

.about-image {
    flex: 0.8; /* Smaller image */
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 320px; /* Reduced impact */
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-md);
}

.about-text {
    flex: 1.2;
}

.about-text .label {
    color: var(--secondary);
    font-weight: 900;
    letter-spacing: 0.1em;
}

.about-text h2 {
    font-size: 2.5rem;
    margin: 1rem 0 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .about-flex { flex-direction: column; }
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--space-l);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(242, 101, 34, 0.15);
    border-color: var(--secondary);
}

.course-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Catchphrase */
.catchphrase-hero {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    font-weight: 900;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-s);
    transform: rotate(-2deg);
    box-shadow: var(--shadow-sm);
}

.course-price {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.price-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #718096;
    margin-bottom: 0.2rem;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    color: var(--secondary);
    font-weight: 900;
}

.price-num {
    font-size: 1.8rem;
}

.price-unit {
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .courses-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .courses-grid { 
        grid-template-columns: 1fr; 
        max-width: 450px;
    }
}

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

/* Tutor Section Styles */
.tutors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: var(--space-m);
}

.tutor-card {
    background: var(--white);
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    border: 2px solid var(--primary);
}

.tutor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tutor-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.tutor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutor-info {
    padding: 0.5rem;
    text-align: left;
}

.tutor-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem; /* 大幅に拡大 */
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 1rem; /* 視認性アップ */
    font-weight: 900;
}

/* Special Note / Premium Banner */
.special-note {
    text-align: center;
    margin-top: 4rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #1a365d 100%);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-m);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.special-note::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.special-note h4 {
    font-weight: 900;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.special-note .description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.95;
    line-height: 1.8;
    font-weight: 500;
}

.special-note .highlight {
    color: var(--primary);
    font-weight: 900;
}

@media (max-width: 768px) {
    .special-note {
        padding: 2.5rem 1.5rem;
        margin-top: 3rem;
    }
}

.tutors-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--space-l);
    text-align: left;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (max-width: 1100px) {
    .tutors-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .tutors-grid { grid-template-columns: repeat(2, 1fr); }
    .tutors-stats { grid-template-columns: 1fr; }
}

/* Gallery styles (existing) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* PC/タブレットで並びを2枚に固定して写真を大きく */
    gap: 2rem;
    margin-top: var(--space-l);
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr !important; /* スマホではさらに大きく1枚 */
    }
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Form Styles */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* お問い合わせは安心感のため中央揃えに変更 */
    gap: var(--space-m);
    width: 100%;
}
#contact .section-title {
    text-align: center !important;
}
#contact .section-title * {
    text-align: center !important;
}

.contact-form-card {
    width: 100%;
    max-width: 700px;
    background: var(--white);
    padding: var(--space-m);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-lg);
    color: var(--dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

.form-group textarea {
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-s);
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* Footer Section */
footer {
    background: var(--dark);
    color: #a0aec0;
    padding: var(--space-l) 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--space-m);
    border-bottom: 1px solid #2d3748;
}

.footer-logo {
    height: 150px; /* 巨大化 */
    margin-bottom: 2rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: left;
    padding-top: 2rem;
    font-size: 0.9rem;
}
/* WHAT'S NEW Section (New) */
.news-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--secondary);
}

/* Gallery Message (New) */
.gallery-message {
    text-align: left; /* 読みやすさ向上のため左寄せに変更 */
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    background: #fff8f5;
    border-radius: var(--radius-m);
    position: relative;
}

.gallery-message p {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 500;
    color: var(--dark);
    margin: 0;
}

@media (max-width: 768px) {
    .gallery-message {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    .gallery-message p {
        font-size: 1rem;
        text-align: left;
    }
}

/* Director Section */
.director-section {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.director-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.director-image-container {
    position: relative;
}

.director-frame {
    position: relative;
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
    background: #f0f0f0;
}

.director-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.director-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-s);
    font-weight: 900;
    box-shadow: var(--shadow-md);
    transform: rotate(-3deg);
    z-index: 5;
    font-size: 0.9rem;
}

.director-message h3 {
    font-size: clamp(1.4rem, 3.5vw, 2.22rem);
    color: var(--secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.director-message p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
    color: #444;
}

.director-name-box {
    margin-top: 3rem;
    text-align: right;
    border-top: 2px solid #fef2f2;
    padding-top: 1.5rem;
}

.director-name-box .title {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 700;
}

.director-name-box .name {
    font-size: 1.8rem;
    font-weight: 900;
    margin-top: 0.5rem;
}

.parenting-section {
    background-color: #fafbfc;
    border-top: 1px solid #eee;
}

.parenting-intro {
    max-width: 850px;
    margin: 0 auto 4.5rem;
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-m);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.parenting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.records-box, .courses-box {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--secondary);
}

.records-box h3, .courses-box h3 {
    color: var(--secondary);
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #fff5f0;
}

.record-item {
    margin-bottom: 2.5rem;
}

.record-item h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 900;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.record-item h4::before {
    content: "●";
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.record-item ul {
    list-style: none;
    padding-left: 1.5rem;
}

.record-item li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.pet-course-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pet-course-card {
    background: #fffafa;
    padding: 1.2rem 1.8rem;
    border-radius: var(--radius-s);
    border: 1px solid #ffebeb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.pet-course-card:hover {
    background: var(--white);
    border-color: var(--secondary);
    transform: translateX(5px);
}

.pet-course-card .c-name {
    font-weight: 800;
    color: var(--secondary);
}

.pet-course-card .c-time {
    font-size: 0.8rem;
    color: #888;
    background: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid #eee;
}

.parenting-cta {
    margin-top: 5rem;
    text-align: center;
}

.official-btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #e67e22 100%);
    color: var(--white);
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(242, 101, 34, 0.2);
    transition: 0.3s;
    text-decoration: none;
}

.official-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(242, 101, 34, 0.3);
    color: var(--white);
}

@media (max-width: 992px) {
    .director-grid, .parenting-grid {
        grid-template-columns: 1fr;
    }
    .records-box, .courses-box {
        padding: 2.5rem 1.5rem;
    }
}
