@charset 'utf-8';

/*******************
#about
*******************/

#about .container .caption{
  text-align: center;
  font-weight: var(--font-weight-medium);
}

@media (min-width:1025px){
  #about section:not(#contact) .container h3,
  #about section:not(#contact) .container .caption{
    text-align: left;
  }
  #about #commitment .container h3,
  #about #commitment .container .caption{
    margin-left: calc((100% - 1000px) / 2);
  }
  #about section:not(#contact) .container h3::before,
  #about section:not(#contact) .container h3::before{
    left: 0;
    transform: translateX(0);
  }
}

/********
#about-about
*********/
#about-about .container{
  padding-top: 60px;
  display: flex;
  flex-direction: column;
}
#about-about .container .about-info{
margin-top: 20px;
}
#about-about .container .about-info h2{
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  line-height: 1.5;
}
#about-about .container .about-info p{
margin-top: 20px;
line-height: 1.7;
}
#about-about .container .about-img{
margin-top: 50px;
}

@media (min-width:1025px){
  #about-about .container{
    flex-direction: row;
    justify-content: space-between;
  }
  #about-about .container .about-info,
  #about-about .container .about-img{
    width: 48%;
  }
  #about-about .container .about-info{
    align-self: center;
  }
  #about-about .container .about-info h2{
    font-size: 30px;
  }
}

/********
#commitment
*********/
#commitment .container{
  width: 100%;
  max-width: unset;
  padding:0px calc((100% -1000px) / 2) ;
}

#commitment .container h3{
  margin-top: 3px;
}
#commitment .container .box{
  padding: 50px 0px;
}
#commitment .container .box:nth-child(1){
  margin-top: 30px;
}
#commitment .container .box:nth-child(2n){
  background-color: var(--sub-colour);
}
#commitment .container .box .inner,
#commitment .container .box .box-for-table{
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* 
table
*/
#commitment .container .box .box-for-table{
  margin-top: 50px;
}
#commitment .container .box .box-for-table table{
  width: 100%;
}
#commitment .container .box .box-for-table table.table-for-pc{
  display: none;
}
#commitment .container .box .box-for-table table.table-for-sp{
  display: table;
}
#commitment .container .box .box-for-table table caption{ 
  font-size: 17px;
  font-weight: var(--font-weight-medium);
  margin-bottom:15px;
}
#commitment .container .box .box-for-table table,
#commitment .container .box .box-for-table td{
  border: 1px solid var(--text-colour);
  border-collapse: collapse;
}
#commitment .container .box .box-for-table tr.year,
#commitment .container .box .box-for-table tr.data{
  font-size: 14px;
}
#commitment .container .box .box-for-table tr.title{
  font-size: 14px;
  font-weight: 400;
}
#commitment .container .box .box-for-table tr.data td.this{
  font-weight: var(--font-weight-medium);
}
#commitment .container .box .box-for-table tr.title td.achieve{
  background: var(--sub-colour);
}
#commitment .container .box .box-for-table tr.title td.goal{
  background: var(--main-colour);
  color: white;
}
#commitment .container .box .box-for-table td{
  text-align: center;
  vertical-align: middle;
  padding: 6px 5.5px;
}

@media(min-width:400px){
  #commitment .container .box .box-for-table table caption{ 
    font-size: 18px;
  }
}
@media(min-width:600px){
  #commitment .container .box .box-for-table table caption{ 
    font-size: 20px;
  }
  #commitment .container .box .box-for-table tr.year,
  #commitment .container .box .box-for-table tr.data{
    font-size: 18px;
  }
  #commitment .container .box .box-for-table tr.title{
    font-size: 16px;
    font-weight: 400;
  }
}
@media(min-width:1025px){
  #commitment .container .box .box-for-table table{
    width: 70%;
    margin:0 0 0 auto;
  }
  #commitment .container .box .box-for-table table.table-for-pc{
    display: table;
  }
  #commitment .container .box .box-for-table table.table-for-sp{
    display: none;
  }
}

