:root {
    --primary-blue: #1886F2;
    --bg-light: #F8F9FA;
    --orange-accent: #FF7E33;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
}
a {
    text-decoration: none; /* 下線を消す */
}
.app-container {
    width: 100%;
    max-width: 450px;
    background: white;
    min-height: 100vh;
    padding-bottom: 100px;
    position: relative;
}

@media (min-width: 768px) {
    body {
        background-image: url('/images/backgraoud_photo.webp');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        display: block;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: inherit;
        filter: blur(20px) brightness(0.8) saturate(1.2);
        z-index: -1;
        transform: scale(1.1);
    }

    .app-container {
        max-width: 480px;
        margin: 40px auto;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        overflow: hidden;
        min-height: calc(100vh - 80px);
    }
    
    .bottom-nav {
        max-width: 480px;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* ヒーローエリア */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('/images/fvimg.svg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    position: relative;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.hero-title {
    font-size: 2rem;
    margin: 20px 0;
    line-height: 1.2;
}

.stats-row {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.stats-row img {
    object-position: center 3px;
}

.unit { font-size: 0.9rem; font-weight: normal; }
.date-text { font-size: 0.9rem; opacity: 0.8; margin-bottom: 30px; }

/* ステータスカード */
.status-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.route-info {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.route-thumb { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.route-text h3 { font-size: 1rem; }
.route-text p { font-size: 0.8rem; color: #666; }

.alert-bar {
    background: #FFF5F0;
    color: var(--orange-accent);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.alert-icon {
    display: flex;
    width: 16px;
    height: 16px;
    padding-bottom: 1px;
    justify-content: center;
    align-items: center;
    border-radius: 9999px;
    background: var(--color-orange-53, #F97316);
    color: var(--White, var(--color-white-solid, #FFF));
    text-align: center;
}
/* コンテンツセクション */
.content-section { padding: 20px; }
.section-title { font-size: 1.1rem; margin-bottom: 15px; }

.horizontal-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto; /* 横スクロールを許可 */
    white-space: nowrap; /* 子要素の改行を防ぐ */
    padding: 10px 20px 20px; /* 左右に余白を作ると綺麗に見えます */
    
    /* スクロールバーを非表示にする（任意：アプリ風にする場合） */
    -ms-overflow-style: auto; 
    scrollbar-width: auto;    
}
.horizontal-scroll::-webkit-scrollbar {
    display: block;
    height: 8px;
}
.horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1; /* スクロールバーの通り道の背景色 */
    border-radius: 10px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #ccc;    /* つまみ（動く部分）の色 */
    border-radius: 10px;
}
.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #999;    /* つまみに触れた時の色 */
}


.image-card {
    flex: 0 0 280px;

    height: 300px;
    border-radius: 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    color: white;
    scroll-snap-align: start;
}
.card-info img {
    margin: -9px 0px;
}

.main-card { background-image: url('/images/tokaido.svg'); }
.sub-card { background-image: url('/images/hokuriku.webp'); }

.badge-save { 
  position: absolute; 
  top: 15px; 
  right: 15px; 
  background: rgba(255,255,255,0.3); 
  padding: 3px 5px;
  border-radius: 50%; 
  width: 35px;
  height: 35px;
}
.rating { font-size: 0.8rem; font-weight: bold; }

/* リストアイテム */
.list-item {
    display: flex;
    gap: 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 15px;
}

.list-thumb { position: relative; width: 120px; }
.list-thumb img { width: 100%; height: 80px; border-radius: 10px; object-fit: cover; }
.tag { position: absolute; top: 5px; left: 5px; background: #444; color: white; font-size: 0.6rem; padding: 2px 6px; border-radius: 4px; }

.list-content h4 { font-size: 0.9rem; margin-bottom: 5px; }
.list-content p { font-size: 0.7rem; color: #777; line-height: 1.4; }
.list-footer { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.7rem; font-weight: bold; }
.link-blue { color: var(--primary-blue); }

/* ボトムナビ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 450px;
    background: rgba(255, 247, 237, 0.80);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 20px;
    border-top: 1px solid #eee;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}
@media (min-width: 768px) {
    .bottom-nav {
        max-width: 480px;
        bottom: 0px;
        border-radius: 10px 10px;
    }
}
.nav-item { display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; color: #999; }
.nav-item.active { color: #333; }
.nav-fab {
    background: var(--orange-accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    margin-top: -40px;
    box-shadow: 0 4px 10px rgba(255, 126, 51, 0.4);
    cursor: pointer;
}
[aria-disabled="true"] {
    background: gray; 
    box-shadow: 0 4px 10px rgba(43, 42, 42, 0.4);
}
#pocket-wrapper {
    bottom: 15%;
}

footer {
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    padding-bottom: 80px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}
footer p {
    font-size: 14px;
    color: #999;
}
