/* =====================================================================
   NYC ノンコア事業 引き受けデスク — LP スタイルシート
   Brand: navy #070C47 / cyan #1EC2DE / accent #0FA8C4
   Type : Figtree (欧文/数字) × Noto Serif JP (見出し) × Noto Sans JP (本文)
   ===================================================================== */

:root {
  --navy: #070C47;
  --navy-hover: #151D6B;
  --cyan: #1EC2DE;
  --cyan-ink: #0FA8C4;
  --cyan-deep: #0B8FA8;
  --bg: #F6F7FA;
  --white: #FFFFFF;
  --ink: #070C47;
  --text: #3A4160;
  --muted: #5C6478;
  --muted-2: #7A8098;
  --muted-3: #8A91A8;
  --muted-4: #9AA3B8;
  --line: #E5E9F0;
  --line-2: #E1E5EF;
  --line-3: #DCE1EA;
  --field-border: #C9CFDD;
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', sans-serif;
  --display: 'Figtree', sans-serif;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--cyan-ink); }
h1, h2, p { margin: 0; }
button { font-family: var(--sans); }
input::placeholder, textarea::placeholder { color: #A6ADC0; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: 72px; padding-right: 72px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.28em;
  color: var(--cyan-ink); margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif); font-size: 40px; font-weight: 600;
  line-height: 1.6; letter-spacing: 0.05em; margin-bottom: 20px;
}
.section-lead { font-size: 15px; line-height: 2.1; color: var(--text); }

