/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
  line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

a:visited {
  color: inherit;
}

@font-face {
  font-family: "EightBitDragon";
  src: url("../fonts/EightBitDragon.woff2") format("woff2"), url("../fonts/EightBitDragon.woff") format("woff"); 
}

html {
  scroll-behavior: smooth;
}

body {
  background:#EAEAEA;
  line-height: 1.7;
}

.toast {
  position: fixed; 
  right: 10px; 
  bottom: 10px; 
  color: #fff; 
  border-radius: 4px;  
  background: rgba(13,144,73, 0.8); 
  padding: 16px 24px; 
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  font-size: 15px;
  opacity: 0;
  animation: toast 4s linear;
  z-index: -2;
}

@keyframes toast {
  0%, 100% {
    z-index: -2; 
    opacity: 0;
  }

  20%, 80% {
    z-index: 30; 
    opacity: 1;
  }
}

.header {
  position: relative;
  padding: 2% 3%;
  background: url(../img/header.jpg) center center/cover no-repeat;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.header-description {
  position: relative;
  color: #fff;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
}

.header-logo {
  position: relative;
  text-align: center;
  padding: 17% 0;
}

.header-logo-img {
  width: 20%;
}

.header-navi-toggle-button {
  text-align: center;
  line-height: 1;
  display: none;
  cursor: pointer;
}

.header-navi {
  position: relative;
  z-index: 4;
  background: #fccc33;
  max-width: 1000px;
  margin: -40px auto 0;
  padding: 30px 0;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.header-navi-items {
  display: flex;
  justify-content: space-between;
  width: 65%;
  margin: 0 auto;
}

.header-navi a {
  font-family: "EightBitDragon";
  color: inherit;
  transition: 0.3s;
}

.header-navi a:hover {
  color: #c00;
}

.main-content {
  max-width: 1000px;
  margin: 32px auto;
  padding: 4.5% 4%;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.main-content + .main-content {
  margin-top: 32px;
}

.main-content .half {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.main-content h2 {
  margin-bottom: 24px;
  font-family: "EightBitDragon";
  font-size: 60px;
  line-height: 1;
}

.main-content h2 span {
  font-size: 12px;
  margin-left: 8px;
}

.main-content h3 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 16px;
}

.company-facebook-widget {
  width: 420px;
}

.company-info-table {
  width: 100%;
  margin-top: 32px;
}

.company-info-table th {
  text-align: left; 
  width: 40px;
  font-weight: bold;
}

.company-info-table tr th:only-child {
  padding-top: 32px;
  padding-bottom: 8px;
}

.company-info-table tr td:only-child {
  width: 100%;
}

.company-access {
  margin-top: 60px;
}

.link {
  color: #3482AC!important;
  text-decoration: underline;
}

.works {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.works li {
  position: relative;
  width: 24%;
  filter: saturate(0.2);
  transition: 0.3s;
  overflow: hidden;
}

.works li:hover {
  filter: saturate(1);
}

.works li:nth-child(n + 5) {
  margin-top: 1.3%;;
}

.works li::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.works li a {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  display: block;
}

.works li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.works-heading-menus {
  background: #ccc;
  border-radius: 4px;
  display: flex;
  height: auto;
  justify-content: space-between;
  overflow: hidden;
}

.works-heading-menus .active {
  background: #fccc33;
  font-weight: bold;
}

.works-heading-menu {
  padding: 8px 32px;
  cursor: pointer;
  font-size: 12px;
}

.works-heading-menu:hover {
  font-weight: bold;
}

.works-items {
  display: none;
  height: 850px;
  overflow: scroll;
}

.works-items.active {
  display: block;
}

.works-history {
  width: 100%;
}

.works-history th {
  width: 100%;
  font-weight: bold;
  text-align: left;
  font-size: 14px;
  padding-bottom: 8px;
}

.works-history td {
  font-size: 12px;
  border-bottom: 1px dotted #ccc;
  padding: 8px 0;
}

.works-history .short {
  width: 13%;
}

.works-history .long {
  width: 87%;
}


.works-history td:empty {
  border: 0;
}

.works-history font {
  font-size: 12px;
}

.request-form {
  margin-top: 10%;
}

.form-note {
  margin-top: 16px;
  font-size: 12px;
}

.form-item {
  margin-top: 5%;
}

.form-item label {
  display: block;
  margin-bottom: 8px;
}

input[type=text],
input[type=email],
textarea {
  width: 100%;
  padding: 12px;
  background: #F8F8F8;
  border: 1px solid #ccc;
  outline: 0;
  font-size: 15px;
}

.submit-button {
  text-align: center;
  margin-top: 24px;
}

input[type=submit] {
  background: #fccc33;
  border: 0;
  outline: 0;
  padding: 16px 24px;
  font-weight: bold;
  font-size: 20px;
  width: 240px;
  cursor: pointer;
  transition: 0.3s;
}

input[type=submit]:hover {
  filter: brightness(0.9);
}


.footer {
  background: #111;
  padding: 12px 0;
  position: relative;
  z-index: 2;
}

.copyright {
  color: #fff;
  text-align: center;
  font-size: 11px;
}


@media screen and (max-width: 1000px) {
  .main-content h2 {
    font-size: 40px;
  }

  .main-content h3 {
    font-size: 15px;
  }

  .main-content {
    margin-left: 8px;
    margin-right: 8px;
    padding: 32px 24px;
  }

  .main-content {
    margin-top: 16px;
  }

  .main-content + .main-content {
    margin-top: 16px;
  }

  .company-facebook-widget {
    margin-top: 32px;
  }

  .works-heading {
    flex-wrap: wrap;
  }

  .works-heading-menus {
    width: 100%;
  }

  .works-heading-menu {
    width: 50%;
    text-align: center;
  }

  .works-items {
    margin-top: 16px;
    height: 500px;
  }

  .works-items li {
    width: 49%;
  }

  .works li:nth-child(n + 3) {
    margin-top: 2%;
  }

  .header-navi {
    margin-top: 0;
  }

  .header-logo {
    padding: 14% 0;
  }

  .header-logo-img {
    width: 40%;
  }

  header h1 {
    display: none; 
  }

  .header-navi {
    padding: 0 0 10px;
    text-align: center;
  }

  .header-navi-toggle-button i {
    content: "≡ ";
    font-size: 30px;
    position: relative;
    top: 2px;
  }

  .header-navi-toggle-button span {
    content: " MENU";
    font-family: "EightBitDragon";
    font-size: 14px;
    margin-left: 8px;
  }

  .header-navi-items {
    display: none;
    text-align: center;
  }

  .header-navi-items li + li {
    margin-top: 16px; 
  }

  .header-navi-toggle-button {
    display: block;
  }

  .header-navi-toggle-button.active + .header-navi-items {
    margin-top: 16px;
  }

  .works-history .short {
    width: 120px;
  }

  .works-history .long {
    width: auto;
  }

  .form-note {
    font-size: 10px;
  }

  #company .half {
    flex-direction: column-reverse;
  }

  .company-facebook-widget {
    width: auto;
    margin-top: 0;
    margin-bottom: 40px;
  }

  .toast {
    bottom: 0;
    right: 0;
    padding: 16px;
    width: 100%;
  }
}