@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%;
}

}
.eng {
  position: relative;
  z-index: 2;
  font-size: 100px;
  font-weight: 700;
  line-height: 1.1;
  color: #3B464D;
  font-weight: lighter;
  margin: 40px 0;
}
/* =========================
   スマホ
========================= */
@media screen and (max-width: 430px) {

  .eng{
    font-size: 65px;
    margin-bottom: 20px ;
    margin-top: 0px;
  }
}

.eng-skill {
  position: relative;
  z-index: 2;
  font-size: 100px;
  font-weight: 700;
  line-height: 1.1;
  color: #3B464D;
  font-weight: lighter;
  margin: 0 auto 40px auto;
  text-align: center;
}
/* =========================
   スマホ
========================= */
@media screen and (max-width: 430px) {
.eng-skill {
  font-size:65px;
  margin-bottom: 20px;
}
}

/* ------------------------------
    HERO セクション（全端末で崩れない版）
------------------------------ */

.about-section{
  margin: 200px auto 140px auto;
}

@media screen and (max-width: 768px) {
  .about-section{ 
    margin: 140px 60px;
  }
  }


@media screen and (max-width: 430px) {
  .about-section{ 
    margin: 180px 35px 80px 35px;
  }
  }


/* ==========================================
   1. 共通設定（土台）
   ========================================== */
   .container {
    display: grid;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
  }
  
  /* ==========================================
     2. セクションごとの個別レイアウト
     ========================================== */
  
  /* Aboutセクション：左を少し広く */
  .about-section .container {
    grid-template-columns: 1.2fr 1fr;
  }
  
  /* Philosophyセクション：半分ずつ ＆ 上下中央揃え */
  .philosophy-section .container {
    grid-template-columns: 1fr 1fr;
    align-items: center; 
  }
  
  /* ==========================================
     3. レスポンシブ：タブレット（768px以下）
     ========================================== */
  @media screen and (max-width: 768px) {
    /* 2カラムは維持するが、文字の突き抜けを防止する */
    .catchphrase {
      white-space: normal; /* 画像が消えるのを防 */
    }
  
    /* 画像のハミ出し調整（画面外に飛ばない程度に） */
    .img-lower {
      margin-right: -10px;
      width: 105%;
    }
  }
  
  /* ==========================================
     4. レスポンシブ：スマホ（430px以下）
     ========================================== */
  @media screen and (max-width: 430px) {
    /* ここで初めて縦並びにする */
    .about-section .container,
    .philosophy-section .container {
      grid-template-columns: 1fr !important;
      gap: 40px;
      padding: 0;
    }
  
    .img-lower {
      margin-right: 0;
      width: 100% !important;
    }
  }

.catchphrase{
  font-size: 42px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
  .catchphrase{
    font-size: 38px;
  }
  }
  @media screen and (max-width: 430px) {
    .catchphrase{
      font-size: 34px;
      line-height: 1.7;
    }
  }

.image-content {
  display: flex;
  flex-direction: column;
  gap: 60px; /* 上下の画像の間隔 */
  position: relative;
}

@media screen and (max-width: 430px) {
  .image-content {
    gap: 40px; /* 上下の画像の間隔 */
  }
}




.img-upper {
  align-self: flex-start;
  width: 100%;
  max-width: 700px;
}
@media (max-width: 768px) {

.img-upper {
  align-self: flex-start;
  width: 100%;
  max-width: 400px;
   margin: 180px auto auto 0px;
    }
  }
  @media screen and (max-width: 430px) {
    .img-upper {
       margin: 0 auto 0 -2%;
        }
      }

.img-lower {
  align-self: flex-end;
  width: 110%; /* ガイドラインからはみ出す演出 */
  max-width: 450px;
  margin-right: -10%; /* 右側に少し突き出す */
  z-index: 1;
}
@media screen and (max-width: 430px) {
  .img-lower {
    margin-right: -2%;
  }
}

