@font-face {
  font-family: "Telegraf";
  src: url("./fonts/TelegrafRegular_272984568a25d8528fe2de8b20b29011.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: Arial, telegraf;
  background-color: #f8f9f9;
  color: #000;
}

h1 {
  font-family: "Telegraf", sans-serif;
  font-weight: normal;
  font-size: 5rem;
  margin-top: 80px;
  max-width: 800px;
}

/* メニューここから */
.menu_btn {
	position: relative;
  width: 34px;
  height: 14px;
  cursor: pointer;
}

.menu_btn span {
	display: inline-block;
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: #222;
	transition: all .0.4s ease;
}

.close_btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.menu_btn span:nth-of-type(1),
.hamburger__line:nth-of-type(1) {
  top: 0;
}

.menu_btn span:nth-of-type(2),
.hamburger__line:nth-of-type(2) {
  bottom: 0;
} 


/* 初期状態（非表示） */
.nav {
  display: none;
}

/* 開いた状態 */
.nav.active {
  display: block;
}

.hamburger__line:nth-of-type(1) {
  top: 0;
}

.hamburger__line:nth-of-type(2) {
  bottom: 0;
}

.menu_btn.active span:nth-of-type(1),
.menu_btn.active .hamburger__line:nth-of-type(1) {
  transform: translateY(7px) rotate(40deg);
}
.menu_btn.active span:nth-of-type(2),
.menu_btn.active .hamburger__line:nth-of-type(2) {
  transform: translateY(-6px) rotate(-40deg);
}


.nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 4px rgba(0,0,0,.1);
  transform: translateX(100%); /* 初期は右に隠す */
  transition: transform 0.4s ease;
  z-index: 1000;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.nav.active {
  transform: translateX(0);
}

.nav__list {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
}

.nav__item {
  margin-bottom: 2rem;
}

.nav__link {
  text-decoration: none;
  color: #222;
  font-size: 1.5rem;
}

.nav {
  transform: translateX(-100%);
  transition: transform .4s;
}

.menu_btn span,
.hamburger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;         /* 線の太さ */
  background: #222;
  transition: transform .35s ease;
}
/* メニューここまで */

.site-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding-right: 4rem;
}

.header-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 15px;
}

.header-container a{
  text-decoration: none;
  color: #222;
}

