@charset "utf-8";

:root {
    /* 色 */
    --primary-color: #202225;
    --primary-color-rgb: 32, 34, 37;
    --secondary-color: #4D5156;
    --line-color: #E1E6E8;
    --white: #fff;
    --link-color: #245B8E;
    --link-color-rgb: 36, 91, 142;

    /* 文字サイズ */
    --heading-1: 3.8rem;
    --heading-2: 2.8rem;
    --heading-3: 2.1rem;
    --heading-4: 1.8rem;
    --text-m: 1.6rem;
    --text-s: 1.5rem;
    --text-xs: 1.4rem;
    --text-xxs: 1.2rem;

    /* フォント */
    --jp-font: YakuHanJPs, "Zen Kaku Gothic New", sans-serif;
    --en-font: "Raleway", sans-serif;
    --caption-font: "Inter", sans-serif;
    --google-icon: "Material Symbols Outlined";

    /* transition */
    --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* 
主たるブレイクポイント
sp　～600px
tab　601 ～1024px
pc　1025px～
 */

/* ===============================================
    全体の設定
=============================================== */

html {
    /* -> 10px */
    font-size: 62.5%;
    scroll-behavior: smooth;
    /* ヘッダーの高さ+10px */
    scroll-padding-top: 70px;
}

body {
    color: var(--primary-color);
}

img {
    width: 100%;
    height: auto;
}

@media screen and (min-width:1025px) {
    html {
        /* ヘッダーの高さ+10px */
        scroll-padding-top: 130px;
    }

    /*=======min-width:1025px=======*/
}


/* ===============================================
    汎用クラス
=============================================== */

.inner {
    max-width: 1272px;
    padding-right: 16px;
    padding-left: 16px;
    margin: 0 auto;
}

/* テキストスタイル */
.jp-longtext-s,
.jp-longtext-m {
    font-family: var(--jp-font);
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: -0.015em;
    text-align: justify;
    text-align-last: left;
}

.jp-longtext-m {
    font-size: var(--text-m);
}

.jp-longtext-s {
    font-size: var(--text-s);
}

.uppercase {
    text-transform: uppercase;
}

/* フェードイン */
.js-fadeUp {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 2s var(--ease-out-quint);
}

.js-fadeUp.inview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: .05s;
}


/* ===============================================
    ローディング
=============================================== */

.loading {
    animation: fadein 1.5s forwards;
}

@keyframes fadein {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}


/* ===============================================
    ヘッダー
=============================================== */

#header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    z-index: 5;
    width: 100%;
    height: 60px;
    background-color: var(--white);
    transition: all 0.3s;
}

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
}

.hlogo {
    width: 45.6vw;
    max-width: 200px;
}

.hlogo__link:hover {
    opacity: 0.6;
    transition: all 0.3s var(--ease-out-quint);
}

/* pc　1025px以上 */
@media screen and (min-width:1025px) {

    #header {
        height: 120px;
    }

    #header.height-min {
        height: 90px;
    }

    .header-inner {
        justify-content: space-between;
    }

    .header-back {
        display: none;
    }

    .hlogo {
        max-width: 263px;
    }

    /*=======min-width:1025px=======*/
}

/* 1440px～ */
@media screen and (min-width:1440px) {
    .header-inner {
        max-width: none;
        padding-right: 6.95vw;
        padding-left: 6.95vw;
    }

    /*=======min-width:1440px=======*/
}


/* ===============================================
    ハンバーガーメニュー / ナビゲーション
=============================================== */
.btn-menu {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    z-index: 10;
    cursor: pointer;
}

/* ---------------------------- */
/* ライン */
.btn-menu__line,
.btn-menu::before,
.btn-menu::after {
    display: block;
    width: 28px;
    height: 1px;
    background-color: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 0;
    transition: transform .4s var(--ease-out-quint);
}

.btn-menu::before,
.btn-menu::after {
    content: '';
}

