@charset "utf-8";


/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* About me */
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* About me (既存のスタイル) */
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
.about-me {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  font-size: 18px;
}

.about-me-text {
  width: 50%;
}

.about-me-img {
  width: 50%;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* アニメーション用・枠線追加のスタイル */
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */

/* 画像を囲むラッパーの設定 */
.img-wrapper {
  position: relative;
  width: 450px;
  /* 画像と同じ幅にする */
  margin: 0 auto;
}

/* --- 初期状態のセットアップ --- */

/* 1. 写真：下から上へ上がる準備 */
.img-wrapper img {
  display: block;
  width: 450px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  /* 枠線より前面に表示 */

  /* 透明にして、少し下に配置しておく */
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

/* 2. 四角い枠線：#333の線を ::before で作成 */
.img-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid #333;
  /* 線の太さはお好みで変更してください */
  box-sizing: border-box;
  z-index: 1;
  /* 画像の背面に表示 */

  /* 透明にして、画像とピッタリ重なる位置に配置しておく */
  opacity: 0;
  transform: translate(0, 0);
  transition: all 0.6s ease-out;
}

/* 3. 右側のテキスト：左にずらしておく（右へスライドさせるため） */
.about-me-text {
  opacity: 0;
  transform: translateX(-40px);
  /* -40px左に配置 */
  transition: all 0.6s ease-out;
}


/* --- .is-active が付与された時の動き（発火時） --- */

/* 1. 写真が上から上がってくる（定位置の 0 へ） */
.about-me.is-active .img-wrapper img {
  opacity: 1;
  transform: translateY(0);
}

/* 2. 枠線が遅れて、左斜め上に出てくる */
.about-me.is-active .img-wrapper::before {
  opacity: 1;
  /* -20px ずつ左上にずらす（距離はお好みで調整してください） */
  transform: translate(-20px, -20px);
  transition-delay: 0.5s;
  /* 写真のアニメーションの後に発動 */
}

/* 3. 最後に右側のテキストが右にスライドするように出てくる */
.about-me.is-active .about-me-text {
  opacity: 1;
  transform: translateX(0);
  /* 定位置へ戻る＝右へスライドする */
  transition-delay: 1.0s;
  /* 枠線の後に発動 */
}

.about-me-text h3 {
  font-size: 24px;
  text-align: left;
  margin-bottom: 10px;

}

.about-me-name {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.5em;
  margin-bottom: 20px;
}

.about-me-text-p {
  line-height: 3.7rem;
}

.about-me-text .button {
  text-align: left;
}


/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* 強み */
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* --- レイアウトのコンテナ --- */
.three-column-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* --- 各カラム --- */
.column-item {
  flex: 1;
  min-width: 280px;
  /* 画像が大きくなったので少し広げました */
  text-align: center;
  /* box-shadow: ... を削除しました */
  /* background: #fff; もお好みで削除してもOKです */
  opacity: 0;
  transform: translateY(40px);
  /* 40px下に下げておく */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* アニメーションが発動した時の状態 */
.column-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 順番に時間をずらして表示させる（ディレイの設定） */
.column-item:nth-child(1) {
  transition-delay: 0.2s;
}

.column-item:nth-child(2) {
  transition-delay: 0.4s;
}

.column-item:nth-child(3) {
  transition-delay: 0.6s;
}

/* --- 丸い画像部分 --- */
.circle-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid #000;
  margin: 0 auto 20px auto;

  /* 中央配置のための3点セット */
  display: flex;
  justify-content: center;
  /* 左右中央 */
  align-items: center;
  /* 上下中央 */

  overflow: hidden;
  /* 万が一画像がはみ出ても丸くカットする */
}

.circle-image img {
  width: 50%;
  height: auto;

  /* 【ここがポイント】 */
  display: block;
  /* 画像の下にできる謎の隙間を消す */
  margin: 0;
  /* 意図しないマージンをリセットする */
  padding: 0;
  /* パディングもリセット */
}

/* 例：一番左のアイテムだけ個別に調整する場合 */
.column-item:nth-child(1) img {
  transform: translateX(4px);
  /* 右に4px動かす */
}

/* 例：一番右のアイテムが少し上に寄って見える場合 */
.column-item:nth-child(3) img {
  transform: translateY(2px);
  /* 下に2px動かす */
}

/* --- テキスト部分 --- */
.column-item h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
  text-align: center;
}

