/* =========================================
   チームITラボ  /  Web Site
   Style Sheet (Blue-tone, Trustworthy & Warm)
   ========================================= */

/* Design Tokens */
:root {
  /* Ink (text) */
  --ink: #0f2a44;            /* メイン濃紺 */
  --ink-soft: #2c4a6b;
  --ink-mute: #6b7f97;

  /* Paper (background) */
  --paper: #fbf8f1;          /* 紙のような優しい白（ほんのり暖色アイボリー） */
  --paper-2: #f3eee4;
  --cream: #f7f1e3;

  /* Terracotta（主役）── A案 2026/6/7 確定。詳細は DESIGN.md */
  --terra: #d97757;          /* メインのテラコッタ */
  --terra-deep: #c15f3c;     /* ホバー/強調 */
  --terra-bright: #e08a63;   /* FV CTAなど“動き”用 */
  --terra-soft: #f4d7c4;     /* 枠線・やわらかい塗り */
  --terra-tint: #fbeee4;     /* 背景のうっすら色味 */

  /* Blue palette → テラコッタへ統一（変数経由の旧青を一括で温もり側へ）。
     締め色が必要な箇所は --ink(濃紺) を使う。 */
  --blue: var(--terra);
  --blue-deep: var(--terra-deep);
  --blue-soft: var(--terra-soft);
  --blue-tint: var(--terra-tint);

  /* Accent */
  --accent: #d97757;         /* 温かみのあるテラコッタ */
  --accent-soft: #f4d7c4;
  --leaf: #7a9b7e;           /* 落ち着いた緑（差し色） */

  --rule: #d9d2c2;
  --shadow: 0 1px 0 rgba(15,42,68,.04), 0 8px 32px -12px rgba(15,42,68,.18);

  /* 動きのイージング（やわらかな ease-out） */
  --ease: cubic-bezier(.22,.61,.36,1);

  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  --f-display: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --f-body: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --f-serif: 'Fraunces', 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === 動く複合背景 === */
/* レイヤー1: 紙のざらつき(ノイズ) + 薄いドットグリッド(固定) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='180'%20height='180'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'%20opacity='0.22'/%3E%3C/svg%3E"),
    radial-gradient(circle, rgba(193,95,60,.06) 1px, transparent 1px);
  background-size: 180px 180px, 32px 32px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ====================
   Header / Nav
==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(250,250,246,.85);
  border-bottom: 1px solid rgba(15,42,68,.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  flex-shrink: 0;
}

.logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
}

.logo-jp {
  display: block;
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: .1em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s;
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--blue-deep);
}

.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-links a.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color .25s ease, transform .28s var(--ease), box-shadow .28s var(--ease);
}

.nav-links a.nav-cta:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(217,119,87,.5);
}

@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 16px; font-size: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* B案: ピル型ナビ (fv-b1.html / fv-b2.html 専用 / 承認モック準拠) */
.nav-pills { gap: 10px; }
.nav-pills a {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(15,42,68,.05);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-pills a:hover {
  background: rgba(217,119,87,.14);
  color: var(--blue-deep);
}
/* ピルでは下線インジケータは使わない */
.nav-pills a.active::after { display: none; }
.nav-pills a.active { background: rgba(217,119,87,.16); color: var(--ink); }

/* メンバー一覧：最重要導線。#d97757のグラデーション塗りで目立たせる */
.nav-pills a.nav-member {
  background: linear-gradient(135deg, #e08a63 0%, #d97757 50%, #c15f3c 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(240,145,54,.7);
}
.nav-pills a.nav-member:hover {
  background: linear-gradient(135deg, #d97757 0%, #c15f3c 60%, #a94c2c 100%);
  color: #fff;
  box-shadow: 0 12px 22px -10px rgba(240,145,54,.8);
}

/* アンカー遷移時、固定ヘッダーに見出しが隠れないように */
.block[id] { scroll-margin-top: 84px; }

@media (max-width: 980px) {
  .nav-pills { gap: 6px; font-size: 12px; }
  .nav-pills a { padding: 8px 13px; }
}

/* スマホ: ピル型ナビは消さず、ロゴ下に折り返して全項目を表示 */
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; row-gap: 12px; justify-content: center; }
  .logo { width: 100%; justify-content: center; }
  .nav-links.nav-pills { width: 100%; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .nav-links.nav-pills a { display: inline-flex; align-items: center; font-size: 12px; padding: 8px 14px; }
}

/* ====================
   Hero (Top)
==================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

/* FV専用: 動く光のグラデーションを強調 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at var(--hx1, 15%) var(--hy1, 25%), rgba(217,119,87,.28), transparent 40%),
    radial-gradient(circle at var(--hx2, 85%) var(--hy2, 75%), rgba(217,119,87,.22), transparent 40%),
    radial-gradient(circle at var(--hx3, 70%) var(--hy3, 15%), rgba(122,155,126,.18), transparent 35%),
    radial-gradient(circle at var(--hx4, 25%) var(--hy4, 85%), rgba(244,215,196,.5), transparent 35%);
  pointer-events: none;
  z-index: 0;
  /* FVの光のグラデーションの動きも一旦停止（静止） */
  animation: none;
}

@keyframes heroBlobMove {
  0%, 100% {
    --hx1: 15%;  --hy1: 25%;
    --hx2: 85%;  --hy2: 75%;
    --hx3: 70%;  --hy3: 15%;
    --hx4: 25%;  --hy4: 85%;
  }
  33% {
    --hx1: 35%;  --hy1: 55%;
    --hx2: 65%;  --hy2: 45%;
    --hx3: 45%;  --hy3: 35%;
    --hx4: 55%;  --hy4: 65%;
  }
  66% {
    --hx1: 55%;  --hy1: 45%;
    --hx2: 45%;  --hy2: 55%;
    --hx3: 25%;  --hy3: 55%;
    --hx4: 75%;  --hy4: 35%;
  }
}

@property --hx1 { syntax: '<percentage>'; initial-value: 15%; inherits: false; }
@property --hy1 { syntax: '<percentage>'; initial-value: 25%; inherits: false; }
@property --hx2 { syntax: '<percentage>'; initial-value: 85%; inherits: false; }
@property --hy2 { syntax: '<percentage>'; initial-value: 75%; inherits: false; }
@property --hx3 { syntax: '<percentage>'; initial-value: 70%; inherits: false; }
@property --hy3 { syntax: '<percentage>'; initial-value: 15%; inherits: false; }
@property --hx4 { syntax: '<percentage>'; initial-value: 25%; inherits: false; }
@property --hy4 { syntax: '<percentage>'; initial-value: 85%; inherits: false; }

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-tint) 0%, var(--cream) 100%);
  border-radius: var(--r-xl);
  padding: 52px 56px;
  position: relative;
  overflow: hidden;
}

.hero-sub {
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 0 18px;
}

.hero-foot {
  text-align: center;
  margin-top: 44px;
}

.hero-tagline {
  font-size: clamp(16px, 2.1vw, 20px);
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.9;
  margin: 0 0 28px;
}

.hero-foot .hero-ctas {
  justify-content: center;
}

