@charset "utf-8";

/****************
     css変数設定
****************/

:root {
    --black: #14171B;
    --white: #FAFDFE;
    --blue1: #0D0945;
    --blue2: #004986;
    --blue3: #0075A9;
    --blue4: #796BAF;
    --blue5: #6C9BD2;
    --blue6: #54C3F1;
    --lime: #D6FE66;
    --gray: #D9D9D9;
    --clearblue: rgba(108, 155, 210, 0.5);
    --clearlightblue: rgba(0, 117, 169, 0.3);
    --clearpurple: rgba(121, 107, 175, 0.7);
    --clearblue6: rgba(84, 195, 241, 0.7);
    --noto_sans: "Noto Sans JP", sans-serif;
    --Goudy: "Sorts Mill Goudy", serif;
    /* グローバルメニュー展開時の画面全体背景色調整用 */
    --opacity: 0;
}

/*****************
    リセットcss
*****************/

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

html {
    font-family: var(--noto_sans);
    scroll-behavior: smooth;
}

main {
    overflow: hidden;
}

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

a {
    text-decoration: none;
    color: var(--black);
}

img {
    vertical-align: bottom;
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc_only {
    display: block;
}

.sp_only {
    display: none;
}

body {
    overflow-x: clip;
}

/*********************************
    JS用
*********************************/
/* スクロール時のテキスト出現時 */
.js_scroll_app {
    opacity: 0;
}

/* スクロール時のリスト出現時 */
.js_list_app {
    opacity: 0;
}

/******************* スクロール時の画像出現時 ***************************/
@keyframes img_app {
    0% {
        transform-origin: 0 50%;
        transform: scaleX(0);
    }

    50% {
        transform-origin: 0% 50%;
        transform: scaleX(1);
    }

    51% {
        transform-origin: 100% 50%;
        transform: scaleX(1);
    }

    100% {
        transform-origin: 100% 50%;
        transform: scaleX(0);
    }
}

.js_img_app_cover {
    animation: img_app 0.6s ease;
}

/* 登場する要素の親要素(登場する要素と同サイズ) */
.js_img_blind {
    position: relative;
    z-index: 0;

    /* 登場する要素の兄弟。空のspanで配置 */
    .js_img_cover {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--blue5) 0%, var(--blue4) 90%);
        transform: scaleX(0);
        transform-origin: left;
        z-index: 1;
    }
}

/* 登場する要素 */
.js_img_app {
    visibility: hidden;
}

/* 座布団がある画像だけ、座布団の初期値 */
.js_subtone_slide {
    position: absolute;
    width: 100%;
    height: 100%;
    visibility: hidden;
    z-index: -1;
    background-color: var(--clearpurple);
    transition: 0.7s ease;
}

/* 座布団の挙動後を記載。 */
/* .js_subtone_slide_m{
    それぞれの挙動を別途指定。
 }*/




/*****************
    header
*****************/

@keyframes header_app {
    0% {
        opacity: 0;
    }

    60% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.header_app {
    opacity: 0;
    animation: header_app 1.5s ease forwards;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    padding: 0.5rem 0;
    z-index: 100;


    /* ヘッダーのbackground-color */
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 100%;
        margin: 0 calc(50% - 50vw);
        background-color: var(--white);
        z-index: -20;
    }

    /* グローバルメニュー展開時の全画面半透明背景 */
    &::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        opacity: var(--opacity);
        background-color: var(--white);
        transition: 0.3s;
        pointer-events: none;
        z-index: -30;
    }
}

.logo_area>p {
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.3rem;

    a {
        color: var(--blue2);
    }

    img {
        width: 3.75rem;
        height: auto;
        margin-right: 0.5rem;
        transition: all 0.6s ease;

        &:hover {
            transform: rotate(360deg);
        }
    }

    .homevisual_text {
        transition: 0.3s;

        &:hover {
            transform: translateX(0.5rem);
        }
    }

    p:first-of-type {
        display: none;
    }
}

