/* ============================================
   CSS Variables & Root
   ============================================ */
:root {
    --color-primary: #0a337c;
    --color-secondary: #18181c;
    --color-accent: #f8f9fa;
    --color-border: #e0e0e0;
    --color-muted: #717182;
    --color-bg: #ffffff;
    --color-gold: #967A0B;
    --font-mono: 'Montserrat', sans-serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-display: 'Zen Kaku Gothic New', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-secondary);
    background-color: var(--color-bg);
    line-height: 1.6;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 50;
    height: 77px;
}

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

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #79747e;
    transition: color 0.3s ease;
    position: relative;
}

.nav-item.active {
    color: var(--color-primary);
}

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

.nav-icon {
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    opacity: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 24px;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    margin-top: 77px;
    overflow: hidden;
    background: linear-gradient(135deg, #003d82 0%, #004fa3 100%);
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg_main.png');
    background-size: cover;
    background-position: center;
}

/* --- モバイルファースト（767px以下）--- */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem 0;
}

.hero-text {
    width: 100%;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    margin: 0;
    font-size: 0;
    line-height: 1.3;
    font-family: var(--font-display);
}

.hero-title img {
    display: block;
    width: auto;
    height: auto;
    max-width: 80%;
    margin: 0 auto;
}

.hero-images {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-images img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    vertical-align: bottom;
}

/* --- タブレット（768px～1023px）--- */
@media (min-width: 768px) {
    .hero-content {
        position: relative;
        flex-direction: row;
        align-items: flex-end;
        justify-content: center;
        gap: 2rem;
        padding: 2.5rem 2rem 0;
        min-height: 350px;
    }

    .hero-text {
        width: auto;
        flex-shrink: 0;
        align-self: center;
    }

    .hero-title img {
        width: 500px;
        max-width: none;
        margin: 0;
    }

    .hero-images {
        width: auto;
        flex-shrink: 0;
        align-self: flex-end;
    }

    .hero-images img {
        width: 350px;
        max-width: none;
        vertical-align: bottom;
    }
}

/* --- デスクトップ（1024px以上）--- */
@media (min-width: 1024px) {
    .hero-content {
        position: relative;
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-start;
        min-height: 500px;
        padding: 0;
        gap: 0;
    }

    /* 左上に配置：img_ttl_main.png */
    .hero-text {
        position: absolute;
        top: 55px;
        left: 0;
        width: auto;
        z-index: 2;
    }

    .hero-title img {
        width: 720px;
    }

    /* 右下に配置：img_main_people.png（200px重なり） */
    .hero-images {
        position: absolute;
        bottom: 0;
        right: 0;
        width: auto;
        z-index: 80;
    }

    .hero-images img {
        width: 600px;
    }
}

/* --- 大きなデスクトップ（1440px以上）--- */
@media (min-width: 1440px) {
    .hero-content {
        min-height: 550px;
    }

    .hero-images img {
        width: 650px;
    }
}

/* ============================================
   Animation
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   News Section
   ============================================ */
.news-section {
    width: 100%;
    padding: 3rem 1rem;
    background-color: var(--color-bg);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--color-muted);
    letter-spacing: 0.1em;
    font-family: var(--font-display);
}

/* News List */
.news-list {
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 2rem;
}

.news-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    transition: background-color 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }

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

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 600;
    font-family: var(--font-mono);
}

.news-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.news-category {
    background-color: #f0f0f0;
    color: #666;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #cac4d0;
    font-family: var(--font-mono);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
}

.news-text {
    font-size: 0.95rem;
    color: var(--color-secondary);
    font-family: var(--font-sans);
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.news-arrow {
    width: 16px;
    height: 16px;
    color: #ccc;
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.news-item:hover .news-arrow {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn,
.page-dots {
    min-width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: var(--color-bg);
    color: var(--color-secondary);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}

.page-btn {
    cursor: pointer;
}

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

.page-btn:hover:not(.active) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.page-dots {
    border: none;
    cursor: default;
}

/* ============================================
   Information Section
   ============================================ */
.information-section {
    width: 100%;
    padding: 3rem 1rem;
    background-color: var(--color-bg);
}

/* Info Banner */
.info-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: var(--color-accent);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-banner-image {
    width: 100%;
    min-height: 250px;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.info-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-banner-image > div {
    width: 100%;
    height: 100%;
}

.info-banner-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 20px 20px 0;
}

.info-banner-text {
    font-size: 0.95rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 300;
    font-family: var(--font-sans);
    letter-spacing: 0.03em;
}

.info-banner-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-mono);
    transition: gap 0.3s ease;
    align-self: flex-end;
}

.info-banner-link:hover {
    gap: 1rem;
    color: var(--color-primary);
}

.link-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.info-banner-link:hover .link-arrow {
    transform: translateX(4px);
}

/* Info Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: var(--color-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 228px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image > div {
    width: 100%;
    height: 100%;
}

.card-content {
    flex: 1;
    background-color: var(--color-accent);
    padding: 1.5rem 1.5rem 3rem;
    border-radius: 0 0 20px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    font-family: var(--font-display);
    margin-bottom: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--color-secondary);
    letter-spacing: 0.05em;
}

.card-description {
    font-size: 0.95rem;
    color: var(--color-secondary);
    flex: 1;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.03em;
    font-family: var(--font-sans);
}

.card-arrow {
    width: 20px;
    height: 20px;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    transition: transform 0.3s ease;
}

.info-card:hover .card-arrow {
    transform: translateX(4px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: #dfe4ed;
    width: 100%;
}

.footer__inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 79px;
    padding: 60px 40px 40px 40px;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.footer__contact-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    line-height: 1.8;
    padding-bottom: 15px;
    border-bottom: 1px solid #a0a3aa;
}

.footer__contact-info {
    display: flex;
    flex-direction: column;
}

.footer__contact-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
}

.footer__contact-detail {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
}

.footer__copyright {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #110a51;
    line-height: 1.8;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Media Queries
   ============================================ */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .section-title {
        font-size: 3rem;
        letter-spacing: 0.15em;
    }

    .info-banner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .info-banner-image {
        height: auto;
    }

    .info-banner-content {
        padding: 3rem;
    }

    .news-item {
        grid-template-columns: 80px 1fr auto;
    }

    .footer-contact {
        margin-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding: 0 3rem;
    }

    .info-banner {
        grid-template-columns: 532px 1fr;
    }

    .info-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }

    .news-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .news-date {
        font-size: 0.8rem;
        order: 1;
    }

    .news-content {
        display: contents;
    }

    .news-category {
        order: 2;
    }

    .news-text {
        font-size: 0.9rem;
        width: 100%;
        order: 3;
    }

    .news-arrow {
        display: none;
    }

    .info-banner {
        grid-template-columns: 1fr;
        gap: 0;
        border-radius: 20px;
    }

    .info-banner-image {
        height: 250px;
        border-radius: 20px 20px 0 0;
    }

    .info-banner-content {
        border-radius: 0 0 20px 20px;
        padding: 1.5rem;
    }

    .info-banner-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .info-banner-link {
        align-self: flex-end;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }

}
