.main-nav.container-fluid {
    height: 80px;
    position: relative;
}
.main-nav.container-fluid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("image/menu_back.png") center / contain repeat-x;
    transform: scaleY(-1);
    z-index: 0;
    pointer-events: none;
}
.main-nav.container-fluid > .navbar {
    height: 100%;
}
ul.main-nav {
    flex: 1 1 auto;
    justify-content: space-between;
    height: 100%;
    position: relative;
}
ul.main-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 1px solid #c7c7c7;
    border-right: 1px solid #c7c7c7;
    z-index: 2;
    pointer-events: none;
}
ul.main-nav .nav-link {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    color: #fff;
    position: relative;
    z-index: 1;
}
ul.main-nav .nav-link:visited,
ul.main-nav .nav-link:focus {
    color: #fff;
}
ul.main-nav .nav-link:hover {
    color: #ffe08a;
}
ul.main-nav .nav-link.active {
    color: #ffe08a;
    background-color: rgba(0,0,0,.3);
}
ul.main-nav .nav-item + .nav-item {
    margin-left: 0;
}
ul.main-nav .nav-item {
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    z-index: 1;
}
ul.main-nav .nav-item + .nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #c7c7c7;
    z-index: 2;
}
.navbar-brand {
    flex: 0 0 50%;
    max-width: 50%;
}
.navbar-brand img {
    max-width: 100%;
    height: auto;
}
@media (min-width: 992px) {
    .navbar {
        justify-content: space-between;
    }
    .main-nav.container-fluid {
        margin-top: 0.5rem;
    }
}
@media (max-width: 992px) {
    .top-nav.container-fluid,
    .main-nav.container-fluid {
        display: none;
    }
    .navbar-brand {
        flex: 0 0 100%;
        max-width: 80%;
    }
}
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1039;
}
.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 1040;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.drawer-panel .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #c7c7c7;
}
.drawer-open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}
.drawer-open .drawer-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.top-nav.container-fluid {
    height: 80px;
    position: relative;
}
.top-nav.container-fluid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("image/menu_back.png") center / contain repeat-x;
    z-index: 0;
    pointer-events: none;
}
.top-nav.container-fluid > .top-nav {
    height: 100%;
}
nav.top-nav > ul {
    flex: 1 1 auto;
    justify-content: space-between;
    height: 100%;
    position: relative;
}
nav.top-nav > ul::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 1px solid #c7c7c7;
    border-right: 1px solid #c7c7c7;
    z-index: 2;
    pointer-events: none;
}
nav.top-nav .nav-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    z-index: 1;
}
.top-nav-item.border-left {
    border-left: none;
}
nav.top-nav .nav-item + .nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #c7c7c7;
    z-index: 2;
}
nav.top-nav .nav-link {
    padding: 0.5rem 1rem;
    color: #fff;
    position: relative;
    z-index: 1;
}
nav.top-nav .nav-link:visited,
nav.top-nav .nav-link:focus {
    color: #fff;
}
nav.top-nav .nav-link:hover {
    color: #ffe08a;
}
nav.top-nav .nav-link.active {
    color: #ffe08a;
    background-color: rgba(0,0,0,.3);
}

.js-youtube-player iframe {
    width: 100%;
    height: 100%;
}

body {
    text-align: justify;
    text-justify: inter-ideograph;
}

.compact-nav {
    background: #fff;
    border-bottom: 1px solid #c7c7c7;
    overflow-anchor: none;
}
.compact-nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.compact-nav-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.compact-nav-brand img {
    height: 36px;
    width: auto;
}
.compact-nav .nav-link {
    padding: 0.4rem 0.75rem;
    color: #333;
    font-size: 0.9rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
}
.compact-nav-list {
    flex: 1;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    flex-wrap: nowrap;
}
.compact-nav-list .nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: rgba(0,0,0,.3);
}

@media (min-width: 992px) {
    .sticky-top {
        position: static;
    }
    .compact-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        display: none;
    }
    body.compact-nav-visible .compact-nav {
        display: block;
    }
    body.compact-nav-visible #site-header header {
        opacity: 0;
        pointer-events: none;
        overflow-anchor: none;
    }
}
@media (max-width: 991px) {
    #site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        padding-top: env(safe-area-inset-top);
    }
    body#top main,
    body#top .js-jumbotron-media {
        overflow-anchor: none;
    }
    .compact-nav {
        display: none !important;
    }
    .section-title {
        font-size: 1.5rem;
    }
}

.card-title {
    padding: 0.25rem 0;
    margin-bottom: 0;
}
.card-body {
    padding: 0.5rem 0.75rem;
    text-align: center;
}
.video-thumb {
    position: relative;
    display: block;
}
.video-thumb::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
.video-thumb::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
    pointer-events: none;
    z-index: 1;
}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1045;
}
.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.top-nav-mobile-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.25rem;
}
.top-nav-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 工事状況テーブル（取得元と同じ見た目） */
#progress-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
#progress-table .progress-fetched-table,
#progress-table table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    font-size: 0.875rem;
    background-color: #fff;
}
#progress-table .progress-fetched-table th,
#progress-table .progress-fetched-table td,
#progress-table table th,
#progress-table table td {
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    text-align: left;
}
#progress-table .progress-fetched-table thead th,
#progress-table table thead th {
    background-color: #e9ecef;
    font-weight: 600;
    color: #212529;
}
#progress-table .progress-fetched-table tbody tr:nth-of-type(even),
#progress-table table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}
#progress-table .progress-fetched-table tbody tr:hover,
#progress-table table tbody tr:hover {
    background-color: #e9ecef;
}
#progress-table .progress-fetched-table a,
#progress-table table a {
    color: #595858;
    text-decoration: none;
}
#progress-table .progress-fetched-table a:hover,
#progress-table table a:hover {
    color: #003d82;
}

/* PDFリンク：アイコン付き */
#progress-table .progress-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
#progress-table .progress-pdf-link::before {
    font-family: "FontAwesome";
    content: "\f1c1";
    padding-right: 5px;
    color: #aa0000;
    display: inline-block;
    width: 1em;
    height: 1.2em;
    vertical-align: middle;
}

/* NEWマーク */
#progress-table .progress-new {
    display: inline-block;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15em 0.45em;
    border-radius: 3px;
    margin-left: 0.25rem;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
