@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;700&display=swap');

body {
  font-size: 14px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.7;
  background: #fff;
}

img {
  max-width: 100%;
}

a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.sp {
  display: none;
}

nav {
  padding: 20px 0;
  position: fixed;
  bottom: auto;
  top: 0;
  font-size: 16px;
  width: 100%;
  z-index: 5;
  background: rgba(255, 255, 255, 0.8);
}

nav .inner {
  margin: auto;
  padding: 0;
  display: flex;
  width: 1070px;
}

.en nav .inner {
  position: relative;
}

nav .menu-btn {
  display: none;
}

nav h1 {
  margin-right: 90px;
}

nav ul {
  padding-top: 10px;
  width: 870px;
  line-height: 1;
}

.en nav ul {
  position: absolute;
  right: 0;
  width: 850px;
  font-size: 15px;
}

nav ul:after {
  content: '';
  display: block;
  clear: both;
}

nav li {
  margin-left: 30px;
  float: left;
}

nav li img {
  margin-right: 0.3em;
  display: inline-block;
  vertical-align: middle;
}

nav li a {
  vertical-align: middle;
}

nav li a:hover {
  text-decoration: underline;
}

.top-btn {
	display: block;
	position: relative;
	padding: 8px 0 12px;
	margin: 100px auto 0;
	width: 410px;
	text-align: center;
	border: 1px solid #000;
	transition: .3s;
	font-size: 16px;
}

.top-btn::after {
  content: '';
  position: absolute;
  top: 18px;
  right: 13px;
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  transform: rotate(45deg);
}

.top-btn:hover {
  color: #fff;
  background-color: #000;
  transition: .3s;
}

.top-btn:hover::after {
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

@media screen and (max-width: 1100px) {
  nav .inner {
    padding: 0 2.5%;
    width: 95%;
    display: block;
  }

  nav h1 {
    float: left;
    text-align: left;
    margin-right: 0;
  }

  nav ul {
    float: right;
    width: 725px;
  }

  nav li {
    margin-left: 15px;
  }

  .top-btn {
    width: 90%;
  }
}

@media screen and (max-width: 940px) {
  nav {
    position: fixed;
    background: none;
  }

  nav ul {
    display: none;
  }

  nav.active ul {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    float: none;
    width: 100%;
    transform: translate(-50%, -50%);
  }

  nav.active:after {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f1f1f1;
    z-index: -1;
  }

  nav li {
    margin: 0 0 2em;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 3.5vw;
  }

  nav .menu-btn {
    position: absolute;
    top: 20px;
    right: 2.5%;
    display: block;
    width: 40px;
    height: 35px;
  }

  nav .menu-btn span {
    display: block;
    position: absolute;
    top: 6px;
    left: 15%;
    width: 70%;
    height: 4px;
    border-radius: 2px;
    background: #323232;
    transition: .3s;
  }

  nav .menu-btn span:nth-child(2) {
    top: 16px;
  }

  nav .menu-btn span:nth-child(3) {
    top: auto;
    bottom: 5px;
  }

  nav.active .menu-btn span:nth-child(1) {
    top: 15px;
    transform: rotate(135deg);
  }

  nav.active .menu-btn span:nth-child(2) {
    top: 20px;
    display: none;
  }

  nav.active .menu-btn span:nth-child(3) {
    bottom: 16px;
    transform: rotate(-135deg);
  }
}

h2 {
  margin: 0 auto 120px;
  text-align: center;
}

h2 label {
  display: inline-block;
  position: relative;
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  font-size: 22px;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.3em;
}

.en h2 label {
  writing-mode: inherit;
}

h2 label::before {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  transform: translate(-50%, -50%);
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 120px 120px;
  border-color: transparent transparent #f1f1f1 transparent;
}

.en h2 label::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 100px 0 0 100px;
  border-color: transparent transparent transparent #f1f1f1;
}

