@charset "utf-8";

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Shippori Mincho', serif;
  background-color: #fff;
  letter-spacing: 0.2em;
}

header {
  z-index: 998;
  padding: 3vh 2vh;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background-color: transparent;
  display: flex;
  align-items: center;
  transition: all 0.2s ease-out;
}

header.min-header {
  padding: 10px 4%;
  background-color: #293f4d;
}

h1 {
  margin: 0;
  padding: 0;
  font-size: 20px;
}

h3 {
  font-size: 1rem;
}

.text {
  margin: 1rem;
}

a {
  text-decoration: none;
}

p {
  line-height: 2;
}

nav {
  margin: 0 0 0 auto;
}

ul {
  list-style: none;
  margin: 0;
  display: flex;
}

li {
  margin: 0 0 0 15px;
  font-size: 14px;
}

.theme_news {
  margin: 10% 7% 10% 7%;
  animation-name: fadeInAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeInAnime {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.theme {
  margin: 10% 7% 10% 7%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition:
    opacity 1s,
    visibility 1s,
    transform 1s;
}

.is-fadein {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav_sp {
  display: none;
}

#header .nav_pc {
  margin: 0 0 0 auto;
  padding-top: 2rem;
}

#header .nav_pc ul {
  display: flex;
  justify-content: space-between;
}

#header .nav_pc ul li:not(:last-of-type) {
  margin-right: 10px;
}

#header .nav_pc a.button {
  display: block;
  width: 250px;
  margin: 0 auto;
  padding: 15px 30px;
  text-align: center;
  border: 1px solid #fff;
  transition: all 0.3s ease-out;
}

#header a {
  color: #fff;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

#header .nav_pc a::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #f88826;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform 0.3s;
}

#header .nav_pc a:hover::after {
  transform: scale(1, 1);
}

#header a.button:hover {
  color: #505050;
  background-color: #fff;
}

#header.scroll-nav {
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

#header.scroll-nav h1 a,
#header.scroll-nav ul li a {
  color: #000;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.header-logo {
  width: auto;
  height: 4rem;
  padding-left: 1rem;
}

#news .item .title:hover {
  opacity: 0.7;
}

.logo-before {
  margin-left: 30px;
  margin-top: 4px;
  z-index: 1;
}

.logo-after {
  z-index: 0;
  position: absolute;
  top: 4px;
  left: 30px;
  opacity: 0;
}

#main {
  min-width: 100%;
}

#main-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 50%;
  min-width: 100%;
}

#main-visual p {
  position: absolute;
  line-height: 1.5;
  color: #000;
  font-size: 1rem;
  top: 25%;
  left: 45%;
  transform: translate(-40%, -25%);
  background: #fff;
  opacity: 0.7;
  padding: 1rem;
}

#main-visual .kyojushien {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.main-visual-text {
  z-index: 800;
}

#main-visual img {
  width: 100%;
}

#main-visual h2 {
  margin: 0 0 40px 40px;
  font-size: 30px;
  font-weight: normal;
  color: #fff;
  position: absolute;
}

.slideshow-fade {
  position: relative;
  width: 280%;
  height: 800px;
}

.slideshow-fade li {
  list-style: none;
  width: 100%;
  height: 100%;
  margin: 0;
}

.slideshow-fade img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

/* =======NEWS======== */

#news a {
  text-decoration: none;
  color: #000;
}

#news a:hover {
  color: #395b70;
}

#news .list .date-area {
  margin-bottom: 5px;
}

#news .list ul {
  list-style-type: none;
  flex-direction: column-reverse;
}

#news .list {
  margin-left: 20px;
}

#news .list li {
  border-right: solid 1px #000;
  padding: 10px 20px;
  width: 100%;
}

#news .list p {
  font-size: 0.875rem;
  line-height: 1.5;
}

#news .list li:last-child {
  margin-bottom: 0;
}

/* ==========SERVICE===========*/
#service .site-btn {
  background-color: #ff7c2a;
  border-bottom: 6px solid #9a4504;
  border-radius: 10px;
  color: #fff;
  font-size: 1.3rem;
  display: block;
  padding: 15px 35px;
  text-align: center;
  transition: 0.3s;
  position: relative;
  margin-top: 2px;
}

