/* リセット&基本スタイル */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');

* {
    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: #333;
    background-color: #fff;
}

.container {
    max-width: 50rem;
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー */
header {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-bottom: 40px;
    background-color: #190B90;
    color: #fff;
}

header h1 {
    margin: 0;

    font-style: normal;
    font-weight: 400;
    font-size: 4rem;
    padding: 0;
    padding: 1rem 1rem 4rem 1rem;
}

header h1 span {
    font-size: 1.2rem;
}

/* コンテンツセクション */
h1 {
    background-color: #190B90;
    color: white;
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}
section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 8px;
}

section p {
    font-size: 1em;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* スライドショー（CSS Scroll Snap） */
.slideshow {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: #005092 #e0e0e0;
    position: relative;
}

/* スクロールバーのスタイル（WebKit） */
.slideshow::-webkit-scrollbar {
    height: 12px;
}

.slideshow::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 6px;
}

.slideshow::-webkit-scrollbar-thumb {
    background: #005092;
    border-radius: 6px;
}

.slideshow::-webkit-scrollbar-thumb:hover {
    background: #003a70;
}

/* スワイプインジケーター */
.slideshow::before {
    content: '→';
    position: absolute;
    bottom: 60px;
    right: 20px;
    color: #999;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 10;
}

/* 各スライド */
figure {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin: 2rem 0;

}

figure img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

/* キャプション */
figure figcaption {
    padding: 12px 0;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.6em;
    }

    .text-content h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 30px 0;
    }
}

/* 路線図風ナビゲーション */
nav {
    margin: 40px auto 60px;
    max-width: 400px;
    padding: 20px;
    border-radius: 8px;
}

nav h2 {
    background-color: #005092; /* U8のテーマカラー */
    padding: 8px 12px;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    vertical-align: bottom;;
}

#U8 {
    font-size: 3rem;
    font-weight: 800;
    background-color: #005092;
    color: #fff;
    padding: 4px 8px;
    display: inline-block;
}

/* 路線図リスト（縦並び） */
nav ul {
    list-style: none;
    position: relative;
    padding-left: 30px;
}

/* ネストされたリスト */
nav ul ul {
    padding-left: 20px;
    margin-top: 8px;
}

nav ul ul::before {
    display: none;
}

/* 路線の縦線 */
nav ul::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 22px;
    background-color: #005092;
    border-radius: 10px;
}

nav li {
    position: relative;
    margin: 18px 0;
}

/* ネストされたリストアイテム */
nav ul ul li {
    margin: 6px 0;
}

nav ul ul li::before {
    display: none;
}

/* 駅のノード（丸） */
nav li::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 1rem;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-color: #fff;
    border: 2px solid #005092;
    border-radius: 50%;
    z-index: 1;
}

/* 駅名リンク */
nav li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    padding: 4px 0;
    margin-left: 0.5rem;
}

/* ネストされたリストのリンク */
nav ul ul li a {
    font-size: 0.85rem;
    font-weight: 400;
    color: #555;
    margin-left: 0.3rem;
}

nav li a:hover {
    font-weight: 700;
}

nav ul ul li a:hover {
    font-weight: 600;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    nav {
        max-width: 100%;
    }
}
