@charset "utf-8";

/* Link
*********************************************************************/
a{
    color: #333;
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}
a:hover img,
#header ul.navi a:hover{
    filter: alpha(opacity=60);
    -moz-opacity:0.6;
    opacity:0.6;
}

a.baseLink{
    text-decoration: none;
    color: #FFF;
    font-size: 1.2rem;
    display: inline-block;
    padding: 1.5em 2em;
    margin: 1.5em auto 0;
    background-color: rgba(240,96,96,1.0);
    transition: 0.3s;
}
a.baseLink:hover{
    color: #FFF;
    background-color: rgba(240,96,96,0.5);
}
a.baseLink:hover i{
transform-origin:center top;
animation:1.5s ease-in-out infinite rotation;
}
@keyframes rotation{
  0%{ transform:rotate(0);}
  7%{ transform:rotate(-30deg); }
  14%{ transform:rotate(0);}
  21%{ transform:rotate(30deg); }
  28%{ transform:rotate(0);}
  35%{ transform:rotate(-20deg); }
  42%{ transform:rotate(0);}
  49%{ transform:rotate(15deg); }
  56%{ transform:rotate(0);}
}

a img{
    vertical-align: middle;
    border: none;
    -webkit-transition: 0.2s ease-in-out;  
    -moz-transition: 0.2s ease-in-out;  
    -o-transition: 0.2s ease-in-out;  
    transition: 0.2s ease-in-out; 
}

/* ClearFix
**************************************/
.cf:before,
.cf:after {
    content: " ";
    display: table;
}
.cf:after {
    clear: both;
}
.cf {
    *zoom: 1;
}

/* General
*********************************************************************/
body {
    font-family: "游ゴシック体", "YuGothic", "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
    color: #222;
    text-align: left;
}
p {
    margin-bottom: 1em;
}
hr {
    display: none;
}
object,
embet {
    vertical-align: top;
    outline: none;
}
ol li {
    margin-left: 1.5em;
    list-style-type: decimal;
}
img {
    border: none;
}
i.fa-arrow-circle-right {
    color: #0063b6;
    text-decoration: none;
    margin-right: 0.2em;
}
input,
textarea {
    font-family: メイリオ, ＭＳ Ｐゴシック, Osaka;
    font-size: 100%;
}
.ime_off {
    ime-mode: disabled;
}
.btn {
    text-align: center;
    margin: 10px 0 20px;
}
/* 画像のRetina対応 */
img {
    vertical-align: middle;
    zoom: 0.5;
}
.img_l {
    float: left;
    margin: 0 2em 0.5em 0;
}
.img_r {
    float: right;
    margin: 0 0 0.5em 2em;
}
img.line {
    border: 1px solid #E5E5E5;
}
.v-pc{ display: block; }
.v-sp{ display: none; }

/* 404error
*********************************************************************/
div.error {
    text-align: center;
    padding: 40px 0 40px 0;
}

div.errortext {
    color: #FF0000;
    border-top: 1px dashed #FF0000;
    border-bottom: 1px dashed #FF0000;
    padding: 10px 0;
    margin: 1em 0 2em;
}

/* Layout
*********************************************************************/
#header{
    position: fixed;/*追従ナビのためpositionをfixedにする*/
    top:0;/*ポジション設定topを0*/
    height: 60px;/*headerの高さを指定*/
    width:98%;/*position:fixed;にしたため、横幅100%を設定*/
    /*border-bottom: 1px solid #AAA;*/
    background-color: rgba(50,50,50,0.7);
    color:#fff;
    padding: 10px 1%;
    z-index: 1000;
}
#contents{
    position: relative;
    background-color: #FFF;
    padding: 45px 0 0;
    z-index: 1;
    background-image: url(../img/bg_math.png);
    background-repeat: repeat;
}
#contents .sec{
    padding: 1em 4em;
}
#footer {
    clear: both;
    margin: 0 auto;
    padding: 3em 0;
    background-color: rgba(50,50,50,1.0);
    text-align: center;
}
.sec {
    /*
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    */
}
.box{
    overflow: hidden;
    min-height: 100vh;
}
#fix_contents{
    position: fixed;/*追従ナビのためpositionをfixedにする*/
    bottom:30px;/*ポジション設定topを0*/
    right: 10px;
    z-index: 9000;
}

