/*
Theme Name: 株式会社菅原工務店
Theme URI:
Description:  
Author: 
Author URI: 
Version: 1.0
*/

/* トップページ */
#top h2 {
  font-weight: 400;
  text-align: center;
  font-size: clamp(1.8rem, 1.72rem + 0.4vw, 2.2rem)
}

#top h2 .font-en {
  font-size: clamp(1.875rem, 1.466rem + 2.05vw, 3rem)
}

#top h2 .font-en.title-sub {
  font-size: 1.1rem !important
}

#top h2 span {
  display: block
}

#top .home_fv {
  width: 100%;
  height: 100vh;
  position: relative
}
#top .home_fv .video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  
}

#top .home_fv .video-container iframe {
  position: absolute;
  top: 50%;
  left: 0;
  width: 177.78vh; /* 16:9 のアスペクト比を維持して縦にフィット */
  height: 100vh;
  transform: translateY(-50%);
  pointer-events: none;
}
#top .home_fv .video-container video {
  position: absolute;
  top: 50%;
  left: 0;
  width: 177.78vh; /* 16:9 のアスペクト比を維持して縦にフィット */
  height: 100vh;
  transform: translateY(-50%);
  pointer-events: none;
}
#top .home_fv .home_fv-catch {
  position: absolute;
  bottom: 10%;
  left: 10%;
  color: #fff;
  font-size: clamp(2.1rem, 1.231rem + 3.97vw, 6rem);
  line-height: 1
}

#top .home_fv .home_fv-catch .home_fv-catch__small {
  font-size: clamp(1.25rem, .977rem + 1.36vw, 2rem);
}
@media screen and (max-width: 767px) {
  #top .home_fv .video-container iframe{
    width: 100%;
  }
  #top .home_fv .home_fv-catch{
    top: 50%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    width: 80%;
    text-align: center;
    padding: 20px;
    line-height: 1.4;
  }
}
#top .home_link .flex {
  align-items: center
}

#top .home_link .flex .home_link--img {
  width: 41%
}

#top .home_link .flex .home_link--list {
  display: flex;
  justify-content: space-between;
  width: 85%;
  margin: 0 0 0 -200px
}

#top .home_link .flex .home_link--list li {
  width: 33.2%;
  background-color: #fff;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px
}

#top .home_link .flex .home_link--list li .home_link--list_img {
  width: 90px;
  height: 90px;
  padding: 20px;
  background-color: var(--bg-highlight);
  border-radius: 50%
}

#top .home_link .flex .home_link--list li .font-en {
  font-size: clamp(1.1rem, 1.064rem + .18vw, 1.2rem);
  position: relative;
  padding-bottom: 5px
}

#top .home_link .flex .home_link--list li .font-en::after {
  content: "";
  background-color: var(--sub-color01);
  width: 30px;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%)
}

#top .home_link .flex .home_link--list li h3 {
  font-size: 1rem;
  font-weight: 400
}

#top .home_link .flex .home_link--list li .btn01 {
  width: 75%
}

@media screen and (max-width: 1024px) {
  #top .home_link .flex {
    flex-direction: column;
  }
  #top .home_link .flex .home_link--img {
    width: 100%;
  }
  #top .home_link .flex .home_link--list {
    width: 100%;
    margin: 0;
  }
}
@media screen and (max-width: 767px) {
  #top .home_link .flex .home_link--list {
    flex-direction: column;
    gap: 1px;
  }
  #top .home_link .flex .home_link--list li {
    width: 100%;
    margin: 0;
  }
}

#top .home_news .flex {
  align-items: center;
  gap: 60px
}

#top .home_news .flex .home_news-title_area h2 {
  margin-bottom: 40px
}

#top .home_news .flex .home_news-title_area .btn01 {
  margin: 0 auto
}

#top .home_news .flex .news-list {
  padding-bottom: 60px;
  width: 100%;
}

#top .home_news .flex .news-list .news-list--item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative
}
#top .home_news .flex .news-list .news-list--item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
}
#top .home_news .flex .news-list .news-list--item .news-list--date {
  color: var(--sub-color01);
  font-family: var(--font-family-en);
  line-height: 1.2;
  margin-top: 5px
}

#top .home_news .flex .news-list .swiper-button {
  display: block;
  padding: 0;
  color: rgba(0, 0, 0, 0);
  z-index: 1;
  transition: opacity .5s;
  width: 40px;
  height: 40px;
  background-color: #000;
  border-radius: 1000px;
  top: auto;
  bottom: 0
}

