.company .sec-title,
.modelhouse .sec-title {
  margin: 0 0 10px;
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.333;
  text-transform: capitalize;
}


/*PC表示時、画面右のメニューの位置を考慮して空白 */
@media screen and (min-width: 768px) {

  /* HOME以外に適用 */
  body:not(.home) .l-contents__body {
    padding-right: 120px;
  }

  /* LPだけ解除 */
  .page-id-2191 .l-contents__body {
    padding-right: 0!important;
  }

  /* HOME・LPだけ別指定 */
  .page-id-2191 .wp-block-snow-monkey-blocks-section,
  .home .wp-block-snow-monkey-blocks-section {
    padding-right: 120px;
  }

}
	
/* */
.page .c-page-header__title {
    display:none;
}


.Montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
}

.pc_none {
  display: none;
}

@media screen and (max-width: 767px) {
  .pc_none {
    display: block;
  }
}


@media screen and (max-width: 768px) {
  .company .sec-title,
  .modelhouse .sec-title {
    font-size: 8vw;
  }
}

/*-------------------------------
	modelhouse
-------------------------------*/
.modelhouse {
  padding-top: 40px;
  padding-bottom: 360px;
}

.modelhouse .flex {
  display: flex;
}

.modelhouse .side-title {
  padding-right: 20px;
  padding-left: 20px;
}

.modelhouse .mainBlock {
  padding-bottom: 200px;
  width: calc(100% - 140px);
  background-color: #ebebeb;
  border-radius: 40px;
  position: relative;
}

.modelhouse .mainBlock .inner {
  padding: 120px;
}

.modelhouse .sec-title {
  margin-bottom: 20px;
  text-align: center;
}

.modelhouse .title {
  margin: 0 0 80px;
  font-size: 2.6rem;
  text-align: center;
}

.modelhouse .text {
  text-align: center;
  line-height: 1.75;
}

.modelhouse .btnBlock {
  margin-top: 80px;
  margin-right: 80px;
  text-align: right;

}

.modelhouse .arrow {
  white-space: nowrap;
}

.modelhouse .splide__slide {
  display: grid;
  place-content: center;
  aspect-ratio: 1/1;
  background-color: #a6de3c;
}


.modelhouse .splide__slide {
  object-fit: cover;
  background-color: #ffefef;
}

.modelhouse .splide__slide img {
  width: 100%;
}

.modelhouse .splide__pagination {
  position: relative;
}

@media screen and (max-width: 768px) {
  .modelhouse {
    padding-bottom: 200px;
  }

  .modelhouse .flex {
    flex-direction: column;
  }

  .modelhouse .vertical-text {
    padding: 0;
    writing-mode: horizontal-tb;
  }

  .modelhouse .mainBlock {
    padding-bottom: 80px;
    width: 100%;
    border-radius: 20px;
  }

  .modelhouse .mainBlock .inner {
    padding: 40px 20px;
  }

  .modelhouse .title {
    margin: 0 0 40px;font-size: 4.5vw;
    text-align: center;
  }
}



/* swiper */
.loop-slider {
  width: 100%;
}

.loop-slider img {
  width: 100%;
}

.loop-slider .swiper-wrapper {
  transition-timing-function: linear;
}


.circle-link {
  background-color: #9a9a9a;
  width: 360px;
  height: 360px;
  border-radius: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -300px;
  right: 100px;
}

.circle-link::after {
  content: "";
  background: url(../img/text-rotation02.svg) center no-repeat;
  background-size: contain;
  width: 360px;
  height: 360px;
  display: block;
  animation: rotation 50s linear infinite;
  position: absolute;
  top: 0;
  left: -15px;
}

.circle-link p {
  margin: -30px 0 0;
  font-size: 2.4rem;
  font-weight: bold;
  color: #000;
  text-align: center;
}

.circle-link .arrow::before {
  top: 0;
  bottom: -150px;
  right: calc(50% - 25px);
}

.circle-link .arrow::after {
  top: 0;
  bottom: -150px;
  right: calc(50% - 25px);
}

@media screen and (max-width: 768px) {
  .circle-link {
    width: 200px;
    height: 200px;
    bottom: -160px;
  }

  .circle-link::after {
    width: 200px;
    height: 200px;
  }

  .circle-link p {
    margin: 0;
    font-size: 20px;
  }

  .circle-link .arrow::before {
    bottom: -100px;
  }

  .circle-link .arrow::after {
    bottom: -100px;
  }
}


/* text-rotationアニメーション */
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/*-------------------------------
	company
-------------------------------*/

.company .flex {
  display: flex;
  justify-content: flex-start;
}

.company .textBlock-outer {
  width: 100%;
}

