/* ================================================
   グラッチャ子ども運動トレーニングセンター
   メインスタイルシート
   ================================================ */

/* --- CSS Variables --- */
:root {
    --black: #333333;
    --blue: #1565C0;
    --blue-dark: #0D47A1;
    --blue-light: #1E88E5;
    --yellow: #fff100;
    --gray-light: #f7f7f4;
    --gray: #aaaaaa;
    --gray-dark: #333333;
    --white: #ffffff;
    --red: #ff6469;
    --font-ja: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    --font-en: 'Oswald', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-ja);
    color: var(--black);
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 0.04em;
    font-feature-settings: "palt";
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

a:hover {
    opacity: 0.7;
}

ul, ol {
    list-style: none;
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--blue);
    color: var(--white);
}

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

/* --- Typography --- */
.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 50px;
}

.midashi {
    display: inline-block;
    background-color: var(--yellow);
    border: 2px solid var(--blue);
    padding: 5px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--yellow);
    color: var(--blue-dark);
    border-color: var(--blue);
}

.btn-primary:hover {
    background-color: var(--blue);
    color: var(--white);
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn-outline:hover {
    background-color: var(--blue);
    color: var(--white);
    opacity: 1;
}

.btn-white {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
    opacity: 1;
}

.btn-back {
    background-color: var(--gray-light);
    color: var(--black);
    border-color: var(--gray-light);
}

.btn-back:hover {
    background-color: var(--gray);
    color: var(--white);
    border-color: var(--gray);
    opacity: 1;
}

/* ================================================
   Header
   ================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(13, 71, 161, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-list a {
    display: block;
    padding: 8px 12px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--yellow);
    opacity: 1;
}

.nav-btn {
    background-color: var(--yellow) !important;
    color: var(--blue-dark) !important;
    border-radius: 4px;
    font-weight: 700 !important;
}

.nav-btn:hover {
    background-color: var(--white) !important;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: rgba(13, 71, 161, 0.95);
    backdrop-filter: blur(10px);
    padding: 5px 0;
    z-index: 1001;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li a {
    padding: 10px 16px !important;
    font-size: 0.82rem !important;
    white-space: nowrap;
    display: block;
}

.dropdown li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--yellow) !important;
    opacity: 1;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--white);
    transition: all 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);
}

/* ================================================
   Hero Slider
   ================================================ */
.hero {
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero .swiper {
    width: 100%;
    height: 80vh;
    min-height: 500px;
}

.hero .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background image — Ken Burns zoom */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.swiper-slide-active .hero-bg {
    animation: kenburns 12s ease-out forwards;
}

@keyframes kenburns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.04); }
}

/* Hero text panel */
.hero-glass {
    background: rgba(0, 0, 0, 0.45);
    padding: 40px 50px;
    max-width: 780px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
}

.hero-content h2 {
    font-family: var(--font-ja);
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 18px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 22px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.hero .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.hero .swiper-pagination-bullet-active {
    background: var(--yellow);
    opacity: 1;
}

.hero .swiper-button-next,
.hero .swiper-button-prev {
    color: var(--white);
}

/* ================================================
   About Section
   ================================================ */
.about-section {
    text-align: center;
}

.about-section .section-title {
    color: var(--black);
}

.about-text {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1rem;
    line-height: 2;
}

/* ================================================
   Skills Section
   ================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.skill-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

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

.skill-card:hover img {
    transform: scale(1.05);
}

.skill-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.skill-card-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.skill-card-overlay span {
    font-family: var(--font-en);
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.skill-months {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-ja);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 10px;
    opacity: 1;
    margin-bottom: 4px;
    text-transform: none;
}

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

.course-card {
    background: var(--white);
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.course-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- School Card --- */
.school-card {
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.school-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.school-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.school-card-body {
    padding: 15px;
}

.school-card-body strong {
    font-size: 1.05rem;
}

.school-card-info {
    margin: 8px 0 4px;
    font-size: 0.9rem;
    color: #555;
}

.school-card-info + .school-card-info {
    margin-top: 4px;
}

.course-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.course-card-body {
    padding: 25px;
}

.course-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.course-price {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 10px;
}

.course-card-body p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    line-height: 1.8;
}

.course-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

/* ================================================
   News Section
   ================================================ */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border: 1px solid #eee;
    transition: box-shadow var(--transition);
}

