html {
    font-size: 62.5%;
    scroll-behavior: smooth;
  }

body {
font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro','ヒラギノ角ゴ Pro W3','メイリオ',Meiryo,'ＭＳ Ｐゴシック',sans-serif;
font-size: 1.6rem;
letter-spacing: 0.05em;
overflow-x: hidden;
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: grayscale;
}

img {
width: 100%;
margin: 0;
padding: 0;
vertical-align: top;
}

svg {
    display: block;
}

/* 非表示 */
#loader-bg.is-hide,
#loader.is-hide {
    display: none;
}
/* ローディング画面をフェードアウト */
.fadeout-bg {
    transition: 0.6s ease;
    opacity: 0;
    pointer-events: none;
}
/* ローダーをフェードアウト */
.fadeout-loader {
    transition-property: opacity;
    transition-delay: .9s;
    transition-duration: .3s;
    opacity: 0;
    pointer-events: none;
}
/* ローディング画面 */
#loader-bg {
    background: #101010;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}
#loader {
    height: 120px;
    position: fixed;
    width: 100%;
    top: 40%;
}
#loader p img {
    display: block;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}


main {
    display: block;
}

.for--desktop {
    display: block;
}

.for--mobile {
    display: none;
}

a.anchor{
    display: block;
    padding-top: 120px;
    margin-top: -120px;
}

/* header for desktop */

.bar {
    display: block;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

#header {
    padding: 1.2em 2em;
    height: 114px;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-box-pack: justify;
	-ms-flex-pack: justify;
    justify-content: space-between;
    /* align-items: flex-end; */
    line-height: 1;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    transition: 0.4s ease;
    font-feature-settings: 'palt';
}

#header.hide {
    transform: translateY(-100%);
}

#h1-logo {
   width: 134px;
   transition: 0.3s ease;
}

#h1-logo:hover {
   opacity: 0.7;
}

#h1-logo a {
    display: block;
    width: 100%;
    height: 100%;
}

#h1-logo a img {
    height: 72px;
}

.nav-list {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    color: #fff;
    justify-content: flex-end;
    padding-top: 52px;
}

.nav-item {
    display: block;
    width: 170px;
    font-size: 2.2rem;
}

.item-head {
    display: block;
    text-align: right;
    font-family: 'Audiowide', cursive;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
    margin-bottom: 0.9em;
}

#about, #works {
    max-width: 150px;
}

.nav-item.active .item-head{
    text-shadow: -2px -2px 6px rgba(202,0,17,0.8);
    text-shadow: -2px 2px 6px rgba(202,0,17,0.8);
    text-shadow: 2px -2px 6px rgba(202,0,17,0.8);
    text-shadow: 2px 2px 6px rgba(202,0,17,0.8);
    color: #ca0011;
}

.nav-lower {
    width: 300px;
    background-color: rgba(0, 0, 0, 0.9);
    font-size: 1.4rem;
    font-weight: 100;
    transition: 0.3s ease;
    height: 0;
    overflow: hidden;
    margin-left: 3.5em;
}

.lower-head {
    margin-bottom: 0.8em;
}

.nav-lower.active{
    height: 90%;
    padding: 1.5em;
}

.nav-lower a {
    display: block;
    width: 260px;
    height: 41.8px;
    position: relative;
    margin-bottom: 0.6em;
}

.nav-lower a svg {
    stroke: #fff;
    stroke-width: 1;
    fill: transparent;
    transition: 0.15s ease;
}

.nav-lower a:hover svg {
    fill: #fff;
}

.nav-lower a div {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 2em;
    font-weight: 400;
    transition: 0.15s ease;
}

.nav-lower .menu-s {
    font-size: 1.3rem;
}

.nav-lower a:hover div {
    color: #ca0011;
}

/* buttons */

.button-arrow {
    width: 280px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: 0.2s ease;
    font-weight: bold;
    cursor: pointer;
}

.button-arrow a {
    display: block;
    width: 100%;
    padding: 1.0em 1.0em 1.0em 0;
    font-family: 'Audiowide', cursive;
    font-size: 2.0rem;
}

.button-arrow a span::after {
    display: block;
    content: '';
    width: 70%;
    height: 1.0em;
    border-bottom: 2px solid #ca0011;
    border-right: 3px solid #ca0011;
    margin-left: -0.6em;
    margin-top: -0.6em;
    transform: skew(45deg, 0);
    transition: 0.2s ease;
}

.button-arrow:hover {
    letter-spacing: 0.2em;
}