#top .home_news .flex .news-list .swiper-button:hover {
  opacity: .7
}

#top .home_news .flex .news-list .swiper-button::before,
#top .home_news .flex .news-list .swiper-button::after {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  content: "";
  vertical-align: middle
}

#top .home_news .flex .news-list .swiper-button::after {
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff
}

#top .home_news .flex .news-list .swiper-button-next::after {
  right: 25%;
  transform: translateX(-50%) rotate(45deg)
}

#top .home_news .flex .news-list .swiper-button-prev {
  right: 80px;
  left: auto
}

#top .home_news .flex .news-list .swiper-button-prev::after {
  left: 58%;
  transform: translateX(-50%) rotate(-135deg)
}

#top .home_concept .flex {
  gap: 80px;
  align-items: flex-start
}

#top .home_concept .flex .home_concept--textarea {
  flex-direction: column;
  gap: 60px;
  justify-content: center;
  align-items: center
}

#top .home_concept .flex .home_concept--textarea h2 {
  font-size: clamp(1.25rem, .977rem + 1.36vw, 2rem);
  letter-spacing: .5rem
}

#top .home_concept .flex .home_concept--textarea p {
  line-height: 2.8
}

#top .home_concept .flex .home_concept--imgarea {
  position: relative;
  padding-bottom: 200px
}

#top .home_concept .flex .home_concept--imgarea .home_concept--hokkaido {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 65%;
  opacity: .8
}

#top .home_concept .flex .home_concept--imgarea .pulse {
  position: absolute;
  bottom: 26%;
  left: 24%;
  width: 20px;
  height: 20px;
  background-color: #ccc;
  border-radius: 50%;
  transition: background-color cubic-bezier(0.215, 0.61, 0.355, 1) .4s;
  background-color: #aa8f7b
}

#top .home_concept .flex .home_concept--imgarea .pulse::after {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: opacity linear .4s;
  content: "";
  animation: pulseMotion 1.4s linear infinite
}
@media screen and (max-width: 767px) {
  #top .home_concept .flex .home_concept--textarea{
    flex-direction: row-reverse;
    gap: 40px;
    width:100%;
  }
  #top .home_concept .flex .home_concept--textarea p{
    line-height: 2.3;
  }
  #top .home_concept .flex .home_concept--imgarea{
    padding-bottom: 160px;
  }
  #top .home_concept .flex .home_concept--imgarea .home_concept--hokkaido{
    width: 100%;
  }
}
#top .home_works h2 {
  margin-bottom: 60px;
  text-align: left;
  padding-left: 40px
}

#top .home_works .section-text {
  text-align: left;
  margin-bottom: 80px;
  padding-left: 80px
}

#top .home_works .works-list {
  gap: 40px 0;
  flex-wrap: wrap;
  margin-bottom: 60px
}

#top .home_works .works-list article {
  border-right: 1px solid var(--border-color);
  padding: 0 20px;
  width: 33.3333333333%
}

#top .home_works .works-list article:nth-of-type(3n) {
  border: none
}

#top .home_works .works-list article .works--imgarea {
  margin-bottom: 40px;
  position: relative
}

#top .home_works .works-list article .works--imgarea .new-label {
  position: absolute;
  top: 0;
  left: 10px;
  color: #fff;
  background-color: var(--sub-color01);
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem
}

#top .home_works .works-list article .works--imgarea img {
  aspect-ratio: 480/570;
  object-fit: cover;
}

#top .home_works .works-list article .works--textarea .works--name {
  font-size: clamp(.625rem, .534rem + .45vw, .875rem)
}

#top .home_works .works-list article .works--textarea .works--title {
  font-weight: 600;
  font-size: clamp(1rem, .955rem + .23vw, 1.125rem);
  margin-bottom: 20px
}

#top .home_works .works-list article .works--textarea .post--text {
  font-size: clamp(.75rem, .705rem + .23vw, .875rem);
  font-family: var(--font-family-gothic);
}

