/* =========================================================================
   Hance corporate site — common stylesheet
   Design system: monochrome, minimal, white-glass. No accent color.
   Type: Poppins (Latin) / IBM Plex Sans JP (Japanese) / IBM Plex Mono (labels)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  color-scheme: light;          /* keep native controls light on dark-mode OS */

  /* Color — black tints only, no accent (per spec §2) */
  --bg-base:   #ffffff;
  --bg-soft:   #f5f5f7;
  --text:      #1a1a1a;   /* body — softened black, never pure #000 */
  --text-sub:  #666666;   /* sub copy */
  --text-faint:#999999;   /* captions / labels */
  --border:    #e5e5e5;   /* hairlines */
  --step-stroke: #c6c6ce; /* outlined ghost numerals (Flow) */

  /* Glass (partial use only — header, cards, FAQ, form) */
  --glass-bg:     rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-ring:   rgba(20, 20, 40, 0.06);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset,
                  0 18px 50px -22px rgba(20, 20, 40, 0.18);

  /* Background grid (built once, see body::before) */
  --grid-line:  rgba(0, 0, 0, 0.035);  /* ~opacity 0.035, extra-faint */
  --grid-size:  56px;

  /* Type families */
  --font-latin: "Poppins", "IBM Plex Sans JP", system-ui, sans-serif;
  --font-jp:    "IBM Plex Sans JP", "Poppins", system-ui, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --container:    1080px;
  --container-narrow: 760px;
  --gutter:       clamp(20px, 5vw, 40px);
  --section-pad:  clamp(72px, 12vw, 144px);
  --radius:       18px;
  --radius-lg:    24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------
   2. Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Base gradient wash for cleanliness (spec §2 背景) */
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f8 100%) fixed;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  letter-spacing: 0.01em;
  /* Japanese proportional spacing — tightens kana/punctuation */
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fine geometric grid — fixed, built once, sits behind all content.
   Glass elements blur this through their translucent fill (spec §2). */
body::before {
  content: "";
  position: fixed;
  inset: -2px;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

/* Soft radial light over the grid — keeps the canvas clean, fades edges */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110% 70% at 50% -10%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 55%),
    radial-gradient(100% 60% at 50% 110%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 50%);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: #1a1a1a; color: #fff; }

/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-pad); }

/* No-break unit — keeps a short trailing phrase together so Japanese text
   doesn't orphan a lone character (泣き別れ) at a line end. Harmless on wide
   screens where the line already fits. */
.nb { white-space: nowrap; }

/* Section eyebrow — monospace English/number label (spec §2 タイポ) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.7em;
  height: 1px;
  margin-right: 0.95em;
  background: currentColor;
  opacity: 0.6;
}

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }

.section-title {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.2vw, 2.3rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.lede {
  color: var(--text-sub);
  font-size: clamp(1rem, 2.2vw, 1.075rem);
  line-height: 2;
  max-width: 46em;
}

/* -------------------------------------------------------------------------
   4. Glass utility (partial use — spec §2 グラスモルフィズム)
   ------------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  /* faint outer ring so white-on-white still reads */
  outline: 1px solid var(--glass-ring);
  outline-offset: -1px;
}

/* -------------------------------------------------------------------------
   5. Logo lockup — mark (SVG via mask = currentColor control) + Poppins word
   ------------------------------------------------------------------------- */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.46em;
  color: var(--text);
  line-height: 1;
}
.logomark {
  display: block;
  flex: none;
  aspect-ratio: 1057 / 1127;          /* native viewBox ratio */
  height: 1.05em;
  background-color: currentColor;     /* color-controlled, mono-friendly */
  -webkit-mask: url("../assets/hance_logomark.svg") center / contain no-repeat;
          mask: url("../assets/hance_logomark.svg") center / contain no-repeat;
}
.word {
  font-family: var(--font-latin);
  font-weight: 500;                   /* Medium — bold suppressed per spec */
  font-style: italic;                 /* Poppins Medium Italic — Hance wordmark */
  font-size: 1.05em;
  letter-spacing: 0.005em;
}

