@charset "utf-8";

/*-----------------------------------------------------------
    discovery-area
-----------------------------------------------------------*/
.discovery-area {
    --aspect-discovery: 1398/1340;
    width: 100%;
    height: initial;
    /* aspect-ratio: 233/250; */
    aspect-ratio: var(--aspect-discovery);
    /* background: url(../img/bg-discovery.jpg) center/contain, no-repeat; */
    position: relative;
    margin-top: 0;
}

.discovery-area .scroll-hint-icon-wrap {
    z-index: 100;
}

/* #discovery .discovery-area {
    aspect-ratio: var(--aspect-discovery);
} */

#main:has(.discovery-modal-container.active) .cmn-other-btn-area {
    z-index: -1;
    position: relative;
}

#main:has(.discovery-modal-container.active) .discovery-area {
    z-index: auto;
}

.discovery-area .title-catch-wrap {
    display: flex;
    align-items: flex-start;
    position: absolute;
    width: var(--inner-wide);
    left: 50%;
    transform: translateX(-50%);
    top: 12%;
    container-type: inline-size;
    gap: 100px;
    justify-content: space-between;
}

/* #top .discovery-area .title-catch-wrap {
    justify-content: center;
} */

#discovery .discovery-area .title-catch-wrap {
    top: 5%;
}

.discovery-area .title-catch-wrap .section-title {
    flex-shrink: 0;
    margin: 0;
}

.discovery-area .title-catch-wrap .section-title .jp {
    font-size: clamp(3.8rem, 3.3cqw, 5.0rem);
    display: flex;
    align-items: center;
    gap: 10px;
}

.discovery-area .title-catch-wrap .section-title .jp img {
    width: clamp(3.4rem, 3.5cqw, 6.0rem);
}

.discovery-area .title-catch-wrap .basic-txt {
    text-shadow: var(--text-shadow-white);
    font-size: 1.6rem;
}

.discovery-area .discovery-sp-wrap {
    position: relative;
    z-index: 2;
}

.discovery-area .discovery-sp-top-wrap {
    position: initial;
    display: contents;
}

.discovery-area .discovery-bg-wrap {
    z-index: -1;
}

.discovery-bg-wrap {
    position: relative;
    width: 100%;
    height: initial;
    /* aspect-ratio: 233/250; */
    aspect-ratio: var(--aspect-discovery);
}

/* #discovery .discovery-bg-wrap {
    aspect-ratio: var(--aspect-discovery);
} */

#discovery .discovery-bg-wrap.is-top {
    display: none;
}

#top .discovery-bg-wrap.is-discovery {
    display: none;
}

.discovery-bg-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.discovery-block {
    position: absolute;
}

.discovery-modal-open {
    background-color: #fff;
    padding: clamp(20px, 1.3vw, 40px) clamp(12px, 0.9vw, 20px) clamp(15px, 1vw, 25px);
    border-radius: 8px;
    position: relative;
    transition: all .4s;
    border: 2px solid #fff;
    cursor: pointer;
    min-width: 140px;
    text-align: center;
}

.discovery-modal-open::after {
    content: "";
    display: inline-block;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: url(../img/icon-pin-orange.png) center/contain, no-repeat;
    width: 45px;
    height: 45px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-7px);
    }
}

.discovery-modal-open .discovery-material {
    color: #fff;
    display: inline-block;
    background-color: var(--navy);
    font-weight: bold;
    margin: 0 auto;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 16px;
    font-size: clamp(1.1rem, 1.0vw, 1.5rem);
    border-radius: 20px;
    white-space: nowrap;
}

.discovery-modal-open .discovery-product {
    font-weight: bold;
    font-size: clamp(1.3rem, 1.2vw, 1.7rem);
}



@media screen and (max-width: 768px) {
    .discovery-modal-open {
        white-space: nowrap;
    }
}


/*----- モーダル内のデザイン -----*/

/*モーダル本体の指定 + モーダル外側の背景の指定*/
.discovery-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: rgba(44, 75, 143, 0.8);
    padding: 40px 20px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    box-sizing: border-box;
    z-index: 3000;
    --gap: clamp(40px, 3vw, 60px);
}

/*モーダル本体の擬似要素の指定*/
.discovery-modal-container:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.discovery-modal-container.active {
    opacity: 1;
    visibility: visible;
}