#top .home_works .btn-wrapper .btn01 {
  width: 160px;
  margin: 0 auto
}
@media screen and (max-width: 767px) {
  #top .home_works h2{
    padding-left: 0;
    margin-bottom: 40px;
  }
  #top .home_works .section-text{
    padding-left: 0;
    margin-bottom: 40px;
  }
  #top .home_works .works-list article{
    width: 100%;
    border: none;
  }
  #top .home_works .works-list{
    margin-bottom: 40px;
  }
  #top .home_works .works-list article .works--imgarea{
    margin-bottom: 20px;
  }
}

#top .home_building {
  background: url("img/top/building_bg.jpg") no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  padding-top: calc(70vh + 80px)
}

#top .home_building::before {
  content: "";
  position: absolute;
  width: 100%;
  height: calc(100% - 70vh);
  top: 70vh;
  left: 0;
  background-color: rgba(244, 245, 240, .8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px)
}

#top .home_building .home_building__bglogo {
  position: absolute;
  top: calc(70vh + 100px);
  left: calc(50% + max(80px, min(6vw, 100px))/2);
  transform: translateX(-50%);
  opacity: .1;
  z-index: 1;
  width: 40vw;
  height: auto
}

#top .home_building .home_building__bglogo.fixed {
  position: fixed;
  top: 100px;
  left: 50%
}

#top .home_building .home_building__bgtext {
  position: absolute;
  right: 0;
  top: 70vh;
  color: #fff;
  font-size: clamp(6rem, 3.6rem + 12vw, 18rem);
  opacity: .4;
  line-height: 1;
  z-index: 2;
  overflow: hidden;
}

#top .home_building .container {
  z-index: 3
}

#top .home_building h2 {
  text-align: left;
  margin-bottom: 60px
}

#top .home_building .home_building-textarea h3 {
  text-align: right;
  margin-bottom: 20px;
  font-size: clamp(1.25rem, .977rem + 1.36vw, 2rem);
  font-weight: 400
}

#top .home_building .home_building-textarea p {
  text-align: right;
  margin-bottom: 40px
}

#top .home_building .home_building-item {
  position: relative;
  width: 50%;
  margin-bottom: 60px
}

#top .home_building .home_building-item:nth-child(even) {
  margin: 0 0 60px auto
}

#top .home_building .home_building-item .home_building-item--en {
  position: absolute;
  line-height: .8;
  mix-blend-mode: difference;
  z-index: 1;
  font-size: clamp(3.4rem, 3.24rem + 0.8vw, 4.2rem);
  top: 0;
  right: 0;
  color: #505050
}

#top .home_building .home_building-item .home_building-item--ja {
  font-size: clamp(1.5rem, 1.44rem + 0.3vw, 1.8rem);
  position: absolute;
  bottom: 0;
  left: 20px
}

#top .home_building .home_building-item .home_building-item--ja span {
  margin-right: 10px;
  background: #fff
}

#top .home_building .home_building-item .home_building-item--ja span:nth-of-type(2) {
  margin-top: 50px
}

#top .home_building .home_building-item .home_building-item--textarea {
  width: 64%;
  margin: 40px 0 0 auto
}

#top .home_building .home_building-item .home_building-item--textarea p {
  margin-bottom: 40px
}

#top .home_building .home_building-item .home_building-item--textarea .btn01 {
  width: 200px;
  margin: 0 0 0 auto
}
@media screen and (max-width: 767px) {
  #top .home_building {
    padding-top: calc(50vh + 80px);
  }
  #top .home_building::before{
    top: 50vh;
    height: calc(100% - 50vh);
  }
  #top .home_building .home_building__bgtext{
    top: 10px;
  }
  #top .home_building h2{
    margin-bottom: 40px;
  }
  #top .home_building .home_building-item{
    width: calc(100% + 30px);
    margin-bottom: 40px;
    margin-left: -15px;
  }
  #top .home_building .home_building__bglogo{
    width: 70vw;
  }
  #top .home_building .home_building-item:nth-child(even){
    margin: 0 auto 40px -15px;
  }
  #top .home_building .home_building-textarea h3 {
    text-align: left;
  }
  #top .home_building .home_building-textarea p {
    text-align: left;
  }
  #top .home_building .home_building-item .home_building-item--textarea .btn01{
    margin-right: 15px;
  }
  #top .home_building .home_building-item .home_building-item--textarea {
    margin: 20px 15px 0 auto;
    width: 66%;
  }
  #top .home_building .home_building-item .home_building-item--textarea p{
    margin-bottom: 20px;
  }
  #top .home_building .home_building-item .home_building-item--ja{
    top: 40%;
    bottom: auto;
  }
}
@keyframes pulseMotion {
  0% {
    transform: translate(-50%, -50%) scale(1, 1);
    background-color: rgba(170, 143, 123, .4)
  }

  100% {
    transform: translate(-50%, -50%) scale(6.5, 6.5);
    background-color: rgba(170, 143, 123, 0)
  }
}
/* コンテンツページ */
.container.width-sm{
  max-width: 960px;
}
.post{
  position: relative;
}
.post .post--link::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0; 
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.pagination .nav-links{
	display: flex;
	gap: 10px;
}
.pagination .page-numbers, .pagination a{
  font-family: var(--font-family-en);
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  background-color: var(--main-color);
  color: #fff;
  border-radius: 20px;
  border: 1px solid var(--main-color)
}
.pagination .page-numbers.current{
  background-color: #fff;
  color: var(--font-color-text);
}
.pagination .page-backlist{
  padding-left: 20px;
  padding-right: 20px;
}
/* 施工例 */
#works .sec-category ul{
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
#works .sec-category ul li{
  width: 20%;
}
#works .sec-category ul li a{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
#works .sec-category ul li.current a{
  border-color: var(--main-color);
}
#works .works-archive{
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
	margin: 0 auto 60px;
}
#works .works-archive article{
  width: calc((100% - 80px) / 3);
}
#works .works-archive article .works-archive--img{
  margin-bottom: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