.btn-lg {
  padding: 20px 38px;
  font-size: 17px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(122,155,126,.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(122,155,126,.2); }
  50% { box-shadow: 0 0 0 8px rgba(122,155,126,.0); }
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
}

.hero-title em {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--blue-deep);
}

.hero-title em::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 4px;
  height: 14px;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 4px;
}

.hero-lead {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin: 0 0 32px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Hero Illustration === */
.hero-illust {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 460px;
  margin-left: auto;
  animation: fadeInUp 1s ease;
}

.hero-illust svg {
  width: 100%;
  height: auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* イラスト内の人物がほんのり呼吸 */
/* 外側のgには HTMLのtransformで位置決め、内側のgにCSSアニメーション */
.hero-illust .person-inner {
  transform-origin: center;
  animation: breathe 4s ease-in-out infinite;
}
.hero-illust .p1 .person-inner { animation-delay: 0s; }
.hero-illust .p2 .person-inner { animation-delay: 0.5s; }
.hero-illust .p3 .person-inner { animation-delay: 1s; }
.hero-illust .p4 .person-inner { animation-delay: 1.5s; }

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}

/* 装飾の点線 */
.hero-illust .connector {
  stroke-dasharray: 4 4;
  animation: dashFlow 8s linear infinite;
}

@keyframes dashFlow {
  to { stroke-dashoffset: -32; }
}

/* フローティングカード */
.float-card {
  position: absolute;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fcAppear 0.6s ease forwards, float 4s ease-in-out infinite;
}

.float-card .ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: 16px;
  flex-shrink: 0;
}

.fc1 {
  top: 8%;
  left: -8%;
  animation-delay: 0.5s, 0s;
}
.fc1 .ic { background: var(--blue); }

.fc2 {
  top: 50%;
  right: -8%;
  animation-delay: 1s, 1.5s;
}
.fc2 .ic { background: var(--accent); }

.fc3 {
  bottom: 8%;
  left: 5%;
  animation-delay: 1.5s, 3s;
}
.fc3 .ic { background: var(--leaf); }

@keyframes fcAppear {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 26px;
  }
  .hero-illust {
    margin: 0 auto;
    max-width: 320px;
  }
  .hero-foot {
    margin-top: 32px;
  }
  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* ====================
   Buttons
==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background-color .25s ease, color .2s ease, border-color .2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--terra);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terra-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(217,119,87,.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px -6px rgba(217,119,87,.5);
}

.btn-secondary {
  background: transparent;
  color: var(--terra-deep);
  border: 1.5px solid var(--terra);
}

.btn-secondary:hover {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(217,119,87,.4);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px -6px rgba(217,119,87,.45);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn .arrow {
  transition: transform .28s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ====================
   Section common
==================== */
.block {
  padding: 80px 0;
  position: relative;
}
/* 背景の水彩にじみ（案A）：各セクションの四隅にふわっと。中央は空けて可読性を確保 */
.block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(44% 36% at 4% 2%,   rgba(217,119,87,0.11), transparent 60%),
    radial-gradient(40% 34% at 98% 14%, rgba(122,155,126,0.10), transparent 60%),
    radial-gradient(48% 40% at 94% 98%, rgba(217,119,87,0.09), transparent 60%),
    radial-gradient(40% 34% at 2% 96%,  rgba(122,155,126,0.08), transparent 60%);
}
.block > .container { position: relative; z-index: 1; }

.section-head {
  margin-bottom: 48px;
}

/* 余白リズム: モバイルは間延びしないよう詰める */
@media (max-width: 720px) {
  .block { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
}

.section-label {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--blue-deep);
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  display: block;
}

.section-head h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.3;
  margin: 0;
}

/* ====================
   Categories (Top page)
==================== */
/* カテゴリーセクションの背景: ブルーグラデーション+ドット密 (案C) */
.category-block {
  background: linear-gradient(135deg, var(--blue-tint) 0%, var(--blue-soft) 100%);
  overflow: hidden;
}

.category-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15,42,68,.18) 1.2px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.7;
}

.category-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,.5), transparent 60%);
  pointer-events: none;
}

.category-block .container {
  position: relative;
  z-index: 2;
}

.categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 28px 22px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.cat-card:hover::before {
  transform: scaleX(1);
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-tint);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--blue-deep);
}

.cat-card h3 {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
}

.cat-card p {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 880px) {
  .categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .categories { grid-template-columns: 1fr; }
}

/* ====================
   Solution block
==================== */
.solution-block { padding-bottom: 100px; }

.solution {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}

.solution::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(217,119,87,.4), transparent 60%);
}

.solution::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(217,119,87,.15);
  filter: blur(40px);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.solution .section-head { margin-bottom: 0; }
.solution .section-label { color: var(--accent-soft); }
.solution h2 { color: var(--paper); }
.solution p { color: rgba(255,255,255,0.8); font-size: 15px; }

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.05);
  padding: 20px 24px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.25s;
}

.step:hover {
  transform: translateX(4px);
}

.step-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
  font-weight: 600;
  flex-shrink: 0;
}

.step h4 {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--paper);
}

.step p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

@media (max-width: 880px) {
  .solution {
    padding: 48px 28px;
  }
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ====================
   List page
==================== */
.page-header {
  padding: 60px 0 32px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 16px;
}

.breadcrumb a {
  color: var(--blue-deep);
  text-decoration: underline;
}

.page-header h1 {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}

.page-desc {
  color: var(--ink-mute);
  margin: 0;
}

.search-box { margin-bottom: 24px; }

.search-box input {
  width: 100%;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  transition: all 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(217,119,87,.12);
}

.search-wrap { position: relative; }
.search-wrap input { padding-right: 46px; }
.search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--rule);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
}
.search-clear:hover { background: var(--accent); color: #fff; }
.search-clear[hidden] { display: none; }

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: center;
}

.filter-label {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 700;
  margin-right: 4px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: var(--blue-soft);
}

.filter-btn.active {
  background: #d97757;
  color: #fff;
  box-shadow: 0 4px 12px -6px rgba(240,145,54,.6);
}

.result-count {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 16px;
  font-family: var(--f-serif);
  font-style: italic;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding-bottom: 80px;
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--ink-mute);
}

.member-card {
  background: var(--paper);
  border: 1px solid #e2dccd;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 6px 22px -16px rgba(15,42,68,.25);
  animation: cardFadeIn 0.6s ease backwards;
}

/* ===== メンバーカード v2（ラベル付き掲載スタイル） ===== */
.mc-v2 .mc-head {
  position: relative;
  padding: 20px 22px;
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
}
.mc-v2 .mc-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.14), transparent 60%);
  pointer-events: none;
}
.mc-v2 .mc-head-main { min-width: 0; position: relative; z-index: 1; }
.mc-v2 .mc-head-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.mc-v2 .mc-cat {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--blue-deep);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.mc-v2 .mc-name {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: #fff;
}
.mc-v2 .mc-area {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
}
.mc-v2 .mc-area::before { content: "📍 "; }

