@charset "UTF-8";

/* --------------------------------
 * base
 * -------------------------------- */
html {
  font-size: 62.5%;
}
body {
  background: #008b8b;
  /* --------------------------------
url('../images/bg.jpg') no-repeat fixed left bottom;
 * -------------------------------- */
  background-size: cover;
  color: #fff;
  text-align: center;
  font-size: 1.4rem;
  font-family: Raleway, "Hiragino Kaku Gothic ProN",  Meiryo,  sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
}


/* --------------------------------
 * parts
 * -------------------------------- */
.heading {
  position: relative;
  display: inline-block;
  margin: 30px 0 15px;
  padding-bottom: 15px;
  letter-spacing: 2px;
  font-size: 4rem;
}

.heading2 {
  position: relative;
  display: inline-block;
  margin: 30px 0 10px;
  padding-bottom: 10px;
  letter-spacing: 2px;
  font-size: 3rem;
}
/* -------------------------------
.heading::before,
.heading::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-bottom: 1px solid #999;
}
.heading::before {
  bottom: 5px;
}
 * -------------------------------- */

.button {
  display: inline-block;
  width: 240px;
  padding: 4px;
  border-radius: 4px;
  background-color: #afa58d;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 1.5rem;
}
.button2 {
  display: inline-block;
  width: 220px;
  padding: 2px;
  border-radius: 2px;
  background-color: #afa58d;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 1.5rem;
}
.button3 {
  display: inline-block;
  width: 100px;
  padding: 1px;
  border-radius: 2px;
  background-color: #afa58d;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 1.1rem;
}
.button4 {
  display: inline-block;
  width: 120px;
  padding: 1px;
  border-radius: 5px;
  background-color: #66cdaa;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 1.5rem;
  text-align: center;
}
.button:hover {
  opacity: 0.7;
}
.button2:hover {
  opacity: 0.7;
}
.button3:hover {
  opacity: 0.7;
}
.button4:hover {
  opacity: 0.7;
}
.button-showy {
  background-color: #006400;
}
.button-ghost {
  border: 1px solid #fff;
  background-color: rgba(255, 255, 255, 0.15);
}


/* --------------------------------
 * header
 * -------------------------------- */
.header {
  padding: 170px 30px 80px;
}
.site-title2 {
  font-size: 2rem;
}
.site-title-sub {
  margin: 0 0 30px;
  letter-spacing: 1px;
  font-size: 2.2rem;
}
.site-title-sub::before,
.site-title-sub::after {
  content: '';
  display: inline-block;
  width: 140px;
  height: 2px;
  margin: 0 30px;
  background-color: #fff;
  vertical-align: middle;
}
.site-title {
  margin: 50px 0 40px;
  font-size: 5rem;
}
.site-description {
  margin-bottom: 50px;
  color: #888;
  font-size: 1.6rem;
}
.buttons .button {
  margin: 10px;
}

.alpha a:hover img {
  opacity: 0.3;
  filter: alpha(opacity=30);
  -ms-filter: "alpha(opacity=30)";
}


/* --------------------------------
 * about
 * -------------------------------- */
.about {
  padding: 80px 30px;
  background-color: #008080;
  color: #fff;
}
.about-text {
  margin: 20px 0;
  line-height: 1.5;
  text-align: left;
}


/* --------------------------------
 * works
 * -------------------------------- */
.works {
  padding: 80px 0;
  background-color: #2f4f4f;
}
.works-wrapper {
  display: table;
  width: 100%;
  margin-top: 60px;
  table-layout: fixed;
}
.work-box {
  position: relative;
  display: table-cell;
}
.work-image {
  display: block;
  width: 100%;
  margin: 0 0 60%;
}
.work-description {
  position: absolute;
  top: 70%;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 20%;
  overflow-y: auto;
}
.work-description-inner {
  display: table;
  width: 100%;
  height: 20%;
  padding: 10px;
}
.work-text {
  display: table-cell;
  vertical-align: middle;
  font-size: 1.2rem;
  line-height: 2;
}
.work-text2 {
  display: table-cell;
  vertical-align: middle;
  font-size: 1.8rem;
  line-height: 2;
  text-align: center;
  }
.work-text .button {
  width: 80%;
  margin-top: 40px;
  padding: 3px;
}
.work-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: no-repeat;
  background-size: 100% 100%;
  opacity: 0.2;
  transform: scaleY(-1);
}
.work-box.inochiwo::after {
  background-image: url('../images/inochiwo.jpg');
}
.work-box.kouketsuatsu::after {
  background-image: url('../images/kouketsuatsu.jpg');
}
.work-box.koresutero-ru::after {
  background-image: url('../images/koresutero-ru.jpg');
}
.work-box.kusuritodoku::after {
  background-image: url('../images/kusuritodoku.jpg');
}
.work-box.byoindekiku::after {
  background-image: url('../images/byoindekiku.jpg');
}
.work-box.nondehaikenai::after {
  background-image: url('../images/nondehaikenai.jpg');
}
.work-box.yondeyameru::after {
  background-image: url('../images/yondeyameru.jpg');
}
.work-box.ninnchishou::after {
  background-image: url('../images/ninnchishou.jpg');
}
.work-box.kodomonitukatteha::after {
  background-image: url('../images/kodomonitukatteha.jpg');
}
.work-box.noushou::after {
  background-image: url('../images/noushou.jpg');
}
.work-box:nth-child(odd) .work-image {
  margin: 60% 0 0;
}
.work-box:nth-child(odd) .work-description,
.work-box:nth-child(odd)::after {
  top: 0;
}


