@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: 60px;
  max-width: 800px;
  padding-bottom: 30px;
}

/* メニューここから */
.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;
}

.header-container p{
  margin-top: 1rem;
}

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

.work-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;
}

.circle-link {
  background-color: #ffb700;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.3s;
}

/* ===== スマホ・タブレット（〜768px）だけ変更 ===== */
@media (max-width: 1024px) {

  /* ヘッダーを右上固定 */
  .site-header {
    position: absolute;
    top: 1rem;
    left: 0;
    width: 100%;
    /* 右だけでなく左右どちらにも余白を与える */
    padding-inline: clamp(12px, 3vw, 24px);
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
    /* iPhoneのノッチ/セーフエリア対応（ある場合のみ効く） */
    padding-left: max(clamp(12px, 3vw, 24px), env(safe-area-inset-left));
    padding-right: max(clamp(12px, 3vw, 24px), env(safe-area-inset-right));
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;           /* 右寄せのまま */
    gap: clamp(10px, 2.5vw, 18px);       /* JPと☰の間隔も可変で少し広げる */
  }

  .header-container p {
    margin: 0;
  }

  /* ワークセクション全体に上余白（ヘッダー分） */
  .work-section {
    padding-top: 6rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* カードを中央寄せ */
  .work-content {
    flex-direction: column;   /* 縦並びにして */
    align-items: center;      /* 中央寄せ */
    text-align: center;       /* 中央テキスト揃え（必要なら） */
  }

  /* h1 は左寄せのまま */
  .text-block h1 {
    text-align: left;
    width: 100%;
    margin-bottom: 1rem;
  }

  /* カードの幅を画面に合わせて縮小 */
  .card {
    width: min(530px, 94vw);
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 3rem;      /* お好みで1.8〜2.2remくらい */
    line-height: 1.2;     /* 行間を少し詰める */
    margin-top: 1.5rem;   /* 上の余白も少し広めに確保 */
  }

  .work-section {
    padding: 2rem 1rem; /* 上下2rem、左右1remの余白 */
  }

  .work-content {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;          /* 画面幅に合わせる */
    max-width: 320px;     /* スマホでの最大幅を制限 */
  }

  .site-header {
    top: 0.5rem;
    /* スマホは少し多めに */
    padding-inline: max(14px, env(safe-area-inset-left), env(safe-area-inset-right));
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .header-container { gap: 0.9rem; }


  .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でも安定 */
}
