:root {
  --brand: #2d6b3f;
  --brand-dark: #1e4d2d;
  --brand-soft: #e8f3ec;
  --brand-pale: #f4f9f5;
  --accent: #e67e22;
  --accent-dark: #d35400;
  --accent-soft: #fef5ec;
  --ink: #1a2e1c;
  --text: #2c3e2e;
  --muted: #5a6e5c;
  --line: #d4e2d7;
  --white: #ffffff;
  --cream: #fafcfa;
  --shadow: 0 24px 60px rgba(26, 46, 28, 0.1);
  --shadow-soft: 0 12px 36px rgba(26, 46, 28, 0.07);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: 1920px;
  /* ヘッダー実高 = .header-inner min-height 72px + border-bottom 1px */
  --header-h: 73px;
  --sidebar-w: 390px;
  --fv-ink: #1b5749;
  --fv-bg: linear-gradient(135deg, #eef4ff 0%, #f0f4fb 100%);
  --fv-grad: linear-gradient(90deg, #2e6b3f 0%, #1d6331 100%);
  --hero-copy-w: min(560px, 52%);
  --font-heading: "Noto Serif JP", "游明朝", "YuMincho", serif;
  --font-body:
    "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--brand);
}
img {
  max-width: 100%;
  height: auto;
}
button,
input,
textarea {
  font-family: inherit;
}
strong {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 999;
}
.skip-link:focus {
  top: 16px;
}

/* === Layout === */
.lp-container {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin: 0 auto;
}
.wide-container {
  width: 100%;
  margin: 0 auto;
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 226, 215, 0.7);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(26, 46, 28, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--ink);
}
.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 70px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.nav a {
  padding: 8px 0;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: var(--brand);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.3);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.header-cta:hover {
  color: var(--white);
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}
.partner-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  padding: 8px 16px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.16s ease;
}
.partner-link:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: scale(0.97);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 28px;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.3);
}
.btn-primary:hover {
  color: var(--white);
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(230, 126, 34, 0.4);
}
.btn-secondary {
  background: var(--brand);
  color: var(--white);
  border: 2px solid var(--brand);
  box-shadow: 0 4px 16px rgba(26, 46, 28, 0.06);
}
.btn-secondary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}
.btn.full {
  width: 100%;
}

/* === Hero === */
.hero {
  position: relative;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  max-width: none;
  background: var(--fv-bg);
}
/* コピー＋写真の構図を載せる位置決めコンテナ。
   コンテンツ列いっぱいに広げ、コピーは左端（後続セクションと同じ余白）、
   写真は右端（フォーム列に密着）に固定する。
   ワイド環境で余った幅はコピーと写真の間の空間に吸収される。 */
.hero-frame {
  position: relative;
  /* 写真の上／右のはみ出しをフレーム基準でクリップ */
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  width: 648px;
  height: 623px;
  background: url("images/fv-bg-deco.svg") center center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}
.hero-deco-tl {
  top: -313px;
  left: -305px;
}
.hero-deco-br {
  right: -288px;
  /* 基準は .hero（ボトムバー含む）。Figma 準拠:
     装飾下端はセクション下端の 301px 下 = 装飾上端がバー上端の 193px 上 */
  bottom: -301px;
  transform: rotate(180deg);
}
/* SP 用写真への切替コンテナ。PC では中の img が絶対配置のため、
   line box を作らないよう block 化して高さ 0 の透明な箱にしておく */