.logo_flex {
    font-family: var(--Goudy);
    justify-content: normal;
}

header nav {
    width: 31.3rem;

    a {
        display: inline-block;
        position: relative;
        transition: 0.3s;
        padding-bottom: 0.5rem;

        &::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 2px;
            left: 0;
            bottom: 0;
            margin: auto;
            background-color: var(--blue1);
            transform-origin: right top;
            transform: scale(0, 1);
            transition: transform .3s;
        }

        &:hover::before {
            transform-origin: left top;
            transform: scale(1, 1);
        }
    }



    &>ul {

        &>li {
            position: relative;

            /* グローバルナビゲーション アコーディオン */
            >ul {
                position: absolute;
                height: 0;
                opacity: 0;
                overflow: hidden;
                transition: 0.5s;

                li {
                    padding: 1rem 0 0;
                    width: 15rem;

                    a {
                        padding-bottom: 0 0 0.5rem;
                    }
                }
            }

            .js_gm_active {
                height: 20rem;
                opacity: 1;
            }
        }
    }
}


/* ハンバーガーボタン削除 */
.ham_btn {
    display: none;
}

/*****************
    main共通
*****************/

@keyframes estimate_icon {
    0% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(10deg);
    }
}

/* 追従 お見積りボタン */
.estimate_btn {
    position: fixed;
    top: 28%;
    right: -3rem;
    background-color: var(--lime);
    text-align: center;
    writing-mode: vertical-lr;
    transition: 0.3s;
    z-index: 90;

    &:hover {
        top: 30%;
        right: -1rem;
        transform: scale(1.1);
    }


    a {
        display: block;
        padding: 1rem 4rem 0.5rem 1rem;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.5rem;
        text-align: center;

        img {
            width: 2rem;
            height: auto;
            margin-bottom: 0.5rem;
            animation: estimate_icon 2s infinite;
        }
    }
}

/* コンテンツ幅 */
.wrapper {
    max-width: calc(1200px + 10rem);
    margin: 0 auto;
    padding-left: 4.5rem;
    padding-right: 4.5rem;
}

/* 画像リンクホバー */
.img_hover {
    position: relative;
    width: fit-content;
    height: 100%;

    &::after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--white);
        opacity: 0;
        transition: 0.3s;
    }

    &:hover::after {
        opacity: 0.4;
    }
}

/* テキストリンクホバー */
.hover_opacity {
    display: block;
    transition: 0.3s;

    &:hover {
        opacity: 0.3;
    }
}


h2 {
    position: relative;
    width: fit-content;
    padding-bottom: 0.5rem;
    margin: 0 0 4.7rem 9rem;
    font-size: 3.75rem;
    border-bottom: 0.5rem solid var(--blue5);

    /* 3色下線(h2{border-bottom}含めて構成) */
    &::after {
        content: '';
        display: block;
        bottom: -0.5rem;
        right: 0;
        position: absolute;
        height: 0.5rem;
        width: 33%;
        background-color: var(--blue6);
    }

    &::before {
        content: '';
        display: block;
        bottom: -0.5rem;
        right: left;
        position: absolute;
        height: 0.5rem;
        width: 33%;
        background-color: var(--blue3);
    }
}