a.btn {
  margin: 60px auto 0;
  display: block;
  width: 410px;
  position: relative;
  padding: 8px 0 12px;
  color: #fff;
  background: #323232;
  text-align: center;
  font-size: 16px;
  transition: .2s;
}

a.btn::after {
  content: '';
  position: absolute;
  top: 16px;
  right: 13px;
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

#container {
  padding: 200px 0 100px;
}

#result>ul {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  width: 1020px;
}

#result>ul>li {
  margin: 0 10px 20px;
  cursor: pointer;
  height: 180px;
  overflow: hidden;
}

#result>ul>li img {
  display: block;
  width: 320px;
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
  transition: .2s;
}

#result>ul>li img:hover {
  -webkit-filter: grayscale(0);
  -moz-filter: grayscale(0);
  -ms-filter: grayscale(0);
  -o-filter: grayscale(0);
  filter: grayscale(0);
}

@media screen and (max-width: 1024px) {
  #result>ul>li img {
    width: 100%;
    -webkit-filter: grayscale(0);
    -moz-filter: grayscale(0);
    -ms-filter: grayscale(0);
    -o-filter: grayscale(0);
    filter: grayscale(0);
  }
}

@media screen and (max-width: 1100px) {
  .works-icon {
    width: 100%;
  }

  #result>ul {
    width: 98%;
  }

  #result>ul>li {
    margin: 0 1% 2%;
    width: 31.333%;
    height: 130px;
  }
}

#modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 4;
  display: none;
}

#modal-container li {
  margin: 0;
  padding: 50px;
  flex-wrap: wrap;
  width: 900px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  display: none;
}

#modal-container li h3 {
  margin-bottom: 3%;
  font-size: 160%;
  width: 100%;
}

#modal-container li.show {
  display: flex;
}

#modal-container li .image {
  width: 570px;
  position: relative;
  background-color: #000;
  overflow: hidden;
}

#modal-container li .image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

#modal-container li .detail {
  padding-left: 50px;
  width: 280px;
}

#modal-container li .detail p {
  margin-bottom: 1.5em;
}

#modal-container li .detail label {
  margin-left: -10px;
  margin-bottom: 6px;
  padding: 2px 32px 4px;
  background: #323232;
  color: #fff;
  display: inline-block;
  border-radius: 20px;
}

.close {
  margin: 45px auto 0;
  display: block;
  width: 300px;
  position: relative;
  padding: 8px 0 12px;
  color: #fff;
  background: #323232;
  text-align: center;
  font-size: 16px;
  transition: .2s;
  cursor: pointer;
}

.close::before {
  content: '';
  position: absolute;
  top: 21px;
  right: 13px;
  display: block;
  width: 15px;
  height: 2px;
  background: #fff;
  transform: rotate(-45deg);
}

.close::after {
  content: '';
  position: absolute;
  top: 21px;
  right: 13px;
  display: block;
  width: 15px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}

footer {
  padding: 30px 0;
  margin: 0 auto;
  width: 100%;
  font-size: 12px;
  color: #fff;
  background: #323232;
  line-height: 2;
}

footer .inner {
  margin: auto;
  width: 1000px;
  display: flex;
}

footer label {
  margin-bottom: 16px;
  display: block;
  font-size: 14px;
}

.footer-left {
  width: 50%;
  text-align: left;
}

.footer-right {
  width: 50%;
  text-align: right;
}

/* .en .footer-right {
  margin-top: 70px;
} */
.footer-right>a {
  padding: 4px;
  margin-bottom: 1em;
  display: inline-block;
  width: 170px;
  text-align: center;
  border: 1px solid;
}

.footer-right>ul {
	display: block;
	text-align: right;
}
.footer-right>ul>li {
	display: inline-block;
	margin-right: 5px;
}
.footer-right>ul>li:last-child {
	margin-right: 0;
}
.footer-right>ul>li img {
	height: 60px;
}

.en .footer-right>a {
  margin-bottom: 2.8em;
}

