@charset "utf-8";

/*===========================================================*/
/*機能編  4-2-7 背景色が伸びる（斜め） */
/*===========================================================*/

/*========= ローディング画面のためのCSS ===============*/
#splash {
    position: fixed;
    width: 100%;
    height: 100%;
    /* background: #daca0b; */
    background: #66CCCC;
    z-index: 9999999;
    text-align: center;
    color: #fff;
}

#splash-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*========= 画面遷移のためのCSS ===============*/

/*画面遷移アニメーション*/
.splashbg {
    display: none;
}

/*bodyにappearクラスがついたら出現*/
body.appear .splashbg {
    display: block;
}

body.appear .splashbg {
    animation-name: PageAnime;
    animation-duration: 1.2s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    content: "";
    position: fixed;
    z-index: 999;
    width: 50%;
    height: 100vh;
    top: 0;
    left: 0;
    transform: translateX(-300%) skewX(-45deg);
    background-color: #000;
}

/*黒い帯が走る演出*/
@keyframes PageAnime {
    0% {
        transform-origin: left;
        transform: translateX(-300%) skewX(-45deg);
    }

    100% {
        transform-origin: left;
        transform: translateX(500%) skewX(-45deg);
    }
}

/*画面遷移の後現れるコンテンツ設定*/
#container {
    position: relative;
    opacity: 0;
}

/*bodyにappearクラスがついたら出現*/
body.appear #container {
    animation-name: PageAnimeAppear;
    animation-duration: 1s;
    animation-delay: 0.6s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes PageAnimeAppear {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/*===========================================================*/
/*機能編  5-1-24 クリックしたら円形背景が拡大（中央から） */
/*===========================================================*/

/*========= ナビゲーションのためのCSS ===============*/

/*
  【重要】
  - display:none/block をやめる
  - opacity/visibility を「閉じる時だけ delay」して、円の縮小に合わせてメニューを消す
*/

/* ナビの土台は常にfixedで持つ（閉じている間はクリックを通す） */
#g-nav {
    position: fixed;
    z-index: 999;
    inset: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    /* 閉じてる間は背面操作OK */
}

#g-nav.panelactive {
    pointer-events: auto;
    /* 開いてる間だけ操作 */
}

/*丸の拡大*/
.circle-bg {
    position: fixed;
    z-index: 3;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #66CCCC;
    transform: scale(0);
    top: calc(50% - 50px);
    left: calc(50% - 50px);

    /* 円の開閉速度（あなたの調整値） */
    transition: all 1.1s ease-in-out;
}

.circle-bg.circleactive {
    transform: scale(50);
}

/* ナビ表示領域：displayで消さず、opacity/visibilityで消す */
#g-nav-list {
    position: fixed;
    z-index: 999;
    inset: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;

    /* 中央配置（縦横センター） */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 閉じている状態 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /*
      閉じる時：delay後に消える
      円の縮小(1.1s)の途中まで残したい → 0.60s待ってから薄く消える
      ※ここを調整すれば「消えるタイミング」を変えられます
    */
    transition:
        opacity .2s ease .80s,
        visibility 0s linear .80s;
}

/* 開く時：すぐ表示（delayなし） */
#g-nav.panelactive #g-nav-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity .2s ease 0s,
        visibility 0s linear 0s;
}

/*ナビゲーション（中央）*/
#g-nav ul {
    margin: 0;
    padding: 0;
    opacity: 0;

    /* 閉じる時：少し残してから消える（g-nav-listと同じ遅延） */
    transition: opacity .2s ease .60s;
}

/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
    opacity: 1;
    transition-delay: 0s;
}

/* 背景が出現後にナビゲーション li を表示 */
#g-nav.panelactive ul li {
    animation-name: gnaviAnime;
    animation-duration: 1.2s;
    /* 少しゆっくり */
    animation-delay: .35s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes gnaviAnime {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/*リストのレイアウト設定*/
#g-nav li {
    text-align: center;
    list-style: none;
}

#g-nav li a {
    color: #333;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
}

@media screen and (max-width:768px) {
    #g-nav li a {
        padding: 5px 10px;
    }
}

/*==================================================
　機能編 5-2-8 3本線が横方向に回転して×に
===================================*/

