@charset "UTF-8";

/*====================
fadein
======================  */
/* フェードインさせたい要素に高さを少し持たせる */
.fadeIn {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  /* 画像などが読み込まれる前でも、判定用の「高さ」を確保する */
  min-height: 20px; 
}

.fadeIn.animated {
  opacity: 1;
  transform: translateY(0);
}

/*====================
article header
======================  */

/* 親コンテナは画像の高さに合わせる */
.mainImg--top {
  position: relative;
  width: 100%;
}

/* 画像共通スタイル */
.mainImg--top img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 1.3s ease-in-out;
}

/* 非表示画像は重ねて透明に */
.mainImg--top img:not(.active) {
  position: absolute;
  inset: 0;       /* top:0; right:0; bottom:0; left:0; と同義 */
  opacity: 0;
  pointer-events: none; /* 非表示時のクリック無効化 */
}

/* 表示中の画像は自然な高さで表示 */
.mainImg--top img.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

 .mainImg--top .mainImg__pc {
    display: none; /* PC画像は非表示 */
  }

.mainTopics {
    padding: 60px 5.3%;
}

.article__header {
    position: relative;
}

.mainImg__group {
    position: relative;
}

.catchcopy__group {
  position: absolute;
  top: 12%;
  right: 7%;
  z-index: 10;
  pointer-events: none;

  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;  /* stretchにしない */
  gap: 10px;
  width: fit-content;
}

.catchcopy {
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: var(--primary-white);
  background-color: var(--primary-darkgreen);
  display: inline-block;
  padding: 15px 6px 0;
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.4em;
  font-family: "Zen Old Mincho";
  vertical-align: top;

  width: auto; /* 幅を固定しない */
  box-sizing: border-box;
}


/* article header pc */
@media screen and (min-width: 769px) {
    .mainImg--top {
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .mainImg--top .mainImg__pc {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 1;          /* ← まず必ず見せる */
        display: block;
    }

    .mainImg--top .mainImg__pc.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 10; /* アクティブ画像を前面に */
        position: absolute; /* positionはずっとabsoluteのまま */
    }


    .mainImg--top .mainImg__sp {
     display: none;
    }

    .catchcopy {
        line-height: 1.8;
        letter-spacing: 0.6em;
        writing-mode: horizontal-tb; 
        display: inline-block;
        padding: 3px 18px;    
    }

    .catchcopy__group {
        position: absolute;
        top: 86%;
        left: 3%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        pointer-events: none;        
    }

}

@media screen and (min-width: 1024px) {
    .mainTopics {
    padding: 130px 80px;
}

    .catchcopy {
        line-height: 2.2;
        font-size: 2rem;
        padding: 0 18px;
    }

    .catchcopy__group {
        top: 86%;
        gap: 15px;
    }

}

@media screen and (min-width: 1440px) {
    .mainTopics {
        padding: 130px 120px;
    }

    .catchcopy {
        font-size: 2.8rem;
    }

     .catchcopy__group {
        gap: 15px;
    }
    
}

/*====================
about
======================  */
.mainTopics__txt-01 {
    font-size: 1.8rem;
    text-align: center;
    margin-top: 50px;
}

.mainTopics__txt-02 {
    margin-top: 20px;
}

.spBr {
    display: none;
}

.mainTopics__img-01 {
    width: 60%;
    height: auto;
    margin-top: 50px;
    display: block;
}

.mainTopics__img-02 {
    width: 50%;
    height: auto;
    margin-top: 40px;
    display: block; 
    margin-left: auto; 
    margin-right: 0;
}

/* ボタン横並び */
.btn__wrapper {
    display: flex;
    gap: 35px; 
    justify-content: center; 
    align-items: center; 
    margin-top: 50px; 
    position: static;
}

.btn__group,
.btn__group-02 {
    position: relative;        
    z-index: 1;                
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 40px;
    padding: 5px;
    box-sizing: border-box;
    text-decoration: none;
    background-color: transparent; 
    transition: background-color 0.3s ease;
}

