﻿

/* ========BASIC======== */

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

html {
    font-size: 62.5%;
    /*pxだと10px;*/
    overflow-y: scroll;
    font-family: 'Roboto', 'Catamaran', 'Yu Gothic Pr6N D', '游ゴシック体 Pr6N D', sans-serif;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    color: #333;
    letter-spacing: 0.3em;
    line-height: 2.2;
    overflow: hidden;
}

#main {
    margin-top: 90px
}

.sp {
    display: block;
}

.pc {
    display: none;
}

.fade {
    opacity: 1 !important;
}

img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul {
    list-style: none;
}

h1 {
    margin: 0;
    padding: 0;
    font-size: 2.0rem;
    width: 200px;
    height: 30px;
}

.logo_svg {
    fill: #000;
}

h2 {
    margin: 0;
    padding: 0;
    font-size: 1.8rem;
}

h3 {
    margin: 0;
    padding: 0;
    font-size: 3.2rem;
    font-weight: 800;
}

section {
    margin-bottom: 15%;
}

header {
    padding: 0 5%;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 999;
    background: #fff;
    min-height: 65px;
    -webkit-transition: all 1s;
    -moz-transition: all 1s;
    -ms-transition: all 1s;
    -o-transition: all 1s;
    transition: all 1s;
}

a {
    text-decoration: none;
    color: #333;
    transition: .3s;
}

a:hover {
    opacity: 0.5;
}

header nav {
    margin: 0 0 0 auto;
}

header ul {
    list-style: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    line-height: 1.5;
}

header li {
    margin: 0 0 0 40px;
    font-size: 1.6rem;
    font-weight: 700;
}

.header-inner {
    display: contents;
}

.pc-nav {
    display: none;
}

.sp-nav {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: block;
    background: rgba(0, 0, 0, .8);
    opacity: 0;
    transform: translateY(-100%);
    transition: all .2s ease-in-out;
}

.btn-gNav {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 25px;
    z-index: 3;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-transition: all 400ms;
    transition: all 400ms;
}

.btn-gNav span {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #666;
    border-radius: 10px;
    -webkit-transition: all 400ms;
    transition: all 400ms;
}

.btn-gNav span:nth-child(1) {
    top: 0;
}

.btn-gNav span:nth-child(2) {
    top: 10px;
    width: 85%;
    display: block;
}

.btn-gNav span:nth-child(3) {
    top: 20px;
}

.btn-gNav.open span:nth-child(1) {
    background: #fff;
    top: 6px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.btn-gNav.open span:nth-child(2) {
    display: none;
}

.btn-gNav.open span:nth-child(3) {
    top: 6px;
    background: #fff;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}


/*スマホメニュー*/

.sp-nav ul {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.sp-nav li {
    margin: 0;
    padding: 0;
}

.sp-nav li span {
    font-size: 15px;
    color: #fff;
}

.sp-nav li a,
.sp-nav li span {
    display: block;
    padding: 20px 0;
    color: #fff;
}


/*-閉じるアイコンー*/

.sp-nav .close {
    position: relative;
    padding-left: 20px;
}

.sp-nav .close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 16px;
    height: 1px;
    background: #fff;
    transform: rotate(45deg);
}

.sp-nav .close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 16px;
    height: 1px;
    background: #fff;
    transform: rotate(-45deg);
}

.toggle {
    transform: translateY(0);
    opacity: 1;
}


/*--------------- footer area start ---------------*/

#footer {
    background: #f1f1f1;
    padding-top: 10%;
}

#footer a {
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2.0;
    display: block;
}

#footer .wrap {
    color: #333;
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
}

#footer .wrap h3 {
    border: none;
    padding: 10% 6%;
    width: 250px;
}

#footer .wrap .box:first-child,
#footer .wrap .box:nth-child(2) {
    width: 100%;
}

#footer .wrap .box:first-child {
    width: 80%;
}

#footer .wrap .box:nth-child(2) {
    width: 100%;
}

#footer .wrap .box ul {
    list-style: none;
}

#footer .wrap .box ul li a {
    display: block;
    padding: 5px 15px;
}

#footer .wrap .box p {
    padding-left: 5%;
    padding-bottom: 10%;
    letter-spacing: 0.15em;
}

#footer .copyright {
    margin: 0;
    padding-bottom: 10%;
    text-align: center;
    letter-spacing: 0.15em;
}


/* スマホ用のCSSはメディアクエリの外に記述する */

@media screen and (min-width: 481px) {
    /* 481px以上に適用されるCSS（タブレット用） */
}

@media screen and (min-width: 960px) {
    /* 960px以上に適用されるCSS（PC用） */
    section {
        margin-bottom: 100px;
    }
    #main {
        margin-top: 170px
    }
    .sp {
        display: none;
    }
    .pc {
        display: block;
    }
    .inner {
        width: 1200px;
        margin: 0 auto;
    }
    .pc-nav {
        display: block;
    }
    .sp-nav {
        display: none;
    }
    .header-inner {
        max-width: 1200px;
        min-width: 950px;
        margin: 0 auto;
    }
    header {
        min-height: 80px;
    }
    #hamburger {
        display: none;
    }
    .btn-gNav {
        display: none;
    }
    /*--------------- footer area start ---------------*/
    #footer {
        padding: 50px 30px 10px;
    }
    #footer .wrap {
        width: 900px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    #footer .wrap h3 {
        padding-top: 0;
    }
    #footer .wrap p {
        padding-top: 0;
    }
    #footer .wrap .box ul {
        margin: 0;
        padding: 0 0 20px 0;
        list-style: none;
    }
    #footer .wrap .box:first-child {
        width: 60%;
    }
    #footer .wrap .box:nth-child(2) {
        width: 40%;
    }
    #footer .wrap .copyright {
        margin: 0 auto;
        padding: 20px 0 0 0;
    }
}


