@charset "UTF-8";

/* 共通部分 */
* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

p {
  line-height: 160%;
}

a {
  text-decoration: none;
}

.clear {
  clear: left;
}

img {
  max-width: 100%;
}

/* -------------- メイン画像部分 --------------  */
.top-wrapper {
  padding: 220px 0 100px 0;
  background-image: url(img/26129.jpg);
  background-size: cover;
  color: white;
  text-align: center;
  font-weight: normal;
}

.container {
  max-width: 1300px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

.top-wrapper h1 {
  font-size: 45px;
  letter-spacing: 5px;
}

.top-wrapper p {
  font-size: 20px;
  margin-bottom: 35px;
}

.signup {
  background-color: #239b76;
}

.facebook {
  background-color: #3b5998;
  margin-right: 10px;
}

.twitter {
  background-color: #55acee;
}

.btn {
  padding: 8px 24px;
  color: white;
  display: inline-block;
  opacity: 0.8;
  border-radius: 4px;
}

.btn:hover {
  opacity: 1;
}

.fa {
  margin-right: 5px;
}

/* -------------- header -------------- */
header {
  height: 65px;
  width: 100%;
  background-color: rgba(34,49,52,0.9);
  position :fixed;
  top: 0;
  z-index: 10;
}

.logo {
  width: 160px;
  margin-top: 25px;
}

.header-left {
  float: left;
}

/* #menu {
  float: right;
  transition: all 0.5s;
}

#menu a {
  list-style: none;
  line-height: 65px;
  padding: 0 25px;
  color: #ffffff;
  float: left;
  cursor: pointer;
  display: block;
} */

/* .header-right:hover {
  background-color: rgba(255,255,255,0.5);
} */

/* .menu-icon {
  color: white;
  float: right;
  font-size: 25px;
  line-height: 65px;
  display: none;
} */

/* -------------- モーダル -------------- */
.signup-modal-wrapper {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.modal {
  position: absolute;
  top: 20%;
  left: 34%;
  background-color: #e6ecf0;
  padding: 20px 0;
  border-radius: 10px;
  width: 450px;  /*boxのサイズ*/
  height: auto;
  text-align: center;
}

.fa-times {
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(128, 128, 128, 0.46);
  cursor: pointer;
}

#signup-form {
  width: 100%;  /*boxの真ん中に配置*/
}

#signup-form h2 {
  color: #5f5d60;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

#signup-form input {
  width: 320px;  /*mail,passのboxサイズ*/
  margin-bottom: 20px;
  font-size: 12px;
  padding: 12px 12px;
  border: 1px solid #d0d5d8;
  border-radius: 5px;
}

#submit-btn {
  display: inline-block;
  padding: 14px 140px;
  background-color: #5dca88;
  border: none;
  border-radius: 3px;
  color: white;
  margin: 10px auto;
  cursor: pointer;
}

.lesson-wrapper {
  padding-bottom: 80px;
  background-color: #f7f7f7;
  text-align: center;
  display: flex;
  flex-direction: row;
}

.heading {
  padding-top: 60px;
  padding-bottom: 30px;
  color: #5f5d60;
}

.heading h2 {
  font-weight: normal;
}

/* -------------- About -------------- */
article {
  width: 74%;
}

/*  -------------- サイドバー -------------- */
.aside {
  width: 22%;
}

.news-contents {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.post-info {
  position: relative;
  padding-top: 4px;
  margin-bottom: 40px;
}

.post-date {
  background: #55acee8e;
  border-radius: 50%;
  color: #f7f7f7;
  width: 100px;
  height: 100px;
  font-size: 1.625rem;
  text-align: center;
  position: absolute;
  top: 0;
  padding-top: 10px;
}

.post-title {
  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: 2rem;
  font-weight: normal;
}

.post-title, .post-cat {
  margin-left: 120px;
}

.post-title {
  margin-bottom: 0;
}

.post-cat {
  margin-top: 0;
}

.article img {
  margin-bottom: 20px;
}

.article p {
  margin-bottom: 1rem;
}

.sub-title {
  font-size: 1.375rem;
  padding: 0 8px 8px;
  border-bottom: 2px solid #000;
  font-weight: normal;
}

.aside p {
  padding: 12px 10px;
}

.sub-menu{
  margin-bottom: 60px;
  list-style: none;
  padding-left: 0;
}

.sub-menu li {
  border-bottom: 1px solid #ddd;
}

.sub-menu a {
  color: #432;
  padding: 10px;
  display: block;
}

.sub-menu a:hover {
  color: #00ddbb;
}
/* work */

.lesson {
  float: left;
  width: 25%;
}

.lesson-icon {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  /* margin: 0 auto; */
}

.lesson-icon p {
  position: absolute;
  top: 75px;
  width: 100%;
  color: #fff;
  /* text-shadow: 1px 1px 0 #000,
               -1px 1px 0 #000,
               1px -1px 0 #000,
               -1px -1px 0 #000; */
}

.text-contents {
  margin: 3% auto;
  width: 80%;
  font-size: 12px;
  color: #b3aeb5;
  display: none;
}

.text-active {
  display: block;
}

/* -------------- faq wrapper -------------- */
.faq-wrapper {
  background-color: #e6ecf0;
  text-align: center;
  padding-bottom: 80px;
  color: #5f5d60;
}

#faq-list {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.faq-list-item {
  margin:10px;
  border-bottom:1px solid #ccc;
  position:relative;
  cursor:pointer;
}

