/*==============================
  content
==============================*/
section .wrap .contents h2{
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: grid;
  row-gap: 0.5em;
}

section .wrap .contents h2 span{
  font-size: 1.4rem;
  color: #259b6c;
  font-weight: 700;
  letter-spacing: normal;
}

section .wrap .contents a.btn{
  display: inline-grid;
  grid-template-columns: 2.66em auto;
  column-gap: 0.5em;
  justify-content: start;
  align-items: center;
  font-size: 2.4rem;
  font-weight: 700;
}

section .wrap .contents a.btn::before{
  content: "";
  box-sizing: border-box;
  width: 2.66em;              /* ★ widows → width に修正 */
  height: 2.66em;
  border-radius: 50%;
  border: 1.1em solid #259b6c;
  transition: 0.3s;
}

section .wrap .contents a.btn:hover{
  color: #259b6c;
}

section .wrap .contents a.btn:hover::before{
  border: 0.8em solid #259b6c;
}

/*==============================
  header
==============================*/
#header{
  position: fixed;
}

/*==============================
  FV Swiper（ガタつき対策込み：一本化）
==============================*/
:root{
  --header-h: 90px;
}

.swiper-container{
  width: 100%;
  height: calc(100vh - var(--header-h)); /* fallback */
  position: relative;
  overflow: hidden;
}

/* ★スマホはsvh固定（dvhに切り替えない） */
@supports (height: 100svh){
  .swiper-container{
    height: calc(100svh - var(--header-h));
  }
}
@supports (height: 100dvh){
  .swiper-container{
    height: calc(100svh - var(--header-h));
  }
}

/* Swiper内部も高さ固定 */
.swiper-container .swiper-wrapper,
.swiper-container .swiper-slide{
  height: 100%;
}

.swiper-slide{
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.swiper-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ナビゲーション/ページネーション */
.swiper-button-next,
.swiper-button-prev{
  color: #fff;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-pagination{
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.swiper-pagination-bullet{
  width: 16px;
  height: 16px;
  background-color: #fff;
  opacity: 0.7;
  margin: 12px !important;
}

.swiper-pagination-bullet-active{
  background-color: #007bff;
  opacity: 1;
}

/*==============================
  詳しく見るボタン
==============================*/
.more_btn button{
  position: relative;
  overflow: hidden;
  border: 1px solid #3E5113;
  color: #3E5113;
  display: inline-block;
  font-size: 14px;
  line-height: 15px;
  padding: 12px 37px 11px;
  cursor: pointer;
  background: #fff;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  font-weight: 700;
  margin: 40px 0;
}

.more_btn button span:first-child{
  position: relative;
  transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
  z-index: 10;
}

.more_btn button span:last-child{
  color: #fff;
  display: block;
  position: absolute;
  bottom: 0;
  transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
  z-index: 100;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translateY(225%) translateX(-50%);
  height: 14px;
  line-height: 13px;
}

.more_btn button:after{
  content: "";
  position: absolute;
  bottom: -50%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  transform-origin: bottom center;
  transition: transform 600ms cubic-bezier(0.48, 0, 0.12, 1);
  transform: skewY(9.3deg) scaleY(0);
  z-index: 50;
}

.more_btn button:hover:after{
  transform-origin: bottom center;
  transform: skewY(9.3deg) scaleY(2);
}

.more_btn button:hover span:last-child{
  transform: translateX(-50%) translateY(-50%);
  opacity: 1;
  transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1);
}

/*==============================
  見出し装飾（縦）
==============================*/
.contents_title_container2{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 80px auto 40px;
}

.vertical-content{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vertical-image{
  width: auto;
  height: 180px;
  display: block;
  margin-bottom: 0;
}

.horizontal-text2{
  writing-mode: vertical-lr;
  text-orientation: mixed;
  font-size: 1.2rem;
  color: #6B8C31;
}

/*==============================
  下段の横スクロールslider
==============================*/
#slider .wrap{
  overflow: hidden;
  position: relative;
  padding: 100px 0;
  background-color: #c0dde4;
}

#slider .wrap .img_slider .swiper-wrapper{
  transition-timing-function: linear;
}

#slider .wrap .img_slider .swiper-wrapper .swiper-slide{
  width: 500px;
}

#slider .wrap .img_slider .swiper-wrapper .swiper-slide img{
  display: block;
  border-radius: 20px;
}

#slider .wrap::before{
  content: "RINNET";
  font-size: 14.5rem;
  color: #259b6c;
  position: absolute;
  z-index: 2;
  font-weight: 700;
  bottom: 50px;
  left: calc(50vw + .5em);
}

@media screen and (max-width: 1300px){
  #slider .wrap::before{
    right: 5px;
    left: auto;
  }
}

@media screen and (max-width: 1240px){
  #strength .wrap .contents .contents_inner .img::before{ right: 0%; }
  #service .wrap .contents::before{ right: -20px; }
  #service .wrap .contents .contents_inner .img::before{ left: 0; }
}

@media screen and (max-width: 768px){
  section .wrap .contents h2{ font-size: 3.2rem; }

  section .wrap .contents a.btn{ font-size: 2rem; }
  section .wrap .contents a.btn::before{ transition: 0s; }

  section .wrap .contents a.btn:hover{ color: #000333; }
  section .wrap .contents a.btn:hover::before{ border: 1.1em solid #259b6c; }

  .scroll-down{ display: none; }

  #mv .wrap .contents{ width: 100%; }

  #mv .wrap .contents h1{
    height: calc(100vh - 90px);
    height: calc(100svh - 90px); /* ★ここもsvh寄せ */
  }

  #slider .wrap{ padding: 45px 0; }
  #slider .wrap .img_slider .swiper-wrapper .swiper-slide{ width: 280px; }
  #slider .wrap::before{
    font-size: 6rem;
    bottom: 20px;
  }
}