.hero-frame picture {
  display: block;
}
.hero-photo {
  position: absolute;
  /* Figma 準拠（PC確定版 2702:1268）: 写真の下端はバー密着ではなく
     バー上端の少し上（フレーム高の 18.75% = Figma 105/560px）で直線カットし、
     その下の帯に背後の装飾（.hero-deco-br）が覗く構図 */
  bottom: 18.75%;
  /* 位置は .hero-frame 基準（右端はフォーム列に密着し、はみ出しはクリップ） */
  right: max(-16%, -180px);
  /* 高さ比率で Figma の構図を維持（Figma 554/560px。幅は縦横比から自動決定） */
  height: 99%;
  width: auto;
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  /* 左端を後続セクション（max-width 1160px 中央寄せ + padding 48px）の
     コンテンツ左端に揃える */
  padding: 40px 48px 56px calc(max(0px, (100% - 1160px) / 2) + 48px);
  word-break: break-word;
  overflow-wrap: break-word;
}
.hero-tag {
  display: inline-block;
  position: relative;
  isolation: isolate;
  margin: 0 0 14px;
  padding: 2px 20px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 0.04em;
}
.hero-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fv-grad);
  transform: skewX(-15deg);
}
.hero-title-logo {
  height: 0.86em;
  width: auto;
  vertical-align: baseline;
  margin-right: 0.04em;
}
.hero-trust {
  --hero-trust-gap: clamp(8px, 2.6%, 32px);
  --hero-trust-circle: clamp(72px, calc((100vw - var(--sidebar-w)) * 0.109), 100px);
  display: flex;
  align-items: flex-start;
  gap: var(--hero-trust-gap);
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  max-width: min(560px, 64%);
}
.hero-trust li {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-trust li + li::before {
  content: "";
  position: absolute;
  left: calc(-0.5 * var(--hero-trust-gap));
  top: calc(var(--hero-trust-circle) / 2 - 20px);
  width: 1px;
  height: 40px;
  background: rgba(27, 87, 73, 0.25);
}
.hero-trust-circle {
  display: grid;
  place-items: center;
  width: var(--hero-trust-circle);
  height: var(--hero-trust-circle);
  border-radius: 50%;
  background: var(--brand-soft);
}
.hero-trust-circle img {
  width: 56%;
  height: auto;
}
.hero-trust li:first-child .hero-trust-circle img {
  width: 80%;
}
.hero-trust-label {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: clamp(10px, calc((100vw - var(--sidebar-w)) * 0.0152), 14px);
  font-weight: 600;
  line-height: 2;
  color: var(--fv-ink);
  white-space: nowrap;
}
.hero-bottom-bar {
  position: relative;
  z-index: 2;
  background: var(--fv-grad);
}
.hero-bottom-inner {
  display: flex;
  align-items: center;
  min-height: 129px;
  /* 左端を上段コピー＝後続セクションのコンテンツ左端に揃える */
  padding: 20px clamp(20px, 5.2%, 48px) 20px
    calc(max(0px, (100% - 1160px) / 2) + clamp(20px, 5.2%, 48px));
}
.hero-bar-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5%, 14px);
  padding: 0 clamp(6px, 2%, 28px);
  color: var(--white);
}
.hero-bar-item:first-child {
  padding-left: 5px;
}
.hero-bar-item + .hero-bar-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 40px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.55);
}
.hero-bar-item img {
  width: clamp(32px, calc((100vw - var(--sidebar-w)) * 0.0435), 40px);
  height: auto;
  flex: none;
}
.hero-bar-item strong,
.hero-bar-item small {
  display: block;
  color: var(--white);
  font-family: var(--font-heading);
}
.hero-bar-item strong {
  font-size: clamp(13px, calc((100vw - var(--sidebar-w)) * 0.0174), 16px);
  font-weight: 600;
  line-height: 1.6;
}
.hero-bar-item small {
  font-size: clamp(11px, calc((100vw - var(--sidebar-w)) * 0.0152), 14px);
  font-weight: 400;
  line-height: 1.6;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 11px;
  color: var(--brand-dark);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 999px;
}
.hero h1 {
  margin: 0;
  /* 1行が折り返さない幅（ロゴ 2.15em + 7文字 / 9文字 + letter-spacing）を em で確保 */
  max-width: 10em;
  color: var(--fv-ink);
  font-family: var(--font-heading);
  font-size: clamp(30px, calc((100vw - var(--sidebar-w)) * 0.05), 56px);
  line-height: 1.5;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.hero-title-line {
  display: block;
}
.hero-lead {
  margin: 18px 0 0;
  max-width: var(--hero-copy-w);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--fv-ink);
  line-height: 2;
}

