/* Basic Setup & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f4f6f9;
}

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

ul {
    list-style: none;
}

/* Color Variables */
:root {
    --primary-color: #003366;
    /* Navy Blue - Trust */
    --accent-color: #4da6ff;
    /* Lighter Blue - Awareness/Sky */
    --bg-color: #ffffff;
    --section-bg: #eef2f6;
    --text-color: #333;
    --light-text: #666;
}

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

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #e1e4e8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

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

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

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

.main-nav a:hover {
    color: var(--primary-color);
}

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

.main-nav a.nav-cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a.nav-cta:hover {
    background-color: var(--accent-color);
}

.main-nav a.nav-cta::after {
    display: none;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Main Content */
main {
    min-height: calc(100vh - 160px);
    padding-bottom: 60px;
    /* Ensure space before footer */
}

/* Hero Section (Common) */
/* Hero Section (Common) */
.page-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    /* Increased from 40px */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay for readability */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
    /* Navy overly */
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Specific for TOP page text alignment if needed */
.section-title-center {
    text-align: center;
    border-left: none;
    padding-left: 0;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
}

.section-title-center span {
    border-bottom: 4px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), #004080);
    /* Fallback */
    padding: 120px 0;
    text-align: left;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.6);
    /* Slightly lighter overlay for hero */
    z-index: 1;
}

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

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    border: none;
    color: #fff;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

section {
    margin-bottom: 60px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #444;
}

p {
    margin-bottom: 1.5rem;
    color: #444;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

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

.btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

footer a {
    color: #cfd8dc;
    font-size: 0.9rem;
    margin: 0 15px;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.copyright {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #aab;
}

/* Global Image Styles */
.illustration-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .logo a {
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-bottom: 1px solid #ddd;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .main-nav a.nav-cta {
        background-color: transparent;
        color: var(--primary-color);
        font-weight: bold;
        padding: 15px 20px;
    }

    .main-nav a.nav-cta:hover {
        background-color: #f9f9f9;
    }

    .main-nav a::after {
        display: none;
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    /* Illustration Placeholders */
    .illustration-placeholder {
        width: 100%;
        height: 300px;
        /* Default height */
        background-color: var(--section-bg);
        border: 2px dashed #cbd5e0;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--light-text);
        font-weight: bold;
        border-radius: 8px;
        margin-bottom: 20px;
        position: relative;
        overflow: hidden;
    }

    .illustration-placeholder::after {
        content: 'Illustration Area';
        opacity: 0.5;
    }


}

@media (max-width: 500px) {

    /* Mobile Hero Image */
    .hero {
        background-image: url('images/topherosp.jpeg') !important;
        background-position: center top;
        padding: 120px 0 !important;
        /* Adjust padding for mobile */
    }

    .hero h1 {
        font-size: 8vw !important;
        /* Prevent wrapping by scaling with width */
        line-height: 1.4;
    }

    .hero p {
        font-size: 3.5vw !important;
        /* Prevent wrapping by scaling with width */
        line-height: 1.6;
        white-space: nowrap;
        /* Force single line if needed, but text content implies standard wrapping at BR tags is okay. User likely means 'no accidental wrapping'. */
    }
}

/* Responsive Split Layout (Global) */
.split-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}


.split-section.reverse {
    flex-direction: row-reverse;
}

.split-section>div {
    flex: 1;
    min-width: 0;
}

.split-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
    object-fit: cover;
    /* Allow trimming if container constraints enforce aspect ratio, though height:auto usually prevents trimming unless height is fixed. strict text said "can be trimmed", this is safe. */
}

@media (max-width: 768px) {

    .split-section,
    .split-section.reverse {
        flex-direction: column;
        gap: 20px;
    }
}

/* Company Page Specific Styles */
.philosophy-list p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.philosophy-list strong {
    color: var(--primary-color);
}

.philosophy-full-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns on desktop */
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .value-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

.value-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.value-item strong {
    color: var(--primary-color);
}

/* Counselor Page Styles */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    margin-top: 40px;
}

.tab-btn {
    padding: 12px 25px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.counselor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.counselor-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.counselor-card:hover {
    transform: translateY(-5px);
}

.counselor-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    background-color: #eee;
}

.counselor-card h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.counselor-card .role {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.counselor-card .history {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #666;
}

/* Registration Flow */
.registration-flow {
    margin-top: 100px;
    padding: 60px 0;
    border-top: 1px solid #ddd;
}

.registration-flow h2 {
    text-align: center;
    margin-bottom: 50px;
    border-left: none !important;
    padding-left: 0 !important;
}

.flow-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

.btn-small {
    display: inline-block;
    padding: 8px 15px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .flow-container {
        flex-direction: column;
    }
    .flow-step {
        width: 100%;
    }
}
