@charset "utf-8";

/* ***********************************

    基本

*********************************** */

:root {
    --black: #111;
    --navy: #00050d;
    --orange: #ffb700;
    --bgc: #fffceb;
}

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

html {
    font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--black);
    background-color: rgb(228, 239, 252);
    transition: 0.3s ease;
}

a {
    text-decoration: none;
    color: #333;
}

img {
    vertical-align: bottom;
}

ol,
ul {
    list-style-type: none;
}

.wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 背景(bubbly-bg.js) */
#bubbly-canvas {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
}

/* スクロールアクションの為、コンテンツを透明化 */
.appear {
    opacity: 0;
}


/* 昼夜切り替え */
.blind {
    display: none;
}

.night {
    background-color: var(--navy);
    color: #fff;
}


/* ***********************************

    ヘッダー

*********************************** */

header {
    position: sticky;
    top: 0;
    background-color: var(--black);
    z-index: 999;
}

.header_menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

header h1 img {
    height: 3rem;
    margin: 0.5rem 0;
}

header nav ul {
    display: flex;
    line-height: 1rem;
}

header nav ul li+li {
    margin-left: 2rem;
}


header nav ul li a {
    position: relative;
    padding: 0 0.5rem;
    color: #fff;
}

header nav ul li a::after {
    content: '';
    display: block;
    position: absolute;
    top: 1.3rem;
    left: 0;
    width: 3rem;
    height: 1px;
    background-color: var(--orange);
    transition: 0.3s ease;
    transform: scale(0, 1);
    transform-origin: center top;
}

header nav ul li a:hover::after {
    transform: scale(1, 1);
}



/* ***********************************

    メイン

*********************************** */

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

#modaal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(17, 17, 17, 0.7);
    opacity: 0;
    z-index: 99999;
}

#pickup {
    width: 70%;
    aspect-ratio: 16/9;
    border: solid 5px #fff;
}

.closebtn {
    position: fixed;
    top: 8.5%;
    left: 12%;
    cursor: pointer;
}

/* ***********************************
    メインビジュアル
*********************************** */

.mainvisual {
    position: relative;
    width: 100%;
    height: calc(100dvh - 7.8rem);
    box-shadow: 0px 0px 20px black;
    background-color: var(--black);
    overflow: hidden;
}


.mainvisual .hero_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100dvh);
    object-fit: cover;
    object-position: 50% -3rem;
    opacity: 0;
    pointer-events: none;
    transition: 1s ease;
}

.hero_imgs::after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.5);
}

#mainvisual .hero_blind {
    opacity: 0;
}

.mainvisual .hero_now {
    opacity: 1;
    animation-name: scale_down;
    animation-duration: 6s;
}

@keyframes scale_down {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.mainvisual .logo {
    position: absolute;
    top: 15%;
    left: 0;
    padding: 0 10%;
    height: 12rem;
    opacity: 0;
    animation: hero_text 1.5s ease;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
    z-index: 10;
}

.mainvisual .main_text {
    position: absolute;
    top: 50%;
    left: 0;
    padding: 0 10%;
    opacity: 0;
    animation: hero_text 1.5s ease;
    animation-delay: 1s;
    animation-fill-mode: forwards;
    z-index: 10;
}

@keyframes hero_text {
    from {
        opacity: 0;
        transform: translatex(-1.5rem);
    }

    to {
        opacity: 1;
        transform: translate(0);
    }
}

.mainvisual .main_text p {
    color: #fff;
    letter-spacing: 0.1rem;
    filter: drop-shadow(2px 2px 1px var(--black));
}

/* 気象情報 */
.mainvisual .weather {
    position: absolute;
    bottom: 5%;
    left: 0;
    margin: 0 10%;
    padding: 1rem;
    width: 0;
    background-color: rgba(51, 51, 51, 0.7);
    border-radius: 0.5rem;
    opacity: 0;
    animation: weather_area 0.8s ease;
    animation-delay: 2s;
    animation-fill-mode: forwards;
}

@keyframes weather_area {
    from {
        opacity: 0;
        width: 0;
    }

    to {
        opacity: 1;
        width: 11rem;
    }
}

.mainvisual .weather nobr {
    margin-bottom: 0.5rem;
    color: #fff;
    text-align: center;
    opacity: 0;
    animation: weather_area 1.5s ease;
    animation-delay: 2.3s;
    animation-fill-mode: forwards;
}

.weather_flex {
    display: flex;
    opacity: 0;
    animation: weather_area 1s ease;
    animation-delay: 2.3s;
    animation-fill-mode: forwards;
}

@keyframes weather_content {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#weather_img {
    width: 4rem;
}

.temperature {
    margin-left: 1rem;
    line-height: 2rem;
    font-size: 2rem;
    font-weight: bold;
}

#max_temperature {
    color: #df5656;
}