/* === Sidebar Form === */
.sidebar-form {
  padding: 32px 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.hs-form-frame {
  min-height: 500px;
  width: 100%;
}
.hs-form-frame iframe {
  width: 100% !important;
  min-height: 500px !important;
}
.sidebar-form h2 {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  text-align: center;
}
.sidebar-form .form-subtitle {
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.12em;
  text-align: center;
}

/* === Page Layout === */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: 0;
  padding: var(--header-h) 0 0;
  align-items: start;
  max-width: none;
  margin: 0 auto;
  width: 100%;
}
.content-column {
  min-width: 0;
}
.content-flow {
  min-width: 0;
  max-width: none;
  margin: 0;
}
.sidebar-sticky {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  order: 2;
  /* 画面高が低い環境でも送信ボタンまで到達できるよう、内部スクロールを許可 */
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: none;
  box-shadow: -8px 0 24px rgba(26, 46, 28, 0.06);
  background: var(--white);
  border-radius: 0;
  padding: 24px;
  z-index: 10;
}
.content-column {
  order: 1;
}
.fixed-form-mobile {
  display: none;
}

/* === Sections === */
.section {
  padding: 80px 48px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}
.section.fade-in-section h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
}
.section.fade-in-section p {
  font-size: clamp(14px, 1.2vw, 16px);
}
.section-heading {
  margin-bottom: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.section-heading h2 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.section-heading p {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text);
  max-width: 680px;
}

/* === Answer Box (Service Overview) === */
.answer-box {
  padding: 80px 0;
  background: transparent;
  box-sizing: border-box;
  margin-left: 0;
  width: 100%;
  max-width: none;
  position: relative;
  overflow: hidden;
}
.answer-box::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-pale);
  z-index: -1;
}
.answer-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}
.answer-box-content {
  min-width: 440px;
}
.answer-box-content h2 {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.definition-divider {
  width: 75px;
  height: 1px;
  margin: 0 0 20px 30px;
  background: var(--accent);
}
.partner-divider {
  width: 75px;
  height: 1px;
  margin: 0 auto 12px;
  background: var(--accent);
}
.answer-box-content p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
}
.answer-box-image {
  max-width: 600px;
  margin: 0 auto;
}
.answer-box-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* === PCA Group Section === */
.pca-section {
  padding: 80px 0;
  background: var(--white);
  box-sizing: border-box;
  margin-left: 0;
  width: 100%;
  max-width: none;
  position: relative;
}
.pca-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}
.pca-content h2 {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.pca-content p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
}
.pca-features {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}
.pca-features li {
  position: relative;
  padding-left: 24px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}
.pca-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 900;
}
.pca-visual {
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  text-align: center;
}
.pca-visual-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 24px;
}
.pca-bubbles {
  position: relative;
  width: 100%;
  aspect-ratio: 327 / 372;
  margin: 65% auto 35%;
}
.pca-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #509063, #99f2c8);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.pca-bubble-1 {
  left: 4.9%;
  top: -55%;
}
.pca-bubble-2 {
  left: 69.9%;
  top: -20.8%;
}
.pca-bubble-3 {
  left: 69.9%;
  top: 41.4%;
}
.pca-bubble-4 {
  left: 13.8%;
  top: 80.6%;
}
.pca-bubble-5 {
  left: -55.7%;
  top: 44.2%;
}
.pca-bubble-6 {
  left: -55.7%;
  top: -15.7%;
}

/* === Issues === */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.issue-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(26, 46, 28, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.issue-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.issue-card-icon {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.issue-card-icon img {
  width: 64px;
  height: 64px;
}
.issue-card h3 {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
}
.issue-card p {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text);
  line-height: 1.7;
}

/* === Service === */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.service-item {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(26, 46, 28, 0.04);
}
.service-item-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.service-item h3 {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 800;
  color: var(--ink);
}
.service-item p {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text);
  line-height: 1.7;
}
.notice-box {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--brand);
  border: 1px solid var(--line);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.notice-box h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
}
.notice-box p {
  margin: 0;
  font-size: 13px;
  color: var(--white);
  line-height: 1.7;
}