#commitment .container .box .point{
  color: var(--main-colour);
  font-weight: bold;
}
#commitment .container .box .title{
  text-align: left;
  font-size: 26px;
  margin-top: 10px;
  font-weight: var(--font-weight-medium);
}
#commitment .container .box .text{
  text-align: left;
  margin-top: 30px;
  line-height: 1.7;
}

@media (min-width:1025px){
  #commitment .container .box{
    padding: 80px 0px;
  }
  #commitment .container .box:first-of-type{
    margin-top: 30px;
  }
  #commitment .container .box .inner{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  #commitment .container .box .inner .item{
    width: 30%;
  }
  #commitment .container .box .inner .text{
    width: 70%;
    margin-top: unset;
  }
}

/********
#overview
*********/

#overview span{
  display: block;
}
#overview .company{
  margin-top: 60px;
  line-height: 1.7;
  font-weight: var(--font-weight-medium);
}
#overview .info{
  margin-top: 35px;
  line-height: 1.7;
}

@media (min-width:1025px){
  #overview .container{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;

  }
  #overview .container .left{
    margin-top: 50px;
  }
  #overview .company{
    margin-top: unset;
  }
}


/*******************
#service
*******************/
#service > .outer{
  padding-top: 50px;
}

#service .btn{
  width: 90%;
  max-width: 1000px;
  margin: 50px auto 0;
  text-align: center;
}

@media (min-width:1025px){
  #service .btn{
    width: fit-content;
    max-width: unset;
  }

}

/********
#service-about
*********/
#service-about .container{
  padding-top: unset;
}
#service-about .container p {
  line-height: 1.7;
}

/********
#service-contents
*********/

#service-contents section .container{
  margin-top: 50px;
  padding-top: unset;
  position: relative;
  display: flex;
  flex-direction: column-reverse;
}

#service-contents section .container .caption{
  writing-mode: vertical-rl;
  font-size: 20px;
}

#service-contents section .container .number{
  font-size: 50px;
  margin-top: 20px;
}
#service-contents section .container .caption,
#service-contents section .container .number{
  font-weight: bold;
  color: var(--main-colour);
}
#service-contents section .container .service-info{
  margin-top: 30px;
  display: block;
}
#service-contents section .container .service-info h4{
  font-size: 30px;
  line-height: 1.2;
  font-weight: var(--font-weight-medium);
}
#service-contents section .container .service-info p{
  margin-top: 30px;
  line-height: 1.7;
}
#service-contents section .container .service-img{
  display: block;
  margin-top: 30px;
}

@media (min-width:1025px){
  #service-contents section .container{
    margin-top: 90px;
    height: 600px;
  }
  #service-contents section .container .outer{
    width: 540px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
  }
  #service-contents section .container .caption{
    margin-left: 0;
    margin-right: auto;
    flex-grow: 1;
  }
  #service-contents section .container .number{
    margin-top: 50px;
  }
  #service-contents section .container .service-info{
    background: white;
    margin-top: 0;
    padding:40px 40px 0 0;
  }
  #service-contents section .container .service-img{
    width: 800px;
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 0;
  }
  #service-contents section:nth-child(2n) .container{
    flex-direction: row-reverse;
  }
  #service-contents section:nth-child(2n) .container .service-img{
    left:0
  }
  #service-contents section:nth-child(2n) .container .caption{
    margin-left: auto;
    margin-right: 0;
  }
  #service-contents section:nth-child(2n) .container .number{
    text-align: right;
  }
  #service-contents section:nth-child(2n) .container .service-info{
    padding:40px 0 0 40px;
  }
  #service .btn{
    margin-top: 90px;
  }
}

/*******************
#gallery
*******************/
#gallery > .outer{
  padding-top: 50px;
}

/********
#gallery-about
*********/
#gallery-about .container{
  padding-top: unset;
}
#gallery-about .container p {
  line-height: 1.7;
}

/********
#gallery-category
*********/

