/* ============================================
    Color & Typography Variables
    ============================================ */
@charset "UTF-8";

:root {
    --primary-color: #004098; 
    --accent-color: #e60012;  
    --bg-color: #f4f8fb;      
    --text-color: #333333;
    --border-color: #dde2e6;
    --white: #ffffff;
    --font-base: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.text-large { font-size: 115%; }

a { 
    color: var(--primary-color); text-decoration: none; transition: all 0.3s ease; 
}

a:hover { 
    opacity: 0.8; 
}
ul { 
    list-style: none; 
}

.container { 
    width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 15px; 
}

.header-top { 
    background-color: #e0e0e0; font-size: 0.8rem; padding: 6px 0; border-bottom: 1px solid #ccc; 
}
.lang-nav { 
    display: flex; justify-content: flex-end; gap: 20px; align-items: center; 
}
.lang-nav a {
     color: #555; 
}
.text-size-tool button {
    background: #fff; border: 1px solid #aaa; padding: 2px 8px; cursor: pointer; border-radius: 2px;
}
.text-size-tool button.active {
     background: var(--primary-color); color: #fff; border-color: var(--primary-color);
}

.site-header { 
    background-color: var(--white); box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}
.header-main { 
    display: flex; justify-content: space-between; align-items: center; padding: 15px 15px; 
}
.logo h1 { 
    display: flex; flex-direction: column; line-height: 1.2; 
}
.logo-sub { 
    font-size: 1rem; font-weight: bold; color: #333; margin-top: 5px; 
}
.tagline { 
    font-size: 0.75rem; color: #888; margin-top: 2px; 
}

.global-nav { 
    background-color: var(--primary-color); width: 100%; display: none; 
}
@media (min-width: 768px) {
    .global-nav { 
        display: block !important; 
    }
    .global-nav ul { 
        display: flex; flex-direction: row; justify-content: center; 
    }
    .global-nav a { 
        border-bottom: none; border-right: 1px solid rgba(255,255,255,0.2); padding: 12px 20px; 
    }
    .global-nav li:last-child a { 
        border-right: none; 
    }
}
.global-nav a { 
    display: block; color: var(--white); padding: 12px 15px; font-weight: bold; font-size: 0.95rem; text-align: center; 
}
.global-nav a:hover { 
    background-color: rgba(255,255,255,0.15); 
}

.mobile-menu-btn {
    display: block; position: absolute; top: 45px; right: 20px; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; z-index: 100;
}
@media (min-width: 768px) {
     .mobile-menu-btn { 
        display: none; 
    } 
}
.mobile-menu-btn span { 
    display: block; width: 100%; height: 3px; background-color: var(--primary-color); position: absolute; transition: 0.3s; 
}
.mobile-menu-btn span:nth-child(1) { 
    top: 0; 
}
.mobile-menu-btn span:nth-child(2) { 
    top: 11px; 
}
.mobile-menu-btn span:nth-child(3) { 
    bottom: 0; 
}
.mobile-menu-btn.active span:nth-child(1) { 
    transform: rotate(45deg); top: 11px; 
}
.mobile-menu-btn.active span:nth-child(2) { 
    opacity: 0; 
}
.mobile-menu-btn.active span:nth-child(3) { 
    transform: rotate(-45deg); bottom: 11px; 
}

.news-ticker { 
    background-color: #fff3cd; border-bottom: 1px solid #ffeeba; padding: 10px 0; 
}
.ticker-wrap { 
    display: flex; align-items: center; font-size: 0.9rem; color: #856404; 
}
.ticker-label { 
    font-weight: bold; background: #e6a817; color: #fff; padding: 2px 8px; border-radius: 3px; margin-right: 15px; font-size: 0.8rem;
}

.unkojoho-container { 
    margin-top: 20px; margin-bottom: 20px; 
}
.unkojoho { 
    background-color: #fff; border: 2px solid var(--primary-color); border-radius: 4px; padding: 15px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
.unkojoho-header { 
    display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; 
}
.section-title2 { 
    font-size: 1.2rem; color: var(--primary-color); margin: 0; 
}
.unkojoho-time { 
    font-size: 0.9rem; color: #666; font-weight: bold; 
}
.alert-box { 
    display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; 
}
.status-normal { 
    flex: 1; min-width: 150px; background: #f0fdf4; border: 1px solid #bbf7d0; text-align: center; padding: 10px; border-radius: 4px; 
}
.status-normal p { 
    margin: 0; font-size: 0.85rem; color: #666; 
}
.status-text { 
    font-size: 1.2rem; font-weight: bold; color: #166534; display: block; margin-top: 5px; 
}
.unkojoho-footer { 
    display: flex; justify-content: space-between; font-size: 0.85rem; color: #888; 
}

.hero-slider-container { 
    position: relative; width: 100%; height: 400px; overflow: hidden; background-color: #000; margin-bottom: 40px; }
@media (max-width: 768px) { 
    .hero-slider-container { 
        height: 250px; 
    } 
}
.slider-wrapper { 
    display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; 
}
.slide-item { 
    min-width: 100%; height: 100%; position: relative; 
}
.slide-item img { 
    width: 100%; height: 100%; object-fit: cover; 
}
.slide-caption { 
    position: absolute; bottom: 40px; left: 20px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.7); background: linear-gradient(to right, rgba(0,0,0,0.6), transparent); padding: 10px 20px; border-left: 5px solid var(--accent-color); 
}
.slide-caption h2 { 
    font-size: 1.6rem; margin-bottom: 5px; 
}
.slide-caption p { 
    font-size: 1rem; font-weight: bold; 
}
@media (max-width: 768px) { 
    .slide-caption h2 { 
        font-size: 1.2rem; 
    }
    .slide-caption p { 
        font-size: 0.8rem; 
    }
     .slide-caption { 
        bottom: 20px; 
    } 
}
.slider-btn { 
    position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 40, 100, 0.6); color: #fff; border: none; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; z-index: 10; border-radius: 50%; 
}
.slider-btn:hover { 
    background-color: rgba(0, 40, 100, 1); 
}
.prev { 
    left: 15px; 
}
.next { 
    right: 15px; 
}
.slider-dots { 
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; 
}
.dot { 
    width: 10px; height: 10px; background-color: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; 
}
.dot.active { 
    background-color: #fff; transform: scale(1.2); 
}

.main-layout { 
    display: flex; flex-direction: column; gap: 30px; margin-bottom: 50px; 
}
@media (min-width: 900px) {
    .main-layout { 
        flex-direction: row; align-items: flex-start; 
    }
    .main-content { 
        width: 72%; 
    }
    .sidebar { 
        width: 28%; position: sticky; top: 20px; 
    }
}

.section { 
    background: var(--white); padding: 25px; border-radius: 4px; border: 1px solid var(--border-color); margin-bottom: 30px; 
}
.section-title { 
    font-size: 1.3rem; color: var(--primary-color); border-left: 5px solid var(--primary-color); padding-left: 10px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; 
}

.news-list { 
    margin-bottom: 20px; }
.news-list li { 
    padding: 12px 0; border-bottom: 1px dashed #ddd; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.95rem; 
}
.news-list li:last-child { 
    border-bottom: none; 
}
.date { 
    color: #666; font-family: monospace; font-size: 0.9rem; 
}
.badge-update { 
    background: var(--primary-color); color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 2px; 
}
.btn-more { 
    display: inline-block; padding: 10px 40px; background-color: var(--white); color: var(--primary-color); border: 1px solid var(--primary-color); font-weight: bold; border-radius: 4px; transition: 0.3s; 
}
.btn-more:hover { 
    background-color: var(--primary-color); color: var(--white); 
}
.btn-center { 
    text-align: center; margin-top: 15px; 
}

.odekake-grid { 
    display: grid; grid-template-columns: 1fr; gap: 20px; 
}
@media (min-width: 600px) {
    .odekake-grid { 
        grid-template-columns: 1fr 1fr; 
    } 
}
.odekake-card { 
    border: 1px solid #eee; border-radius: 4px; overflow: hidden; background: #fff; transition: 0.3s; 
}
.odekake-card:hover { 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); transform: translateY(-3px); 
}
.odekake-card img { 
    width: 100%; height: 160px; object-fit: cover; 
}
.odekake-caption { 
    padding: 15px; 
}
.odekake-caption h3 { 
    font-size: 1.05rem; margin-bottom: 5px; color: var(--primary-color); 
}
.odekake-caption p { 
    font-size: 0.85rem; color: #555; 
}

