@charset "UTF-8";

/* --------------------------------
 * base
 * -------------------------------- */
html {
  font-size: 62.5%;
}
body {
  background: #151515 url('../images/bg.png') no-repeat fixed left bottom;
  background-size: cover;
  color: #fff;
  text-align: center;
  font-size: 1.4rem;
  font-family: "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;
}
.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: 200px;
  padding: 20px;
  border-radius: 4px;
  background-color: #afa58d;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 1.2rem;
}
.button:hover {
  opacity: 0.9;
}
.button-showy {
  background-color: #d29e04;
}
.button-ghost {
  border: 1px solid #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

/* --------------------------------
 * header
 * -------------------------------- */
.header {
  padding: 170px 30px 80px;
}
.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: 5.6rem;
  display: flex;
  display: -moz-flex;
  display: -o-flex;
  display: -webkit-flex;
  display: -ms-flex;
  flex-direction: row;
  -moz-flex-direction: row;
  -o-flex-direction: row;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  justify-content: center;
}
.site-title-logo {
  margin: 5px 10px 0 0;
  font-size: 3rem;
}
.site-title-text {
  margin: 0;
  width: 11em;
}
.site-description {
  margin-bottom: 50px;
  color: #eee;
  font-size: 1.6rem;
}
.buttons .button {
  margin: 10px;
}


/* --------------------------------
 * about
 * -------------------------------- */
.about {
  padding: 80px 30px;
  background-color: #fff;
  color: #333;
}
.about-text {
  margin: 30px 0;
  line-height: 2.5;
}


/* --------------------------------
 * works
 * -------------------------------- */
