@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;
  display: flex;
}

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

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

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100vh;
  padding: 4rem;
  box-sizing: border-box;
  gap: 1rem; /* ここで縦の間隔を調整 */
}

.circle-links {
  position: absolute;
  right: 6rem;
  bottom: 6rem;
  display: flex;
  gap: 4rem;
}

.circle {
  position: relative;
  width: 226px;
  height: 226px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  font-family: "Telegraf", sans-serif;
  font-weight: lighter;
  background-color: inherit;
}

.blur-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
   rgba(255, 255, 255, 0.8) 0%,
  rgba(255, 255, 255, 0) 90%
);
filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.circle-text {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 1rem;
}


.about {
  background-color: #f54b16; 
}


.work {
  background-color: #ffb700; 
}

.contact {
  background-color: #00aaf0; 
}

.circle:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

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

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

/* タブレット対応（481px〜1024px） */
@media (min-width: 481px) and (max-width: 1024px) {
  .circle-links {
    position: static;         /* 絶対配置を解除 */
    right: auto;
    bottom: auto;
    display: flex;
    flex-direction: row;      /* 横並び */
    justify-content: center;  /* 横方向の中央寄せ */
    align-items: center;      /* 縦方向も中央に */
    gap: 2rem;                 /* 円同士の間隔 */
    width: 100%;
    margin: 2rem auto;
  }

  .circle {
    width: 180px;
    height: 180px;
  }

  .circle-text {
    font-size: 1rem;
  }
}

/* スマホ（480px以下） */
@media (max-width: 480px) {
  /* 見出しの左余白を消して中央寄せ */
  h1 {
    font-size: 2rem;
    padding-left: 0;
    text-align: center;
  }

  /* ヒーローの中身を中央寄せ */
  .hero {
    padding: 2rem 1rem;
    align-items: center;     /* ← これで内側コンテンツを中央に */
    width: 100%;
  }

  /* 円リンクの位置指定をリセットして中央に縦並び */
  .circle-links {
    position: static;        /* ← absoluteを無効化 */
    right: auto;             /* 念のためリセット */
    bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: center;     /* 横方向の中央寄せ */
    justify-content: center; /* 縦方向の並びも中央に */
    gap: 1.5rem;
    width: 100%;
    margin: 1.5rem 0 0;
    text-align: center; 
    padding-bottom: 2rem;     /* テキストも中央に */
  }

  /* 個々の円も中央に配置（保険） */
  .circle {
    margin: 0 auto;
    width: 150px;
    height: 150px;
  }

  .circle-text {
    font-size: 0.9rem;
  }

   /* ヘッダー全体の位置調整 */
  .site-header {
    top: 0.5rem;                  /* 上マージン少し減らす */
    left: auto;                  /* 右固定解除 */
    right: 0.5rem;                 /* 左に寄せる */
    padding-right: 10px;             /* 右パディング削除 */
  }

  /* ヘッダー内のJPとメニューの間隔調整 */
  .header-container {
    gap: 1.5rem;                    /* 間隔を少し狭める */
  }

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

