/* ============================================
   SINGLE ROUTE (記事詳細)
============================================ */

/* ARTICLE HERO */
.article-hero {
    padding-top: 64px; position: relative;
    height: 560px; overflow: hidden;
    display: flex; align-items: flex-end;
}
.article-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.article-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(5,5,5,.88) 0%, rgba(5,5,5,.45) 45%, rgba(5,5,5,.15) 100%);
}
.article-hero-content {
    position: relative; z-index: 2;
    padding: 0 var(--pad) 52px;
    width: 100%; max-width: 820px;
}
.article-hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.article-area-badge {
    font-family: var(--font-en); font-size: 10px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--white); background: var(--red);
    padding: 3px 10px; border-radius: 2px;
}
.article-tags { display: flex; gap: 6px; }
.article-tag {
    font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.35);
    padding: 2px 9px; border-radius: 20px;
}
.article-hero-title {
    font-size: clamp(24px, 3.5vw, 40px); font-weight: 900;
    color: var(--white); line-height: 1.3; letter-spacing: -.5px;
    margin-bottom: 20px;
}
.article-hero-stats { display: flex; gap: 24px; }
.article-hero-stat {
    display: flex; align-items: center; gap: 7px;
    font-family: var(--font-en); font-size: 13px; font-weight: 700;
    color: rgba(255,255,255,.8);
}
.article-hero-stat svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--red); }

/* INFO BAR */
.info-bar {
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 24px var(--pad);
    display: flex; gap: 40px; flex-wrap: wrap;
}
.info-item { display: flex; flex-direction: column; gap: 3px; }
.info-item-label {
    font-family: var(--font-en); font-size: 9px; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--sub);
}
.info-item-value {
    font-family: var(--font-en); font-size: 18px; font-weight: 900;
    color: var(--text); line-height: 1;
}
.info-item-unit { font-size: 11px; font-weight: 600; color: var(--sub); margin-left: 2px; }
.info-item-value.highlight { color: var(--red); }

.info-bar-note {
    padding: 10px var(--pad);
    font-size: 11px;
    color: var(--sub);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

/* LAYOUT */
.article-layout {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 64px; padding: 64px var(--pad); align-items: start;
}
.article-body h2 {
    font-size: 20px; font-weight: 900;
    letter-spacing: -.3px; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 2px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.article-body h2::before {
    content: ''; display: block; width: 4px; height: 20px;
    background: var(--red); border-radius: 2px; flex-shrink: 0;
}
.article-body p {
    font-size: 15px; line-height: 1.9; color: #333; margin-bottom: 24px;
}
.article-overview, .article-checkpoints, .article-gallery, .article-practical {
    margin-bottom: 48px;
}

/* CHECKPOINTS */
.checkpoints { margin-bottom: 0; }
.checkpoint { display: grid; grid-template-columns: 48px 1fr; gap: 0 20px; }
.cp-line { display: flex; flex-direction: column; align-items: center; }
.cp-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--white); border: 2.5px solid var(--red);
    flex-shrink: 0; margin-top: 3px; position: relative; z-index: 1;
}
.cp-dot.start, .cp-dot.goal { background: var(--red); }
.cp-connector { flex: 1; width: 2px; background: var(--border); margin: 4px 0; }
.checkpoint:last-child .cp-connector { display: none; }
.cp-body { padding-bottom: 36px; }
.checkpoint:last-child .cp-body { padding-bottom: 0; }
.cp-num {
    font-family: var(--font-en); font-size: 9px; font-weight: 800;
    letter-spacing: 1.5px; color: var(--red);
    text-transform: uppercase; margin-bottom: 4px;
}
.cp-title { font-size: 16px; font-weight: 900; letter-spacing: -.2px; margin-bottom: 8px; }
.cp-desc { font-size: 14px; color: var(--sub); line-height: 1.75; }
.cp-body img {
    width: 100%; height: 300px; object-fit: cover;
    border-radius: 6px; margin-top: 14px; display: block;
}
.cp-img-credit {
    font-size: 11px; color: var(--sub);
    margin-top: 6px; text-align: right;
    letter-spacing: .2px;
}
.cp-img-credit a {
    color: var(--text); text-decoration: underline;
    transition: color .15s;
}
.cp-img-credit a:hover { color: var(--red); }