/* === Strength === */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  max-width: 900px;
  margin: 0 auto;
}
.strength-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(26, 46, 28, 0.04);
}
.card-number {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: 0.05em;
}
.strength-card h3 {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
}
.strength-card p {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text);
  line-height: 1.7;
}

/* === Process / Before-After === */
.flow-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}
.flow-column {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.flow-column h3 {
  display: inline-block;
  margin: 0 0 10px;
  padding: 8px 24px;
  border-radius: var(--radius-md);
  background: var(--brand);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.flow-column.before h3 {
  background: var(--white);
  border: 1px solid var(--brand);
  color: var(--brand);
}
.flow-column-image {
  display: block;
  width: 120px;
  margin: 0 auto 10px;
}
.flow-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-column ul li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text);
  line-height: 1.6;
}
.flow-column ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: url("images/check-icon.svg") no-repeat center / contain;
}
.flow-column.after {
  background: var(--brand-pale);
  border-color: var(--brand);
}
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-arrow img {
  width: 30px;
  height: 30px;
}

/* === Comparison Table === */
.comparison {
  background: var(--cream);
  overflow-x: hidden;
  padding: 80px 48px;
}
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.compare-table thead {
  background: var(--brand);
  color: var(--white);
}
.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  font-weight: 700;
  font-size: 13px;
  border-bottom: none;
}
.compare-table tbody th {
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--ink);
  background: var(--brand-pale);
  width: 160px;
}
.compare-table {
  table-layout: fixed;
}
.compare-table tbody td {
  color: var(--text);
  font-size: 16px;
}
.compare-table tbody td strong {
  color: var(--brand-dark);
}
.table-wrap {
  overflow-x: auto;
  max-width: 900px;
  margin: 0 auto;
}

/* === Cost Section (Comparison Table Format) === */
.cost {
  padding: 80px 48px;
  overflow-x: hidden;
}
.cost-comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.cost-comparison-table thead {
  background: var(--brand);
  color: var(--white);
}
.cost-comparison-table th,
.cost-comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.cost-comparison-table thead th {
  font-weight: 700;
  font-size: 13px;
  border-bottom: none;
}
.cost-comparison-table tbody th {
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--ink);
  background: var(--brand-pale);
  width: 180px;
}
.cost-comparison-table {
  table-layout: fixed;
}
.cost-comparison-table tbody td {
  color: var(--text);
}
.cost-comparison-table .highlight-cell {
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 16px;
}
.cost-table-wrap {
  overflow-x: auto;
  max-width: 900px;
  margin: 0 auto;
}
.small-note {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* === Flow Steps === */
.step-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  padding: 0 0 0 72px;
  list-style: none;
  max-width: 960px;
}
.step-list::before {
  content: "";
  position: absolute;
  left: 24px;
  transform: translateX(-50%);
  top: 12px;
  bottom: 0;
  width: 42px;
  background: linear-gradient(to bottom, rgba(45, 107, 63, 0.2), rgba(45, 107, 63, 0.65));
  clip-path: polygon(
    calc(50% - 9px) 0,
    calc(50% + 9px) 0,
    calc(50% + 9px) calc(100% - 30px),
    100% calc(100% - 30px),
    50% 100%,
    0% calc(100% - 30px),
    calc(50% - 9px) calc(100% - 30px)
  );
}
.step-list li {
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.step-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 20px;
  padding: 22px 28px;
  background: var(--brand-soft);
  border-radius: 10px;
  align-items: center;
}
.step-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--brand);
  flex-shrink: 0;
}
.step-card h3 {
  margin: 0 0 5px;
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 800;
  color: var(--brand);
}
.step-card p {
  margin: 0;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--text);
  line-height: 1.7;
}

