/* ======== Liquid Glass Design & Apple-style UI (Updated) ======== */

/* ----------------------------------------------
 * 基本変数定義
 * ---------------------------------------------- */
 :root {
    --primary-blue-start: #007aff;
    --primary-blue-end: #5ac8fa;
    --primary-gradient: linear-gradient(135deg, var(--primary-blue-start) 0%, var(--primary-blue-end) 100%);
    --text-gradient-up: linear-gradient(to top, #5ac8fa, #007aff);

    --text-dark: #1d1d1f;
    --text-light: #6e6e73;

    --glass-bg: rgba(242, 242, 247, 0.75);
    --glass-border-color: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(20px);
    --glass-saturate: saturate(180%);

    --border-radius: 20px;
    --soft-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --soft-shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    --page-top-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
    --page-top-card-border: rgba(255, 255, 255, 0.8);
    --page-top-card-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
    --page-top-card-lead: #4b5563;
    --page-top-card-picker-bg: #f5f5f7;
    --page-top-card-picker-border: rgba(15, 23, 42, 0.06);
    --page-top-card-picker-label: #3c4150;
    --page-top-card-link-bg: #ffffff;
    --page-top-card-link-border: rgba(15, 23, 42, 0.08);
    --page-top-card-link-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    --page-top-card-link-hover-border: rgba(15, 23, 42, 0.16);
    --page-top-card-link-hover-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
    --accent-card-bg: rgba(0, 122, 255, 0.05);
    --accent-card-border: var(--primary-blue-start);

    /* モバイルナビゲーション用の変数を追加 */
    --header-height: 72px;
    --mobile-nav-padding-top: 100px;
}

/* ----------------------------------------------
 * 基本スタイル
 * ---------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ----------------------------------------------
 * ヘッダー
 * ---------------------------------------------- */
.header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-saturate) var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-saturate) var(--glass-blur);
    border-bottom: 1px solid var(--glass-border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    min-height: var(--header-height);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-section .site-name, .seiun-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-section .subtitle {
    font-size: 0.875rem;
    color: var(--primary-blue-start);
    font-weight: 500;
}
.seiun-title {
   font-size: 2rem;
}

/* ----------------------------------------------
 * ハンバーガーメニュー
 * ---------------------------------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}
.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-blue-start);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    position: relative;
    transform-origin: center;
}
.hamburger.active span:first-child {
    transform: translateY(10.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.hamburger.active span:last-child {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ----------------------------------------------
 * ナビゲーション
 * ---------------------------------------------- */
.nav-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-saturate) var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-saturate) var(--glass-blur);
    border-bottom: 1px solid var(--glass-border-color);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
}
.main-nav { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.nav-list { display: flex; list-style: none; margin: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-link { display: block; padding: 1rem 1.5rem; color: var(--text-dark); text-decoration: none; transition: all 0.3s ease; position: relative; white-space: nowrap; font-size: 0.9rem; font-weight: 500; }
.nav-link:hover { color: var(--primary-blue-start); background: rgba(255, 255, 255, 0.3); }
.nav-link.active { color: var(--primary-blue-start); font-weight: 600; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 1.5rem; right: 1.5rem; height: 3px; background: var(--primary-gradient); border-radius: 3px; }
.additional-nav { background: rgba(242, 242, 247, 0.3); padding: 0.5rem 0; }
.additional-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
}
.additional-nav a {
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.additional-nav a:hover { color: var(--primary-blue-start); }


.additional-nav a[aria-current="page"] {
    color: var(--primary-blue-start);
    font-weight: 600;
}
/* ----------------------------------------------
 * ヒーローセクション
 * ---------------------------------------------- */
.hero { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 2rem; }
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-bg.show {
    opacity: 1;
}
.hero-bg-1, .hero-bg-2 {
    z-index: -1;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h2 { font-size: 2.5rem; margin-bottom: 1rem; animation: fadeInUp 0.8s ease; }
.hero p { font-size: 1.125rem; opacity: 0.95; animation: fadeInUp 0.8s ease 0.2s both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ----------------------------------------------
 * FAQスタイル top card
 * ---------------------------------------------- */
.access-main {
    width: min(1200px, calc(100% - 2rem));
    margin: 2rem auto 0;
    padding-bottom: 1rem;
    display: grid;
    gap: 1.5rem;
}

.page-top-card {
    padding: 1rem 0 0.25rem;
}

.page-top-card__inner {
    position: relative;
    overflow: hidden;
}

.page-top-card__eyebrow {
    margin: 0;
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.page-top-card .page-title {
    margin-top: 0.7rem;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Noto Sans JP", sans-serif;
    font-size: clamp(2rem, 6vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 700;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-dark);
}

.page-top-card .page-lead {
    margin: 0.95rem auto 0;
    max-width: 42rem;
    color: var(--page-top-card-lead);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.82;
}

.page-top-card__picker {
    margin-top: 1.6rem;
    padding: 1rem;
    border-radius: 24px;
    background: var(--page-top-card-picker-bg);
    border: 1px solid var(--page-top-card-picker-border);
}

.page-top-card__picker-label {
    margin: 0 0 0.85rem;
    color: var(--page-top-card-picker-label);
    font-size: 0.95rem;
    font-weight: 600;
}

.page-top-card__picker-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.page-top-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    background: var(--page-top-card-link-bg);
    border: 1px solid var(--page-top-card-link-border);
    box-shadow: var(--page-top-card-link-shadow);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-top-card__link:hover {
    transform: translateY(-2px);
    border-color: var(--page-top-card-link-hover-border);
    box-shadow: var(--page-top-card-link-hover-shadow);
}

.page-top-card__picker .page-button {
    margin-top: 0.35rem;
}

.main-content {
    margin: 0;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.content-area {
    width: min(920px, 100%);
    margin: 0 auto;
}

.intro-layout,
.access-split,
.map-layout,
.cta-section__layout {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.illustration-panel img,
.cta-section__art img {
    width: min(100%, 320px);
    display: block;
    margin: 0 auto;
}

.content-section--soft {
    background: linear-gradient(135deg, rgba(248, 252, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    font-size: 0.94rem;
    font-weight: 600;
}

.map-inline-actions {
    margin-top: 1.25rem;
}

.image-container--map {
    overflow: hidden;
}

.cta-section {
    background: rgba(0, 122, 255, 0.04);
    border: 1px solid rgba(0, 122, 255, 0.16);
    box-shadow: var(--soft-shadow);
    color: var(--text-dark);
}

.cta-section__layout {
    gap: 2rem;
}

@media (min-width: 900px) {
    .map-layout {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    }

    .cta-section__layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    }
}

/* ----------------------------------------------
 * メインコンテンツ & カードスタイル
 * ---------------------------------------------- */
.content-section, .sidebar, .facility-card, .contact-card { background: var(--glass-bg); backdrop-filter: var(--glass-saturate) var(--glass-blur); -webkit-backdrop-filter: var(--glass-saturate) var(--glass-blur); border-radius: var(--border-radius); border: 1px solid var(--glass-border-color); box-shadow: var(--soft-shadow); padding: 2rem; transition: all 0.4s ease; }
.content-section:hover, .sidebar:hover, .facility-card:hover { box-shadow: var(--soft-shadow-hover); transform: translateY(-5px); }

/* ----------------------------------------------
 * サイドバー
 * ---------------------------------------------- */
.sidebar { padding: 1.5rem; height: fit-content; }
.sidebar h3 { color: var(--primary-blue-start); font-size: 1.125rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.1); }
.sidebar-links { list-style: none; margin-bottom: 2rem; }
.sidebar-links li { margin-bottom: 0.5rem; }
.sidebar-links a { display: block; padding: 0.75rem; color: var(--text-dark); text-decoration: none; border-radius: 10px; transition: all 0.3s ease; }
.sidebar-links a:hover { background: rgba(0, 122, 255, 0.1); color: var(--primary-blue-start); transform: translateX(4px); }
.cta-button { display: block; background: var(--primary-gradient); color: white; text-align: center; padding: 1rem; border-radius: 15px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; margin-bottom: 2rem; border: none; box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3); }
.cta-button:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4); }
.contact-card { background: rgba(0, 122, 255, 0.05); padding: 1.5rem; font-size: 0.875rem; line-height: 1.8; }
.contact-card a { color: var(--primary-blue-start); text-decoration: none; transition: color 0.3s ease; }
.contact-card a:hover { color: var(--primary-blue-end); }

/* ----------------------------------------------
 * コンテンツセクション
 * ---------------------------------------------- */
.content-section { margin-bottom: 2rem; animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--text-gradient-up);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid;
    border-image: var(--primary-gradient) 1;
    display: inline-block;
}
.content-text { color: var(--text-dark); margin-bottom: 1.5rem; line-height: 1.8; }
.content-with-image { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.image-container { position: relative; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--soft-shadow); }
.image-container img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder-image { background: rgba(230,230,230,0.5); border: 1px dashed rgba(0,0,0,0.2); padding: 40px; text-align: center; color: var(--text-light); min-height: 200px; display: flex; align-items: center; justify-content: center; font-size: 14px; border-radius: var(--border-radius); }
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.facilities-grid--compact { margin-top: 1rem; }
.facility-card h4 { color: var(--primary-blue-start); margin-bottom: 0.5rem; }
.facility-card ul { padding-left: 20px; margin-top: 1rem; }
.facility-card--accent { background: var(--accent-card-bg); border-left: 4px solid var(--accent-card-border); }
.facility-card--offset { margin-top: 1.5rem; }
.compact-points {
    margin: 0;
    padding-left: 1.1rem;
}
.compact-points li + li {
    margin-top: 0.45rem;
}

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

.stat-card {
    padding: 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--soft-shadow);
}

.stat-card__label {
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-card__value {
    margin-top: 0.45rem;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.5;
}

.stat-card__sub {
    margin-top: 0.35rem;
    color: var(--text-light);
    font-size: 0.93rem;
}

/* ── Route Cards (redesign) ───────────────────── */

.route-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.route-card {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.route-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(31, 38, 135, 0.12);
}

.route-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.route-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.route-card__badge {
    flex-shrink: 0;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(90, 200, 250, 0.15));
    color: var(--primary-blue-start);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Timeline: 2-column grid (node col | label col) */
.route-steps {
    display: grid;
    grid-template-columns: 26px 1fr;
    margin: 0 0 1.25rem;
}

.route-step-node,
.route-via-node {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.route-dot {
    align-self: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid var(--primary-blue-start);
    flex-shrink: 0;
    z-index: 1;
}

.route-dot--dest {
    background: var(--primary-blue-start);
    width: 14px;
    height: 14px;
    border-color: var(--primary-blue-start);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.route-via-line {
    width: 2px;
    min-height: 1.75rem;
    background: linear-gradient(to bottom, rgba(0, 122, 255, 0.22), rgba(90, 200, 250, 0.22));
    border-radius: 1px;
}

.route-step-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 0.3rem 0 0.3rem 0.75rem;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.route-step-label--dest {
    color: var(--primary-blue-start);
}

.route-via-label {
    display: flex;
    align-items: center;
    padding: 0 0 0 0.75rem;
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--text-light);
}

.route-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-blue-start);
    padding: 0.1rem 0.42rem;
    background: rgba(0, 122, 255, 0.09);
    border-radius: 999px;
    line-height: 1.5;
}

.route-sub {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 0.1rem 0.42rem;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 999px;
    line-height: 1.5;
}

.route-card__note {
    margin-top: auto;
    padding-top: 0.1rem;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* Bus card */
.bus-routes {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.25rem 0 1.25rem;
}

.bus-route {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: rgba(0, 122, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.bus-route__number {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-blue-start);
    padding: 0.18rem 0.5rem;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 6px;
    white-space: nowrap;
}

.bus-route__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* SEO対策用の追加スタイル */
.highlight-keyword {
    font-weight: bold;
    color: #0066cc;
}

.seo-content {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.seo-intro {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* 入寮時特待生制度アコーディオンのスタイル */
.scholarship-accordion {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.scholarship-accordion summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    font-size: 1.05em;
    color: #1565c0;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.scholarship-accordion summary::-webkit-details-marker {
    display: none;
}

.scholarship-accordion summary::before {
    content: '▼';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.scholarship-accordion[open] summary::before {
    transform: rotate(-180deg);
}

.scholarship-accordion summary:hover {
    background: rgba(255, 255, 255, 0.8);
}

.scholarship-content {
    padding: 1rem 1.5rem 1.5rem;
    background: white;
    animation: slideDown 0.3s ease;
}

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

.scholarship-content p {
    margin-bottom: 0.5rem;
}

.scholarship-content p:last-child {
    margin-bottom: 0;
}

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

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-item h3 {
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.faq-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.faq-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.cta-section {
    padding: clamp(1.75rem, 4vw, 2.4rem) clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
    margin-bottom: 0.85rem;
    color: var(--text-dark);
}

.cta-section p {
    color: var(--text-light);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0, 122, 255, 0.22);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.breadcrumb {
    padding: 1rem;
    background-color: #f8f9fa;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0066cc;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

.footer-keywords {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
}

mark {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 説明リスト */
.definition-list {
    margin-top: 1rem;
}
.definition-list-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5em;
}
.definition-list-item dt {
    flex-shrink: 0;
    font-weight: bold;
    white-space: nowrap;
}
.definition-list-item dd {
    margin-left: 0.5em;
}

/* ----------------------------------------------
 * タイムライン (沿革)
 * ---------------------------------------------- */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid;
    border-image: var(--primary-gradient) 1;
    margin-top: 2rem;
}
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
.timeline-item:last-of-type { margin-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 11px);
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--primary-gradient);
    border-radius: 50%;
    border: 4px solid white;
    z-index: 1;
}
.timeline-date { color: var(--primary-blue-start); font-weight: 600; margin-bottom: 0.5rem; }

/* ----------------------------------------------
 * ニュース記事
 * ---------------------------------------------- */
.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.news-date {
    flex-shrink: 0;
    color: var(--primary-blue-start);
    font-weight: 600;
    min-width: 100px;
}

.news-content {
    flex: 1;
}

/* ----------------------------------------------
 * フッター
 * ---------------------------------------------- */
.footer {
    background: linear-gradient(180deg, #0a0e27 0%, #1a1d35 50%, #0a0e27 100%);
    color: #d1d1d6;
    padding: 4rem 1rem 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue-start), var(--primary-blue-end), transparent);
}
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 122, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.footer-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    background: var(--text-gradient-up);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section a {
    color: #a8adc0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    padding-left: 0;
    position: relative;
}
.footer-section a::before {
    content: '→';
    position: absolute;
    left: -1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-blue-end);
}
.footer-section a:hover {
    color: var(--primary-blue-end);
    padding-left: 1.2rem;
}
.footer-section a:hover::before {
    opacity: 1;
    left: 0;
}
.footer-brand {
    max-width: 1200px;
    margin: 4rem auto 3rem;
    padding: 1rem;
    overflow: visible;
    position: relative;
    z-index: 1;
}
.footer-brand-text {
    font-size: clamp(3.5rem, 15vw, 13rem);
    font-weight: 900;
    background: linear-gradient(135deg,
        rgba(0, 122, 255, 0.2) 0%,
        rgba(90, 200, 250, 0.4) 25%,
        rgba(0, 122, 255, 0.25) 50%,
        rgba(90, 200, 250, 0.4) 75%,
        rgba(0, 122, 255, 0.2) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin: 0;
    padding: 0.5rem 0;
    letter-spacing: -0.05em;
    user-select: none;
    pointer-events: none;
    animation: shimmer 8s ease-in-out infinite;
    text-align: center;
    font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    font-style: italic;
    transform: skewY(-2deg);
    filter: drop-shadow(0 0 30px rgba(0, 122, 255, 0.3));
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #6e7280;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------
 * その他コンポーネント
 * ---------------------------------------------- */
.image-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin: 2rem 0; }
.gallery-item { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--soft-shadow); transition: all 0.3s ease; position: relative; }
.gallery-item:hover { transform: scale(1.05) translateY(-5px); box-shadow: var(--soft-shadow-hover); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); color: white; padding: 0.75rem; font-size: 0.875rem; text-align: center; }

.founder-section { display: flex; align-items: start; gap: 2rem; flex-wrap: wrap; }
.founder-image { width: 150px; height: 200px; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--soft-shadow); }
.founder-image img { width: 100%; height: 100%; object-fit: cover; }
.founder-content { flex: 1; min-width: 300px; }

/* ----------------------------------------------
 * モバイル対応 & レスポンシブ
 * ---------------------------------------------- */
@media (min-width: 768px) {
    .main-content { grid-template-columns: minmax(0, 1fr); }
    .content-with-image { grid-template-columns: 1fr 300px; }
    .content-with-image.reverse { grid-template-columns: 300px 1fr; }
    .content-with-image.reverse .image-container { order: -1; }
}

@media (min-width: 992px) {
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .seiun-title { display: none; }
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-saturate) var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-saturate) var(--glass-blur);
        border-left: 1px solid var(--glass-border-color);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: none;
        overflow-y: auto;
    }
    .nav-container.active { right: 0; }
    .nav-list {
        flex-direction: column;
        padding-top: var(--mobile-nav-padding-top);
        padding-bottom: 2rem;
    }
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        font-size: 1rem;
    }
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.2);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .overlay.active {
        display: block;
        opacity: 1;
    }
    .hero { margin-top: 0; }
    .hero h2 { font-size: 1.75rem; }
    .hero-content h2 {
        font-size: 1.5em;
    }
    .content-section { padding: 1.5rem; }
    .sidebar { order: 2; }
    .main-content { margin-top: 1rem; }
    .access-main {
        width: calc(100% - 2rem);
    }
    .page-top-card__inner {
        border-radius: 24px;
    }
    .page-top-card .page-title {
        font-size: clamp(2.35rem, 9vw, 2.9rem);
        word-break: keep-all;
        overflow-wrap: normal;
        line-break: strict;
    }
    .page-top-card .page-lead {
        margin-top: 0.75rem;
        max-width: 30rem;
    }
    .page-top-card__picker-list {
        flex-direction: column;
    }
    .page-top-card__link {
        width: 100%;
        min-width: 0;
    }
    .intro-layout,
    .access-split,
    .map-layout,
    .cta-section__layout {
        grid-template-columns: 1fr;
    }
    .founder-section { flex-direction: column; align-items: center; }
    .founder-image { margin-bottom: 1rem; }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .cta-section h2 {
        font-size: 1.5em;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .hero { margin-top: 0; }
    .hero h2 { font-size: 1.75rem; }
    .content-section { padding: 1.5rem; }
    .sidebar { order: 2; }
    .main-content { margin-top: 1rem; }
    .founder-section { flex-direction: column; align-items: center; }
    .founder-image { margin-bottom: 1rem; }
}

