/* =========================================================================
   T&L Support Portal - Style Guide & CSS Reset
   Theme: Reliable, Corporate, Public Service (Blue & White)
   ========================================================================= */

:root {
    /* Color Palette */
    --primary-color: #0A3D73;     /* Trustworthy Navy Blue */
    --primary-light: #1A5B9C;
    --accent-color: #E67E22;      /* Warm Orange for Call-to-action */
    --accent-hover: #D35400;
    
    --bg-color: #FFFFFF;
    --bg-light: #F4F7FA;          /* Soft cool gray/blue */
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #E0E5EC;
    
    --white: #FFFFFF;
    
    /* Typography */
    --font-family: 'Noto Sans JP', sans-serif;
    
    /* Variables */
    --header-height: 80px;
    --transition-speed: 0.3s;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8; /* Increased from 1.6 for better readability */
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

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

/* Layout & Containers */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: 80px 0;
}

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

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

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

.text-primary {
    color: var(--primary-color);
}

/* Section Headers */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* Add underline accent to titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.text-left .section-title::after {
    left: 0;
    transform: none;
}

.bg-primary .section-title {
    color: var(--white);
}
.bg-primary .section-title::after {
    background-color: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 15px;
}

.bg-primary .section-subtitle {
    color: rgba(255,255,255,0.8);
}

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

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

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

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

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 126, 34, 0.4);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Header & Nav */
.header {
    background-color: var(--white);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 4%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px; /* Adjust height to fit the header proportionally */
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav ul {
    display: flex;
    gap: 25px;
}

.nav ul li a {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

.btn-apply-header {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.btn-apply-header:hover {
    background-color: var(--accent-hover);
    color: var(--white);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay to ensure text is readable */
    background: linear-gradient(135deg, rgba(10, 61, 115, 0.9) 0%, rgba(10, 61, 115, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
    animation: fadeIn 1s ease forwards;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* News Section (Compact & Prominent) */
.section-news {
    background-color: var(--bg-light); 
    padding: 35px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 3px solid var(--primary-color);
}

.news-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--white);
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(10, 61, 115, 0.1); 
    transition: transform 0.3s ease;
}

.news-header {
    flex-shrink: 0;
    text-align: center;
    border-right: 3px solid var(--accent-color);
    padding-right: 40px;
}

.news-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 2px;
}

.news-caption {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.news-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Increased from 10px */
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s;
}

.news-item:hover {
    color: var(--primary-light);
}

.news-date {
    font-weight: 500;
    color: var(--text-muted);
    min-width: 90px;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 3px;
    min-width: 80px;
    text-align: center;
}

.status-info {
    background-color: #E3F2FD;
    color: #1976D2;
    border: 1px solid #BBDEFB;
}

.status-important {
    background-color: #FFEBEE;
    color: #D32F2F;
    border: 1px solid #FFCDD2;
}

.news-title {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Vision Section */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.vision-text h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    line-height: 1.3;
}

.vision-text-block p {
    color: var(--text-muted);
    margin-bottom: 20px; /* Increased */
    line-height: 2; /* Stronger line height for body paragraphs */
}

.vision-points {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Changed from flex-column to side-by-side */
    gap: 30px;
    margin-top: 40px;
}

.v-point {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.v-point:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.v-point i {
    font-size: 2.5rem;
    color: var(--primary-light);
}

.v-point-text h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

.strength-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-speed);
}

.strength-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
    border-color: transparent;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strength-card:hover .icon-circle {
    background-color: var(--primary-color);
}

.icon-circle i {
    font-size: 2rem;
    color: var(--primary-light);
    transition: color 0.3s;
}

.strength-card:hover .icon-circle i {
    color: var(--white);
}

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

.strength-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-speed);
}

.course-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.course-header {
    padding: 30px 20px;
    color: var(--white);
    text-align: center;
}

.ishigaki-bg { background: linear-gradient(135deg, #0288D1, #03A9F4); }
.nago-bg { background: linear-gradient(135deg, #388E3C, #4CAF50); }
.chatan-bg { background: linear-gradient(135deg, #F57C00, #FF9800); }

.course-header i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.course-header h3 {
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.course-header-type {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.course-body {
    padding: 30px 25px;
    text-align: center;
}

.status-wrap {
    margin-bottom: 15px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-active {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.course-name {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.5;
}

.course-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    min-height: 60px;
}

/* Flow Process */
.flow-container {
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    border-left: 5px solid var(--primary-color);
}

.flow-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--bg-light);
    margin-right: 25px;
}

.flow-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-right: 25px;
}

.flow-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.flow-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.flow-arrow {
    text-align: center;
    padding: 20px 0;
    font-size: 1.5rem;
    color: #ccc;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 25px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.open i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 25px 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA */
.cta-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-note {
    margin-top: 20px;
    opacity: 0.7;
}

/* Footer */
.footer {
    background-color: #222222;
    color: #FFFFFF;
    padding: 60px 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid #444;
    padding-bottom: 40px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-brand p {
    color: #AAAAAA;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: #CCCCCC;
}

.footer-nav ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .vision-grid {
        grid-template-columns: 1fr;
    }
    
    .strengths-grid,
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .strengths-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }

    /* Vision Points stack on mobile */
    .vision-points {
        grid-template-columns: 1fr;
    }

    /* News Stack on mobile */
    .news-inner {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .news-header {
        border-right: none;
        border-bottom: 2px solid var(--accent-color);
        padding-right: 0;
        padding-bottom: 5px;
        text-align: left;
    }

    .news-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .news-item .news-title {
        width: 100%;
        white-space: normal;
    }
}
