@charset "utf-8";

body {
    font-family: "ヒラギノ角ゴ Pro W3", "メイリオ", "Meiryo", "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS P Gothic", Verdana, Arial, Helvetica, sans-serif;
    font-size: 96.8%;
    color: #000;
    line-height: 1.67em;
    letter-spacing: normal;
}

h2,
h3 {
    font-size: 1.1rem;
    margin: 0;
}

/* 地図 */
#digital-map {
    position: relative;
}

#map {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 100%;
    border: 2px solid #000 !important;
    background-color: #fff !important;
}

/* 上部ヘッダー */
.header-menu,
.nest-header-menu,
.keyword-search-box {
    position: absolute;
    z-index: 500;
    margin: 16px auto;
    top: 16px;
    right: 0;
    left: 0;
    display: flex;
    list-style: none;
    justify-content: center;
}

.header-menu-list,
.nest-header-menu-list,
.keyword-search-wrapper {
    display: flex;
    gap: 8px;
    margin: 0 16px;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}

.icon>svg,
.button-icon>img,
.button-icon>svg {
    width: 24px;
    height: 24px;
}

.button-img {
    width: 24px;
    height: 24px;
    mask-size: 100% 100%;
}

/* 左サイドメニュー */
.left-side-menu {
    position: absolute;
    left: 0;
    z-index: 1001;
    height: 100%;
    background: #fff;
    overflow-x: auto;
}

#route-detail,
#spot-detail {
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.2);
}

.route-detail-list .description,
.spot-detail-list .title,
#route-detail .route-info,
#spot-detail .spot-detail-item {
    padding: 12px 16px 12px 16px;
    box-sizing: border-box;
}

.description .description-paragraph {
    padding-top: 8px;
}

.list-item {
    margin-top: -1px;
}

.list-item .title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.route-info {
    margin-bottom: 40px;
}

.spot-image-list ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: 111px;
    overflow: hidden;
    gap: 9px;
    padding: 0;
    margin: 8px 8px;
}

.spot-image-wrapper {
    width: 30%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.spot-image {
    height: 100%;
    max-width: auto !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.spot-image:hover {
    opacity: 50%;
}

.spot-image-more:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #000;
    position: absolute;
    opacity: 60%;
    z-index: 100;
}

.spot-image-more:hover {
    opacity: 50%;
    cursor: pointer;
}

.spot-image-more:after {
    content: 'もっと見る';
    color: #fff;
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 101;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.spot-detail-item {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    border-top: 1px solid #B7B7B7;
    border-bottom: 1px solid #B7B7B7;
    margin-bottom: -1px;
}

.spot-detail-item.title {
    font-size: 1rem;
    border: none;
}

.route-detail-item {
    font-size: 0.8rem;
}

.thumbnail.guide-image.route-detail-item {
    margin-bottom: 8px;
}

.left-side-wrapper {
    position: relative;
    margin-bottom: 80px;
}

.left-side-wrapper>ul {
    list-style: none;
    padding: 0;
}

.close {
    display: flex;
    justify-content: flex-end;
    margin-right: 8px;
}

.close>span {
    position: fixed;
    top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 100%;
    background-color: #4B5563;
    z-index: 2;
}

.close>span:hover {
    opacity: 0.8;
}

.thumbnail {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.thumbnail>img {
    position: absolute;
    width: 100%;
    max-width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-list>ul {
    list-style: none;
    padding: 0;
}

.search-route-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 40px;
}

.search-route {
    text-decoration: none;
    background-color: #E50A58;
    border-radius: 25px;
    padding: 8px 32px;
    color: #fff;
    font-weight: bold;
}

.search-route:hover {
    text-decoration: none;
    color: #fff;
    opacity: 0.7;
}

.search-route:visited {
    color: #fff;
}

.keyword-search-wrapper {
    width: 70%;
}

.keyword-box {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px;
}

.undo-icon,
.keyword-search-icon {
    border-color: oklch(55.3% 0.013 58.071) !important;
}

.undo-icon>svg path,
.keyword-search-icon>svg path {
    fill: oklch(55.3% 0.013 58.071);
    stroke: oklch(55.3% 0.013 58.071);
}

.keyword-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.2);
    border-radius: 5px
}

#inputKeywordSearch {
    width: 90%;
    border: none;
    padding: 17.4px;
    border-radius: 5px 0 0 5px
}