/*ボタン外側*/
.openbtn {
    position: fixed;
    top: 2vh;
    right: 2vw;
    z-index: 9999;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

/*ボタン内側*/
.openbtn .openbtn-area {
    transition: all .9s ease-in-out;
    /* 少しゆっくり */
    width: 50px;
    height: 50px;
}

.openbtn span {
    display: inline-block;
    transition: all .7s ease-in-out;
    /* 少しゆっくり */
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: #333;
    width: 45%;
}

.openbtn span:nth-of-type(1) {
    top: 15px;
}

.openbtn span:nth-of-type(2) {
    top: 23px;
}

.openbtn span:nth-of-type(3) {
    top: 31px;
}

/*activeクラスが付与されると .openbtn-areaが360度回転し、その中の線が回転して×に*/
.openbtn.active .openbtn-area {
    transform: rotate(360deg);
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

/*==================================================
機能編 　9-1-3	マウスが動いてスクロールを促す
===================================*/

.scrolldown3 {
    position: absolute;
    bottom: 10px;
    left: 50%;
    animation: mousemove 1.6s ease-in-out infinite;
}

@keyframes mousemove {
    0% {
        bottom: 10px;
    }

    50% {
        bottom: 5px;
    }

    100% {
        bottom: 10px;
    }
}

.scrolldown3 span {
    position: absolute;
    left: -15px;
    bottom: 45px;
    color: #000;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.scrolldown3 span::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 17px;
    width: 1px;
    height: 15px;
    background: #000;
    animation: mousepathmove 1.4s linear infinite;
    opacity: 0;
}

@keyframes mousepathmove {
    0% {
        height: 0;
        top: 10px;
        opacity: 0;
    }

    50% {
        height: 15px;
        opacity: 1;
    }

    100% {
        height: 0;
        top: 30px;
        opacity: 0;
    }
}

.scrolldown3:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -10px;
    width: 25px;
    height: 37px;
    border-radius: 10px;
    border: 1px solid #000;
}

.scrolldown3:after {
    content: "";
    position: absolute;
    bottom: 26px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 1px solid #000;
}

/*==================================================
機能編 　7-1-9	くるっと回転（手前に回転）
===================================*/

.btn02 {
    position: relative;
    display: inline-block;
    margin: 8vh 0 0 0;
    width: 100%;
    max-width: 250px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    outline: none;
}

.btn02 span {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #000;
    transform-style: preserve-3d;
    transition: 0.5s;
}

/* 回転前 */
.rotatefront span:nth-child(1) {
    color: #000;
    transform: rotateX(0deg);
    transform-origin: 0 50% -25px;
}

.rotatefront:hover span:nth-child(1) {
    transform: rotateX(-90deg);
}

/* 回転後 */
.rotatefront span:nth-child(2) {
    background: #000;
    color: #fff;
    transform: rotateX(90deg);
    transform-origin: 0 50% -25px;
}

.rotatefront:hover span:nth-child(2) {
    transform: rotateX(0deg);
}

/*==================================================
印象編 4 最低限おぼえておきたい動き
===================================*/

/*==================================================
4-7 にゅーん（滑らかに変形して出現）
===================================*/

.smooth {
    animation-name: smoothAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    transform-origin: left;
    opacity: 0;
}

@keyframes smoothAnime {
    from {
        transform: translate3d(0, 100%, 0) skewY(12deg);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0) skewY(0);
        opacity: 1;
    }
}

.smoothTrigger {
    opacity: 0;
}

/*==================================================
　印象編　8-16 テキストが滑らかに出現
===================================*/

span.smoothText {
    overflow: hidden;
    display: block;
}

span.smoothTextTrigger {
    transition: .8s ease-in-out;
    transform: translate3d(0, 100%, 0) skewY(12deg);
    transform-origin: left;
    display: block;
}

span.smoothTextTrigger.smoothTextAppear {
    transform: translate3d(0, 0, 0) skewY(0);
}

/*==================================================
    印象編　5-1　背景色が時間変化
===================================*/

body {
    /* animation: bgchange 40s ease infinite; */
    background: #66CCCC;
}

/*==================================================
   印象編　5-14　波線（1つ）
===================================*/

#waveCanvas {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 1;
}

/*==================================================
　印象編　5-17　粒子が集まってタイポグラフィーを形成する
===================================*/

#particle {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    vertical-align: bottom;
    z-index: 2;
}

@media screen and (max-width:768px) {
    #particle {
        width: 170%;
        height: 170vh;
        left: -35%;
        top: -35vh;
    }
}

/*==================================================
　印象編　6-5　スクロールすると紙芝居風に展開
===================================*/

.fixed {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
}

@media screen and (max-width:768px) {
    .fixed {
        position: relative !important;
    }
}

/*==================================================
　印象編　9-4-1　SVG アニメーション
===================================*/

.service-img svg {
    width: 100%;
}

.service-img svg path {
    fill-opacity: 0;
    transition: fill-opacity .5s;
    fill: none;
    stroke: #000;
}

.service-img svg.done path {
    fill: #000;
    fill-opacity: 1;
    stroke: none;
}