/* buttons */
.btn-primary {
  display: inline-block; background: var(--navy); color: var(--white);
  font-weight: 500; border: none; border-radius: 2px; cursor: pointer;
  letter-spacing: 0.04em; transition: background 0.2s var(--ease);
}
.btn-primary:hover { background: var(--navy-hover); color: var(--white); }
.link-underline {
  color: var(--ink); border-bottom: 1px solid var(--ink);
  padding-bottom: 2px; font-weight: 500;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,247,250,0.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(7,12,71,0.07);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; padding-top: 0; padding-bottom: 0;
  transition: height 0.3s var(--ease);
}
.brand { display: flex; align-items: baseline; gap: 16px; }
.brand-mark {
  font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: 0.01em;
  transition: font-size 0.3s var(--ease);
}
.brand-sub {
  font-size: 11.5px; color: var(--muted); letter-spacing: 0.1em;
  transition: font-size 0.3s var(--ease), opacity 0.25s var(--ease), max-width 0.3s var(--ease);
  white-space: nowrap; overflow: hidden;
}
/* ---------- スクロール時のコンデンス（縮小）挙動 ---------- */
.site-header.is-condensed { background: rgba(246,247,250,0.96); box-shadow: 0 4px 20px rgba(7,12,71,0.06); }
.site-header.is-condensed .header-inner { height: 60px; }
.site-header.is-condensed .brand-mark { font-size: 21px; }
.site-header.is-condensed .brand-sub { font-size: 10.5px; opacity: 0.7; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav a { color: var(--text); }
.nav .btn-primary { font-size: 13px; padding: 11px 24px; }
/* ヘッダーCTA「案件を相談する」の文字色は常に白。
   （.nav a の詳細度が .btn-primary より高く、ダークグレーが適用されてしまうため、
   　未訪問・訪問済・ホバー・フォーカス・押下の全状態を明示的に白で固定する） */
.site-header .nav a.btn-primary,
.site-header .nav a.btn-primary:link,
.site-header .nav a.btn-primary:visited,
.site-header .nav a.btn-primary:hover,
.site-header .nav a.btn-primary:focus,
.site-header .nav a.btn-primary:active {
  color: var(--white);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 260px;
  gap: 64px; align-items: center; padding-top: 104px;
}
.hero-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.3em; color: var(--muted); margin-bottom: 32px; }
.hero-title { font-family: var(--serif); font-size: 58px; font-weight: 600; line-height: 1.6; letter-spacing: 0.06em; margin-bottom: 24px; }
.hero-lead { font-size: 22px; font-weight: 700; line-height: 1.5; margin-bottom: 16px; }
.hero-desc { font-size: 16px; line-height: 2.25; color: var(--text); margin-bottom: 40px; }
.hero-cta { display: flex; align-items: center; gap: 36px; }
.hero-cta .btn-primary { font-size: 14.5px; padding: 17px 42px; letter-spacing: 0.06em; }
.hero-media { display: flex; justify-content: flex-end; }
.hero-frame {
  width: 236px; height: 300px; border: 1px solid #E3E7EF;
  box-shadow: 0 20px 44px rgba(7,12,71,0.12); overflow: hidden;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   SECTIONS (generic)
   ===================================================================== */
.section { padding-top: 120px; padding-bottom: 120px; }
.section--white { background: var(--white); border-top: 1px solid #ECEFF4; }
.section--bg { background: var(--bg); }

/* ---------- 型リスト ---------- */
.type-list { border-top: 1px solid var(--navy); }
.type-row {
  display: grid; grid-template-columns: 88px 1fr; align-items: center;
  gap: 24px; padding: 27px 8px; border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.type-row:hover { background: #FAFBFD; }
.type-num { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--muted-4); }
.type-text { font-size: 15.5px; line-height: 1.9; }

/* =====================================================================
   PROCESS
   ===================================================================== */
.process-grid { display: grid; grid-template-columns: 1fr 400px; gap: 96px; }
.process-main .section-title { margin-bottom: 56px; }
.timeline { position: relative; padding-left: 36px; }
.timeline-line { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: #C9CFDD; }
.step { position: relative; padding-bottom: 40px; }
.step:last-child { padding-bottom: 0; }
.step .dot { position: absolute; left: -36px; top: 7px; width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box; }
.dot--solid-navy { background: var(--navy); }
.dot--solid-cyan { background: var(--cyan); }
.dot--ring { border: 1.5px solid var(--navy); background: var(--white); }
.step-time { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--cyan-ink); margin-bottom: 8px; }
.step-title { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 8px; letter-spacing: 0.03em; }
.step-desc { font-size: 14px; line-height: 2.0; color: var(--text); max-width: 560px; }
.process-photo { margin-top: 44px; width: 100%; max-width: 560px; height: 240px; border-radius: 3px; overflow: hidden; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; }

.process-side { align-self: start; }
.initial-card { position: sticky; top: 120px; background: var(--navy); padding: 56px 48px; border-radius: 3px; }
.ic-eyebrow { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; color: var(--cyan); margin-bottom: 26px; }
.ic-label { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--white); line-height: 1.8; }
.ic-number-row { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px 0; }
.ic-number { font-family: var(--display); font-size: 104px; font-weight: 600; line-height: 1; color: var(--white); letter-spacing: -0.02em; }
.ic-unit { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--white); }
.ic-rule { width: 26px; height: 2px; background: var(--cyan); margin: 26px 0; }
.ic-desc { font-size: 13px; line-height: 2.1; color: rgba(255,255,255,0.75); }
.ic-note {
  margin-top: 14px; display: inline-block; font-size: 10px; color: rgba(255,255,255,0.55);
  border: 1px dashed rgba(255,255,255,0.35); border-radius: 2px; padding: 3px 8px; letter-spacing: 0.08em;
}

/* =====================================================================
   CASES
   ===================================================================== */
.case-note { font-size: 13px; color: var(--muted-2); margin-bottom: 56px; }
.case-card {
  background: #FCFDFE; border: 1px solid var(--line-2); border-radius: 3px;
  padding: 52px 56px; display: grid; grid-template-columns: 1fr 480px;
  gap: 64px; align-items: center;
}
.case-tag { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--cyan-ink); letter-spacing: 0.1em; margin-bottom: 14px; }
.case-title { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.8; margin-bottom: 16px; letter-spacing: 0.03em; }
.case-text { font-size: 14px; line-height: 2.1; color: var(--text); }
.case-result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 14px; line-height: 2.1; color: var(--text); }
.case-result .arrow { font-weight: 700; color: var(--navy); }