section {
    position: relative;
    padding-top: 7.5rem;

    /* h2 半透明英語見出し */
    >.e_heading {
        position: absolute;
        top: 2rem;
        left: 5rem;
        font-family: var(--Goudy);
        font-size: 9.4rem;
        color: var(--clearblue);
        opacity: 0;
    }
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

.link_btn {
    display: block;
    position: relative;
    font-family: var(--Goudy);
    width: 8rem;
    margin: 0 auto;
    height: 2.5rem;
    line-height: 2.6rem;
    font-size: 1.25rem;
    color: var(--white);
    text-align: center;
    -webkit-text-stroke: 0.5px var(--white);
    transition: all 0.3s ease;
    z-index: 0;

    input {
        width: 100%;
        height: 100%;
        background: none;
        border: none;
        font-family: var(--Goudy);
        line-height: 2.6rem;
        font-size: 1.25rem;
        color: var(--white);
        -webkit-text-stroke: 0.5px var(--white);
        letter-spacing: 0.1rem;
    }

    span {
        display: block;
        position: relative;
        width: 100%;
        height: 100%;
        background: linear-gradient(0deg, rgba(0, 172, 238, 1) 0%, rgba(2, 126, 251, 1) 100%);
        transition: all 0.3s ease;
        z-index: -10;
    }

    &::before,
    &::after,
    & span::before,
    & span::after {
        position: absolute;
        content: "";
        background: rgba(2, 126, 251, 1);
        transition: all 0.3s ease;
    }

    &::before,
    &::after {
        right: 0;
        top: 0;
    }

    &::before {
        width: 2px;
        height: 0%;
    }

    &::after {
        width: 0%;
        height: 2px;
    }

    & span::before,
    & span::after {
        left: 0;
        bottom: 0;
    }

    & span:before {
        width: 2px;
        height: 0%;
    }

    & span:after {
        width: 0%;
        height: 2px;
    }

    input:hover {
        color: rgba(2, 126, 251, 1);
        -webkit-text-stroke: 0.5px rgba(2, 126, 251, 1);
    }

    span:hover {
        background: transparent;
        color: rgba(2, 126, 251, 1);
        -webkit-text-stroke: 0.5px rgba(2, 126, 251, 1);
    }

    &:hover::before,
    & span:hover::before {
        height: 100%;
    }

    &:hover::after,
    & span:hover::after {
        width: 100%;
    }
}

/*****************
    footer
*****************/

footer {
    width: 100%;
    padding: 1.5rem 0 0.5rem;
    background-color: var(--blue1);
    color: var(--white);

    a {
        color: var(--white);
    }

    .goudy {
        font-family: var(--Goudy);
    }
}

.footer_flex_wrapper {
    align-items: normal;
    max-width: 65rem;
    padding: 0 4rem;
    margin-bottom: 5.5rem;
}

footer .logo_flex {
    margin-bottom: 2rem;

    img {
        width: 6rem;
        height: auto;
        margin-right: 1rem;
        transition: all 0.6s ease;

        &:hover {
            transform: rotate(360deg);
        }
    }
}

.footer_flex_left {
    &>p {
        margin-bottom: 0.5rem;
    }

    address {
        margin-bottom: 2.25rem;
        font-style: normal;

        &>p {
            margin-bottom: 0.5rem;
        }
    }
}

.footer_sns {
    width: 12.5rem;

    a::after {
        border-radius: 3px;
    }

    img {
        width: 2rem;
        height: auto;
    }
}

footer aside .flex {
    align-items: normal;

    a {
        display: inline-block;
        position: relative;
        padding-bottom: 0.5rem;

        &::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 2px;
            left: 0;
            bottom: 0;
            margin: auto;
            background-color: var(--white);
            transform-origin: right top;
            transform: scale(0, 1);
            transition: transform 0.3s;
        }

        &:hover::before {
            transform-origin: left top;
            transform: scale(1, 1);
        }
    }

    ul {
        list-style: square;

        ul {
            list-style: none;

            li {
                position: relative;
                margin: 0.9rem 0 0 3rem;
                line-height: 1rem;

                &::before {
                    content: '―';
                    position: absolute;
                    left: -1.2rem;
                }

                &:last-of-type {
                    margin-bottom: 1.25rem;
                }

                a {
                    font-size: 0.8rem;
                }
            }
        }
    }

    &>ul>li {
        margin-bottom: 1.25rem;
    }

    .footer_nav_left li:nth-of-type(2) {
        margin-bottom: 0;
    }

    .footer_nav_right {
        margin-left: 6.9rem;

        li:nth-of-type(1) {
            margin-bottom: 0;
        }
    }
}