/* PHOTO GALLERY */
.photo-gallery {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.photo-gallery img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    border-radius: 4px; display: block;
    transition: opacity .2s, transform .2s; cursor: pointer;
}
.photo-gallery img:hover { opacity: .88; transform: scale(1.02); }

/* LIGHTBOX */
.lightbox {
    display: flex; position: fixed; inset: 0; z-index: 1000;
    background: rgba(5,5,5,.92); backdrop-filter: blur(8px);
    align-items: center; justify-content: center; gap: 16px;
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity .3s, visibility .3s;
}
.lightbox.open { visibility: visible; opacity: 1; pointer-events: auto; }
.lightbox-img {
    max-width: 80vw; max-height: 84vh; object-fit: contain;
    border-radius: 4px; display: block;
    transform: scale(.92);
    transition: opacity .25s, transform .4s cubic-bezier(.25,.46,.45,.94);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-img.switching { opacity: 0; }
.lightbox-close {
    position: fixed; top: 20px; right: 24px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 50%; color: var(--white);
    font-size: 20px; font-weight: 300; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-nav {
    width: 44px; height: 44px; flex-shrink: 0;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 50%; color: var(--white);
    font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-counter {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-en); font-size: 12px; font-weight: 700;
    color: rgba(255,255,255,.5); letter-spacing: 2px;
}

/* ROUTE MAP */
.route-map {
    width: 100%; height: 340px;
    border-radius: 8px; overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--border);
    margin-bottom: 48px;
}
.route-map iframe {
    width: 100%; height: 100%;
    border: 0; display: block;
}

/* CHECKPOINT EXTERNAL LINK */
.cp-title-link {
    color: var(--text); text-decoration: none;
    border-bottom: 1.5px solid var(--red);
    padding-bottom: 1px;
    transition: color .2s;
    display: inline-flex; align-items: center; gap: 5px;
}
.cp-title-link:hover { color: var(--red); }
.cp-ext-icon {
    font-size: 11px; color: var(--red);
    font-weight: 600;
    font-family: var(--font-en);
}

/* PRACTICAL INFO */
.article-practical .practical-wrap {
    background: var(--bg2); border-radius: 8px; padding: 32px;
}
.article-practical .practical-wrap h3 {
    font-size: 14px; font-weight: 900;
    letter-spacing: -.1px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.article-practical .practical-wrap h3::before {
    content: ''; display: block; width: 3px; height: 14px;
    background: var(--red); border-radius: 2px;
}
.practical-table { width: 100%; border-collapse: collapse; }
.practical-table tr { border-bottom: 1px solid var(--border); }
.practical-table tr:last-child { border-bottom: none; }
.practical-table th {
    font-size: 12px; font-weight: 700;
    color: var(--sub); text-align: left;
    padding: 12px 16px 12px 0;
    width: 110px; vertical-align: top; white-space: nowrap;
}
.practical-table td {
    font-size: 13px; color: var(--text); padding: 12px 0; line-height: 1.6;
}

/* SIDEBAR */
.sidebar { position: sticky; top: 84px; }
.sidebar-card {
    border: 1.5px solid var(--border); border-radius: 8px;
    overflow: hidden; margin-bottom: 24px;
}
.sidebar-card-head { background: var(--red); padding: 16px 20px; }
.sidebar-card-head-label {
    font-family: var(--font-en); font-size: 9px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,.65); margin-bottom: 4px;
}
.sidebar-card-head-title { font-size: 14px; font-weight: 900; color: var(--white); line-height: 1.4; }
.sidebar-card-body { padding: 20px; }
.sidebar-stat {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--sub); }
.sidebar-stat-label svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }
.sidebar-stat-value { font-family: var(--font-en); font-size: 14px; font-weight: 900; color: var(--text); }

