@charset "utf-8";

.gjs-dashed .loading{
  opacity: 1 !important;
  position: relative;
  visibility: visible !important;
}

.gjs-dashed .loading__logo {
  opacity:1 !important;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 1.5s 2.5s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.loading__logo {
  opacity: 0;
  animation: logo_fade 2s 0.5s forwards;
  text-align:center;
  font-size:clamp(1.125rem, 0.807rem + 1.06vw, 2rem);
}

.loading__logo img{
  width:140px;
  margin:0 auto 2rem;
}

@keyframes logo_fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  60% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
  }
}

@keyframes zoomUp {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}
.swiper-slide-active .swiper-img,
.swiper-slide-duplicate-active .swiper-img,
.swiper-slide-prev .swiper-img {
  animation: zoomUp 7s linear 0s normal both;
}
.swiper-slide img {
  height: 100%;
  width: 100%;
  object-fit:cover;
}

.swiper-img{
  height: 100%;
  width: 100%;
}

.fv{
  height:100vh;
  height:100svh;
  position:relative;
}

.fv-swiper{
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
}

.fv h1{
  font-size:clamp(2.5rem, 1.955rem + 1.82vw, 4rem);
  position:absolute;
  left:5%;
  bottom:10%;
  letter-spacing: 8px;
  z-index: 100;
  color:#fff;
}

.problems{
  margin:7.5rem 0;
  position:relative;
  z-index:1;
}

.ripple-box{
  width: 26%;
  top: -3%;
  left: 24%;
}

.problems .container{
  max-width:1120px;
  display:flex;
  justify-content: space-between;
  align-items: center;
}

.problems h2{
  writing-mode: vertical-rl;
  letter-spacing: 9px;
  color: #282828;
  font-size:clamp(1.25rem, 0.614rem + 2.12vw, 3rem);
  height:600px;
  line-height: 1;
}

.problems h2 strong{
  display:block;
  text-align: end;
  margin-right:2.5rem;
}

.problems-txt{
  width:70%;
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5%;
}

.problems-txt > p{
  font-size:clamp(0.875rem, 0.784rem + 0.3vw, 1.125rem);
}

.problems-txt div{
  font-size:clamp(1.125rem, 0.989rem + 0.45vw, 1.5rem);
}

.problems-txt div p:not(:last-child){
  margin-bottom:2rem;
}

.problems-txt div p:nth-child(2){
  animation-delay:0.8s;
}

.problems-txt div p:nth-child(3){
  animation-delay:1.6s;
}

.master{
  position:relative;
  z-index:1;
}

.master::before{
  content:"";
  position:absolute;
  width:57%;
  aspect-ratio:1100/570;
  background:#F1F0EF;
  right:0;
  top:5%;
  z-index:-1;
}

.master-wrap{
  display:flex;
  justify-content: space-between;
  padding-right: 5% !important;
  align-items: flex-end;
}

.master img{
  width:58%;
}

.master-txt{
  width: 36%;
}

.master-txt > p{
  width: fit-content;
  margin: 0 0 0 auto;
}

.master-txt .btn{
  margin:10rem 0 0 auto;
}

.protect .master-wrap{
  flex-direction:row-reverse;
}

.protect{
  margin:5rem 0;
  padding:5% 0 5rem;
}

.protect::before{
  top:auto;
  bottom:0;
  width: 95%;
  max-width: 1728px;
  aspect-ratio: auto;
  height: 70%;
}

.protect .master-wrap{
  padding-right: 0% !important;
  width:85%;
  margin:0 5% 0 auto;
  padding-left: 5%;
}

.protect.master .master-wrap img {
  width: 70%;
}

.protect .master-txt {
  max-width: 427px;
  padding-bottom:5rem;
}

.protect-box{
  display:flex;
  justify-content: space-between;
  gap:1.5rem;
  width:80%;
  margin:5rem 5% 0 auto;
  max-width: 1345px;
}

.protect-box > a{
  width:calc((100% - 1.5rem)/2);
  padding:1.5rem;
  border:0.5px solid #282828;
}

.protect-box > a:hover{
  opacity:0.7;
}

.protect-txt{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
}

.protect-txt p{
  line-height:2;
}

.protect-txt img{
  width:27%;
}

.protect-txt div{
  width:calc(73% - 1.5rem);
}

.protect-txt div > p{
  font-size:clamp(0.75rem, 0.705rem + 0.15vw, 0.875rem);
  line-height:2;
}

.protect-txt h3{
  font-size:clamp(1rem, 0.818rem + 0.61vw, 1.5rem);
  margin-bottom:8px;
}

.protect-txt p:last-child{
  margin:2.5rem 0 0 auto;
  width:fit-content;
  position:relative;
  font-size:clamp(0.625rem, 0.489rem + 0.45vw, 1rem);
}