/*モーダル枠の指定*/
.discovery-modal-body {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: clamp(720px, 90%, 1600px);
    container-type: inline-size;
}

/*モーダルを閉じるボタンの指定*/
.discovery-modal-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    width: var(--gap);
    height: var(--gap);
    font-size: 3cqw;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
}

/*モーダル内のコンテンツの指定*/
.discovery-modal-content {
    background: #fff;
    text-align: left;
    padding: clamp(40px, 3vw, 60px);
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--gap);
    align-items: flex-start;
}

.discovery-modal-img {
    width: 40%;
}

.discovery-modal-txt {
    width: calc(60% - var(--gap));
    container-type: inline-size;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.discovery-modal-category {
    font-size: clamp(1.4rem, 2cqw, 1.7rem);
    padding: 5px 10px;
    line-height: 1.5;
    border: 1px solid #878787;
    color: #878787;
    display: inline-block;
}

.discovery-modal-maker {
    font-size: clamp(1.4rem, 2cqw, 1.7rem);
    color: #878787;
    width: 100%;
    margin-top: 10px;
}

.discovery-modal-name {
    width: 100%;
    font-size: clamp(2.4rem, 5cqw, 3.4rem);
    font-weight: bold;
    color: var(--navy);
    margin: 0 0 10px;
    line-height: 1.5;
}

.discovery-modal-catch {
    font-size: clamp(2.0rem, 3.8cqw, 2.7rem);
    margin: 0 0 10px;
}

.discovery-modal-content .cmn-txt-box {
    width: 100%;
    margin-top: 20px;
}

.discovery-modal-content .cmn-txt-box .check-list {
    margin: 0;
}

.discovery-modal-content .basic-txt {
    font-size: 1.5rem;
}

.discovery-modal-content .btn-more {
    margin: 30px 0 0 0;
}

.discovery-block-wrap {
    height: 76%;
    top: 24%;
    position: absolute;
    width: 100%;
}

#discovery .discovery-block-wrap {
    top: 17%;
    height: 80%;
}

@media screen and (min-width: 769px) {
    .discovery-modal-open:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-color: var(--main);
    }

    .discovery-modal-open:hover .cmn-discovery-plus {
        transform: rotate(90deg);
    }

    .discovery-modal-product-item a:hover .discovery-modal-product-txt::after {
        transform: translateX(5px);
    }

    .discovery-modal-product-item a:hover .discovery-modal-product-txt::before {
        left: 0;
        width: 100%;
    }

    .discovery-sp-wrap {
        display: contents;
    }
}

