@media screen and (max-width : 768px){
  html,
  body {
  overflow-x: hidden!important;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  }
 }
 
 
 h3,h4  {
  font-family: 'Zen Kaku Gothic Antique', 'ヒラギノ角ゴ ProN', 'メイリオ', sans-serif;
}

  ul{
    padding-left:0;
  }
  
  li{
    list-style:none;
  }
  a{
    text-decoration: none;
  }



/* 英字用（見出しや .eng クラス）
/* 英字だけの段落にも適用 */ 

h1, h2,  h5, h6, .eng ,.eng_b, .eng_w {
  font-family: 'Cormorant', serif;
}


main{
  max-width: 1920px;
}

@media all and (max-width: 768px) {
main{
  width: 100%;
}

}

/* ------------------------------
    HERO セクション（全端末で崩れない版）
------------------------------ */
.hero-section {
  position: relative;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  min-height: calc(135vh);
 /*  min-height: 85vh; /* 画面いっぱい */
 /*  max-height: 900px; /*800だとタイト1000だと間延びすることありで中間に設定しておく*/


  /* ここで背景画像を管理（ズレなくなる） */
  background-image: url('../img/fv_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 大画面（例: 1600px以上）で背景を左寄せにする */
@media (min-width: 1600px) {
  .hero-section {
   /* background-position: 40% center; /* ここで背景を左に寄せる */
    background-size: cover;
  }
}

/* 画像タグでの背景は不要なので非表示に */
.hero-section_bg {
  display: none;
}

/* hero content */
.hero-content {
  position: relative;    /* absolute禁止してズレ回避 */
  z-index: 2;
  width: 100%;
  max-width: 560px;
  padding: 0 20px;
  margin-top:11%; 
  /*box-sizing: border-box;
  margin-top:120px; hero-sectionで書いてみる*/
  transform: translateY(-40px);
}





/* hero content */

@media (max-width: 768px) {
.hero-content {
  margin-top:180px;
}
}


/* ロゴ画像 */
.hero-content h1 img {
  width: 100%;
  height: auto;
}

.hero-content h2 img{
  width: 80%;
  margin: 0 auto;
  padding-top: 20px;
}

/* H2 の間の余白調整 */
.hero-content h2 {
  margin-top: 40px;
}

/* 英文コピー */
.hero-content p.eng {
  color: #FFE2C3;
  margin-top: 160px;
  font-size: clamp(14px, 3vw, 20px); /* 大きすぎ/小さすぎ防止 */
  line-height: 1.6;
}

/* ------------------------------
    SP 調整
------------------------------ */
@media (max-width: 768px) {
  .hero-section {
    min-height: 82vh; 
    width: 100%;
    margin-top: 115px;
  }

  .hero-content h2 {
    margin-top: 20px;
  }

  .hero-content p.eng {
    margin-top: 40px;
  }
}

/* iPhone SE 超細い画面の微調整 */
@media (max-width: 430px) {
  .hero-content {
    max-width: 300px;
    margin-top: 70px;
  }
}



/* ------------------------------
   タイトル横並び・文字落下
------------------------------ */
.hero-content h1 {
  display: flex;
  justify-content: center;
  gap: 20px; /* 文字間の余白 */
}



.hero-content h2 {
  display: flex;
  justify-content: center;
  gap: 0px; /* 文字間の余白 */
}

/* h1：基準サイズ */
.hero-content h1 span img {
  width: 100%;
  transform: translateY(-40px);
  opacity: 0;
  animation: dropH1 1.2s forwards ease-out;
}

/* h2：h1の70%サイズ */
.hero-content h2 span img {
  width: 70%;
  transform: translateY(-60px);
  opacity: 0;
  animation: dropH2 0.8s forwards ease-out;
}

/* ------------------------------
   h1文字ごとの遅延（7文字）
------------------------------ */
.hero-content h1 span:nth-child(1) img { animation-delay: 0s; }
.hero-content h1 span:nth-child(2) img { animation-delay: 0.2s; }
.hero-content h1 span:nth-child(3) img { animation-delay: 0.4s; }
.hero-content h1 span:nth-child(4) img { animation-delay: 0.6s; }
.hero-content h1 span:nth-child(5) img { animation-delay: 0.8s; }
.hero-content h1 span:nth-child(6) img { animation-delay: 1.0s; }
.hero-content h1 span:nth-child(7) img { animation-delay: 1.2s; }

/* ------------------------------
   h2文字ごとの遅延（12文字・ゆったり）
------------------------------ */
.hero-content h2 span:nth-child(1) img  { animation-delay: 1.5s; }
.hero-content h2 span:nth-child(2) img  { animation-delay: 1.7s; }
.hero-content h2 span:nth-child(3) img  { animation-delay: 1.9s; }
.hero-content h2 span:nth-child(4) img  { animation-delay: 2.1s; }
.hero-content h2 span:nth-child(5) img  { animation-delay: 2.3s; }
.hero-content h2 span:nth-child(6) img  { animation-delay: 2.5s; }
.hero-content h2 span:nth-child(7) img  { animation-delay: 2.8s; } /* 少し間隔広め */
.hero-content h2 span:nth-child(8) img  { animation-delay: 3.0s; }
.hero-content h2 span:nth-child(9) img  { animation-delay: 3.2s; }
.hero-content h2 span:nth-child(10) img { animation-delay: 3.4s; }
.hero-content h2 span:nth-child(11) img { animation-delay: 3.6s; }
.hero-content h2 span:nth-child(12) img { animation-delay: 3.8s; }

/* keyframes */
@keyframes dropH1 {
  0% { transform: translateY(-40px); opacity: 0; }
  60% { transform: translateY(10px); }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes dropH2 {
  0% { transform: translateY(-60px); opacity: 0; }
  60% { transform: translateY(15px); }
  100% { transform: translateY(0); opacity: 1; }
}

/* ------------------------------
   英文コピーフェードイン
------------------------------ */
.hero-content p.eng {
  opacity: 0;
  transform: translateY(40px); /* 20px→40pxに増やしてゆったり感 */
  animation: fadeInSoft 1.5s forwards ease-out; /* 1s→1.5sに変更 */
  animation-delay: 4.2s; /* h2落下後に開始 */
  letter-spacing: 0.1em;
}

@keyframes fadeInSoft {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  50% {
    opacity: 0.5;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------
   SP対応
------------------------------ */
@media (max-width: 768px) {
  .hero-content h1,
  .hero-content h2 {
    gap: 3px;
  }

  .hero-content h2 span img {
    width: 70%; /* SPでも比率維持 */
  }

  .hero-content p.eng {
    font-size: clamp(12px, 4vw, 18px);
    margin-top: 40px;
  }
}



/* -----------------------
      fv下コンテンツ共通 ABOUT〜
--------------------------*/


/* =========================
   ベース構造（PC：横並び）
========================= */
.container {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 378px;
  padding: 100px 0px 100px 0;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}


/* ---------------タブレット用-----------------------
レスポンシブ：画面幅 1024px 以下（W768pxまで）対応で縦並び
------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .container {
    flex-direction: column;
    align-items: center; /* 真ん中寄せ */
    gap: 540px; /* 上下の隙間調整 */
    padding: 60px 35px 40px 35px  !important;
  }
}


/* ---------------スマホ用-----------------------*/
@media screen and (max-width: 430px) {
  .container {
    flex-direction: column;
    align-items: center; /* 真ん中寄せ */
    gap: 320px; /* 上下の隙間調整 */
    padding: 40px 30px  !important;
  }
}




/* 左の ABOUT */
.eng {
  position: relative;
  z-index: 2;
  font-size: 100px;
  font-weight: 700;
  line-height: 1.1;
  color: #3B464D;
  font-weight: lighter;

}

/* 右側の説明 */
.about {
  position: relative;
  top: 65px;
  z-index: 2;
  max-width: 520px;
 
}

.about h3 {
  font-size: 47px;
  line-height: 80px;
  margin: 0;

}

.about p {
  padding-top: 40px;
  font-size: 16px;
  line-height: 1.7;
}


/*========================= */
@media screen and (max-width: 430px) {

  .about h3
  .about p{
    margin: 0px 15px;
}
}






/* =========================
   背景画像（中央固定）
========================= */
.bg-img {
  position: absolute;
  top: 118px;
  left: 0%;
  width: 480px;
  height: 480px;
  background-image: url('../img/about.png');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}



/* =========================
   タブレット（縦並びへ）
========================= */
@media screen and (max-width: 1024px) {

  .container {
    flex-direction: column;
    align-items: center;
    gap: 600px;
    padding: 60px 33px;
  }

  .bg-img {
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    top: 12.5%;
    width: 580px;
    height: 580px;
  }

  .foreword-images img {
    width: 500px;
    height: 500px;
  }
  }


  .eng {
    font-size: 94px;
    text-align: center;
    color: #646F76;
    font-weight: lighter;
    margin-top: -40px;
    letter-spacing: -0.02em;
  }
  @media screen and (max-width: 768px) {
    .eng {
      padding-top: 50px;
    }
  }


  .about h3 {
    font-size: 42px;
    line-height: 1.4;

  }


/* =========================
   スマホ
========================= */
@media screen and (max-width: 430px) {

  .container {
    flex-direction: column;
    align-items: center;
    gap: 240px;
    padding: 40px 35px !important;
  }

  .bg-img {
    top: 8%;
    width: 320px;
    height: 320px;
  }

  .eng {
    font-size: 68px;
    text-align: center;
    padding-top: 20px;

  }

  .about{
    margin: 0 ;
    padding: 30px 24px auto 24px;
  }

  .about h3 {
    font-size: 26px;
    line-height: 1.5;
    padding-left: 50px;
    margin: 0 50px;
    
  }

  .about p {
    font-size: 15px;
    line-height: 1.9;
    padding:  20px 50px 0 50px;
    margin: 0 50px;
  }
}


/* =========================
   アニメーション（テキスト用）
========================= */
@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  50% {
    opacity: 0.5;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   アニメーション（背景用）
========================= */
@keyframes fadeInBg {
  0% {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, 20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
} */





/*-------------------------------
              作品紹介
/*-------------------------------*/

/* =========================
   ベース構造（PC：横並び）
========================= */

.column_container {
  max-width: 1200px;
  text-align: center;
  margin: 0 auto;
  padding-top: 100px;
}

.column_container bg-color{
  opacity: 0;
transform: translateY(40px);
animation: fadeInText 1s forwards ease-out;
animation-delay: 7.0s;
}

.eng_w {
  position: relative;
  z-index: 2;
  font-size: 100px;
  font-weight: 700;
  line-height: 1.1;
  color: #3B464D;
  font-weight: lighter;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInText 1s forwards ease-out;
  animation-delay: 6.6s;
  text-align: center;
  padding-top: 160px;
}

/* =========================
   スマホ
===================
@media screen and (max-width: 430px) {

  .eng_w {
    font-size: 68px;
    text-align: center;
    padding-top: 60px;
  }
}====== */




/* ===== PC ===== */


@media screen and (max-width: 1024px) {
  .foreword{
    padding: 20px 35px 0px 35px !important;
  }

  .foreword-text {
    padding-top: 0px;
    text-align: center;
    margin: 0 auto !important;
}
}

/* =========================
   スマホ
========================= */
@media screen and (max-width: 430px) {
  .foreword{
    padding: 0 35px 0 35px;
  }
}

.foreword-text {

  text-align: center;
  margin: 0 auto !important;
  
}



/* =========================
   スマホ
========================= */
@media screen and (max-width: 430px) {
  .foreword-text {
    padding:  20px;
  }


}

.foreword-text small{
  margin: 50px auto;
}

.foreword-images {

  display: flex;
  gap: 20px;
  align-items:flex-start;* 中身の高さが違っても上揃えにする */
justify-content: center;
max-width: 1200px;  /* コンテンツの最大幅を固定 */
margin: 0 auto;     /* 画面中央に配置 */
width: 100%;        /* 1200px以下の時は横幅いっぱいに */
}


.foreword-item {
  flex: 1; /* 均等幅 */
  display: flex;
  flex-direction: column;
  align-items: center; /* 中身を中央寄せ */
  text-align: center;
}

.foreword-images img {
  width: 380px;
  max-width: 100%;
  height: auto;
 /* margin: 0 auto;*/
 margin-bottom: 15px; /* 画像下の余白 */
}
.foreword-caption {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px; /* テキスト下の余白 */
  text-align: left;
}
.jump {
  display: flex;
  justify-content: center;
}
.foreword-item .jump {
  margin-top: auto; /* テキスト量が違ってもボタンの位置を下揃えにする */
}

.jump .button{
  margin: 0px auto 120px auto;
}


@media screen and (max-width: 430px) {
  .jump .button{
    margin: 0px auto 50px auto;
  }
}







/* ===== SP ===== */
@media screen and (max-width: 768px) {
  .foreword {
    flex-direction: column;
    text-align: center;
    
  }

  .foreword-images {
    flex-direction: column;
    gap: 16px;
   
    align-items: center;
  }

  .foreword-images img {
    width: 100%;
  }
  .foreword-item {
    width: 100%;
    max-width: 380px; /* 画像が大きくなりすぎないよう制限 */
  }

}

@media screen and (max-width: 430px) {
  .foreword {
    padding: 20px 35px 0 35px;
  }
  .foreword img{
    width: 320px;
    height: 320px;
  }
}





.work-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 80px 140px;
  max-width: 1200px;
  margin: 0 auto;
}

/*  Tablet */
@media screen and (max-width: 1024px) {

  .work-container {
    flex-direction: column;
    gap: 40px;
    padding: 40px 33px;
  }
}


/* 画像 */
.work_image {
  width: 420px;
  flex-shrink: 0;
}

/*  Tablet */
@media screen and (max-width: 1024px) {

  .work_image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}




.work_image img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト */

.work_text {
  max-width: 600px;
  margin: 0 140px 0 0;
  flex: 1; /* ←左右の幅を揃える */
}

/*  Tablet */
@media screen and (max-width: 1024px) {
  .work_text {
    max-width: 500px;
    padding: 0;
    margin: 0;
    text-align: left;

  }
}




.work_text h4 {
  font-size: 20px;
  line-height: 80px;
  margin: 0;
}

.work_text p {
  font-size: 16px;
  line-height: 1.7;
}

/* =========================
   交互レイアウト（構造）
========================= */

/* 画像右・テキスト左 */
.work-container.reverse {
  flex-direction: row-reverse;
}

/*  Tablet reverse 無効化 */
@media screen and (max-width: 1024px) {
  .work-container.reverse {
    flex-direction: column;
  }
}


/* =========================
   reverse 時の初期化
   （通常指定の打ち消し）
========================= */

/* 画像：通常時の余白をリセット */
.reverse .work_image {
  margin: 0;
}

/* 画像サイズは共通（念のため明示） */
.reverse .work_image img {
  width: 100%;
}


/* =========================
   テキスト余白（レイアウト用）
========================= */

/* reverse：テキストを画像から離す */
.reverse .work_text {
  margin-right: 0;
  margin-left: 140px;
}

/*  Tablet */
@media screen and (max-width: 1024px) {
  .reverse .work_text {
    margin: 0;
    padding: 0;
  }

}


/* =========================
   バランス微調整
========================= */

/* 通常：画像左・文字右 */
.work-container:not(.reverse) .work_text {
  padding-left: 40px;
}

/* reverse：画像右・文字左 */
.work-container.reverse .work_text {
  padding-right: 60px;
}

/*  Tablet */
@media screen and (max-width: 1024px) {
/* 通常：画像左・文字右 */
.work-container:not(.reverse) .work_text {
  padding-left: 0px;
}

/* reverse：画像右・文字左 */
.work-container.reverse .work_text {
  padding-right: 0px;
}

}



/* =========================
   背景
========================= */

.bg-color {
  background-color: #F7F4F2;
  padding: 0;
  margin:100px 0px;
  border-radius: 40px; /* 好きな丸さに変更 */
}

/* =========================
   スマホ
========================= */
@media screen and (max-width: 430px) {
  .bg-color {
    margin:60px 0px;
  }



}

.message_frame {
  position: relative;
  width: 100%;
  min-height: 60vh;
  overflow: hidden; /* ★重要 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* =========================
   スマホ
========================= */
@media screen and (max-width: 430px) {
  .message_frame {
  min-height: 44vh;
}
}

/* 背景用 */
.message_frame::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url('../img/message_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1);
  transition: transform 0.8s ease;
  z-index: -1;
}

/*@media screen and (max-width: 430px) {

}*/


/* ホバー時 */
.message_frame:hover::before {
  transform: scale(1.08);
}
.message_frame:hover::before {
  transform: scale(1.08);
  filter: brightness(0.95); /* ちょい暗くする */
}

.eng_b {
  position: relative;
  z-index: 2;
  font-size: 100px;
  font-weight: 700;
  line-height: 1.1;
  color: #646F76;
  font-weight: lighter;

  text-align: center;
  padding-top: 120px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

/* =========================
   スマホ
========================= */
@media screen and (max-width: 430px) {

  .eng_b {
    font-size: 68px;
    text-align: center;
    padding-top: 50px;
    margin-bottom: 0px;
  }
}


.eng_w {
  position: relative;
  z-index: 2;
  font-size: 100px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  font-weight: lighter;
  text-align: center;
  padding: 0;
}

.foreword-text_w {
 /* padding-top: 35px;*/
 font-weight: 600;
  margin: 0 auto;
  color: #fff;
  letter-spacing: 0.05em;
  font-size: 34px;
  text-align: left;

  
}


/* =========================
   スマホ
========================= */
@media screen and (max-width: 430px) {
  .foreword-text_w {
    padding: 20px 10px;
    font-size: 26px;
    letter-spacing: -0.05em;
  }
}


/* =========================
   スマホ
========================= */
@media screen and (max-width: 430px) {

  .eng_w {
    font-size: 68px;
    text-align: center;
  }
}