.mc-v2 .mc-body {
  flex: 1;
  padding: 22px 24px 8px;
}
.mc-v2 .mc-logo {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  /* ロゴはヘッダー（テラコッタ）上の白タイル。どんなロゴでも破綻しない */
  background: #fff;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 6px 16px -10px rgba(15,42,68,.4);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.mc-v2 .mc-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.mc-v2 .mc-logo.no-img {
  /* ロゴが無い時も白タイル＋頭文字（テラコッタ）で統一 */
  background: #fff;
  box-shadow: 0 6px 16px -10px rgba(15,42,68,.4);
  font-family: var(--f-display);
  font-style: normal;
  font-size: 26px;
  font-weight: 600;
  color: var(--blue-deep);
}
.mc-v2 .mc-info {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mc-v2 .mc-row { margin: 0; }
.mc-v2 .mc-label {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--blue-deep);
  background: var(--blue-tint);
  padding: 2px 9px;
  border-radius: 6px;
  margin-bottom: 5px;
}
.mc-v2 .mc-value {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.mc-v2 .mc-foot {
  padding: 16px 26px 24px;
}
.mc-v2 .mc-btn {
  display: block;
  text-align: center;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue-deep);
  border-radius: 999px;
  padding: 11px 18px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mc-v2:hover .mc-btn {
  background: var(--blue-deep);
  color: #fff;
}

.member-card:nth-child(1) { animation-delay: 0.05s; }
.member-card:nth-child(2) { animation-delay: 0.1s; }
.member-card:nth-child(3) { animation-delay: 0.15s; }
.member-card:nth-child(4) { animation-delay: 0.2s; }
.member-card:nth-child(5) { animation-delay: 0.25s; }
.member-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.member-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-soft);
  box-shadow: 0 18px 40px -20px rgba(15,42,68,.3);
}

.member-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--blue-tint) 0%, var(--cream) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.member-thumb img {
  width: 60%;
  height: auto;
  max-height: 80%;
  object-fit: contain;
}

.member-thumb.no-img {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 36px;
  color: var(--blue-deep);
  font-weight: 600;
}

.member-body {
  padding: 24px 26px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-tag {
  display: inline-block;
  background: var(--blue-tint);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.member-card h3 {
  font-family: var(--f-display);
  font-size: 18px;
  margin: 0 0 10px;
}

.member-card .desc {
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 16px;
  flex: 1;
}

.member-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

.member-meta .area::before {
  content: "📍 ";
}

.member-meta .more {
  color: var(--blue-deep);
  font-weight: 700;
}

@media (max-width: 880px) {
  .members-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mc-v2 .mc-head { padding: 18px; gap: 14px; }
  .mc-v2 .mc-logo { width: 56px; height: 56px; border-radius: 12px; }
}

/* ====================
   Member detail page
==================== */
.member-hero {
  background: linear-gradient(120deg, var(--terra-deep) 0%, var(--terra) 100%);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  max-width: 820px;
  margin: 0 auto 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 28px;
}
.member-hero-main { flex: 1; min-width: 0; }
.member-hero-logo {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 10px 30px -12px rgba(15,42,68,.35);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.member-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}
.member-hero-logo.no-img {
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 600;
  color: var(--terra);
}

.member-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.16), transparent 60%);
  pointer-events: none;
}

.member-hero .member-tag {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

/* 詳細ヒーロー：カテゴリーを複数タグで横並び（折り返し可） */
.member-hero .member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.member-hero .member-tags .member-tag {
  margin-bottom: 0;
}

.member-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
  color: #fff;
}