#works .works-archive article .works-archive--text h2{
  font-size: 1rem;
}
@media screen and (max-width: 767px){
  #works .sec-category{
    padding-bottom: 0;
  }
  #works .sec-category ul{
    gap: 10px 20px;
  }
  #works .sec-category ul li{
    width: calc((100% - 20px) / 2);
  }
  #works .sec-category ul li a{
    padding: 10px;
  }
  #works .works-archive{
    gap: 20px;
  }
  #works .works-archive article{
    width: 100%;
  }
}

#single-works {
  padding-top: 120px;
}
#single-works .post--img{
  margin: 0 auto 40px;
}
#single-works .cat-works-list{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
#single-works .cat-works-list li a{
  padding: 2px 15px;
  font-weight: 600;
  background-color: var(--main-color);
  color: #fff;
  font-size: 0.85rem;
  display: block;
}
#single-works .cat-works-list li.current a{
  border-color: var(--main-color);
}
#single-works .post--ttl{
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 60px;
}
#single-works .news-wrapper{
  background: linear-gradient(-180deg, var(--bg-highlight) 500px, #fff 500px);
}
#single-works .news-wrapper .post--content {
  margin-bottom: 60px;
}
#single-works .news-wrapper .post--content p{
  margin-bottom: 20px;
  font-family: var(--font-family-gothic);
}
#single-works .news-wrapper .post--content p:last-child{
  margin-bottom: 0;
}
#single-works .news-wrapper .post--content figure{
  margin-bottom: 20px;
}
/* お知らせ */
#news .news-list{
  margin-bottom: 60px;
}
#news .news-list .post{
  padding-bottom: 20px;
  padding-top: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}
#news .news-list .post:first-child{
  border-top: 1px solid var(--border-color)
}
#news .news-list .post .post--img{
  width: 280px;
  margin-right: 40px;
  overflow: hidden;
  
}
#news .news-list .post .post--txtarea{
  flex: 1;
}
.post--info{
  font-family: var(--font-family-en);
  color: var(--sub-color01);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: clamp(0.8rem, 0.76rem + 0.2vw, 1rem);
}

#news .news-list .post--ttl{
  font-size:clamp(1.1rem, 1.08rem + 0.1vw, 1.2rem);
  letter-spacing: .1em;
  font-weight: 500;
  margin-bottom: 8px;
}
#news .news-list .post--txt{
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: ;
}
@media screen and (max-width: 767px){
  #news .news-list .post{
    padding-bottom: 10px;
    padding-top: 10px;
  }
  #news .news-list .post .post--img{
    width: 25%;
    margin-right: 10px;
  }
  #news .news-list .post--info{
    margin-bottom: 0;
  }
  #news .news-list .post--ttl{
    line-height: 1.4;
  }
  #news .news-list .post--txt{
    font-family: var(--font-family-gothic);
    font-size: clamp(0.8rem, 0.76rem + 0.2vw, 1rem);
  }
}
#single .news-wrapper .post--ttl{
  font-size: 2.0rem;
  margin-bottom: 40px;
}
#single .post--img{
  margin-bottom: 60px;
}
#single article{
  margin-bottom: 60px;
}
#single .post--content{
  margin-bottom: 60px;
}
#single .post--content p{
  margin-bottom: 20px;
  font-family: var(--font-family-gothic);
}
#single .post--content p:last-child{
  margin-bottom: 0;
}
#single .post--content figure{
  margin-bottom: 20px;
}
#single .pagenavi-single{
  display: flex;
  justify-content: center;
  align-items: center;
}
#single .pagenavi-single a{
  min-width: 40px;
  height: 40px;
  padding: 0 20px;
}
/* お問い合わせ */
#contact .contact-text{
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-color);
  line-height: 2.8;
}