.diagram { background: #F8FAFC; border: 1px solid #E8ECF2; border-radius: 3px; padding: 26px 28px; }
.diag-cap { font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted-3); margin-bottom: 12px; }
.diag-cap--after { color: var(--cyan-ink); }
.diag-row { display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; }
.diag-box { border-radius: 3px; padding: 9px 10px; font-size: 12px; font-weight: 700; }
.diag-box--dashed { border: 1.5px dashed var(--muted-4); padding: 10px; background: var(--white); }
.diag-box--navy-o { border: 1px solid var(--navy); background: var(--white); }
.diag-box--cyan-o { border: 1px solid var(--cyan); color: var(--cyan-deep); background: #F2FBFD; }
.diag-box--navy { background: var(--navy); color: var(--white); text-align: center; }
.diag-box--cyan { background: var(--cyan); color: var(--navy); text-align: center; }
.diag-box--plain { border: 1px solid var(--field-border); background: var(--white); padding: 11px 12px; }
.diag-sub { font-size: 10px; color: var(--muted-3); margin-bottom: 7px; letter-spacing: 0.06em; }
.diag-stack { display: flex; flex-direction: column; gap: 6px; }
.diag-conn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 8px; }
.diag-conn .lbl { font-size: 10px; color: var(--muted); font-weight: 500; }
.diag-conn .lbl--muted { color: var(--muted-3); }
.diag-conn .lbl--cyan { color: var(--cyan-deep); }
.diag-arrow { display: flex; align-items: center; width: 100%; }
.diag-arrow .track { flex: 1; height: 1.5px; }
.diag-arrow .track--dashed { border-top: 1.5px dashed var(--muted-4); height: 0; }
.diag-arrow .track--navy { background: var(--navy); }
.diag-arrow .track--cyan { background: var(--cyan-ink); }
.diag-arrow .head { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; flex: none; }
.diag-arrow .head--muted { border-left: 6px solid var(--muted-4); }
.diag-arrow .head--navy { border-left: 6px solid var(--navy); }
.diag-arrow .head--cyan { border-left: 6px solid var(--cyan-ink); }
.diag-x { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #70788E; color: #70788E; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; margin: 0 3px; flex: none; }
.diag-note { font-size: 10.5px; color: var(--muted-3); margin-top: 4px; line-height: 1.6; }
.diag-stall { font-size: 12px; font-weight: 700; color: var(--text); }
.diag-mid { display: flex; flex-direction: column; align-items: center; margin: 12px 0; }
.diag-mid .stem { width: 1px; height: 10px; background: var(--muted-4); }
.diag-pill { background: #E4F7FB; border: 1px solid var(--cyan); color: #0B5866; font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 999px; text-align: center; }
.diag-after-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.diag-badge { font-size: 10px; font-weight: 700; color: var(--navy); border: 1px solid var(--navy); border-radius: 999px; padding: 3px 10px; }
.diag-rows { display: flex; flex-direction: column; gap: 8px; }
.diag-foot { margin-top: 12px; font-size: 11px; color: var(--muted); line-height: 1.7; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-grid { display: grid; grid-template-columns: 340px 1fr; gap: 96px; align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-photo { margin-top: 28px; width: 100%; height: 200px; border-radius: 3px; overflow: hidden; }
.faq-photo img { width: 100%; height: 100%; object-fit: cover; }
.faq-list { border-top: 1px solid var(--navy); }
.faq-item { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 30px 4px; border-bottom: 1px solid var(--line-2); }
.faq-qnum { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--muted-4); }
.faq-q { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.8; margin-bottom: 10px; letter-spacing: 0.03em; }
.faq-a { font-size: 14px; line-height: 2.05; color: var(--text); }

/* =====================================================================
   CONTACT / FORM
   ===================================================================== */
.contact-lead { font-size: 15px; line-height: 2.1; color: var(--text); max-width: 760px; margin-bottom: 64px; }
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: start; }
.step-label { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--navy); margin-bottom: 24px; }
.step-label .sub { color: var(--muted-3); font-weight: 500; letter-spacing: 0.06em; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-bottom: 36px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--field-border);
  border-radius: 2px; font-size: 14px; font-family: var(--sans);
  background: var(--white); color: var(--ink); outline: none;
  transition: border-color 0.15s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }

/* ---------- バリデーション表示 ---------- */
/* 未入力欄：赤枠＋エラーメッセージ */
.field .err { font-size: 11.5px; color: #C8493F; letter-spacing: 0.02em; display: none; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #D8584F;
  box-shadow: 0 0 0 3px rgba(216, 88, 79, 0.12);
}
.field.invalid .err { display: block; }
/* 送信失敗時のエラー表示（既定は非表示） */
.form-error {
  display: none;
  margin: 28px 0 0; padding: 14px 16px;
  border: 1px solid rgba(216, 88, 79, 0.35); border-radius: 3px;
  background: rgba(216, 88, 79, 0.07);
  font-size: 13px; line-height: 1.9; font-weight: 500; color: #C8493F;
}
.form-error.is-shown { display: block; }

.step2-toggle {
  display: flex; align-items: center; gap: 12px; background: none; border: none;
  padding: 0; margin: 0 0 8px 0; cursor: pointer;
}
.step2-toggle .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1px solid var(--navy); border-radius: 50%;
  font-size: 13px; line-height: 1; color: var(--navy);
}
.step2-toggle .kicker { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--navy); }
.step2-toggle .hint { font-size: 12.5px; color: var(--muted-3); }