.protect-txt p:last-child::before{
  content:"";
  position:absolute;
  width:2.5rem;
  height:0.5px;
  background:#848580;
  left:-3rem;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

.raise{
  padding: 5% 0 5rem;
}

.raise::before{
  aspect-ratio:auto;
  height: 90%;
  left: 0;
  right: auto;
  width: 95%;
  bottom: 0;
  top: auto;
  max-width: 1728px;
}

.raise-img{
  width:80% !important;
  margin:100px auto 5rem;
  display: block;
  max-width:1345px;
}

.raise .protect-box{
  margin:5rem auto 0;
}

.raise .master-wrap{
  width: 80%;
  margin: 0 auto;
  justify-content: flex-start;
  gap: 10%;
}

.raise .master-wrap img {
  width: 45%;
  max-width:600px;
}

.raise-after {
  position: absolute;
  width: 12% !important;
  aspect-ratio: 227 / 342;
  right: 25%;
  top: 0%;
  z-index: 0;
}

.top-news{
  margin:7.5rem 0 200px;
}

.top-news .container{
  max-width:1000px;
}

.top-news-title{
  display:flex;
  justify-content: space-between;
  margin-bottom:4rem;
  align-items: center;
}

.top-news-title h2{
  font-size:clamp(1.5rem, 1.136rem + 1.21vw, 2.5rem);
}

.top-news-title .btn{
  margin:0;
}

.newsLink{
  display:flex;
  gap:2.5rem;
  align-items:center;
  flex-wrap:wrap;
  padding:2rem 2.5rem 2rem 0;
  border-bottom:1px solid #848580;
  position: relative;
}

.newsLink::before{
  content:"";
  position:absolute;
  width:20px;
  height:30px;
  right:0;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  background:url(https://nishinmaterial.co.jp/system_panel/uploads/images/20250916170420314394.png) no-repeat center/contain;
}

.newsLink:hover .newsItemText,
.newsLink:hover h3{
  opacity:0.7;
}

.top-news h3{
  font-size:clamp(0.75rem, 0.614rem + 0.45vw, 1.125rem);
  transition:0.3s;
}

.top-news .sp{
  display:none;
}

.newsItemText{
  color:#ACACAC;
  display:flex;
  gap:1rem;
  align-items:center;
  transition:0.3s;
  font-size:clamp(0.75rem, 0.659rem + 0.3vw, 1rem);
}

.lower-ham-bg{
  padding:2.5rem 0 0; 
}

.master-txt img{
  display:none;
}

@media (max-width: 1600px) {
  .protect-txt p:last-child {
    margin: 0.5rem 0 0 auto;
  }
}

@media (max-width: 1279px) {
  .problems h2{
    height:500px;
  }
}

@media (max-width: 1024px) {
  .protect .master-txt{
    padding:0;
  }
  .header .hamBtn {
    display: none;
  }
  .protect-box{
    flex-direction: column;
    align-items: center;
  }
  .protect-box > a {
    width: 100%;
    max-width: 600px;
  }
  .problems-txt{
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }
  .problems-txt div p:not(:last-child) {
    margin-bottom: 1rem;
  }
  .master-wrap{
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
    padding-right: 0% !important;
    width: 100%;
  }
  .master-wrap > img{
    display:none;
  }
  .master-txt img{
    display:block;
    width:70% !important;
  }
  .master-txt {
    width: 100%;
  }
  .top-title{
    margin: 0 auto 3rem;
  }
  .protect .master-txt{
    max-width:none;
  }
  .master::before{
    aspect-ratio:343/500;
    width:80%;
  }
  .master-txt > p {
    margin: 3rem 5% 0 auto;
  }
  .master-txt .btn {
    margin: 100px auto 0;
  }
  .protect::before,
  .raise::before{
    width:100%;
    height: 90%;
  }
  .protect .master-wrap {
    width: 100%;
    margin: 0;
    padding-left: 5%;
  }
  .protect .master-txt img{
    width: 100% !important;
  }
  .protect .master-txt > p{
    margin: 3rem 0 0 15%;
  }
  .protect-box{
    margin: 3rem auto 0;
  }
  .raise .master-wrap img{
    display:block;
    position: absolute;
    left: 0;
    width: 40%;
    top: 7.5%;
  }
  .raise-after{
    width: 17% !important;
    right: 15%;
  }
  .raise .master-txt > p{
    margin:3rem auto 0;
    text-align:center;
  }
  .raise-img {
    width: 100% !important;
    margin: 40px 0;
  }
}

@media (max-width: 767px) {
  .fv-swiper{
    height: 75%;
  }
  .fv h1{
    bottom:2.5%;
  }
  .problems .container{
    flex-direction: column;
    align-items:center;
    gap: 5rem;
  }
  .problems h2 {
    height: 350px;
  }
  .problems h2 strong {
    margin-right: 1.5rem;
  }
  .problems {
    margin: 5rem 0;
  }
  .problems-txt {
    width: 100%;
    align-items: center;
  }
  .problems-txt > p{
    text-align:center;
  }
  .ripple-box{
    width: 90%;
    top: 40%;
    left: -15%;
  }
  .master:not(.protect):not(.raise)::before {
    width: 90%;
    top: 15%;
  }
  .protect .master-txt .top-title{
    margin-bottom:0;
  }
  .protect-box{
    width:90%;
  }
  .protect-box > a{
    padding:1rem 0.5rem;
  }
  .protect-txt div {
    width: 68%;
  }
  .protect-txt h3{
    margin-bottom: 4px;
  }
  .protect,
  .raise{
    padding-bottom:2rem;
  }
  .raise-after {
    width: 20% !important;
    right: 10%;
  }
  .raise .master-wrap img{
    top: 10%;
  }
  .raise::before{
    height:95%;
  }
  .raise .protect-box{
    margin-top:0;
  }
  .top-news-title .btn{
    display:none;
  }
  .top-news .sp{
    display:block;
  }
  .top-news {
    margin: 5rem 0 200px;
  }
  .top-news-title{
    margin-bottom:0.5rem;
  }
  .top-news .container {
    width: 90%;
  }
  .newsLink{
    padding: 1rem 1.5rem 1rem 0;
    gap: 0.5rem;
  }
  .newsItemText{
    gap: 0.5rem;
  }
  .loading__logo img{
    width:80px;
    margin:0 auto 1.5rem;
  }
  .fv h1{
    color:#282828;
  }
}