/* ==========================================================================
   DoKHP Website - Main Styles
   ========================================================================== */

/* CSS Variables */
:root {
    --primary-color: #003d82;
    --primary-dark: #002a5c;
    --primary-light: #0056b3;
    --secondary-color: #00a3af;
    --accent-color: #f39800;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-gray: #f5f7fa;
    --border-color: #e1e8ed;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-base: 16px;
    --spacing: 1rem;
    --header-scale: 0.6;
}

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

html {
    font-size: var(--font-base);
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Font Size Control */
body.font-small {
    font-size: 14px;
}

body.font-large {
    font-size: 18px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* Button Styles */
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Header */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #ffffff;
    color: var(--text-color);
    padding: calc(0.7rem * var(--header-scale)) 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
    flex: 0 0 auto;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo-icon {
    height: calc(97.5px * var(--header-scale));
    width: auto;
}

.header-utils {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
}

.header-locale {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-utils-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Font Size Control */
.font-size-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.font-size-label {
    font-size: 0.875rem;
}

.font-size-options {
    display: flex;
    gap: 0.25rem;
}

.font-size-options button {
    padding: 0.25rem 0.5rem;
    background: var(--bg-gray);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 0.875rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.font-size-options button:hover,
.font-size-options button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.language-inline {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
}

.lang-btn {
    padding: 0.25rem 0.75rem;
    background: #d9dde5;
    color: var(--primary-dark);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.language-inline .lang-btn {
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
}

.lang-btn:hover {
    background: #c7cdd8;
    color: var(--primary-dark);
}

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

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.social-inline {
    flex-wrap: nowrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    transition: var(--transition);
    border-radius: 4px;
    border: none;
    background: transparent;
}

.social-icon:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.social-icon-youtube {
    color: #ff0000;
}

.social-icon-facebook {
    color: #1877f2;
}

.social-icon-x {
    color: #111;
}

.social-icon-instagram {
    color: #e4405f;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-search-label {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 600;
    white-space: nowrap;
}

.header-search input {
    width: 140px;
    min-width: 0;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    outline: none;
    color: var(--primary-dark);
}

.header-search input::placeholder {
    color: var(--text-light);
}

.header-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.header-search button:hover {
    background: var(--primary-light);
}
/* Search Box */
.search-box {
    display: flex;
    background: white;
    border-radius: 24px;
    overflow: hidden;`r`n    text-align: center;
    box-shadow: var(--shadow);
}

.search-box input {
    border: none;
    padding: 0.5rem 1rem;
    outline: none;
    width: 200px;
    font-size: 0.875rem;
}

.search-box button {
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--bg-gray);
}

/* Main Navigation */
.main-nav {
    background: var(--primary-color);
    border-bottom: none;
}

.main-nav .container {
    max-width: none;
    padding: 0;
}

.nav-language-menu {
    display: none;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
}

.nav-language-menu .language-selector {
    justify-content: center;
    gap: 0.5rem;
}

.mobile-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.mobile-search-toggle:hover,
.mobile-search-toggle.active {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-search-panel {
    display: none;
    padding: 0 1rem 0.75rem;
}

.mobile-search-panel.active {
    display: block;
}

.mobile-search-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.mobile-search-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.mobile-search-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-search-input input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.mobile-search-input button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    transition: var(--transition);
}

.mobile-search-input button:hover {
    background: var(--primary-light);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0;
    background: var(--primary-color);
    width: 100%;
    padding: 0 24px;
}

.nav-menu > li {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
}

.nav-menu > li > a {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: calc(1.575rem * var(--header-scale)) 1.5rem;
    color: white;
    background: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    height: 100%;
}



.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: white;
    background: var(--primary-light);
    border-bottom-color: transparent;
}

.nav-menu > li > a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    opacity: 0;
}

.nav-menu > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--accent-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu > li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 40%;
    background: rgba(255, 255, 255, 0.75);
    pointer-events: none;
    border-radius: 1px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

.nav-item {
    position: relative;
}

.nav-item.has-dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-item.has-dropdown > .nav-link::after {
    content: "▾";
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.nav-item:hover > .nav-link::after,
.nav-item:focus-within > .nav-link::after,
.nav-item.dropdown-open > .nav-link::after {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 1rem 1.25rem;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 60;
}

.nav-dropdown a {
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.nav-dropdown a:last-child {
    border-bottom: none;
}

.nav-dropdown a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 61, 130, 0.12), rgba(0, 61, 130, 0.25), rgba(0, 61, 130, 0.12));
    transform: translateX(-110%);
    transition: transform 0.35s ease;
    pointer-events: none;
}

.nav-dropdown a:hover::before {
    transform: translateX(0);
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.dropdown-open > .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
}

.nav-dropdown {
    clip-path: inset(0 0 100% 0);
}
.nav-menu > li > a:hover::before,
.nav-menu > li > a:focus-visible::before {
    transform: translateX(0);
    opacity: 1;
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a:focus-visible::after,
.nav-menu > li > a.active::after {
    left: 0;
    width: 100%;
}

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 8px 8px;
    list-style: none;
}

.has-submenu:hover .submenu {

}

.submenu li a {

    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.submenu li a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 350px;
    overflow: hidden;`r`n    text-align: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    height: 100%;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    padding: 0;
}

.hero-arrow:hover {
    color: rgba(255, 255, 255, 0.85);
    transform: translateY(-50%) scale(1.05);
}

.hero-arrow-prev {
    left: 2rem;
}

.hero-arrow-next {
    right: 2rem;
}

.hero-indicators {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 11;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    max-width: 12px;
    max-height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 12px;
    line-height: 1;
    aspect-ratio: 1 / 1;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    overflow: hidden;
    vertical-align: middle;
}

.hero-indicator.active {
    background: white;
    border-color: white;
    transform: none;
}

/* Emergency Banner */
.emergency-banner {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    padding: 0.2rem 0;
}

.emergency-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.emergency-icon {
    font-size: 1.5rem;
}

.emergency-message {
    margin: 0;
    font-weight: 600;
    flex: 1;
    text-align: left;
}

/* Section Styles */
section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.see-all {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.see-all:hover {
    transform: translateX(4px);
}

/* Quick Access */

/* Hot Topics */
.hot-topics {
    background: #f2f5fb;
    padding: 0.75rem 0;
}

.hot-topics .container {
    display: flex;
    align-items: center;
    gap: 1.0rem;
    flex-wrap: wrap;
}

.hot-topic-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
}

.hot-topic-label {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.1rem;
    font-size: 1rem;
}

.hot-topic-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 61, 130, 0.25);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.hot-topic-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.quick-access {
    background: #ffffff;
}