.button-arrow:hover a span::after {
    width: 100%;
}

/* square button */

.button-line {
    font-weight: 500;
    background: transparent;
    outline: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: block;
    text-align: center;
    letter-spacing: 0.1em;
    width: 200px;
    max-width: 100%;
    height: 52px;
    line-height: 52px;
    padding: 0;
    border: none;
    font-size: 2.0rem;
}
.button-line a,
.button-line span {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.button-line input {
    display: block;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.button-line:before,
.button-line:after {
    position: absolute;
    content: "";
    right: 0;
    top: 0;
    background: #ca0011;
    transition: all 0.2s ease;
}
.button-line:before {
    height: 50%;
    width: 2px;
}
.button-line:after {
    width: 20%;
    height: 2px;
}
.button-line:hover:before, .button-line:focus:before {
    height: 100%;
}
.button-line:hover:after, .button-line:focus:after {
    width: 100%;
}
.button-line a:before,
.button-line a:after,
.button-line span:before,
.button-line span:after {
    position: absolute;
    content: "";
    display: block;
    left: 0;
    bottom: 0;
    background: #ca0011;
    transition: all 0.2s ease;
}
.button-line a:before,
.button-line span:before {
    width: 2px;
    height: 50%;
}
.button-line a:after,
.button-line span:after {
    width: 20%;
    height: 2px;
}

.button-line a:hover, .button-line a:focus,
.button-line input:hover, .button-line input:focus {
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.button-line a:hover:before, .button-line a:focus:before,
.button-line span:hover:before, .button-line span:focus:before {
    height: 100%;
}
.button-line a:hover:after, .button-line a:focus:after,
.button-line span:hover:after, .button-line span:focus:after {
    width: 100%;
}

.button-line input:focus,
.button-line input:active {
    background-color: transparent;
    outline: none;
    border: none;
}

/* footer */

#footer #pagetop-btn {
    position: fixed;
    right: 16px;
    bottom: 24px;
    display: block;
    width: 100px;
    height: 100px;
    background-image: url(../img/page-top_bg.png);
    background-size: 99% 99%;
    background-position: center center;
    font-family: 'Audiowide', cursive;
    font-size: 1.8rem;
    color: #fff;
    text-align: center;
    padding-top: 10px;
    line-height: 80px;
    transition: 0.1s ease;
}

#footer #pagetop-btn.hidden {
    display: none;
}

#footer #pagetop-btn:hover {
    padding-top: 4px;
}

#footer {
    background-color: #101010;
    padding-top: 60px;
    padding-bottom: 100px;
}

#footer .footer-logo {
    width: 150px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
    transition: 0.3s ease;
}

#footer .footer-logo:hover {
    opacity: 0.7;
}

#footer .footer-nav {
    font-family: 'Audiowide', cursive;
    text-transform: uppercase;
    color: #fff;
    font-size: 1.8rem;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 80px;
}

#footer .footer-navitem {
    transition: 0.2s ease;
}

#footer .footer-navitem:hover {
    color: #ca0011;
}

#footer .footer-navitem a {
    display: block;
    padding: 0 24px;
}

#footer small {
    font-size: 1.4rem;
    display: block;
    text-align: center;
    color: #fff;
}

/* lower */

.lower-top {
    padding: 140px 2em 60px;
    color: #fff;
    font-family: 'Audiowide', 'Noto Sans JP', sans-serif;
    text-transform: uppercase;
}

.lower-top>ul {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    font-size: 1.3rem;
    margin-bottom: 2em;
}

.lower-top>ul li {
    margin-right: 1em;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
}

.lower-top>ul li::after {
    display: block;
    content: '＞';
    margin-left: 1em;
    height: 1em;
    font-size: 1.2rem;
}

.lower-top>ul li:last-child::after {
    content: none;
}

.lower-top h2 {
    text-align: center;
    font-size: 5.6rem;
    line-height: 1;
}

.lower-top h2 div span {
    display: inline-block;
    padding: 0 0.2em;
}

.lower-top h2 div::before, .lower-top h2 div::after {
    display: inline-block;
    content: '';
    width: 160px;
    height: 40px;
    background-image: url('../img/h2-line.png');
    background-size: 99%;
    background-position: center center;
    background-repeat: no-repeat;
}


.lower-top h2 .h2-cap {
    display: block;
    font-size: 1.8rem;
    margin-top: 1em;
    font-weight: 100;
    line-height: 1.5;
}


/* for tablet デスクトップファースト */
@media screen and (max-width: 1280px) {

}