#buttonKeywordSearch {
    width: 10%;
    min-width: 100px;
    border: none;
    background-color: #3d4040;
    color: #fff;
    font-weight: bold;
    padding: 16px;
    margin-left: -5px;
    border-radius: 0 5px 5px 0
}

.guide-detail-wrapper {
    padding-left: 16px;
    min-height: 8px;
    border-left: 4px solid oklch(85.7% 0.022 261.325);
}

.guide-title-wrapper {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.guide-title-wrapper::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 100%;
    border: 4px solid oklch(43.7% 0.022 261.325);
    box-sizing: border-box;
    margin-left: -5.5px;
    margin-right: 8px;
}

.guide-title {
    margin: 0;
    font-size: 14px;
}

.route-detail-guide:last-child .guide-detail-wrapper {
    border: none;
}

.guide-duration {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.url:before,
.related-link:before,
.address:before,
.open-hours:before,
.tel:before,
.guide-duration:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    background-repeat: no-repeat;
}

.url:before,
.related-link:before {
    background-image: url('../images/link.svg');
}

.open-hours:before {
    background-image: url('../images/hour.svg');
}

.tel:before {
    background-image: url('../images/tel.svg');
}

.address:before {
    background-image: url('../images/home.svg');
}

.duration-icon-1:before {
    background-image: url('../images/car.svg');
}

.duration-icon-2:before {
    background-image: url('../images/bike.svg');
}

.duration-icon-3:before {
    background-image: url('../images/walk.svg');
}

/* 表示制御 */
.hide {
    display: none;
    opacity: 0;
}

/* マップアイコン用スタイル */
.custom-marker {
    position: relative;
}

.custom-marker>.marker {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 2px solid;
    border-radius: 100% 100% 0% 100%;
    transform: rotate(45deg);
    padding: 4px;
}

.custom-marker>.marker>.marker-image {
    transform: rotate(-45deg);
    width: 25px;
    height: 25px;
    mask-size: 100% 100%;
    background-color: #666;
}

/* 画像ライブラリ */
.image-library {
    position: fixed;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 1010;
}

.overlay {
    position: absolute;
    background-color: #000;
    opacity: 0.6;
    width: 100%;
    height: 100%;
}