.member-tagline {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.member-hero .member-tagline {
  color: rgba(255,255,255,.9);
}

.member-detail {
  display: block;
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.member-main {
  background: #fff;
  border: 1px solid #ece6d8;
  border-radius: var(--r-lg);
  padding: 0 36px;
  box-shadow: 0 6px 22px -16px rgba(15,42,68,.22);
}
.md-section {
  padding: 28px 0;
  margin: 0;
  border-top: 1px solid #ece6d8;
}
.md-section:first-child { border-top: none; }

.md-section h2 {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 0 0 20px;
  position: relative;
}

.md-section h2::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.md-section p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2;
  margin: 0 0 16px;
  /* スプレッドシートのセル内改行（段落）をそのまま表示する */
  white-space: pre-line;
}

.md-info {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px 20px;
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

.md-info dt {
  color: var(--ink-mute);
}

.md-info dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.md-img-wrap {
  margin-top: 20px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
}

.md-img-wrap img {
  width: 100%;
  display: block;
}

/* 補足画像が複数枚のときは縦に1枚ずつ並べる */
.md-img-wrap.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: none;
  overflow: visible;
}

.md-img-wrap.gallery img {
  border-radius: var(--r-lg);
}

/* メンバー詳細：相談ボックス（アピールの下に配置） */
.member-cta {
  background: #fff;
  border: 1px solid #ece6d8;
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-top: 18px;
  box-shadow: 0 6px 22px -16px rgba(15,42,68,.22);
}

.member-cta h3 {
  font-family: var(--f-display);
  font-size: 18px;
  margin: 0 0 10px;
}

.member-cta p {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0 0 22px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.cta-row .btn {
  flex: 1 1 0;
  margin: 0;
}

.member-cta .aside-link {
  display: inline-block;
  margin-top: 18px;
  color: #c15f3c;
}
.member-cta .aside-link:hover { color: #a94c2c; }

/* CTAボタンをトップ（ナビ「メンバー一覧」）のオレンジに合わせる */
.member-cta .btn-primary {
  background: linear-gradient(135deg, #e08a63 0%, #d97757 50%, #c15f3c 100%);
  box-shadow: 0 8px 18px -10px rgba(240,145,54,.7);
}
.member-cta .btn-primary:hover {
  background: linear-gradient(135deg, #d97757 0%, #c15f3c 60%, #a94c2c 100%);
  box-shadow: 0 12px 24px -8px rgba(240,145,54,.5);
}
.member-cta .btn-secondary {
  color: #c15f3c;
  border-color: #d97757;
}
.member-cta .btn-secondary:hover {
  background: #d97757;
  color: #fff;
  border-color: #d97757;
  box-shadow: 0 12px 24px -10px rgba(240,145,54,.45);
}

@media (max-width: 880px) {
  .member-hero {
    padding: 26px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .member-hero-logo { width: 70px; height: 70px; border-radius: 16px; }
  .member-hero-logo.no-img { font-size: 28px; }
  .member-main { padding: 0 22px; }
  .md-section { padding: 22px 0; }
  .member-cta { padding: 24px 22px; }
}

@media (max-width: 480px) {
  /* 基本情報：スマホはラベルの真下に値を置く縦積み（ラベルと値が離れすぎないように） */
  .md-info { grid-template-columns: 1fr; gap: 2px 0; }
  .md-info dt { margin-top: 14px; }
  .md-info dt:first-child { margin-top: 0; }
}

@media (max-width: 560px) {
  .cta-row { flex-direction: column; }
}

/* ====================
   Contact form
==================== */
.contact-form {
  max-width: 700px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 40px;
  margin-bottom: 80px;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 22px;
}

.form-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.required {
  background: var(--accent);
  color: var(--paper);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: all 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(217,119,87,.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;       /* 中央揃え */
  margin: 20px 0 0;
  text-wrap: balance;       /* 2行の長さを均等にして、2行目がぽつんと短くならないよう調整 */
}

/* モーダル内「カレンダー予約 ↔ フォーム」の区切り */
.modal-or {
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
  margin: 14px 0 18px;
}

.thank-you {
  text-align: center;
  padding: 80px 20px;
  margin-bottom: 80px;
}

.thank-you h2 {
  font-family: var(--f-display);
  font-size: 28px;
  margin: 12px 0 16px;
}

.thank-you p {
  color: var(--ink-soft);
  margin: 0 0 32px;
}

@media (max-width: 720px) {
  .contact-form { padding: 28px 24px; }
}

/* ====================
   Footer
==================== */
.site-footer {
  background: linear-gradient(180deg, #c15f3c 0%, #a94c2c 100%);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 30px;
  margin-top: 0;          /* 余白に地のテクスチャが透ける「グレーの筋」を解消 */
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
}
.footer-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 14px -8px rgba(0,0,0,.45);
}
.footer-logo-badge img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}

.footer-logo {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--paper);
  margin: 0;
  font-weight: 900;
}

.footer-text {
  font-size: 13px;
  margin: 0 0 24px;
}

.footer-company {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 14px;
}
.footer-company a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.footer-company a:hover { color: var(--terra-soft); }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin: 0;
  font-family: var(--f-serif);
  font-style: italic;
}

.pain-block {
  padding-top: 20px;
  padding-bottom: 30px;
  background: #f7f7f5;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.pain-card {
  padding: 22px 22px;
  border-radius: 20px;
  background: #ffffff;
}

.pain-card p {
  margin: 0;
  line-height: 1.8;
  font-size: 15px;
  color: #243447;
}

.pain-lead {
  margin-top: 26px;
  text-align: center;
  font-size: 16px;
  line-height: 1.9;
  color: #445468;
}

@media (max-width: 768px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .pain-card {
    padding: 18px 18px;
  }

  .pain-lead {
    font-size: 15px;
  }
}

/* ====================
   ニーズと課題 (fv-b1/b2 コンテンツ #needs / 津村構成準拠)
==================== */
.needs-block {
  padding-top: 56px;
  padding-bottom: 64px;
  background: var(--terra-soft);   /* トップより濃いテラコッタ地 */
}

/* --- 課題→解決→効果 カード (リファレンス踏襲・テラコッタ配色) --- */
.issue-grid {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  gap: 22px;
  margin-top: 44px;
}

.issue-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px -22px rgba(15, 42, 68, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -22px rgba(15, 42, 68, .4);
}

/* 上段：課題（タイトル＋箇条書き） */
.issue-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 24px 24px;
}

.issue-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 126px;
  margin: 0 0 16px;
  background: transparent;   /* グレー背景なし。フレームは画像側に内包 */
  color: var(--terra-deep);
}
.issue-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.issue-icon-svg { display: none; }

/* 画像未配置時のフォールバック: 従来のテラコッタ丸アイコン */
.issue-icon.is-fallback {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--terra-soft);
}
.issue-icon.is-fallback .issue-icon-svg {
  display: block;
  width: 32px;
  height: 32px;
}

.issue-title {
  margin: 0 0 16px;
  padding-bottom: 16px;
  width: 100%;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.issue-title .ph {
  display: inline-block;
  white-space: nowrap;
}

.issue-points {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.issue-points li {
  position: relative;
  padding-left: 18px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.issue-points li + li {
  margin-top: 10px;
}

.issue-points li::before {
  content: "";
  position: absolute;
  /* 1行目の中心に合わせる（line-height 1.9 の半分＝0.95em）。
     複数行に折り返しても1行目基準でセンターに置ける */
  top: .95em;
  transform: translateY(-50%);
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
}

/* 下段：CTAボタン */
.issue-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: auto 16px 26px;
  padding: 13px 12px;
  border-radius: 999px;
  background: #fff;
  color: #d97757;
  border: 3px double #d97757;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 22px -14px rgba(240, 145, 54, .45);
  transition: background .25s ease, transform .25s var(--ease), box-shadow .25s ease, color .25s ease, border-color .25s ease;
}

.issue-cta span {
  white-space: nowrap;
}

.issue-cta svg {
  flex: none;
  width: 15px;
  height: 15px;
  transition: transform .25s var(--ease);
}

.issue-card:hover .issue-cta {
  background: #fff;
  color: #c15f3c;
  border-color: #c15f3c;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -16px rgba(240, 145, 54, .55);
}

.issue-card:hover .issue-cta svg {
  transform: translateX(3px);
}

@media (max-width: 1180px) {
  .issue-grid { grid-template-columns: minmax(0, 760px); gap: 20px; }
}

@media (max-width: 560px) {
  .issue-grid { grid-template-columns: 1fr; gap: 18px; }
  .issue-top { padding: 26px 22px 22px; }
}

/* ====================
   実現のハードルと解決策 (fv-b1/b2 コンテンツ #services / 津村構成準拠)
==================== */
.hurdle-block {
  padding-top: 56px;
  padding-bottom: 64px;
  background: #f3f2f0;   /* 薄いグレー背景（悩みパート。白い吹き出しを引き立てる） */
}

.hs-pair { margin-top: 40px; }
.hs-pair + .hs-pair { margin-top: 56px; }

.hurdle-card {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: 36px;
  align-items: center;
  padding: 34px 40px;
  border-radius: 20px;
  border: 1px solid #e8e0d2;
  background: #fff;
}

.hurdle-card-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(18px, 2.3vw, 23px);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.7;
  color: var(--blue-deep);
}

.hurdle-list { list-style: none; margin: 0; padding: 0; }
.hurdle-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: #243447;
}
.hurdle-list li:last-child { margin-bottom: 0; }
.hurdle-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.hurdle-arrow {
  width: 0;
  height: 0;
  margin: 16px auto;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-top: 22px solid #e3cdb6;
}

.relief-card {
  padding: 34px 40px 38px;
  border-radius: 20px;
  border: 2px solid var(--terra);   /* after: はっきりしたテラコッタ枠 */
  background: linear-gradient(180deg, #fcefe5 0%, #f7dcc8 100%);   /* 明るい暖色（解決） */
  box-shadow: 0 24px 48px -26px rgba(217, 119, 87, .5);   /* 暖色の浮き */
}

.relief-title {
  margin: 0 0 26px;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(23px, 3.4vw, 30px);
  font-weight: 700;
  color: var(--terra-deep);
  line-height: 1.5;
}

/* 文節を固めて改行を制御（Safari含め全ブラウザで語句の途中で割れない） */
.relief-title .ph {
  display: inline-block;
  white-space: nowrap;
}

.relief-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.relief-list { list-style: none; margin: 0; padding: 0; }
.relief-list li {
  position: relative;
  padding-left: 46px;
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.6;
  color: #243447;
}
.relief-list li:last-child { margin-bottom: 0; }
/* 濃いテラコッタの丸チェックマーク */
.relief-list li::before {
  content: "\2713";   /* ✓ */
  display: grid;
  place-items: center;
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--terra-deep);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.relief-advisor {
  margin: 0;
  width: 215px;
  flex-shrink: 0;
  text-align: center;
}
.relief-advisor.is-empty { display: none; }

.advisor-frame {
  display: block;
  width: 200px;
  height: 200px;
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;               /* ズームした写真を円でクリップ */
  background: #fff;
  border: 6px solid var(--cream);
  box-shadow: 0 0 0 3px var(--terra-soft), 0 14px 28px -12px rgba(15,42,68,.4);
}
.advisor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* 円いっぱいに埋めて、肩の直線カットを円の外へ */
  object-position: center 22%;    /* 顔が中心に来るようフレーミング */
  display: block;
  transform: scale(1.12) translateX(6%);  /* 少しズームして横の余地を作り、顔を右へ寄せる */
  transform-origin: center 30%;
}

.advisor-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -26px;
}
/* バッジ画像が未配置（onerrorで削除）の場合は余白を作らず非表示に */
.advisor-badges:not(:has(img)) { display: none; margin-top: 0; }
.advisor-badges img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