/*--------------- animation ---------------*/


/*========= h3 1文字ずつ出現させるためのCSS ===============*/

.eachTextAnime span {
    opacity: 0;
    -moz-opacity: 0;
    -khtml-opacity: 0;
}

.eachTextAnime.appeartext span {
    animation: text_anime_on 0.6s ease-out forwards;
}

@-webkit-keyframes text_anime_on {
    0% {
        opacity: 0;
        -moz-opacity: 0;
        -khtml-opacity: 0;
    }
    100% {
        opacity: 1;
        -moz-opacity: 1;
        -khtml-opacity: 1;
    }
}


/*========= TOP h2 1文字ずつ出現させるためのCSS ===============*/

.TextRandomAnime span {
    opacity: 0;
}

.TextRandomAnime_sec span {
    opacity: 0;
}

.TextRandomAnime_thi span {
    opacity: 0;
}

.TextRandomAnime_fou span {
    opacity: 0;
}

.TextRandomAnime.appearRandomtext span {
    animation: text_randomanime_on 0.8s ease-out forwards;
}

.TextRandomAnime_sec.appearRandomtext span {
    animation: text_randomanime_on 0.5s ease-out forwards;
}

.TextRandomAnime_thi.appearRandomtext span {
    animation: text_randomanime_on 0.7s ease-out forwards;
}

.TextRandomAnime_fou.appearRandomtext span {
    animation: text_randomanime_on 0.6s ease-out forwards;
}


/*アニメーションで透過を0から1に変化させる*/

@keyframes text_randomanime_on {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.TextRandomAnime.appearRandomtext span:nth-child(2n) {
    animation-delay: .5s;
    /* spanのついた2の倍数の文字列の変化を0.5秒遅らせる*/
}

.TextRandomAnime.appearRandomtext span:nth-child(3n+1) {
    animation-delay: .15s;
    /* spanのついた3の倍数＋1の文字列の変化を0.15秒遅らせる*/
}

.TextRandomAnime_sec.appearRandomtext span:nth-child(2n) {
    animation-delay: .3s;
    /* spanのついた2の倍数の文字列の変化を0.5秒遅らせる*/
}

.TextRandomAnime_sec.appearRandomtext span:nth-child(3n+1) {
    animation-delay: .20s;
    /* spanのついた3の倍数＋1の文字列の変化を0.15秒遅らせる*/
}

.TextRandomAnime_thi.appearRandomtext span:nth-child(2n) {
    animation-delay: .6s;
    /* spanのついた2の倍数の文字列の変化を0.5秒遅らせる*/
}

.TextRandomAnime_thi.appearRandomtext span:nth-child(3n+1) {
    animation-delay: .18s;
    /* spanのついた3の倍数＋1の文字列の変化を0.15秒遅らせる*/
}

.TextRandomAnime_fou.appearRandomtext span:nth-child(2n) {
    animation-delay: .3s;
    /* spanのついた2の倍数の文字列の変化を0.5秒遅らせる*/
}

.TextRandomAnime_fou.appearRandomtext span:nth-child(3n+1) {
    animation-delay: .19s;
    /* spanのついた3の倍数＋1の文字列の変化を0.15秒遅らせる*/
}

.fadeInTrigger,
.fadeLeftTrigger-top,
.fadeLeftTrigger,
.fadeRightTrigger,
.fadeInTrigger_In {
    opacity: 0;
}

.fadeIn {
    animation-name: fadeInAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    background-size: 100% 1px !important;
    opacity: 0;
}

@keyframes fadeInAnime {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeLeft {
    animation-name: fadeLeftAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeLeftAnime {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeRight {
    animation-name: fadeRightAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeRightAnime {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/*==================================================
シャッ（背景色が伸びて出現）
===================================*/

.bgappearTrigger {
    opacity: 0;
}


/*背景色が伸びて出現（共通）*/

.bgextend {
    animation-name: bgextendAnimeBase;
    animation-duration: -1s;
    animation-fill-mode: forwards;
    position: relative;
    overflow: hidden;
    /*　はみ出た色要素を隠す　*/
    opacity: 0;
}

@keyframes bgextendAnimeBase {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/*中の要素*/

.bgappear {
    animation-name: bgextendAnimeSecond;
    animation-duration: 1s;
    animation-delay: 0.1s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes bgextendAnimeSecond {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/*左から*/

.bgLRextend::before {
    animation-name: bgLRextendAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #e9d1b9;
    /*伸びる背景色の設定*/
}

@keyframes bgLRextendAnime {
    0% {
        transform-origin: left;
        transform: scaleX(0);
    }
    50% {
        transform-origin: left;
        transform: scaleX(1);
    }
    50.001% {
        transform-origin: right;
    }
    100% {
        transform-origin: right;
        transform: scaleX(0);
    }
}


/* 縮小 */

.zoomOutTrigger {
    opacity: 0;
}

.zoomOut {
    animation-name: zoomOutAnime;
    animation-duration: 1.1s;
    animation-fill-mode: forwards;
}

@keyframes zoomOutAnime {
    from {
        transform: scale(1.2);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}