#service .site-btn::after {
  content: '';
  width: 16px;
  height: 16px;
  border-top: solid 3px #fff;
  border-right: solid 3px #fff;
  transform: rotate(45deg);
  position: absolute;
  top: 24px;
  right: 30px;
}

#service .site-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
  color: #fff;
}

#service .section-title {
  margin-bottom: 2%;
  border-bottom: solid 1px #f88826;
  padding-bottom: 10px;
}

#service a {
  text-decoration: none;
  color: #000;
}

#service a:hover {
  color: #395b70;
}

.content {
  display: flex;
}

.content .iiimg {
  width: 50%;
  text-align: center;
}

.content img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  margin: 2px;
}

.content .service_text {
  width: 70%;
  height: auto;
  padding: 5% 5%;
  border-radius: 10px;
}

.content .service_text p {
  font-size: 1rem;
  line-height: 1.4;
}

/*=========WORKS========*/
.art {
  display: flex;
  justify-content: center;
}

.art img {
  width: 300px;
  max-height: 180px;
  min-height: 160px;
  object-fit: scale-down;
  border-radius: 0%;
  margin: 2px 0 20px 0;
}

.works-contents {
  display: flex;
  justify-content: space-between;
  margin: 5% 10% 10% 10%;
  padding-top: 0;
}

.works-contents .article-title {
  font-size: 1rem;
  margin: 0 0 10px 0;
  cursor: pointer;
  font-weight: normal;
  padding: 3% 3% 0 3%;
  transition: all 0.5s ease;
}

.works-contents .superlink {
  font-size: 0.75rem;
  color: #000;
  margin: 0 0 0 5%;
}

.works-contents .superlink:hover {
  color: #395b70;
}

.works-contents .box {
  display: none;
  background: #f3f3f3;
  margin: 0 3% 3% 3%;
  padding: 3%;
  font-size: 0.8rem;
}

/*=========COMPANY===========*/

.table {
  border-collapse: collapse;
  border-spacing: 0;
}

.prof {
  max-width: 70%;
  width: 70%;
  border-bottom: 1px solid #eee;
  line-height: 1.3rem;
  margin: 0 auto;
  font-size: 0.8rem;
}

.prof th {
  width: 20%;
  font-weight: bold;
}

.prof tr {
  text-align: left;
  border-bottom: 1px solid #eee;
  width: 100%;
}

.prof th,
.prof td {
  padding: 15px 0;
  border-top: 1px solid #eee;
}

.td {
  padding: 0;
}

.prof a {
  color: #000;
}

.prof a:hover {
  color: #395b70;
}

.th {
  text-align: left;
}

/*=========お問い合わせ=======*/
#contact .text {
  text-align: center;
}

.button001 a {
  background: #eee;
  border-radius: 5px;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 280px;
  padding: 20px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
}

.button001 a:hover {
  background: #313131;
  color: #fff;
}

.button002 a:hover:after {
  border-color: #fff;
}

.button002 a {
  background: #eee;
  border-radius: 5px;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 280px;
  padding: 20px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
}

.button002 a:hover {
  background: #324a36;
  color: #fff;
}

.button001 img,
.button002 img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

/*=========  フッター ========= */
#footer {
  justify-content: space-between;
  border-top: solid 1px #000000;
  font-size: 0.75rem;
  padding: 50px 30px 0 30px;
  text-align: left;
}

#footer a {
  color: #000;
  position: relative;
}

#footer a:hover {
  color: #395b70;
}

#footer p {
  font-size: 1rem;
  line-height: 1.6;
}

#footer .copyright {
  text-align: center;
  font-size: 0.625rem;
  margin: 2rem auto 2rem auto;
}