.quick-access .section-title {
    color: var(--primary-color);
}

.quick-access .section-title::after {
    background: var(--primary-dark);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.quick-card,
.quick-card:link,
.quick-card:visited {
    background: var(--primary-color);
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 2px solid var(--primary-color);
    color: #ffffff;
}

.quick-card:hover,
.quick-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.quick-icon-svg {
    width: 64px;
    height: 64px;
    color: currentColor;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.quick-card h3 {
    color: currentColor;
    margin-bottom: 0;
    font-size: 1rem;
    transition: var(--transition);
}

/* News Section */
.news-section {
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
        url("../images/honbu02.jpg") center/cover no-repeat;
}

.news-section .section-title {
    text-align: center;
    color: white;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.news-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-column {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-column-events .news-card {
    border-left-color: #1976d2;
}

.news-subtitle {
    font-size: 1.8rem;
    color: var(--primary-dark);
    text-align: center;
    margin: 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0.6rem 0.6rem;
    background: #fffef6;
    border-radius: 10px;
    border-left: 6px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    min-height: 50px;
    text-align: left;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.news-column-updates .news-card {
    background: #eef6ff;
    border-left-color: #003d82;
}

.news-column-events .news-card {
    background: #eef6ff;
    border-left-color: #003d82;
}

.news-date {
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.news-category {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
    color: var(--primary-dark);
}

.cat-important {
    background: rgba(255, 99, 99, 0.9);
    color: #fff;
}

.cat-event {
    background: rgba(0, 85, 170, 0.9);
    color: #fff;
}

.cat-info {
    background: rgba(0, 128, 128, 0.92);
    color: #fff;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-dark);
    flex: 1;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.news-card > *:not(.news-category) {
    color: var(--primary-dark);
}

.news-column .see-all-btn {
    align-self: center;
}

.see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    transition: var(--transition);
}

.see-all-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .news-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .news-column {
        padding: 1.25rem 1rem;
    }
}

/* Statistics */
.statistics {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.statistics .section-title {
    color: white;
}

.statistics .section-title::after {
    background: var(--accent-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
}

.stat-change.increase {
    background: rgba(40, 167, 69, 0.3);
    color: #a8ffc1;
}

/* Banner Section */
.banner-section {
    background: #e6f4ff;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.banner-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.banner-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.banner-item img {
    width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .banner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* Stations Section */
.stations-section {
    background: white;
}

.station-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.station-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.station-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1.25rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    flex: 1 1 140px;
    min-width: 140px;
    max-width: 200px;
    white-space: normal;
}

.station-tab:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.station-tab.active {
    background: var(--primary-color);
    color: white;
}

.station-content {
    position: relative;
    min-height: auto;
    padding-top: 0;
}

.station-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.station-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(4, 280px);
    gap: 1.25rem;
    justify-content: center;
}

.station-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 100px;
}

.station-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.station-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    text-align: left;
}

.station-card h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0;
}

.station-address {
    color: var(--primary-dark);
    font-size: 0.82rem;
    line-height: 1.4;
}

.station-tel {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.station-photo {
    flex: 0 0 110px;
    height: 110px;
    border-radius: 12px;
    background: #1e2227;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--shadow);
}

.station-photo::before {
    content: "PHOTO";
    pointer-events: none;
}

.station-photo.has-image::before {
    content: "";
}

.station-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

@media (max-width: 1200px) {
    .station-grid {
        grid-template-columns: repeat(3, 260px);
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .station-grid {
        grid-template-columns: repeat(2, 240px);
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .station-grid {
        grid-template-columns: repeat(2, 200px);
        gap: 0.75rem;
        justify-content: center;
    }

    .station-card {
        flex-direction: column;
        min-height: auto;
        text-align: center;
    }

    .station-photo {
        display: none;
    }
}

/* Footer */
.footer {
    width: 100%;
    background-color: var(--primary-dark);
    background-image: url("../images/footer.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 12rem 0 1rem;
    min-height: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-section h3 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-section {
    flex: 1 1 160px;
    min-width: 150px;
}

.footer-section ul {
    list-style: none;
    font-size: 0.85rem;
}

.footer-section ul li {
    margin-bottom: 0.35rem;
    white-space: nowrap;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

@media screen and (min-width: 1025px) {
    .footer {
        background-size: contain;
        background-position: top center;
        min-height: 520px;
    }

    .footer .container {
        max-width: 1800px;
        padding: 0 6rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-4px);
}


.logo-content {
    display: flex;
    align-items: center;
    gap: 0;
    padding: calc(0.5rem * var(--header-scale)) 0;
}












