@charset "UTF-8";

:root {
    --color-primary: #0A2463;
    /* Deep Blue */
    --color-accent: #3E92CC;
    /* Bright Blue */
    --color-text: #333333;
    --color-light: #f5f5f5;
    --font-heading: "Noto Sans JP", sans-serif;
    --font-body: var(--font-ja);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
    background-color: #fff;
    padding-top: 70px;
    /* Space for fixed header */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* Page Header */
.news-main {
    margin-top: -1px;
}

.page-header {
    text-align: center;
    /* Align text block to the center */
    padding: 120px 0;
    /* Greyish photo background */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/common/team-photo-banner.webp');
    /* Concrete/Architecture image */
    background-size: cover;
    background-position: center;
    color: #fff;
    margin-bottom: 60px;
    position: relative;
    /* Move text to the center */
}

/* Header Group */
.news-header-group {
    display: inline-block;
    text-align: center;
}

.news-label {
    display: block;
    /* Stack on top */
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    font-family: "Helvetica Neue", Arial, sans-serif;
    text-transform: capitalize;
}

.news-label::before {
    content: '/';
    color: var(--color-accent);
    margin-right: 12px;
    font-weight: 700;
    font-size: 1.2em;
}

.news-main-heading {
    font-size: 2.8rem;
    /* Reduced from 3.5rem */
    font-weight: 700;
    line-height: 1;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    margin: 0;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .news-main-heading {
        font-size: 2.2rem;
    }
}

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

/* News Archive */
.news-archive {
    margin-bottom: 80px;
}

/* Category Filter Bar */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.news-filter-btn {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    background: #fff;
    text-decoration: none;
    transition: all 0.25s;
}

.news-filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.news-filter-btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

/* Category Badge (per row) */
.news-cat {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-accent);
    color: #fff;
    flex-shrink: 0;
    margin-right: 12px;
    white-space: nowrap;
}

/* News List */
.news-list {
    border-top: 1px solid #e0e0e0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-empty {
    padding: 40px 0;
    text-align: center;
    color: #888;
}

/* News Item — now an <a> tag directly */
a.news-item {
    display: flex;
    align-items: center;
    padding: 25px 10px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s;
    text-decoration: none;
    color: inherit;
}

a.news-item:hover {
    background-color: #f0f8ff;
}

.news-date {
    width: 120px;
    flex-shrink: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.news-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    flex: 1;
}

/* Pagination (WordPress the_posts_pagination) */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    gap: 10px;
}

.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 2px;
    font-size: 1rem;
    background-color: #f0f0f0;
    color: #666;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.page-numbers:hover {
    background-color: #e0e0e0;
}

.page-numbers.current {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

.page-numbers.prev,
.page-numbers.next {
    width: auto;
    padding: 0 12px;
    font-size: 1.1rem;
}

/* Hide screen reader text from pagination */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

@media (max-width: 600px) {
    a.news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 10px;
    }

    .news-date {
        width: auto;
    }
}

/* ==========================================================================
   Detail View
   ========================================================================== */
.container-narrow {
    max-width: 800px;
}

.article-header {
    margin-top: 60px;
    margin-bottom: 30px;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--color-primary);
    /* Changed to Primary Blue */
}

.article-date {
    color: #888;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.article-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

/* Writer Info */
.writer-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f0f8ff;
    /* Very Light Blue Background */
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid var(--color-primary);
    /* Blue Accent Border */
}

.writer-avatar {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--color-primary);
    border: 1px solid #e0e0e0;
}

.writer-text {
    flex: 1;
}

.writer-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    /* Accent Blue */
    margin-bottom: 4px;
}

.writer-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.writer-desc {
    font-size: 13px;
    color: #666;
}

/* Content */
.article-content {
    background-color: transparent;
    padding: 0;
    font-size: 1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 24px;
}

/* Navigation */
.article-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 80px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 40px;
    background-color: var(--color-primary);
    /* Changed to Primary Blue */
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s;
    min-width: 180px;
}

.btn-nav:hover {
    background-color: var(--color-accent);
    /* Changed to Accent Blue */
    text-decoration: none;
}

/* ==========================================================================
   Header & Footer (Shared from Ogawa Information)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    color: white;
    font-size: 24px;
    font-weight: 600;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    letter-spacing: 0.1em;
}

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

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    opacity: 0.7;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

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

.site-footer {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    font-family: "Yu Mincho", "YuMincho", serif;
}

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

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
}

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

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==========================================================================
   Shared header / SP nav compatibility for information route
   ========================================================================== */
.h {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.h.is-scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.h .h_in.w_set {
    max-width: 1280px;
    margin: 0 auto;
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.h .h_logo {
    margin: 0;
    line-height: 1;
    flex: 0 0 auto;
}

.h .h_logo a {
    display: inline-flex;
    align-items: center;
}

.h .h_logo_img01,
.h .h_logo_img02 {
    display: block;
    width: auto;
    height: 34px;
}

.h .h_logo_img02 {
    display: none;
}

.h .h_logo_txt {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.h .h_nav {
    flex: 1 1 auto;
    min-width: 0;
}

.h .h_nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.h .h_nav a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.25s ease;
}

.h .h_nav a:hover {
    color: #ffffff;
}

.h_navbtn {
    display: none;
    position: fixed;
    top: 18px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: rgba(10, 36, 99, 0.92);
    z-index: 1300;
    cursor: pointer;
}

.h_navbtn i,
.h_navbtn i::before,
.h_navbtn i::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.h_navbtn i {
    top: 21px;
}

.h_navbtn i::before {
    top: -8px;
}

.h_navbtn i::after {
    top: 8px;
}

body.is_open .h_navbtn i {
    background: transparent;
}

body.is_open .h_navbtn i::before {
    transform: translateY(8px) rotate(45deg);
}

body.is_open .h_navbtn i::after {
    transform: translateY(-8px) rotate(-45deg);
}

.spnav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1250;
}

.spnav_lst {
    position: relative;
    z-index: 2;
    width: min(86vw, 360px);
    height: 100%;
    margin-left: auto;
    background: #0a2463;
    padding: 80px 0 24px;
    overflow-y: auto;
}

.spnav_lst ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.spnav_lst li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.spnav_lst a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
}

.okg-spnav__en {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    opacity: 0.76;
}

.okg-spnav__jp {
    display: block;
    font-size: 0.94rem;
    margin-top: 2px;
}

.spnav_bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

body.is_open .spnav {
    display: block;
}

body.is_open {
    overflow: hidden;
}

body.admin-bar .h {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .h {
        top: 46px;
    }
}

@media (max-width: 900px) {
    .h .h_nav {
        display: none;
    }

    .h_navbtn {
        display: block;
    }

    .h .h_in.w_set {
        padding-right: 66px;
    }
}