#contact .contact-tel{
  max-width: 400px;
  width: 100%;
  margin: 0 auto 60px;
}

#contact .contact-tel a{
  padding: 10px 40px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.4;
  background-color: var(--main-color);
  color: #fff;
}
#contact .contact-tel a .tel{
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  gap: 10px;
}
#contact .contact-tel a .tel i{
  font-size: clamp(1.563rem, 1.403rem + .8vw, 2rem);
}
#contact .contact-form table{
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  line-height: 2;
  margin-bottom: 60px;
}
#contact .contact-form table th{
  font-weight: 400;
  white-space: nowrap;
  text-align: left;
  width: 40%;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding: 10px 20px;
  vertical-align: middle;
}
#contact .contact-form table .requiredIcon{
  background-color: var(--sub-color02);
  color: #fff;
  margin: 0 1em 0 0;
  font-size: 70%;
  padding: 2px 5px;
  border-radius: 3px;
  position: absolute;
  right:0;
}
#contact .contact-form table td{
  padding: 20px 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
#contact .contact-form table td .wpcf7-checkbox{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#contact .contact-form table input[type="text"], 
#contact .contact-form table input[type="tel"], 
#contact .contact-form table input[type="email"], 
#contact .contact-form textarea{
  margin: 0;
  padding: 8px 13px;
  min-height: 40px;
  border: 1px solid var(--border-color);
  font: inherit;
  font-size: 100%;
  width: 100%;
  border-radius: 3px;
}
#contact .contact-form .button-wrapper{
  text-align: center;
}
#contact .contact-form .button-wrapper .btn01{
  display: inline-block;
  background-color: var(--main-color);
  color: #fff;
  padding: 15px 30px;
  border-radius: 30px;
  border: 1px solid var(--main-color);
  font-family: var(--font-family);
  letter-spacing: .1em;
  font-size: 1.0rem;
}
@media screen and (max-width: 767px){
	#contact .contact-form table th,#contact .contact-form table td {
		display: block;
		width: 100%;
	}
	#contact .contact-form table th{
		border: none;
		padding: 10px 0 0 0;
	}
	#contact .contact-form table td{
		padding: 10px 0;
	}
}
/* 家づくりのこだわり */
#aboutus .section-title{
  background-size: contain;
  background-position: right;
  background-size: 80%;
  background-repeat: no-repeat;
  height: 500px;
  width: 100%;
  padding-left: 19%;
  position :relative;
  margin-bottom: 60px;
}
#aboutus .section-title p{
  color: #333;
  mix-blend-mode: difference;
  font-size: clamp(3.5rem, 2.4rem + 5.5vw, 9rem);
  position: absolute;
  left: 13%;
  bottom: 0;
  font-family: var(--font-family-en);
}
#aboutus .section-title h2{
  font-size: clamp(2rem, 1.9rem + 0.5vw, 2.5rem);
  position: absolute;
  left: 13%;
  bottom: 0;
  line-height: 1;
}
#aboutus .aisatsu-wrapper{
  gap: 60px;
}
#aboutus .imgarea img{
  margin: 0 auto 10px;
  display: block;
}
#aboutus .president-name{
  text-align: center;
  font-weight: 600;
}
#aboutus .president-name span{
  font-size: 1.5rem;
}
#aboutus .policy .section-title{
  background-image: url('img/aboutus/policy_title_bg.png');
}
#aboutus .policy h3{
  font-size: clamp(1.6rem, 1.42rem + 0.9vw, 2.5rem);
  margin-bottom: 40px;
  padding-bottom: 40px;
  font-weight: 600;
  position :relative;
}
#aboutus .policy h3::after{
  content: "";
  display: block;
  width: 150px;
  height: 1px;
  background-color: var(--sub-color01);
  position: absolute;
  bottom: 0;
  left: 0;
}
#aboutus .staff .section-title{
  background-image: url('img/aboutus/staff_title_bg.png');
}
#aboutus .staff .staff-list{
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
#aboutus .staff .staff-list article{
  width: calc((100% - 40px) / 2);
}
#aboutus .staff .staff-list article .staff-list--imgarea{
  padding-left: 50px;
}
#aboutus .staff .staff-list article .staff-list--textarea{
 padding: 20px 40px;
 background: var(--sub-color01);
 color: #fff;
 margin: -40px 50px 0 0;
 position: relative;
 z-index: 2;
 cursor: pointer;
 position: relative;
}
#aboutus .staff .staff-list article .staff-list--textarea:hover{
  opacity: .8;
}
#aboutus .staff .staff-list article .staff-list--textarea i{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 1.5rem;
}
#aboutus .staff .staff-list article .staff-list--textarea .staff-list--position{
  font-size: 1rem;
}
#aboutus .staff .staff-list article .staff-list--textarea .staff-list--name{
  font-size: 1.5rem;
}
#aboutus .staff .staff-list article .staff-list--textarea .staff-list--name-en{
  font-size: 0.7rem;
  margin-left: 10px;
}
#aboutus .staff .staff-list article .staff-list--textarea .staff-list--name-en::after{
  content: "";
  display: block;
  width: 150px;
  height: 1px;
  background-color: var(--sub-color01);
  position: absolute;
  bottom: 0;
  left: 0;
}
#aboutus .company .section-title{
  background-image: url('img/aboutus/company_title_bg.png');
}
#aboutus .company table{
  width: 100%;
  font-family: var(--font-family-gothic);
  border-collapse: collapse;
}
#aboutus .company table th{
  background-color: var(--sub-color01);
  color: #fff;
  width: 30%;
}
#aboutus .company table td{
  background-color: #fff;
}
#aboutus .company table th,
#aboutus .company table td{
  padding: 20px 40px;
  border: 1px solid var(--border-color);
}
@media screen and (max-width: 767px){
  #aboutus .section-title{
    background-size: 100%;
    background-position: top;
    height:  200px;
    padding-left: 15px;
  }
  #aboutus .section-title p{
    left: 0;
  }
  #aboutus .policy h3{
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  #aboutus .staff .staff-list article{
    width: 100%;
  }
  #aboutus .company table th,
  #aboutus .company table td{
    padding: 10px;
  }
}
/* リフォーム */
#reform .flex{
  gap: 60px;
}
#reform .flex-text{
  width: 50%;
}
#reform .flex-img{
  flex: 1 0 0 ;
}
#reform .flex-img img{
  width: 100%;
}
#reform .flex-text h2{
  font-size: clamp(1.8rem, 1.66rem + 0.7vw, 2.5rem);
}
#reform .flex-text .h2-sub{
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.5rem);
  position: relative;
  padding-left: 70px;
  margin-bottom: 50px;
}
#reform .flex-text .h2-sub::before{
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background-color: var(--sub-color01);
  position: absolute;
  top: 50%;
  left: 0;
}
#reform .container.flex{
  max-width: 1200px;
}
#reform .section-title{
  flex: 1 0 0;
  font-size: 1.5rem;
  font-weight: 600;
}
#reform .section-content{
  width: 70%;
}
#reform .sec-navi .navi-list{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
#reform .sec-navi .navi-list li{
  width: 17%;
  border-left: 1px solid var(--border-color);
}
#reform .sec-navi .navi-list li:last-child{
  border-right: 1px solid var(--border-color);;
}
#reform .sec-navi .navi-list li a{
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  font-weight: 500;
}
#reform .sec-navi .navi-list li a:hover{
  color: var(--sub-color02);
}
#reform .menu-list{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
#reform .menu-item{
  width: calc((100% - 20px) / 2);
}
#reform .menu-item .menu-img{
  position: relative;
  margin-bottom: 10px;
}
#reform .menu-item .menu-img .menu-no{
  position: absolute;
  top: 0;
  left: 0;
  background: var(--sub-color01);
  color: #fff;
  font-family: var(--font-family-en);
  font-size: 1.2rem;
  font-weight: 600;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#reform .menu-item .menu-text h3{
  font-size: clamp(1.1rem, 1.06rem + 0.2vw, 1.3rem);
  line-height: 1.4;
  margin-bottom: 5px;
}
#reform .menu-item .menu-text p{
  font-family: var(--font-family-gothic);
  font-size: clamp(0.85rem, 0.82rem + 0.15vw, 1rem);
}
#reform .sec-works .works-list{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
#reform .sec-works .works-list .work-item{
  width: calc((100% - 20px) / 2);
}
#reform .sec-works .works-list .work-item .work-link{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#reform .sec-works .works-list .work-item .work-link .work-thumbnail{
  width: 100%;
}
#reform .sec-works .works-list .work-item .work-link .work-thumbnail img{
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

