/* --- Color Variables (from your style guide) --- */
:root {
    --color-main: #154994; /* Dark Blue - Main brand color */
    --color-accent: #218CD9; /* Bright Blue - Accent color */
    --color-light-blue: #8BE6F7; /* Light Blue accent (palette) */
    --color-text-dark: #444C55; /* Dark Gray for main text */
    --color-text-blue: #154994; /* Same as Main Color */
    --color-white: #FFFFFF;
    --color-bg-page: #F2F3F4; /* Page Background */
    --color-bg-white: #FFFFFF;
}

/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Zen Kaku Gothic New for Japanese text, fallback to system fonts */
    font-family: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-bg-page);
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

/* === 1. Header and Navigation === */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* header layout: logo sits flush to the left edge (outside centered container)
   the container (.header-content) keeps nav aligned towards the right,
   and the recruit button is pinned to the far right of the page */
.site-header { position: relative; }

.header-content {
    display: flex;
    justify-content: flex-end; /* keep nav on the right side of the centered container */
    align-items: center;
    padding: 15px 0;
    padding-right: 160px; /* reserve room so nav doesn't collide with the absolute recruit button */
}

/* logo element placed outside the centered container so it can be flush-left */
.logo-outside {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* make the anchor a flex container so image and company text sit side-by-side */
.logo-outside a {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* pin the recruit button to the far right edge of the viewport */
.recruit-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-icon {
    height: 45px;
    width: auto;
}

.company-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.company-name-en {
    font-size: 13px;
    color: var(--color-text-dark);
    font-weight: 500;
}

.company-type {
    font-size: 11px;
    color: var(--color-text-dark);
    font-weight: 400;
}

.top-nav ul {
    display: flex;
}

.top-nav li a {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-text-dark);
    position: relative;
    transition: color 0.3s;
    font-weight: 500;
    display: block;
}

.top-nav li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-main);
    transition: width 0.3s ease-out;
}

.top-nav li a:hover,
.top-nav li a.active {
    color: var(--color-main);
}

.top-nav li a:hover::after,
.top-nav li a.active::after {
    width: 70%;
}

.recruit-btn {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 3px;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.3s;
    font-weight: 500;
    display: block;
}

.recruit-btn:hover {
    background-color: var(--color-main);
}

/* === 2. Main Content Area === */

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0 10px 24px;
    font-size: 12px;
    color: #999;
}

.breadcrumb a {
    color: #999;
    transition: color 0.3s;
}

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

/* News Header */
.news-section {
    padding-bottom: 0;
}

.news-header {
    padding: 30px 0 0 24px;
}

.news-title-text {
    font-size: 52px;
    color: var(--color-main);
    font-weight: 700;
    letter-spacing: 2px;
}

.news-header p {
    font-size: 18px;
    color: var(--color-text-blue);
    font-weight: 500;
    margin-top: 5px;
}

.underline-blue {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, var(--color-main) 15%, #dbe3ee 85%);
    margin: 25px 0 50px;
}

/* News List */
.news-list-container {
    position: relative;
    padding-bottom: 0;
    overflow: hidden;
}

.news-list-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
        pointer-events: none;
        /* Subtle diagonal light bands without adding an opaque white panel */
        background:
            linear-gradient(135deg, rgba(21,73,148,0.05) 8%, rgba(255,255,255,0.25) 35%, rgba(255,255,255,0.35) 55%, rgba(255,255,255,0.25) 80%),
            radial-gradient(540px 300px at 95% 8%, rgba(33,140,217,.08), transparent 70%);
}

.news-list {
    position: relative;
    z-index: 2;
    background-color: transparent; /* Items float on the background (no white card) */
}

.news-item {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #cfe2f6; /* thin blue-tinted divider like the reference */
    transition: background-color 0.2s;
}

.news-item:hover {
    background-color: rgba(33, 140, 217, 0.02);
}

.news-date {
    font-size: 12px;
    color: #888;
    min-width: 120px;
    padding-left: 25px;
    white-space: nowrap;
}

.news-title {
    flex-grow: 1;
    font-size: 13px;
    color: var(--color-text-dark);
    padding: 0 25px;
    line-height: 1.6;
}

.news-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #aac3e5;
    border-radius: 50%;
    margin-right: 25px;
    transition: background-color 0.3s, border-color 0.3s, box-shadow .3s;
    flex-shrink: 0;
}

.news-link:hover {
    background-color: var(--color-main);
    border-color: var(--color-main);
    box-shadow: 0 6px 16px rgba(21,73,148,.2);
}

.news-link:hover .arrow-icon {
    color: var(--color-white);
}

.arrow-icon {
    font-size: 16px;
    color: var(--color-main);
    line-height: 1;
    display: block;
    transform: translateX(1px);
    transition: color 0.3s;
    font-weight: bold;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 36px 0 60px;
    gap: 12px;
}

