@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
    --blue: #00479d;
    --green: #c7db5e;
    --gray: #dedee3;
}

/* ABOUTのbody */
body {
    margin: 0;

    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    /* font-weight: 400; */
    font-style: normal;
}

body:has(#trigger:checked) {
    overflow: hidden;
}

h1,
h2 {
    font-weight: 800;
}

h3 {
    font-weight: 600;
}

@media only screen and (min-width: 769px) {
    h1 {
        font-size: 80px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
    }
}

@media only screen and (max-width: 768px) {
    h1 {
        font-size: 60px;
    }

    h2 {
        font-size: 5vw;
    }

    h3 {
        font-size: 4vw;
    }

    p {
        font-size: 3vw;
    }
}

.tra {
    opacity: 0.2;
    left: 0;
}

@media only screen and (min-width: 769px) {
    .big_wrapper {
        height: 100vh;
        min-height: 1000px;
        overflow-y: auto;
    }
}

@media only screen and (max-width: 768px) {
    .big_wrapper {
        height: 100vh;
        min-height: 900px;
        overflow-y: auto;
    }
}

.container {

    background-size: cover;
    background-repeat: no-repeat;
    background-color: #ffffff;

    display: flex;
    justify-content: center;
}

@media only screen and (min-width: 769px) {
    .container {
        background-image: url(../img/ABOUT-contents/ABOUT_bg_PC.png);

        /* 最小幅（フッタと合わせる） */
        width: 100vw;
        /* min-width: 1322px; */

        height: 100vh;
        /* min-height: 900px; */

        overflow: scroll;
    }

    .wrapper {

        top: 2vw;
        width: 90%;
        min-height: 900px;
        height: 100vh;

        /* margin-top: 9%; */
        position: relative;
    }
}

@media only screen and (max-width: 768px) {
    .container {
        background-image: url(../img/ABOUT-contents/ABOUT_bg_SP.png);

        /* 最小幅（フッタと合わせる） */
        width: 100vw;
        /* min-width: 660px; */

        height: 100vh;

        /* 修正 */
        min-height: 1000px;
        /* min-height: 1100px; */

        overflow: scroll;
    }

    .wrapper {
        width: 90%;
        min-height: 900px;
        height: 100vh;

        /* margin-top: 9%; */
        position: relative;
    }
}


/* ページ説明 */
.ABOUT_chapter {
    height: fit-content;
    width: fit-content;

    color: var(--blue);
    opacity: 20%;

    letter-spacing: -0.1em;
    position: relative;
}

.ABOUT_pagecaption {
    color: var(--blue);

    line-height: 1.5;
    height: fit-content;
    width: fit-content;

    position: relative;

    /* マップの上に来るように */
    z-index: 2;
}

.ABOUT_pagecaption_text {
    font-size: 18px;
}

@media only screen and (min-width: 769px) {
    .ABOUT_chapter {
        top: 12%;
        left: 4vw;
    }

    .ABOUT_pagecaption {
        top: 6.4%;
        left: 6vw;
    }
}

@media only screen and (max-width: 768px) {
    .ABOUT_chapter {
        top: 8%;
    }

    .ABOUT_pagecaption {
        top: 6.4%;
    }
}

.dekikata_desc_btn {
    width: 100%;
    height: 100%;
    position: relative;
}

#pin_dekikata_desc {
    background-color: #ffffff;
    border-top-left-radius: 14px;
    border-bottom-right-radius: 14px;
    border-color: var(--blue);
    border-style: solid;
    border-width: 2px;
    width: 280px;
    top: 10px;
    position: relative;
}

.dekikata_desc_text {
    left: 2px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
}

