:root {
    --primary-color: #2F5970;
    --accent-orange: #EF893E;
    --accent-blue: #3EADD4;
    --text-white: #FFFFFF;
    --text-dark: #333333;
    --card-bg: #FFFFFF;
    --card-header: #10334A;
    --footer-bg: #15374B;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography Utility */
.text-orange { color: var(--accent-orange) !important; }
.text-white { color: var(--text-white) !important; }
.text-center { text-align: center; }

h1, h2, h3, h4, p { font-weight: normal; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

header {
    background-color: var(--footer-bg);
    color: var(--text-white);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    font-size: 1.2rem;
}
.header-logo img { height: 40px; }
.global-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    font-weight: bold;
}
.btn-reserve {
    background-color: var(--accent-orange);
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 25px;
    transition: background 0.3s;
}
.btn-reserve:hover { background-color: #d67a36; }

.hero-section {
    position: relative;
    background-color: #e6f0f5; 
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    padding: 80px 40px;
    color: var(--text-white);
    min-height: 550px;
    display: flex;
    align-items: center;
}
.hero-content {
    max-width: 600px;
    margin-left: 20px !important;
    margin-right: auto !important;
    width: auto;
    background: none;
    padding: 0;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 80px;
}
.hero-features {
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: bold;
}
.hero-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}
.hero-features li::before {
    content: "・";
    position: absolute;
    left: 0;
}
.btn-primary {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--text-white);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: opacity 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.check-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background-color: var(--text-white);
    color: var(--accent-orange);
    border-radius: 50%;
    margin-left: 10px;
    font-size: 0.8rem;
}

.section-wrapper {
    padding: 60px 0;
    color: var(--text-white);
}
.page-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-white);
    background-color: rgba(0, 0, 0, 0.4);
    background-size: cover;
    background-position: center top; 
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    margin-bottom: 40px;
}
.course-banner { background-image: url('images/course.webp'); }
.instructor-banner { background-image: url('images/instructor.webp'); }

.catchphrase {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 40px 0;
}
.pill-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.pill {
    background-color: var(--accent-blue);
    color: var(--text-white);
    padding: 8px 30px;
    border-radius: 20px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
    display: inline-block;
}
.pill:hover {
    background-color: #3598ba;
    transform: translateY(-2px);
    color: var(--text-white);
}


.preview-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.preview-header-navy {
    background-color: var(--card-header);
    color: var(--text-white);
    text-align: center;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}
.preview-card-body {
    padding: 30px;
    color: var(--card-header);
}
.d-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}
.preview-image {
    flex: 1;
}
.preview-image img {
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
}
.preview-text {
    flex: 1;
}
.text-blue-dark {
    color: var(--card-header);
}
.preview-catchphrase {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 25px;
    white-space: nowrap;
}
@media (max-width: 1100px) {
    .preview-catchphrase {
        white-space: normal;
    }
}
.preview-desc {
    font-size: 0.95rem;
    line-height: 1.8;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.course-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.card-header-navy {
    background-color: var(--card-header);
    color: var(--text-white);
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}
.card-body {
    padding: 30px;
    color: var(--card-header);
}
.card-catchphrase {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    white-space: nowrap;
}
@media (max-width: 1100px) {
    .card-catchphrase {
        white-space: normal;
    }
}
.card-desc {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}
.stats-table {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.stat-item {
    border: 2px solid var(--card-header);
    border-radius: 40px;
    overflow: hidden;
    width: 200px;
    text-align: center;
}
.stat-head {
    background-color: var(--card-header);
    color: var(--text-white);
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: bold;
}
.stat-val {
    background-color: var(--card-bg);
    color: var(--card-header);
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Instructor Section */
.instructor-category {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.instructor-profile {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 30px;
}
.profile-reverse { flex-direction: row-reverse; }

.profile-image-wrap {
    flex: 0 0 auto;
    text-align: center;
}
.rounded-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 3px solid #eee;
}
.inst-name { font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; }
.inst-role { font-size: 0.85rem; color: #666; }

.profile-details {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.profile-details dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: left;
    width: fit-content;
}
.profile-details dt { font-weight: bold; }
.profile-details dd { 
    margin: 0; 
    color: var(--card-header);
    margin-bottom: 10px;
}
.inst-career {
    font-size: 0.85rem;
    color: var(--card-header);
    margin: 10px 0;
    line-height: 1.4;
    font-weight: bold;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .inst-career {
        white-space: normal;
    }
}
.quote {
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    background: #f1f4f6;
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    color: var(--card-header);
    white-space: nowrap;
}
@media (max-width: 768px) {
    .quote {
        white-space: normal;
        display: block;
    }
}

.sub-profile-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    border-top: 1px solid #ddd;
    padding-top: 30px;
    margin-top: 20px;
}
.sub-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    max-width: 400px;
}
.toggle-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: none;
    border: none;
    border-top: 1px dashed #ccc;
    color: var(--accent-orange);
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.application-section {
    padding: 80px 20px;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 40px;
}
.application-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-white);
}
.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}
.form-submit {
    text-align: center;
    margin-top: 40px;
}

footer {
    background-color: var(--footer-bg);
    color: var(--text-white);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-logo img { height: 40px; }
.footer-links {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
}

.overflow-hidden { overflow: hidden; border-radius: 20px; }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-blue);
    position: absolute;
    left: 0;
    transition: 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 768px) {
    header, footer { flex-direction: row; gap: 0; justify-content: space-between; padding: 10px 20px; }
    footer { flex-direction: column; gap: 20px; }
    
    .hamburger { display: block; }

    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--footer-bg);
        transition: 0.4s;
        padding-top: 100px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1050;
    }
    .global-nav.active { right: 0; }
    .global-nav ul { flex-direction: column; gap: 30px; align-items: center; }
    .global-nav ul li a { font-size: 1.2rem; }

    .hero-section { background-position: center !important; height: auto; padding: 140px 20px 80px; }
    .hero-content { margin-left: 0 !important; max-width: 100%; text-align: center; }
    .hero-title { font-size: 1.6rem; margin-bottom: 40px; }
    
    .preview-catchphrase, .card-catchphrase, .inst-career, .quote { 
        white-space: normal !important; 
        text-align: center;
        word-break: break-word;
    }

    .d-flex { flex-direction: column; gap: 20px; }
    .preview-image img { width: 100%; max-width: 300px; margin: 0 auto; display: block; }
    .preview-text { text-align: center; }
    .preview-text .btn-primary { margin: 0 auto; text-align: center; display: inline-block; }
    .preview-text .text-center { text-align: center !important; }
    
    .instructor-profile { flex-direction: column !important; align-items: center; text-align: center; gap: 20px; }
    .profile-image-wrap { margin-bottom: 20px; }
    .profile-details dl { grid-template-columns: 1fr; text-align: center; border-bottom: none; width: 100%; }
    .profile-details dt { margin-top: 15px; border-bottom: 1px solid #eee; display: block; padding: 5px; }
    
    .pill-group { justify-content: center; gap: 10px; }
    .pill { padding: 6px 15px; font-size: 0.8rem; }
    
    .stats-table { flex-direction: column; align-items: center; }
    .stat-item { width: 100%; }
}