/* ----------------------------------------------
 * アクセシビリティ & 印刷用スタイル
 * ---------------------------------------------- */
:focus { outline: 2px solid var(--primary-blue-start); outline-offset: 2px; }
.nav-link:hover,
.nav-link:focus {
    background-color: #f0f0f0;
    text-decoration: underline;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 印刷用スタイル */
@media print {
    .header, .nav-container, .additional-nav, .sidebar, .footer {
        display: none;
    }

    .main-content {
        margin: 0;
        padding: 0;
    }

    .content-area {
        width: 100%;
    }
}

/* Custom style for trafic page timeline */
.timeline-trafic .timeline-item::before {
    left: -28px;
}

/* ----------------------------------------------
 * ダークモード対応
 * ---------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e0e0e0;
        --text-light: #a0a0a0;
        --glass-bg: rgba(30, 30, 30, 0.75);
        --glass-border-color: rgba(255, 255, 255, 0.1);
        --page-top-card-bg: linear-gradient(180deg, rgba(18, 24, 35, 0.94), rgba(12, 18, 28, 0.88));
        --page-top-card-border: rgba(255, 255, 255, 0.12);
        --page-top-card-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
        --page-top-card-lead: #c7d5e6;
        --page-top-card-picker-bg: rgba(255, 255, 255, 0.04);
        --page-top-card-picker-border: rgba(255, 255, 255, 0.08);
        --page-top-card-picker-label: #dce7f5;
        --page-top-card-link-bg: rgba(18, 28, 46, 0.85);
        --page-top-card-link-border: rgba(255, 255, 255, 0.1);
        --page-top-card-link-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
        --page-top-card-link-hover-border: rgba(90, 200, 250, 0.45);
        --page-top-card-link-hover-shadow: 0 16px 28px rgba(0, 0, 0, 0.3);
        --accent-card-bg: rgba(0, 122, 255, 0.14);
        --accent-card-border: var(--primary-blue-end);
    }

    body {
        background:
            radial-gradient(circle at top left, rgba(0, 122, 255, 0.14), transparent 28%),
            radial-gradient(circle at top right, rgba(90, 200, 250, 0.1), transparent 24%),
            #121212;
        color: var(--text-dark);
    }

    .content-section, .sidebar, .facility-card, .contact-card {
        background: rgba(30, 30, 30, 0.75);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .hero {
        color: #ffffff;
    }

    .footer {
        background: #0a0a0a;
        color: #d1d1d6;
    }

    .nav-link, .sidebar-links a, .additional-nav a {
        color: var(--text-dark);
    }

    .nav-link:hover, .sidebar-links a:hover {
        background: rgba(0, 122, 255, 0.2);
    }

    .contact-card {
        background: rgba(0, 122, 255, 0.1);
    }

    .timeline {
        border-left-color: var(--primary-gradient);
    }

    .timeline-item::before {
        border-color: #121212;
    }

    .definition-list-item dt,
    .definition-list-item dd {
        color: var(--text-dark);
    }

    .page-top-card__picker,
    .page-top-card__link,
    .page-top-card .page-button--secondary {
        color: var(--text-dark);
    }

    .stat-card,
    .illustration-panel,
    .pill {
        background: rgba(18, 28, 46, 0.82);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    }

    /* ── Route Cards dark mode ── */
    .route-card {
        background: rgba(18, 28, 46, 0.82);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    }

    .route-card__head {
        border-bottom-color: rgba(255, 255, 255, 0.07);
    }

    .route-card__title {
        color: #e5eefb;
    }

    .route-step-label {
        color: #dce7f5;
    }

    .route-via-label {
        color: #7a99be;
    }

    .route-sub {
        background: rgba(255, 255, 255, 0.07);
        color: #7a99be;
    }

    .route-dot {
        background: rgba(18, 28, 46, 0.9);
    }

    .route-card__note {
        color: #7a99be;
    }

    .bus-route {
        background: rgba(0, 122, 255, 0.1);
        border-color: rgba(0, 122, 255, 0.18);
    }

    .bus-route__name {
        color: #dce7f5;
    }

    .content-section--soft {
        background: linear-gradient(135deg, rgba(16, 24, 36, 0.94), rgba(14, 20, 30, 0.96));
    }

    .stat-card__value,
    .illustration-panel__title {
        color: var(--text-dark);
    }

    .stat-card__sub,
    .illustration-panel__text {
        color: #b7c4d6;
    }

    .page-top-card .page-button--secondary {
        background: rgba(18, 28, 46, 0.85);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    }

    .image-container--map iframe {
        filter: invert(90%) hue-rotate(180deg);
    }
}


/* ----------------------------------------------
 * サブナビ (nav-subnav / additional-nav) 制御
 * ---------------------------------------------- */
/* デスクトップ: nav-subnavを非表示 */
@media (min-width: 769px) {
    .nav-subnav { display: none; }
}

/* モバイル: additional-navを非表示、nav-subnavをハンバーガー内に表示 */
@media (max-width: 768px) {
    .additional-nav { display: none; }
    .nav-subnav {
        border-top: 2px solid rgba(0,0,0,0.06);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    .nav-subnav-label {
        display: block;
        padding: 0.5rem 2rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-light);
    }
    .nav-subnav a {
        display: block;
        padding: 0.75rem 2rem;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        transition: color 0.2s;
    }
    .nav-subnav a:hover { color: var(--primary-blue-start); }
}