/*=========  SP ========= */
@media screen and (max-width: 600px) {
  #main-visual p {
    top: 15%;
    left: 40%;
    font-size: 1.2rem;
    width: 100%;
    line-height: 1.2;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  #main-visual .kyojushien {
    font-size: 0.5rem;
  }

  .slideshow-fade {
    max-height: 300px;
  }

  #main-visual h2 {
    font-size: small;
    padding-top: 60px;
  }

  .nav_pc {
    display: none;
  }

  #header {
    background-color: #fff;
    position: relative;
    height: 50px;
    margin: auto;
    max-width: 100%;
    display: flex;
  }

  #header h1 a {
    color: #000;
  }

  #header .wrapper {
    position: absolute;
    right: 0;
  }

  .header-logo {
    height: 35px;
    padding: auto;
    z-index: 990;
  }

  .logo-before {
    display: none;
  }

  .logo-after {
    opacity: 1;
    margin: 3% auto auto 5%;
    position: relative;
    left: 0;
    bottom: 5%;
  }

  .nav_sp {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    margin: 0;
    padding: 0 20px 40% 20px;
    visibility: hidden;
    transition:
      opacity 0.5s,
      visibility 0.5s;
    background-color: #fff;
    z-index: 997;
  }

  .nav_sp ul {
    display: list-item;
    margin-top: 0;
  }

  .nav_sp li {
    margin-bottom: 30px;
  }

  .nav_sp li a {
    color: #f88826;
  }

  .nav_sp.show {
    opacity: 1;
    visibility: visible;
    transform: translate(0);
    transition: 0.3s ease-out;
    z-index: 997;
  }

  /*========= ボタンのためのCSS ===============*/
  .openbtn {
    box-sizing: border-box;
    position: fixed;
    z-index: 998;
    top: 0.3%;
    right: 0.8%;
    cursor: pointer;
    width: 50px;
    height: 50px;
  }

  .openbtn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #666;
    width: 45%;
  }

  .openbtn span:nth-of-type(1) {
    top: 15px;
  }

  .openbtn span:nth-of-type(2) {
    top: 23px;
  }

  .openbtn span:nth-of-type(3) {
    top: 31px;
  }

  .openbtn.show span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 50%;
  }

  .openbtn.show span:nth-of-type(2) {
    opacity: 0;
  }

  .openbtn.show span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 50%;
  }

  #news .list {
    flex-wrap: wrap;
  }

  #news .list li {
    margin-top: 5%;
  }

  #news .list p {
    font-size: 1rem;
  }

  #service .section-title {
    font-size: 1.1rem;
  }

  #service .right {
    flex-direction: column-reverse;
  }

  .content {
    flex-direction: column;
  }

  .content img {
    width: 10rem;
    height: 10rem;
    margin-bottom: 10px;
  }

  .content .iiimg {
    width: 100%;
    height: auto;
  }

  .content .service_text {
    width: 100%;
    font-size: 0.6rem;
  }

  .content .service_text p {
    font-size: 0.7rem;
  }

  #contact .text {
    font-size: 0.7rem;
  }

  .prof {
    min-width: 100%;
    font-size: 0.7rem;
    line-height: 1rem;
  }

  .prof th {
    width: 25%;
  }

  .prof td {
    width: 75%;
    padding: 5% 0 5% 10px;
  }

  #service .site-btn {
    background-color: #ff7c2a;
    border-bottom: 6px solid #9a4504;
    border-radius: 10px;
    color: #fff;
    font-size: 0.7rem;
    display: block;
    padding: 10px 20px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    margin: 2px 0 0 0;
  }

  #service .site-btn::after {
    content: '';
    width: 10px;
    height: 10px;
    border-top: solid 3px #ffffff00;
    border-right: solid 3px #ffffff00;
  }

  .works-contents {
    flex-direction: column;
    padding-top: 140px;
  }

  .works-contents article {
    width: 100%;
    margin-bottom: 30px;
  }

  .works-contents .art img {
    height: 160px;
  }

  #footer p {
    font-size: 0.75rem;
  }
}

@media screen and (max-width: 850px) and (orientation: landscape) {
  .openbtn {
    top: 0.3%;
    right: 8%;
  }

  .works-contents .art img {
    height: 130px;
  }
}