.dekikata_desc_arrow {
    background-image: url(../img/ABOUT-contents/dekikata_desc_arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 8px;
    aspect-ratio: 4 / 1;
    position: relative;
    left: 12px;
    top: -2px;
}

/* マップ */
.ABOUT_map {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    left: 0px;
    right: 0px;
    transform: translateX(0);

    position: relative;

    z-index: 1;
}

@media only screen and (min-width: 769px) {
    .ABOUT_map {
        background-image: url(../img/ABOUT-contents/ABOUT_map_PC.svg);

        width: 80%;
        min-width: 1190px;
        height: 80vh;
        min-height: 600px;
        max-height: 700px;

        left: 6vw;
        transform: translateX(0);

        top: 2vw;
    }
}

@media only screen and (max-width: 768px) {
    .ABOUT_map {
        background-image: url(../img/ABOUT-contents/ABOUT_map_SP.png);

        width: 86vw;
        min-width: 660px;

        /* 修正 */
        /* height: 100vh; */
        height: 80vh;
        min-height: 800px;

        left: 0;
        transform: translateX(-4%);


    }
}

/* ピン（クリックできる部分） */

.pin {
    background-color: #ffffff;

    border-top-left-radius: 14px;
    border-bottom-right-radius: 14px;
    border-color: var(--blue);
    border-style: solid;
    border-width: 2px;

    box-shadow: 2px 2px 10px 1px rgba(0, 0, 0, 0.3);

    display: flex;
    text-align: center;

    position: relative;

    transform: translateY(0);
    transition: 0.4s cubic-bezier(0.09, 1.04, 0.67, 0.99);
}

.pin_img {
    background-image: url(../img/ABOUT-contents/pin.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 120%;
    aspect-ratio: 1 / 1;
    top: -30%;
    left: 0;
    position: absolute;
}

.pin_group_name {
    color: var(--blue);
    font-size: 20px;
    position: absolute;
}

.pin:hover {
    transform: translateY(-8px);
    transition: 0.4s cubic-bezier(0.09, 1.04, 0.67, 0.99);
}

@media only screen and (min-width: 769px) {
    .pin {
        height: 36px;
        width: 140px;
    }

    #pin_graphic {
        width: 220px;
    }

    .pin_group_name {
        left: 44px;
    }
}

@media only screen and (max-width: 768px) {
    .pin {
        height: 36px;
        width: 120px;
    }

    #pin_graphic {
        width: 200px;
    }

    .pin_group_name {
        left: 38px;
    }
}


@media only screen and (min-width: 769px) {
    .pin_toukatsu {
        top: 20%;
        left: 32%;
    }

    .pin_web {
        top: -4%;
        left: 78%;
    }

    .pin_graphic {
        top: 44%;
        left: 70%;
    }

    .pin_tenji {
        top: 34%;
        left: 8%;
    }
}

@media only screen and (max-width: 768px) {
    .pin_toukatsu {
        top: 26%;
        left: 22%;
    }

    .pin_web {
        top: -4%;
        left: 78%;
    }

    .pin_graphic {
        top: 54%;
        left: 66%;
    }

    .pin_tenji {
        top: 46%;
        left: 4%;
    }
}


/* モーダルウィンドウ */

.modal_wrap input {
    display: none;
}

.modal_overlay {
    display: flex;
    justify-content: center;
    overflow: hidden;
    overflow-y: scroll;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    opacity: 1;
    transition: opacity 0.5s, transform 0s 0.5s;
    transform: scale(0);
}

.modal_content {
    display: flex;
    flex-direction: column;
    /* stack close btn and modal content vertically */
    justify-content: center;
    /* start from top to keep close button above */
    align-items: center;
    align-self: flex-start;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    /* transition-delay: 500ms; */
    transition-property: transform;
    position: relative;
    padding-top: 2.5rem;
    /* spacing for close button */
    gap: 1rem;
    /* gap between close button and modal leaf */
    overflow-y: scroll;
    padding-bottom: 3rem;
}

@media only screen and (min-width: 769px) {
    .modal_content {
        background-image: url(../img/ABOUT-modal/modal_bg_PC.svg);
        background-size: cover;
        background-repeat: no-repeat;
        inset: 0;
    }
}

