/*front-page CSS*/
h2.section__title{
  color: #000;
  font-size: 3.5em;
  line-height: 1.3;
  font-weight: 500;
  margin: 2rem 0;
}

h2.section__title span.section__subtitle{
  display: block;
  color: var(--color_main);
  font-size: 0.3em;
}

h3.section__heading{
  position: relative;
  font-size: 2em;
  line-height: 1.3;
  margin: 0 0 1.5rem 0;
}

.home .l-mainContent{
  max-width: 100vw !important;
  margin: 0 calc(50% - 50vw) !important;
  width: 100vw !important;
}

.home .mv_text_img{
  margin-bottom: 14rem;
}

.company_logo {
  height: 100vh;
  overflow: hidden;
  position: fixed;
  width: 40px;
  height: 100%;
  top: 0;
  left: 15px;
  opacity: 0.7;
  z-index: 10;
}

.company_logo__track {
  display: flex;
  flex-direction: column;
  animation: logo-scroll 80s linear infinite;
}

.company_logo__track img {
  display: block;
  width: 100%;
  height: auto;
  flex-shrink: 0;
  margin-bottom: 3rem;
}

@keyframes logo-scroll {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}


/*About*/
.p-about{
  background-image: url(../img/front-page/about_bg02.png),url(../img/front-page/about_bg01.png);
  background-repeat: no-repeat;
  background-size: 45%,cover;
  background-position: 0 100%,0 0;
  color: #FFF;
  padding: 3rem 0;
  min-height: 980px;
}

.p-about h2.section__title{
  color: #FFF;
}

.p-about h2.section__title span.section__subtitle{
  color: #FFF;
}

.p-about .about__content{
  width: 50%;
  max-width: 650px;
  margin: 0 0 0 auto;
}

.p-about .about__content h3.section__heading{
  margin-bottom: 3.5rem;
}

.p-about .about__text{
  font-size: 1.1em;
  line-height: 1.9;
  margin-bottom: 4rem;
}

/*Topics*/
.p-topics .topics-list{
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 4rem;
  margin: 3rem 0;
}

.p-topics .topics-item{
	position: relative;
}

.p-topics .topics-list .topics-thumb{
	width: 100%;
	height: 230px;
}

.p-topics .topics-list .topics-thumb img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-topics .topics-list h3{
	text-align: left;
	font-size: 1.1em;
	margin: 0 0 0.5rem 0 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
  color: #000;
}

.p-topics .post-date{
  color: #000;
}

