Newer
Older
web / testpage / test.css
@ItoRino ItoRino on 27 Aug 2021 6 KB homeの追加
@charset "UTF-8";
* {
    margin: 0px;
    padding: 0px;
}

 html {
    font-size: 100%;
  }
 body{
    margin: 0;
    height: 100%;
    font-family: "Sawarabi Gothic";
    color: rgb(45, 45, 45);
}
body:after{
    margin: 0;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    content: "";
    background: #afeeee;
    /* background: -moz-linear-gradient(top, #afeeee 0%,#FFF 100%); */
    /* background: -webkit-linear-gradient(top, #afeeee 0%,#FFF 100%); */
    background: linear-gradient(to bottom, #afeeee 0%, #fff 100%);
    z-index: -1;
}

body.vmenuspace {margin-top: 2em; border-top: 3px solid;}
div.scrollbox {
    height: 6em; overflow: auto; background: #eff;
}

img {
    max-width: 100%;
  }

/*--------------------------------------common---------------------------------*/
  .section-title {
    font-size: 1.6rem;
    text-align: center;
    position: relative;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 70px;
  }
  .section-title::before{
    position: absolute;
    bottom: -20px;
    left: calc(50% - 30px);
    width: 65px;
    height: 5px;
    content: '';
    border-radius: 3px;
    background: rgb(2, 219, 248);
  }

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    margin-bottom: 80px;
  }
/* --------------------------------------ヘッダー ------------------------------------------------------------*/
.header{
    width: 100vw;
    height: auto;
    z-index: 99;
    position: fixed;
    /* transition: all .5s; */
    top:0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.header.change-color {
    background-color: #ffffff;
  }

.header-nav {
    height: auto;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
 }
 
 .header-nav nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
 }
 
 .header-nav nav ul li {
    margin-right: 50px;
    list-style: none;
    font-size: 1.1em;
    padding-left: 9px;
    padding-right: 9px;
    border-left: grey 2px dotted;
    border-right: grey 2px dotted;
 }
 .header-nav nav ul .bd-no{
   border: none;
 }

 .header-nav nav ul li a{
    text-decoration: none;
    color: black;
    transition: .3s;
    display: block;
 }
 .header-nav nav ul li a:hover{
    border-bottom: grey 3px dotted;
 }
 .header-nav nav ul li .bd-none:hover{
    border-bottom: none;
 }

 .top-logo{
     width: 85px;
     height: 85px;
     object-fit: cover;
 }
 header.scroll-nav{
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    padding-top: 0;
    padding-bottom: 0;
 }
 /* -----------------------------------------------------メインビジュアル */
 #mainvisual {
    height: 650px;
    position: relative;
    margin-bottom: 120px;
    width: 100%;
    margin:0;
    padding:0;
  }
.mainvisual-inner{
    margin-top: 110px;
    max-width: 100%;
}
  #mainvisual .top-text{
    position: absolute;
    z-index: 10;
    top: 85px;
    left: 6%;
    overflow: hidden;

  }
  #mainvisual .top-text .text{
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    line-height: 4rem;
    -ms-writing-mode: tb-rl;
	  writing-mode: vertical-rl;
    text-shadow: 0 4px 6px #000;
  }
  .top-text-color{
    color: rgb(1, 204, 255);
  }
  #mainvisual .top-title{
    position: absolute;
    z-index: 10;
    top: 280px;
    right:30%;
    overflow: hidden;
  }
  #mainvisual .top-title .site-title{
    font-size: 2.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 4px 6px #000;
  }
  #mainvisual .top-title .site-title .small{
    font-size: 1.6rem;
    color: indianred;
    text-shadow: 0 4px 6px #000;
    font-weight: bold;
  }
  .mainvisual-img{
    position: relative;
    max-width: 100%;
  }
  .mainvisual-img .top-title{
    position: absolute;
    top: 270px;
    right: 30%;
    z-index: 10;
    font-size: 2.8rem;
  }
  #mainvisual .fade li {
    max-width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    animation: fade 15s infinite;
    list-style: none;
  }
  #mainvisual .fade li:nth-child(1) {
    animation-delay: 0s;
  }
  #mainvisual .fade li:nth-child(2) {
    animation-delay: 5s;
  }
  #mainvisual .fade li:nth-child(3) {
    animation-delay: 10s;
  }
  #mainvisual .fade li img {
    width: 1500px;
    height: 610px;
    object-fit: cover;
    border-radius:1% 1% 1% 1%;
  }
  #mainvisual .fade li::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: inset 0px 0px 10px 10px #fff;
    /* border-radius:1% 1% 1% 1%; */
  }
  @keyframes fade {
    0% {
      opacity: 0;
    }
    15% {
      opacity: 1;
    }
    30% {
      opacity: 1;
    }
    45% {
      opacity: 0;
    }
    100% {
      opacity: 0;
    }
  }

/* home */
#home{
    height: 2000px;
}
.home-items{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content:space-evenly;
    align-items: center;
    margin-top: 30px;
}
#home .home-items h3{
  font-size: 1.4rem;
}
#home .home-items p{
  font-size: 1.3rem;
  line-height: 2.0;
}
.what_study{
    width:730px;
    margin-bottom: 10px;
}
.what_study h3{
    /* background: linear-gradient(transparent 50%, yellow 50%); */
    border-bottom: rgb(247, 108, 44) 5px double;
    padding-bottom: 2px;
    width: 346px;
    font-size: 1.3rem;
    margin-bottom: 5px;
}
.what_study p{
  font-size: 1.2rem;
  line-height: 2.0;
}
main {margin: 1ex;} /* PLEASE Remove this if this is too much effective */
.aiming_top{
    width:730px;
    margin-top: 50px;
}
.aiming_top h3{
    /* background: linear-gradient(transparent 50%, yellow 50%); */
    border-bottom: rgb(247, 108, 44) 5px double;
    padding-bottom: 2px;
    width: 680px;
    font-size: 1.3rem;
    margin-bottom: 5px;
}
.aiming_top p{
  font-size: 1.2rem;
  line-height: 2.0;
}
em.see {
    font-style: normal; font-weight: bold;
    background: linear-gradient(to top, yellow, transparent);
}
@media screen and (max-width: 746px){
    #home h3{
        font-size: 1.2rem;
    }
    #home p{
        font-size: 1.1rem;
        line-height: 1.85;
    }
    .aiming_top{
        max-width: 500px;
    }
}