@media screen and (max-width: 1100px) {
  br.sp {
    display: block;
  }

  a.btn {
    margin-top: 10%;
    width: 90%;
  }

  footer .inner {
    margin: auto;
    width: 94%;
    display: table;
  }

  .footer-left {
    display: table-cell;
  }

  .footer-right {
    vertical-align: bottom;
    display: table-cell;
  }

  #modal-container li {
    padding: 5%;
    width: 80%;
  }

  #modal-container li .image {
    margin-bottom: 4%;
    width: 100%;
  }

  #modal-container li .image img {
    position: inherit;
    top: unset;
    left: unset;
    transform: unset;
    -webkit-transform: unset;
    -ms-transform: unset;
    display: block;
    margin: 0 auto;
  }

  #modal-container li .detail {
    padding-left: 2%;
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  body {
    font-size: 12px;
  }

  .pc {
    display: none;
  }

  .sp {
    display: block;
  }

  nav .menu-btn {
    top: 10px;
  }

  nav {
    padding: 10px 0;
  }

  nav.fixed {
    background: none;
  }

  nav h1 {
    margin-top: 2px;
    margin-left: 2.5%;
    width: 120px;
  }

  nav ul {
    padding-top: 80px;
  }

  nav li {
    margin: 0 0 1.8em;
    font-size: 4.5vw;
  }

  nav li img {
    width: 5%;
  }

  section {
    padding-top: 30%;
  }

  h2 {
    margin: 0 auto 20%;
  }

  .en h2 {
    margin-bottom: 25%;
  }

  h2 label {
    font-size: 20px;
  }

  h2 label::before {
    border-width: 0 0 100px 100px;
  }

  .top-btn {
    margin-top: 10%;
    width: 100%;
    font-size: 14px;
  }

  .top-btn::after {
    top: 14px;
  }

  a.btn {
    font-size: 14px;
    width: 100%;
  }

  a.btn::after {
    top: 14px;
  }

  #container {
    padding: 150px 0 15%;
  }

  #result {
    margin: auto;
    width: 90%;
  }

  #result ul {
    display: block;
    width: 100%;
  }

  #result>ul>li {
    margin: 0 0 5%;
    width: 100%;
    height: auto;
  }

  #modal-container {
    z-index: 5;
  }

  #modal-container li.show {
    display: block;
    max-height: 92%;
    overflow: scroll;
  }

  #modal-container li {
    padding: 4%;
    width: 85%;
  }

  #modal-container li h3 {
    margin-bottom: 5%;
    font-size: 135%;
    line-height: 1.5;
  }

  #modal-container li .image {
    margin-bottom: 1em;
    width: 100%;
  }

  #modal-container li .image img {
    position: inherit;
    top: unset;
    left: unset;
    transform: unset;
    -webkit-transform: unset;
    -ms-transform: unset;
    display: block;
    margin: 0 auto;
  }

  #modal-container li .detail {
    padding-left: 0;
    margin: auto;
    width: 94%;
    font-size: 12px;
  }

  #modal-container li .detail p {
    margin-bottom: 1em;
  }

  #modal-container li .detail label {
    margin-bottom: 4px;
  }

  .close {
    margin: 5% auto 0;
    display: block;
    width: 100%;
    padding: 6px 0 10px;
    font-size: 14px;
  }

  .close::before, .close::after {
    top: 18px;
  }

  footer .inner {
    margin: auto;
    width: 90%;
    display: block;
  }

  .footer-left {
    margin-bottom: 3em;
    display: block;
    width: 100%;
    text-align: center;
  }

  .footer-right {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 10px;
  }

  .en .footer-right {
    margin-top: 0;
  }

  .footer-right>a {
    padding: 4px;
    margin-bottom: 2em;
    display: inline-block;
    width: 250px;
    font-size: 12px;
    text-align: center;
    border: 1px solid;
  }
	.footer-right>ul {
		margin-bottom: 2em;
		text-align: center;
	}
  .en .footer-right>a {
    margin-bottom: 3em;
  }
}
