.breadcrumb {
    padding: 5px 20px;
    margin: 10px;
    font-size: 0.8em;
}
.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: var(--text-color);
}
.breadcrumb-list li {
    display: flex;
    align-items: center;
}
.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: var(--text-color);
}
.breadcrumb-list a {
    color: var(--text-color);
    text-decoration: none;
}
.breadcrumb-list a:hover {
    text-decoration: underline;
}
.breadcrumb-list .current {
    color: var(--text-light-gray);
}
.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.detail-cell {
    background: var(--base-color);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 画像表示 */
#gallery-images {
    width:100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    max-height:800px;
}
#gallery-images img {
    width: calc(50% - 20px);
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    object-fit: contain;
}
.gallery-video {
    margin: 30px 0;
}
.gallery-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
}

.error-message {
    text-align: center;
    padding: 100px 20px;
}
.error-message h1 {
    font-size: 3em;
    color: #dc3545;
    margin-bottom: 20px;
}

.navigation-container {
    width:90%;
    margin: 40px auto 0;
    padding: 0 20px;

}
.navigation-wrapper{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 120px;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.nav-item::after{
    content: '';
    background-color: rgba(255,255,255,.8);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

    border-radius: 10px;
}

.nav-item-backto{
    width:80%;
    height: 80px;
    display: inline-block;
    background: white;
    border-radius: 10px;
    padding: 0;
    margin:auto;
    color: #333;
    z-index: 1;
    text-align: center;
    vertical-align: middle;
    font-size:1.2em;
}

.nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.nav-item.prev {
    justify-content: flex-start;
}
.nav-item.next {
    justify-content: flex-end;
}
.nav-arrow {
    font-size: 3em;
    font-weight: bold;
    color: var(--main-color);
    padding: 0 15px;
    z-index: 1;
}
.nav-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    overflow: hidden;
    z-index: 1;
}
.nav-item.next .nav-content {
    flex-direction: row-reverse;
}
.nav-image {
    
    width: 75px;
    height: 75px;
    
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}
.nav-image img {
    object-fit: cover;
}
.nav-text {
    flex: 1;
    overflow: hidden;
}
.nav-item.next .nav-text {
    text-align: right;
}
.nav-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: bold;
}
.nav-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.nav-item-spacer {
    min-height: 180px;
}
@media (max-width: 768px) {
    .navigation-wrapper {
        grid-template-columns: 1fr;
    }
    .nav-item {
        min-height: 120px;
    }
    .nav-image {
        width: 100px;
        height: 100px;
    }
    .nav-arrow {
        font-size: 2em;
        padding: 0 10px;
    }
    .nav-title {
        font-size: 1em;
    }
}