.footer_bottom {
    text-align: center;
    font-size: 0.8rem;
}


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

    ハンバーガーメニュー

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

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

    /* ****************
        展開前
    ***************** */

    /* *********
        ボタン
    ********* */
    .ham_btn {
        display: block;
        position: fixed;
        top: 2.7rem;
        right: 2rem;
        width: 2rem;
        height: 1.7rem;
        border: none;
        outline: none;
        background: none;
        cursor: pointer;
        z-index: 100;

        span {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--black);
            transition: 0.3s;
        }

        &::before,
        &::after {
            content: '';
            display: block;
            position: absolute;
            width: 2rem;
            height: 2px;
            background-color: var(--black);
            transition: 0.3s;
        }

        &::before {
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
        }

        &::after {
            bottom: 0;
        }
    }

    /* *********
        リスト
    ********* */

    header .ham_list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translatex(100vw);
        transition: 0.3s;

        .flex {
            flex-direction: column;
            justify-content: flex-start;
            height: 100vh;
            padding-top: 8rem;

            li {
                display: block;
                width: 100%;
                background-color: var(--blue6);
                text-align: center;
                opacity: 0;

                &+li {
                    margin-top: 0.3rem;
                }

                a {
                    display: block;
                    width: 100%;
                    padding: 1rem 0;
                    font-size: 1.5rem;
                }
            }
        }

        .js_gm_absolute {
            display: none;
        }
    }
}

/* ****************
        展開後
    ***************** */

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

.ham_btn_active {
    span {
        bottom: 0;
        margin: auto;
        transform: rotate(-45deg);
    }

    &::before {
        opacity: 0;
    }

    &::after {
        top: 0;
        margin: auto;
        transform: rotate(45deg);
    }
}

/* *********
        リスト
    ********* */

header .ham_list_active {
    transform: translatex(0);
}


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

    SP

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

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

    .pc_only {
        display: none;
    }

    .sp_only {
        display: block;
    }

    /*****************
    header
*****************/

    .logo_area>p {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.5rem;

        img {
            margin-right: 1rem;
        }

        p:first-of-type {
            display: block;
        }

        p:last-of-type {
            display: none;
        }
    }

    .homevisual_img {
        width: 3.75rem;
    }

    .homevisual_text {
        font-size: 1.3rem;


    }


    /*****************
    main共通
*****************/

    .estimate_btn {
        display: block;
        width: 100%;
        top: auto;
        left: 0;
        bottom: 0;
        writing-mode: inherit;
        z-index: 90;

        &:hover {
            top: auto;
            left: 0;
            transform: scale(1);
        }

        a {
            display: block;
            width: 100%;
            padding: 0.5rem 0;
            font-size: 1rem;

            img {
                margin: 0 0.5rem 0 0;
                animation: none;
            }
        }
    }

    .wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h2 {
        padding-bottom: 0;
        margin-bottom: 2rem;
        margin-left: 1.5rem;
        font-size: 2.5rem;
        border-bottom: none;

        &::before {
            display: none;
        }

        &::after {
            display: none;
        }
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    section {
        padding-top: 3rem;
        margin-bottom: 1rem;


        >.e_heading {
            top: 0rem;
            left: 1rem;
            font-size: 5.5rem;
        }
    }

    /*****************
    footer
*****************/
    footer {
        padding-bottom: 3rem;
    }

    .footer_flex_wrapper {
        flex-direction: column;
    }

    .footer_flex_left {
        margin-bottom: 3rem;
        border-bottom: 1px solid var(--white);
    }

    .footer_sns {
        margin: 0 auto 3rem;
    }

    footer aside .flex {
        max-width: 30rem;
        margin: 0 auto;

        .footer_nav_left {
            padding-left: 1.5rem;
        }

        .footer_nav_right {
            padding-left: 1.5rem;
            margin-left: 1rem;
        }
    }

}