@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Old+Mincho:wght@400;700&display=swap');

:root {
    /* Colors */
    --color-primary: #026342;
    --color-primary-light: #03855a;
    --color-primary-dark: #01422c;
    --color-accent: #D4AF37;
    --color-text-base: #333333;
    --color-text-muted: #666666;
    --color-bg-base: #FFFFFF;
    --color-bg-light: #F9F9F9;
    --color-bg-warm: #F2F0EB;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
}

/* Base Styles */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text-base);
    background-color: var(--color-bg-warm);
    line-height: 1.8;
    font-size: 16px;
    padding-top: var(--header-height);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 40px 40px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-family: 'Zen Old Mincho', serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    letter-spacing: 0.1em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 1.5rem auto 0;
}

/* UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(2, 99, 66, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-light);
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: scaleX(0);
    transform-origin: left;
}

.btn:hover::before {
    transform: scaleX(1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(2, 99, 66, 0.25);
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.site-header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-family: 'Zen Old Mincho', serif;
}

.brand-logo img {
    height: 50px;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-item a {
    font-weight: 500;
    color: var(--color-text-base);
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-item a:hover {
    color: var(--color-primary);
}

.nav-item a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: calc(var(--header-height) * -1);
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow img.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Zen Old Mincho', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

/* Information Section */
.news-list {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.news-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.5rem 0;
    display: flex;
    gap: 2rem;
    align-items: baseline;
    transition: transform 0.3s ease, background-color 0.3s;
    border-radius: 4px;
    padding: 1.5rem 1rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    transform: translateX(5px);
    background-color: #fafafa;
}

.news-item--sns {
    justify-content: center;
}

.news-item--sns .news-content {
    text-align: center;
}

/* INFORMATION 2カラムレイアウト */
.info-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.info-layout .news-list {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0;
}

.info-fb {
    flex-shrink: 0;
    width: 340px;
}

@media (max-width: 900px) {
    .info-layout {
        flex-direction: column;
    }

    .info-fb {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }
}

.news-date {
    color: var(--color-primary);
    font-family: 'Zen Old Mincho', serif;
    font-weight: 700;
    min-width: 100px;
}

.news-title {
    font-weight: 500;
    line-height: 1.6;
}

/* About Section */
.bg-warm {
    background-color: #F8F6F2;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    object-fit: contain;
}

.service-title {
    font-family: 'Zen Old Mincho', serif;
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-title small {
    font-size: 0.8rem;
    font-weight: 500;
}

.service-card p:last-child {
    font-size: 0.9rem;
}

/* Links Section */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.link-banner {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.link-banner img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.link-banner:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.link-banner:hover img {
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(45deg,
            var(--color-accent),
            var(--color-accent) 10px,
            transparent 10px,
            transparent 20px);
}

.footer-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info h2 {
    font-family: 'Zen Old Mincho', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.footer-address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 2;
}

.footer-note {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 700;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Station List Page */
.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.station-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.station-card-image {
    width: calc(100% + 3rem);
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin: -1.5rem -1.5rem 1rem;
}

.station-name {
    font-family: 'Zen Old Mincho', serif;
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    line-height: 1;
}

.station-name span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #ffffff;
    font-family: sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    width: 1.8em;
    height: 1.8em;
    margin-right: 0.7em;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 2px;
}

.station-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f5f5f5;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background-color: #f0f8f5;
    color: var(--color-primary-dark);
    border: 1px solid #e0e0e0;
}

.station-link {
    align-self: flex-start;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: white;
    background: var(--color-primary);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.station-link:hover {
    background: var(--color-primary-light);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
}

.station-map img{
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .site-header {
        height: 60px;
        --header-height: 60px;
    }

    .brand-logo img {
        height: 32px !important;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }

    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-primary);
        position: relative;
        transition: all 0.3s;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--color-primary);
        left: 0;
        transition: all 0.3s;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        top: 8px;
    }

    /* Hamburger active state */
    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        backdrop-filter: blur(10px);
        z-index: 1000;
    }

    .nav-list.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .nav-item a {
        font-size: 1.2rem;
        font-weight: 700;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .news-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Sub-page Hero (disaster, etc.)
   ============================================ */
.page-hero {
    padding: 6rem 0 3rem;
}

.page-hero-content {
    text-align: center;
}

.page-hero .page-title {
    margin-bottom: 1rem;
}

.page-hero-lead {
    font-size: 1.1rem;
}

/* ============================================
   Disaster Map Page
   ============================================ */
.disaster-block {
    max-width: 1000px;
    margin: 0 auto 5rem;
}

.disaster-block:last-child {
    margin-bottom: 0;
}

.disaster-heading-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.disaster-heading {
    text-align: left;
    border: none;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.disaster-heading-row .disaster-heading {
    margin-bottom: 0;
}

.disaster-table-wrap {
    overflow-x: auto;
}

.disaster-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.disaster-table thead {
    background: var(--color-primary);
    color: white;
}

.disaster-table th,
.disaster-table td {
    padding: 1rem;
    text-align: left;
}

.disaster-table tbody tr {
    border-bottom: 1px solid #eee;
}

.disaster-table tbody tr:last-child {
    border-bottom: none;
}

.map-link {
    text-decoration: none;
    margin-left: 0.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
}

@media (min-width: 601px) {
    .disaster-table td .map-link {
        float: right;
    }
}

.disaster-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-base);
    padding-left: 1em;
}

.disaster-note a {
    color: var(--color-primary);
    text-decoration: underline;
}