/* -------------------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85em 1.55em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(20, 20, 40, 0.5);
}
.btn--primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(20, 20, 40, 0.55);
}
.btn--ghost {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: #d0d0d2; }
.btn--lg { font-size: 1.02rem; padding: 1.05em 2.1em; }

/* arrow that nudges on hover */
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   7. Header (fixed, glass-on-scroll)
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px -28px rgba(20, 20, 40, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.lockup--header { font-size: 1.18rem; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav-link {
  font-size: 0.9rem;
  color: var(--text-sub);
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

/* -------------------------------------------------------------------------
   8. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 96px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Mobile-first: symbol stacked OVER the wordmark (spec §3① モバイルは縦並び).
   Symbol is sized larger than the wordmark here so the compact mark balances
   the wide "Hance" below. Switched to a row on wider screens (responsive block). */
.lockup--hero {
  flex-direction: column;
  gap: clamp(0.16em, 2vw, 0.28em);
  font-size: clamp(3.4rem, 15vw, 6rem);
  font-weight: 500;
}
.lockup--hero .logomark { height: 1.72em; }   /* mobile: enlarged symbol for balance */
.lockup--hero .word { font-size: 1em; letter-spacing: 0.004em; }

/* scroll cue — centered via auto-margins (NOT transform), because this
   element also carries .hero-reveal whose transform would clobber a
   centering translateX and push the cue off to the right. */
.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(24px, 5vh, 44px);
  width: max-content;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-faint);
}
.scroll-cue .scroll-word {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-cue .scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .scroll-line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--text);
  animation: scroll-run 2.1s var(--ease) infinite;
}
@keyframes scroll-run {
  0%   { top: -45%; opacity: 0; }
  35%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* -------------------------------------------------------------------------
   9. Flow — STEP 01–03 process (glass cards, ghost numerals, connectors)
   ------------------------------------------------------------------------- */
.flow {
  --flow-gap: clamp(18px, 2.6vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--flow-gap);
}
.step {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.2vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step:hover { transform: translateY(-4px); }
.step-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.step-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.step-index {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 0.8;
  letter-spacing: 0.01em;
  /* outlined ghost numeral — structural, editorial */
  color: transparent;
  -webkit-text-stroke: 1.3px var(--step-stroke);
}
.step-body {
  color: var(--text-sub);
  font-size: 0.97rem;
  line-height: 2.05;
}
/* connector chevron — sits in the gap, implies progression.
   Mobile: points down (vertical flow). Desktop: points right (see §17). */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--text-faint);
  border-bottom: 1.5px solid var(--text-faint);
  left: 50%;
  bottom: calc(var(--flow-gap) / -2);
  transform: translate(-50%, 50%) rotate(45deg);
}

/* -------------------------------------------------------------------------
   10. Intro — positioning statement (moved from hero) + overview
   ------------------------------------------------------------------------- */
.section--intro { padding-top: clamp(72px, 12vw, 140px); }
.intro-kicker {
  display: block;
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  margin-bottom: clamp(28px, 4vw, 40px);
}
.intro-title {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(1.95rem, 5.6vw, 3.3rem);
  line-height: 1.5;
  letter-spacing: 0.015em;
  max-width: 17em;
  text-wrap: balance;
}
/* Second cluster ("経営者をつなぐ。") always begins its own line, so the
   heading breaks only between the two meaning-clusters — never mid-phrase
   and never with "と、" stranded at a line start. The mobile font is nudged
   down (see §17c) so the first cluster fits on one line. */
.intro-break { display: block; }
.intro-lede {
  margin-top: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--text-sub);
  font-size: clamp(1rem, 2.3vw, 1.12rem);
  line-height: 2.2;
  max-width: 40em;
}

/* -------------------------------------------------------------------------
   11. Profile
   ------------------------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.profile-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 26px 60px -30px rgba(20, 20, 40, 0.3);
  max-width: 340px;
}
.profile-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.profile-name {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  letter-spacing: 0.06em;
}
.profile-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
.profile-bio {
  color: var(--text-sub);
  font-size: 1.02rem;
  line-height: 2.15;
  max-width: 32em;
}

/* -------------------------------------------------------------------------
   12. Message — nested inside the profile right column.
       Mobile: stacked under the bio; the margin reproduces the gap the old
       standalone <section> used to give (so ≤767px is unchanged).
       PC/tablet: repositioned into the photo's lower half (see §17b).
   ------------------------------------------------------------------------- */
.profile-message { margin-top: var(--section-pad); }
.message {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: clamp(1.12rem, 2.8vw, 1.5rem);
  line-height: 2.3;
  letter-spacing: 0.04em;
  color: var(--text);
  max-width: 30em;
  padding-left: clamp(18px, 3vw, 28px);
  border-left: 2px solid var(--text);
}

