@charset "utf-8";

.profile-ob1 {
  margin-bottom: 100px;
}

.profile-main {
  position: relative; /* 子要素の起点をここにする */
  max-width: 900px; /* フレームの最大幅に合わせる */
  margin: 0 auto; /* 中央寄せ */
  min-height: 800px; /* コンテンツの高さに合わせて調整 */
}

/* 背景フレーム */
.frame-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 人物イラスト：左下に固定 */
.character-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%; /* フレームに対するサイズ感で調整 */
  z-index: 2;
}

/* テキスト：中央〜右側に配置 */
.profile-txist {
  position: absolute;
  z-index: 3;
  top: 50%; /* 縦の位置調整 */
  left: 55%; /* 横の位置調整（人物を避ける） */
  transform: translate(-50%, -50%); /* 中央揃えの補正 */
  width: 70%; /* テキストの横幅 */
  text-align: left;
}

.profile-txist h2 {
  font-size: 43px;
  font-family: "myfont", "sans-s";
  color: #683c40;
  margin-bottom: 40px;
  margin-left: 30px;
}

/* 署名の位置を少し右にずらす場合 */
.signature {
  text-align: right;
  margin-top: 30px;
}

.profile-txist p {
  line-height: 2.3; /* 行間を少し広げると手紙らしくなります */
  font-size: 18px;
  padding: 0 100px;
  padding: 20px 100px 0;
}

.profile-object2 img {
  position: relative;
  width: 100%;
  display: block;
  margin-top: 100px;
  z-index: 10;

}

@media screen and (max-width: 875px) {
  .profile-txist p {
  font-size: 17px;
  padding: 20px 90px 0;
}
}

@media screen and (max-width: 820px) {
  .profile-txist p {
  font-size: 16px;
  padding: 20px 80px 0;
}
}


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


  .pro-pcbr{
    display: none;
  }

 .frame-img {
    height: auto; 
    opacity: 0.5; /* ★ここに透明度を追加。0.5は50%です。お好みで調整してください。 */
  }

  .profile-txist {
    /* staticに戻さず、absoluteのまま中央配置を維持 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%; /* 紙の余白に合わせて調整 */
    padding: 0;
    margin-top: 0; 
    z-index: 3;
  }

  .profile-txist p {
    padding: 0 13%; /* 左右の余白を％にするとズレにくい */
    padding-bottom: 5%;
    text-align: left;
    word-break: break-all; /* 改行が崩れないように */
  }

  /* 人物イラストの位置微調整 */
  .character-img {
    position: absolute;
    bottom: -15%;
    left: 5%;
    width: 30%;
    z-index: 4; /* テキストより上にくるように */
  }

  .profile-txist h2 {
    margin-bottom: 65px;
  }

}

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

  .profile-txist p {
    line-height: 2.5; /* 行間を少し広げると手紙らしくなります */
    font-size: 15px;
   
  }

  .profile-txist h2 {
    font-size: 35px;
  }

  .character-img {
    bottom: -20%;
    left: 5%;
    width: 35%;
  }

   .profile-main-visual {
    margin-top: 30px;
}

}

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

  .profile-txist {
    margin-top: -6%;
  }

  .signature {
    
    margin-top: 0px;
}

.profile-txist h2 {
    margin-bottom: 50px;
    margin-left: 20px;
  }


  .profile-txist p {
    padding: 0 9%; /* さらに余白を絞る */
    padding-bottom: 5%;
  }

   .character-img {
    bottom: -5%;
    
  }

}

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

  .profile-txist {
    margin-top: -18%;
  }

  .profile-txist h2 {
    font-size: 27px;
    margin-bottom: 45px;
  }

  .profile-txist p {
    font-size: 14px;
    line-height: 2.0;
  }
  
  .character-img {
    width: 32%;
    bottom: 6%;
  }
}

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

   .profile-txist {
    margin-top: -25%;
  }

  .character-img {
    bottom: 13%;
  }

}



.profile-main-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: url("../img/profile_back@2x.webp") no-repeat center top;
  background-size: 105% auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 150px;
  
}

.lamp-switch {
  cursor: pointer;
  margin-top: 100px;
  z-index: 10;
  text-align: center;
}

.lamp-switch img {
  width: 50%; /* サイズは適宜調整 */
}

