/* ==========================
   共通
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {

    width: 100%;

    overflow-x: hidden;
}


.page-container {

    width: 100%;
}


/* ==========================
   タイトル
========================== */

.mainTitle {

    margin-top: 8vh;

    text-align: center;

    color: white;
}


.mainTitle h1 {

    font-size: 10vw;

    letter-spacing: 0.15em;
}


/* ==========================
   自己紹介エリア
========================== */

.profile-introduction {

    width: 90%;

    min-height: 40vh;

    margin: 10vh auto 0;

    padding: 5%;

    background-color: white;

    color: #0b1d4d;

    border-radius: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5%;
}


/* ==========================
   左：画像
========================== */

.profile-image-area {

    width: 40%;
}


.profile-image {

    width: 100%;

    display: block;

    border-radius: 16px;

    object-fit: contain;

    margin-left: -8%;
}


/* ==========================
   右：文章
========================== */

.profile-text-area {

    width: 45%;
}


.profile-title {

    font-size: 4vw;

    margin-bottom: 4vw;
}


.profile-text {

    font-size: 2vw;

    line-height: 2;

    letter-spacing: 0.08em;
}


/* =====================================
   MAPコンテナ
===================================== */

.map-container {

    width: 90%;

    height: 65vw;

    margin: 5vh auto;

    padding: 40px;

    background: white;

    border-radius: 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}


/* =====================================
   左側
===================================== */

.map-preview {

    width: 40%;

    height: 100%;

    position: relative;

    overflow: visible;
}


/* =====================================
   タイトル画像
===================================== */

.base-image {

    position: absolute;

    width: 100%;

    height: auto;

    object-fit: contain;

    left: 10%;

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 1;
}


/* =====================================
   地域画像
===================================== */

.region-preview {

    position: absolute;

    width: 100%;

    height: auto;

    object-fit: contain;

    left: 10%;

    top: 50%;

    transform:
        translateY(-50%);

    opacity: 0;

    transition:
        opacity
        0.25s
        ease;

    pointer-events: none;

    z-index: 2;
}


/*
 * スマホのタップ表示にも使用します。
 */
.region-preview.is-visible {

    opacity: 1;
}


/* =====================================
   右側
===================================== */

.japan-map-wrapper {

    width: 50%;

    height: 100%;

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;
}


.japan-map {

    width: 100%;

    height: auto;

    display: block;
}


/* =====================================
   マーカー共通
===================================== */

.map-marker {

    position: absolute;

    width: 11%;

    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    transition:
        transform
        0.2s
        ease;
}


.map-marker img {

    display: block;

    width: 100%;

    height: auto;
}


/*
 * PC hover
 */
.map-marker:hover {

    transform:
        scale(1.1);
}


/*
 * スマホで選択中のマーカー
 */
.map-marker.is-active {

    transform:
        scale(1.15);
}


/* =====================================
   愛知
===================================== */

.marker-aichi {

    top: 66%;

    left: 43%;
}


/* =====================================
   東京
===================================== */

.marker-tokyo {

    top: 62%;

    left: 55%;
}


/* =====================================
   福岡
===================================== */

.marker-fukuoka {

    top: 72%;

    left: 2%;
}


/* =========================================================
   スマホ版
========================================================= */

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


    /* ==========================
       タイトル
    ========================== */

    .mainTitle {

        margin-top: 7vh;
    }


    .mainTitle h1 {

        font-size: 16vw;

        letter-spacing: 0.08em;
    }


    /* ==========================
       自己紹介
    ========================== */

    .profile-introduction {

        width: 90%;

        min-height: auto;

        margin-top: 6vh;

        padding: 8% 7%;

        border-radius: 20px;

        flex-direction: column;

        gap: 5vh;
    }


    /* ==========================
       プロフィール画像
    ========================== */

    .profile-image-area {

        width: 75%;
    }


    .profile-image {

        width: 100%;

        margin-left: 0;
    }


    /* ==========================
       プロフィール文章
    ========================== */

    .profile-text-area {

        width: 100%;

        text-align: center;
    }


    .profile-title {

        font-size: 10vw;

        margin-bottom: 6vw;
    }


    .profile-text {

        font-size: 4.3vw;

        line-height: 2;

        letter-spacing: 0.05em;
    }


    /* =====================================
       MAPコンテナ
    ===================================== */

    .map-container {

        width: 90%;

        height: auto;

        min-height: 0;

        margin: 6vh auto;

        padding:
            8%
            5%;

        border-radius: 20px;

        flex-direction: column;

        justify-content: flex-start;

        gap: 4vh;
    }


    /* =====================================
       MAPプレビュー
    ===================================== */

    .map-preview {

        width: 100%;

        /*
         * absolute配置の画像を
         * 表示できる高さを確保します。
         */
        height: 70vw;

        position: relative;
    }


    /* =====================================
       タイトル画像
    ===================================== */

    .base-image {

        width: 90%;

        left: 50%;

        top: 50%;

        transform:
            translate(
                -50%,
                -50%
            );
    }


    /* =====================================
       地域画像
    ===================================== */

    .region-preview {

        width: 90%;

        left: 50%;

        top: 50%;

        transform:
            translate(
                -50%,
                -50%
            );
    }


    /* =====================================
       日本地図
    ===================================== */

    .japan-map-wrapper {

        width: 100%;

        height: auto;
    }


    .japan-map {

        width: 100%;
    }


    /* =====================================
       マーカー
    ===================================== */

    .map-marker {

        /*
         * スマホでは少し大きくして
         * タップしやすくします。
         */
        width: 13%;

        min-width: 44px;

        min-height: 44px;

        display: flex;

        justify-content: center;

        align-items: center;
    }


    .map-marker img {

        width: 100%;
    }

}


/* =========================================================
   小さいスマホ
========================================================= */

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

    .profile-text {

        font-size: 4.5vw;
    }


    .map-preview {

        height: 75vw;
    }

}