.about-section {
  background-color: #f8f9f9;
  padding: 4rem;
  font-family: "Telegraf", sans-serif;
  color: #000;
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

.left-column {
  flex: 1 1 500px;
  max-width: 600px;
}

.right-column {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.text-block {
  flex: 1 1 500px;
  max-width: 600px;
}

.text-block h1 {
  font-size: 4rem;
  font-weight: normal;
  margin-bottom: 1rem;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.resume-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  background-color: #B9B2A9;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #000;
}

.job-title {
  font-size: 1.5rem;
}

hr {
  border: none;
  border-top: 1px solid #000;
  margin: 1rem 0;
}

.catch-copy {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-weight: normal;
}

.bio {
  font-size: 1.1rem;
  line-height: 1.6;
  width: 100%;             /* 親の幅に合わせる */
  max-width: 600px;        /* 横線と同じ幅に制限 */
  text-align: justify;     /* 両端揃え */
  text-justify: inter-word;/* 単語間で調整（英語の場合） */
}

.photo-block {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 30px;  
}

.photo-frame {
  position: relative;
  width: max-content;
  margin-top: 120px;
  
}

.photo-frame::before {
  content: "";
  position: absolute;
  top: 30px;       /* 写真より少し下 */
  left: 30px;      /* 写真より少し右 */
  width: 100%;
  height: 100%;
  background-color: #f54b16;
  z-index: 0;      /* 背景として後ろに */
  border-radius: 10px;
}

.photo-frame img {
  display: block;
  max-width: 250px;
  height: auto;
  position: relative;
  z-index: 1; 
  border-radius: 10px;
}

.social-links {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  margin-left: 100px;
}

.social-links a {
 display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #B9B2A9;
  text-decoration: none;
}

.social-links i {
  width: 50px;
  height: 50px;
  vertical-align: middle;
}   

/* ===== 余白・中央寄せ（共通の呼吸感UP） ===== */
.about-section {
  /* 画面に応じて上下左右のパディングを少し広げる */
  padding: clamp(2rem, 4vw + 1rem, 5rem) clamp(1rem, 4vw, 3rem);
}

/* 本文の行幅を少し絞って読みやすく（共通） */
.bio {
  max-width: 38rem;   /* 約608px */
  margin: 0 auto;
}

/* タブレット対応（481px〜1024px） */
@media (min-width: 481px) and (max-width: 1024px) {

  .about-content {
  gap: 1rem;
  max-width: 1024px;
  padding: 2rem;
  }

  .site-header {
    padding: 1.2rem 1.2rem 10px 0; /* 上/右/下/左 */
    box-sizing: border-box;
  }
}

/* スマホ（〜480px） */
@media (max-width: 480px) {
  .about-section {
    /* 上 6rem / 左右 2rem / 下 3rem */
    padding: 6rem 2rem 3rem;
  }

  /* 1) ヘッダーを右寄せ（Home と同じ感じに） */
  .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 1.2rem 10px 0; /* 上/右/下/左 */
    box-sizing: border-box;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;  /* ← 右寄せの決め手 */
    gap: 1rem;                  /* JP と ☰ の間隔 */
  }
  .header-container a {
    margin: 0;                  /* 余計な余白を消す */
  }

  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 100%;
  }

  .left-column,
  .right-column,
  .text-block {
    max-width: 40rem;
    width: 100%;
  }

  /* 見出しと文章のサイズ調整 */
  .text-block h1 {
    font-size: 2rem;
    text-align: center;
    margin: 0.5rem 0 1rem; /* 上は控えめ、下だけ余白 */
  }

  .catch-copy { text-align: center; }
  .bio {
    font-size: 1rem;
    line-height: 1.7;
    width: 100%;
    max-width: 32rem;           /* 文章の横幅を少し絞ると読みやすい */
    margin: 0 auto;
  }

  /* 写真まわりを中央に。左右のズレを打ち消す */
  .photo-block {
    margin-left: 0;             /* ← 既存の left を打ち消し */
    justify-content: center;
  }
  .photo-frame {
    margin-top: 1.5rem;         /* スマホで余白控えめ */
    margin-bottom: 1.5rem; /* 下も少し余白 */
  }
  .photo-frame img {
    max-width: 220px;           /* 画像も少し小さめに */
  }

  .left-column,
  .right-column,
  .text-block { width: 100%; max-width: 40rem; }

  /* 3) 名前＆レジュメを真ん中に */
  .text-block h1 {
    font-size: 2.2rem;
    text-align: center;
    margin: 0.75rem 0 1rem;
  }
  .label-row {
    justify-content: center;    /* ← 中央寄せの決め手 */
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }
  .resume-btn { font-size: 0.95rem; }

  .social-links {
    display: flex;
    justify-content: center;  /* 横方向中央寄せ */
    align-items: center;      /* 縦方向の中央揃え（高さある場合） */
    margin: 1.5rem auto 0;    /* 上マージンを少し空けて左右はauto */
    gap: 1rem;                /* アイコン間の間隔 */
    width: 100%;              /* 幅いっぱいにして中央寄せ可能に */
  }

  .nav {
    position: fixed;
    inset: 0;                  /* top:0; right:0; bottom:0; left:0; の短縮 */
    width: 100vw;
    height: 100dvh;            /* 100vhより安定 */
    background: #fff;
    z-index: 1000;
    padding: 4rem 2rem 2rem;   /* 上:余裕（閉じるボタン分） */
    box-sizing: border-box;

    transform: translateX(100%);    /* 右からスライドイン */
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;

    display: block;                 /* display:noneにしない */
  }

   .nav.active {
    transform: translateX(0);
    opacity: 1;
  }

  /* メニュー項目を画面中央に縦並び配置 */
  .nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* 縦方向センター */
    align-items: center;       /* 横方向センター */
    gap: 2rem;
  }

  .nav__link {
    font-size: 1.6rem;         /* タップしやすく */
    text-decoration: none;
    color: #222;
  }

  /* 閉じる（X）ボタンを右上に固定・タップしやすく */
  .close_btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 24px;
    z-index: 1100;
  }
  .close_btn .hamburger__line:nth-of-type(1) { top: 0; }
  .close_btn .hamburger__line:nth-of-type(2) { bottom: 0; }
  .close_btn.active .hamburger__line:nth-of-type(1) {
    transform: translateY(12px) rotate(45deg);
  }
  .close_btn.active .hamburger__line:nth-of-type(2) {
    transform: translateY(-12px) rotate(-45deg);
  }
}

/* スクロール固定用（モバイル） */
.no-scroll {
  overflow: hidden;
  height: 100dvh; /* iOSでも安定 */
}