/* for mobile デスクトップファースト */
@media screen and (max-width: 1024px) {
    .for--desktop {
        display: none;
    }

    .for--mobile {
        display: block;
    }

    .bar {
        background: rgba(0, 0, 0, 0.8);
        position: fixed;
    }

    #header {
        padding: 1em 4%;
        height: auto;
    }

    #h1-logo {
        width: 80px;
        transition: 0.3s ease;
    }

    #h1-logo a img {
        height: auto;
    }

    /* モバイル版メニュー表示 */

    #nav-mobile.active {
        transform: translateY(0%);
    }

    #nav-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #101010;
        z-index: 1;
        padding: 75px 4% 0;
        -webkit-overflow-scrolling: touch;
        overflow-y: hidden;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;/* IE, Edge 対応 */
        scrollbar-width: none;/* Firefox 対応 */
        transform: translateY(-100%);
        transition: 0.3s ease;
    }

    #nav-mobile .nav-list {
        display: block;
        width: 100%;
        padding-top: 2em;
        justify-content: flex-start;
    }

    #nav-mobile::-webkit-scrollbar {
        display: none;/* Chrome, Safari 対応 */
    }

    #nav-mobile .nav-item {
        width: inherit;
        font-size: 1.8rem;
        margin-bottom: 1.5em;
    }

    #nav-mobile .item-head {
        text-align: left;
        font-size: 2.0rem;
        margin-bottom: 0.4em;
        color: #ca0011;
    }

    #nav-mobile .mobile-nav-lower {
        line-height: 1.5;
    }

    #nav-mobile .mobile-nav-lower div {
        font-size: 1.6rem;

    }

    #nav-mobile .mobile-nav-lower a {
        display: inline-block;
        font-size: 1.5rem;
        font-weight: 100;
    }

    #nav-mobile .mobile-nav-lower a::after {
        display: inline-block;
        content: '/';
        padding: 0 1em;
    }

    /*トグルボタンのスタイルを指定*/
.Toggle {
    display: block;
    width: 45px;
    height: 42px;
    cursor: pointer;
    z-index: 3;
    position: relative;
  }

  .Toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 1.5px;
    -webkit-transition: .2s ease-in-out;	/*変化の速度を指定*/
    -moz-transition: .2s ease-in-out;		/*変化の速度を指定*/
    transition: .2s ease-in-out;			/*変化の速度を指定*/
    left: 0;
  }

  .Toggle span:nth-child(1) {
    top: 13%;
  }

  .Toggle span:nth-child(2) {
    top: 48%;
  }

  .Toggle span:nth-child(3) {
    top: 84%;
  }

  /* 最初のspanをマイナス45度に */
  .Toggle.active span:nth-child(1) {
    top: 43%;
    left: 0;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  /* 2番目と3番目のspanを45度に */
  .Toggle.active span:nth-child(2),
  .Toggle.active span:nth-child(3) {
    top: 43%;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }


    /* square button */

    .button-line {
        background: rgba(255, 255, 255, 0.2);
        height: 52px;
        line-height: 52px;
        padding: 0;
        border: 2px #ca0011 solid;
    }

    .button-line a {
        transition: all 0.2s ease;
    }

    .button-line:before,
    .button-line:after,
    .button-line a:before,
    .button-line a:after,
    .button-line span:before,
    .button-line span:after {
        content: none;
        width: 0;
        height: 0;
    }


    /* footer */

    #footer {
        padding-top: 48px;
        padding-bottom: 80px;
    }

    #footer #pagetop-btn {
        width: 64px;
        height: 64px;
        line-height: 44px;
        font-size: 1.4rem;
    }

    #footer .footer-logo {
        width: 20%;
        margin-bottom: 32px;
    }

    #footer .footer-nav {
        margin-bottom: 56px;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        flex-wrap: wrap;
        line-height: 1.7;
    }

    #footer small {
        font-size: 1.2rem;
    }

    /* lower */

    .lower-top {
        padding: 90px 4% 48px;
    }

    .lower-top ul {
        display: -webkit-flex;
        display: -ms-flex;
        display: flex;
        font-size: 1.2rem;
        margin-bottom: 3em;
        color: #eee;
    }

    .lower-top h2 {
        font-size: 3.2rem;
    }

    .lower-top h2 div::before, .lower-top h2 div::after {
        width: 40px;
        height: 25px;
        background-image: url('../img/h2-line_mb.png');
    }


    .lower-top h2 .h2-cap {
        font-size: 1.4rem;
    }
}