@charset "utf-8";
/* ---------------------------------------------------------
common
----------------------------------------------------------*/
*{
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;/* 10px */
  height: -webkit-fill-available;
  scroll-behavior: smooth;
}
body {
  color: #525252;
  background-color: #fff;
  font-size: 1.4rem;/* 14px */
  line-height: 1.5;
  font-family: 'Kaisei Opti','Noto Sans JP', 'メイリオ', 'Meiryo','ＭＳ ゴシック','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3',sans-serif;
/*  word-break : break-all;*/
  min-height: 100vh;
  min-height: -webkit-fill-available;
}
a {
  text-decoration: none;
}
a:hover {
  opacity: 0.7;
  transition: 0.3s;
}
img {
  width: 100%;
}
.wrapper {
  width: 100%;
  min-width: 28rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.inner {
  width: 90%;
  max-width: 75rem;
  margin: 0 auto;
}

/*header*/
#header {
  background-color: #a1404f;
  position: fixed;
  width: 100%;
  z-index: 100;
}
.header-inner {
  width: 95%;
  max-width: 103rem;
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
}
h1 {
  color: #fff;
  margin-bottom: 5px;
  font-weight: normal;
  font-size: 10px;
}
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left img {
  width: 50px;
}
/* ---------------------------------------------------------
menu-nav
----------------------------------------------------------*/
.menu-nav{
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position:fixed;
  z-index: 999;
  /*ナビのスタート位置と形状*/
  top: 0;
  right: -120%;
  width:100%;
  /*ナビの高さ*/
  height: 100vh;
  background-color: #a1404f;
  transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
.menu-nav.panelactive{
  right: 0;
}

/*ナビゲーションの縦スクロール*/
.menu-nav.panelactive .menu-nav-list{
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999; 
  width: 100%;
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.menu-nav-list ul {
  /*ナビゲーション天地中央揃え*/
  width: 90%;
  position: absolute;
  z-index: 999;
  top: 10rem;
  left:50%;
  transform: translateX(-50%);
}

/*リストのレイアウト設定*/
.menu-nav-list li{
  list-style: none;
  border-top: solid 0.1rem #fff;
  position: relative;
}
.menu-nav-list li:last-child{
  border-bottom: solid 0.1rem #fff;
}

.menu-nav-list li a {
  color: #fff;
  text-decoration: none;
  padding: 2rem;
  display: block;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.5rem;
}
.menu-nav-list i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 90%;
}


/*ボタンのためのCSS*/
.header-hamburger {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.openbtn{
  position:relative;
  /*ボタンを最前面に*/
  z-index: 9999;
  cursor: pointer;
  width: 3rem;
  min-width: 3rem;
  height:4rem;
}


/*×に変化*/	
.openbtn span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 0;
  height: 0.3rem;
  background-color: #fff;
  width: 100%;
  border-radius: 0.5em;
}

.openbtn span:nth-of-type(1) {
  top:1.2rem;	
}

.openbtn span:nth-of-type(2) {
  top:2rem;
}

.openbtn span:nth-of-type(3) {
  top:2.8rem;
}

.openbtn.active span:nth-of-type(1) {
  top: 1.8rem;
  left: 0;
  transform: translateY(6px) rotate(-45deg);
  width: 100%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn.active span:nth-of-type(3){
  top: 3rem;
  left: 0;
  transform: translateY(-6px) rotate(45deg);
  width: 100%;
}
.panelactive .nav-banner ul {
  left: 0;
}
/*fv*/
.fv img {
  vertical-align: middle;
}
.fv div {
  text-align: center;
  padding: 40px 0;
  background-color: #a1404f;
  color: #fff;
  font-size: 14px;
}
/*category*/
.category {
  background-color: #f6f6f6;
  padding: 60px 0;
}

.category-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center; /* 中央揃えが必要な場合 */
}
.category-item img {
  z-index: 2;
}
.category-box {
  flex: 1;
  position: relative;
  top: -12.5px;
  width: 100%;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
  color: #251e1c;
}

.box-1 {
  border: solid 1px #a1404f;
}
.box-2 {
  border: solid 1px #cab262;
}
.box-3 {
  border: solid 1px #8da76a;
}
/*work*/
.work-wrap {
  padding: 60px 0;
}
.work-wrap h2 {
  max-width: 370px;
  width: 60%;
  margin: 0 auto 50px;
}
.works-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
  margin-bottom: 70px;
}
.works-list img {
  margin-bottom: 10px;
}
.works-list p {
  text-align: center;
  color: #251e1c;
}
/*about*/
.about-wrap {
  padding: 60px 0 140px;
  background-color: #f6f6f6;
}
.about-wrap h2 {
  max-width: 370px;
  width: 60%;
  margin: 0 auto 50px;
}
.about-contents {
  text-align: center;
}
.about-contents p {
  margin-bottom: 10px;
}
.about-contents p:nth-of-type(1) {
  font-weight: bold;
  font-size: 20px;
}
/*contact*/
.contact-wrap {
  padding: 50px 0 125px;
}
.contact-wrap h2 {
  max-width: 250px;
  width: 50%;
  margin: 0 auto 80px;
}
.contact-contents p {
  text-align: center;
}
.contact-contents p:nth-of-type(1) {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 30px;
}
.to-contact a {
  padding: 2rem 0;
  display: block;
  background-color: #0a417b;
  width: 80%;
  max-width: 400px;
  margin: 40px auto 0;
  border-radius: 1em;
  font-size: 1.8rem;
  color: #fff;
  font-weight: bold;
  text-align: center;
}
.to-contact i {
  margin-left: 5px;
}
/*footer*/
.footer-wrap {
  background-color: #a1404f;
  color: #fff;
  padding: 25px 0 100px;
}
.footer-nav ul {
  margin-bottom: 25px;
}
.footer-nav a {
  color: #fff;
}
.footer-logo {
  width: 150px;
  margin: 0 auto 30px;
}
.copyright {
  text-align: center;
}
.copyright  p:nth-of-type(1) {
  font-size: 16px;
  margin-bottom: 15px;
}
.copyright a {
  color: #fff;
}
/* ---------------------------------------------------------
769px未満
----------------------------------------------------------*/
@media  screen and (max-width:769px) {
  .only-pc {
    display: none;
  }
  #work,#about {
    padding-top: 100px;
    margin-top: -100px;
  }
  /*category*/
  .category-item {
    margin-bottom: 20px;
  }
  .category-item img {
    width: 70%;
    margin: 0 auto;
  }
  .category-box {
    width: 80%;
  }
  .cp-sp {
    margin-bottom: 60px
  }
  .cp-sp h2 {
    margin-bottom: 5px;
    color: #251e1c;
  }
  .works-list p {
    font-size: 10px;
  }
  .footer-nav li {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
  }
}

/* ---------------------------------------------------------
769px以上
----------------------------------------------------------*/
@media not screen and (max-width:769px) {
  .only-sp {
    display: none;
  }
  #work,#about {
    padding-top: 150px;
    margin-top: -150px;
  }
  .inner {
    width: 80%;
    max-width: 110rem;
    margin: 0 auto;
  }
  /*header*/
  h1 {
    font-size: 14px;
    margin-bottom: 15px;
  }
  .header-left img {
    width: 100px;
  }
  .pc-nav-list ul {
    display: flex;
    gap: 80px;
  }
  .pc-nav-list a {
    color: #fff;
    font-size: 20px;
  }
  /*fv*/
  .fv div {
    font-size: 20px;
  }
  /*category*/
  .category {
    padding: 60px 0 100px;
  }
  .category-flex {
    display: flex;
    gap: 5%;
    margin-bottom: 50px;
  }
  .cp-pc p {
    margin-bottom: 30px;
  }
  .cp-pc h2 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #251e1c;
  }
  /*footer*/
  .footer-wrap {
    padding: 25px 0 150px;
  }
  .footer-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    font-size: 20px;
  }
}