/* チームITロゴバッジ (2ブロック目の解決策) */
.relief-logo { width: 190px; }
.teamit-badge {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 12px 26px -12px rgba(15,42,68,.45);
}

/* セット2: 全国チームのイラスト（右下の余白に配置） */
.relief-team {
  width: 100%;
  max-width: 620px;
  margin: 28px auto 0;   /* カード最下部に中央配置 */
}
.relief-team.is-empty { display: none; }
.relief-team-illust {
  width: 100%;
  height: auto;
  display: block;
}

/* セット2: 画像を最下部に置くため1カラム化 */
.hs-set--keep .relief-row { grid-template-columns: 1fr; }

@media (max-width: 768px) {
  .hurdle-card,
  .relief-card { padding: 26px 22px; }
  .hurdle-card {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  .hurdle-card-title { text-align: center; }
  .hurdle-list { text-align: left; }
  .relief-row { grid-template-columns: 1fr; gap: 22px; }
  .relief-advisor { order: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }   /* スマホでは写真をテキストの下・中央に */
  .relief-team { width: 100%; max-width: 420px; margin: 20px auto 0; }
  /* スマホでは語句の途中で改行されないよう、文節単位で折り返す */
  .relief-title,
  .relief-list li {
    word-break: auto-phrase;   /* 対応ブラウザ（Chrome等）で文節改行 */
    overflow-wrap: anywhere;   /* 非対応時の最低限のはみ出し防止 */
  }
  /* スマホでは箇条書きを少し小さくして読みやすく（PCは20pxのまま） */
  .relief-list li { font-size: 18px; line-height: 1.8; }
  /* PC専用の改行はスマホでは無効化（文節自動改行に任せる） */
  .relief-list .pc-br { display: none; }
  /* スマホで「実現方法をご提案いたします。」を途中で切らず一塊にする */
  .relief-list .keep-sp { white-space: nowrap; }
}

/* --- お悩み吹き出し + 中央イラスト（リファレンス踏襲） --- */
.worry-lead {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--terra-deep);
}

/* === セット構成（大見出し＋小見出し＋吹き出し3つ＋イラスト） === */
.hs-h2 { font-size: clamp(32px, 4.4vw, 50px); }

.hs-set { margin-top: 48px; }
.hs-set + .hs-set { margin-top: 72px; }
.hs-set .hs-sub { margin-top: 0; }

.hs-sub {
  display: table;        /* テキスト幅にフィット（下線を文字いっぱいに） */
  margin: 44px auto 0;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.5;
  color: var(--ink);
}
.hs-sub::after {
  content: "";
  display: block;
  width: 100%;           /* 見出しテキストの幅いっぱい */
  height: 2px;
  margin: 14px 0 0;
  border-radius: 999px;
  background: #c9c5bc;   /* 細いグレー線 */
}

/* 悩みパート：吹き出しを上、画像をその下に縦並び */
.hs-worry {
  max-width: 940px;
  margin: 52px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}
.hs-bubbles {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}
.hs-bubble {
  position: relative;
  width: min(300px, 32%);
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid #e6e4df;
  border-radius: 44px;      /* もっと丸い吹き出し */
  font-size: clamp(15.5px, 1.7vw, 17.5px);
  line-height: 1.75;
  word-break: auto-phrase;   /* PCでも文節単位で折り返す（対応ブラウザ） */
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  text-align: center;
  box-shadow: 0 16px 30px -20px rgba(15, 42, 68, .28);
  z-index: 2;
}
/* しっぽ（縦に長い三角形・真下向き） */
.hs-bubble::before {
  content: ""; position: absolute;
  bottom: -26px; left: 50%; margin-left: -10px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 26px solid #e6e4df;
}
.hs-bubble::after {
  content: ""; position: absolute;
  bottom: -23px; left: 50%; margin-left: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 24px solid #ffffff;
}
/* 左右（1・3番目）は中央より半分ほど下げ、しっぽは内側＝画像側へ寄せ、
   付け根を吹き出し内に食い込ませて隙間を防ぎ、先端を中央下の画像（男性の顔）へ向ける */
.hs-bubble:nth-child(1) { top: 34px; }
.hs-bubble:nth-child(3) { top: 34px; }
.hs-bubble:nth-child(1)::before { bottom: -16px; left: auto; right: 90px; margin-left: 0; transform-origin: 50% 0; transform: rotate(-24deg); }
.hs-bubble:nth-child(1)::after  { bottom: -13px; left: auto; right: 92px; margin-left: 0; transform-origin: 50% 0; transform: rotate(-24deg); }
.hs-bubble:nth-child(3)::before { bottom: -16px; left: 90px; margin-left: 0; transform-origin: 50% 0; transform: rotate(24deg); }
.hs-bubble:nth-child(3)::after  { bottom: -13px; left: 92px; margin-left: 0; transform-origin: 50% 0; transform: rotate(24deg); }

/* 画像（吹き出しの下） */
.hs-worry .hs-illust {
  order: 0;   /* 旧 .worry-illust{order:-1} を上書きし、吹き出しの下へ */
  margin: 0;
  width: clamp(300px, 48vw, 480px);
}
.hs-worry .hs-illust img { width: 100%; height: auto; display: block; margin: 0 auto; filter: grayscale(.3) saturate(.75); }
/* セット2は画像を元の大きさに */
.hs-set--keep .hs-illust { width: clamp(300px, 46vw, 460px); }

/* 悩み → 解決 の橋渡し */
.hs-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 30px 0 24px;
}
.hs-bridge-text {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(19px, 2.6vw, 28px);
  line-height: 1.4;
  color: var(--ink);
}
.hs-bridge-text strong { color: var(--terra-deep); }
.hs-bridge-arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(193, 95, 60, .4);
  animation: bridgeBounce 1.8s ease-in-out infinite;
}
/* 外側に広がる光るリング */
.hs-bridge-arrow::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--terra);
  animation: bridgePulse 1.8s ease-out infinite;
}
.hs-bridge-arrow svg { width: 34px; height: 34px; }