.company .cardBlock {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company .card {
  padding: 20px;
  list-style: none;
  width: calc(100% / 4);
  height: 500px;
  background-color: #a8a8a8;
  transition: all .3s;
}

.company .card:nth-child(even) {
  background-color: #767676;
}

.company .card:nth-child(1) {
  background: url(../img/company_info.jpg) no-repeat center;
  background-size: cover;
}

.company .card:nth-child(2) {
  background: url(../img/sustain_info.jpg) no-repeat center;
  background-size: cover;
}

.company .card:nth-child(3) {
  background: url(../img/partner_info.jpg) no-repeat center;
  background-size: cover;
}

.company .card:nth-child(4) {
  background: url(../img/recruit_info.jpg) no-repeat center;
  background-size: cover;
}


.company .card:hover {
  width: 100%;
  position: relative;
  opacity: 0.5;
  transition: all .3s;
}

.company .card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  display: flex;
  align-items: flex-end;

}

.company .card .title {
  font-size: 1.5rem;
  font-weight: normal;
  color: #fff;
  position: relative;

}

.company .card .title::after {
  content: attr(data-en);
  font-size: 1.1rem;
  position: absolute;
  top: -30px;
  left: 0;

}

.company .side-title {
  padding-left: 20px;
  padding-right: 20px;
}

.company .mainBlock {
  width: calc(100% - 140px);
}

@media screen and (max-width: 960px) {
  .company .cardBlock {
    flex-wrap: wrap;
  }

  .company .card {
    height: 300px;
    width: calc(100% / 2);
  }

  .company .card:hover {
    width: calc(100% / 2);
  }

}

@media screen and (max-width: 768px) {
  .company .vertical-text {
    padding: 0;
    writing-mode: horizontal-tb;
  }

  .company .flex {
    flex-direction: column;
  }

  .company .sec-title {
    margin-bottom: 40px;
  }

  .company .mainBlock {
    width: 100%;
  }

  .company .card .title {
    font-size: 3.5vw;
  }
}


/*-------------------------------
	footer
-------------------------------*/
.l-footer {
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #000;
  position: relative;
}

.l-footer .title {
  color: #fff;
}

.l-footer .Montserrat {
  padding-bottom: 5rem;
  font-size: 3.2rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.l-footer .innerWidth {
  position: relative;
  width: calc(100% - 90px);
}

.l-footer .cnt {
  display: flex;
  justify-content: space-between;
}

.l-footer .menu-g-nav-container {
  width: 50%;
}

.l-footer .addressBlock p {
  margin: 0;
  margin-top: 10px;
}

.l-footer .textBlock p.tel {
  margin-top: 1rem;
  font-size: 1.4rem;
}

.l-footer .textBlock p.dayoff {
  margin-top: 0.5rem;
}

l-.footer .footer__nav__menu {
  padding: 0;
  margin: 0;
  width: 100%;
  list-style: none;
}

.l-footer .footer__nav__item {
  display: inline-block;
}

.l-footer ul.footer__nav__menu  {
    padding-left: 0;
}
.footer .textBlock {
  width: 50%;
}

.l-footer .textBlock p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
}

.l-footer .textBlock p.title {
  margin-top: 100px;
  margin-bottom: 220px;
  font-size: 3.4rem;
}

.l-footer .logo {
  /* margin-top: 100px; */
  margin-bottom: 20px;
  display: block;
}

.l-footer .logo-img {
  width: 280px;
  aspect-ratio: 153 / 31;
}

.l-footer a {
  margin-right: 1.5rem;
  line-height: 2.5;
  color: #fff;
  transition: all .3s;
  text-decoration: none;
}

.l-footer a:hover {
  opacity: 0.7;
  transition: all .3s;
}

.l-footer .sns__link {
  padding-top: 40px;
  display: flex;
  justify-content: flex-end;
}

.l-footer .sns__link .title {
  position: relative;
  display: inline-block;
  padding-right: 120px;
}

.l-footer .sns__link .title:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  display: inline-block;
  width: 80px;
  height: 2px;
  background-color: #666;
}

.l-footer .sns__link .titler:after {
  right: 0;
}

.l-footer .sns__link ul {
  display: flex;
  max-width: auto;
  width: auto;
}

.l-footer .sns__link li {
  margin-left: 10px;
  list-style: none;
  background: #000;
  padding: 8px;
  border-radius: 8px;
  width: 60px;
  height: 60px;
}

.l-footer .sns__link li:nth-child(4) {
  list-style: none;
  padding: 0;
}

.l-footer .sns__link li img {
  width: 100%;
  height: auto;
}

.l-footer .icon_back {
  position: absolute;
  top: -80px;
  right: 0;
}

.l-footer .icon_back img {
  width: 60px;
  height: 60px;
}