.column-item p {
  color: #666;
  font-size: 18px;
}

/* --- スマホ向け調整 --- */
@media (max-width: 768px) {
  .three-column-container {
    flex-direction: column;
    gap: 30px;
  }
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* スキル */
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* 2カラムレイアウトの基本設定 */
.skills-container {
  display: flex;
  gap: 80px;
  align-items: baseline;
}

/* 左カラム（タイトル） */
.skills-left {
  flex: 0 0 250px;
  /* 幅を150pxで固定 */
  position: sticky;
  /* スクロール時にタイトルを固定したい場合 */
  top: 20px;
}

/* 右カラム（コンテンツ） */
.skills-right {
  flex: 1;
  /* 残りの幅をすべて使う */
  padding-top: 42px;
  padding-left: 40px;
  /* 縦線とテキストの間の余白 */
}

/* セクション共通設定 */
.section {
  margin-bottom: 80px;
}

.section h2 {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 25px 0;
}

/* 基本設定 */
:root {
  --color-text-main: #333333;
  /* 主なテキスト色 */
  --color-text-white: #ffffff;
  /* 白文字色 */
  --color-border-gray: #cccccc;
  /* 薄いグレーの枠線 */
  --color-bg-blue: #4cb4f0;
}

/* リストのレイアウト (Flexbox) */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  /* 画面幅に応じて折り返し */
  gap: 46px;
  /* アイテム間の間隔 */
}

/* 円形アイテムの共通スタイル */
.skill-item {
  width: 110px;
  /* 円の直径 */
  height: 110px;
  border-radius: 50%;
  /* 円形にする */
  display: flex;
  justify-content: center;
  /* 水平中央寄せ */
  align-items: center;
  /* 垂直中央寄せ */
  text-align: center;
  font-size: 14px;
  box-sizing: border-box;
  /* 枠線を含めたサイズ計算 */
  padding: 5px;
  /* テキストが端により過ぎないように */
}

/* ツール（白い円）のスタイル */
.skill-item.tools {
  background-color: #fff;
  border: 1px solid var(--color-border-gray);
  color: var(--color-text-main);
}

/* 言語（グレーの円）のスタイル */
.skill-item.languages {

  background-color: var(--color-bg-blue);
  color: var(--color-text-white);
  border: 1px solid var(--color-bg-blue);
}

/* 資格セクションのテキスト */
.certifications-text {
  font-size: 16px;
  margin: 0;
  font-family: "Zen Kaku Gothic New";

}


/* レスポンシブ対応：スマホでは縦並びに戻す */
@media (max-width: 768px) {
  .skills-container {
    flex-direction: column;
    gap: 20px;
  }

  .skills-right {
    border-left: none;
    border-top: 1px solid var(--color-border-gray);
    /* スマホでは上に線を引くとかっこいいです */
    padding-left: 0;
    padding-top: 20px;
  }

  .skills-left {
    flex: none;
    width: 100%;
  }
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* 経歴 */
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */

.career-container {
  display: flex;
  gap: 80px;
  align-items: baseline;

}

/* --- 2カラムレイアウト設定 --- */
.career-section {
  width: 100%;
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  display: flex;
  /* Flexboxを適用 */
  gap: 80px;
  /* 左右の間隔 */
  align-items: flex-start;
}

.career-left {
  flex: 0 0 250px;
  /* 幅を150pxで固定 */
  position: sticky;
  /* スクロール時にタイトルを固定したい場合 */
  top: 20px;
}

.career-right {
  flex: 1;
  padding-left: 40px;
  /* 左側の縦線（Skillsと合わせる） */
  padding-top: 42px;
}

/* --- タイムライン（右側）の調整 --- */
.timeline {
  padding-left: 0;
  /* 全体のパディングをリセット */
}

/* 垂直線は左カラムのborder-leftで代用するため、既存の線は削除 */
.timeline::before {
  display: none;
}

/* 各経歴アイテム */
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  /* 下線までの余白 */
  padding-bottom: 30px;
  /* 下線までの余白 */
  border-bottom: 1px solid #eee;
  /* ★ここが下線 */
  display: flex;
  align-items: flex-start;
}