#min_temperature {
    color: #3aabd2;
}




/* ***********************************
    前書き
*********************************** */

.prologue {
    padding: 20rem 0;
    text-align: center;
}

.prologue .btn_sample {
    margin: 1rem;
    border: none;
    cursor: pointer;
}

.prologue img {
    height: 1.5rem;
}


/* ***********************************
    コンテンツ
*********************************** */

/* コンテンツ共通 */
.content_flex {
    display: flex;
    position: relative;
    justify-content: center;
    padding: 8rem 0 10rem;
}

.content_flex:nth-of-type(even)::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    width: calc(100vw - 20px);
    height: 100%;
    background-color: rgba(128, 128, 128, 0.2);
    z-index: -10;
}

.content_flex_left {
    position: relative;
    width: 45%;
}

.content_flex_right {
    position: relative;
    width: 45%;
    margin-left: 1rem;
}

.content_flex h2 {
    font-family: '游明朝', 'Yu Mincho', YuMincho, 'Hiragino Mincho Pro', serif;
    text-align: center;
    padding: 0.2rem 0 1rem;
    margin-bottom: 1rem;
    color: #fff;
    background-image: url(../img/h2_bgi.png);
    background-repeat: no-repeat;
    background-position: center 0;
}

.content_flex .view_area {
    aspect-ratio: 16/9;
}

.content_flex .view {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.content_flex .day {
    box-shadow: 0 0 1rem #00a3ee;
}

.content_flex .night {
    box-shadow: 0 0 1rem #ee0024;
}

.content_flex p {
    margin-bottom: 1rem;
}

/* 画像に載せるプラスマーク */
.content_flex .pluss_btn {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
    pointer-events: none;
    animation: parallax linear;
    animation-delay: 1s;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
}

/* 画像のパララックス効果 */
.parallax {
    animation: parallax linear;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
}

@keyframes parallax {
    from {
        transform: translateY(300px);
    }

    to {
        transform: translateY(-200px);
    }
}

/***************** テキスト左時 *****************/
/* テキスト左時、テキストエリア枠線 */
.content_flex_left_textarea::before {
    content: '';
    display: block;
    position: absolute;
    top: -10%;
    left: -5%;
    width: 130%;
    height: 130%;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.4);
    background-color: var(--bgc);
    border: 1px solid var(--orange);
    transition: 0.3s;
    z-index: -1;
}

/* テキスト左時、地名 */
.content_flex .area {
    position: absolute;
    top: -2rem;
    left: -5%;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--black);
    transform: rotate(-10deg);
}

.content_flex .area::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -35%;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-image: linear-gradient(160deg, var(--orange) 0%, #ffe7a9 100%);
    z-index: -1;
}


/***************** テキスト右時 *****************/
/* テキスト右時、テキストエリア枠線 */
.content_flex_right_textarea::before {
    content: '';
    display: block;
    position: absolute;
    top: -10%;
    left: -29%;
    width: 130%;
    height: 130%;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.4);
    background-color: var(--bgc);
    border: 1px solid var(--orange);
    transition: 0.3s;
    z-index: -1;
}