@keyframes bridgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes bridgePulse {
  0%   { transform: scale(1);   opacity: .28; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-bridge-arrow,
  .hs-bridge-arrow::before { animation: none; }
}

/* セット内の解決カード */
.hs-set .relief-card { margin-top: 0; }

@media (max-width: 760px) {
  .hs-worry {
    max-width: 440px;
    margin: 32px auto 0;
    gap: 20px;
  }
  .hs-bubbles { flex-direction: column; align-items: stretch; gap: 14px; }
  .hs-bubble { width: 100%; text-align: left; }
  .hs-bubble:nth-child(1), .hs-bubble:nth-child(3) { top: 0; }
  .hs-bubble::before, .hs-bubble::after { display: none; }
  .hs-worry .hs-illust,
  .hs-set--keep .hs-illust { width: min(360px, 92%); }
}

.worry-stage {
  display: grid;
  grid-template-columns: minmax(290px, 308px) minmax(0, 1fr) minmax(290px, 308px);
  grid-template-rows: auto auto;
  gap: 18px 18px;
  align-items: center;
  margin-top: 88px;
}

.wb-tl { grid-column: 1; grid-row: 1; --fx: 34px;  --fy: -42px; --fd: 0s;   }
.wb-tr { grid-column: 3; grid-row: 1; --fx: -34px; --fy: -42px; --fd: 1.1s; }
.wb-bl { grid-column: 1; grid-row: 2; --fx: 0px;   --fy: 6px;   --fd: 1.8s; }
.wb-br { grid-column: 3; grid-row: 2; --fx: 0px;   --fy: 24px;  --fd: .5s;  }
.worry-illust { grid-column: 2; grid-row: 1 / span 2; }

.worry-bubble {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 18px 18px;
  background: #fbeee4;            /* オレンジがかったベージュ（参考画像） */
  border: 1px solid #f4d7c4;
  border-radius: 26px;
  box-shadow: 0 16px 30px -18px rgba(15, 42, 68, .32);  /* 浮いて見える影 */
  animation: worryFloat 6s ease-in-out infinite;
  animation-delay: var(--fd, 0s);
  will-change: transform;
}

/* ふわっと浮遊（位置を少しずつずらして有機的に） */
@keyframes worryFloat {
  0%, 100% { transform: translate(var(--fx, 0px), var(--fy, 0px)); }
  50%      { transform: translate(var(--fx, 0px), calc(var(--fy, 0px) - 9px)); }
}

@media (prefers-reduced-motion: reduce) {
  .worry-bubble { animation: none; transform: translate(var(--fx, 0px), var(--fy, 0px)); }
}

.worry-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terra-soft);
  color: var(--terra-deep);
}
.worry-icon svg { width: 21px; height: 21px; }

.worry-title {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--terra-deep);
}
.worry-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 吹き出しのしっぽ（中央のイラストに向ける） */
.wb-tl::before, .wb-bl::before {
  content: ""; position: absolute; top: 30px; right: -13px;
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  border-left: 13px solid #f4d7c4;
}
.wb-tl::after, .wb-bl::after {
  content: ""; position: absolute; top: 32px; right: -10px;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-left: 11px solid #fbeee4;
}
.wb-tr::before, .wb-br::before {
  content: ""; position: absolute; top: 30px; left: -13px;
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  border-right: 13px solid #f4d7c4;
}
.wb-tr::after, .wb-br::after {
  content: ""; position: absolute; top: 32px; left: -10px;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-right: 11px solid #fbeee4;
}

/* 中央イラスト（差し替え枠） */
.worry-illust { margin: 0; text-align: center; align-self: center; }
.worry-illust img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.worry-illust .illust-ph { display: none; }
.worry-illust.is-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 230px;
  border: 2px dashed var(--terra-soft);
  border-radius: 20px;
  background: rgba(244, 215, 196, .18);
}
.worry-illust.is-empty .illust-ph {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--f-display); font-weight: 700; color: var(--terra-deep);
}
.illust-ph small { font-weight: 500; font-size: 12px; color: var(--ink-mute); }

/* 解決への橋渡し（アドバイザー + 「解決します！」） */
.solve-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 46px auto 40px;
  padding: 34px 36px;
  max-width: 760px;
  background: linear-gradient(180deg, var(--cream), var(--terra-tint));
  border: 1px solid var(--terra-soft);
  border-radius: 28px;
}
.solve-advisor { margin: 0; width: 150px; flex: 0 0 auto; text-align: center; }
.solve-advisor img { width: 100%; height: auto; display: block; }
.solve-advisor .illust-ph { display: none; }
.solve-advisor.is-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 150px; height: 150px;
  border: 2px dashed var(--terra-soft); border-radius: 50%;
  background: rgba(244, 215, 196, .28);
}
.solve-advisor.is-empty .illust-ph {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--f-display); font-weight: 700; color: var(--terra-deep); font-size: 14px;
}

.solve-lead {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  font-size: clamp(20px, 3.2vw, 30px);
}
.solve-lead .solve-lead-top {
  display: block;
  margin-bottom: 4px;
  font-size: .58em;
  font-weight: 700;
  color: var(--ink-soft);
}
.solve-lead strong { color: var(--terra-deep); }

/* 解決詳細 */
.solve-details { display: grid; gap: 26px; }

@media (max-width: 860px) {
  .worry-stage {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 18px;
  }
  .wb-tl, .wb-tr, .wb-bl, .wb-br {
    grid-column: 1; grid-row: auto;
    --fx: 0px; --fy: 0px;
    animation: none; transform: none;
  }
  .worry-illust { grid-column: 1; grid-row: auto; order: -1; }
  .worry-bubble::before, .worry-bubble::after { display: none; }
  .solve-bridge { flex-direction: column; text-align: center; gap: 18px; }
}

/* ====================
   チームITのできること (fv-b1/b2 コンテンツ #approach / 4フェーズ伴走)
==================== */
.flow-block {
  padding-top: 56px;
  padding-bottom: 64px;
  background: var(--paper);   /* リズム: light（暖色）へ戻す */
}

.flow-lead {
  margin: 36px 0 4px;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.5;
  color: var(--ink);
}

/* 4ステップ縦積み（カード＋シェブロン） */
.flow-steps {
  display: grid;
  grid-template-columns: minmax(0, 740px);   /* 2行目（長い方）が1行に収まる広さ */
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin-top: 48px;
}

.flow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 18px 32px;
  background: var(--terra-tint);
  border-radius: 20px;
  border: 1px solid #d8d5cf;   /* グレーの枠線 */
}

