/* =========================================================================
   株式会社FitCree — コーポレートサイト style.css
   デザイン：白基調・設計図（blueprint）× AI×Creative のアイリディセント・グラデ。
   signature：ページ左を貫くグラデのスレッド線／全幅グラデ帯／特大タイポ。
   配色：機能色＝コバルト（堅実）。signature＝コバルト→バイオレット→シアンのグラデ。
   影は使わない（フラットなカラー面・大角丸・ヘアラインで奥行きを表現）。
   タイポ：和文 Noto Sans JP / 欧文ディスプレイ Space Grotesk / データ JetBrains Mono。
   ========================================================================= */

/* ----------------------------- トークン ----------------------------- */
:root {
  /* 配色 */
  --canvas:       #f5f6f9;  /* クールな製図紙 */
  --canvas-alt:   #eef0f6;  /* 交互セクションの面 */
  --surface:      #ffffff;  /* カード・ヘッダー */
  --ink:          #0c0e16;  /* 近黒（クール） */
  --ink-soft:     #242a38;  /* 見出し補助 */
  --slate:        #545c70;  /* 本文 */
  --slate-soft:   #828b9d;  /* キャプション */
  --line:         #dde1ec;  /* ヘアライン */
  --line-strong:  #c5cbdb;

  /* 機能色（ボタン・リンク・フォーカス）＝コバルト。コントラスト重視で堅実に */
  --accent:       #2540ff;  /* コバルト */
  --accent-ink:   #2235d6;  /* 白地テキスト/リンク用 */
  --accent-soft:  #ecefff;  /* コバルト淡面 */
  --accent-line:  #c6cdff;

  /* signature グラデ（AI×Creative：コバルト→バイオレット→シアン） */
  --violet:       #6d28ff;
  --cyan:         #19c6e6;
  --coral:        #ff5a3c;  /* 極小の差し色pop（仮タグ等のみ） */
  --grad:         linear-gradient(102deg, #2540ff 0%, #6d28ff 52%, #19c6e6 100%);
  --grad-soft:    linear-gradient(102deg, #eef0ff 0%, #f1ecff 52%, #e8fbff 100%);

  /* タイポ */
  --font-jp:      "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Space Grotesk", var(--font-jp);
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 形（影は使わない） */
  --radius:    20px;
  --radius-sm: 12px;

  /* レイアウト（左右を大胆に広く） */
  --container: 1440px;
  --gutter: clamp(20px, 5.5vw, 80px);
}

/* ----------------------------- リセット ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, blockquote, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ----------------------------- 共通部品 ----------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 780px; }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .04em;
  font-feature-settings: normal;
}

.br-pc { display: none; }
@media (min-width: 720px) { .br-pc { display: inline; } }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.accent-mark { color: var(--accent); }

/* ボタン */
.btn {
  --btn-pad-y: 13px;
  --btn-pad-x: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-sm { --btn-pad-y: 10px; --btn-pad-x: 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.text-link {
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  transition: border-color .18s ease, color .18s ease;
  display: inline;
}
.text-link:hover { border-color: var(--accent-ink); }
.ext-icon { display: inline-block; vertical-align: -1px; margin-left: 3px; }

/* ----------------------- signature：スレッド線 ----------------------- */
.thread {
  position: fixed;
  top: 0;
  left: clamp(10px, 3.4vw, 38px);
  width: 2px;
  height: 100vh;
  background: var(--line);
  z-index: 50;
  pointer-events: none;
}
.thread-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #2540ff 0%, #6d28ff 55%, #19c6e6 100%);
  transform: scaleY(var(--thread-progress, 0));
  transform-origin: top center;
}
@media (prefers-reduced-motion: reduce) {
  .thread-fill { transition: none; }
}
@media (max-width: 560px) {
  .thread { left: 0; }
}

/* ----------------------------- ヘッダー ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--canvas) 80%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.brand-mark { display: inline-flex; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.01em;
}
.header-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
}
.header-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--slate);
  position: relative;
  padding: 4px 0;
  transition: color .18s ease;
}
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.header-nav a:hover { color: var(--ink); }
.header-nav a:hover::after { transform: scaleX(1); }
.site-header .btn-primary { margin-left: 0; }

@media (max-width: 760px) {
  .header-nav { display: none; }
  .site-header .btn-primary { margin-left: auto; }
}

/* ----------------------------- ヒーロー ----------------------------- */
.hero {
  position: relative;
  padding-top: clamp(64px, 12vw, 132px);
  padding-bottom: clamp(56px, 10vw, 108px);
  overflow: hidden;
}
/* 製図紙のうっすらしたグリッド */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 72%);
  opacity: .5;
  pointer-events: none;
}
/* アイリディセントのソフトグロー（影ではなく色で奥行きを出す） */
.hero::after {
  content: "";
  position: absolute;
  top: -14%;
  right: -6%;
  width: min(680px, 52vw);
  aspect-ratio: 1;
  background: var(--grad);
  filter: blur(96px);
  opacity: .16;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) { .hero::after { filter: blur(96px); } }
.hero-inner { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--slate);
  font-size: 12.5px;
  margin-bottom: clamp(22px, 4vw, 34px);
}
.hero-kicker .mono { color: var(--ink-soft); }
.hero-kicker-sep {
  width: 28px; height: 1px;
  background: var(--line-strong);
}
.hero-title {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(34px, 8.6vw, 96px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}
.accent-mark {
  position: relative;
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  margin-top: clamp(24px, 4vw, 34px);
  max-width: 30em;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.9;
  color: var(--slate);
  font-weight: 500;
}
.hero-actions {
  margin-top: clamp(30px, 5vw, 42px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-status {
  margin-top: clamp(34px, 6vw, 52px);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px 11px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--slate);
  max-width: 100%;
}
.status-dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.status-dot::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: .5;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(.6); opacity: .6; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot::after { animation: none; }
}

/* ----------------------------- セクション共通 ----------------------------- */
.section {
  padding-block: clamp(64px, 11vw, 132px);
  position: relative;
}
.section-alt { background: var(--canvas-alt); }

/* About本文：lead-statement に続く2つ目の lead は上に間隔を空ける */
.lead-statement.statement-cont { margin-top: clamp(28px, 4vw, 48px); }

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
}
@media (min-width: 880px) {
  .section-grid {
    grid-template-columns: minmax(300px, 380px) 1fr;
    gap: clamp(48px, 6vw, 104px);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--slate);
  text-transform: uppercase;
}
.node {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--canvas);
  transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease;
  flex: none;
}
.is-inview .node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.section-alt .node { background: var(--canvas-alt); }