#reform .flow-list{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
}
#reform .flow-list li{
  width: 100%;
  position: relative;
  border: 1px solid var(--border-color);
  padding: 20px 30px;
}
#reform .flow-list li::after{
  content: "";
  display: block;
  height: 20px;
  width: 1px;
  background-color: var(--border-color);
  position: absolute;
  left: 50%;
  bottom: -21px;
}
#reform .flow-list .flow-no{
  font-family: var(--font-family-en);
  font-size: 1.4rem;
  margin-right: 10px;
  color: var(--sub-color02);
}
#reform .flow-list .flow-title{
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}
#reform .flow-list .flow-text p{
  font-family: var(--font-family-gothic);
  font-size: clamp(0.85rem, 0.82rem + 0.15vw, 1rem);
}
@media screen and (max-width: 767px) {
  #reform .flex{
    gap: 20px;
  }
  #reform .flex-text{
    width: 100%;
  }
  #reform .flex-text .h2-sub{
    padding-left: 30px;
    margin-bottom: 20px;
  }
  #reform .flex-text .h2-sub::before{
    width: 20px;
  }
  #reform .sec-navi .navi-list{
    gap: 10px 20px;
  }
  #reform .sec-navi .navi-list li{
    width: calc((100% - 20px) / 2);
    border-left: none;  
    border-bottom: 1px solid var(--border-color);
  }
  #reform .sec-navi .navi-list li:last-child{
    border-right: none;
  }
  #reform .sec-navi .navi-list li a{
    padding: 5px;
    font-size: 0.85rem;
  }
  #reform .section-title h2{
    text-align: center;
  }
  #reform .section-content{
    width: 100%;
  }
  #reform .menu-list{
    gap: 20px 10px;
  }
  #reform .menu-item{
    width: calc((100% - 10px) / 2);
  }
  #reform .menu-item .menu-img .menu-no{
    width: 30px;
    height: 30px;
  }
  #reform .flow-list li{
    padding: 10px 20px;
  }
}