/* === Case Study === */
.case-study {
  background: var(--cream);
}
.case-study .section-heading {
  text-align: left;
}
.case-study .section-heading p {
  margin-left: 0;
  margin-right: 0;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.case-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(26, 46, 28, 0.04);
  max-width: 800px;
  margin: 0 auto;
}
.case-header {
  margin-bottom: 16px;
}
.case-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}
.case-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
}
.case-company {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
}
.case-company span {
  color: var(--muted);
  font-weight: 500;
}
.case-detail {
  margin: 0;
  display: grid;
  gap: 12px;
}
.case-detail dt {
  display: inline-block;
  justify-self: start;
  width: 90px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--brand);
  color: var(--brand);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}
.case-detail dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.case-note {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid rgba(230, 126, 34, 0.2);
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 600;
}

/* === FAQ === */
.faq {
  padding: 80px 48px;
  overflow-x: hidden;
}
.faq .section-heading,
.faq-item {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  line-height: 1.5;
}
.faq-question::before {
  content: "Q";
  flex-shrink: 0;
  margin-right: 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.faq-question::after {
  content: "+";
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 16px;
  font-size: 20px;
  color: var(--brand);
  transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"]::after {
  content: "−";
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding: 0 0 22px;
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text);
  line-height: 1.8;
}
.faq-answer p::before {
  content: "A";
  margin-right: 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}
.faq-item:first-child .faq-answer {
  max-height: 300px;
}

/* === Final CTA === */

/* === Fixed Form (Desktop Sidebar) === */
.form-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.form-benefits {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.form-benefits li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.form-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

/* === Footer === */
.site-footer {
  padding: 60px 0 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  max-width: 1000px;
}
.footer-grid > div {
  width: fit-content;
}
.footer-grid > div:nth-child(2),
.footer-grid > div:nth-child(3) {
  padding-left: 20px;
}
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}
.site-footer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.footer-tagline {
  padding-left: 20px;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer ul li {
  margin-bottom: 8px;
}
.site-footer ul a {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}
.site-footer ul a:hover {
  color: var(--white);
}
.footer-brand {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-brand .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.copyright {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Mobile Sticky CTA === */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(26, 46, 28, 0.08);
}
.mobile-sticky-cta .btn {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
}

/* === Shake Animation (form attention) === */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-4px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(4px);
  }
}
.shake-form {
  animation: shake 0.6s ease-in-out;
}

/* === Mid-page CTA === */
.mid-cta {
  padding: 56px 24px;
  background: var(--brand);
  border-radius: 12px;
  text-align: center;
  /* コンテンツ列に側方 padding が無いため、カード自身で左右余白を確保する */
  width: calc(100% - 96px);
  max-width: 1064px;
  margin: 0 auto;
}
.mid-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-heading);
}
.mid-cta p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.mid-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}
.mid-cta .btn-cta:hover {
  background: #c2410c;
  transform: translateY(-1px);
}
.mid-cta .btn-cta:active {
  transform: scale(0.97);
}

