@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    /* Color Variables */
    --primary-color: #004d99;
    --accent-color: #4da6ff;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f5f8fa;
    --white: #ffffff;
    --font-family: "Noto Sans JP", "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* FIX: STRICTLY prevent horizontal scroll on mobile */
@media (max-width: 900px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* ========================================
   HEADER - Desktop (default)
   ======================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* --- ADJUST DESKTOP HEADER PADDING HERE --- */
    /* Reduced top/bottom to 5px because logo has 10px padding */
    padding: 5px 20px;
    background-color: #F0F4F8;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 60px;
    border-bottom: 1px solid #f0f0f0;
}

@media (min-width: 901px) {
    header {
        /* Reduced top/bottom to 10px */
        padding: 10px 40px;
        height: auto;
    }
}

header .logo {
    font-size: 22px;
    font-weight: bold;
    color: #111;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1001;
    line-height: 1;
    /* --- ADJUST THIS VALUE TO SHIFT LOGO RIGHT --- */
    margin-left: 75px;

    /* --- WHITE BACKGROUND FOR LOGO --- */
    background-color: white;
    padding: 10px 20px;
    /* Add breathing room around logo */
    border-radius: 4px;
    /* Optional: Rounded corners */
}

header .logo img {
    height: 30px;
}

/* Desktop Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav ul li a {
    /* --- ADJUST HEADER FONT SIZE HERE --- */
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    position: relative;
}

.main-nav ul li a.active {
    color: #0E73EB;
    /* Blue text for active state */
}

.main-nav ul li a.active::before {
    content: '';
    position: absolute;
    top: -28px;
    /* Adjust based on header padding (20px) + a bit more */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0E73EB;
    /* Blue line */
}

/* Hidden on Desktop */
.mobile-only {
    display: none !important;
}

/* Hamburger - Hidden on Desktop */
.hamburger-menu {
    display: none;
}

/* Desktop CTA Button */
header .header-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    display: inline-block;
}

/* ========================================
   HEADER - Mobile (max-width: 900px)
   ======================================== */
@media (max-width: 900px) {

    /* HIDE desktop contact button */
    .desktop-only {
        display: none !important;
    }

    /* --- MOBILE HEADER ADJUSTMENTS --- */
    /* --- MOBILE HEADER ADJUSTMENTS --- */
    header {
        /* --- ADJUST MOBILE HEADER PADDING HERE --- */
        /* Reduced top/bottom padding to 5px because logo has 10px padding */
        /* Total height remains similar */
        padding: 15px 20px;
    }

    header .logo {
        /* --- ADJUST MOBILE LOGO GAP FROM LEFT HERE --- */
        /* Desktop has 75px, set to 0 or small value for mobile */
        margin-left: 20px;

        /* --- ADJUST MOBILE LOGO WHITE BOX SIZE HERE --- */
        /* Reduce vertical padding so it doesn't touch top/bottom edges */
        padding: 2px 15px;
    }

    /* SHOW hamburger */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
        padding: 0;
        position: relative;
    }

    .hamburger-menu span {
        width: 24px;
        height: 2px;
        background-color: #333;
        transition: all 0.3s ease;
        position: absolute;
    }

    .hamburger-menu span:nth-child(1) {
        transform: translateY(-8px);
    }

    .hamburger-menu span:nth-child(2) {
        opacity: 1;
    }

    .hamburger-menu span:nth-child(3) {
        transform: translateY(8px);
    }

    /* X (Close) State */
    .hamburger-menu.open span:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger-menu.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.open span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Mobile Nav Drawer */
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #f9f9f9;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        padding: 0 20px 40px;
        border-top: 1px solid #ccc;
        display: block;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        display: block;
        padding: 0;
        margin: 0;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid #ccc;
    }

    .main-nav ul li:first-child {
        border-top: 1px solid #ccc;
    }

    .main-nav ul li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        font-size: 16px;
        color: #333;
        font-weight: normal;
        position: relative;
        /* Ensure context */
    }

    /* REMOVE Active Line on Mobile */
    .main-nav ul li a.active::before {
        display: none;
    }

    /* Optional: Keep blue text but remove line, or revert text color too if needed */
    .main-nav ul li a.active {
        color: #0E73EB;
        /* Keep text blue? Or change to #333 if you want it plain? */
    }

    /* Arrow on each menu item */
    .main-nav ul li a::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #333;
        border-top: 2px solid #333;
        transform: rotate(45deg);
        margin-right: 5px;
    }

    .mobile-only {
        display: block !important;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 36px;
    color: #333333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    position: relative;
}