.works {
  padding: 80px 0;
  background-color: #383634;
}
.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: 50%;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 50%;
  overflow-y: auto;
}
.work-description-inner {
  display: table;
  width: 100%;
  height: 100%;
  padding: 20px;
}
.work-text {
  display: table-cell;
  vertical-align: middle;
  font-size: 1.8rem;
  line-height: 2;
}
.work-title-text {
  background-color: #92d050;
  color: #000000;
  vertical-align: middle;
  font-size: 2.4rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.work-text .button {
  width: 60%;
  margin-top: 20px;
  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.notepc::after {
  background-image: url('../images/notepc.jpg');
}
.work-box.wana::after {
  background-image: url('../images/wana.jpg');
}
.work-box.hand::after {
  background-image: url('../images/hand.jpg');
}
.work-box.desktop::after {
  background-image: url('../images/desktop.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;
}


/* --------------------------------
 * link
 * -------------------------------- */
.link {
  padding: 80px 0;
  background-color: #fff;
  color: #333;
}
.link-wrapper {
  display: table;
  width: 80%;
  margin: 50px auto 0;
  table-layout: fixed;
}
.link-base {
  display: flex;
  display: -moz-flex;
  display: -o-flex;
  display: -webkit-flex;
  display: -ms-flex;
  flex-direction: row;
  -moz-flex-direction: row;
  -o-flex-direction: row;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  justify-content: space-between;
}
.link-box {
  width: 30%;
}
.link-box-cooperation {
  width: 100%;
  border: 4px solid;
}
.link-box-cooperation th {
  width: 100%;
  height: 4em;
  border: 2px solid;
  font-size: 2rem;
  background-color: #00b0f0;
  color: #000;
}
.link-box-cooperation td {
  width: 100%;
  height: 5em;
  border: 2px solid;
  font-size: 2rem;
  color: #000;
  text-align: center;
  vertical-align: middle;
}
.link-box-cooperation a {
  display: block;
  color: #00f;
  text-decoration: none;
}
.link-box-cooperation a:hover {
    cursor:pointer;
    color:#f00;
    text-decoration:underline;
}

.link-box-partner {
  width: 100%;
  border: 4px solid;
}
.link-box-partner th {
  width: 100%;
  height: 4em;
  border: 2px solid;
  font-size: 2rem;
  background-color: #00b050;
  color: #000;
}
.link-box-partner td {
  width: 100%;
  height: 5em;
  border: 2px solid;
  font-size: 2rem;
  color: #000;
  text-align: center;
  vertical-align: middle;
}
.link-box-partner a:hover {
    cursor:pointer;
    color:#f00;
    text-decoration:underline;
}

/* --------------------------------
 * contact
 * -------------------------------- */
.contact {
  padding: 80px 0 150px;
}
.contact-description {
  width: 50%;
  margin: 50px auto 0;
  display: block;
  padding: 15px;
  outline: none;
  text-align: left;
  color: #000;
  font-size: 2.0rem;
}
.contact-form {
  width: 50%;
  margin: 50px auto 0;
}
.contact-table {
  border-collapse: separate;
  border-spacing: 1px;
  text-align: left;
  line-height: 1.5;
  border-top: 1px solid #ccc;
}
.contact-table th {
  padding: 10px;
  font-weight: bold;
  vertical-align: middle;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid #ccc;
  background: #4f4fff;
}
.contact-table td {
  width: 900px;
  padding: 0px;
  vertical-align: top;
  border-bottom: 1px solid #ccc;
}
.contact-form input[type=text],
.contact-form input[type=number],
.contact-form input[type=tel],
.contact-form input[type=email],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 0px;
  padding: 15px;
  outline: none;
  border: 3px solid rgba(255, 255, 255, 1);
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.75);
  color: #000;
}
.contact-form input[type=number]:focus,
.contact-form input[type=tel]:focus,
.contact-form input[type=email]:focus {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.75) inset;
  ime-mode: inactive;
}
.contact-form input[type=text]:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.75) inset;
  ime-mode: active;
}
.contact-form textarea {
  height: 300px;
}
.contact-form label {
  display: block;
  width: 100%;
  margin-bottom: 0px;
  padding: 15px;
  outline: none;
  border: 3px solid rgba(255, 255, 255, 1);
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.75);
  color: #000;
}
.contact-form select {
  -moz-appearance: none;
  -webkit-appearance: none;
  -o-appearance: none;
  -ms-appearance: none;
  appearance: none;
  border-radius: 0;
#  border: 3px solid rgba(255, 255, 255, 1);
  margin-bottom: 0px;
  padding: 0px;
  vertical-align: middle;
  font-size: inherit;
  box-sizing: content-box;
  display: block;
  width: 100%;
  outline: none;
#  background-color: rgba(255, 255, 255, 0.75);
  color: #000;
}
.contact-form input[type=button] {
  display: block;
  width: 200px;
  margin: 40px auto 0;
  padding: 15px;
  border: 3px solid rgba(255, 255, 255, 1);
  border-radius: 10px;
  background-color: transparent;
  color: rgba(0, 0, 255, 1);
  cursor: pointer;
}
.contact-form input[type=button]:hover {
  background-color: rgba(255, 255, 255, 0.75);
}
.contact-form input[type=button]:disabled {
  background-image: none;
  background-color: #ccc;
  border-color: #ccc;
  cursor: auto;
}


/* --------------------------------
 * 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;
  }
  .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: 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;
  }

  /* --- link --- */
  .link-wrapper,
  .link-box {
    display: block;
  }
  .link-box {
    margin: 40px auto;
  }
  .link-icon {
    width: 100px;
    height: 100px;
    font-size: 5rem;
    line-height: 92px;
  }
  .link-text {
    margin: 0;
  }

  /* --- contact --- */
  .contact {
    padding-bottom: 80px;
  }
  .contact-form {
    width: 80%;
  }
}

#modal-content{
  width:50%;
  margin:1.5em auto 0;
  padding:10px 20px;
  border:2px solid #aaa;
  background:#fff;
  z-index:2;
}

.modal-p{
	margin-top:1em;
}

.modal-p:first-child{
	margin-top:0;
}