/* #header
*********************************************************************/
#header h1,
#header nav{
    float: left;
    z-index: 9000;
}
#header h1{
    margin: 5px 0;
}
#header h1 span{
    display: block;
}
#header h1 span:first-child{
    font-size: 0.8rem;
}
#header h1 span:last-child{
    font-size: 2.2rem;
}
.menu-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 9000;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #ffffff;
    position: absolute;
    transition: .2s;
}
.menu-btn span:before {
    bottom: 8px;
}
.menu-btn span:after {
    top: 8px;
}
#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
}
#menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
}
#menu-btn-check {
    display: none;
}
#header nav li{
    display: inline-block;
    text-align: right;
    margin-top: 0.3em;
    margin-right: 1em;
}
#header nav li a{
    color: #FFF;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: .3s;
    padding-bottom: 4px;
}
#header nav li a::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    content: '';
    width: 0;
    height: 1px;
    background-color: rgba(224,66,114,1.0);
    transition: .3s;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
#header nav li a:hover::after {
    width: 100%;
}

/* #contents
*********************************************************************/
#mainPic{
    width: 100%;
    height: 100vh;
    position: relative;
}
#mainPic:before{
    /*header の疑似要素に背景画像を指定*/
    content:"";
    position:fixed;
    top:0;
    left:0;
    z-index:-1;
    width:100%;
    height: 100vh;
    /*背景画像設定*/
    background:url("../img/main_bg.jpg") no-repeat center;
    background-size: cover;
}
#mainPic div{
    position:fixed;
    top: 50%;
    left: 50%;
    z-index:0;
    color: #FFF;
    width: 75%;
    max-width: 1000px;
    padding: 2.5%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7);
}
#mainPic p{
    line-height: 1.5;
}
#contents .wrapper{
    max-width: 1080px;
    padding: 0 10px;
    margin: 6% auto 0;
}
#contents h1 {
    position: relative;
    padding-top: 50px;
    padding-bottom: 50px;
    font-size: 26px;
    text-align: center;
    margin-bottom: 0.5em;
}
#contents h1 span {
    position: relative;
    z-index: 2;
}
#contents h1::before {
    content: attr(data-en);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(224,66,114,0.2);
    font-size: 80px;
    font-style: italic;
}
#contents h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%) rotate(30deg);
    width: 1px;
    height: 40px;
    background-color: rgba(224,66,114,1);
}

/*about*/
#about p{
    line-height: 2.0;
}
/*Create*/
#Create ul{
    display: flex;
    justify-content: space-between;
}
#Create ul li{
    width: 20%;
    list-style: none;
    padding: 2rem 1rem;
    border-radius: 3px;
    box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
    background-color: rgba(0,0,0,0.1);
}
#Create ul li div{
    text-align: center;
    margin-bottom: 1.5rem;
}
#Create ul li:nth-of-type(2) div{
    position: relative;
    height: 6rem;
}
#Create ul li div i{
    font-size: 6rem;
    color: rgba(224,66,114,0.7);
}
#Create ul li:nth-of-type(2) div i{
    position: absolute;
    font-size: 4rem;
}
#Create ul li:nth-of-type(2) div i:nth-of-type(1){
    top: 0;
    left: 15%;
}
#Create ul li:nth-of-type(2) div i:nth-of-type(2){
    bottom: 0;
    right: 15%;
}
#Create ul li strong{
    display: block;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* #footer
*********************************************************************/
#footer small{
    color: #E6B422;
    margin: 0 auto;
    padding: 0 10px;
    max-width: 1000px;
}

/* media query
*********************************************************************/
@media (max-width: 800px) {
.v-pc{ display: none; }
.v-sp{ display: block; }

a.baseLink{
    font-size: 1.0rem;
    padding: 1.5em 1em;
    margin: 0.5em auto 0;
}

/* #header */
#menu-btn-check:checked ~ nav {
    left: 0;
}
.menu-btn {
    display: flex;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    display: block;
}
#header nav{
    float: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;
    z-index: 5000;
    background-color: rgba(100,100,100,0.7);
    transition: all 0.5s;
}
#header nav ul{
    margin-top: 100px;
    margin: 100px 1em 0;
    padding-left: 0;
}
#header nav li{
    display: block;
    text-align: left;
    margin-top: 0;
    margin-right: 0;
    border-bottom: 1px solid #333;
}
#header nav li a{
    color: #FFF;
    padding: 0.5em;
    display: block;
}

/* #contents */
#mainPic div{
    top: 55%;
    width: 85%;
    max-width: 1000px;
    padding: 4.5%;
}
#mainPic p{
    font-size: 0.9rem;
}

#contents .wrapper{
    margin: 25% 2% 0;
}

}