#loader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1.5s ease;
}

#loader.hide {
  opacity: 0;
  transition: opacity 1.8s ease;
}

#loader-percent {
  font-size: 40px;
  font-weight: bold;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*ファーストビュー*/
#firstview{
  position: relative;     
  width: 100%;
  z-index: 0;
}

#firstview img {
  width: 100%;
  height: 100dvh;
  object-fit: cover;       
  display: block;
}

.concept{
  position: absolute;
  top: 70%;
  left: 100px;
  transform: translateY(-50%);
}

.concept h1{
  font-family: "Zen Kaku Gothic New", "Poppins", "Hiragino Kaku Gothic ProN", "Yu Gothic","Meiryo",sans-serif;;
  font-size: 60px;
  font-weight: 400;
  color: #fff;
}

/*私について*/

#about{
  padding: 150px 100px 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 70px;
}

.profile img{
  width: 500px;
  height: auto;
  object-fit: cover;
  display: block;
}
.sp-profile{
  display: none;
}
.name-rubi{
  padding-top: 25px;
  font-size: 14px;
}
.about-box h3{
  margin-top: -5px;
}
.about-text{
  padding-top: 25px;
  line-height: 2.2;
}

.space{
  display: block;
  height: 30px; 
}

/*できること*/
#skil{
  padding: 150px 100px 0;
  text-align: center; 
}

.skil-contents{
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 90px;
}
.skil-box {
  background: #fff;
  padding: 40px 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skil-box img {
  width: 90px;
  height: auto;
  margin-bottom: 20px;
}

/*制作したもの*/
.portfolio-title{
  padding: 150px 100px 30px;
}
.portfolio-contents{
  display: flex;
  gap: 80px;
  padding: 70px 100px 90px;
  transition: background 0.8s ease;
}

.portfolio-contents:hover{
  background: #ADD4E6;
}
.portfolio-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.portfolio-text{
  margin-left: 80px;
  width: 40%;
}
.portfolio-text h3{
  font-weight: 500;
}
.portfolio-about{
  margin-top: 55px;
}
.sp-firstview-image{
  display: none;
}
.firstview-image{
  margin-top: 20px;
}
.firstview-image img{
  width: 500px;
  height: auto;
}
.banner-image{
  margin-top: 20px;
  transform: translateX(79px)
}
.banner-image img{
  width: auto;
  height: 278.5px;
}

/*メッセージ*/
#meesage{
  position: relative;
}
.background{
  position: relative;     
  width: 100%;
  height: 655px;            
  object-fit: cover;
  display: block;
}
.message-text{
  display: block;
  position: absolute;
  top: 42%;
  width: 100%;
  text-align: center;
}
.sp-message-text{
  display: none;
}
.split-text{
  font-size: 24px;
  font-weight: 400;
  color: #004E9C;
}
.split-text span {
  opacity: 0;
  display: inline-block; 
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.split-text.show span {
  opacity: 1;
  transform: translateX(0);
}
.sp-hide{
  display: block;
}
.sp-only{
  display: none;
}

@media (max-width: 480px) {

/*ファーストビュー*/
#firstview{
  height: 700px;
  background-position: center;
}
#firstview img {
  width: 100%;
  height: 700px;
}
.concept{
  left: 30px;
}
.concept h1{
  font-size: 32px;
  line-height: 1.6;
}
/*私について*/

#about{
  padding: 100px 30px 0;
  flex-direction: column;
  align-items: center;
}
.profile{
  display: none;
}
.sp-profile{
  display: block;
}
.sp-profile img{
  width: 315px;
}

.name-rubi{
  padding-top: 25px;
  font-size: 11px;
}
.about-box h3{
  margin-top: -5px;
}
.about-text{
  padding-top: 25px;
  line-height: 2.2;
}
br{
  display: none;
}

.sp-br {
  display: block;
}
.space{
  display: block;
  height: 30px; 
}

/*できること*/
#skil{
  padding: 100px 30px 0;
}
.skil p,
.skil h2{
  text-align: left;
  padding: 0 15px;
}
.skil-contents{
  grid-template-columns: 1fr;
  gap: 40px;
}
.skil-box {
  padding: 30px 20px;
  margin: 0 25px;
}

.skil-box img {
  width: 70px;
}
/*制作したもの*/
#portfolio{
  padding-bottom: 50px;
}
.portfolio-title{
  padding: 100px 30px 30px;
}
.portfolio-contents{
  display: flex;
  flex-direction: column;
  padding: 0px 30px 30px;
  gap: 20px;
}
.portfolio-text{
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-left: 0;
}
.portfolio-about{
  margin-top: 45px;
}
.firstview-image{
  display: none;
}
.banner-image{
  display: none;
}
.sp-firstview-image{
  display: block;
  margin-top: 45px;
}
.sp-firstview-image img{
  width: 100%;
  height: auto;
}

/*メッセージ*/
.sp-only{
  display: block;
}
.sp-message-text {
  display: block; 
  position: absolute;
  padding: 0 30px;
  top: 30%;
  left: 0;
  right: 0;
  text-align: center;
  }
.message-text {
   display: none; 
  }
  .split-text{
    font-size: 20px;
  }
.background{
  height: 500px;            
}

}