/* [テーマ組み込み版] 元データ: new_html/creins-lp/assets/css/base.css
   変更点は spec_creins.md の 6章を参照（仮ヘッダー・フッター・スキップリンクのCSS削除、リセットの範囲限定、画像パス変更） */
/* ===================================================
   クリアンス LP — design tokens / reset / shared parts
   トークン値は Figma（fileKey XuoCeuo5tm3gWbi1HNXN1y）の
   get_variable_defs 実測値。変数名は Figma の変数名に対応させている。
   =================================================== */

:root {
  /* ---------- color（Figma variables） ---------- */
  --color-bg-page: #ffffff;
  --color-bg-subtle: #eef4f8;
  --color-bg-image-placeholder: #dde3ea;
  --color-bg-footer: #101b4b;
  --color-bg-table-head: #084d9f;
  --color-bg-table-head-highlight: #0f6fae;
  --color-bg-section-band-start: #d5f2ee;
  --color-bg-section-band-mid: #a9dcf3;
  --color-bg-section-band-end: #ddf3fb;
  --color-bg-emphasis-start: #084d9f;
  --color-bg-emphasis-end: #2b5ea8;

  --color-text-heading: #084d9f;
  --color-text-body: #333333;
  --color-text-muted: #5f6a75;
  --color-text-accent: #0f6fae;
  --color-text-inverse: #ffffff;
  --color-text-inverse-muted: #d6e4f5;
  --color-text-good: #1d7a4a;
  --color-text-bad: #b03030;

  --color-brand-primary: #5bc3ec;
  --color-brand-primary-deep: #084d9f;
  --color-icon-accent: #0f6fae;

  --color-border-default: #d9e7f1;
  --color-border-strong: #c2d6e5;
  --color-border-action: #0f6fae;
  --color-border-accent: #5bc3ec;
  --color-border-chart-frame: #cde9f5;
  --color-border-on-dark-subtle: #ffffff3d;

  --color-cta-start: #d92c5e;
  --color-cta-end: #c2410c;

  --color-chart-high: #2ca6e0;
  --color-chart-mid: #8cc9e6;
  --color-chart-low: #2b5ea8;
  --color-chart-track: #d4dfed;

  --color-deco-bubble-on-light: #9ed6ee;

  /* Google フォーム風モック（color/gform/*） */
  --color-gform-theme: #673ab7;
  --color-gform-on-theme: #ffffff;
  --color-gform-text: #202124;
  --color-gform-text-secondary: #70757a;
  --color-gform-card: #ffffff;
  --color-gform-border: #dadce0;
  --color-gform-required: #d93025;
  --color-gform-control: #5f6368;
  --color-gform-bg: #f0ebf8;

  /* Figma のレイヤーに直書きされている色（変数未定義のため実測値で追加） */
  --color-card-border-light: #9ed6ee;         /* Card/Risk・Card/Feature・Proof の枠 */
  --color-cell-highlight: #ebf7fc;            /* 比較表クリアンス列・円カードのグラデ終端 */
  --color-stat-highlight: #fdffa0;            /* FV 数値（24% / 100ヶ所以上）・FloatingCTA 背景 */
  --color-stat-bg: rgba(8, 77, 159, 0.6);     /* FV 数値カード背景 */
  --color-secondary-start: #feffe0;           /* Button/Secondary グラデ開始 */
  --color-secondary-end-hero: #c4ebfa;        /* FV の Button/Secondary グラデ終端 */
  --color-secondary-end-cta: #d3feff;         /* CTA の Button/Secondary グラデ終端 */
  --color-farm-start: #3baeb0;                /* 農場・畜産バナー枠グラデ */
  --color-farm-end: #278184;                  /* 同上・文字色 */
  --color-floating-border: #ffd268;           /* FloatingCTA 枠 */
  --color-surface-translucent: rgba(255, 255, 255, 0.85); /* Proof カード背景 */

  /* ---------- gradient ---------- */
  --gradient-cta: linear-gradient(to right, var(--color-cta-start), var(--color-cta-end));
  --gradient-secondary-hero: linear-gradient(to right, var(--color-secondary-start), var(--color-secondary-end-hero));
  --gradient-secondary-cta: linear-gradient(to right, var(--color-secondary-start), var(--color-secondary-end-cta));
  --gradient-farm: linear-gradient(to right, var(--color-farm-start), var(--color-farm-end));
  --gradient-section-band-pc: linear-gradient(134.32deg, var(--color-bg-section-band-start) 14.286%, var(--color-bg-section-band-mid) 50%, var(--color-bg-section-band-end) 85.714%);
  --gradient-section-band-sp: linear-gradient(103.16deg, var(--color-bg-section-band-start) 14.286%, var(--color-bg-section-band-mid) 50%, var(--color-bg-section-band-end) 85.714%);
  --gradient-emphasis-pc: linear-gradient(157.11deg, var(--color-bg-emphasis-start) 14.286%, var(--color-bg-emphasis-end) 85.714%);
  --gradient-emphasis-sp: linear-gradient(123.56deg, var(--color-bg-emphasis-start) 14.286%, var(--color-bg-emphasis-end) 85.714%);
  --gradient-soft-card: radial-gradient(ellipse at center, var(--color-bg-page) 0%, var(--color-cell-highlight) 100%);
  --gradient-onsen-icon: linear-gradient(127deg, var(--color-bg-section-band-start) 0%, var(--color-bg-section-band-mid) 50%, var(--color-bg-section-band-end) 100%);

  /* ---------- space（space/*） ---------- */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;

  /* ---------- radius / border ---------- */
  --radius-2: 2px;
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-16: 16px;
  --radius-20: 20px;   /* Card/Risk（PC）の実測値 */
  --radius-24: 24px;
  --radius-32: 32px;
  --radius-full: 999px;
  --border-1: 1px;
  --border-2: 2px;
  --border-3: 3px;

  /* ---------- typography ---------- */
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --font-latin: 'Montserrat', var(--font-jp);

  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-17: 17px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-21: 21px;   /* CTA 見出し（SP） */
  --fs-24: 24px;
  --fs-27: 27px;   /* FV h1（SP） */
  --fs-32: 32px;
  --fs-34: 34px;
  --fs-48: 48px;   /* FV h1（PC） */
  --fs-stat-unit: 28.227px;   /* FV「%」 */
  --fs-stat-num-pc: 69px;     /* FV「24」PC */
  --fs-stat-num-sp: 40px;     /* FV「24」SP */
  --fs-stat-num2-pc: 56.8px;  /* FV「100」PC */
  --fs-stat-unit2-pc: 28.4px; /* FV「ヶ所以上」PC */
  --fs-stat-num2-sp: 36px;    /* FV「100」SP */
  --fs-chart-title-pc: 25.6px;
  --fs-chart-sub: 17.92px;
  --fs-chart-label: 18.123px;

  --lh-100: 1;
  --lh-120: 1.2;
  --lh-132: 1.32;
  --lh-135: 1.35;
  --lh-140: 1.4;
  --lh-145: 1.45;
  --lh-150: 1.5;
  --lh-151: 1.51;
  --lh-155: 1.55;
  --lh-160: 1.6;
  --lh-169: 1.69;
  --lh-170: 1.7;
  --lh-175: 1.75;
  --lh-185: 1.85;
  --lh-214: 2.14;

  /* Figma の letterSpacing（% of font size）を em に換算 */
  --ls-1: 0.01em;
  --ls-2: 0.02em;
  --ls-4: 0.04em;
  --ls-5: 0.05em;
  --ls-6: 0.06em;    /* Table/Head（0.6px / 15px 実測） */
  --ls-12: 0.12em;
  --ls-16: 0.16em;

  /* ---------- shadow ---------- */
  --shadow-card: 0 12px 32px rgba(8, 77, 159, 0.08);
  --shadow-cta: 0 10px 24px rgba(217, 44, 94, 0.28);
  --shadow-float: 0 20px 42px rgba(8, 77, 159, 0.14);
  --shadow-header: 0 8px 28px rgba(8, 77, 159, 0.06);
  --shadow-floating-cta: 0 10px 24px rgba(217, 145, 44, 0.28);

  /* ---------- layout ---------- */
  --content-w: 1024px;
  --content-w-wide: 1200px;
  --gutter: var(--space-16);
  --floating-cta-h-sp: 84px;  /* 画面下の固定 CTA バー高さ（上下余白 12×2 + CONTACT 21.6 + 本文 2 行 36 + 枠 1×2 ≒ 84）。450px 以下で使用 */
  --focus-ring: 3px solid var(--color-text-accent);
  --focus-ring-on-dark: 3px solid var(--color-text-inverse); /* 濃色帯（#084d9f〜#2b5ea8・#101b4b）上で 3:1 以上を確保 */
  --tap-min: 44px;           /* UD: タップ領域の最小寸法 */

  /* ---------- section spacing（Figma 実測値。space/* 変数に無い値のみ） ---------- */
  --space-hero-top-sp: 92px;          /* SP Hero: Copy top 92 */
  --space-hero-top-pc: 77px;          /* PC: H1 top 160 − Header 83 */
  --space-stat-top-sp: 11px;          /* SP Stat/Residual pt-11 */
  --space-stat2-bottom-sp: 13px;      /* SP Stat/Adoption pb-13 */
  --space-stat-top-pc: 14px;          /* PC Stat: label top 503 − card 488（1px 枠込み） */
  --space-stat2-x-pc: 44px;           /* PC Stat/Adoption: Copy left 779 − card 735 */
  --space-farm-x-sp: 4.5px;           /* SP Banner/Farm: (343 − 334) / 2 */
  --space-farm-y-pc: 7px;             /* PC Group 21: mask top 859 − 852 */
  --space-farm-x-pc: 10.5px;          /* PC Group 21: mask left 538.35 − 527.82 */
  --space-section-top-70: 70px;       /* PC Reasons: label top 5591 − 5521 */
  --space-section-top-88: 88px;       /* PC Problem / Comparison: label top − section top */
  --space-section-top-112: 112px;     /* PC Mechanism: label top 3204 − 3092 */
  --space-risk-top-pc: 18px;          /* PC Card/Risk: Num top 1358 − 1340 */
  --space-risk-row-pc: 14px;          /* PC Card/Risk: 2 段目 top 1649 − 1段目 bottom 1635 */
  --space-insight-left-pc: 45px;      /* PC Card/Insight: text left 597 − 552 */
  --space-product-image-top-sp: 46px; /* SP Image/Tablets top 78 − label top 32 */
  --space-product-image-top-pc: -9px; /* PC アセット 4@2x top 2248 − label top 2257 */
  --space-product-desc-pc: 36px;      /* PC Paragraph1 top 2444 − Title bottom 2408 */
  --space-product-right-pc: 95px;     /* PC ProductCard 右端 1232 − 画像右端 1137 */
  --space-feature-gap-pc: 6px;        /* PC 円カード: Body top 2769 − Title bottom 2763 */
  --space-chart-gap-pc: 22px;         /* PC PhChart: bars top 118.6 − title bottom 96.6 */
  --space-chart-pad-pc: 31px;         /* PC PhChart: 内側余白 31.63 − 枠 */
  --space-chart-row-pc: 21px;         /* PC BarRow 間隔 170.41 − 149.70 */
  --space-chart-col-pc: 15.5px;       /* PC BarRow: track left 93.2 − label 77.67 */
  --space-chart-note-pc: 18px;        /* PC PhChart: note top 344.6 − bars bottom 305 − gap */
  --space-facility-gap: 10px;         /* Proof: Name left 363 − icon right 352.7 */
  --space-proof-top-pc: 35px;         /* PC ProofTitle top 6200 − 6165 */
  --space-reason-gap-pc: 19px;        /* PC 円カード: Body top 5906 − Title bottom 5887 */
  --space-reason-top-pc: 77px;        /* PC 円カード: Title top 5855 − 5778 */
  --space-flow-gap-sp: 22px;          /* SP Steps: gap 4 + 矢印 14 + gap 4 */
  --space-flow-right-sp: 22px;        /* SP Card/Step: right-[22px] */
  --space-flow-gap-pc: 41px;          /* PC Card/Step 間隔 474 − 433 */
  --space-gform-x-pc: 17px;           /* PC GForm カード left 17 */
  --space-gform-bottom-pc: 36px;      /* PC GoogleFormEmbed 高さ 1663 − SubmitRow bottom 1627 */
  --space-floating-btn-l-sp: 18px;    /* SP FloatingCTA Button pl-18 */
  --space-floating-btn-r-sp: 14px;    /* SP FloatingCTA Button pr-14 */
  --space-floating-bottom-pc: 25px;   /* PC FloatingCTA 高さ 197 − Button bottom 172 */
  --radius-chart-pc: 27px;            /* PC PhChart rounded 26.992 */
  --border-chart-pc: 3.374px;         /* PC PhChart border 3.374 */
}