/* --------------------------------
 * skills
 * -------------------------------- */
.skills {
  padding: 10px 0;
  background-color: #F0F8FF;
  color: #006400;
}
.skills-wrapper {
  display: table;
  width: 90%;
  margin: 10px auto 0;
  table-layout: fixed;
}
.skill-box {
  display: table-cell;
}
.skill-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 30px;
  border: 4px solid;
  border-radius: 50%;
  color: #f1b400;
  font-size: 8rem;
  line-height: 142px;
}
.skill-title {
  margin: 0 10px 10px;
  font-size: 2rem;
  text-align: left;
}
.skill-text {
  margin: 0 10px;
  line-height: 2;
  text-align: left;
}


/* --------------------------------
 * contact
 * -------------------------------- */
.yoyaku {
  padding: 20px 0 20px;
  background-color: #f0fff0;
  color: #2f4f4f;
}
.soudan {
  padding: 20px 0 20px;
  background-color: #ffffe0;
  color: #2f4f4f;
}
.contact-form {
  width: 70%;
  margin: 30px auto 0;
}
.contact-form input[type=text],
.contact-form input[type=tel],
.contact-form input[type=email],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 15px;
  outline: none;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.05);
  color: #000;
}
.contact-form input[type=text]:focus,
.contact-form input[type=tel]:focus,
.contact-form input[type=email]:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5) inset;
}
.contact-form textarea {
  height: 150px;
}
.contact-form input[type=submit] {
  display: block;
  width: 100px;
  margin: 20px auto 0;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  background-color: transparent;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.contact-form input[type=reset] {
  display: block;
  width: 100px;
  margin: 20px auto 0;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  background-color: transparent;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.contact-form input[type=submit]:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.contact-form input[type=reset]:hover {
  background-color: rgba(0, 0, 0, 0.05);
}


/* --------------------------------
 * footer
 * -------------------------------- */
.footer {
  padding: 12px 0;
  font-size: 1.3rem;
}


/* --------------------------------
 * smart phone
 * -------------------------------- */
@media (max-width: 1024px) {
  body {
    background-image: none;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 1.3rem;
  }
  .heading {
    margin-top: 20px;
    font-size: 2.5rem;
  }
  .heading2 {
    margin-top: 20px;
    font-size: 2rem;
  }
  .button:hover {
    opacity: 1;
  }

  /* --- header --- */
  .header {
    padding-top: 60px;
  }
  .site-title-sub {
    font-size: 1.7rem;
  }
  .site-title-sub::before,
  .site-title-sub::after {
    display: block;
    width: 80%;
    margin: 10px auto;
  }
  .site-title {
    margin-top: 35px;
    font-size: 3.5rem;
  }

  /* --- about --- */
  .about-text {
    line-height: 1.8;
  }

  /* --- works --- */
  .works-wrapper,
  .work-box {
    display: block;
  }
  .work-image {
    display: none;
  }
  .work-description {
    position: relative;
  }
  .work-box::after {
    top: 0;
    height: 100%;
    background-size: cover;
  }

  /* --- skills --- */
  .skills-wrapper,
  .skill-box {
    display: block;
  }
  .skill-box {
    margin: 40px auto;
  }
  .skill-icon {
    width: 100px;
    height: 100px;
    font-size: 5rem;
    line-height: 92px;
  }
  .skill-text {
    margin: 0;
  }

  /* --- contact --- */
  .contact {
    padding-bottom: 80px;
  }
  .contact-form {
    width: 80%;
  }
}


/* --------------------------------
 * challenge
 *
 * 31行目からの.heading::before, .heading::afterの
 * スタイルをコメントアウトしてから適用してください。
 * -------------------------------- */

.heading::before,
.heading::after {
  content: '';
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin: 0 0.5em;
  border: 1px solid;
  vertical-align: 0.2em;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
.work-box {
  overflow: hidden;
}
.work-image {
  transition: -webkit-transform 0.5s ease-in-out;
  transition: transform 0.5s ease-in-out;
}
.work-box:nth-child(odd) .work-image {
  -webkit-transform-origin: top center;
  transform-origin: top center;
}
.work-box:nth-child(even) .work-image {
  -webkit-transform-origin: bottom center;
  transform-origin: bottom center;
}
.work-box:hover .work-image {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