/* -------------------------------------------------------------------------
   13. FAQ (native <details> accordion, glass)
   ------------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(18px, 2.4vw, 24px) clamp(20px, 2.6vw, 28px);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { display: flex; align-items: baseline; gap: 0.7rem; }
.faq-q::before {
  content: "Q";
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-faint);
}
.faq-icon {
  flex: none;
  position: relative;
  width: 14px; height: 14px;
  transition: transform 0.35s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.5px;
  background: var(--text);
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(135deg); }
.faq-a {
  padding: 0 clamp(20px, 2.6vw, 28px) clamp(20px, 2.6vw, 26px);
  color: var(--text-sub);
  font-size: 0.97rem;
  line-height: 2.05;
}
.faq-a p { padding-left: 1.6rem; } /* align under the question text, past the "Q" */
.faq-item[open] .faq-a { animation: faq-reveal 0.45s var(--ease); }
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
   14. Contact CTA + footer
   ------------------------------------------------------------------------- */
.section--contact { text-align: center; }
.contact-cta { display: flex; flex-direction: column; align-items: center; }
.contact-lead {
  color: var(--text-sub);
  font-size: 1.02rem;
  line-height: 2;
  margin: 1rem 0 2.2rem;
  max-width: 34em;
}
/* Lead/lede splits onto its own line after the first sentence (句点) on every
   width. The copy is short enough that each sentence fits one line down to
   ~360px, giving a clean two-line read on phones and PC alike. */
.contact-break { display: block; }

/* Contact body copy differs by device: the formal, fuller wording shows on
   PC/tablet; a concise version shows on phones (where it fits two lines).
   Mobile-first default below; PC swap lives in §17b. */
.lead-pc { display: none; }
.lead-mobile { display: block; }

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding-block: clamp(48px, 7vw, 72px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
}
.footer-brand .lockup { font-size: 1.3rem; }
.footer-tag {
  margin-top: 1rem;
  color: var(--text-sub);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.company-info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.92rem;
}
.company-info > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 1rem;
  align-items: baseline;
}
.company-info dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.company-info dd { color: var(--text); }
.company-info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copyright {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

/* -------------------------------------------------------------------------
   15. Contact page — form
   ------------------------------------------------------------------------- */
.page-shell { padding-top: 68px; }       /* clears the fixed header */
.form-section { padding-block: clamp(48px, 8vw, 96px); }
.form-head { text-align: center; margin-bottom: clamp(32px, 5vw, 48px); }
.form-head .lede { margin-inline: auto; text-align: center; }

.form-card {
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 48px);
}
.form-field { margin-bottom: 1.6rem; }
.form-field:last-of-type { margin-bottom: 0; }
.form-label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.req, .opt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 999px;
}
.req { color: var(--text); border: 1px solid var(--text); }
.opt { color: var(--text-faint); border: 1px solid var(--border); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-jp);
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85em 1em;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 7.5em; line-height: 1.9; }
.form-field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a1a1a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1em center;
  padding-right: 2.6em;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #b8b8bc;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 20, 40, 0.05);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #b3b3b8; }

/* honeypot — kept off-screen, not display:none (bots skip display:none) */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-actions { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.form-actions .btn { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.form-status {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #8a1f1f;            /* error — dark red, still restrained */
  min-height: 1.2em;
}
.form-note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.9;
}

/* success panel (swaps in after submit) */
.form-success {
  text-align: center;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
}
.form-success .check {
  width: 56px; height: 56px;
  margin: 0 auto 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--text);
  display: grid;
  place-items: center;
}
.form-success .check svg { width: 24px; height: 24px; }
.form-success p {
  font-size: 1.08rem;
  line-height: 2.1;
  letter-spacing: 0.02em;
  max-width: 24em;
  margin-inline: auto;
}
.form-success .back-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
}
[hidden] { display: none !important; }

/* -------------------------------------------------------------------------
   16. Scroll-reveal motion (spec §2 モーション — restrained fade-in)
   ------------------------------------------------------------------------- */
/* Hidden initial state applies ONLY when JS is active (.js on <html>).
   Without JS — crawlers, JS-off visitors — all content stays fully visible
   (progressive enhancement; critical for a 30-second 裏取り site). */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* hero load stagger */
.js .hero-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .hero-reveal.is-visible { opacity: 1; transform: none; }
.scroll-cue.hero-reveal { transition-delay: 0.1s; }