@media (min-width: 768px) {
  :root {
    --gutter: var(--space-24);
  }
}

/* ---------- reset ----------
   [テーマ組み込み時の調整] 元は html/body/* などページ全体に効く指定。
   現行テーマ（common.css）のヘッダー・フッターに影響しないよう、本文（.p-creins）の中だけに効かせる。
   :where() で詳細度を元の要素セレクタと同じに保ち、支給CSSのクラス指定が優先される関係を変えない。
   html の scroll-behavior は削除（ページ内スクロールは現行の common.js が担当）。 */
.p-creins {
  display: block;
  font-family: var(--font-jp);
  font-size: var(--fs-16);
  line-height: var(--lh-170);
  color: var(--color-text-body);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* 現行 common.css の「* { line-height: … }」を打ち消し、行間を親から引き継ぐ */
:where(.p-creins) *, :where(.p-creins) *::before, :where(.p-creins) *::after {
  box-sizing: border-box;
  line-height: inherit;
}

:where(.p-creins) img {
  max-width: 100%;
  height: auto;
  display: block;
}

:where(.p-creins) :is(ul, ol, dl, dd) {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.p-creins) :is(h1, h2, h3, h4, p, figure) {
  margin: 0;
}

:where(.p-creins) a {
  color: inherit;
  text-decoration: none;
}

:where(.p-creins) :is(button, input) {
  font: inherit;
  color: inherit;
}

:where(.p-creins) table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 現行 common.css の「* { font: inherit; margin: 0; padding: 0; }」で消える、ブラウザ標準の書式を戻す */
:where(.p-creins) :is(h1, h2, h3, h4, h5, h6, th) {
  font-weight: bold;
}

:where(.p-creins) :is(b, strong) {
  font-weight: bolder;
}

:where(.p-creins) :is(th, td) {
  padding: 1px;
}

:where(.p-creins) :focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* 現行ヘッダーは SP（768px 以下）で本文の上に重なる（背景透明・高さ 80px）。
   ヒーローの見出しがロゴと重ならないよう、本文を下げる（60px：2026-11-04 指定） */
@media only screen and (max-width: 768px) {
  .p-creins {
    padding-top: 60px;
  }
}

/* 500px 以下で画面下部の固定ボタン（横長バー）にフッターが隠れないよう、ボタンの高さ分の余白を取る
   （支給データは 450px 以下。切り替えの境界を 500px にしたため 500px 以下に変えた：2026-11-05） */
body:has(.p-creins) {
  padding-bottom: var(--floating-cta-h-sp);
}

@media (min-width: 501px) {
  body:has(.p-creins) {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.p-creins) *, :where(.p-creins) *::before, :where(.p-creins) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- utilities ---------- */
.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.u-line {
  display: block;
}

.u-nowrap {
  white-space: nowrap;
}

/* ---------- layout ---------- */
.l-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--content-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.l-section {
  position: relative;
  overflow: clip;
}

/* ---------- decorative bubbles ---------- */
.deco-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: clip;
}

.deco {
  position: absolute;
  top: var(--y);
  width: var(--s);
  height: var(--s);
  max-width: none;
}

.deco--sp {
  left: var(--l);
}

.deco--sp.deco--right {
  left: auto;
  right: var(--r);
}

.deco--pc {
  display: none;
  left: calc(50% + var(--x));
}

@media (min-width: 768px) {
  .deco--sp {
    display: none;
  }

  .deco--pc {
    display: block;
  }
}

/* ---------- section heading ---------- */
.c-sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  text-align: center;
}