/* === Scroll Fade-in Animation === */
.fade-in-section {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1080px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--header-h) 40px 0;
  }
  .mid-cta {
    width: 100%;
  }
  .section {
    padding: 80px 24px;
  }
  .table-wrap,
  .cost-table-wrap {
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
  }
  .sidebar-sticky {
    display: none;
  }
  /* サイドバー非表示帯では常時視認できる CTA を出す */
  .mobile-sticky-cta {
    display: block;
  }
  /* FV: SP デザイン（Figma 390x726 準拠）。
     縦順: タグ → 見出し → リード → 写真（全幅）→ 緑パネル（カード3枚） */
  .hero {
    display: flex;
    flex-direction: column;
    margin-left: -40px;
    width: calc(100% + 80px);
  }
  /* 縦積みでは写真とコピーを .hero の直接の flex アイテムに戻す */
  .hero-frame {
    display: contents;
  }
  .hero-inner {
    order: 1;
    padding: 24px 24px 12px;
  }
  .hero-frame picture {
    order: 2;
    position: relative;
    z-index: 1;
    width: 100%;
  }
  .hero-photo {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    /* ワイド幅で写真が間延びしないよう高さに上限を設ける */
    max-width: none;
    max-height: 420px;
    object-fit: cover;
    /* トリミングが起きるワイド幅でも人物の頭が切れないよう上寄せ */
    object-position: 50% 28%;
    margin: 0;
    /* 上下 10px を背景（--fv-bg）へ溶かす */
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0,
      #000 10px,
      #000 calc(100% - 10px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0,
      #000 10px,
      #000 calc(100% - 10px),
      transparent 100%
    );
  }
  .hero-bottom-bar {
    order: 3;
    /* 写真の下端に重ねて角丸を掛ける */
    margin-top: -24px;
    border-radius: 16px 16px 0 0;
  }
  .hero h1,
  .hero-lead {
    max-width: none;
  }
  /* trust サークルは SP デザインに存在しない */
  .hero-trust {
    display: none;
  }
  .hero-tag {
    margin-bottom: 12px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 24px;
  }
  .hero h1 {
    /* font-size はこの帯では指定しない（641-1080px / ≤640px の各メディアクエリで個別指定） */
    line-height: 1.65;
    letter-spacing: 0.058em;
    font-weight: 700;
  }
  .hero-title-logo {
    /* 36px 時に 90x36 になる（素材は 120x48） */
    height: 1em;
  }
  .hero-lead {
    margin-top: 12px;
    font-size: 12px;
    line-height: 24px;
    /* 2行目（30文字）が 390px 幅で折り返さないよう字間を詰める */
    letter-spacing: -0.02em;
    font-weight: 700;
  }
  /* 装飾は PC と同じ素材（fv-bg-deco.svg / 648x623）のまま、位置だけ SP 用にずらす */
  .hero-deco-tl {
    top: -383px;
    left: -375px;
  }
  .hero-deco-br {
    display: none;
  }
  .hero-bottom-inner {
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    min-height: 0;
    /* ワイド幅でカードが間延びしないよう内側の最大幅を絞る */
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px;
  }
  /* カード: 白円（アイコン）→ タイトル → サブ の縦積み中央揃え */
  .hero-bar-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 0;
  }
  .hero-bar-item:first-child {
    padding-left: 0;
  }
  /* PC の区切り線から白円へ用途変更（複合セレクタ側の指定を打ち消す） */
  .hero-bar-item::before,
  .hero-bar-item + .hero-bar-item::before {
    content: "";
    display: block;
    position: static;
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--white);
    transform: none;
  }
  /* アイコン素材は白塗りのため mask で --fv-ink に置き換える */
  .hero-bar-item::after {
    content: "";
    position: absolute;
    /* 白円 68px の中でアイコン 39px を中央に置く: (68 - 39) / 2 = 14.5px */
    top: 14.5px;
    left: 50%;
    width: 39px;
    height: 39px;
    transform: translateX(-50%);
    background: var(--fv-ink);
    -webkit-mask: var(--fv-icon) center / contain no-repeat;
    mask: var(--fv-icon) center / contain no-repeat;
  }
  /* アイコンの割当は HTML 側 .hero-bar-item 内の img の並びと同じ順序。
     カードを並び替える際は HTML と下記 nth-child の両方を更新すること */
  .hero-bar-item:nth-child(1) {
    --fv-icon: url("images/fv-icon-doc.svg");
  }
  .hero-bar-item:nth-child(2) {
    --fv-icon: url("images/fv-icon-handoff.svg");
  }
  .hero-bar-item:nth-child(3) {
    --fv-icon: url("images/fv-icon-chat.svg");
  }
  .hero-bar-item img {
    display: none;
  }
  .hero-bar-item strong {
    /* デザイン同様、カード幅を少し超えても1行で見せる。
       390px 未満では隣のカードの見出しとぶつからない上限まで縮める */
    font-size: min(14px, calc((100vw - 64px) / 24 + 0.5px));
    line-height: 1.5;
    letter-spacing: normal;
    white-space: nowrap;
  }
  .hero-bar-item small {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.5;
  }
  .answer-box {
    margin-left: -40px;
    width: calc(100% + 80px);
  }
  .answer-box-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: calc(40px + 24px);
    padding-right: 24px;
  }
  .pca-section {
    margin-left: -40px;
    width: calc(100% + 80px);
  }
  .pca-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: calc(40px + 24px);
    padding-right: 24px;
  }
  .answer-box-image {
    order: -1;
  }
}