/* 金子組ボタン */
.btn__group {
    background-color: var(--primary-white);
    color: var(--primary-darkgreen);
    border: 1px solid #6E7C62;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* u-lifeボタン */
.btn__group-02 {
    background-color: var(--primary-white);
    color: var(--primary-beige);
    border: 1px solid #D4B17E;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.arrow,
.arrow_02 {
    width: 35px;
    height: auto;
    margin-left: 20px; 
    position: relative;
    top: -3px;
    transition: filter 0.3s;
    display: in;
}

.about__kanekogumi {
    font-size: 1.4rem;
    font-weight: 400;
    text-decoration: none;
    color: var(--primary-darkgreen);
}

.about__u-life {
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--primary-beige);
}


@media screen and (min-width: 769px) {
    .mainTopics__group {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .mainTopics__left,
    .mainTopics__right {
        width: 50%;   /* 左右半分ずつ */
    }

    .btn__group:hover {
        background-color: #6E7C62;
        color: var(--primary-white);
    }

    .btn__group-02:hover {
        background-color: #D4B17E; 
        color: var(--primary-white);
    }

    .btn__group:hover .arrow,
    .btn__group-02:hover .arrow_02 {
        filter: brightness(0) invert(1);
    }

    .btn__group:hover .about__kanekogumi {
    color: var(--primary-white) !important;
    }

    .btn__group-02:hover .about__u-life {
    color: var(--primary-white) !important;
    }

    .btn__group,
    .btn__group-02 {
        padding: 5px;
        width: 200px;
        height: 45px;
    }

    .arrow,
    .arrow-02 {
        width: 40px;
        height: auto;
    }

    .mainTopics__img-01 {
        margin-top: 60px;
    }

    .mainTopics__txt-01 {
        margin-top: 0;
    }

    .mainTopics__txt-02 {
        margin-top: 40px;
    }


    .spBr {
        display: block;
    }

    .mainTopics__left {
        max-width: 360px;
    }

    .btn__wrapper { 
        margin-top: 60px; 
    }
}

@media screen and (min-width: 1024px) {
    .mainTopics__txt-01 {
        font-size: 2.2rem;
        margin-top: 80px;
    }

    .about__kanekogumi,
    .about__u-life  {
        font-size: 1.6rem;
    }

    .btn__wrapper {
        gap: 50px; 
        margin-top: 80px;
    }

    .mainTopics__img-01 {
        margin-top: 80px;
    }

    .btn__group,
    .btn__group-02 {
        width: 240px;
    }

}

@media screen and (min-width: 1440px) {
    .mainTopics__txt-01 {
        font-size: 2.4rem;
        margin-top: 80px;
    }

     .mainTopics__txt-02 {
        font-size: 1.8rem;
        margin-top: 60px;
    }

    .mainTopics__left {
        max-width: 570px;
    }

    .btn__wrapper {
        gap: 60px; 
    }

    .btn__group,
    .btn__group-02 {
        width: 250px;
    }

    
}

/* 1440 pc */

/*====================
services
======================  */
.section-services {
    padding: 60px 5.3%;
}

.services__txt {
    margin-top: 40px;
}

.pcBr {
    display: none;
}

.services__contents,
.services__contents-02 {
    margin-top: 50px;
}

.service_topic {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-darkgreen);
    text-align: center;
    margin-top: 10px;
    position: relative;
}

.service_topic-02 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-darkgreen);
    text-align: center;
    margin-top: 5px;
    position: relative;
}

.service_topic::after {
    content: '';
    position: absolute;
    top: 27px;
    left: 50%;
    transform: translateX(-50%);
    width: 263px;
    height: 0;
    border-bottom: 0.5px solid var(--primary-black);
    display: block;
}

.service_txt {
    margin-top: 15px;
}

.btn__group-03 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 263px;
    height: 45px;
    box-sizing: border-box;
    border-radius: 0;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px;
    background-color: var(--primary-white);
    color: var(--primary-darkgreen);
    border: 1px solid #6E7C62;
    margin: 20px auto 0;
}

.btn__group-03:hover {
    background-color: initial !important;
    color: inherit !important;
  }

  .btn__group-03:hover .btn__txt {
    color: inherit !important;
  }

  .btn__group-03:hover .arrow {
    filter: none !important;
  }

