/* ============================================================
   CRESCO RECRUIT — 共通ベーススタイル (base.css)
   TOP (index-v30) のデザイントークンを踏襲。
   下層ページ共通: header / footer / section common / button / 導線
   ============================================================ */

:root {
  --bg: #fafafa;
  --bg-2: #f0f0f0;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --line: #d4d4d4;
  --mute: #6b6b6b;
  --accent: #e60012;
  --accent-2: #ff1f2e;
  --grid-gap: 24px;
  --pad-x: clamp(20px, 4vw, 80px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "DIN Next LT Pro", "DIN Next", "DIN 2014", "DIN Alternates", "DIN Pro", "Helvetica Neue", Helvetica, "Arial", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ============== HEADER ============== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
header.scrolled { border-bottom-color: var(--line); }
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.logo__img { height: 28px; width: auto; display: block; }
.logo__img--invert { filter: invert(1); }
.logo__sub {
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.18em;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: "Zen Kaku Gothic New", "Inter", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav a { position: relative; padding: 8px 0; transition: color 0.2s var(--ease); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { width: 100%; }
.nav a.is-current { color: var(--accent); }
.nav a.is-current::after { width: 100%; }
.nav__entry {
  font-family: "Inter", "Zen Kaku Gothic New", sans-serif;
  letter-spacing: 0.16em;
  background: var(--ink);
  color: #fff !important;
  padding: 12px 20px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s var(--ease);
}
.nav__entry:hover { background: var(--accent); }
.nav__entry::after { display: none !important; }
.nav__entry .arr { width: 14px; height: 1px; background: #fff; position: relative; }
.nav__entry .arr::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: rotate(45deg);
}
.burger {
  display: none;
  position: relative;
  z-index: 101; /* オーバーレイ(z-index:99)より前面に出し、×を表示・操作可能にする */
  width: 44px; height: 44px;
  align-items: flex-end; justify-content: center;
  flex-direction: column; gap: 6px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: flex; }

  /* ===== モバイルメニュー（トグル状態）を全画面オーバーレイに ===== */
  .nav.mobile-open {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 104px) clamp(28px, 7vw, 60px) calc(env(safe-area-inset-bottom, 0px) + 40px);
    z-index: 99;
    color: #fff;
    overflow-y: auto;
    counter-reset: menu;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(230,0,18,0.22), transparent 52%),
      linear-gradient(180deg, #121212 0%, #050505 100%);
    animation: menuFade 0.45s var(--ease) both;
  }
  .nav.mobile-open::before {
    content: "";
    position: absolute; inset: 0;
    background:
      repeating-linear-gradient(0deg, transparent 0 47px, rgba(255,255,255,0.045) 47px 48px),
      repeating-linear-gradient(90deg, transparent 0 47px, rgba(255,255,255,0.045) 47px 48px);
    pointer-events: none; z-index: 0;
  }
  .nav.mobile-open::after {
    content: "MENU";
    position: absolute; bottom: 3vh; right: clamp(28px, 7vw, 60px);
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(72px, 22vw, 180px); line-height: 0.8; letter-spacing: -0.04em;
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.07);
    pointer-events: none; z-index: 0;
  }

  .nav.mobile-open a {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 18px;
    color: #fff;
    padding: 18px 2px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: clamp(23px, 6.6vw, 32px);
    font-weight: 900; letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    opacity: 0; transform: translateY(16px);
    animation: menuItem 0.5s var(--ease) forwards;
  }
  .nav.mobile-open a:nth-child(1) { animation-delay: 0.08s; }
  .nav.mobile-open a:nth-child(2) { animation-delay: 0.14s; }
  .nav.mobile-open a:nth-child(3) { animation-delay: 0.20s; }
  .nav.mobile-open a:nth-child(4) { animation-delay: 0.26s; }
  .nav.mobile-open a:nth-child(5) { animation-delay: 0.32s; }
  .nav.mobile-open a:nth-child(6) { animation-delay: 0.40s; }
  .nav.mobile-open a:nth-child(7) { animation-delay: 0.46s; }

  .nav.mobile-open a:not(.nav__entry)::before {
    counter-increment: menu;
    content: counter(menu, decimal-leading-zero);
    font-family: "Inter", sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
    color: var(--accent-2);
    width: 26px; flex-shrink: 0;
    position: static; height: auto; background: none;
  }
  .nav.mobile-open a:not(.nav__entry)::after {
    content: attr(data-en);
    margin-left: auto;
    font-family: "Inter", sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: rgba(255,255,255,0.4);
    position: static; width: auto; height: auto; background: none;
    transition: color 0.25s var(--ease);
  }
  .nav.mobile-open a:not(.nav__entry):hover,
  .nav.mobile-open a:not(.nav__entry):active { color: var(--accent-2); }
  .nav.mobile-open a:not(.nav__entry):hover::after { color: rgba(255,255,255,0.7); }
  .nav.mobile-open a:not(.nav__entry):hover::before { color: #fff; }

  /* 現在ページを示すマーカー */
  .nav.mobile-open a.is-current { color: var(--accent-2); }
  .nav.mobile-open a.is-current::before { color: #fff; }
  .nav.mobile-open a.is-current::after { color: var(--accent-2); }

  .nav.mobile-open .nav__entry {
    margin-top: 32px;
    justify-content: center;
    background: var(--accent);
    color: #fff !important;
    padding: 22px !important;
    font-size: 16px; letter-spacing: 0.18em; font-weight: 800;
    border-bottom: 0;
    transform: translateY(16px);
  }
  .nav.mobile-open .nav__entry:hover { background: #fff; color: var(--ink) !important; }
  .nav.mobile-open .nav__entry:hover .arr { background: var(--ink); }
  .nav.mobile-open .nav__entry:hover .arr::after { border-color: var(--ink); }

  /* メニュー展開中はヘッダーを透過してメニューに溶け込ませる */
  header:has(.nav.mobile-open) {
    background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom-color: transparent !important;
  }
  header:has(.nav.mobile-open) .logo__img { filter: invert(1); }
  header:has(.nav.mobile-open) .logo__sub { color: rgba(255,255,255,0.6); border-left-color: rgba(255,255,255,0.25); }
  header:has(.nav.mobile-open) .burger span { background: #fff; }

  @keyframes menuFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes menuItem { to { opacity: 1; transform: none; } }
}

/* ============== PAGE HERO (下層FV共通) ============== */
.phero {
  position: relative;
  min-height: 78vh;
  padding: 150px var(--pad-x) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0%, var(--bg) 100%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(10,10,10,0.03) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(10,10,10,0.03) 39px 40px);
}
.phero__ghost {
  position: absolute;
  top: 6%; left: 4vw;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(120px, 20vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.phero__body { position: relative; z-index: 2; }
.phero__crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mute);
  font-weight: 600;
  margin-bottom: 28px;
}
.phero__crumb a:hover { color: var(--accent); }
.phero__crumb span { opacity: 0.5; }
.phero__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}
.phero__label::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
.phero__title {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(34px, 4.6vw, 74px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.14;
  margin: 0;
}
.phero__title .accent { color: var(--accent); }
.phero__lead {
  max-width: 480px;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 2;
  color: var(--ink-2);
  margin: 28px 0 0;
  font-weight: 500;
}
.phero__visual {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}
.phero__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.05) contrast(1.06) brightness(1.04) saturate(0.95);
}
.phero__visual::after {
  content: attr(data-label);
  position: absolute;
  bottom: 20px; left: 24px;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  opacity: 0.7;
}
@media (max-width: 900px) {
  .phero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding-top: 130px;
  }
  .phero__visual { aspect-ratio: 16 / 10; }
}

/* ============== SECTION COMMON ============== */
section { position: relative; padding: clamp(80px, 10vw, 150px) var(--pad-x); }
.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.section__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: #d4001a;
}
.section__num .slash { color: var(--line); font-weight: 400; margin-right: 20px; }
.section__title-wrap { display: flex; flex-direction: column; gap: 12px; }
.section__label {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mute);
}
.section__title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}
.section__title .light { color: var(--mute); font-weight: 400; }
.section__intro {
  max-width: 720px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 2.05;
  color: var(--ink-2);
  margin: -24px 0 clamp(48px, 6vw, 72px);
  font-weight: 500;
}

