/* 2026-06-12 jun sakamoto / メンサポLP 共通スタイル（トークン・リセット・共有部品） */

/* ---------- Webフォント（はんなり明朝=主役 / しっぽり明朝=補助。共に自家ホスト） ---------- */
@font-face {
  font-family: "Hannari Mincho";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/hannari-mincho-regular.woff2") format("woff2");
}
@font-face {
  /* 手書きペン字系（デザイン原本=うつくし明朝体の代替。Klee One/OFL） */
  font-family: "Klee One";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/klee-one-semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Shippori Mincho";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/shippori-mincho-medium.woff2") format("woff2");
}
@font-face {
  font-family: "Shippori Mincho";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/shippori-mincho-bold.woff2") format("woff2");
}

/* ---------- デザイントークン ---------- */
:root {
  --color-brand: #64b7c9;        /* ロゴ・アクセントのシアン */
  --color-brand-deep: #1f8c9c;
  --color-navy: #515c92;         /* 見出し明朝の紺（デザイン実測） */
  --color-navy-deep: #141c55;    /* 濃紺（デザイン実測） */
  --color-paper: #ffffff;
  --color-marker: #ffe36e;       /* 黄マーカー */
  --color-mist: #eef6f9;
  --color-lavender: #f6f5fa;
  --color-aqua: #ccedf4;
  --color-text: #333333;
  --font-mincho: "Hannari Mincho", "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-hand: "Klee One", "Hannari Mincho", "Yu Mincho", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --fixed-bar-h: 92px;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-paper);
  line-height: 1.8;
  font-feature-settings: "palt";
  /* アニメ初期位置(translateX±64px)が画面外へ食み出して横スクロールを生むのを封じる */
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; border: 0; }
a { color: inherit; text-decoration: none; }
mark {
  background: linear-gradient(transparent 55%, var(--color-marker) 55%);
  color: inherit;
  padding: 0 0.05em;
}
/* 太マーカー（文字全体を覆う帯。デザインの「背景延長」型） */
.mk-thick {
  background: var(--color-marker);
  padding: 0.08em 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mk-navy {
  background: var(--color-navy-deep);
  color: #ffffff;
  padding: 0.1em 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mk-white {
  background: #ffffff;
  padding: 0.08em 0.15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
em { font-style: normal; }

/* ---------- 追従ヘッダー（初期=真っ白 → スクロールで白透過＋ブラー） ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #ffffff;
  transition: background 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 6px rgba(40, 60, 100, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-header__logo { line-height: 1; }
.site-header__catch {
  font-family: var(--font-sans);
  font-weight: 700;
  color: #64b6c8;
  line-height: 1;
}

/* ---------- 共有部品 ---------- */
.btn-line, .btn-tel {
  display: inline-block;
  transition: opacity 0.25s, transform 0.25s;
}
.btn-line:hover, .btn-tel:hover { opacity: 0.85; transform: translateY(-2px); }

/* チェックリスト（青チェックアイコン） */
.checklist li {
  position: relative;
  font-weight: 600;
  color: var(--color-navy-deep);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1em;
  height: 1.1em;
  background: url("../img/common/icon_check.png") no-repeat center / contain;
}
.checklist--dark li { color: #ffffff; }

/* スパム対策フィールドは視覚外へ */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- フォーム（文字色は見本実測の#515C92=--color-navy） ---------- */
.apply__form { font-family: var(--font-mincho); }
.form-label {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
}
.req { color: #d4322d; font-size: 0.72em; font-weight: 600; }
.form-label__note { display: block; font-size: 0.62em; color: #d4322d; font-weight: 500; line-height: 1.2; }
.form-input, .form-textarea {
  width: 100%;
  border: 1px solid #d6d9e4;
  background: #f4f4f6;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 0.55em 0.8em;
  border-radius: 8px;
}
/* 見本準拠: textareaは大きめの角丸 */
.form-textarea { border-radius: 16px; }
.form-input:focus, .form-textarea:focus {
  outline: 2px solid var(--color-brand);
  background: #ffffff;
}
.form-note {
  font-size: 11px;
  color: var(--color-navy);
  font-weight: 500;
  white-space: nowrap;
}
.form-note--center { text-align: center; white-space: normal; }
.consent-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  cursor: pointer;
  color: var(--color-navy);
  font-weight: 600;
}
.consent-label a { text-decoration: underline; }
.form-submit { text-align: center; }
.form-submit__btn {
  font-family: var(--font-mincho);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(170deg, #6d79b8 0%, #515c92 45%, #2c3672 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(20, 28, 85, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.form-submit__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.form-submit__btn:disabled { opacity: 0.5; cursor: wait; }
.form-result { text-align: center; font-weight: 600; min-height: 1.8em; }
.form-result.is-error { color: #d4322d; }
.form-result.is-success { color: var(--color-brand-deep); }
input.is-invalid, textarea.is-invalid { outline: 2px solid #d4322d; background: #fdf3f3; }

/* ---------- フォーム確認ステップ ---------- */
.apply__confirm { text-align: center; }
.apply__confirm-lead {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.8;
  margin: 18px 0 16px;
}
.confirm-list {
  display: grid;
  grid-template-columns: 9em 1fr;
  text-align: left;
  margin: 0 0 6px;
  border-top: 1px solid #e3e5ef;
  font-size: 14px;
}
.confirm-list dt {
  font-weight: 600;
  color: var(--color-navy);
  padding: 10px 8px;
  border-bottom: 1px solid #e3e5ef;
}
.confirm-list dd {
  margin: 0;
  padding: 10px 8px;
  border-bottom: 1px solid #e3e5ef;
  word-break: break-all;
  white-space: pre-wrap;
  font-family: var(--font-sans);
}
.confirm-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.confirm-btns .form-submit__btn { width: auto; padding: 11px 52px; }
.confirm-back {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-navy);
  background: #fff;
  border: 1.5px solid var(--color-navy);
  border-radius: 999px;
  padding: 10px 36px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: transform 0.3s ease, background 0.3s ease;
}
.confirm-back:hover { transform: translateY(-2px); background: #f2f4fb; }
@media (max-width: 639px) {
  .confirm-list { grid-template-columns: 8.5em 1fr; font-size: 13px; }
  .confirm-list dt { white-space: nowrap; }
  .confirm-btns { gap: 10px; }
  .confirm-btns .form-submit__btn { padding: 11px 38px; }
  .confirm-back { padding: 10px 26px; font-size: 14px; }
}

/* ---------- 固定フッターバー（初期非表示 → スクロール開始で表示） ---------- */
.fixed-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 100;
  background: rgba(220, 222, 234, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 -1px 8px rgba(40, 60, 100, 0.12);
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fixed-bar.is-shown { transform: translateY(0); }
.fixed-bar__list {
  display: flex;
  justify-content: center;
  align-items: center;
}
.fixed-bar__list a {
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.fixed-bar__list a:hover {
  transform: translateY(-4px);
  filter: brightness(1.06);
}

/* TOPへ戻る（固定バー右端） */
.to-top {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(160deg, #7ccfdd 0%, #3da6bd 55%, #2a8aa3 100%);
  box-shadow: 0 2px 8px rgba(20, 28, 85, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.to-top:hover {
  transform: translateY(calc(-50% - 4px));
  filter: brightness(1.08);
}
.to-top__arrow {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 14px;
  height: 14px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 本文がバーに隠れないよう下余白 */
body { padding-bottom: var(--fixed-bar-h); }

/* ---------- スクロールアニメーション（ふわり・柔らかく） ---------- */
.anim {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.anim--left  { transform: translateX(-64px); }
.anim--right { transform: translateX(64px); }
.anim.is-in {
  opacity: 1;
  transform: none;
}
/* バブル等の子要素を時間差でふわり */
.anim-stagger > li {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.anim-stagger.is-in > li { opacity: 1; transform: none; }
.anim-stagger.is-in > li:nth-child(2) { transition-delay: 0.15s; }
.anim-stagger.is-in > li:nth-child(3) { transition-delay: 0.3s; }
.anim-stagger.is-in > li:nth-child(4) { transition-delay: 0.45s; }

/* ヒーローは読み込み時にふわり */
.hero__img {
  animation: heroFade 1.4s ease-out both;
}
@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .anim, .anim-stagger > li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__img { animation: none; }
}

/* ---------- 見出しインライン化したロゴ画像（テキスト中の「紹介」差し替え） ---------- */
.inline-logo {
  display: inline-block;
  height: 0.92em;
  width: auto;
  vertical-align: -0.06em;
  margin: 0 0.06em;
}
/* avoid__head のロゴはPC/SPで大きさが違うのでpc.css/mobile.cssで個別指定 */
.avoid__head .inline-logo--white { vertical-align: middle; margin: 0 0.1em; }

/* 送信ボタンのline-heightだけ揃え（縦余白はpc/mobileで個別調整） */
.form-submit__btn { line-height: 1; }

/* ---------- フッターSNS（コピーライト上のInstagram） ---------- */
.site-footer__sns {
  position: relative;
  margin: 0;
  text-align: center;
  background: #fff;
  padding: 10px 0 2px;
}
.site-footer__sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy-deep);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.site-footer__sns-link:hover { opacity: 0.7; }
.site-footer__sns-icon { display: block; }