@media screen and (max-width: 768px) {
    .discovery-area {
        --gap: 5vw;
        --gap-half: calc(var(--gap) / 2);
        margin-top: 0;
        gap: var(--gap);
        width: 100%;
        /* height: 200vw; */
        overflow: scroll;
        -webkit-overflow-scrolling: touch;
        aspect-ratio: initial;
    }

    #discovery .discovery-area {
        aspect-ratio: initial;
    }

    .discovery-area .title-catch-wrap {
        flex-wrap: wrap;
        top: 27vw;
        gap: 5vw;
        z-index: 3;
        padding: 0 5vw;
        width: 100vw;
        transform: none;
        left: 0;
        justify-content: flex-start;
    }

    #discovery .discovery-area .title-catch-wrap {
        top: 8vw;
    }

    #discovery .discovery-area .title-catch-wrap .basic-txt {
        font-size: 1.5rem;
        line-height: 1.7;
    }

    .discovery-area .title-catch-wrap .section-title .jp {
        font-size: clamp(3.0rem, 3.3cqw, 4.0rem);
    }

    #main:has(.discovery-modal-container.active) .discovery-sp-wrap {
        z-index: 100;
    }

    .discovery-sp-wrap {
        width: 1200px;
        max-width: none;
        height: auto;
        position: relative;
    }

    .discovery-area .discovery-sp-top-wrap {
        width: 1200px;
        overflow: hidden;
        z-index: 100;
        display: block;
        position: relative;
    }

    .discovery-bg-wrap {

        width: 1200px;
        max-width: none;
        height: auto;
    }

    .discovery-bg-wrap img {
        width: 1200px;
        max-width: none;
        height: auto;
    }

    .cmn-discovery-box {
        width: calc((100% - var(--gap)) / 2);
    }

    .cmn-discovery-txt {
        padding: 3vw 0 0;
        position: relative;
    }

    .cmn-discovery-category {
        padding: 3px 6px;
    }

    .cmn-discovery-catch {
        font-size: clamp(1.6rem, 1cqw, 2.4rem);
        line-height: 1.4;
        margin-top: 10px;
    }

    .cmn-discovery-detail {
        line-height: 1.5;
    }

    .cmn-discovery-table th {
        padding: 5px 10px;
        width: 100%;
        display: block;
        font-weight: 600;
    }

    .cmn-discovery-table td {
        width: 100%;
        display: block;
        padding: 0;
    }

    .cmn-discovery-table tr:first-child td {
        margin-top: 10px;
    }

    .cmn-discovery-plus {
        top: calc(var(--gap) * -1);
        right: calc(var(--gap-half) * -1);
        width: calc(var(--gap)*1.5);
        height: calc(var(--gap)*1.5);
    }

    .cmn-discovery-plus::after {
        width: calc(var(--gap-half)*1.5);
        height: calc(var(--gap-half)*1.5);
    }

    /*モーダル*/
    .discovery-modal-container {
        width: 100%;
        height: 100dvh;
        /* auto -> 画面高に固定 */
        padding: 20vw 3vw;
        --gap: 5vw;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .discovery-modal-container:before {
        display: none;
    }

    .discovery-modal-body {
        width: 100%;
        display: block;
        margin: 0 auto;
    }

    .discovery-modal-content {
        padding: 12vw 5vw 10vw;
        gap: 5vw;
        /* max-height: calc(100dvh - 6vw); */
        /* containerの上下padding分を考慮 */
        /* overflow-y: auto; */
        -webkit-overflow-scrolling: touch;
    }

    .discovery-modal-img {
        width: 100%;
        aspect-ratio: 8/5;
    }

    .discovery-modal-txt {
        width: 100%;
    }

    .discovery-modal-close {
        width: 10vw;
        height: 10vw;
        font-size: 10cqw;
    }

    .discovery-modal-city {
        font-size: clamp(2.1rem, 8cqw, 3.4rem);
        margin: 12px 0 8px;
    }

    .discovery-modal-catch {
        font-size: clamp(1.8rem, 6cqw, 2.4rem);
        margin: 0 0 10px;
        line-height: 1.6;
        font-weight: 600;
    }

    .discovery-modal-content .cmn-txt-box {
        margin-top: 5vw;
    }

    .discovery-modal-product-list {
        display: flex;
        flex-wrap: wrap;
        gap: 5vw;
    }

    .discovery-modal-product-item {
        width: 100%;
    }

    .discovery-modal-product-item a {
        flex-direction: column;
    }

    .discovery-modal-product-img {
        width: 100%;
        height: 40vw;
    }

    .discovery-modal-product-txt {
        width: 100%;
        padding: 5vw 5vw 8vw;
    }

    /* #discovery .discovery-area {
        aspect-ratio: initial;
    } */
}

/*-----------------------------------------------------------
    位置の指定
-----------------------------------------------------------*/
/* .river-01 {
    bottom: 5%;
    right: 25%;
}

#top .river-01 {
    bottom: 7%;
    right: 28%;
}

.river-02 {
    bottom: 28%;
    right: 2%;
} */

.river-01 {
    bottom: 25%;
    right: 1%;
}

.river-02 {
    bottom: 5%;
    right: 25%;
}

#top .river-02 {
    bottom: 7%;
    right: 28%;
}

.harbor-01 {
    top: 12%;
    right: 17%;
}

.harbor-02 {
    top: 24%;
    right: 14%;
}

.water-01 {
    bottom: 36%;
    left: 27%;
}

.water-02 {
    top: 35%;
    left: 5%;
}

.road-01 {
    top: 8%;
    right: 28%;
}

.road-02 {
    top: 35%;
    right: 27.5%;
}

.bridge-01 {
    bottom: 14%;
    right: 18.5%;
}

.bridge-02 {
    bottom: 15%;
    right: 5%;
}

.agri-01 {
    bottom: 10%;
    left: 5%;
}

.agri-02 {
    bottom: 19%;
    left: 20%;
}

.infra-01 {
    top: 4%;
    right: 45%;
}

.infra-02 {
    top: 24%;
    left: 37%;
}

@media screen and (max-width: 768px) {}


/*-----------------------------------------------------------
    template
-----------------------------------------------------------*/

@media screen and (max-width: 768px) {}