.btn-primary::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    /* --- ADJUST BUTTON ARROW SIZE HERE --- */
    border-top: 6px solid transparent;
    /* Increase for taller arrow */
    border-bottom: 6px solid transparent;
    /* Increase for taller arrow */
    border-left: 10px solid white;
    /* Increase for wider arrow */
    margin-left: 12px;
    vertical-align: middle;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background-color: #f5f8fa;
    padding: 50px 0;
    font-size: 13px;
    color: #333;
    border-top: 1px solid #eee;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: bold;
    color: #111;
    gap: 6px;
    line-height: 1;
}

/* ============================================
   FOOTER LOGO - SVG Icon
   ============================================ */
/* Shared SVG Icon Styling (Header & Footer) */
svg.footer-logo-icon,
header .logo svg {
    width: 36px;
    height: 42px;
    flex-shrink: 0;
}

.logo-icon {
    color: #0056b3;
    font-size: 24px;
}

.footer-address {
    font-style: normal;
    /* --- ADJUST ADDRESS TEXT COLOR HERE --- */
    color: #555;
    /* --- ADJUST ADDRESS FONT SIZE HERE --- */
    font-size: 14px;
    line-height: 1.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.footer-nav ul li a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    /* --- ADJUST DESKTOP LINK FONT SIZE HERE --- */
    font-size: 16px;
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
}

.footer-copy {
    color: #888;
    /* --- ADJUST DESKTOP COPYRIGHT SIZE HERE --- */
    font-size: 14px;
}

/* Footer Mobile */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding-left: 20px;
        /* Align with container padding */
        padding-right: 20px;
    }

    .footer-left {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-right {
        align-items: flex-start;
        /* Align left */
        width: 100%;
        gap: 20px;
    }

    /* Stack links vertically with specific spacing */
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
        /* Vertical gap between items */
        width: 100%;
    }

    .footer-nav ul li {
        width: 100%;
        /* Full width for easier tapping */
    }

    .footer-nav ul li a {
        display: block;
        /* --- ADJUST MOBILE LINK FONT SIZE HERE --- */
        font-size: 16px;
        color: #444444;
    }

    .footer-copy {
        margin-top: 40px;
        /* Space above copyright */
        width: 100%;
        text-align: right;
        /* Copyright at bottom right as per design */
        /* --- ADJUST MOBILE COPYRIGHT SIZE HERE --- */
        font-size: 14px;
    }

    .footer-address {
        /* --- ADJUST MOBILE ADDRESS TEXT COLOR HERE --- */
        /* Made darker as requested */
        color: #333;
        margin-top: 10px;
        /* Slight spacing if needed */
    }
}

/* ========================================
   CONTACT CTA (Shared Component)
   ======================================== */
#contact-cta {
    padding: 80px 0 100px;
}

.contact-box {
    background-color: #4b7bc0;
    background: linear-gradient(135deg, #4b7bc0 0%, #3a6ab0 100%);
    border-radius: 20px;
    padding: 80px 20px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 20px rgba(75, 123, 192, 0.3);
}

.contact-box .section-title.text-white {
    color: white;
    margin-bottom: 10px;
}

.contact-text {
    margin-bottom: 40px;
    font-size: 16px;
    color: white;
}

.btn-white {
    display: inline-block;
    background-color: white;
    color: #333;
    padding: 15px 60px;
    border-radius: 50px;
    font-weight: bold;
    position: relative;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-white::after {
    content: '▶';
    font-size: 12px;
    margin-left: 10px;
    color: #333;
}

.btn-white:hover {
    background-color: #f0f0f0;
    opacity: 1;
}

/* Mobile responsive for Contact CTA */
@media (max-width: 900px) {
    #contact-cta {
        /* --- ADJUST SECTION PADDING (GAP) HERE --- */
        /* 1st Value (40px) = TOP GAP (Space above Contact) */
        /* 2nd Value (0)    = LEFT/RIGHT (Keep 0) */
        /* 3rd Value (40px) = BOTTOM GAP (Space below Contact) */
        padding: 60px 0 40px;
    }

    .contact-box {
        padding: 40px 20px;
        /* --- ADJUST CONTACT CARD WIDTH HERE --- */
        width: 90%;
        margin: 0 auto;
    }
}

/* ========================================
   NEWS LIST (Shared Component)
   ======================================== */
.news-list {
    /* --- ADJUST NEWS LIST WIDTH (LINE WIDTH) HERE --- */
    max-width: 900px;
    /* Restored to 900px to prevent cramping, adjust as needed */
    margin: 0 auto 40px;
    border-top: 1px solid #ddd;
}

.news-item {
    border-bottom: 1px solid #ddd;
}

.news-item .news-content {
    display: flex;
    align-items: center;
    /* --- ADJUST NEWS ROW HEIGHT (PADDING) HERE --- */
    padding: 10px 10px;
    /* Reduced to 5px to compensate for larger arrow */
    width: 100%;
    /* removed transition and hover background as per request to avoid "light" effect confusion */
}

.news-date {
    font-size: 14px;
    color: #666;
    margin-right: 20px;
    width: 100px;
    /* Fixed width for alignment */
    flex-shrink: 0;
}

.news-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    /* --- ADJUST GAP BETWEEN BADGE AND TITLE HERE --- */
    margin-right: 50px;
    /* Increased from 20px */
    width: 140px;
    /* SAME WIDTH for all badges */
    flex-shrink: 0;
    text-align: center;
    background-color: #999;
}