.table-scroll { 
    overflow-x: auto; margin-bottom: 15px; 
}
.modern-table { 
    width: 100%; border-collapse: collapse; min-width: 500px; 
}
.modern-table th, .modern-table td { 
    border: 1px solid var(--border-color); padding: 10px; text-align: center; font-size: 0.9rem; 
}
.modern-table th { 
    background-color: #eaf4ff; color: var(--primary-color); 
}
.modern-table tr:nth-child(even) { 
    background-color: #f9f9f9; 
}
.note-list { 
    font-size: 0.8rem; color: #666; 
}

.vehicle-card { 
    display: flex; flex-direction: column; margin-bottom: 20px; border: 1px solid #eee; border-radius: 4px; overflow: hidden; 
}
@media (min-width: 600px) { 
    .vehicle-card { 
        flex-direction: row; 
    } 
}
.vehicle-img, .vehicle-img2, .vehicle-img3, .vehicle-img4 { 
    position: relative; min-height: 180px; background-size: cover; background-position: center; width: 100%; 
}
@media (min-width: 600px) { 
    .vehicle-img, .vehicle-img2 { 
        width: 35%; flex-shrink: 0; 
    } 
}
.vehicle-img { 
    background-image: url(./image/羽前急行月山線_UZ1000形電車-V3.png); background-color: #ccc; 
}
.vehicle-img2 { 
    background-image: url(./image/UZ1000_100_nomal.png); background-color: #ccc; 
}
.vehicle-img3 { 
    background-image: url(./image/UZ1000-2500_車内.png); background-color: #ccc; 
}
.vehicle-img4 { 
    background: url(./image/27247162_s.jpg); background-color: #ccc; background-size: cover; background-position: center;
}
.vehicle-name { 
    position: absolute; bottom: 0; left: 0; background: rgba(0, 64, 152, 0.9); color: #fff; padding: 4px 12px; font-size: 0.85rem; font-weight: bold; 
}
.vehicle-info { 
    padding: 20px; 
}
.vehicle-info h3 { 
    font-size: 1.1rem; border-bottom: 2px solid #eee; padding-bottom: 5px; margin-bottom: 10px; 
}
.vehicle-desc { 
    font-size: 0.9rem; color: #444; 
}

