/* ============================================================
   Suslab LP — 移植差分（overrides）
   styles.css（デザイナー納品・無改変）の後に読み込む。
   主目的：本番化メモで「実装側で追加推奨」とされたモバイルメニュー。
   ============================================================ */

/* ---- ハンバーガーボタン（940px 以下で表示） ---------------- */
/* styles.css の .nav-toggle { display:none } を踏襲し、狭幅でのみ表示 */
.nav-toggle {
  width: 44px; height: 44px; flex: none; padding: 0; position: relative;
  background: transparent; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
  background: var(--teal-800);
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.on span:nth-child(2) { opacity: 0; }
.nav-toggle.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- モバイルナビ本体（上から降りるパネル） ---------------- */
.mobile-nav {
  display: none; /* 広幅では非表示。940px 以下で flex に切り替え */
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  flex-direction: column; gap: 2px;
  padding: 92px 24px 30px;
  background: rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 54px -30px rgba(0,49,73,.45);
  transform: translateY(-14px); opacity: 0; pointer-events: none;
  transition: transform .38s cubic-bezier(.16,1,.3,1), opacity .3s;
}
.mobile-nav.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--jp); font-weight: 500; font-size: 16px; letter-spacing: .04em;
  color: var(--ink-2); text-decoration: none; padding: 15px 6px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--teal-700); }
.mobile-nav .mobile-cta {
  margin-top: 20px; text-align: center; border-bottom: 0;
  background: var(--teal-700); color: #fff; font-weight: 600;
  border-radius: 7px; padding: 15px;
}
.mobile-nav .mobile-cta:hover { background: var(--teal-800); color: #fff; }

/* スクロールロック（メニュー展開中） */
body.menu-open { overflow: hidden; }

/* ---- メンバー顔写真 ----
   写真は正方形(1:1)に統一し、スマホ・PCで同じ構図に。各写真は被写体中心で
   正方形に切り出し済みのため object-position は中央。河路氏のみ写真未提供。 */
.m-photo, .member.rep .m-photo { height: auto; aspect-ratio: 1 / 1; }
.m-photo-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  display: block;
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: flex; }
  /* ヘッダー右側はハンバーガーに集約（CTA はメニュー内に用意） */
  .nav-cta { display: none; }
}

/* ============================================================
   セクション見出しの統一
   他セクション（01/02/05…）は「左寄せ・eyebrow→title→lead(下)」。
   元デザインで 03サービス=中央寄せ / 04メンバー=左右2カラム だったのを揃える。
   ============================================================ */
/* 03 サービス：中央寄せ → 左寄せ・リード下 */
.services-head { text-align: left; max-width: 760px; margin-left: 0; margin-right: 0; }
.services-head .eyebrow { justify-content: flex-start; }
.services-head .lead { margin-left: 0; margin-right: 0; }

/* 04 メンバー：タイトル/リードの左右2カラム → 縦積み（リードを下に） */
.members-head { display: block; max-width: 760px; }
.members-head .title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.32; }
.members-head .lead { margin-top: 20px; font-size: 16px; max-width: 680px; }

/* ============================================================
   改行・折り返しの調整
   PC専用の改行は page.tsx で <br className="brpc"/>（styles.css の
   @media≤940 で display:none）。モバイルは自然折り返し＋行長を均す。
   ============================================================ */
.title, .hero h1 { text-wrap: balance; }
@media (max-width: 940px) {
  /* ヒーローのタグ：字間を少し詰めて「ング」等の2文字孤立を防ぐ */
  .hero-tag { letter-spacing: 0.1em; text-wrap: balance; }
  /* これらの見出しはモバイルで .ln の塊指定を解除し、均し折り返しに任せる
     （ヒーロー h1 は word-break:keep-all のため対象外＝そのまま .ln を活かす） */
  .problem-head .title .ln, .members-head .title .ln { display: inline; }
}

/* ============================================================
   お問い合わせフォーム（#contact = .cta 暗ティール背景に配置）
   greatjourney-web のフォームを suslab トークンへ移植。送信先 info@suslab.co.jp。
   ============================================================ */
.contact-form { margin: 30px auto 0; display: grid; gap: 16px; max-width: 540px; text-align: left; }
.contact-form label { display: block; font-size: 13px; letter-spacing: .02em; color: rgba(255,255,255,.85); margin-bottom: 7px; }
.contact-form label span { color: var(--teal-300); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07);
  color: #fff; font: inherit; line-height: 1.6;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal-300); background: rgba(255,255,255,.12);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .form-note {
  font-size: 13.5px; line-height: 1.95; color: rgba(255,255,255,.82); text-align: left;
  background: rgba(255,255,255,.05); border-left: 3px solid var(--teal-300);
  padding: 13px 16px; border-radius: 0 10px 10px 0; margin: 6px 0 2px; text-wrap: balance;
}
.contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.85); }
.contact-form .consent input { width: auto; flex: none; margin-top: 3px; accent-color: var(--teal-400); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.contact-form button[disabled] { opacity: .6; cursor: default; transform: none; }
.msg-err { color: #ffd0c6; font-size: 13.5px; margin-top: 2px; }

/* 送信完了カード */
.form-done {
  margin: 30px auto 0; max-width: 540px; text-align: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 36px 30px;
}
.form-done-icon {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--teal-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.form-done h3 { font-family: var(--jp); font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 12px; letter-spacing: .02em; }
.form-done p { font-size: 14.5px; line-height: 2; color: rgba(255,255,255,.85); }