#gallery-category{
  margin-top: 50px;
}
#gallery-category .container{
  padding-top: unset;
}

#gallery-category .container button{
  display: flex;
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: left;
  background-color: #efefef;
  padding-left: 20px;
  color: var(--text-colour);
  font-size: 18px;
  transition: 0.3s;
}
#gallery-category .container button:not(:first-child){
  margin-top: 10px;
}
#gallery-category .container button.selected{
  background: var(--sub-colour);
  transition: 0.3s;

}

@media (min-width:1025px){
  #gallery-category .container{
    display: flex;
    flex-direction: row;
    height: 80px;
  }
  #gallery-category .container button{
    display: block;
    width: calc(100% / 6);
    text-align: center;
    padding-left: 0;
    height: auto;
    line-height: 1.7;
    background-color: white;
    border-bottom: 1px solid var(--text-colour);
  }
  #gallery-category .container button:not(:first-child){
    margin-top: unset;
  }
}

/********
#gallery-items
*********/
#gallery-items {
  min-height: 300px;
}

#gallery-items .container{
  margin-top: 50px;
  padding-top: unset;
  display: grid;
  grid-template-columns: 49% 49%;
  gap: 20px 2%;
}

#gallery-items .container .item{
  display: none;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  transition: 0.3s;
  opacity: 0;
}

#gallery-items .container .item a{
  height: 100%;
}

#gallery-items .container .item img{
  height: 100%;
  object-fit: cover;
}

#gallery-items .container .item.selected{
  display: block;
}

#gallery-items .container .item.show{
  opacity: 1;
  transition: ease 0.3s;
}

#gallery-items .container .item.selected:nth-child(-n + 2){
  margin-top: unset;
}

#gallery-items .container .item .cover{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#gallery-items .container .item .cover .name{
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  color: white;
}

#gallery-items .container .item .cover .category{
  font-size: 14px;
  color: white;
}

#gallery-items .error{
  display: none;
  width: 100%;
  margin-top: 50px;
  text-align: center;
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  opacity: 0;
  transition: 0.3s;
}
#gallery-items .error.active{
  display: block;
}
#gallery-items .error.show{
  opacity: 1;
  transition: 0.3s;
}
@media (min-width:600px){
  #gallery-items .container .item .cover .name{
    font-size: 26px;
  }
  
  #gallery-items .container .item .cover .category{
    font-size: 16px;
  }
}

@media (min-width:1025px){
  #gallery-items {
    min-height: 400px;
  }
#gallery-items .container{
  justify-content: flex-start;
  grid-template-columns: 32% 32% 32%;
  gap: 20px 20px;
}
#gallery-items .container .item .cover .name{
  font-size: 30px;
}

#gallery-items .container .item .cover .category{
  font-size: 18px;
}
}

/*******************
.single
*******************/