.faq-list-item h3 {
  font-size: 14px;
}

.faq-list-item span {
  position:absolute;
  top:0;
  right:5px;
  color:#ccc;
  font-size:13px;
}

.answer {
  font-size: 12px;
  padding: 5px 0px;
  margin-bottom: 15px;
  display: none;
}

.message-wrapper {
  border-bottom: 1px solid #eee;
  padding-bottom: 80px;
  text-align: center;
}

.message-wrapper .heading h3 {
  font-weight: normal;
}

.message {
  display: inline-block;
  padding: 0.5em 1em;
  text-decoration: none;
  color: #67c5ff;
  border: double 4px #67c5ff;
  border-radius: 3px;
  transition: .4s;
  cursor: pointer;
  /* box-shadow: 0px 7px #4c91bd; */
}

.message:active {
  position: relative;
  top: 7px;
  box-shadow: none;
}

/* -------------- フッター -------------- */

footer img {
  width: 125px;
}

footer p {
  color: #b3aeb5;
  font-size: 12px;
}

footer {
  padding-top: 30px;
}

/* -------------- 制作実績 --------------*/
.skill-wrapper {
  padding-bottom: 80px;
  background-color: #f7f7f7;
}

#skill  h2 {
  text-align: center;
  margin: 100px;
}

#skill {
  list-style: none;
}

.box1 {
  width: 40%;
  height: 637px;
  text-align: center;
  line-height: 450px;
  border: 1px solid #000;
}

.box2 {
  width: 40%;
  height: 450px;
  text-align: center;
  line-height: 450px;
  border: 1px solid #000;
}

.skill-items1 {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 100px;
}

.skill-items2 {
  display: flex;
  justify-content: space-evenly;
  flex-direction: row-reverse;
  margin-bottom: 100px;

}
.skill-items3 {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 100px;

}



/* タブレット向けレイアウト */
@media(max-width: 1100px) {
  .lessons {
    width: 100%;
    margin-bottom: 50px;
  }

  .top-wrapper h1 {
    font-size: 32px;
  }

  .heading h2 {
    font-size: 28px;
  }

  .modal {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  aside {
    width: 22%;
  }

  .sub-title {
    font-size: 16px;
  }

  aside p {
    font-size: 13px;
  }

  .skill-items1, .skill-items2,.skill-items3  {
    flex-direction: column;
  }

  .worksList img {
    margin: 0 auto;
  }

  .box1 {
    width: 100%;
    height: 451px;
    margin: 10px 0 50px 0;
    text-align: center;
    line-height: 451px;
    border: none;
  }
  
  .box2 {
    width: 100%;
    height: 451px;
    margin: 10px 0 50px 0;
    text-align: center;
    line-height: 451px;
    border: none;
  }
  
}

/* スマホ向けレイアウト */
@media(max-width: 600px) {
  .lesson {
    width: 100%;
  }

  footer {
    text-align: center;
  }

  .btn {
    width: 100%;
  }

  .facebook {
    margin-bottom: 10px;
  }

  .header-right {
    display: none;
  }

  .menu-icon {
    display: block;
  }
  
  .top-wrapper h1 {
    font-size: 24px;
  }

  .top-wrapper p {
    font-size: 14px;
  }

  .modal {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .container-top-text h1 {
    padding-bottom: 10px;
  }

  /* news */
  .news-contents, .workList {
    flex-direction: column;
  }

  #about > .heading {
    padding-top: 0;
  }

  #skill > .heading {
    padding-top: 0;
  }

  article, aside {
    width: 100%;
  }

  aside {
    margin-top: 60px;
  }

  .post-info {
    margin-bottom: 30px;
  }

  .post-date {
    width: 70px;
    height: 70px;
    font-size: 1rem;
  }

  .post-date span {
    font-size: 0.875rem;
    margin-top: 10px;
  }

  .post-title {
    margin-left: 0;
  }

  .post-title {
    text-align: center;
  }

  #skill  h2 {
    text-align: center;
    margin: 20px;
  }

  .skill-items1, .skill-items2,.skill-items3  {
    flex-direction: column;
  }

  .worksList img {
    margin: 0 auto;
    width: 100%;
    height: 100%;
  }

  .box1 {
    width: 100%;
    height: 451px;
    margin: 10px 0 50px 0;
    text-align: center;
    line-height: 451px;
    border: none;
  }
  
  .box2 {
    width: 100%;
    height: 451px;
    margin: 10px 0 50px 0;
    text-align: center;
    line-height: 451px;
    border: none;
  }

  .modal {
    width: 100%;
  }

}