.c-sec-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--fs-13);
  line-height: var(--lh-150);
  letter-spacing: var(--ls-16);
  text-transform: uppercase;
  color: var(--color-text-heading);
}

.c-sec-label--start {
  align-self: flex-start;
}

.c-sec-label__icon {
  width: 44px;
  height: 40px;
  flex-shrink: 0;
}

.c-sec-label__icon--flip {
  transform: rotate(180deg);
}

.c-sec-title {
  font-weight: 700;
  font-size: var(--fs-24);
  line-height: var(--lh-145);
  letter-spacing: var(--ls-4);
  color: var(--color-text-heading);
}

.c-sec-sub {
  font-weight: 500;
  font-size: var(--fs-16);
  line-height: var(--lh-170);
  color: var(--color-text-body);
}

@media (min-width: 768px) {
  .c-sec-title {
    font-size: var(--fs-34);
  }
}

/* ---------- buttons ---------- */
.c-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  min-height: 44px;
  border-radius: var(--radius-full);
  font-weight: 700;
  line-height: var(--lh-150);
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.c-btn:hover {
  filter: brightness(1.06);
}

.c-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.c-btn--primary,
.c-btn--floating {
  background: var(--gradient-cta);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-cta);
}

.c-btn--primary,
.c-btn--secondary {
  height: 56px;
  padding-inline: var(--space-40);
  font-size: var(--fs-16);
  letter-spacing: var(--ls-5);
}

.c-btn--secondary {
  background: var(--gradient-secondary-hero);
  border: var(--border-2) solid var(--color-border-action);
  color: var(--color-text-accent);
  box-shadow: var(--shadow-float);
}

.c-btn--catalog {
  background: var(--gradient-secondary-cta);
  box-shadow: var(--shadow-card);
}