.news-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.news-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    flex: 1;
    min-width: 0;
}

.news-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.news-date {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--gray);
}

.news-category {
    font-size: 0.8rem;
    padding: 2px 10px;
    background: var(--yellow);
    font-weight: 700;
}

.news-body h3 {
    font-size: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================
   Location Section
   ================================================ */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.location-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.location-info a {
    color: var(--blue);
    text-decoration: underline;
}

.location-map {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================================================
   Footer
   ================================================ */
.site-footer {
    background-color: var(--blue-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 5fr 3fr 5fr;
    gap: 20px;
    padding-bottom: 40px;
    align-items: start;
}

.footer-heading {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--yellow);
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-links a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
    line-height: 1.6;
}

.footer-links a:hover {
    color: var(--white);
    opacity: 1;
}

.footer-group-right {
    text-align: right;
}

.footer-group-right .footer-links {
    align-items: flex-end;
}

.footer-logo-center {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
}

.footer-logo-center img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ================================================
   Blog List Page
   ================================================ */
.blog-header {
    padding: 120px 0 40px;
    background: var(--blue);
    color: var(--white);
    text-align: center;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.category-tab {
    padding: 8px 24px;
    border: 2px solid var(--blue);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.category-tab.active,
.category-tab:hover {
    background-color: var(--blue);
    color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-card-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-noimg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
}

.blog-card-logo {
    width: 50%;
    height: auto !important;
    object-fit: contain !important;
    opacity: 0.6;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-body h3 {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    font-family: var(--font-en);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.pagination a:hover,
.pagination .current {
    background-color: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    opacity: 1;
}

/* ================================================
   Blog Single Page
   ================================================ */
.article-header {
    padding: 120px 0 40px;
    background: var(--blue);
    color: var(--white);
    text-align: center;
}

.article-header h1 {
    font-size: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--yellow);
}

.article-content h3 {
    font-size: 1.2rem;
    margin: 30px 0 10px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 2;
}

.article-content img {
    margin: 20px 0;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

/* ================================================
   Page Header (Sub Pages)
   ================================================ */
.page-header {
    padding: 120px 0 40px;
    background: var(--blue);
    color: var(--white);
    text-align: center;
    margin-top: var(--header-height);
}

.page-header h1 {
    font-size: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--white);
    opacity: 1;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: var(--white);
}

.page-content {
    padding: 60px 0;
}

/* ================================================
   Forms
   ================================================ */
.form-group {
    margin-bottom: 20px;
}

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

.form-group .required {
    color: var(--red);
    font-size: 0.8rem;
    margin-left: 5px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    font-size: 1rem;
    font-family: var(--font-ja);
    transition: border-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-error {
    color: var(--red);
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #2e7d32;
}

.alert-error {
    background: #fce4ec;
    border: 1px solid #f44336;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #c62828;
}

.notice-box {
    background: rgba(255, 241, 0, 0.15);
    border: 1px solid rgba(255, 241, 0, 0.5);
    padding: 20px;
    margin-bottom: 40px;
}

.notice-box p {
    font-size: 0.9rem;
    color: var(--gray-dark);
    line-height: 1.8;
}

/* ================================================
   About - Worry Section
   ================================================ */
.worry-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.worry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.worry-check {
    color: var(--red);
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.worry-item p {
    font-size: 1.05rem;
    color: var(--gray-dark);
}

.worry-answer {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid var(--yellow);
}

/* ================================================
   About - Strength Cards
   ================================================ */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.strength-card {
    background: var(--white);
    padding: 35px 25px;
    text-align: left;
}

.strength-number {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    display: block;
    margin-bottom: 15px;
}

.strength-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--black);
}

.strength-card p {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--gray-dark);
}

/* ================================================
   About Features
   ================================================ */
.about-feature-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-feature.reverse {
    direction: rtl;
}

.about-feature.reverse > * {
    direction: ltr;
}

.about-feature-img img {
    width: 100%;
}

.about-feature-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.about-feature-text .midashi {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.about-feature-text p {
    line-height: 2;
}

/* ================================================
   About - Staff Grid (about-gracha page)
   ================================================ */
.about-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 650px;
    margin: 0 auto 40px;
}

.about-staff-grid .staff-photo {
    aspect-ratio: 1/1;
    border-radius: 50%;
}

.about-staff-grid .staff-photo img {
    border-radius: 50%;
}

/* ================================================
   About - Parallax Break
   ================================================ */
.parallax-break {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.parallax-overlay {
    width: 100%;
    padding: 80px 20px;
    background: rgba(0, 40, 80, 0.7);
    color: var(--white);
}

/* ================================================
   About - Curriculum Grid
   ================================================ */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.curriculum-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.curriculum-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.curriculum-card-img {
    position: relative;
    overflow: hidden;
}

.curriculum-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.curriculum-card-img .skill-months {
    position: absolute;
    top: 10px;
    right: 10px;
}

.curriculum-card-body {
    padding: 20px;
}

.curriculum-card-en {
    display: block;
    font-family: var(--font-en);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
    margin-bottom: 4px;
}

.curriculum-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.curriculum-card-body p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--gray-dark);
}

/* ================================================
   Staff Grid
   ================================================ */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.staff-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

a.staff-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.staff-photo {
    aspect-ratio: 5/6;
    overflow: hidden;
    margin-bottom: 15px;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info h3 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.staff-furigana {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.staff-role {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* ================================================
   Staff Detail
   ================================================ */
.staff-detail-hero {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 30px;
    align-items: start;
}

.staff-detail-photo img {
    width: 100%;
}

/* ================================================
   Detail Table (shared: staff, school, course)
   ================================================ */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.detail-table th {
    background: var(--blue);
    color: #fff;
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    font-size: 0.95rem;
    white-space: nowrap;
}

.detail-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
    line-height: 1.8;
}

.detail-table .valign-top {
    vertical-align: top;
}

.detail-table--pricing thead th,
.detail-table--pricing tbody td {
    width: 50%;
}

.detail-table--secondary thead th {
    background: var(--gray-dark);
}

/* ================================================
   Q&A
   ================================================ */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-item {
    border: 1px solid #eee;
}

.qa-question {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    transition: background var(--transition);
}

.qa-question:hover {
    background: var(--gray-light);
}

.qa-question h3 {
    flex: 1;
    font-size: 1rem;
}

.qa-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition);
}

.qa-item.open .qa-toggle {
    transform: rotate(45deg);
}

.qa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1rem;
}

.qa-icon-a {
    background: var(--yellow);
    color: var(--black);
}

.qa-answer {
    display: none;
    padding: 0 20px 20px;
    gap: 15px;
    align-items: flex-start;
}

.qa-item.open .qa-answer {
    display: flex;
}

.qa-answer p {
    line-height: 1.8;
    flex: 1;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
    .nav-list a {
        padding: 8px 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--blue-dark);
        padding: 100px 30px 30px;
        transition: right var(--transition);
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-list a {
        padding: 15px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .nav-btn {
        background-color: transparent !important;
        color: var(--white) !important;
        border-radius: 0;
        border-top: 2px solid var(--yellow);
        margin-top: 10px;
        padding-top: 15px !important;
    }

    .nav-btn:hover {
        background-color: transparent !important;
        color: var(--yellow) !important;
    }

    .dropdown {
        display: block;
        position: static;
        background: none;
        backdrop-filter: none;
        padding: 0;
        min-width: auto;
    }

    .dropdown li a {
        padding: 12px 0 12px 20px !important;
        font-size: 0.9rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    .hero .swiper {
        height: 60vh;
    }

    .hero-glass {
        padding: 25px 20px;
        margin: 0 15px;
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .section {
        padding: 50px 0;
    }

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .news-list {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-logo-center {
        order: -1;
        padding-top: 0;
        margin-bottom: 10px;
    }

    .footer-group-right {
        text-align: left;
    }

    .footer-group-right .footer-links {
        align-items: flex-start;
    }

    .course-hero {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .strength-grid {
        grid-template-columns: 1fr;
    }

    .about-feature,
    .about-feature.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-staff-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 100%;
    }

    .parallax-break {
        background-attachment: scroll;
    }

    .curriculum-grid {
        grid-template-columns: 1fr;
    }

    /* Staff detail: stack vertically */
    .staff-detail-hero {
        grid-template-columns: 1fr;
    }

    .staff-detail-photo {
        max-width: 250px;
        margin: 0 auto;
    }

    /* Tables: stack on mobile */
    .detail-table,
    .detail-table thead,
    .detail-table tbody,
    .detail-table tr,
    .detail-table th,
    .detail-table td {
        display: block;
        width: 100%;
    }

    .detail-table tr {
        margin-bottom: 0;
    }

    .detail-table th {
        white-space: normal;
        padding: 8px 15px;
    }

    .detail-table td {
        padding: 10px 15px 15px;
    }

    .detail-table--pricing th,
    .detail-table--pricing td {
        display: table-cell;
        width: 50%;
    }

    .detail-table--pricing,
    .detail-table--pricing thead,
    .detail-table--pricing tbody,
    .detail-table--pricing tr {
        display: table;
        width: 100%;
    }

    .detail-table--pricing thead {
        display: table-header-group;
    }

    .detail-table--pricing tbody {
        display: table-row-group;
    }

    .detail-table--pricing tr {
        display: table-row;
    }

    .detail-table--secondary th,
    .detail-table--secondary td {
        display: table-cell;
        width: 50%;
    }

    .detail-table--secondary,
    .detail-table--secondary thead,
    .detail-table--secondary tbody,
    .detail-table--secondary tr {
        display: table;
        width: 100%;
    }

    .detail-table--secondary thead {
        display: table-header-group;
    }

    .detail-table--secondary tbody {
        display: table-row-group;
    }

    .detail-table--secondary tr {
        display: table-row;
    }

    /* Hero text: hide excessive br on mobile */
    .hero-content br {
        display: none;
    }

    /* Page header: smaller on mobile */
    .page-header {
        padding: 90px 0 30px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}

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

    .hero .swiper {
        height: 50vh;
        min-height: 400px;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .about-staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .about-staff-grid .staff-photo {
        aspect-ratio: 1/1;
    }

    .parallax-overlay {
        padding: 50px 15px;
    }

    .parallax-overlay h2 {
        font-size: 1.3rem !important;
    }

    .strength-card {
        padding: 25px 20px;
    }

    .about-feature-list {
        gap: 40px;
    }
}

/* --- Region Banner --- */
.region-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 18px 20px;
    margin-top: var(--header-height);
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
}

.region-banner + .hero {
    margin-top: 0;
}

.region-banner-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.region-banner-links {
    display: flex;
    gap: 12px;
}

.region-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--white);
    color: var(--blue-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.region-banner-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: var(--yellow);
    color: var(--gray-dark);
}

.region-banner-icon {
    font-size: 1.1rem;
}

/* --- Region Switcher (Header) --- */
.region-switcher {
    display: flex;
    gap: 2px;
    margin-left: 12px;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 3px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .region-banner {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .region-banner-text {
        margin-bottom: 4px;
    }

    .region-banner-links {
        flex-direction: column;
        width: 100%;
    }

    .region-banner-btn {
        width: 100%;
        justify-content: center;
    }

    .region-switcher {
        position: static;
        margin-left: auto;
        margin-right: 10px;
    }
}

.region-switcher-link {
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
}

.region-switcher-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    opacity: 1;
}

.region-switcher-link.active {
    background: var(--yellow);
    color: var(--gray-dark);
    font-weight: 700;
}