@media (min-width: 641px) and (max-width: 1080px) {
  /* 単カラムだが幅に余裕がある帯では、SP デザインの構成のまま文字だけ持ち上げる */
  .hero h1 {
    font-size: clamp(36px, 5.2vw, 48px);
  }
  .hero-tag {
    padding: 4px 12px;
    font-size: 14px;
  }
  .hero-lead {
    font-size: 15px;
    line-height: 30px;
    letter-spacing: normal;
  }
  .hero-bar-item strong {
    font-size: 16px;
  }
  .hero-bar-item small {
    font-size: 12px;
  }
}

@media (max-width: 1400px) {
  .answer-box-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pca-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (min-width: 1081px) and (max-width: 1400px) {
  /* コンテンツ列が狭い帯では写真を右へ逃がし、コピーの折返しを防ぐ */
  :root {
    --hero-copy-w: min(520px, 60%);
  }
  .hero-photo {
    right: -20%;
  }
}

@media (max-width: 1150px) {
  .nav {
    display: none;
  }
  .partner-link {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .fixed-form-mobile {
    display: block;
  }
}

@media (max-width: 840px) {
  .page-layout {
    padding: var(--header-h) 24px 0;
  }
  .hero {
    margin-left: -24px;
    width: calc(100% + 48px);
  }
  .answer-box {
    margin-left: -24px;
    width: calc(100% + 48px);
  }
  .answer-box-grid {
    padding-left: calc(24px + 16px);
    padding-right: 16px;
    max-width: none;
  }
  .answer-box-content {
    min-width: 0;
  }
  .pca-section {
    margin-left: -24px;
    width: calc(100% + 48px);
  }
  .pca-grid {
    padding-left: calc(24px + 16px);
    padding-right: 16px;
    max-width: none;
  }
  .pca-features {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  .pca-features li {
    text-align: left;
  }
  .issue-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .service-list {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .strength-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .flow-visual {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .flow-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .page-layout {
    padding: var(--header-h) 16px 0;
  }
  .hero {
    margin-left: -16px;
    width: calc(100% + 32px);
  }
  /* デザイン基準（390px）の左右余白 16px */
  .hero-inner {
    padding: 24px 16px 12px;
  }
  .answer-box {
    margin-left: -16px;
    width: calc(100% + 32px);
  }
  .answer-box-grid {
    padding-left: 16px;
    padding-right: 16px;
  }
  .pca-section {
    margin-left: -16px;
    width: calc(100% + 32px);
    overflow: hidden;
  }
  .pca-grid {
    padding-left: 16px;
    padding-right: 16px;
  }
  .pca-bubbles {
    width: 85%;
    margin: 60% auto 38%;
  }
  .pca-bubble {
    font-size: 10px;
  }
  .hero h1 {
    /* 1行目（ロゴ 2.5em + 7文字）が折り返さない上限に収める（32px は左右余白 16px x2） */
    font-size: min(36px, calc((100vw - 32px) / 10.3));
  }
  .section {
    padding: 56px 16px;
  }
  .table-wrap,
  .cost-table-wrap {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }
  .section-heading h2 {
    font-size: clamp(20px, 5vw, 26px);
  }
  .lp-container {
    width: calc(100% - 32px);
  }
  .form-card {
    padding: 24px;
  }
  .case-card {
    padding: 24px;
  }

  .flow-visual {
    max-width: 400px;
  }
  .hs-form-frame {
    width: calc(100% + 50px);
    margin-left: -25px;
    margin-right: -25px;
  }
  .step-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