@media only screen and (max-width: 768px) {
    .modal_content {
        background-image: url(../img/ABOUT-modal/modal_bg_SP.svg);
        background-size: cover;
        background-repeat: no-repeat;
        inset: 0;
    }
}

.close_btn_container {
    height: auto;
    transform: none;
    top: -2%;
    left: auto;
    position: relative;
    /* keep it in flow */
    width: 90%;
    display: flex;
    justify-content: flex-end;
    /* align close button right */
    padding-right: 0;
    margin-bottom: 1rem;
}

@media only screen and (min-width: 769px) {
    .close_btn_container {
        width: 84%;
    }

    .close_btn {
        aspect-ratio: 2 / 1;
        width: 60px;
        right: -30px;
        transform: none;
        top: auto;
        right: auto;
        cursor: pointer;
        opacity: 0;
        position: relative;
    }
}

@media only screen and (max-width: 768px) {
    .close_btn_container {
        width: 90%;
    }

    .close_btn {
        aspect-ratio: 2 / 1;
        width: 60px;
        transform: none;
        top: auto;
        right: auto;
        cursor: pointer;
        opacity: 0;
        position: relative;
    }
}

.btn_line {
    background-color: var(--blue);
    width: 100%;
    height: 3px;
    border-radius: 9999px;
    position: absolute;
    /* ボタンの当たり判定調整 */
    top: 15px;
}

#btn_line_01 {
    transform: rotate(20deg);
}

#btn_line_02 {
    transform: rotate(-20deg);
}

.close_btn:hover .btn_line {
    background-color: white;
    transition-property: background-color;
    transition-timing-function: ease-out;
}

.modal_leaf {
    background-color: white;
    border-top-left-radius: 80px;
    border-bottom-right-radius: 80px;
    transform: translateY(60%);
    opacity: 0;
    overflow-y: scroll;
    position: relative;
}

@media only screen and (min-width: 769px) {
    .modal_leaf {
        aspect-ratio: 2 / 1;
        height: 80%;
        width: 84%;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    .modal_inner {
        height: 90%;
        width: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media only screen and (max-width: 768px) {
    .modal_leaf {
        aspect-ratio: 1 / 2;
        height: auto;
        /* min-height: 800px; */
        width: 90%;
        margin-top: 0;
        /* use normal flow via close_btn_container margin */
        display: flex;
        justify-content: center;
    }

    .modal_leaf::-webkit-scrollbar {
        background-color: rgba(255, 255, 255, 0);
        width: 10px;
        height: 30px;
        border-radius: 20px;
    }

    .modal_leaf::-webkit-scrollbar-thumb {
        background-color: rgba(0, 71, 157, 0.3);
        border-radius: 20px;
    }

    .modal_inner {
        height: 90%;
        width: 90%;
        margin-top: 5%;
    }
}

.modal_wrap input:checked~.modal_overlay {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s;
}

.modal_wrap input:checked~.modal_overlay .modal_content {
    transform: translateY(0);
}

.modal_wrap input:checked~.modal_overlay .modal_leaf {
    transform: translateY(0);
    opacity: 1;
    transition-duration: 0.8s;
    transition-delay: 0.3s;
    transition-timing-function: cubic-bezier(0.05, 0.9, 0.56, 0.99);
}

.modal_wrap input:checked~.modal_overlay .close_btn {
    opacity: 1;
    transition-duration: 1s;
    transition-delay: 0.3s;
    transition-timing-function: cubic-bezier(0.05, 0.9, 0.56, 0.99);
}

.open_button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    cursor: pointer;
}

/* モーダルウィンドウについてここまで */

.modal_inner_pic {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-top-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

/* モーダルの中身 */
@media only screen and (min-width: 769px) {
    .modal_inner_pic {
        height: 100%;
        width: 50%;
    }

    .modal_inner_desc {
        height: 100%;
        width: 50%;
    }
}

@media only screen and (max-width: 768px) {
    .modal_inner_pic {
        aspect-ratio: 1 / 1;
        height: auto;
        width: 100%;
    }

    .modal_inner_desc {
        aspect-ratio: 1 / 1;
        height: auto;
        width: 100%;
    }
}

#pic_toukatsu {
    background-image: url(../img/ABOUT-modal/modal_toukatsu.jpg);
}

#pic_web {
    background-image: url(../img/ABOUT-modal/modal_web.jpg);
}

#pic_graphic {
    background-image: url(../img/ABOUT-modal/modal_graphic.jpg);
}