/*Service*/
.p-service{
  background-image: url(../img/front-page/service_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 10rem 0 0 0;
}

.p-service .section__container{
  width: 90%;
  max-width: 100vw;
  margin: 0 0 0 auto;
  padding: 1.5rem 3rem 0 3rem;
  background-color: rgba(255,255,255,0.8);
}

.p-service .l-grid.service__columns{
  margin-left: 5rem;
  gap: 3rem 4rem;
}

.p-service h3.section__heading{
  font-size: 1.5em;
}

.p-service h3.section__heading::before{
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 200px;
  height: 1px;
  background: #000;
}

.p-service .service__text{
  margin: 1.5rem 0;
}

.p-service .service__thumb {
  position: relative;
  display: block;
  overflow: hidden;
}
.p-service .service__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.p-service .service__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(120, 90, 60, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.p-service .service__thumb .c-button-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s;
  width: 200px;
  display: block;
  z-index: 2;
}

.p-service .service__thumb:hover::before,
.p-service .service__thumb:hover .c-button-center {
  opacity: 1;
}


/*before after*/
.p-beforeafter{
  background-image: url(../img/front-page/before_bg.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  margin: 3rem 0;
  padding: 4rem 0;
}

.p-beforeafter .beforeafter-slider-item{
  position: relative;
}

.p-beforeafter .beforeafter-images{
  position: relative;
  min-height: 800px;
}

.p-beforeafter .beforeafter-images .image-label{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  color: #FFF;
}

.p-beforeafter .beforeafter-images img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像の縦横比を保つ（枠からはみ出た部分はトリミング） */
}

.p-beforeafter .beforeafter-images .beforeafter-before{
  position: absolute;
  width: 50%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  top: 0;
  left: 0;
  bottom: auto;
  right: auto;
  z-index: 1;
}

.p-beforeafter .beforeafter-images .beforeafter-before::before{
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  background-image: url(../img/common/black_afterArrow.png);
  background-repeat: no-repeat;
  background-size: contain;
  bottom: -32%;
  left: 20%;
}

.p-beforeafter .beforeafter-images .beforeafter-after{
  position: absolute;
  width: 80%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  bottom: 0;
  right: 0;
  top: auto;
  left: auto;
  z-index: 2;
}

.p-beforeafter .beforeafter-comment{
  position: absolute;
  width: 45%;
  top: 0;
  right: 0;
}

.p-beforeafter .beforeafter-ttl{
  font-size: 1.5em;
  font-weight: bold;
  border-bottom: 1px dotted #000;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.p-beforeafter .p-works-headinfo__items{
  padding: 1rem;
}

.p-beforeafter .p-works-headinfo__item{
  margin-bottom: 0.5rem;
}

.p-beforeafter .slide-arrow{
  position: absolute;
  top: 50%;
  cursor: pointer;
}

.p-beforeafter .slide-arrow.prev-arrow{
  left: -7%;
}

.p-beforeafter .slide-arrow.next-arrow{
  right: -7%;
}

/*Our works*/
.p-works{
  position: relative;
  background-image: url(../img/front-page/works_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 4rem 0;
}

.p-works .section__container{
  padding: 0.5rem 0;
}

.p-works .c-tabs__nav{
  display: flex;
  margin-left: 10rem;
}

.p-works .c-tabs__button{
  width: 210px;
  clip-path: polygon(0 0, 50% 15px, 100% 0, 100% 100%, 0 100%);
  padding-top: 30px;
  font-size: 1.4em;
}

.p-works .c-tabs__button.is-active{
  background: rgba(255, 255, 255, 0.8);
  color: #000;
}

.p-works .c-tabs__button .tab_subllt{
  font-size: 0.7em;
}

.p-works .c-tabs__button.is-active .tab_subllt{
  color: #FFC8C9;
}

.p-works .works__content{
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 5rem 15rem;
  display: flex;
  gap: 5rem;
  z-index: 10;
}

.p-works .works__content .works__img{
  width: 40%;
}

.p-works .works__content .works__img img{
  width: 100%;
}

.p-works .works__content .works__text__container{
  flex: 1;
}

.p-works .works__content .works__text__container h3{
  border-bottom: 1px dotted #000;
  margin: 0 2rem 2rem 0;
  padding-bottom: 0.5rem;
}

.p-works .works__content .works__text__container .works__text{
  border-radius: 16px 0 0 16px;
  background-color: #FFF;
  padding: 2.5rem 3.5rem 2.5rem 2.5rem;
  box-shadow: 0px 0px 15px -5px #777777;
}

.p-works .c-button-right{
  margin-right: 6rem;
}

/*FAQ*/
.p-faq{
  position: relative;
  background-image: url(../img/front-page/faq_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 2rem 0 0 0;
}

.p-faq .faq__content.faq__slider{
  position: relative;
  width: 100%;
  left: 10%;
}

.p-faq .faq__content__item{
  position: relative;
  min-height: 560px;
  padding: 0 1rem;
  border-right: 1px dotted #000;
}

.p-faq .faq__content h3.section__heading{
  display: flex;
  gap: 15px;
  font-size: 1.1em;
  line-height: 1.5em;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.p-faq .faq__content h3.section__heading .num{
  font-size: 2em;
}

.p-faq .faq__img{
  position: absolute;
  left: 1rem;
  bottom: 0;
  width: 93%;
}

/*Vision*/
.p-vision{
  position: relative;
  background-image: url(../img/front-page/vision_bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 2rem;
  padding: 4rem 0;
}

.p-vision::before,
.p-vision::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 130px;
  background: #F5F5F5;
  pointer-events: none;
}

.p-vision::before {
  top: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.p-vision::after {
  bottom: 0;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.p-vision .vision__content{
  width: 55%;
  margin: 0 auto 0 3rem;
}

.p-vision .vision__content p{
  font-size: 1.1em;
  line-height: 1.9;
}

.p-vision .vision__content p.vision__name{
  text-align: right;
  font-weight: bold;
  font-size: 1.4em;
  margin-top: 2rem;
}

.p-vision .vision__content p.vision__name span{
  font-size: 0.6em;
  margin-right: 2rem;
}

/*blog*/
.p-blog .p-blog__inner{
  padding: 2rem;
  background-color: #FFF;
  border-radius: 16px;
  box-shadow: 0px 0px 15px -5px #777777;
}

.p-blog .p-blog__inner .blog__content{
  display: flex;
  gap: 2rem;
  align-items: center;
}

.p-blog .p-blog__inner .blog__content .blog__content__info{
  width: 40%;
  text-align: center;
}

.p-blog .p-blog__inner .blog__content .blog__content__bloglist{
  flex: 1;
}

.p-blog .news-list li{
  padding: 1rem 2rem 1rem 3rem;
  border-bottom: 1px dashed #333;
  background-image: url(../img/common/mark_red_icon.svg),url(../img/common/arrow_right_mini.png);
  background-repeat: no-repeat;
  background-size: 8px,50px;
  background-position: 2% 50%,95% 55%;
}

.p-blog h3.section__heading{
  font-size: 1.4em;
  color: #000;
  margin: 0.5rem auto;
  padding-right: 4.5rem;
}


@media screen and (max-width: 1280px){
  .section__container{
    width: 85%;
    margin: 0 auto 0 6rem;
  }
  .c-button-right{
    margin-right: 5rem;
  }
  .p-about{
    min-height: 0;
  }
  .p-topics .topics-list{
    margin-right: 8rem;
  }
  .beforeafter-slider{
    margin-right: 8rem;
  }
  .p-blog .section__container{
    max-width: 100%;
    width: 85%;
  }
}


@media screen and (max-width: 959px){
  .p-mainVisual__textLayer>.p-blogParts{
    margin: 1em 0 0 4rem;
  }
  .home .mv_text_img{
    margin-bottom: 4rem;
    width: 75%;
  }
  .p-about{
    padding: 0;
  }
  .p-about .about__content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .p-topics .topics-list{
    grid-template-columns: 1fr;
  }
  .p-topics .topics-list .topics-thumb {
    width: 100%;
    height: 450px;
  }
  .p-service{
    padding-top: 2rem;
  }
  .p-service .service__text{
    font-size: 16px;
  }
  .p-service .l-grid.service__columns{
    margin-left: 0;
    grid-template-columns: 1fr;
  }
  .p-service .service__thumb{
    width: 65%;
  }
  .p-beforeafter .section__container {
      margin: 0 auto 0 3rem;
  }
  .p-beforeafter .beforeafter-slider{
    width: 85%;
    margin: 0 auto;
  }
  .p-beforeafter h2.section__title{
    margin-left: 5rem;
  }
  .p-beforeafter .beforeafter-images {
    min-height: 480px;
  }
  .p-beforeafter .beforeafter-comment{
    position: relative;
    width: 100%;
    top: auto;
    right: auto;
  }
  .p-beforeafter .beforeafter-ttl{
    margin-top: 2rem;
  }
  .p-beforeafter .slide-arrow.prev-arrow {
    left: -10%;
  }
  .p-beforeafter .slide-arrow.next-arrow {
    right: -10%;
  }
  .p-beforeafter .beforeafter-images .beforeafter-before::before{
    bottom: -53%;
    left: 13%;
  }
  .p-works h2.section__title{
    margin-left: 5rem;
  }
  .p-works .c-tabs__nav{
    margin-left: 6rem;
  }
  .p-works .works__content{
    padding: 5rem 0 5rem 6rem;
    gap: 2rem;
    flex-wrap: wrap;
  }
  .p-works .works__content .works__img{
    width: 100%;
    margin-right: 2rem;
  }
  .p-works .c-button-right{
    margin-right: 2rem;
  }
  .p-faq .faq__content.faq__slider{
    left: 5%;
  }
  .p-faq .faq__content__item{
    min-height: 580px;
  }
  .p-vision{
    padding: 2rem 0;
    background-position: 70% 0;
  }
  .p-vision::before, .p-vision::after{
    height: 70px;
  }
  .p-vision .vision__content{
    width: 100%;
    margin: auto;
  }
  .p-blog .p-blog__inner .blog__content{
    flex-direction: column-reverse; 
  }
  .p-blog .p-blog__inner .blog__content .blog__content__info{
    width: 100%;
  }
}

@media screen and (max-width: 650px){
  .section__container {
    width: 85%;
    margin: 0 1rem 0 auto;
  }
  .c-button-right {
    margin-right: 0;
  }
  .company_logo{
    width: 15px;
  }
  .home .mv_text_img{
    width: 100%;
  }
  .p-mainVisual__textLayer>.p-blogParts {
    margin: 1em 0 0 2rem;
  }
  h2.section__title{
    font-size: 3.2em;
  }
  h3.section__heading{
    font-size: 1.8em;
  }
  .p-topics .topics-list{
    gap: 1.5rem;
    margin: 0;
  }
  .p-topics .topics-list h3{
    font-size: 17px;
  }
  .p-topics .topics-list .topics-thumb{
    height: 250px;
  }
  .p-service .section__container{
    width: 100%;
    padding: 1.5rem 1rem 1.5rem 3.5rem;
  }
  .p-service .service__thumb{
    margin: auto;
  }
  .p-beforeafter{
    background-size: 100% 100%,30px;
  }
  .p-beforeafter .section__container{
    margin: 0 auto 0 2rem;
  }
  .p-beforeafter h2.section__title {
    margin-left: 1.5rem;
  }
  .p-beforeafter .beforeafter-images {
    min-height: 200px;
  }
  .p-beforeafter .beforeafter-images .beforeafter-before::before {
    bottom: -83%;
    left: 12%;
    width: 35px;
  }
  .p-beforeafter .slide-arrow{
    width: 20px;
  }
  .p-beforeafter .p-works-headinfo__items{
    padding: 0;
    font-size: 16px;
  }
  .p-works{
    padding: 2rem 0;
  }
  .p-works::before{
    width: 30px;
  }
  .p-works h2.section__title {
    margin-left: 0;
  }
  .p-works .c-tabs__nav {
    margin: 0 1rem;
    z-index: 10;
    position: relative;
  }
  .p-works .c-tabs__button{
    padding: 15px 0 10px 0;
  }
  .p-works .c-tabs__button .tab_subllt {
    font-size: 0.5em;
  }
  .p-works .tab_ttl{
    text-align: center;
    font-size: 3.8vw;
    font-weight: bold;
  }
  .p-works .works__content{
    padding: 2rem 0 2rem 3.5rem;
  }
  .p-works .works__content .works__img {
    margin-right: 1.5rem;
  }
  .p-works .works__content .works__text__container h3{
    font-size: 1.6em;
  }
  .p-works .works__content .works__text__container .works__text{
    padding: 1.5rem;
    font-size: 16px;
  }
  .p-faq{
    padding: 0;
  }
  .p-faq .faq__content h3.section__heading{
    margin-top: 1rem;
  }
  .p-faq .faq__content.faq__slider{
    left: 0;
    width: 88%;
    margin: 0 0 0 auto;
  }
  .p-faq .faq__content__item {
    min-height: 530px;
  }
  .p-faq .faq__content h3.section__heading{
    font-size: 17px;
  }
  .p-faq .faq__text{
    font-size: 16px;
  }
  .p-blog .p-blog__inner{
    padding: 1rem;
  }
  .p-blog .news-list li{
    background-size: 8px, 30px;
    padding: 1rem 2rem 1rem 2rem;
  }
  .p-blog h3.section__heading{
    padding-right: 1.5rem;
    font-size: 17px;
  }
  .p-blog .p-blog__inner .blog__content .blog__content__info{
    width: 100%;
  }
  .l-footer__widgetArea{
    padding-left: 2.5rem;
  }
}


/* --------------------------------------------------------------------------
   FV ボタン（施工事例を見る／リフォーム相談／新築相談）
   -------------------------------------------------------------------------- */

.mv-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mv-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  min-height: 78px;
  padding: 12px 64px 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(20, 16, 16, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.mv-btn__en {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  line-height: 1.4;
  opacity: 0.8;
}

.mv-btn__ja {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

/* 右側の矢印（フッターと同じ短い矢じり） */
.mv-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 30px;
  height: 8px;
  background:
    url(../img/common/arrow_hook_white.svg) right bottom / 14px 8px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 100% 1px no-repeat;
  transform: translateY(-50%);
  transition: right 0.3s, filter 0.3s;
}

.mv-btn:hover {
  background: #fff;
  color: #2a2323;
}

.mv-btn:hover::after {
  right: 16px;
  filter: invert(1) brightness(0.3);
}

@media (max-width: 959px) {
  .mv-btns {
    gap: 14px;
  }

  .mv-btn {
    padding-left: 20px;
  }

  .mv-btn__ja {
    font-size: 16px;
  }
}

@media (max-width: 599px) {
  .mv-btns {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mv-btn {
    min-height: 62px;
  }
}