/* 1枚ずつ濃淡（ご相談→運用へ、淡→濃のテラコッタ） */
.flow-card-1 { background: #fcefe5; }
.flow-card-2 { background: #f7dcc8; }
.flow-card-3 { background: #f1c9ab; }
.flow-card-4 { background: #ecb693; }

.flow-card-title {
  margin: 0 0 18px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 26px);
  color: var(--ink);
}

.flow-card-icon {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 18px;
  padding: 14px;
  background: #fff;            /* 画像の部分は白背景 */
  border-radius: 14px;
  color: var(--terra-deep);
}
.flow-card-icon svg { width: 56px; height: 56px; }
.flow-card-icon img { width: 100%; height: auto; object-fit: contain; display: block; }

.flow-card-desc {
  width: 100%;
  max-width: 660px;        /* PCでは指定位置で2行に収まる広さ */
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink);       /* 視認性アップ: やや明るい紺 → 濃紺（太さは標準のまま） */
  text-align: center;
}
/* PC専用の改行（スマホでは無効化し、文節自動改行に任せる） */
@media (max-width: 720px) {
  .flow-card-desc .flow-br { display: none; }
  /* スマホ: 白い画像枠と同じ幅・中央配置にして、文字の左端を枠の左端に揃える */
  .flow-card-desc {
    text-align: left;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;       /* 16.5→18px: スマホで読みやすく */
    line-height: 1.75;     /* 1.9→1.75: 行間を詰めて文字のまとまりを出す */
  }
}

.flow-sep {
  display: grid;
  place-items: center;
  color: var(--terra);
  transform: rotate(90deg);
}
.flow-sep svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .flow-steps {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
    gap: 10px;
  }
  .flow-card { padding: 24px 18px 26px; }
  .flow-card-icon { width: 100%; margin-bottom: 16px; }
  .flow-card-icon svg { width: 48px; height: 48px; }
  .flow-sep { transform: rotate(90deg); padding: 2px 0; }
}

/* ====================
   資料DLの補助リンク
==================== */
.aside-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.aside-link:hover { color: var(--accent); }

/* ====================
   資料ダウンロード モーダル
==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,42,68,.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: modalFade .2s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: 40px 40px 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px -20px rgba(15,42,68,.5);
  animation: modalPop .25s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-card h2 {
  font-family: var(--f-display);
  font-size: 24px;
  margin: 4px 0 12px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-mute);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all .2s;
}
.modal-close:hover { background: var(--accent-soft); color: var(--ink); }

.dl-lead {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0 0 22px;
}
.dl-lead strong { color: var(--blue-deep); }

/* モーダル内のフォームはカード装飾を外して横幅いっぱいに */
.modal-form {
  max-width: 100%;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .modal-card { padding: 34px 22px 24px; border-radius: var(--r-lg); }
  .modal-card h2 { font-size: 21px; }
}

/* ====================
   B案: 写真ヒーロー (fv-b1.html / fv-b2.html)
==================== */
.hero-photo .container {
  position: relative;
  z-index: 1;
}

.hero-photo-banner {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-tint) 0%, var(--cream) 55%, #eef3ea 100%);
  box-shadow: 0 18px 48px -28px rgba(15, 42, 68, .4);
  animation: fadeInUp 1s ease;
}

/* 本番イラスト用（画像差し替え時に使用） */
.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

/* 画像が届くまでの仮プレースホルダー */
.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 7%;
  color: var(--ink-mute);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}
.hero-photo-placeholder span {
  border: 2px dashed rgba(193, 95, 60, .35);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  background: rgba(255, 255, 255, .35);
}

.hero-photo-copy {
  position: relative;
  z-index: 2;
  padding: 0 6%;
  max-width: 62%;
}

.hero-photo-sub {
  font-size: clamp(18px, 2.3vw, 28px);
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.5;
  letter-spacing: .04em;
  margin: 0 0 16px;
}

.hero-photo-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 3.9vw, 48px);
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: .02em;
  margin: 0;
}

/* 大きめ2ボタンCTA */
.hero-ctas-2 {
  justify-content: center;
  gap: 26px;
}

.btn-cta {
  flex-direction: column;
  text-align: center;
  gap: 0;
  padding: 20px 44px;
  min-width: 230px;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .03em;
  border-radius: 18px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 26px -12px rgba(217, 119, 87, .7);
}
.btn-cta:hover {
  background: #c15f3c;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -14px rgba(217, 119, 87, .8);
}
.btn-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(217, 119, 87, .8);
}

@media (max-width: 880px) {
  .hero-photo-banner {
    aspect-ratio: auto;
    min-height: 0;
    padding: 36px 0;
  }
  .hero-photo-copy {
    max-width: 100%;
    padding: 0 8%;
  }
  .hero-photo-placeholder {
    position: relative;
    inset: auto;
    justify-content: center;
    padding: 20px 8% 0;
  }
  .hero-ctas-2 {
    gap: 16px;
  }
  .btn-cta {
    flex: 1 1 0;
    min-width: 0;
    padding: 18px 16px;
  }
}

/* ====================
   B案(全面背景版): 画像をFV全面に敷く (fv-b1.html / fv-b2.html)
==================== */
.hero-photo-full {
  padding: 0;
  min-height: 0;
  background: #f9f3e6;   /* 暖かいベージュ地（やや明るめ） */
}
/* 全面背景版では、動く光グラデは消す */
.hero-photo-full::before { display: none; }

/* イラストを全面トリミングせず、全体を見せる */
.hero-photo-full .hero-illust {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  aspect-ratio: auto;       /* 旧 1/1 ルールを打ち消し、画像の自然比に */
}

.hero-bg-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  inset: auto;
  object-fit: fill;
  z-index: 0;
  /* 楕円の下端を地色になじませ、はみ出した境界線を消す */
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
}

/* 画像に白を重ねない（スクリムは廃止） */
.hero-bg-scrim {
  display: none;
}

/* タグラインの帯（画像の下に全幅の帯として敷く） */
/* 机の線から下を背景色で覆う帯。FV画像の下端に重ねて、
   テキスト＋CTAをこの中に置く。色はセクション背景と同じ #f9f3e6。 */
.hero-photo-full .hero-bottom-band {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: -9%;
  background: #ffffff;
  border: none;
}
.hero-photo-full .hero-tagline-band {
  position: relative;
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  margin-bottom: 28px;
  padding: 0;
  background: transparent;
  border: none;
  pointer-events: none;
}
.hero-tagline .tagline-br-sp {
  display: none;
}
.hero-photo-full .hero-tagline-band .hero-tagline {
  margin: 0;
  max-width: 1000px;
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: none;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
  padding: 12px 24px;
  border-radius: 0;
  box-shadow: none;
  pointer-events: auto;
}

/* キャッチをイラスト左上に重ねる層 */
.hero-photo-full .hero-copy-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(60px, 13vw, 158px);  /* イラスト（楕円）の中に収まる高さまで下げる */
  pointer-events: none;
}

.hero-photo-full .hero-photo-copy {
  max-width: 540px;
  padding: 0;
  margin-left: clamp(24px, 12vw, 145px);
  text-align: left;
  pointer-events: auto;
  animation: fadeInUp 1s ease;
}