.btn-menu::before {
    transform: translateY(-8px);
}

.btn-menu::after {
    transform: translateY(8px);
}

/* ---------------------------- */
/* クリック時　ライン */
body.is-nav-open .btn-menu__line {
    transform: scaleX(0);
}

body.is-nav-open .btn-menu::before {
    transform: translateY(0) rotate(45deg);
}

body.is-nav-open .btn-menu::after {
    transform: translateY(0) rotate(-45deg);
}

/* ---------------------------- */
/* ナビ部分 */
.gnav {
    position: fixed;
    background-color: var(--white);
    width: 80%;
    height: 100dvh;
    top: 0;
    left: 100%;
    visibility: hidden;
    z-index: 9;
    transition: all .4s;
}

body.is-nav-open .gnav {
    transform: translateY(0);
    visibility: visible;
    left: 20%;
    transition: all .5s var(--ease-out-quint);
}

body.is-nav-open .header-back {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 8;
    background-color: rgba(var(--primary-color-rgb), 0.3);
    display: block;
    transition: all .3s;
}

.gnav__list {
    width: 100%;
    padding: 0 40px;
    margin-top: 50px;
}

.gnav__item {
    border-bottom: 1px solid var(--line-color);
}

.gnav__link {
    display: block;
    color: var(--primary-color);
    letter-spacing: 0.08em;
    font-size: var(--text-m);
    font-family: var(--en-font);
    font-weight: 600;
    padding: 20px 0;
    position: relative;
}

.gnav__link:hover {
    opacity: 0.5;
    transition: all 0.3s var(--ease-out-quint);
}


/* ---------------------------- */
/* pc　1025px以上 */
@media screen and (min-width:1025px) {
    .btn-menu {
        display: none;
    }

    .gnav {
        position: static;
        width: auto;
        height: auto;
        left: auto;
        top: auto;
        transform: none;
        visibility: visible;
    }

    .gnav__list {
        padding: 0 0;
        margin-top: 0;
        display: flex;
        align-items: center;
    }

    .gnav__item {
        border-bottom: none;
        margin-right: 30px;
    }

    .gnav__item:last-of-type {
        margin-right: 0;
    }

    .gnav__link {
        display: inline-block;
        padding: 3px 0;
    }

    .gnav__link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: var(--primary-color);
        transition: all 0.3s var(--ease-out-quint);
        transform: scale(0, 1);
        transform-origin: left top;
    }

    .gnav__link:hover {
        opacity: 1;
    }

    .gnav__link:hover::after {
        transform: scale(1, 1);
    }

    /*=======min-width:1025px=======*/
}

/* ===============================================
    フッター
=============================================== */
#footer {
    background: url(../img/texture.jpg) repeat;
}

.footer-style {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.footer-border {
    padding-top: 32px;
    border-top: 1px solid var(--secondary-color);
}

.footer-logo {
    max-width: 197px;
    margin: 0 auto;
    margin-bottom: 16px;
}

.copyright {
    text-align: center;
    color: var(--secondary-color);
    font-family: var(--caption-font);
    font-size: var(--text-xxs);
    letter-spacing: 0.01em;
    font-weight: 400;
    padding-bottom: 32px;
}

/* tab　601px～ */
@media screen and (min-width:601px) {
    .page-top {
        position: relative;
    }

    .page-top__link {
        position: absolute;
        right: 0;
        bottom: 50%;
        transform: translateY(-45%);
        display: block;
        width: 60px;
        height: 60px;
        border: 1px solid var(--secondary-color);
        border-radius: 50%;
    }

    .page-top__link::after {
        font-family: var(--google-icon);
        content: '\e5d8';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2.5rem;
        color: var(--secondary-color);
        transition: all 0.2s var(--ease-out-quint);
    }

    .page-top__link:hover::after {
        top: 40%;
    }

    /*=======min-width:601px=======*/
}