body.home .section-services .services__contents .btn__group-03 {
  margin-top: 15px;
}


.btn__txt {
    text-decoration: none;  
    color: var(--primary-darkgreen);  
    font-weight: 400;
}

.front-page .section-services .btn__group-03 {
    margin-top: 15px;
}


.spBr {
    display: none;
}

.services__contents-03 {
    width: 50%;
}

.service__txt-02 {
    margin-top: 5px;
}

.services__group {
    display: flex;
    gap: 21px;
    margin-top: 50px;
}

.services__group-02 {
    display: flex;
    margin-top: 30px;
    gap: 21px;
}

.service_topic-02 {
    position: relative;
}

.service_topic-02::after {
    content: '';
    position: absolute;
    top: 23px;
    left: 50%;
    transform: translateX(-50%);
    width: 125px;
    height: 0;
    border-bottom: 0.5px solid var(--primary-black);
    display: block;
}

/* services pc */
@media screen and (min-width: 769px) {
    .services__txt {
        margin: 60px auto 0;
        display: table;
    }

    .services__contents,
    .services__contents-02 {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        margin-top: 60px;
    }

    .service__img,
    .service__img-02 {
        width: 50%;
    }

    .services__contents-02 {
        flex-direction: row-reverse;
    }

    .service__wrapper {
        display: flex;
        gap: 21px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .services__group,
    .services__group-02 {
        display: flex;
        flex: 1;
        margin-top: 60px; 
    }

    .btn__group-03 .arrow {
        transition: filter 0.3s;
    }

    .btn__group-03:hover {
        background-color: #6E7C62 !important;
        color: var(--primary-white) !important;
    }
    .btn__group-03:hover .btn__txt {
        color: var(--primary-white) !important;
    }
    .btn__group-03:hover .arrow {
        filter: brightness(0) invert(1) !important;
    }
}

@media screen and (min-width: 1024px) {
    .section-services {
        padding: 80px 80px 130px;
    }

     .services__txt {
        margin-top: 80px;
    }

    .services__contents,
    .services__contents-02 {
        margin: 80px auto 0;
    }

    .service_topic {
        font-size: 2rem;
        margin-top: 15px;
    }

    .service_topic-02 {
        font-size: 1.8rem;
        margin-top: 5px;
    }

    .service_topic::after {
        top: 33px;
    }

    .btn__group-03 {
        margin: 40px auto 0;
    }

    .services__group,
    .services__group-02 {
        margin-top: 80px;
    }

    .service_topic-02::after {
        top: 28px;
    }

}

@media screen and (min-width: 1440px) {
    .section-services {
        padding: 80px 120px 130px;
    }

      .services__txt {
        font-size: 2rem;
        margin: 80px auto 0;
        display: table;
    }
    
    .spBr {
        display: block;
    }

    .service_txt {
        margin-top: 30px;
    }

    .services__contents,
    .services__contents-02 {
        gap: 60px;
        max-width: 1200px;
    }

    .service__txt-02 {
        margin-top: 15px;
    }

    .service_topic-02::after {
        width: 180px;
    }

}

/* 1440px pc*/

/*====================
flow
======================  */
.section-flow {
    padding: 60px 5.3%;
    background-color: var(--primary--whiteLow);
}

.title-02 {
    color: var(--primary-beige);
    text-align: center;
    font-family: "Playfair Display";
    font-size: 2.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2.8px;
}

.flow-01, .flow-02, .flow-03, .flow-04, .flow-05 {
    position: relative; 
    display: inline-block;
    text-align: center;
    width: 60px;
    height: 60px;
    line-height: 1.2;
    color: var(--primary-white); 
    font-weight: bold;
    font-size: 0.9rem;
    background-color: var(--primary-beige); 
    border-radius: 50%; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    box-sizing: border-box;
}

.flow-01 .step,
.flow-02 .step,
.flow-03 .step,
.flow-04 .step,
.flow-05 .step {
    display: block; 
    font-size: 1rem;
}

.flow-01 .number,
.flow-02 .number,
.flow-03 .number,
.flow-04 .number,
.flow-05 .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.flow__content {
  display: flex;
  align-items: center; 
  gap: 10px; 
  margin-bottom: 30px;
}

.flow-step {
  position: relative;
  width: 60px;
  height: 60px;
  background-color: hite;           
  border: 2px solid var(--primary-color); 
  border-radius: 50%;
  color: var(--primary-color);       
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;           
  align-items: center;               
  line-height: 1.1;
  padding: 5px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.flow__content {
    display: flex;
    align-items: center; 
    background-color: var(--primary-white);
    border-radius: 8px;          
    padding: 15px 20px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.flow__text {
    width: 250px;
    height: auto;
    padding-left: 15px;
    flex: 1;
}

.flow__name {
    font-size: 1.5rem;
    font-family: "Zen Old Mincho";
    position: relative;
}

.flow__name::after {
    content: '';
    position: absolute;
    top: 27px; 
    right: 3px;
    transform: translateY(-50%);
    width: 100%;
    border-bottom: 0.3px dashed var(--primary-black); 
}

.flow__txt {
    margin-top: 8px;
}

.btn__group-04 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 263px;
    height: 45px;
    box-sizing: border-box;
    border-radius: 0;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px;
    background-color: var(--primary-white);
    color: var(--primary-beige);
    border: 1px solid #D4B17E;
    margin: 50px auto 0;
}

.btn__group-04:hover {
    background-color: initial !important;
    color: inherit !important;
  }

  .btn__group-04:hover .btn__txt {
    color: inherit !important;
}

  .btn__group-04:hover .arrow {
    filter: none !important;
}

/* flow pc */
@media screen and (min-width: 769px) {
    .flow__content {
        width: calc(50% - 10px); 
        padding: 20px;
        margin: 0;
        box-sizing: border-box;
    }

    .title-02 {
        font-size: 3rem;
    }

    .flow__group,
    .flow__group-02,
    .flow__group-03 {
        display: flex;
        justify-content: flex-start; 
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    

    .flow__group {
        margin-top: 60px;
    }

    .flow__group-02,
    .flow__group-03 {
        margin-top: 20px;
    }

    .flow__group-03 {
        justify-content: flex-start;
    }

    /* 矢印の準備 */
    .btn__group-04 .arrow {
        transition: filter 0.3s, transform 0.3s;
    }

    .btn__group-04:hover {
        background-color: #D4B17E !important;
        color: var(--primary-white) !important;
    }

    .btn__group-04:hover .btn__txt-02 {
        color: var(--primary-white) !important;
    }

    .btn__group-04:hover .arrow {
        filter: brightness(0) invert(1) !important;
    }


    .flow-01, .flow-02, .flow-03, .flow-04, .flow-05 {
        width: 80px;
        height: 80px;
    }

    .flow-01 .step,
    .flow-02 .step,
    .flow-03 .step,
    .flow-04 .step,
    .flow-05 .step { 
        font-size: 1.3rem;
    }

    .flow-01 .number,
    .flow-02 .number,
    .flow-03 .number,
    .flow-04 .number,
    .flow-05 .number {
        font-size: 2.4rem;
    }

    .flow__name {
        font-size: 1.5rem;
    }

    .btn__group-04 {
        margin: 60px auto 0;
    }

    .flow__group-03 {
        justify-content: flex-start; 
    }

}

@media screen and (min-width: 1024px) {
    .section-flow {
        padding: 130px 80px;
    }

     .flow__group {
        margin-top: 80px;
    }

    .flow-01, .flow-02, .flow-03, .flow-04, .flow-05 {
        width: 100px;
        height: 100px;
    }

    .flow-01 .step,
    .flow-02 .step,
    .flow-03 .step,
    .flow-04 .step,
    .flow-05 .step { 
        font-size: 1.6rem;
    }

    .flow-01 .number,
    .flow-02 .number,
    .flow-03 .number,
    .flow-04 .number,
    .flow-05 .number {
        font-size: 3rem;
    }

    .flow__name {
        font-size: 1.8rem;
    }

    .flow__name::after {
        top: 33px; 
    }

    .btn__group-04 {
        margin: 80px auto 0;
    }

     .title-02 {
        font-size: 4.2rem;
    }
    
}

@media screen  and (min-width: 1440px) {
     .section-flow {
        padding: 130px 120px;
    }
    
      .title-02 {
        font-size: 4.8rem;
    }

       .flow__content {
        width: calc(50% - 20px); 
    }

     .flow-01, .flow-02, .flow-03, .flow-04, .flow-05 {
        width: 135px;
        height: 135px;
    }

    .flow-01 .step,
    .flow-02 .step,
    .flow-03 .step,
    .flow-04 .step,
    .flow-05 .step { 
        font-size: 2rem;
    }

    .flow-01 .number,
    .flow-02 .number,
    .flow-03 .number,
    .flow-04 .number,
    .flow-05 .number {
        font-size: 3.8rem;
    }

     .flow__name {
        font-size: 2rem;
    }

    .flow__group-02,
    .flow__group-03 {
        margin: 40px auto;
        gap: 40px;
        max-width: 1200px;
    }

     .flow__group {
        gap: 40px;
        margin: 80px auto 40px;
        max-width: 1200px;
    }

}

/* 1440px pc */

/*====================
works
======================  */
.section-works {
    padding: 60px 5.3%;
}

.works__txt-02 {
    text-align: left;
    margin-top: 10px;
}

/* スライダー枠 */
.works-slider {
  max-width: 1200px;
  position: relative;
  margin: 0 auto;
}

/* Slick用 */
.works-wrapper {
  margin: 40px 0 20px;
}

/* アイテム */
.works__item {
  text-align: center;
  padding: 0 7px;
  text-decoration: none;
  color: var(--primary-black);
  cursor: pointer;
}

.works__item img {
  margin: 40px auto 20px;
}

.works-slider {
    position: relative;
}

.slick-prev, .slick-next {
  width: 40px;
  height: 40px;
  z-index: 1000;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
}

.slick-prev {
  left: 10px;
}

.slick-next {
  right: 10px;
}

.works__txt-01 {
  text-decoration: none;
}



/* works pc */
@media screen and (min-width: 769px) {
    .works__item img {
        width: 100%;
    }

    .slick-prev:before {
        left: 0%;
        bottom: 200%;
    }

    .slick-next:before {
        right: 0%;
        bottom: 200%;
    }


}

@media screen and (min-width: 1024px) {
    .section-works {
        padding: 120px 80px;
    }

    .slick-prev:before,
    .slick-next:before {
        height: 35px;
    }


    .slick-prev:before {
        left: -20%;
    }

    .slick-next:before {
        right: -20%;
    }

}

@media screen and (min-width: 1440px) {
    .slick-prev:before,
    .slick-next:before {
        height: 60px;
    }

    .slick-prev:before {
        left: -30%;
        bottom: 130%;
    }

    .slick-next:before {
        right: -30%;
        bottom: 130%;
    }

  
}


/*====================
recruit
======================  */
.section-recruit {
    padding: 60px 5.3%;
    background-image: url("../images/recruit\ _01.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.recruit__txt {
    margin: 40px auto 0;
    display: table;
}

.spBr {
    display: none;
}

.recruit__content {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

/* 縦線 */
.recruit__line {
  width: 1px;
  height: 60px;
  margin-top: 50px;
  background-color: var(--primary-black);
  margin-left: auto;
margin-right: auto;
}

/* ボタン余白（必要なら） */
.btn-recruit {
  margin-top: 0;
}


/* recruit pc*/
@media screen and (min-width: 1024px) {
    .section-recruit {
        padding: 130px 80px;
    }

    .recruit__txt {
        margin-top: 60px;
    }

    .btn-recruit {
        margin-top: 180px;
    }

    .btn-recruit::before {
        bottom: 100px;
    }

}

@media screen and (min-width: 1440px) {
    .section-recruit {
        padding: 130px 120px;
    }

    .spBr {
        display: block;
    }

    .recruit__content {
        padding: 60px;  
        max-width: 1200px;
        margin: auto;
    }

      .btn-recruit {
        margin-top: 280px;
    }

    .btn-recruit::before {
        height: 130px;
        bottom: 115px;
    }

}

/* 1440px pc */