/* ============== BUTTON (統一CTA) ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: "Inter", "Zen Kaku Gothic New", sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 18px 28px;
  border: 1px solid var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
}
.btn::after { content: "→"; transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--ink); color: #fff; }
.btn:hover::after { transform: translateX(6px); }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); }
.btn--light { border-color: #fff; color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--ink); }

/* ============== NEXT-PAGE 導線 (ストーリー導線) ============== */
.pnav {
  /* NEXT導線だけ一段濃いグレーにして、次ページへのボタンをアクセントとして際立たせる */
  background: #e9e9e9;
  color: var(--ink);
  border-top: 1px solid #dcdcdc;
  overflow: hidden;
  position: relative;
}
.pnav__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.pnav__q {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
  margin-bottom: 18px;
  display: block;
}
.pnav__ask {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
}
.pnav__ask .accent { color: var(--accent); }
.pnav__link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.pnav__link .next-label {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pnav__link .next-en {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
}
.pnav__link .next-jp {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
}
.pnav__link .next-arr {
  width: 64px; height: 64px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pnav__link:hover .next-arr {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(6px);
}
@media (max-width: 720px) {
  .pnav__inner { grid-template-columns: 1fr; gap: 28px; }
  .pnav__link { justify-content: space-between; }
}

/* ============== FINAL ENTRY CTA (下層ページ共通CTA) ============== */
.finalcta {
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.finalcta::before {
  content: "ENTRY";
  position: absolute;
  bottom: -3vw; right: -1vw;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 17vw, 260px);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10,10,10,0.08);
  line-height: 0.85;
  pointer-events: none;
  z-index: 0;
}
.finalcta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.finalcta__left h2 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
}
.finalcta__left h2 .accent { color: var(--accent); }
.finalcta__left p { font-size: 15px; line-height: 2; color: var(--ink-2); margin: 0; }
.finalcta__actions { display: flex; flex-direction: column; gap: 16px; }
.cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  cursor: pointer;
}
.cta-block:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta-block__left { display: flex; flex-direction: column; gap: 4px; }
.cta-block__label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--mute);
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.3s;
}
.cta-block:hover .cta-block__label { color: rgba(255,255,255,0.6); }
.cta-block__title { font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; line-height: 1.3; }
.cta-block__arr {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s, transform 0.3s;
}
.cta-block:hover .cta-block__arr { border-color: #fff; transform: rotate(-45deg); }
.cta-block__arr::after { content: "→"; font-size: 18px; }
@media (max-width: 880px) {
  .finalcta__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============== FOOTER ============== */
footer {
  background: #050505;
  color: rgba(255,255,255,0.6);
  padding: 80px var(--pad-x) 32px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand .logo { color: #fff; }
.footer__brand p { margin: 24px 0 0; line-height: 1.9; }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer__links h4 {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.55);
  margin: 0 0 16px;
  text-transform: uppercase;
}
.footer__links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__links a:hover { color: #fff; }
.footer__links a[target="_blank"] { display: inline-flex; align-items: center; }
.footer__links a[target="_blank"]::after {
  content: "\2197\FE0E";
  margin-left: 5px;
  font-size: 0.9em;
  opacity: 0.6;
  transition: opacity 0.25s var(--ease);
}
.footer__links a[target="_blank"]:hover::after { opacity: 1; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 720px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ============== 公式SNS (フッター) ============== */
/* リンク先が決まったら各ページの href="#" を差し替え。不要な場合はブロックごと削除可 */
.footer__sns { display: flex; gap: 10px; margin-top: 28px; }
.footer__sns a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.6);
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.footer__sns a:hover { background: #fff; color: #050505; border-color: #fff; transform: translateY(-2px); }
.footer__sns svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ============== 追従UI (読了バー / エントリー / ページ上部へ) ============== */
/* 要素は site.js が全ページに自動挿入する */
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101; pointer-events: none; }
.readbar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}

.fab {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 5vw, 60px);
  z-index: 98;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.fab.is-on { opacity: 1; visibility: visible; transform: none; }

.fab__entry {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 900; letter-spacing: 0.04em; white-space: nowrap;
  box-shadow: 0 8px 28px rgba(230,0,18,0.32);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s;
}
.fab__entry:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.24); }
.fab__entry svg { width: 18px; height: 18px; }

.fab__top {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(250,250,250,0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.fab__top:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.fab__top svg { width: 20px; height: 20px; }
.fab svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ============== スマホ閲覧時の読みやすさ ============== */
@media (max-width: 720px) {
  /* 追従アクションを画面下部のバーに（エントリーが主導線・親指が届く位置） */
  body.has-fabbar .fab {
    left: 0; right: 0; bottom: 0;
    flex-direction: row; align-items: center; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(250, 250, 250, 0.94);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    transform: translateY(100%);
  }
  body.has-fabbar .fab.is-on { transform: none; }
  body.has-fabbar .fab__entry { flex: 1; justify-content: center; box-shadow: none; }
  body.has-fabbar .fab__top { box-shadow: none; }
  /* バーがフッターのコピーライトに被らないよう余白を確保 */
  body.has-fabbar footer { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .fab__entry { height: 52px; padding: 0 22px; }
  .fab__top { width: 52px; height: 52px; flex-shrink: 0; }

  /* 本文の行間をゆったりに、日本語は文節単位で折り返す（対応ブラウザのみ） */
  body { line-height: 1.85; }
  p, li, dd, figcaption { word-break: auto-phrase; }
  .section__title, .section__intro { word-break: auto-phrase; }
  /* 見出しは詰めすぎず、句読点で不自然に折り返さない */
  .section__title { line-height: 1.35; }
  /* リンクのタップ領域を確保（44px目安） */
  .footer__links a { display: inline-block; padding: 5px 0; }
  .footer__sns { margin-top: 24px; }
}

/* ============== ANIMATION ============== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============== ACCESSIBILITY ============== */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
