/* --- 基本设置与变量 --- */
:root {
    --color-navy: #001f3f;
    --color-white: #FFFFFF;
    --color-gold: #D4AF37;
    --color-red: #A91E22;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-navy);
    background-color: var(--color-white);
    margin: 0;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
}

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-gold);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 10px auto 0;
}

/* --- 滚动动画 --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 按钮样式 --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-sans);
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: 2px solid var(--color-gold);
}

.btn-gold:hover {
    background-color: #c8a030;
    color: var(--color-white);
}

.btn-gold-border {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.btn-gold-border:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-outline:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}


/* --- 1. 顶部导航栏 (Header) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 15px;
}

.logo-emoji {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--color-navy);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 700;
}

.lang-switch {
    color: var(--color-gold);
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Initially hidden on desktop */
    padding: 15px;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 3px;
    background-color: var(--color-navy);
    position: absolute;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.header.scrolled .hamburger-inner,
.header.scrolled .hamburger-inner::before,
.header.scrolled .hamburger-inner::after {
    background-color: var(--color-navy);
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(0);
    opacity: 0;
}

.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}


/* --- 2. 主视觉区 (Hero Section) --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-navy);
    background-image: url('https://via.placeholder.com/1920x1080/001f3f/FFFFFF?text=Video+Background');
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 31, 63, 0.5); /* 深藏青半透明遮罩 */
    z-index: -1;
}

.hero-title {
    font-size: 4.5rem;
    margin: 0;
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 20px;
    font-family: var(--font-sans);
}

/* --- 3. 最新消息 (News & Topics) --- */
.news-section {
    padding: 80px 0;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 800px;
}

.news-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-list .date {
    font-weight: bold;
    margin-right: 20px;
    color: #555;
}

.news-list .category {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 15px;
}

/* --- 4. 白鳥院の教育 (Education) --- */
.education-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.education-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h4 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
    color: var(--color-navy);
}

.card p {
    padding: 0 20px 20px;
    margin: 0;
}

/* --- 5. 学生聚焦 (Student Spotlight) --- */
.spotlight-section {
    padding: 80px 0;
}

.spotlight-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.spotlight-image {
    flex: 1;
}

.spotlight-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.spotlight-content {
    flex: 1.5;
}

.spotlight-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}
.spotlight-content .section-title::after {
    margin: 10px 0 0;
}

.spotlight-content h4 {
    font-size: 1.2rem;
    color: #555;
}

.spotlight-content .quote {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-navy);
    margin: 20px 0;
}

.spotlight-content blockquote {
    margin: 20px 0 30px;
    padding-left: 20px;
    border-left: 3px solid var(--color-gold);
    font-style: italic;
}

.spotlight-content cite {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-weight: bold;
}

/* --- 6. 校园掠影 (Campus Gallery) --- */
.gallery-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- 7. 招生信息 (Admissions) --- */
.admissions-section {
    padding: 80px 0;
    background-color: var(--color-navy);
    background-image: url('https://via.placeholder.com/1920x400/001f3f/FFFFFF?text=校門');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--color-white);
}

.admissions-title {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 40px;
}

.admissions-buttons .btn {
    margin: 0 15px;
    min-width: 200px;
}

/* --- 8. 底部页脚 (Footer) --- */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-left .logo {
    align-items: center;
    margin-bottom: 20px;
}

.footer-left .logo p {
    margin: 0 0 0 15px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.footer-left address {
    font-style: normal;
    line-height: 1.8;
}

.footer-right {
    display: flex;
    gap: 50px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a, .footer-links a {
    color: var(--color-white);
}

.footer-links {
    font-size: 0.9rem;
}

.social-media a {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-right: 15px;
    /* Replace with actual icons later */
    font-family: sans-serif;
    font-weight: bold;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* --- 响应式设计 --- */
@media (max-width: 992px) {
    .main-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%; /* Initially hidden */
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        transition: right 0.4s ease-in-out;
        padding-top: 80px;
    }

    .main-nav.is-active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav li {
        margin: 20px 0;
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: inline-block;
    }

    .education-cards { grid-template-columns: 1fr; }
    .spotlight-container { flex-direction: column; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; gap: 40px; }
    .footer-right { flex-direction: column; gap: 30px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2rem; }
    .admissions-buttons { display: flex; flex-direction: column; align-items: center; gap: 20px; }
    .message-block { flex-direction: column; }
    .message-block.reverse { flex-direction: column; }
}

/* --- Subpage Styles --- */
body {
    padding-top: 80px; /* Add padding to body for fixed header */
}

.subpage-hero {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    position: relative;
}

.subpage-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 31, 63, 0.6);
    z-index: 1;
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
}

.subpage-title {
    font-size: 3rem;
    margin: 0;
}

.subpage-subtitle {
    font-size: 1.2rem;
    font-family: var(--font-sans);
    opacity: 0.8;
}

.page-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.content-section {
    margin-bottom: 80px;
}

.content-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-navy);
    position: relative;
}

.content-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 8px auto 0;
}

.message-block {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.message-block.reverse {
    flex-direction: row-reverse;
}

.message-photo {
    width: 200px;
    height: auto;
    border-radius: 5px;
    flex-shrink: 0;
}

.message-text h4 {
    font-size: 1.5rem;
    margin-top: 0;
}

.message-text .signature {
    text-align: right;
    margin-top: 20px;
    font-weight: bold;
}

.history-list {
    list-style: none;
    padding-left: 20px;
    border-left: 3px solid var(--color-gold);
}

.history-list li {
    margin-bottom: 20px;
    position: relative;
}

.history-list .year {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: var(--color-navy);
}

/* Education Page Styles */
.lead {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background-color: var(--color-white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.course-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.course-card-content {
    padding: 20px;
}

.course-card-content h4 {
    font-size: 1.5rem;
    margin-top: 0;
    color: var(--color-navy);
}

.career-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

.career-list li {
    padding-left: 25px;
    position: relative;
}

.career-list li::before {
    content: '✓';
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Campus Life Page Styles */
.timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 3px;
    background: var(--color-gold);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 60px;
}

.timeline-month {
    position: absolute;
    left: -15px;
    top: 0;
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.timeline-content h4 {
    font-size: 1.5rem;
    margin-top: 0;
}

.club-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.club-card {
    text-align: center;
}

.club-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.club-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Admissions Page Styles */
.info-table {
    width: 100%;
    margin-top: 40px;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.info-table th {
    background-color: #f9f9f9;
    font-weight: bold;
    width: 25%;
}

.faq-container {
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2rem;
    font-family: var(--font-sans);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question span {
    color: var(--color-gold);
    margin-right: 15px;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.faq-question.is-active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 20px;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 20px;
}

/* Students & Parents Page Styles */
.document-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.document-link {
    display: block;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.document-link:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

/* Access Page Styles */
#map {
    height: 400px;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 40px;
}

.access-info-block {
    margin-bottom: 30px;
}

.access-info-block h4 {
    font-size: 1.5rem;
    border-left: 4px solid var(--color-gold);
    padding-left: 15px;
    margin-bottom: 15px;
}

.access-info-block ul {
    list-style: none;
    padding-left: 20px;
}

.access-info-block li {
    margin-bottom: 10px;
}

/* 404 Error Page Styles */
.error-page {
    padding: 100px 20px;
}

.error-title {
    font-size: 6rem;
    font-weight: bold;
    color: var(--color-gold);
    margin: 0;
}

.error-subtitle {
    font-size: 2rem;
    font-family: var(--font-serif);
    margin: 10px 0 20px;
}