.library-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.main-image-wrapper {
    position: fixed;
    color: #fff;
    z-index: 1011;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.main-image {
    color: #fff;
    z-index: 1011;
    list-style: none;
    width: 80%;
    height: 80%;
    padding: 0;
}

.main-image li {
    width: 100%;
    height: 100%;
    position: relative;
}

.main-image img {
    max-height: 100%;
    max-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-library-handle {
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev>img,
.next>img {
    width: 64px;
    height: 64px;
}

.prev>img:hover,
.next>img:hover {
    opacity: 0.5;
}

.prev>img {
    transform: rotate(180deg);
}

/* SP */
@media screen and (max-width:767px) {

    h2,
    h3 {
        font-size: 1rem;
        margin: 0;
    }

    .left-1 {
        left: 0;
    }

    .left-side-menu {
        position: fixed;
        bottom: 0;
        width: 100%;
    }

    .left-side-wrapper {
        margin: 0;
    }

    .route-detail-list,
    .spot-detail-list {
        height: auto;
        background-color: transparent;
    }

    .route-detail-list .list,
    .spot-detail-list .list {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        margin: 8px 16px;
        padding-bottom: 8px;
    }

    .route-detail-list .list .list-item,
    .spot-detail-list .list .list-item {
        min-width: 230px;
        width: 55%;
        max-width: 250px;
        border-radius: 15px;
        background-color: #fff;
        box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.2);
    }

    .route-detail-list .thumbnail,
    .spot-detail-list .thumbnail {
        border-radius: 15px 15px 0 0;
    }

    .thumbnail>img {
        margin: 0;
    }

    .route-detail-list .close>span,
    .spot-detail-list .close>span {
        position: unset;
    }

    .list-item .title-wrapper .title-arrow {
        display: none;
    }

    .keyword-search-wrapper {
        width: 90%;
    }

    .thumbnail {
        height: 110px;
    }
}

/* PC */
@media screen and (min-width:768px) {
    #map.left {
        width: calc(100% - 400px);
        margin-left: 400px;
    }

    .left-1 {
        left: 401px;
    }

    .left-side-menu {
        top: 0;
        width: 400px;
    }

    #route-detail.hide,
    #spot-detail.hide {
        display: block;
        transform: translateX(-400px);
        transition: all 0.3s ease-in;
    }

    #route-detail,
    #spot-detail {
        transform: translateX(0px);
        transition: all 0.3s ease-in;
    }

    .spot-detail-list .title-wrapper {
        border-bottom: 1px solid #B7B7B7;
        margin: 0 8px;
    }

    .list-item .title-wrapper .title-arrow {
        border: 2px solid #B7B7B7;
        font-size: 1rem;
        border-radius: 100%;
        width: 24px;
        height: 24px;
        color: #B7B7B7;
    }

    .thumbnail {
        height: 150px;
    }
}

/* アイコンの色設定 */
.icon.category-2>.button-img,
.icon.category-5>.button-img,
.marker.category-2>.marker-image,
.marker.category-5>.marker-image {
    background-color: #e96b6b;
}

.icon.category-3>.button-img,
.icon.category-6>.button-img,
.marker.category-3>.marker-image,
.marker.category-6>.marker-image {
    background-color: #ef9354;
}

.icon.category-4>.button-img,
.icon.category-7>.button-img,
.marker.category-4>.marker-image,
.marker.category-7>.marker-image {
    background-color: #2a9d8f;
}

.icon.category-1>.button-img,
.icon.category-8>.button-img,
.marker.category-1>.marker-image,
.marker.category-8>.marker-image {
    background-color: #c09b0f;
}

.active .marker>.button-img,
.button-icon.active>.button-img,
.active .marker-image {
    background-color: #fff !important;
}

.icon.category-2,
.marker.category-2,
.icon.category-5,
.marker.category-5 {
    border: 2px solid #e96b6b !important;
}

.active .marker.category-2,
.active .marker.category-5,
.icon.category-2.active,
.icon.category-5.active {
    background-color: #e96b6b !important;
    border: 2px solid #fff !important;
    color: #fff;
}

.icon.category-3,
.marker.category-3,
.icon.category-6,
.marker.category-6 {
    border: 2px solid #ef9354 !important;
}

.active .marker.category-3,
.active .marker.category-6,
.icon.category-3.active,
.icon.category-6.active {
    background-color: #ef9354 !important;
    border: 2px solid #fff !important;
    color: #fff;
}

.icon.category-4,
.marker.category-4,
.icon.category-7,
.marker.category-7 {
    border: 2px solid #2a9d8f !important;
}

.active .marker.category-4,
.icon.category-4.active,
.active .marker.category-7,
.icon.category-7.active {
    background-color: #2a9d8f !important;
    border: 2px solid #fff !important;
    color: #fff;
}

.icon.category-1,
.marker.category-1,
.icon.category-8,
.marker.category-8 {
    border: 2px solid #c09b0f !important;
}

.active .marker.category-1,
.active .marker.category-8,
.icon.category-1.active,
.icon.category-8.active {
    background-color: #c09b0f !important;
    border: 2px solid #fff !important;
    color: #fff;
}