/*skill*/
/* =================================
   大きな背景（角丸のボックス）
================================= */
.skill-section {
  background-color: #f4f7f9; /* ほわっとした薄いグレー（画像に合わせました） */
  border-radius: 40px;       /* 大きめの角丸 */
  padding: 80px 40px  ;        /* 上下の余白を贅沢に */
  max-width: 1000px;         /* 中身が詰まりすぎない幅 */
  margin: 0 auto;
  border: 1px solid #e0e6ed; /* ほんの少しだけ枠線 */
}

.tab-wrap {
  max-width: 800px;
  margin: 0 auto;
}

/* radio非表示 */
.tab-wrap input {
  display: none;
}

/* =================================
   タブボタン（デザイン調整）
================================= */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.tab-buttons label {
  width: 200px;
  text-align: center;
  padding: 20px 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Cormorant"; /* 見出しに合わせたセリフ体 */
  font-size: 22px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  
  background: #fff;
  color: #999;
  /*border: 1px solid #ddd;*/
}

/* active時のデザイン */
#tab-design:checked ~ .tab-buttons label[for="tab-design"],
#tab-front:checked ~ .tab-buttons label[for="tab-front"] {
  background: #e0e0e0; /* 押された感のあるグレー */
  color: #333;
  /*border: 1px solid #bbb;*/
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); /* 少し凹んだ感じ */
}

/* =================================
   コンテンツ切替
================================= */
.tab-contents .content {
  display: none;
  animation: fadeIn 0.5s ease; /* 切り替え時にふわっと出す */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#tab-design:checked ~ .tab-contents .design,
#tab-front:checked ~ .tab-contents .front {
  display: block;
}

/* =================================
   画像グリッド（カードの並び）
================================= */
.img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px; /* カード同士の余白 */
}

.img-grid img {
  width: 100%;
  height: auto;
  display: block;
  /* 画像そのものに影をつけたくない場合は、
     画像を作るときに「背景白＋角丸」のカード形式で書き出すのが一番綺麗です */
}


@media screen and (max-width: 768px) {
  .img-grid img {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }
}


/* スマホ対応 */
@media screen and (max-width: 768px) {
  .skill-section {
    border-radius: 40px;
    padding: 5s0px;
    margin: 100px;
  }
  .img-grid {
    grid-template-columns: 1fr; /* スマホは1列 */
    gap: 20px;
  }
  .tab-buttons label {
    width: 100%;
    font-size: 16px;
  }
}
@media screen and (max-width: 430px) {
.skill-section {
  padding: 40px 30px;
  margin: 38px;
}
}




/*philosophy*/
.philosophy-section {
  padding: 80px 0; /* セクション間の余白 */
  margin-bottom: 80px;
  margin-top: 60px;
}

@media screen and (max-width: 768px) {
.philosophy-section {
margin: 80px 60px;
padding: 0px;
}
}

/* Philosophy専用の調整 */
.philosophy-section .image-content {
  display: flex;
  justify-content: flex-end; /* 画像を右側に寄せる */
}

.philosophy-section .img-upper {
  width: 100%;
  max-width: 480px; /* デザイン上の画像の最大サイズ */
  height: auto;
}


@media screen and (max-width: 430px) {
  .philosophy-section .img-upper {
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
  }
}

.catchphrase {
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 30px;
  white-space: nowrap;
}

/* ==========================================
   5. iPhone SE / 375px以下の微調整
   ========================================== */
   @media screen and (max-width: 375px) {
    /* セクション全体の左右の余白を少し削って、内側のスペースを確保する */
    .about-section {
      margin: 180px 35px 80px 35px;
    }
    .philosophy-section {
      margin: 80px 35px 80px 35px;
    }
  
    /* 文字サイズが大きすぎてはみ出している場合、少しだけ小さくする */
    .catchphrase {
      font-size: 28px ; 
      line-height: 1.7;
    }
  
    /* 画像が左右にズレる場合、中央配置を徹底する */
    .img-upper, .img-lower {
      width: 100%;
      transform: none ;
    }
  
    /* Aboutの英語見出しも少し小さくして収まりを良くする */
    .eng {
      font-size: 56px;
    }

      .philosophy-section .img-upper {
        margin: 0 auto;
        max-width: 300px;
        width: 100%;
      }

   }
  