.sidebar-box { 
    background: var(--white); border: 1px solid var(--border-color); padding: 20px; border-radius: 4px; 
}
.sidebar-title { 
    font-size: 1.1rem; color: var(--primary-color); border-bottom: 2px solid #eee; padding-bottom: 8px; margin-bottom: 15px; 
}
.banner-list li { 
    margin-bottom: 12px; 
}
.banner-list a { 
    display: block; transition: 0.2s; 
}
.banner-list a:hover { 
    transform: translateX(3px); opacity: 0.9; 
}

.dummy-banner { 
    padding: 20px 10px; text-align: center; color: #fff; font-weight: bold; border-radius: 4px; font-size: 0.95rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2); }
.bg-safety { 
    background: #2c3e50; 
}
.bg-ic { 
    background: #16a085; 
}
.bg-goods { 
    background: #d35400; 
}
.bg-recruit { 
    background: #2980b9; 
}
.bg-conductorless { 
    background: #e6a817; 
}

.site-footer { 
    background-color: #1a1a1a; color: #ccc; padding: 40px 0 20px; text-align: center; margin-top: auto; border-top: 5px solid var(--primary-color); 
}
.footer-links { 
    margin-bottom: 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; 
}
.footer-links a { 
    color: #fff; font-size: 0.85rem; 
}
.footer-links a:hover { 
    color: var(--primary-color); 
}
.copyright { 
    font-size: 0.8rem; 
}