@media screen and (max-width: 1100px) {
  .l-footer .menu-g-nav-container {
    width: 100%;
  }

  .l-footer .textBlock {
    width: 100%;
  }

  .l-footer .cnt {
    flex-direction: column-reverse;
  }

  .l-footer .menu-g-nav-container {
    margin-bottom: 100px;
  }

  .l-footer .sns__link {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 960px) {
  .l-footer .innerWidth {
    align-items: center;
    flex-direction: column-reverse;
  }

  .l-footer .textBlock {
    width: 100%;
  }

  .l-footer .menu-g-nav-container {
    width: 100%;
  }

  .l-footer .textBlock p.title {
    margin-top: 200px;
  }


}

@media screen and (max-width: 768px) {

  .l-footer .innerWidth {
    width: 100%;
  }

  .l-footer .Montserrat {
    font-size: 9vw;
  }

  .l-footer .sns__link {
    flex-direction: column;
  }

  .l-footer .sns__link ul {
    padding: 0;
  }

  .l-footer .icon_back img {
    width: 40px;
    height: 40px;
  }
}

/*========= 流体シェイプを動かす ===============*/
.fluid {
    /* 大きさを戻す（横を少しスリムに、縦を長く） */
    width: 600px;     /* vwではなくpxで固定すると安定します */
    height: 1200px;   /* しっかり縦長 */
    
    background: #f7f7f7;
    animation: fluidrotate 30s ease 0s infinite;
    position: absolute;
    
    /* 配置をリセット：下を基準にする */
    top: auto !important;
    bottom: 0 !important;
    left: -150px;     /* 左に少しはみ出させる */
    
    z-index: -1;
    pointer-events: none;
}
@keyframes fluidrotate {

  0%,
  100% {
    border-radius: 63% 37% 54% 46%/55% 48% 52% 45%;
  }

  14% {
    border-radius: 40% 60% 54% 46%/49% 60% 40% 51%;
  }

  28% {
    border-radius: 54% 46% 38% 62%/49% 70% 30% 51%;
  }

  42% {
    border-radius: 61% 39% 55% 45%/61% 38% 62% 39%;
  }

  56% {
    border-radius: 61% 39% 67% 33%/70% 50% 50% 30%;
  }

  70% {
    border-radius: 50% 50% 34% 66%/56% 68% 32% 44%;
  }

  84% {
    border-radius: 46% 54% 50% 50%/35% 61% 39% 65%;
  }

}

@media screen and (max-width: 1500px) {
  .fluid {
    width: 100%;
    height: 80%;
    left: -20%;
  }
}

@media screen and (max-width: 767px) {
  .fluid {
    display: none;
  }
}

/* 右側メニュー */
/* --- アニメーション定義 --- */
#nav {
    opacity: 0;
    transition: all .3s;
    pointer-events: none; /* 消えている時はクリック不可 */
}

#nav.UpMove {
    position: fixed;
    animation: UpAnime 0.5s forwards;
    z-index: 9999;
}

#nav.DownMove {
    position: fixed;
    animation: DownAnime 0.5s forwards;
    z-index: 9999;
}

@keyframes UpAnime {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-100px); }
}

@keyframes DownAnime {
    from { opacity: 0; transform: translateY(-100px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 右側固定レイアウト --- */
.navBlock {
    width: 120px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;

}

.navBlock .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
	    background-color: #000;
}

.navBlock .text {
    margin: 20px 0;
    font-size: 1rem;
    color: #fff;
    writing-mode: vertical-rl;
    white-space: nowrap;
    letter-spacing: 0.1em;
	font-weight: normal;
}

.navBlock .nav-child {
    padding: 5px 0;
    border-top: 1px solid #333;
    width: 100%;
    margin-top: 10px;
    text-align: center;

}


.navBlock .link_text {
/*    color: #fff;
    font-size: 1rem;
    writing-mode: vertical-rl;
    margin: 0;*/
}
.navBlock .nav-child .link_text {
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    color: #fff;
}

.snsLinkBlock {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.sns-icon-img {
    width: 35px;
    height: auto;
}
.drawer__button {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 6rem;
    height: 6rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 99999;
    position: relative;
}


/* ハンバーガーボタン内の線 */
.drawer__button>span {
    display: block;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2px;
    background-color: #fff;
    transform: translateX(-50%);
    box-shadow: 0 0 1px rgba(0, 0, 0, 1);
    position: absolute;
}

.drawer__button>span:first-child {
    transform: translate(-50%, calc(-50% - 0.5rem));
    transition: transform 0.3s ease;
}

.drawer__button>span:last-child {
    transform: translate(-50%, calc(-50% + 0.5rem));
    transition: transform 0.3s ease;
}

/* 展開時のデザイン */
.drawer__button.active>span:first-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer__button.active>span:last-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* --- 回転アニメーション --- */
.drawer__button::before {
    content: "";
    background: url(https://w-home.co.jp/wp-content/themes/woodhome/assets/images/text-rotation01.svg) center no-repeat;
    background-size: contain;
    width: 80px;
    height: 80px;
    display: block;
    animation: rotation 20s linear infinite;
}

@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- スマホ対応（768px以下は非表示または簡易化） --- */
@media screen and (max-width: 768px) {
    .navBlock {
        background: transparent;
		
        width: 100px;
        height: 100px;
    }
    .navBlock .text, 
    .navBlock .nav-child, 
    .snsLinkBlock {
        display: none;
    }
    .navBlock .inner {
        padding: 0px;
 	    background: transparent;
		padding-top: 0px;
    }
	
	.drawer__button {
		background:black;
		border-radius:50%;
		margin-top:0;
	}
}


/* PC表示時、自作ナビが出ている間は本物のハンバーガーボタンを隠す */
@media screen and (min-width: 1024px) {
}
	#nav.DownMove ~ * .c-hamburger-btn,
    #nav.DownMove ~ .c-hamburger-btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: 0.3s;
    }