.section-title {
  margin-top: 18px;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.section-rail-top { margin-bottom: clamp(36px, 5vw, 56px); }

.draft-tag {
  display: inline-block;
  margin-left: 12px;
  vertical-align: middle;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #fff;
  background: var(--coral);
  border-radius: 6px;
  padding: 3px 9px;
  line-height: 1;
}

/* 本文タイポ */
.lead-statement {
  font-size: clamp(19px, 2.7vw, 27px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: -.005em;
  color: var(--ink);
}
.prose {
  margin-top: 22px;
  font-size: 16px;
  line-height: 2;
  color: var(--slate);
}

/* ----------------------------- What we do ----------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.work-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 36px;
  overflow: hidden;
}
/* 上辺のグラデ・ハイライト（常時表示。ホバー演出はしない＝クリッカブルに見せない） */
.work-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
}
.work-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.work-title {
  margin-top: 22px;
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.work-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--slate);
}

/* ----------------------------- 代表メッセージ ----------------------------- */
.message-quote {
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  padding-left: clamp(20px, 3vw, 32px);
}
.message-quote p {
  font-size: clamp(18px, 2.5vw, 23px);
  font-weight: 700;
  line-height: 1.85;
  color: var(--ink);
}
.message-placeholder {
  margin-top: 18px;
  color: var(--slate-soft);
  font-weight: 500;
  font-style: normal;
}
.message-sign {
  margin-top: 28px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--slate);
}
.message-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
}

/* ----------------------------- 会社概要 ----------------------------- */
.company-table {
  border-top: 1px solid var(--line);
}
.company-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 0;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) {
  .company-row {
    grid-template-columns: 140px 1fr;
    gap: 0 24px;
    padding: 20px 4px;
  }
}
.company-row dt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--slate-soft);
  padding-top: 2px;
}
.company-row dd {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ----------------------------- お問い合わせ ----------------------------- */
.contact-note {
  margin-top: 20px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--slate);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}

/* ---- Contact：全幅グラデ帯＋特大タイポ（signatureの見せ場） ---- */
.contact-band {
  position: relative;
  background: var(--grad);
  color: #fff;
  overflow: hidden;
}
/* エッジtoエッジの特大ワード */
.bleed-word {
  position: absolute;
  left: 50%;
  top: clamp(28px, 5vw, 56px);
  transform: translateX(-50%);
  width: max-content;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(96px, 23vw, 360px);
  line-height: .8;
  letter-spacing: -.03em;
  color: #fff;
  opacity: .14;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}
.contact-band .container { position: relative; z-index: 1; }
.contact-band .eyebrow { color: rgba(255,255,255,.82); }
.contact-band .node { background: #fff; border-color: rgba(255,255,255,.7); }
.contact-band.is-inview .node { background: #fff; border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.contact-band .section-title { color: #fff; }
.contact-band .contact-note { color: rgba(255,255,255,.9); }
/* グラデ面上のリンクのみ白に（白カード内のプライバシーリンクには波及させない） */
.contact-band .section-rail .text-link { color: #fff; border-color: rgba(255,255,255,.6); }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field label,
.field > .field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .01em;
}
.required-label, .optional-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 4px;
  vertical-align: 1px;
}
.required-label { color: var(--accent-ink); background: var(--accent-soft); }
.optional-label { color: var(--slate-soft); background: var(--canvas-alt); border: 1px solid var(--line); }

.field input[type="text"],
.field input[type="email"],
.field textarea,
.select-wrap select {
  width: 100%;
  font-family: var(--font-jp);
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
.field input::placeholder,
.field textarea::placeholder { color: var(--slate-soft); }
.field input:focus,
.field textarea:focus,
.select-wrap select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}
.select-caret {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--slate);
  pointer-events: none;
}

.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate);
  cursor: pointer;
  font-weight: 400;
}
.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--canvas);
  position: relative;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.check input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6.5px; top: 3px;
  width: 4px; height: 8.5px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.check input[type="checkbox"]:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}
.privacy-field { margin-top: 2px; }

.form-note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--slate-soft);
}
.form-error {
  font-size: 13.5px;
  color: #c0392b;
  background: #fdecea;
  border: 1px solid #f5c6c0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0;
}
.cf-turnstile { min-height: 0; }

.contact-thanks {
  text-align: center;
  padding: 24px 12px;
}
.contact-thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.contact-thanks h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.contact-thanks p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--slate);
}

/* ----------------------------- フッター ----------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--canvas);
  padding-block: clamp(40px, 6vw, 64px);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.footer-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--slate);
  transition: color .18s ease;
}
.footer-nav a:hover { color: var(--accent-ink); }
.footer-copy {
  font-size: 12px;
  color: var(--slate-soft);
  letter-spacing: .04em;
}

/* ----------------------------- スクロール演出 ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