.hero-photo-full .hero-foot {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 52px;
  animation: fadeInUp 1s ease 0.15s backwards;
}
.hero-photo-full .hero-tagline {
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
/* フレーズ単位で改行（単語の途中で割れないようにする） */
.hero-photo-full .hero-tagline .np {
  display: inline-block;
}
/* PC: 2ボタンを横並びにし、ボタンサイズは保ったまま間隔を広げて
   タグライン文字幅（約745px）の左右端にボタン端を合わせる */
.hero-photo-full .hero-ctas-2 {
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  max-width: 745px;
  margin: 0 auto;
}
.hero-photo-full .hero-ctas-2 .btn-cta {
  flex: 0 0 327px;
  width: 327px;
  min-width: 0;
  padding: 20px 22px;
}
.hero-photo-full .btn-cta {
  white-space: nowrap;
  background: #d97757;   /* メインCTAカラー */
  box-shadow: 0 12px 26px -12px rgba(240, 145, 54, .7);
}
.hero-photo-full .btn-cta:hover {
  background: #c15f3c;
  box-shadow: 0 18px 34px -14px rgba(240, 145, 54, .8);
}

/* CTA②: 二重線・中は白（細め） */
.hero-photo-full .btn-cta-outline {
  background: #fff;
  color: #d97757;
  border: 3px double #d97757;
  box-shadow: 0 12px 26px -14px rgba(240, 145, 54, .45);
}
.hero-photo-full .btn-cta-outline:hover {
  background: #fff;
  color: #c15f3c;
  border-color: #c15f3c;
  box-shadow: 0 18px 34px -16px rgba(240, 145, 54, .55);
}

@media (max-width: 880px) {
  /* モバイルでもPCと同様、キャッチは画像の上に重ねる（帯・ボタンは画像の下に積む） */
  .hero-bg-scrim { display: none; }
  /* 画像（楕円）を少し下げ、上の余白にキャッチを置いて人物との重なりを防ぐ */
  .hero-photo-full .hero-bg-img {
    margin-top: 10%;
  }
  .hero-photo-full .hero-copy-layer {
    position: absolute;
    inset: auto;
    top: 0;
    left: 0;
    width: 100%;
    /* 画像と同じ縦横比にして、帯の高さに影響されず画像基準で重ねる */
    aspect-ratio: 1210 / 853;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  /* %指定で楕円内の同じ位置に収める（どの幅でも角・人物を避ける） */
  .hero-photo-full .hero-photo-copy {
    position: absolute;
    top: 13%;
    left: 17%;
    max-width: 58%;
    width: auto;
    margin-left: 0;
    text-align: left;
  }
  .hero-photo-full .hero-photo-sub {
    font-size: clamp(14px, 3.9vw, 19px);
    line-height: 1.35;
    margin-bottom: 4px;
  }
  .hero-photo-full .hero-photo-title {
    font-size: clamp(18px, 5vw, 28px);
    line-height: 1.25;
  }
  .hero-photo-full .hero-foot {
    max-width: 100%;
    width: 100%;
    padding-top: 22px;
    padding-bottom: 44px;
  }
  .hero-photo-full .hero-tagline {
    max-width: 100%;
    width: 100%;
  }
  /* タグラインはFV画像（楕円）の下に文字だけで置く */
  .hero-photo-full .hero-tagline-band {
    position: relative;
    z-index: 4;
    bottom: auto;
    margin-top: 4px;
    padding: 0;
  }
  .hero-photo-full .hero-tagline-band .hero-tagline {
    max-width: 100%;
    width: 100%;
    white-space: normal;
    font-size: 13px;
    padding: 14px 20px;
  }
  /* スマホは「寄り添う、」の後で改行 */
  .hero-tagline .tagline-br-sp {
    display: inline;
  }
  /* モバイルは縦並びのまま維持 */
  .hero-photo-full .hero-ctas-2 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 360px;
    margin: 0 auto;
  }
  .hero-photo-full .hero-ctas-2 .btn-cta {
    flex: none;
    width: min(360px, 86%);
    padding: 20px 22px;
  }
}

/* ===== PCでFV内にCTAまで収める（画像の上側をトリミング） ===== */
@media (min-width: 861px) {
  .hero-photo-full .hero-bg-img {
    /* 画面が低いときは、空（上）を多めに残して机（下）側を切る。
       これで人物が上がりすぎず、見出しと重ならない */
    height: clamp(560px, calc(100vh - 220px), 742px);
    object-fit: cover;
    object-position: center 22%;
  }
  .hero-photo-full .hero-bottom-band { margin-top: 0; }
  .hero-photo-full .hero-foot {
    padding-top: 24px;
    padding-bottom: 36px;
  }
  /* テキストは円の内側の空エリアに。
     縦に余裕がある画面ほど円の上カーブが見えるため、テキストも連動して下げる */
  .hero-photo-full .hero-copy-layer {
    padding-top: clamp(48px, calc(100vh - 912px), 130px);
  }
}

/* ===== スマホ: FVの円の上をヘッダー下線まで詰める ===== */
@media (max-width: 860px) {
  .hero-photo-full .hero-illust {
    /* 画像内に焼き込まれた上余白の分だけ全体を引き上げ、
       はみ出しはヘッダー下でクリップ（テキストも一緒に動く） */
    margin-top: -15vw;
  }
}

/* ===== PC: ニーズと課題カードのイラスト・ボタンを大きく ===== */
@media (min-width: 861px) {
  .issue-icon {
    width: 200px;            /* 100px → 2倍 */
    height: 168px;
    margin-bottom: 20px;
  }
  .issue-cta {
    font-size: 19px;         /* 13px → 拡大 */
    padding: 20px 16px;      /* 枠を縦に伸ばす */
  }
  /* PCの文字を、スマホと同等の見やすさになるよう大きめに */
  .issue-title { font-size: 30px; }
  .issue-points li { font-size: 20px; }
  .flow-card-title { font-size: 30px; }
  .flow-card-desc { font-size: 20px; }
}

/* ===== スマホでの不自然な改行対策（文節単位で折り返す） ===== */
@media (max-width: 720px) {
  .page-header h1,
  .page-desc,
  .flow-lead,
  .flow-card-desc,
  .hs-bubble,
  .issue-title,
  .issue-points li,
  .footer-text {
    word-break: auto-phrase;   /* 対応ブラウザ（Chrome等）で文節改行 */
    overflow-wrap: anywhere;   /* 非対応時の最低限のはみ出し防止 */
  }
}

/* ===== 画面下固定のCTA帯（メンバー一覧など） ===== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -10px 28px -18px rgba(15, 42, 68, .45);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.sticky-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}
.sticky-cta-btn {
  flex: 1;
  justify-content: center;
  padding: 14px 18px;
  white-space: nowrap;
}
/* トップページ用：初回は隠し、ヒーローを過ぎてからスライドイン（CTAのかぶり防止） */
.sticky-cta--auto {
  transform: translateY(130%);
  transition: transform .35s ease;
}
.sticky-cta--auto.is-visible {
  transform: translateY(0);
}

/* 帯にコンテンツが隠れないよう下に余白を確保 */
body.has-sticky-cta { padding-bottom: 92px; }
@media (max-width: 720px) {
  body.has-sticky-cta { padding-bottom: 84px; }
  .sticky-cta {
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  .sticky-cta-btn { padding: 13px 8px; font-size: 12.5px; letter-spacing: 0; }
}