#pic_tenji {
    background-image: url(../img/ABOUT-modal/modal_tenji.jpg);
}

.modal_inner_desc {
    position: relative;
}

@media only screen and (min-width: 769px) {
    .text_box {
        width: 80%;
        height: 60%;
        left: 15%;
        top: 20%;
        position: relative;
    }

    .dekikata {
        color: var(--green);
        font-weight: 600;
        position: relative;
    }

    .group_name {
        color: var(--blue);
        top: 6%;
        position: relative;
    }

    .group_desc {
        color: var(--blue);
        /* font-size: 6%; */
        line-height: 2;
        top: 12%;
        position: relative;
    }
}

@media only screen and (max-width: 768px) {
    .text_box {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .dekikata {
        color: var(--green);
        font-weight: 600;
        top: 16%;
        position: relative;
    }

    .group_name {
        color: var(--blue);
        top: 18%;
        position: relative;
    }

    .group_desc {
        color: var(--blue);
        line-height: 2;
        top: 22%;
        position: relative;
    }
}

/* できかた展とはのモーダル */
#modal_inner_dekikata_desc {
    flex-direction: column;
}

@media only screen and (min-width: 769px) {
    .modal_dekikata_desc_pic {
        height: 50%;
        width: 100%;
    }

    .slide_gallery {
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dekikata_desc_pic {
        width: 24%;
        aspect-ratio: 1 / 1;
        border-top-left-radius: 40px;
        border-bottom-right-radius: 40px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
}

@media only screen and (max-width: 768px) {
    .modal_dekikata_desc_pic {
        aspect-ratio: 1 / 1;
        height: auto;
        width: 100%;
        border-top-left-radius: 60px;
        border-bottom-right-radius: 60px;
        overflow: hidden;
    }

    .slide_gallery {
        height: 100%;
        width: 400%;
        display: flex;
        animation: slide 12s linear infinite;
        /* アニメーションの設定 */
        animation-timing-function: cubic-bezier(0.08, 0.65, 0.7, 1);
    }

    .dekikata_desc_pic {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        flex: 0 0 25%;
        /* 1つの画像が全体の4分の1の幅を取る */
        width: 100%;
        /* 幅を指定 */
    }

    /* アニメーション（スライド） */
    @keyframes slide {
        0% {
            transform: translateX(0);
        }

        20% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-25%);
        }

        45% {
            transform: translateX(-25%);
        }

        50% {
            transform: translateX(-50%);
        }

        70% {
            transform: translateX(-50%);
        }

        75% {
            transform: translateX(-75%);
        }

        95% {
            transform: translateX(-75%);
        }

        100% {
            transform: translateX(0);
            /* 1周分の移動 */
        }
    }
}

#desc_pic_01 {
    background-image: url(../img/ABOUT-modal/modal_toha_01.jpg);
}

#desc_pic_02 {
    background-image: url(../img/ABOUT-modal/modal_toha_02.jpg);
}

#desc_pic_03 {
    background-image: url(../img/ABOUT-modal/modal_toha_03.jpg);
}

#desc_pic_04 {
    background-image: url(../img/ABOUT-modal/modal_toha_04.jpg);
}

.modal_dekikata_desc_text {
    height: 50%;
    width: 100%;
    color: var(--blue);
    position: relative;
}

.dekikata_desc_toha {
    width: 100%;
    text-align: center;
    top: 12%;
    position: relative;
}

.dekikata_desc_caption {
    width: 100%;
    top: 20%;
    position: relative;
    line-height: 2;
}


/* ABOUTのbodyここまで */