@charset "utf-8";

.main {
    margin: 0 auto;
    width: 1000px;

}

#top #header_nav_access a {
    background-position: 0 -60px;
    pointer-events: none;
}

.main_image {
    background-image: url(../images/access/sky.webp);
    background-position: center;
    background-size: cover;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.main_image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0 0 450px 450px/0 0 450px 450px;
    box-shadow: 0 0 0 9999px rgba(255, 255, 255, 0.7);
}

.main_image.is-show {
    opacity: 1;
}

.page_title {
    margin-top: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid #457703;
    line-height: 1.8;
    width: 150px;
}

.root,
.root_JR {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.root.is-show,
.root_JR.is-show {
    opacity: 1;
    transform: translateY(0);
}

.root_JR {
    max-width: 1000px;
    margin: 20px auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 0;

}

.root_JR h2 {
    border-bottom: 2px solid #457703;
    line-height: 1.8;
    width: 370px;

}

.info_box {
    border-radius: 20px;
    background-color: #ebebeb;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 7px #575353;
    padding: 25px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.info_box.is-show {
    opacity: 1;
    transform: translateY(0);
}

.info_box iframe {
    width: 100%;
    border-radius: 20px;
}

.info_box dl strong {
    color: #457703;
}

.info_box dl dt {
    color: #457703;

}

.root h2 {
    margin: 30px 0;
    border-bottom: 2px solid #457703;
    line-height: 1.8;
    width: 250px;
}

.root_container {
    display: flex;
    justify-content: space-around;
    max-width: 1000px;
    align-items: center;
    margin: 0;
}

#root_box,
#root_info,
#target_box {

    box-sizing: border-box;
    background-color: #ebebeb;
    font-family: 'Noto Sans JP', sans-serif;
}

.root_container_namerikakwaIC {
    display: flex;
    justify-content: space-around;
    max-width: 1000px;
    align-items: center;
    margin: 20px auto;
}

#root_box_namerikawaIC,
#root_info_namerikawaIC,
#target_box_namerikawaIC {
    box-sizing: border-box;
    background-color: #ebebeb;
    font-family: 'Noto Sans JP', sans-serif;
}

.root_container_namerikakwa {
    display: flex;
    justify-content: space-around;
    max-width: 1000px;
    align-items: center;
    margin: 20px auto;
}

#root_box_namerikawa,
#root_info_namerikawa,
#target_box_namerikawa {
    box-sizing: border-box;
    background-color: #ebebeb;
    font-family: 'Noto Sans JP', sans-serif;
}

.root_container_baseball {
    display: flex;
    justify-content: space-around;
    max-width: 1000px;
    width: 100%;
    align-items: center;
    margin: 20px auto;
}

#root_box_baseball,
#root_info_baseball,
#target_box_baseball {
    box-sizing: border-box;
    background-color: #ebebeb;
    font-family: 'Noto Sans JP', sans-serif;
}

[id^="root_box"] {
    width: 200px;
    height: 90px;
    font-weight: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

[id^="root_box"]:after {
    content: "";
    width: 66%;
    left: 200px;
    height: 2px;
    background-color: #000;
    display: inline-block;
    position: absolute;
}

[id^="root_info"] {
    width: 200px;
    height: 90px;
    font-weight: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

[id^="root_info"]:after {
    content: "";
    width: 67%;
    left: 200px;
    height: 2px;
    background-color: #000;
    display: inline-block;
    position: absolute;
}

[id^="target_box"] {
    width: 200px;
    height: 90px;
    font-weight: 300;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container_JR {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
}

#root_container_JR,
#root_target_box,
#root_target {
    box-sizing: border-box;
    width: 200px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 300;
    background-color: #ebebeb;
    font-family: 'Noto Sans JP',
        sans-serif;
}

#root_container_JR {
    width: 200px;
    height: 90px;

}

#root_target_box {
    width: 200px;
    height: 90px;
}

#root_target {
    width: 200px;
    height: 90px;
}


[id^="target_box"],
#root_target {
    width: 200px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    font-weight: 300;
    display: grid;
}

.root_JR {
    max-width: 1000px;
}

.root_spot,
.root_bus {
    width: 135px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    font-weight: 300;
}

.root_bus::after,
.root_spot::after {
    content: "";
    bottom: -10px;
    top: 20px;
    width: 100%;
    right: 0;
    align-items: center;
    height: 2px;
    background-color: #000;
    display: inline-block;
    position: absolute;
}

.sightseeing {
    display: flex;
    justify-content: center;
    gap: 20px;

    h3 {
        color: #457703;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 22px;
        font-weight: 400;
        margin: 0 0 20px;
        padding-bottom: 10px;
        border-bottom: 1px dotted #457703;
    }
    h4 {
        font-weight: 500;
        font-size: 14px;
    }
}

.sightseeing ul {
    flex-wrap: nowrap;      /* ← 追加：折り返し禁止 */
    width: max-content;
    flex-shrink: 0;
     display: flex;
     gap: 16px;
}

.sightseeing ul li {
    flex: 0 0 180px;
    flex-shrink: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 7px #575353;
    overflow: hidden;
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sightseeing ul li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px #575353;
}

.sightseeing li img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    margin: 0;
}

.sightseeing ul li a {
    text-decoration: none;
    color: #000;
    font-family: 'Noto Sans JP', sans-serif;
    padding-top: 10px;
}

.sightseeing ul li p {
    font-size: 12px;
    font-weight: 300;
    color: #666;
    padding: 4px 12px 12px;
    margin: 0;
    line-height: 1.6;
}

.sightseeing_toyama {

    width: 100%;       
    max-width: 1000px  ; 
    overflow: hidden;
    
}

.sightseeing_track {
    display: flex;
    align-items: flex-start;
    gap: 16px;  
    animation: auto-scroll-t 30s linear infinite;
}

.sightseeing_toyama {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
}


.sightseeing_toyama:hover .sightseeing_track {
    animation-play-state: paused;
}

@keyframes auto-scroll-h {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes auto-scroll-t {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}



@media (prefers-reduced-motion: reduce) {
    @media (prefers-reduced-motion: reduce) {
    .sightseeing ul { animation: none; }
}
}