/* モデルハウス */
#modelhouse article{
  margin-bottom: 80px;
}
#modelhouse .modelhouseSwiper{
  width: 45%;
}
#modelhouse .modelhouseSwiper .mySwiperMain{
  margin-bottom: 10px;
}
#modelhouse .modelhouseSwiper .mySwiperMain img{
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-height: 500px;
  object-fit: cover;
}

/* サムネイル */
#modelhouse .mySwiperThumbs img {
  width: 100px;
  height: auto;
}
#modelhouse .mySwiperThumbs .swiper-slide {
  cursor: pointer;
}
#modelhouse .mySwiperThumbs .swiper-wrapper {
  justify-content: center;
}
#modelhouse article{
  display: flex;
  gap: 60px;
}
#modelhouse article .modelhouse-archive--text{
  flex: 1;
}
#modelhouse article .modelhouse-archive--text h2{
  font-size: clamp(1.5rem, 1.38rem + 0.6vw, 2.1rem);
  margin-bottom: 20px;
}
#modelhouse article .modelhouse-archive--text--inner{
  margin-bottom: 40px;
}
#modelhouse article .modelhouse-archive--text--inner p{
  font-family: var(--font-family-gothic);
}
@media screen and (max-width: 767px){
  #modelhouse article{
    flex-direction: column;
    gap: 20px;
  }
  #modelhouse .modelhouseSwiper{
    width: 100%;
  }
  #modelhouse article .modelhouse-archive--text{
    width: 100%;
  }
}
.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;

  justify-content: center;
  align-items: center;
}
.modal-close{
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  cursor: pointer;
}
.modal-content {
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  width: 80vw;
  max-width: 1000px;
  position: relative;
  padding: 40px;
}
.modal-content img{
  width: 400px;
  height: auto;
  max-width: 50%;
}
.modalText{
  padding: 20px;
}
.modal-content #modalName{
  font-size: 1.8rem;
  font-weight: 600;
}
.modal-content #modalNameEn{
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.modal-content #modalHobby{
  margin-bottom: 10px;
}