/* 光の帯を背景として持つコンテナ */
#light-container {
  width: 100%;
  /* 【重要】光の三角形の比率を固定する（高さが足りないのを防ぐ） */
  /* 10 / 12 の数字を調整すると、光の「縦の長さ」が変わります */
  aspect-ratio: 10 / 12;
  background-position: center top;
  /* 背景画像を枠いっぱいに広げる */
  background-size: 100% 100%;
  transition: background-image 0.5s ease; /* ふわっと切り替え */
  margin-top: -230px; /* ランプとの距離を微調整 */
  padding: 70px 40px; /* 光の中にテキストが収まるように調整 */
  text-align: center;

  /* 中のテキストを中央〜やや下に寄せる設定 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* centerから変更 */
  padding: 0 10%;
  padding-top: 270px; /* ★ここをいじって、テキストの開始位置を上に上げる */

  background-repeat: no-repeat;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box; /* パディングで幅が変わるのを防ぐ */
  padding-bottom: 200px;
}

/* 暖色モード */
.light-warm {
  background-image: url("../img/light1@2x.webp");
}

/* 青色モード */
.light-blue {
  background-image: url("../img/light_dark@2x.webp");
}

.is-js-active .light-text {
  white-space: pre-wrap;
  margin: 0 auto;
}

#js-title {
  font-family: "myfont", "serif";
  font-size: 50px;
  margin-top: 170px;
}

#js-desc1 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.76;
  margin: 65px 0;
}

#js-desc2 {
  line-height: 2;
  font-size: 18px;
}

.profile-footer-container {
  position: relative;
  /* top: 69%; */
  /* left: 0;*/
  width: 100%;
  z-index: 11;
  margin-top: -40%;
  
}

.profile-footer-container img {
  width: 100%;
  display: block; /* 画像の下にできる謎の隙間を消す */
}

.footer-nav {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;

}

.profile-page .footer-nav ul{
  gap: 60px;
}

.footer-nav li a{
  font-size: 17px;
  color:#f9f7e4; 
  font-weight: bold;
}

.copy-profile{
  position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    text-align: center;
  color:#f9f7e4; 
}


/*.profile-page .footer-nav ul {
  margin-top: 0;
  flex-wrap: wrap;
  padding: 0 10%;
}*/




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

.footer-nav {
    bottom: 10%;
  }

.profile-footer-container {
        margin-top: -30%;
    }

    
  #js-title {
    margin-top: 120px;
  }

  .light-title {
    font-size: 40px;
  }

  .light-description1 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.56;
    margin: 30px 0;
  }

  .light-description2 {
    line-height: 2;
    font-size: 17px;
  }

  #light-container {
    background-size: 125% 114%;
    padding-bottom: 40%;
  }

  .lamp-switch {
  margin-top: 50px;
  }
  
}
@media screen and (max-width: 1150px) {
  .footer-nav {
    bottom: 5%;
  }
}

@media screen and (max-width: 1100px) {
  #js-title {
    margin-top: 90px;
  }

}

#light-container {
  margin-top: -207px;
}

@media screen and (max-width: 1000px) {
  
  #js-desc1 {
    font-size: 18px;
  }

  #js-desc2 {
    line-height: 2;
    font-size: 16px;
  }
  
}

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

  #light-container {
    margin-top: -157px;
  }

  #js-title {
    font-size: 35px;
    margin-top: 64px;
  }

  #js-desc1 {
    font-size: 16px;
    margin: 42px 0;
  }

  #js-desc2 {
    font-size: 14px;
  }


}

@media screen and (max-width: 790px) {
  
  #js-desc1 {
    font-size: 16px;
  }

  #js-desc2 {
    font-size: 14px;
  }

  .footer-nav {
    bottom: 20%;
  }



  }

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

    .light-warm {
      background-image: url("../img/sp_light_profile@2x.webp");
    }

    /* 青色モード */
    .light-blue {
      background-image: url("../img/sp_light_profile2@2x.webp");
    }
  

  #js-title {
    margin-top: 50px;
  }
  
#light-container {
    margin-top: -143px;
 }


  .profile-main-visual {
    margin-top: 250px;
  }


}

 @media screen and (max-width: 620px) {
    .profile-main-visual {
    margin-top: 250px;
}

 }




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

  #js-title {
    margin-top: -10px;
  }

  .profile-footer {
    top: auto;
  }
  .footer-nav {
    bottom: 20%;
  }

}



@media screen and (max-width: 560px) {
  
   .profile-main-visual {
    margin-top: 150px;
}

}


@media screen and (max-width: 485px) {
  .profile-footer-container img {
    width: 485px;
  }
  .profile-footer-container {
    top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .profile-main-visual {
    background-size: 145% auto;
  }

  .profile-main-visual {
    margin-top: 70px;
}
}



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

  #light-container {
    margin-top: -120px;
  }

  #js-desc1 {
    font-size: 13px;
  }

  #js-desc2 {
    font-size: 11px;
  }

  .profile-main-visual {
  margin-top: -50px;
  }

   #js-title {
    font-size: 30px;
  
  }
 
}