.step2-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.step2-collapse.open { grid-template-rows: 1fr; }
.step2-inner { overflow: hidden; }
.step2-body { padding: 28px 0 8px 0; display: flex; flex-direction: column; gap: 24px; }
.field-block { display: flex; flex-direction: column; gap: 10px; }
.field-block > .lbl { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--field-border);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; cursor: pointer;
  transition: border-color 0.15s var(--ease);
}
.chip:hover { border-color: var(--navy); }
.chip input { accent-color: var(--navy); margin: 0; }

.submit-row { margin-top: 36px; display: flex; align-items: center; gap: 24px; }
.submit-row .btn-primary { font-size: 14.5px; padding: 18px 56px; letter-spacing: 0.06em; }
.submit-note { font-size: 12.5px; color: var(--muted-2); }

.form-done { border: 1px solid var(--line-3); border-radius: 3px; background: #FCFDFE; padding: 72px 64px; }
.form-done .rule { width: 26px; height: 2px; background: var(--cyan); margin-bottom: 28px; }
.form-done .title { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.9; margin-bottom: 18px; letter-spacing: 0.04em; }
.form-done .body { font-size: 14.5px; line-height: 2.15; color: var(--text); margin-bottom: 32px; }
.form-done .back { background: none; border: none; padding: 0; font-size: 13.5px; font-weight: 500; color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 3px; cursor: pointer; }
.is-hidden { display: none; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--navy); }
.footer-inner { padding-top: 80px; padding-bottom: 56px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 64px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.footer-brand .mark { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--white); }
.footer-brand .sub { font-size: 11.5px; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; }
.footer-tag { font-size: 12.5px; line-height: 2.0; color: rgba(255,255,255,0.6); }
.footer-links { display: flex; gap: 36px; font-size: 13px; }
.footer-links a { color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: var(--cyan); }
.footer-rule { height: 1px; background: rgba(255,255,255,0.14); margin: 44px 0 32px 0; }
.footer-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; font-size: 11.5px; line-height: 1.9; color: rgba(255,255,255,0.5); }
.copyright { margin-top: 40px; font-family: var(--display); font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); }

/* =====================================================================
   MOTION (JS-driven reveal / grow) — respects reduced-motion
   ===================================================================== */
.js-motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
.js-motion [data-grow="y"] { transform: scaleY(0); transform-origin: center top; transition: transform 1.5s var(--ease); transition-delay: 200ms; }
.js-motion [data-grow="y"].is-in { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal], .js-motion [data-grow] { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .container { padding-left: 40px; padding-right: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { justify-content: flex-start; }
  .process-grid { grid-template-columns: 1fr; gap: 48px; }
  .initial-card { position: static; }
  .case-card { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-head { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .container { padding-left: 22px; padding-right: 22px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero-grid { padding-top: 64px; }
  .hero-title { font-size: 38px; }
  .section-title { font-size: 28px; }
  .nav { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .ic-number { font-size: 76px; }

  /* 想定ケース図：横3カラムだと各ボックスが縦に伸びるため、縦積みに組み替える */
  .diagram { padding: 22px 16px; }
  .diag-row { grid-template-columns: 1fr; gap: 10px; }
  /* コネクタ（矢印）を縦向きに。線は縦線、矢じりは下向きに回転 */
  .diag-conn { flex-direction: row; gap: 8px; padding: 2px 0; justify-content: center; }
  .diag-conn .lbl { order: 2; }
  .diag-arrow { flex-direction: column; width: auto; height: 34px; }
  .diag-arrow .track { width: 1.5px; height: auto; flex: 1; }
  .diag-arrow .track--dashed { border-top: 0; border-left: 1.5px dashed var(--muted-4); width: 0; }
  .diag-arrow .head { transform: rotate(90deg); }
  /* 上下2段だった BEFORE 側の売り手/買い手ボックスは、内部の縦積みはそのまま活かす */
  .diag-box { text-align: center; }
  .diag-box--dashed, .diag-box--plain { text-align: left; }
  .footer-notes { grid-template-columns: 1fr; }
  .submit-row { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* スマホのコンデンス：高さをさらに詰め、サブテキストは畳む */
  .site-header.is-condensed .header-inner { height: 52px; }
  .site-header.is-condensed .brand-sub { max-width: 0; opacity: 0; margin-left: -16px; }
}
