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

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: 2rem;
  right: 1rem;
  padding-right: 4rem;
}

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

.header-container a {
  margin: 0;
  line-height: 1; /* テキストの余白をなくす */
  text-decoration: none;
  color: #222;
}

.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: 500px;
}

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

/* iOSやSafari特有の角丸や影を消す */
input, textarea {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  box-shadow: none;
  background-clip: padding-box;
}

.underline-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #000; /* 下線 */
  background-color: transparent;
  outline: none;
  padding: 12px 0; /* 上下余白 */
}

.hidden { 
  display:none; 
}

h2 {
    margin-top: 20px;
    color: #00aaf0;
}

form div  {
    text-align: center;
    margin-top: 20px;
}

.info-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
}

.info-block h2 {
    margin-top: 80px;
    font-size: 3rem;
}

.info-block p{
    margin: 0;
    font-size: 2rem;
}

.submit-btn {
    background-color: #f8f9f9;
    border: 1px solid #00aaf0;
    color: #00aaf0;
    padding: 5px 20px;
    border-radius: 10px;
}

/* ===== タブレット・スマホ（〜1024px） ===== */
@media (max-width: 1024px) {
  /* ヘッダー（右上固定＋余白） */
  .site-header {
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 100%;
    padding-inline: 1.25rem;   /* ← 左右の内側余白を統一 */
    padding-top: 1.5rem;
    padding-right: 2rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
  }
  .header-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
  }
  .header-container a { margin: 0; }

  /* セクション上部にヘッダー分の余白を確保 */
  .work-section {
    padding: 6rem 1rem 3rem;   /* 上:ヘッダー分＋余白 / 左右 / 下 */
  }

  /* 左右カラム → 縦並び（左→右の順）＆中央寄せ */
  .work-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    max-width: 100%;
  }

  /* 幅固定を避け、画面幅に追従 */
  .left-column,
  .right-column {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  /* フォームのはみ出し防止 */
  form { width: 100%; max-width: 640px; margin: 0 auto; }
  .underline-input { width: 100%; box-sizing: border-box; }

  /* 見出し類 少し抑える */
  h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); margin: 0.5rem 0 1rem; }
  .info-block h2 { font-size: clamp(1.4rem, 3.4vw, 2.2rem); }
  .info-block p  { font-size: clamp(1rem, 2.6vw, 1.25rem); }

  /* ===== Location と Mail を横並び ===== */
 .info-block {
    display: flex;
    flex-direction: row;      /* 横並びにする */
    justify-content: center;  /* 画面中央に寄せる ← 決め手 */
    align-items: flex-start;
    flex-wrap: nowrap;        /* 2カラムを維持（狭すぎる端末は下の480pxで折る） */
    column-gap: 2rem;         /* 2要素のあいだ */
    margin-top: 2rem;         /* 上の余白 */
    width: 100%;
  }

  .info-block .location,
  .info-block .mail {
    flex: 0 1 300px;          /* 2カラムが成立しやすい幅 */
    max-width: 360px;
    margin: 0;                /* ブロックの左右は gap に任せる */
    text-align: left;         /* 中身は左寄せのまま維持 */
  }

  /* 横並び時の見出し余白調整 */
  .info-block h2 { margin-top: 0;
    width: 100%; /* 中央寄せ時に幅を確保 */
}
}

/* ===== スマホ（〜480px）細かい調整 ===== */
@media (max-width: 480px) {
  .work-section { padding: 6rem 3rem 3.25rem; }
  h1 { font-size: 2rem; line-height: 1.2; }

  /* 列間が狭く見える端末向けに少しだけ詰める */
   .info-block {
    flex-wrap: wrap;          /* 必要時だけ改行 */
    column-gap: 1.25rem;
    row-gap: 1rem;
  }
  .info-block .location,
  .info-block .mail {
    flex: 1 1 46%;            /* 2段でも中央寄せでバランスよく */
    max-width: none;
  }

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