/* テキスト右時、地名 */
.flex_reverse {
    flex-direction: row-reverse;
}

.content_flex_right .area {
    left: 95%;
    transform: rotate(10deg) translateX(-50%);
    word-break: keep-all;
}



/* ***********************************
    後書き
*********************************** */

#epilogue {
    display: flex;
    place-content: center center;
    width: 100%;
    height: calc(100dvh - 9.5rem);
    margin-top: 10rem;
    padding: 6rem 10%;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.4);
    background-image: url(../img/eden_d.jpg);
    background-size: cover;
    background-position: center center;
    color: #fff;
    transition: 0.3s ease;
}

.epilogue_textarea {
    padding: 5rem 5rem;
    margin: auto 0;
    background-color: rgba(51, 51, 51, 0.9);
}

.epilogue h2 {
    padding-bottom: 0.3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #888;
}

.epilogue p {
    line-height: 1.7rem;
}


/* ***********************************
    fixed ボタン
*********************************** */

/* **********昼夜スイッチ************ */
#change_view {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 0;
    background-color: var(--black);
}

#change_view .view_btn {
    display: block;
    padding: 0.7rem 3rem;
    margin: 0 auto;
    color: var(--black);
    border: none;
    background-color: var(--orange);
    cursor: pointer;
}

.change_btn:hover {
    transition: 0.3s ease;
}

.change_btn:hover {
    filter: brightness(1.2);
}


#change_view .btn_arrow {
    margin: 0 1rem;
}

#change_view .fa-solid {
    transition: 0.3s;
}


/* **********トップボタン************ */
#top_btn {
    position: fixed;
    right: 10%;
    bottom: 0.3rem;
    color: var(--orange);
    opacity: 0;
    transition: 0.3s ease;
    z-index: 999;
}

#top_btn p {
    font-size: 12px;
    padding-top: 2px;
    color: var(--orange);
    text-align: center;
}

#top_btn:hover {
    transform: scale(1.1);
}


/* ***********************************

    フッター

*********************************** */

footer {
    text-align: center;
    color: #fff;
    background-color: var(--black);
}

footer p {
    margin-bottom: 3.9rem;

}



/* ***********************************
**************************************

    SP

**************************************
*********************************** */


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

    /* 前書き<br> */
    .sp_only {
        display: none;
    }
}

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

    /* ***********************************
    ヘッダーSP
    *********************************** */
    header nav {
        width: 100%;
    }

    header nav ul {
        justify-content: space-around;
    }

    .header_menu {
        flex-direction: column;
        max-width: 400px;
    }

    header h1 img {
        height: 2rem;
        margin: 0.5rem 0;
    }

    header nav ul {
        padding-bottom: 0.3rem;
    }

    header nav ul li+li {
        margin-left: 0;
    }

    /* ***********************************
    メインビジュアルSP
    *********************************** */
    .mainvisual .logo {
        top: 10%;
        height: 10rem;
    }

    .mainvisual .main_text {
        top: 43%;
        padding: 0 1rem;
    }

    /* ***********************************
    コンテンツSP
    *********************************** */
    .content_flex {
        align-items: center;
        flex-direction: column;
        padding: 6rem 0 5rem;
    }

    /* テキストと画像の間隔を調整 */
    .content_flex div:first-of-type {
        margin-bottom: 0;
    }

    .content_flex_left {
        width: 90%;
    }

    .content_flex_right {
        width: 90%;
        margin: 0;
    }

    .content_flex_left_textarea::before {
        left: -5%;
        width: 110%;
    }

    .content_flex_right_textarea::before {
        left: -5%;
        width: 110%;
    }

    .content_flex .pluss_btn {
        display: none;
    }

    .parallax {
        animation: none;
    }

    .content_flex .view_area::after {
        display: none;
    }

    .content_flex .area {
        left: -3%;
        transform: rotate(-10deg);
    }


    #epilogue {
        padding: 6rem 3%;

        .epilogue_textarea {
            padding: 2rem 1rem;
        }
    }
}