/* 最後のアイテムは下線を消す場合 */
.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}


/* テキストエリアの調整 */
.content {
  padding-left: 0;
}

.year {
  font-weight: bold;
  font-size: 1.8rem;
  color: #333;
  display: block;
  margin-bottom: 10px;
}

h4 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 24px;
  color: #333;
  line-height: 2.5em;
  margin: 0;
  font-weight: bold;
  /* --- ここから追加 --- */
  text-align: justify;
  /* 文字を左右いっぱいに広げて端を揃える */
  text-justify: inter-character;
  /* 日本語の文字間を調整して端を揃える */
  word-break: break-all;
  /* 長い英単語などが来ても強制的に端で改行する */
}

.career-text {
  font-size: 16px;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* レスポンシブ対応 (スマホ向け max-width: 800px) */
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
@media (max-width: 800px) {

  /* --- 1. 共通設定：コンテナの余白調整 --- */
  .container {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .section {
    margin-bottom: 40px;
  }

  /* --- 2. Profile (私について) --- */
  .about-me {
    flex-direction: column;
    /* 縦並びにする */
    gap: 0;
    text-align: center;
  }

  .about-me-img,
  .about-me-text {
    width: 100%;
    /* 横幅いっぱい */
  }

  /* 写真の固定幅(450px)を解除 */
  .img-wrapper {
    width: 100%;
    max-width: 320px;
    /* スマホでちょうど良いサイズに制限 */
    margin: 0 auto;
  }

  .img-wrapper img,
  .img-wrapper::before {
    width: 100%;
    height: 100%;
  }

  /* 枠線のアニメーション位置を微調整 */
  .about-me.is-active .img-wrapper::before {
    transform: translate(-10px, -10px);
    /* スマホでは少し控えめなズレにする */
  }

  .about-me-name {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
  }

  .about-me-text-p {
    line-height: 2;
    /* 3.7remは大きすぎるのでスマホ用に調整 */
    text-align: left;
    /* 本文は左揃えが読みやすい */
  }

  .about-me-text h3 {
    margin-top: 20px;
    text-align: center;
    /* 英語名は中央に */
    line-height: 2;
    margin-bottom: 0;
  }

  /* --- 3. Strengths (強み) --- */
  .three-column-container {
    flex-direction: column;
    gap: 50px;
  }

  .column-item {
    min-width: 100%;
    transform: translateY(20px);
    /* 移動距離を少し抑える */
  }

  .column-item p {
    font-size: 15px;
    text-align: left;
    /* スマホでは左揃えが読みやすい */
  }

  /* --- 4. Skills (スキル) --- */
  .skills-container {
    flex-direction: column;
    /* 縦並びにする */
    gap: 0;
  }

  .skills-left {
    width: 100%;
    position: static;
    /* スクロール固定を解除 */
    margin-bottom: 20px;
  }

  .skills-right {
    width: 100%;
    padding-left: 0;
    /* 左の余白を消す */
    padding-top: 20px;
    border-top: 1px solid #eee;
    /* タイトルとの区切り線 */
  }

  .skills-list {
    justify-content: center;
    /* アイコンを中央に寄せる */
    gap: 15px;
  }

  .skill-item {
    width: 90px;
    /* スマホ用に少し小さく */
    height: 90px;
    font-size: 12px;
  }








  .certifications-text {
    font-size: 3.6vw;
    margin-bottom: 2.5rem;
  }

  /* --- 5. Career (経歴) --- */
  .career-section,
  .career-container {
    flex-direction: column;
    /* 縦並びにする */
    gap: 0;
    margin: 40px auto;
  }

  .career-left {
    flex: 0;
    width: 100%;
    position: static;
  }

  .career-right {
    width: 100%;
    padding-left: 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }

  .year {
    font-size: 1.4rem;
  }

  h4 {
    font-size: 18px;
    /* 見出しをスマホサイズに */
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .career-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .timeline-item {
    padding-bottom: 25px;
    margin-bottom: 25px;
  }
}