@media screen and (max-width: 767px){
  .modal-content {
    flex-direction: column;
    gap: 20px;
  }
  .modal-content {
    padding: 20px;
  }
  .modal-content img{
    max-width: 100%;
    width:100%;
  }
}
/* プライバシーポリシー */
.privacy-policy article h2{
	font-size: 1.5rem;
	font-weight: 600; 
	margin-bottom: 20px;
}
.privacy-policy article p{
	margin-bottom: 20px;
}
.privacy-policy article ul{
	list-style: decimal;
	padding-left: 25px;
	margin-bottom: 20px;
}
/* 404 */
.error404 h2{
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	text-align: center;
}
.error404 article p{
	text-align: center;
	margin-bottom: 40px;
}
.error404  .btn01{
	width: 200px;
	margin: 0 auto;
}

/* 安心がずっと続く高性能　*/
#performance h2{
  font-size: clamp(1.8rem, 1.72rem + 0.4vw, 2.2rem);
  text-align: center;
  margin-bottom: 20px;
}
#performance h2 + p{
  text-align: center;
  margin-bottom: 60px;
}
#performance .flex{
  display: flex;
  gap: 60px;
  margin-bottom: 60px;
  align-items: flex-start;
}
#performance .flex.reverse{
  flex-direction: row-reverse;
}
#performance .flex-textarea{
  width: 55%;
}
#performance .flex-textarea.wide{
  width: 65%;
}
#performance .flex-textarea p.mb{
  margin-bottom: 20px;
}
#performance .flex-imgarea{
  flex: 1;
}
#performance .flex-imgarea img{
  width: 100%;  
}
#performance .flex-textarea h3{
  font-size: 1.8rem;
}
#performance .flex-textarea .h3-sub{
  margin-bottom: 20px;
}
#performance .flex-textarea ul{
  list-style: disc;
  padding-left: 25px;
}
#performance .flex-textarea ul li{
  margin-bottom: 10px;
}

@media screen and (max-width: 767px){
  #performance .flex{
    flex-direction: column;
    gap: 20px;
  }
  #performance .flex:nth-of-type(2n){
    flex-direction: column;
  }
  #performance .flex-imgarea{
    width: 100%;
  }
  #performance .flex-textarea,#performance .flex-textarea.wide{
    width: 100%;
  }
}

/* アフターサービス */
#afterservice h2{
  font-size: clamp(1.8rem, 1.72rem + 0.4vw, 2.2rem);
  text-align: center;
  margin-bottom: 20px;
}
#afterservice h2 + p{
  text-align: center;
  margin-bottom: 60px;
}
#afterservice .flex{
  display: flex;
  gap: 60px;
  margin-bottom: 60px;
  align-items: center;
}
#afterservice .flex:nth-of-type(2n){
  flex-direction: row-reverse;
}
#afterservice .flex-textarea{
  width: 50%;
}
#afterservice .flex-imgarea{
  flex: 1;
}
#afterservice .flex-imgarea img{
  width: 100%;  
}
#afterservice .flex-textarea h3{
  font-size: 1.8rem;
  margin-bottom: 20px;
}
#afterservice .flex-textarea p.mb{
  margin-bottom: 20px;
}
#afterservice .flex-textarea a{
  text-decoration: underline;
  color: var(--sub-color02);
}
#afterservice .youtube-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 の比率 */
  height: 0;
  overflow: hidden;
}

#afterservice .youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#afterservice h4{
  margin-bottom: 20px;
}
#afterservice .flex:last-child{
  flex-direction: row;
}
#afterservice .flex:last-child .flex-textarea{
  width: 65%;
}
@media screen and (max-width: 767px){
  #afterservice .flex{
    flex-direction: column;
    gap: 20px;
  }
  #afterservice .flex:nth-of-type(2n){
    flex-direction: column;
  }
  #afterservice .flex-imgarea{
    width: 100%;
  }
  #afterservice .flex-textarea, #afterservice .flex:last-child .flex-textarea{
    width: 100%;
  }
}