/* --- Variables & Reset --- */
:root {
    --primary: #e67e22; /* Warm orange */
    --primary-dark: #d35400;
    --bg-light: #faf9f6; /* Off-white/Cream */
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --gray-placeholder: #e0e0e0;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-serif: 'Shippori Mincho', serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.8;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.sp-only {
    display: none;
}

.pc-only {
    display: inline;
}

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

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-white {
    background-color: var(--white);
    color: var(--text-dark);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

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

.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--gray-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: var(--font-serif);
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .en {
    display: block;
    font-family: var(--font-serif);
    color: var(--primary);
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: transparent;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

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

.nav-desktop a {
    font-weight: 500;
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-desktop a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    gap: 15px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

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

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

.slide.active {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: -1;
}

.hero-content {
    text-align: center;
}

.hero-sub {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 30px;
}

.hero-title .line {
    display: block;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* --- About / Strengths --- */
.strength-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.strength-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.strength-item.reverse {
    flex-direction: row-reverse;
}

.strength-img {
    flex: 0 0 50%; /* Fixed 50% width on PC */
}

.strength-text {
    flex: 1;
}

.strength-img img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;   /* Ensures image fills the area without distortion */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.strength-text {
    flex: 1;
}

.strength-text h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

/* --- Course --- */
.menu {
    background-color: #f0ede9;
    text-align: center;
}

.menu-lead {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.menu-pdf-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

@media (max-width: 768px) {
    .menu-pdf-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

.course-card {
    display: flex;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.course-info {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-img {
    flex: 0 0 50%; /* Consistent 50% width with strength items */
}

.course-img .img-placeholder,
.course-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 0; /* Keep it flush with the card in this section */
}

.course-info h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin: 15px 0 20px;
}

.badge {
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- Access --- */
.access-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.info-table th {
    text-align: left;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    width: 120px;
    font-family: var(--font-serif);
    color: var(--primary);
}

.info-table td {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.sns-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #E1306C;
    font-weight: 700;
}

.access-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- Booking Section --- */
.booking-section {
    padding: 80px 0;
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
}

.booking-content h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.booking-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 20px;
}

.booking-section .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.booking-section .btn-outline:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

.small {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Footer --- */
footer {
    padding: 60px 0;
    background-color: #222;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-address {
    margin-bottom: 20px;
}

.footer-sns {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.footer-sns a {
    margin: 0 10px;
}

.copyright {
    font-size: 0.8rem;
}

.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .strength-item, .strength-item.reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .course-card {
        flex-direction: column;
    }
    
    .access-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-desktop, .header-cta {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .booking-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .sp-only {
        display: block;
    }

    .pc-only {
        display: none;
    }

    .strength-text h3.fit-text {
        font-size: 1.4rem; /* Adjusted to fit in one line */
        white-space: nowrap;
    }

    .info-table td {
        font-size: 0.85rem;
    }

    .footer-address {
        font-size: 0.8rem;
    }
}

/* --- Mobile Nav Overlay --- */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background-color: var(--white);
    z-index: 2000;
    padding: 80px 40px;
    transition: var(--transition);
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile ul li {
    margin-bottom: 25px;
}

.nav-mobile ul li a {
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-mobile-cta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