.page-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd7ea;
    border-radius: 50%;
    font-size: 14px;
    color: var(--color-text-dark);
    background-color: #fff;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(21,73,148,.08);
}

.page-link:hover {
    border-color: var(--color-main);
    color: var(--color-main);
}

.page-link.active {
    background: linear-gradient(180deg,#1d56a5 0%, #103e86 100%);
    color: #fff;
    border-color: #184a96;
    box-shadow: 0 8px 18px rgba(21,73,148,.22);
}

/* Prev/Next chevrons without circles */
.page-link[aria-label] {
    width: auto;
    height: auto;
    border: none;
    box-shadow: none;
    background: transparent;
    font-size: 18px;
    color: var(--color-main);
    opacity: .6;
    border-radius: 0;
}
.page-link[aria-label]:hover { opacity: 1; }


/* Contact Section */
.contact-section {
    padding: 80px 0 120px;
    background: linear-gradient(135deg, #eaf2fb 0%, #f6f9fd 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(33, 140, 217, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 48px 56px;
    box-shadow: 0 18px 36px rgba(21,73,148,.15), 0 2px 6px rgba(0,0,0,.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.contact-header-text{font-size:14px;color:var(--color-main);font-weight:700}

.contact-card h2{font-size:44px;color:var(--color-main);font-weight:800;margin:8px 0 22px;letter-spacing:2px}

.contact-card-content p {
    font-size: 14px;
    color: var(--color-text-dark);
    line-height: 1.8;
}

.contact-buttons{display:flex;flex-direction:column;gap:18px;align-items:flex-start}

.email-btn {
    background: linear-gradient(180deg,#1d56a5 0%, #103e86 100%);
    color: #fff;
    padding: 18px 34px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 24px rgba(16,62,134,.25), 0 0 0 3px rgba(158,180,206,.65), 0 0 0 6px rgba(16,62,134,.08);
}

.email-btn:hover {
    filter: none;
    background: linear-gradient(180deg,#2261b5 0%, #114991 100%);
}

.email-icon { font-size: 18px; }

.arrow-icon-small{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fff;color:var(--color-main);font-size:18px;margin-left:10px;box-shadow:0 2px 6px rgba(0,0,0,.12)}

.phone-info{width:100%}

.phone-text {
    font-size: 13px;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.phone-number-btn{display:flex;align-items:center;gap:14px;background:linear-gradient(180deg,#e9f4ff 0%, #d7e9fb 100%);color:var(--color-main);padding:12px 20px 12px 16px;border-radius:999px;border:2px solid #b7d5fb;transition:all .25s ease;box-shadow:inset 0 -4px 8px rgba(21,73,148,.08)}
.phone-number-btn:hover{background:linear-gradient(180deg,#f2f8ff 0%, #e3effc 100%);border-color:#9cc6fa}

.phone-icon{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#cfe4fb}
.phone-icon svg{width:22px;height:22px;fill:#154994;display:block}
.phone-lines{display:flex;flex-direction:column;line-height:1.1}
.phone-label{font-size:12px;color:#2b65ad;font-weight:700}
.phone-number{font-size:28px;font-weight:800;letter-spacing:.5px;color:#154994;margin:2px 0}
.phone-hours{font-size:12px;color:#3a4a5a;opacity:.8}

.phone-hours {
    font-size: 12px;
    color: #666;
}

/* === 3. Footer === */
.site-footer {
    /* Solid main blue as requested */
    background-color: #154994;
    background: #154994;
    color: var(--color-white);
    padding-top: 50px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: 'G';
    position: absolute;
    bottom: -80px;
    left: 50px;
    font-size: 450px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
    font-family: 'Arial', sans-serif;
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.company-info {
    max-width: 400px;
}

.footer-logo-g {
    width: 60px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.company-info p {
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
}

.company-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.company-address {
    margin-bottom: 5px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 35px;
    max-width: 600px;
    margin-left: auto;
    align-items: flex-start;
    padding-top: 10px;
}

.footer-nav li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s;
}

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

.copyright-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.privacy-policy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    padding-right: 15px;
    transition: color 0.3s;
}

.privacy-policy:hover {
    color: rgba(255, 255, 255, 0.9);
}

.privacy-policy::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    background-color: var(--color-main);
    color: var(--color-white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    z-index: 120;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.back-to-top-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.28); }

/* Responsive Design */
@media (max-width: 768px) {
    /* make header elements flow naturally on small screens */
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        padding-right: 0; /* no need to reserve space on small screens */
    }

    .logo-outside {
        position: static;
        transform: none;
        padding-left: 0;
        margin-bottom: 8px;
    }

    .top-nav ul {
        flex-wrap: wrap;
        gap: 12px;
    }

    .recruit-btn {
        position: static;
        transform: none;
        margin-left: 8px;
        margin-top: 6px;
    }

    .contact-card {
        flex-direction: column;
        gap: 30px;
        padding: 40px 30px;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-nav ul {
        margin-left: 0;
    }
}