.single > .outer{
  padding-top: 90px;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.single .outer .container{
  width: 100%;
  max-width: unset;
  margin: unset;
  padding: 50px 0 0;
}

/********
.single-detail
*********/
.single .outer .single-detail h2{
  font-size: 30px;
  font-weight: var(--font-weight-medium);
}
.single .outer .single-detail .main-img{
  margin-top: 50px;
}
.single .outer .single-detail .description{
  margin-top: 30px;
  text-align: left;
  line-height: 1.7;
}
.single .outer .single-detail .description p:nth-child(n + 2){
  margin-top: 15px;
}
.single .outer .single-detail .sub-imgs{
  margin-top: 50px;
}
.single .outer .single-detail .sub-img:not(:first-of-type){
  display: block;
  margin-top: 30px;
}

@media (min-width:1025px){
  .single .outer .single-detail .main-img{
    margin-top: 30px;
  }
  .single .outer .single-detail .sub-imgs{
    margin-top: 30px;
  }
  .single .outer .single-detail .sub-img{
    width: 48.5%;
    padding-bottom: 30px;
  }
  .single .outer .single-detail .sub-img:not(:first-of-type){
    display: block;
    margin-top: unset;
  }
}

/********
.single-blog
*********/
.single .outer .single-blog{
  margin-bottom: 40px;
}
.single .outer .single-blog h2{
  font-size: 30px;
  font-weight: var(--font-weight-medium);
}
.single .outer .single-blog .border{
  display: block;
  width: 100%;
  margin-top: 20px;
  border-bottom: 1px solid var(--text-colour);
}
.single .outer .single-blog .blog-box{
  margin-top: 25px;
}
.single .outer .single-blog .blog-box .blog-item{
  background: var(--sub-colour);
  padding: 20px;
  display: flex;
}
.single .outer .single-blog .blog-box .blog-item:not(:first-of-type){
  margin-top: 20px;
}
.single .outer .single-blog .blog-box .blog-item .blog-img{
  width: 30%;
  aspect-ratio: 4 / 3;
  display: block;
}
.single .outer .single-blog .blog-box .blog-item .blog-img img{
  height: 100%;
  object-fit: cover;
}
.single .outer .single-blog .blog-box .blog-item .content{
  display: block;
  width: 60%;
  flex-grow: 1;
  padding-left: 15px;
  display: flex;
  flex-direction: column;
}
.single .outer .single-blog .blog-box .blog-item .content .title{
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  flex-grow: 1;
}
.single .outer .single-blog .blog-box .blog-item .content .article{
  display: none;
}
.single .outer .single-blog .blog-box .blog-item .content .link{
  width: fit-content;
  border: 1px solid black;
}
.single .outer .single-blog .blog-box .blog-item .content .link a{
  display: block;
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: white;
  background: black;
  padding: 5px 10px;
}

@media (min-width:1025px){
  .single .outer .single-blog .blog-box .blog-item .content .title{
    font-size: 26px;
    flex-grow: unset;
  }
  .single .outer .single-blog .blog-box .blog-item .content .article{
    display: block;
    margin-top: 10px;
    flex-grow: 1;
    line-height: 1.7;
  }
  .single .outer .single-blog .blog-box .blog-item .content .link{
    margin-left: auto;
    margin-right: 0;
  }
  .single .outer .single-blog .blog-box .blog-item .content .link a{
    font-size: 20px;
    padding: 5px 20px;
  }
}

/********
other
*********/

.athome-link{
  color:var(--link-colour);
  transition: 0.3s;
}

.athome-link:hover{
  opacity: 0.8;
  transition: 0.3s;
}

/*******************
animation
*******************/

/********
画面に入ったらふわっと表示
*********/
.scroll-fade-up{
  transform: translateY(100px);
}

/********
btn-action
btnにホバーで反転
*********/
section .container .btn a,
.btn a{
  position: relative;
  z-index: 1;
  transition: ease 0.6s;
}
section .container .btn a::before,
.btn a::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: var(--text-colour);
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
}
section .container .btn.active a,
.btn.active a,
#blog .container.active .btn a{
  background-color: white;
  color: white;
  border: 2px solid var(--text-colour);
}
#blog .container.active .btn a svg{
  stroke: white;
}
section .container .btn.active a::before,
.btn.active a::before,
#blog .container.active .btn a::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}
/********
#blog
ボタン・写真ホバーでボタン反転 + 写真ズーム
*********/

#blog .container .image{
  overflow: hidden;
}

#blog .container .image img {
  transition: 0.6s;
}

#blog .container.active .image img {
  transform: scale(1.1);
  transition: 0.6s;
}

/********
#gallery-items-action
galleryのitemにホバーでカバー表示+写真アップ
*********/
#gallery-items .container .item img{
  transition: 0.3s;
}
#gallery-items .container .item .cover{
  opacity: 0;
  transition: 0.3s;
}
#gallery-items .container .item.active img{
  scale: 1.1;
  transition: 0.3s;
}
#gallery-items .container .item.active .cover{
  opacity: 1;
  transition: 0.3s;
}