/* -------------------------------------------------------------------------
   17. Responsive
   ------------------------------------------------------------------------- */
/* hero lockup: horizontal on wider screens (spec §3① PCは横並び).
   Larger overall than before; symbol pinned to a height that sits balanced
   next to the wordmark (overriding the taller mobile symbol). */
@media (min-width: 600px) {
  .lockup--hero {
    flex-direction: row;
    align-items: center;
    gap: 0.3em;
    font-size: clamp(4.2rem, 12vw, 8.8rem);
  }
  .lockup--hero .logomark { height: 1.16em; }
}
@media (min-width: 720px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  /* connector points right, centered in the column gap */
  .step:not(:last-child)::after {
    left: auto;
    bottom: auto;
    top: 50%;
    right: calc(var(--flow-gap) / -2);
    transform: translate(50%, -50%) rotate(-45deg);
  }
}

/* -------------------------------------------------------------------------
   17b. PC / tablet refinements (≥768px).
        Mobile (≤767px) is intentionally untouched — every rule below is
        scoped to this breakpoint and uses relative units so the layout
        holds from tablet up to large desktop (no fixed-resolution targets).
   ------------------------------------------------------------------------- */
@media (min-width: 768px) {
  /* (5) tighten the over-tall vertical rhythm on wide screens */
  :root { --section-pad: clamp(76px, 7.5vw, 112px); }
  .section--intro { padding-top: clamp(80px, 8vw, 120px); }

  /* (1) hero wordmark a notch larger — vertical centering left unchanged */
  .lockup--hero { font-size: clamp(5rem, 12.8vw, 9.8rem); }

  /* (3) Profile + Message on one row. Text is top-aligned with the photo;
         Message is pinned to the bottom so it fills the space beside the
         photo's lower half — clearing the old bottom-right blank. */
  .profile {
    grid-template-columns: clamp(264px, 31%, 340px) 1fr;
    column-gap: clamp(36px, 4.5vw, 64px);
    align-items: start;
  }
  .profile-photo { align-self: start; max-width: 100%; }
  .profile-body {
    align-self: stretch;        /* stretch to the photo's height */
    display: flex;
    flex-direction: column;
  }
  .profile-head {               /* name + role inline, role to the right */
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 0.9rem;
    row-gap: 0.2rem;
  }
  .profile-role { margin: 0; }
  .profile-bio {
    margin-top: clamp(1rem, 1.7vw, 1.5rem);
    max-width: 34em;
    text-wrap: pretty;          /* avoid a lone trailing character on the last line */
  }
  .profile-message {
    margin-top: auto;           /* push down into the photo's lower half */
    padding-top: clamp(26px, 3vw, 44px);
  }
  .profile-message .message {
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.95;          /* tightened so the quote fits the region */
    max-width: 32em;
  }

  /* (4) STEP numerals + connectors: a touch denser for legibility (PC only) */
  .step-index { -webkit-text-stroke: 1.5px #a6a6ae; }
  .step:not(:last-child)::after {
    width: 10px;
    height: 10px;
    border-right-width: 1.75px;
    border-bottom-width: 1.75px;
    border-color: #8c8c95;
  }

  /* (6) contact body copy: show the formal/full wording on PC/tablet */
  .lead-pc { display: block; }
  .lead-mobile { display: none; }
}
@media (min-width: 860px) {
  .header-inner { min-height: 76px; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .footer-brand { grid-row: span 2; }
}
@media (max-width: 859px) {
  /* collapse nav links on mobile — keep only the primary CTA (spec: minimal) */
  .nav .nav-link { display: none; }
}
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr; }
}

/* -------------------------------------------------------------------------
   17c. Mobile (≤767px) line-break tuning only.
        Nudge the intro heading down just enough that the first cluster
        ("外部顧問・実業経験者と、") fits on one line, so it pairs with
        .intro-break to give a clean two-cluster break on phones. The cap
        meets the desktop size at the breakpoint, so there is no jump.
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .intro-title { font-size: clamp(1.45rem, 6.6vw, 2.7rem); }
  /* match the contact page's lede size so both contact sentences each fit
     one line down to ~360px → a clean two-line read on phones. */
  .contact-lead { font-size: 1rem; }
}

/* -------------------------------------------------------------------------
   18. Reduced motion — honor user preference (spec: avoid excess motion)
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .hero-reveal { opacity: 1 !important; transform: none !important; }
  .scroll-cue .scroll-line::after { display: none; }
}