.badge-news {
    background-color: #87ceeb;
}

.badge-press {
    background-color: #004d99;
}

.badge-event {
    background-color: #0088cc;
}

.badge-media {
    background-color: #008000;
    /* Example green for Media */
}

.news-title {
    flex-grow: 1;
    font-weight: 500;
    /* --- ADJUST NEWS TITLE FONT SIZE HERE --- */
    font-size: 18px;
    /* Increased from default */
}

.news-arrow {
    margin-left: 20px;
    color: #999;
    /* --- ADJUST NEWS ARROW SIZE HERE --- */
    font-size: 36px;
    /* Increased size */
    line-height: 1;
    /* Added to prevent arrow from increasing row height */
    /* font-weight: bold; <--- Uncomment if you want it thicker */
}

/* Mobile Responsive for News List */
@media (max-width: 900px) {
    .news-item .news-content {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        padding: 15px 0;
        gap: 0;
        position: relative;
        /* For absolute positioning of arrow */
    }

    /* Badge on Left (Order 1) */
    .news-badge {
        order: 1;
        margin-right: 15px;
    }

    /* Date next to Badge (Order 2) */
    .news-date {
        order: 2;
        margin-right: 0;
    }

    /* Title on new line (Order 3) */
    .news-title {
        order: 3;
        width: 100%;
        margin-top: 10px;
        padding-right: 30px;
        /* Space for the arrow */
    }

    /* Arrow visible on Right (Absolute) */
    .news-arrow {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #333;
        /* Make arrow darker as per design */
    }

    /* Lighter Black for Mobile as requested */
    .news-title,
    .news-arrow {
        color: #555555;
        /* Lighter black */
    }
}

.news-btn-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   PAGE HEADER & HERO (Shared)
   ======================================== */
.page-header {
    background-color: var(--bg-light);
    padding: 120px 0 60px;
    /* Top padding clears fixed global header */
    text-align: center;
}

.page-header .container {
    max-width: 1000px;
    /* Consistent width container */
    margin: 0 auto;
    padding: 0 20px;
}

.page-header .breadcrumb {
    font-size: 16px;
    color: #222;
    margin-bottom: 20px;
    text-align: left;
    /* Breadcrumbs are usually left-aligned or aligned with container */
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

/* Logo Graphic (Copied from About Page Design) */
.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    /* Anchor for absolute positioned dot */
}

.hero-logo .logo-text-large {
    font-size: 80px;
    font-weight: bold;
    font-family: sans-serif;
    letter-spacing: 0.05em;
    color: #000;
    line-height: 1;
}

/* ============================================
   HERO LOGO - SVG Icon
   ============================================ */
.hero-logo .hero-logo-svg {
    width: 60px;
    height: 70px;
    flex-shrink: 0;
}

/* Mobile Responsive for Hero Logo */
@media (max-width: 900px) {
    .page-header {
        padding: 100px 0 40px;
    }

    .hero-logo .logo-text-large {
        font-size: 40px;
    }

    .hero-logo .hero-logo-svg {
        width: 40px;
        height: 47px;
    }
}