/* TOC */
.toc {
    border: 1.5px solid var(--border); border-radius: 8px;
    padding: 20px; margin-bottom: 24px;
}
.toc-title {
    font-family: var(--font-en); font-size: 10px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--sub); margin-bottom: 14px;
}
.toc-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.toc-list a {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600;
    color: var(--sub); text-decoration: none;
    padding: 6px 8px; border-radius: 4px;
    transition: color .15s, background .15s;
}
.toc-list a:hover { color: var(--red); background: #FFF5F5; }
.toc-list a::before {
    content: ''; display: block; width: 4px; height: 4px;
    border-radius: 50%; background: var(--border); flex-shrink: 0;
}
.toc-list a:hover::before { background: var(--red); }

.share-box { border: 1.5px solid var(--border); border-radius: 8px; padding: 20px; }
.share-box-title {
    font-family: var(--font-en); font-size: 10px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--sub); margin-bottom: 12px;
}
.share-btns { display: flex; gap: 8px; }
.share-btn {
    flex: 1; padding: 9px 0; border-radius: 4px;
    border: 1.5px solid var(--border);
    font-size: 11px; font-weight: 800;
    text-decoration: none; text-align: center;
    color: var(--sub); transition: all .2s;
}
.share-btn:hover { border-color: var(--red); color: var(--red); }

/* RELATED ROUTES */
.related {
    background: var(--bg2); border-top: 1.5px solid var(--border);
    padding: 80px var(--pad);
}
.related-head { margin-bottom: 36px; }
.related-label {
    font-family: var(--font-en); font-size: clamp(32px, 4vw, 48px);
    font-weight: 900; color: var(--text); letter-spacing: .02em;
    display: block; line-height: 1;
}
.related-label::after {
    content: ''; display: block; width: 40px; height: 2.5px;
    background: var(--red); margin-top: 10px; margin-bottom: 8px;
}
.related-title { font-size: 13px; font-weight: 500; color: var(--sub); }
.related-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.rel-card {
    text-decoration: none; color: var(--text);
    background: var(--white); border-radius: 6px;
    overflow: hidden; border: 1px solid var(--border);
    transition: transform .25s, box-shadow .25s; display: block;
}
.rel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.09); }
.rel-card-img-wrap { overflow: hidden; }
.rel-card-img {
    width: 100%; height: 160px; object-fit: cover; display: block;
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.rel-card:hover .rel-card-img { transform: scale(1.04); }
.rel-card-body { padding: 16px; }
.rel-card-tags { display: flex; gap: 5px; margin-bottom: 6px; }
.rel-tag {
    font-size: 9px; font-weight: 700;
    color: var(--red); border: 1px solid var(--red);
    padding: 1px 7px; border-radius: 20px;
}
.rel-card-title {
    font-size: 15px; font-weight: 800; line-height: 1.45;
    margin-bottom: 10px; letter-spacing: -.1px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; gap: 48px; }
    .sidebar { position: static; }
    .sidebar-card, .share-box { max-width: 480px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .article-hero { height: 420px; }
    .article-hero-title { font-size: 22px; }
    .article-hero-stats { gap: 16px; flex-wrap: wrap; }
    .info-bar { gap: 24px; }
    .article-layout { padding: 40px var(--pad); gap: 20px; }
    .photo-gallery { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: 1fr; }
    .related { padding: 60px var(--pad); }
    .route-map { height: 280px; }
    /* Route Summary（SP）: 項目間隔を他と揃える */
    .sidebar-card-body { padding: 14px 18px; }
    .sidebar-stat { padding: 7px 0; }
    .sidebar-stat-value { font-size: 13px; }
    /* Lightbox: ナビを画像上に絶対配置（矢印見切れ防止） */
    .lightbox { gap: 0; }
    .lightbox-img { max-width: 92vw; }
    .lightbox-nav {
        position: absolute; top: 50%; transform: translateY(-50%);
        width: 40px; height: 40px; z-index: 2;
    }
    #lbPrev { left: 10px; }
    #lbNext { right: 10px; }
}
@media (max-width: 480px) {
    .article-hero { height: 360px; }
    .photo-gallery { grid-template-columns: 1fr; }
    .cp-body img { height: 200px; }
}
