@charset "utf-8";
/* ===================================================================
   Foundation：リセット・変数・基本のタイプセット・動きの土台
   値は承認済みデザイン（docs/05_design/pages/common.css・theme.css）から移す。
   **見た目を変えない。**命名だけ site_structure.md 3章のとおりに改める。
   =================================================================== */

/* -------------------------------------------------- 変数 */
:root {
  /* 書体 */
  --font-jp: "Plus Jakarta Sans", "LINE Seed JP", sans-serif;
  --font-en: "Plus Jakarta Sans", sans-serif;
  --font-mono: "DM Mono", monospace;
  --weight-copy: 700;
  --weight-heading: 700;
  --weight-ui: 700;

  /* 色 */
  --color-bg: #f6f8fa;
  --color-ink: #0b2239;
  --color-body: #3d5166;
  --color-mute: #6b7f93;
  --color-line: #d5dee6;
  --color-blue: #0078c0;
  --color-cyan: #24b4e8;
  --color-on-kv: #fff;
  --color-kv-line: rgba(255, 255, 255, 0.28);
  --color-kv-line-strong: rgba(255, 255, 255, 0.65);

  --color-navy: #0b2239;
  --color-white: #fff;

  /* 余白・動き
     左右の余白：中身は1200pxまで。画面がそれより広いときは左右の余白が広がる（承認済み C-1） */
  --gutter: max(clamp(40px, 8.33vw, 120px), calc((100vw - 1200px) / 2));
  --space-l: 160px;
  --space-m: 96px;
  --space-s: 56px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 矢印（ボタン・送り・SERVICE の箱で共用。向きへ4px・0.35秒） */
  --arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E");

  /* スクロール量（JSが書き込む） */
  --progress: 0;
  --kv-open: 0;
}

/* -------------------------------------------------- リセット */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  font-feature-settings: "palt";
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
  vertical-align: bottom;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* キーボード操作の輪郭は消さない（恒久ルール #42 ⑨） */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

/* -------------------------------------------------- 基本のタイプセット */
.u-en {
  font-family: var(--font-en);
}

.u-mono {
  font-family: var(--font-mono);
}

/* -------------------------------------------------- 動きの土台 */
/* 読み込み後に下から20px＋透明から現れる。JSが .is-in を付ける */
.js [data-in],
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease), background-color 0.3s ease, color 0.3s ease;
}

.js [data-in].is-in,
.js [data-stagger] > .is-in {
  opacity: 1;
  transform: none;
}

/* 図形の動き（KV・見出し部・メニューで共用） */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sway {
  from {
    transform: translateY(-12px) rotate(-6deg);
  }
  to {
    transform: translateY(14px) rotate(8deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

@keyframes run {
  0% {
    stroke-dashoffset: 220;
    transform: translate(-40px, 40px);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  50% {
    stroke-dashoffset: 0;
    transform: translate(0, 0);
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -220;
    transform: translate(40px, -40px);
    opacity: 0;
  }
}

@keyframes run-long {
  0% {
    stroke-dashoffset: 560;
    transform: translate(-60px, 60px);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  50% {
    stroke-dashoffset: 0;
    transform: translate(0, 0);
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -560;
    transform: translate(60px, -60px);
    opacity: 0;
  }
}

/* 動きを減らす設定のときは、すべて静止した形で見せる */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
  }

  .js [data-in],
  .js [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------- SP（767px以下）
   左右の余白 24px／区画の余白の段階を 160・96・56 → 96・64・40 に（承認済み R-5・C-2） */
@media (max-width: 767px) {
  :root {
    --gutter: 24px;
    --space-l: 96px;
    --space-m: 64px;
    --space-s: 40px;
  }
}

/* 見出し・メッセージは文節で折り返す（1〜2字だけが次の行に落ちるのを防ぐ＝承認済み R-4） */
@media (max-width: 1023px) {
  .c-section-title,
  .p-page-head__title,
  .p-page-head__message,
  .c-caption,
  .p-page-head__lead {
    word-break: auto-phrase;
    text-wrap: pretty;
  }
}

/* ===================================================================
   Layout：ページの骨組み（ヘッダー・本文・区画・フッター）
   出どころ＝承認済みデザインの common.css（ヘッダー）・sections.css（区画・フッター）・sub.css（下層のヘッダー）
   =================================================================== */

/* -------------------------------------------------- ヘッダー
   トップ：KVの上ではロゴを白にして直接置く（帯で囲まない）。KVを過ぎたら地色＋ぼかしの帯と通常のロゴ
   下層：最初から通常のロゴ・濃紺のボタン。スクロールしたら同じ帯 */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 var(--gutter);
  transition: height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.l-header__logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.l-header__logo-image {
  display: block;
  width: auto;
  height: 24px;
  transition: opacity 0.3s ease;
}

.l-header__logo-image--color {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.l-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.l-header__actions .c-button {
  min-height: 48px;
  padding: 0 20px 0 24px;
}

.l-header__menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: 8px;
  padding: 0;
  color: #fff;
  background: none;
  border: 0;
  transition: color 0.3s ease;
}

.l-header__bars {
  display: block;
  width: 32px;
}

.l-header__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transform-origin: right center;
  transition: transform 0.45s var(--ease);
}

.l-header__bars span + span {
  margin-top: 9px;
}

.l-header__bars span:first-child {
  transform: scaleX(0.56);
}

.l-header__menu-button:hover .l-header__bars span:first-child,
.l-header__menu-button:focus-visible .l-header__bars span:first-child {
  transform: scaleX(1);
}

.l-header__menu-button:hover .l-header__bars span + span,
.l-header__menu-button:focus-visible .l-header__bars span + span {
  transform: scaleX(0.56);
}

/* KVを過ぎたとき（トップ）／スクロールしたとき（下層） */
.is-past-kv .l-header,
.is-scrolled .l-header {
  background: rgba(246, 248, 250, 0.86);
  box-shadow: 0 1px 0 var(--color-line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.is-past-kv .l-header__logo-image--white {
  opacity: 0;
}

.is-past-kv .l-header__logo-image--color {
  opacity: 1;
}

.is-past-kv .l-header__menu-button {
  color: var(--color-ink);
}

/* 下層：最初から通常のロゴ・濃紺のボタン */
.l-body--sub .l-header__logo-image--color {
  position: static;
  opacity: 1;
}

.l-body--sub .l-header__logo-image--white {
  display: none;
}

.l-body--sub .l-header__menu-button {
  color: var(--color-ink);
}

/* -------------------------------------------------- 本文 */
.l-main {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
}

.l-body--sub .l-main {
  padding-top: 88px;
}

/* -------------------------------------------------- 区画 */
.l-section {
  position: relative;
  padding: var(--space-l) var(--gutter) 0;
}

.l-section:first-of-type {
  padding-top: 120px;
}

/* 見出し部（ラベル｜h2・キャプション・ボタン） */
.l-section__head {
  display: grid;
  grid-template-columns: minmax(160px, 20%) minmax(0, 1fr);
  align-items: start;
}

/* h2 下のキャプションは1行40字まで。ボタンは右端（課題表 #73） */
.l-section__body {
  display: grid;
  grid-template-columns: minmax(0, 40em) auto;
  justify-content: space-between;
  gap: 48px;
  align-items: end;
  margin-top: 36px;
}

.l-section__side {
  display: flex;
  justify-content: flex-end;
}

/* -------------------------------------------------- フッター */
.l-footer {
  margin-top: -20px;
  padding: 120px var(--gutter) 32px;
  color: #fff;
  background: var(--color-navy);
}

.l-footer__group {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.l-footer__logo {
  display: block;
  width: auto;
  height: 24px;
  margin-bottom: 28px;
}

.l-footer__identity {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
}

.l-footer__heading {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.l-footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.l-footer__link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.3s ease;
}

.l-footer__link:hover,
.l-footer__link:focus-visible {
  color: var(--color-cyan);
}

/* 輪郭だけの社名 */
.l-footer__big-name {
  margin: 56px 0 28px;
  font-size: clamp(56px, 8.2vw, 118px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}

.l-footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.l-footer__copyright {
  font-family: var(--font-en);
  font-size: inherit;
}

/* -------------------------------------------------- 中間の幅（768〜1023px） */
@media (max-width: 1023px) {
  .l-footer__group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

/* -------------------------------------------------- SP（767px以下） */
@media (max-width: 767px) {
  /* ヘッダー：高さ64px・ロゴ20px。ロゴとハンバーガーだけ（お問い合わせはメニューの中のボタン） */
  .l-header {
    height: 64px;
    padding: 0 12px 0 var(--gutter);
  }

  .l-header__logo-image {
    height: 20px;
  }

  .l-header__actions .c-button {
    display: none;
  }

  .l-header__menu-button {
    margin-left: 0;
  }

  .l-header__bars {
    width: 28px;
  }

  .l-body--sub .l-main {
    padding-top: 64px;
  }

  /* 区画：ラベルの上にh2を積む。ボタンはキャプションの下・左 */
  .l-section {
    padding: var(--space-l) var(--gutter) 0;
  }

  .l-section:first-of-type {
    padding-top: 96px;
  }

  .l-section__head {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .l-section__body {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 24px;
  }

  .l-section__side {
    justify-content: flex-start;
  }

  .l-section__side:empty {
    display: none;
  }

  /* フッター：SERVICE を全幅、COMPANY と CONTACT を2列。大きな社名は画面幅に収める */
  .l-footer {
    padding: 72px var(--gutter) 28px;
  }

  .l-footer__group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 16px;
    padding-bottom: 48px;
  }

  .l-footer__identity-block,
  .l-footer__nav:first-of-type {
    grid-column: 1 / -1;
  }

  .l-footer__logo {
    height: 20px;
    margin-bottom: 20px;
  }

  .l-footer__list {
    gap: 14px;
  }

  .l-footer__big-name {
    margin: 40px 0 20px;
    font-size: calc((100vw - var(--gutter) * 2) / 10.2);
  }

  .l-footer__bottom {
    font-size: 11px;
  }
}

/* ===================================================================
   Component：画面をまたいで使う部品
   出どころ＝承認済みデザインの common.css・theme.css・sections.css・sub.css・menu.css
   =================================================================== */

/* -------------------------------------------------- 本文へ移動（キーボード操作用。ふだんは隠す） */
.c-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 30;
  padding: 12px 20px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  background: var(--color-ink);
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.c-skip-link:focus {
  top: 0;
}

/* -------------------------------------------------- ボタン
   文字＋矢印（矢印を丸で囲まない。矢印は文字と同じ色）。ロールオーバーで色が変わり、矢印が向きへ4px進む（恒久ルール #35）
   既定＝白い地（KV・青い面・濃紺の面の上）／--dark＝濃紺の地（明るい面の上）／--ghost＝線だけ */
.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px 0 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: var(--weight-ui);
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.c-button::after {
  content: "";
  flex: none;
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--arrow-mask) center / 16px 16px no-repeat;
  mask: var(--arrow-mask) center / 16px 16px no-repeat;
  transition: transform 0.35s var(--ease);
}

.c-button:hover,
.c-button:focus-visible {
  color: #0067a8;
  background: #e4f4fc;
}

.c-button:hover::after,
.c-button:focus-visible::after {
  transform: translateX(4px);
}

.c-button--dark {
  color: #fff;
  background: var(--color-ink);
}

.c-button--dark:hover,
.c-button--dark:focus-visible {
  color: #fff;
  background: var(--color-blue);
}

.c-button--ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.c-button--ghost:hover,
.c-button--ghost:focus-visible {
  color: #0067a8;
  background: #fff;
  border-color: #fff;
}

/* ヘッダーのボタンは、地の明るさで色が変わる（トップ：KVを過ぎたら／下層：最初から濃紺） */
.is-past-kv .l-header .c-button,
.l-body--sub .l-header .c-button {
  color: #fff;
  background: var(--color-ink);
}

.is-past-kv .l-header .c-button:hover,
.is-past-kv .l-header .c-button:focus-visible,
.l-body--sub .l-header .c-button:hover,
.l-body--sub .l-header .c-button:focus-visible {
  color: #fff;
  background: var(--color-blue);
}

/* -------------------------------------------------- ラベル（区画の英字） */
.c-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-mute);
}

.c-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-blue);
  border-radius: 50%;
}

/* -------------------------------------------------- 区画の見出し */
.c-section-title {
  margin: 0;
  font-size: clamp(28px, 2.65vw, 38px);
  font-weight: var(--weight-heading);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* h2 の2行目は1行目と同じ色（恒久ルール #35） */
.c-section-title__sub {
  color: inherit;
}

.c-caption {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: var(--color-body);
}

/* -------------------------------------------------- パンくず */
.c-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-mute);
}

.c-breadcrumb__link {
  color: var(--color-mute);
  text-decoration: none;
  transition: color 0.3s ease;
}

.c-breadcrumb__link:hover,
.c-breadcrumb__link:focus-visible {
  color: var(--color-blue);
}

.c-breadcrumb__separator {
  display: block;
  width: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.c-breadcrumb__current {
  color: var(--color-ink);
}

/* -------------------------------------------------- 工程の番号（CTA・FLOW で共用） */
.c-step-number {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* -------------------------------------------------- メニュー（全画面共通）
   面は濃紺。上から下へ面が開き（0.7秒）、中身は「下から20px」で順に現れる */
.c-drawer {
  position: fixed;
  inset: 0;
  z-index: 19;
  overflow: auto;
  overscroll-behavior: contain;
  color: #fff;
  background: var(--color-navy);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}

.is-menu .c-drawer {
  visibility: visible;
  clip-path: inset(0);
  transition: clip-path 0.7s var(--ease);
}

.c-drawer__graphic {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 760px;
  height: 760px;
  pointer-events: none;
}

.c-drawer__graphic * {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.c-drawer__dot {
  fill: rgba(255, 255, 255, 0.4);
  stroke: none;
}

.c-drawer__hatch-line {
  stroke: rgba(255, 255, 255, 0.16);
}

.c-drawer__nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 20%) minmax(0, 1.25fr) minmax(0, 1fr) 320px;
  align-items: start;
  min-height: 100%;
  padding: 200px var(--gutter) 96px;
}

.c-drawer__label {
  color: rgba(255, 255, 255, 0.7);
}

.c-drawer__label::before {
  background: var(--color-cyan);
}

.c-drawer__link {
  display: inline-block;
  padding: 0 0 28px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.c-drawer__link:hover,
.c-drawer__link:focus-visible {
  color: var(--color-cyan);
}

.c-drawer__sub {
  margin: 4px 80px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.c-drawer__sub-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.3s ease;
}

.c-drawer__sub-link::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--arrow-mask) center / 16px 16px no-repeat;
  mask: var(--arrow-mask) center / 16px 16px no-repeat;
  transition: transform 0.35s var(--ease);
}

.c-drawer__sub-link:hover,
.c-drawer__sub-link:focus-visible {
  color: var(--color-cyan);
}

.c-drawer__sub-link:hover::after,
.c-drawer__sub-link:focus-visible::after {
  transform: translateX(4px);
}

.c-drawer__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-drawer__buttons .c-button {
  min-height: 56px;
}

.c-drawer__identity {
  margin-top: 36px;
  padding-top: 28px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* 閉じるボタンは面の全体に重ねず、右上のハンバーガー（×に変わる）に任せるため、画面外に置いて読み上げだけ残す */
.c-drawer__close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.c-drawer__close:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

/* 中身は「下から20px」で順に */
.c-drawer [data-m] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.is-menu .c-drawer [data-m] {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease calc(0.25s + var(--delay, 0s)), transform 0.8s var(--ease) calc(0.25s + var(--delay, 0s));
}

/* 開いている間のヘッダー：帯を消し、ロゴは白、ボタンは白、ハンバーガーは「×」へ */
.is-menu {
  overflow: hidden;
}

.is-menu .l-header {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.is-menu .l-header__logo-image--white {
  display: block;
  opacity: 1;
}

.is-menu .l-header__logo-image--color {
  opacity: 0;
}

.is-menu .l-header__menu-button {
  color: #fff;
}

.is-menu .l-header .c-button {
  color: var(--color-ink);
  background: #fff;
}

.is-menu .l-header .c-button:hover,
.is-menu .l-header .c-button:focus-visible {
  color: #0067a8;
  background: #e4f4fc;
}

.is-menu .l-header__bars span {
  transform-origin: center;
}

.is-menu .l-header__bars span:first-child {
  transform: translateY(5.5px) rotate(45deg);
}

.is-menu .l-header__bars span + span {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .c-drawer,
  .is-menu .c-drawer {
    transition: none;
  }

  .c-drawer [data-m] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -------------------------------------------------- 画像の面
   独立して置く写真は角丸12px、画面の端まで伸ばす帯は角丸なし。
   色調は彩度を落として青を薄くかけ、全部の写真をそろえる（承認済み C-3） */
.c-photo {
  position: relative;
  overflow: hidden;
  background: #dce6ee;
  border-radius: 12px;
}

.c-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.32) contrast(1.04) brightness(1.03);
}

.c-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 120, 192, 0.1);
  pointer-events: none;
}

.c-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 120, 192, 0.3), rgba(11, 34, 57, 0.18));
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* 図形のグラフィック（ナレッジのカテゴリの画像）には、写真用の色調の処理をかけない */
.c-photo--graphic img {
  filter: none;
}

.c-photo--graphic::before,
.c-photo--graphic::after {
  display: none;
}

/* -------------------------------------------------- 小さな部品 */
.c-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-mute);
}

.c-pill {
  padding: 3px 12px;
  font-family: var(--font-jp);
  letter-spacing: 0.04em;
  color: var(--color-blue);
  border: 1px solid currentColor;
  border-radius: 999px;
}

.c-table {
  width: 100%;
  margin-top: 40px;
  font-size: 15px;
  border-top: 1px solid var(--color-line);
  border-collapse: collapse;
}

.c-table th,
.c-table td {
  padding: 18px 0;
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
  border-bottom: 1px solid var(--color-line);
}

.c-table th {
  width: 140px;
  font-weight: 700;
}

.c-table td {
  color: var(--color-body);
}

/* -------------------------------------------------- 横送り（SERVICE の箱）
   箱が画面に収まっているときは、線と矢印を出さない */
.c-slider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.c-slider.is-fit {
  visibility: hidden;
  height: 0;
  margin: 0;
}

.c-slider__bar {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--color-line);
}

.c-slider__bar span {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--color-blue);
  transition: width 0.2s linear;
}

.c-slider__arrows {
  display: flex;
  gap: 8px;
}

.c-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-ink);
  background: transparent;
  border: 1px solid var(--color-ink);
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.c-slider__arrow::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--arrow-mask) center / 16px 16px no-repeat;
  mask: var(--arrow-mask) center / 16px 16px no-repeat;
  transition: transform 0.35s var(--ease);
}

.c-slider__arrow--prev::before {
  transform: scaleX(-1);
}

.c-slider__arrow:hover,
.c-slider__arrow:focus-visible {
  color: #fff;
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.c-slider__arrow--prev:hover::before,
.c-slider__arrow--prev:focus-visible::before {
  transform: scaleX(-1) translateX(4px);
}

.c-slider__arrow--next:hover::before,
.c-slider__arrow--next:focus-visible::before {
  transform: translateX(4px);
}

/* -------------------------------------------------- リンクのカード（記事・サービス）
   白い箱。ロールオーバーで、KVと同じ青の曲面が下からせり上がり、文字が白に変わる。右下に丸い矢印 */
.c-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--color-ink);
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  transition: color 0.35s ease;
}

.c-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(155deg, #0a8fd6 0%, #0078c0 42%, #00509e 100%);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}

.c-card:hover::before,
.c-card:focus-visible::before {
  transform: none;
}

.c-card:hover,
.c-card:focus-visible {
  color: #fff;
}

.c-card__title {
  font-size: 18px;
  font-weight: var(--weight-heading);
  line-height: 1.65;
}

.c-card__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-body);
  transition: color 0.35s ease;
}

.c-card:hover .c-card__text,
.c-card:focus-visible .c-card__text {
  color: rgba(255, 255, 255, 0.9);
}

.c-card .c-meta,
.c-card .c-pill {
  transition: color 0.35s ease;
}

.c-card:hover .c-meta,
.c-card:focus-visible .c-meta,
.c-card:hover .c-pill,
.c-card:focus-visible .c-pill {
  color: #fff;
}

/* 右下の丸い矢印（リンクであることの合図。文字は置かない＝恒久ルール #35） */
.c-arrow-circle {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.c-arrow-circle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--color-ink);
  border-radius: 50%;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.c-arrow-circle span::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--arrow-mask) center / 16px 16px no-repeat;
  mask: var(--arrow-mask) center / 16px 16px no-repeat;
  transition: transform 0.35s var(--ease);
}

.c-card:hover .c-arrow-circle span,
.c-card:focus-visible .c-arrow-circle span,
.p-service-block:hover .c-arrow-circle span,
.p-service-block:focus-visible .c-arrow-circle span {
  color: var(--color-ink);
  background: #fff;
}

.c-card:hover .c-arrow-circle span::before,
.c-card:focus-visible .c-arrow-circle span::before,
.p-service-block:hover .c-arrow-circle span::before,
.p-service-block:focus-visible .c-arrow-circle span::before {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .c-table {
    margin-top: 28px;
    font-size: 14px;
  }

  .c-table th {
    width: 88px;
    padding-right: 12px;
  }

  .c-meta {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .c-pill {
    white-space: nowrap;
  }

  .c-card__title {
    font-size: 16px;
  }

  .c-arrow-circle span {
    width: 36px;
    height: 36px;
  }

  .c-slider {
    margin-top: 20px;
  }

  .c-slider__arrow {
    width: 44px;
    height: 44px;
  }
}

/* -------------------------------------------------- SP（767px以下） */
@media (max-width: 767px) {
  .c-label {
    padding-top: 0;
  }

  .c-section-title {
    font-size: clamp(21px, 5.9vw, 24px);
    line-height: 1.5;
  }

  .c-caption {
    font-size: 15px;
    line-height: 1.95;
  }
}

/* ===================================================================
   Project：画面・区画のかたまり
   出どころ＝承認済みデザインの sections.css（トップ・CTA）・sub.css（下層）
   =================================================================== */

/* -------------------------------------------------- ページ見出し部
   第二階層＝白い面（周囲12px・角丸20px）に青い線の図形／第三階層以下＝地色のみ・下に罫線1本（恒久ルール #22・#36） */
.p-page-head {
  position: relative;
  padding: 0 var(--gutter);
}

.p-page-head__group {
  padding: 64px 0 96px;
  border-bottom: 1px solid var(--color-line);
}

.p-page-head__title {
  font-size: clamp(36px, 3.9vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.p-page-head__text {
  margin: 56px 0 0 20%;
}

.p-page-head__message {
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.p-page-head__lead {
  max-width: 40em;
  margin-top: 28px;
  font-size: 16px;
  line-height: 2;
  color: var(--color-body);
}

.p-page-head + .l-section {
  padding-top: var(--space-m);
}

/* 第二階層：白い面と図形 */
.p-page-head--visual {
  overflow: hidden;
  isolation: isolate;
  margin: 0 12px;
  padding: 0 calc(var(--gutter) - 12px);
  background: #fff;
  border-radius: 20px;
}

.p-page-head--visual .p-page-head__group {
  padding: 64px 0 88px;
  border-bottom: 0;
}

.p-page-head--visual .p-page-head__text {
  margin-top: 36px;
}

.p-page-head--visual + .l-section {
  padding-top: 120px;
}

.p-page-head__graphic {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
}

.p-page-head__graphic * {
  fill: none;
  stroke: var(--color-blue);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.p-page-head__graphic .dot {
  fill: var(--color-blue);
  stroke: none;
}

.p-page-head__graphic .fill {
  fill: var(--color-cyan);
  stroke: none;
}

.p-page-head__graphic [data-depth] {
  will-change: transform;
}

.p-page-head__graphic .spin,
.p-page-head__graphic .tri,
.p-page-head__graphic .ring {
  transform-box: fill-box;
  transform-origin: center;
}

.p-page-head__graphic .hatch line {
  stroke-width: 1.4;
}

/* 読み込み直後：図形が透明から現れる */
.js .p-page-head__graphic {
  opacity: 0;
}

.js.is-ready .p-page-head__graphic {
  opacity: 1;
  transition: opacity 1.4s ease 0.1s;
}

/* 図形の動き（変数は Foundation の @keyframes） */
.p-page-head__graphic .spin,
.c-drawer__graphic .spin {
  animation: spin 90s linear infinite;
}

.p-page-head__graphic .tri {
  animation: sway 11s ease-in-out infinite alternate;
}

.p-page-head__graphic .tri.t2 {
  animation-duration: 14s;
  animation-delay: -4s;
}

.p-page-head__graphic .run {
  stroke-dasharray: 220;
  animation: run 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.p-page-head__graphic .run.long {
  stroke-dasharray: 560;
  animation-name: run-long;
}

.p-page-head__graphic .run.r2 {
  animation-duration: 11s;
  animation-delay: -3s;
}

.p-page-head__graphic .run.r3 {
  animation-duration: 10s;
  animation-delay: -6s;
}

/* -------------------------------------------------- CONTACT（全画面共通。お問い合わせの3画面には置かない）
   KVと同じ青の曲面の面（動かない絵）。周囲12px・角丸20px */
.p-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
  margin: var(--space-l) 12px 12px;
  padding: 112px calc(var(--gutter) - 12px);
  color: #fff;
  background: #0070bc;
  border-radius: 20px;
}

.p-cta__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 105% -10%, rgba(23, 161, 227, 0.95) 0%, rgba(23, 161, 227, 0) 55%),
    radial-gradient(90% 120% at -10% 115%, rgba(0, 64, 138, 0.95) 0%, rgba(0, 64, 138, 0) 60%),
    linear-gradient(140deg, #0887d1 0%, #0070bc 45%, #0054a3 100%);
}

.p-cta__background::before,
.p-cta__background::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.p-cta__background::before {
  top: -220px;
  right: -180px;
  width: 520px;
  height: 520px;
}

.p-cta__background::after {
  right: 120px;
  bottom: -190px;
  width: 300px;
  height: 300px;
  border-color: rgba(255, 255, 255, 0.22);
}

.p-cta .c-label {
  margin-bottom: 24px;
  padding-top: 0;
  color: rgba(255, 255, 255, 0.8);
}

.p-cta .c-label::before {
  background: #fff;
}

.p-cta .c-caption {
  max-width: 520px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.88);
}

.p-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.p-cta__flow {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.p-cta__step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.p-cta__step .c-step-number {
  padding-top: 6px;
  color: rgba(255, 255, 255, 0.75);
}

.p-cta__step-title {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: var(--weight-heading);
}

.p-cta__step-text {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.85);
}

/* -------------------------------------------------- 404 */
.p-notfound__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* -------------------------------------------------- 本文だけの画面（プライバシーポリシー・このサイトについて） */
.p-document {
  max-width: 48em;
  margin-left: 20%;
}

.p-document__section + .p-document__section {
  margin-top: 56px;
}

.p-document__title {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: var(--weight-heading);
  line-height: 1.5;
}

.p-document__text {
  font-size: 16px;
  line-height: 2;
  color: var(--color-body);
}

.p-document__text + .p-document__text {
  margin-top: 20px;
}

.p-document__list {
  margin-top: 16px;
  padding-left: 1.2em;
  font-size: 16px;
  line-height: 2;
  color: var(--color-body);
  list-style: disc;
}

.p-document__table {
  width: 100%;
  margin-top: 24px;
  font-size: 15px;
  border-top: 1px solid var(--color-line);
  border-collapse: collapse;
}

.p-document__table th,
.p-document__table td {
  padding: 18px 0;
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
  border-bottom: 1px solid var(--color-line);
}

.p-document__table th {
  width: 280px;
  font-weight: 700;
}

.p-document__table td {
  color: var(--color-body);
}

/* 最終改定日（プライバシーポリシー） */
.p-document__revised {
  margin-top: 56px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--color-mute);
  border-top: 1px solid var(--color-line);
}

.p-document__text a,
.p-document__list a {
  color: var(--color-blue);
}

@media (max-width: 1023px) {
  .p-document {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .p-document__section + .p-document__section {
    margin-top: 44px;
  }

  .p-document__title {
    font-size: 19px;
  }

  .p-document__text,
  .p-document__list {
    font-size: 15px;
    line-height: 1.95;
  }

  .p-document__table {
    font-size: 14px;
  }

  .p-document__table th,
  .p-document__table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .p-document__table thead {
    display: none;
  }

  .p-document__table tr {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .p-document__table td {
    margin-top: 6px;
    color: var(--color-body);
  }
}

/* ===================================================================
   Project（お問い合わせ：入力・確認・送信完了）
   出どころ＝承認済みデザインの sub.css（F-1〜F-7・A-1・A-3）。**見た目を変えない**
   フォームの反応は色の変化だけ（入力中＝青の枠と薄い輪、直す欄＝赤の枠と文）。動きは足さない
   =================================================================== */

:root {
  --color-error: #c4343f;
}

/* 左にラベルの列（20%）、フォームは幅760pxまで */
.p-form {
  display: grid;
  grid-template-columns: minmax(160px, 20%) minmax(0, 760px);
  align-items: start;
}

.p-form .c-label {
  padding-top: 0;
}

.l-section--form {
  padding-bottom: var(--space-l);
}

/* -------------------------------------------------- 進み具合（3段） */
.c-form-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 56px;
  border-top: 1px solid var(--color-line);
}

.c-form-steps li {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding-top: 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--color-mute);
}

.c-form-steps li span {
  font-family: var(--font-mono);
  font-size: 12px;
}

.c-form-steps li.is-current {
  font-weight: 700;
  color: var(--color-ink);
}

.c-form-steps li.is-current::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--color-blue);
}

.c-form-steps li.is-current span {
  font-weight: 400;
  color: var(--color-blue);
}

/* -------------------------------------------------- 入力欄 */
.c-field {
  margin-bottom: 36px;
}

.c-field__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
}

.c-badge--required,
.c-badge--optional {
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.06em;
  border-radius: 999px;
}

.c-badge--required {
  color: #fff;
  background: var(--color-ink);
}

.c-badge--optional {
  color: var(--color-mute);
  background: #fff;
  border: 1px solid var(--color-line);
}

.c-input,
.c-textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid #c3d0db;
  border-radius: 10px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.c-textarea {
  min-height: 220px;
  padding: 16px 18px;
  line-height: 1.8;
  resize: vertical;
}

.c-input:focus,
.c-textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(0, 120, 192, 0.14);
}

.c-hint {
  margin-top: 10px;
  font-size: 13px;
  text-align: right;
  color: var(--color-mute);
}

/* -------------------------------------------------- ご相談の種類（説明つきの選択肢） */
.c-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c-radio {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.c-radio:hover {
  border-color: #9db4c6;
}

.c-radio:has(input:checked) {
  background: #f2f9fd;
  border-color: var(--color-blue);
}

.c-radio small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-mute);
}

.c-radio input,
.c-agree input {
  flex: none;
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  background: #fff;
  border: 1.5px solid #9db4c6;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.c-radio input {
  border-radius: 50%;
}

.c-radio input:checked {
  background: var(--color-blue);
  border-color: var(--color-blue);
  box-shadow: inset 0 0 0 4px #fff;
}

.c-agree input {
  margin: 0;
  border-radius: 5px;
}

.c-agree input:checked {
  background: var(--color-blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
  border-color: var(--color-blue);
}

.c-radio input:focus-visible,
.c-agree input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 120, 192, 0.18);
}

/* -------------------------------------------------- 同意と送信 */
.c-agree {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.8;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  cursor: pointer;
}

.c-agree a {
  color: var(--color-blue);
}

.p-form__send {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.p-form__send .c-button {
  min-height: 60px;
  padding: 0 36px 0 44px;
  font-size: 15px;
}

.p-form__send .c-button--reverse {
  padding: 0 44px 0 36px;
}

.p-form__send .c-button[disabled] {
  opacity: 0.6;
  cursor: default;
}

.p-form__send .c-button[disabled]::after {
  display: none;
}

/* -------------------------------------------------- エラー表示
   欄の下に赤の文、上部に直す項目のまとめ。入力画面へ戻したときの案内は青の帯 */
.c-error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-error);
}

.c-error::before {
  content: "!";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  font: 700 11px / 1 var(--font-en);
  color: #fff;
  background: var(--color-error);
  border-radius: 50%;
}

.c-field.is-invalid .c-error,
.c-agree.is-invalid + .c-error {
  display: flex;
}

.c-field.is-invalid .c-input,
.c-field.is-invalid .c-textarea {
  background: #fff9f9;
  border-color: var(--color-error);
}

.c-field.is-invalid .c-radio {
  border-color: #e7b7bb;
}

.c-agree.is-invalid {
  background: #fff9f9;
  border-color: var(--color-error);
}

.p-form__summary,
.p-form__notice,
.p-form__fail {
  margin-bottom: 48px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-error);
  border-radius: 10px;
}

.p-form__summary p,
.p-form__notice p,
.p-form__fail p {
  font-size: 15px;
  line-height: 1.9;
}

.p-form__summary > p {
  font-weight: 700;
}

.p-form__summary ul {
  margin-top: 12px;
}

.p-form__summary li {
  font-size: 14px;
  line-height: 1.9;
}

.p-form__summary a {
  color: var(--color-error);
}

.p-form__notice {
  border-left-color: var(--color-blue);
}

.p-form__fail {
  margin: 40px 0 0;
}

.p-form__fail h2 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-error);
}

.p-form__fail .p-form__tel {
  margin-top: 12px;
}

.p-form__fail .p-form__tel b {
  margin-left: 8px;
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

/* -------------------------------------------------- 入力内容の確認 */
.p-form__lead {
  font-size: 16px;
  line-height: 2;
  color: var(--color-body);
  word-break: auto-phrase;
}

.c-table--confirm {
  margin-top: 32px;
  font-size: 16px;
}

.c-table--confirm th {
  width: 200px;
  padding: 22px 0;
}

.c-table--confirm td {
  padding: 22px 0;
  white-space: pre-line;
  color: var(--color-ink);
}

/* -------------------------------------------------- 送信完了 */
.p-done {
  padding: 48px 56px 52px;
  background: #fff;
  border-radius: 12px;
}

.p-done__check {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 9px 0 36px 9px;
  background: var(--color-blue);
  border-radius: 50%;
}

.p-done__check::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid var(--color-blue);
  border-radius: 50%;
  opacity: 0.35;
}

.p-done__check svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-done h2 {
  margin-bottom: 20px;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.5;
}

/* 文節で折り返す（「2営／業日」のような切れ方を防ぐ） */
.p-done > p,
.p-done dd {
  word-break: auto-phrase;
}

.p-done > p {
  font-size: 16px;
  line-height: 2;
  color: var(--color-body);
}

.p-done dl {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.p-done dt {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.p-done dd {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-body);
}

.p-done__more {
  margin-top: 36px;
}

/* -------------------------------------------------- ご相談後の流れ（画像のない3段） */
.p-after {
  display: grid;
  grid-template-columns: minmax(160px, 20%) minmax(0, 1fr);
  align-items: start;
  margin-top: 120px;
  padding-top: 56px;
  border-top: 1px solid var(--color-line);
}

.p-after .c-label {
  padding-top: 4px;
}

.p-after ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.p-after li {
  padding: 28px 28px 32px;
  background: #fff;
  border-radius: 12px;
}

.p-after .c-step-number {
  display: block;
  margin-bottom: 14px;
  color: var(--color-blue);
}

.p-after h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.p-after p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-body);
}

/* -------------------------------------------------- 中間の幅（768〜1023px） */
@media (max-width: 1023px) {
  .p-form,
  .p-after {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
}

/* -------------------------------------------------- SP（767px以下） */
@media (max-width: 767px) {
  .p-form {
    row-gap: 24px;
  }

  .c-form-steps {
    margin-bottom: 40px;
  }

  .c-form-steps li {
    flex-direction: column;
    gap: 2px;
    padding-top: 12px;
    font-size: 12px;
  }

  .c-field {
    margin-bottom: 28px;
  }

  .c-field__label {
    font-size: 14px;
  }

  .c-radio {
    gap: 12px;
    padding: 16px;
    font-size: 14px;
  }

  .c-agree {
    align-items: flex-start;
    margin-top: 36px;
    padding: 18px 16px;
    font-size: 14px;
  }

  .c-agree input {
    margin-top: 3px;
  }

  .c-badge--required,
  .c-badge--optional {
    flex: none;
    white-space: nowrap;
  }

  .p-form__send {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .p-form__send .c-button,
  .p-form__send .c-button--reverse {
    min-height: 56px;
    padding: 0 24px;
    justify-content: center;
  }

  .p-form__summary,
  .p-form__notice {
    margin-bottom: 36px;
    padding: 20px 18px;
  }

  .p-form__fail {
    padding: 20px 18px;
  }

  .c-table--confirm {
    font-size: 14px;
  }

  .c-table--confirm th {
    width: 118px;
    padding: 18px 12px 18px 0;
  }

  .c-table--confirm td {
    padding: 18px 0;
  }

  .p-done {
    padding: 32px 24px 36px;
  }

  .p-done h2 {
    font-size: 21px;
  }

  .p-done > p {
    font-size: 15px;
  }

  .p-after {
    margin-top: 72px;
    padding-top: 40px;
    row-gap: 24px;
  }

  .p-after ol {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .p-after li {
    padding: 22px 20px 24px;
  }

  .l-section--form {
    padding-bottom: var(--space-l);
  }
}

/* ===================================================================
   Project（ナレッジ一覧・ナレッジ詳細）
   出どころ＝承認済みデザインの sub.css（K-1〜K-5）。**見た目を変えない**
   =================================================================== */

/* -------------------------------------------------- 一覧：地色の上に3列
   カードはトップ KNOWLEDGE の白いカードと同じ決まり。頭にカテゴリの図形 */
.p-knowledge-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.c-card--knowledge {
  gap: 0;
}

.c-card--knowledge .c-photo {
  aspect-ratio: 8 / 5;
  border-radius: 0;
}

.c-card--knowledge .c-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-card--knowledge .c-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 32px 32px;
}

.c-card--knowledge .c-card__title {
  font-size: 19px;
  line-height: 1.6;
}

.c-card--knowledge .c-card__text {
  font-size: 14px;
}

/* -------------------------------------------------- 詳細：見出し部
   第三階層（地色のみ）。記事のタイトルだけ h1 を小さくする（課題表 #87。画面名ではなく全角60字までの文のため） */
.p-article-head {
  padding-top: 56px;
}

.p-article-head .c-meta {
  gap: 20px;
  font-size: 13px;
}

/* 長いタイトルは文節で折り返し、行の長さをそろえる */
.p-article-head__title {
  max-width: 24em;
  margin-top: 24px;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.5;
  word-break: auto-phrase;
  text-wrap: balance;
}

/* -------------------------------------------------- 詳細：要点と本文
   h2 の左端（20%）にそろえ、幅は760pxまで */
.p-article {
  max-width: 760px;
  margin-left: 20%;
}

.p-article__note {
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-mute);
}

/* 要点：白い面。頭に青い帯の見出し、項目は番号つき（本文の箇条書きと見分ける） */
.p-article__points {
  overflow: hidden;
  margin-bottom: 64px;
  background: #fff;
  border-radius: 12px;
}

.p-article__points h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(140deg, #0887d1 0%, #0070bc 45%, #0054a3 100%);
}

.p-article__points h2::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-cyan);
  border-radius: 50%;
}

.p-article__points ol {
  padding: 12px 36px 20px;
  counter-reset: point;
}

.p-article__points li {
  counter-increment: point;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 14px 0;
  font-size: 16px;
  line-height: 1.9;
  border-bottom: 1px solid var(--color-line);
}

.p-article__points li:last-child {
  border-bottom: 0;
}

.p-article__points li::before {
  content: "0" counter(point);
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--color-blue);
}

/* 本文の型 */
.p-article__body > p {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 2.1;
  color: var(--color-ink);
}

.p-article__body > h2 {
  position: relative;
  margin: 80px 0 28px;
  padding-top: 28px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  border-top: 1px solid var(--color-line);
}

.p-article__body > h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--color-blue);
}

.p-article__body > h3 {
  margin: 48px 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.p-article__body > ul {
  margin-bottom: 28px;
}

.p-article__body > ul li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 2;
}

.p-article__body > ul li::before {
  content: "";
  position: absolute;
  top: 1em;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--color-blue);
}

.p-article__body > blockquote {
  margin-bottom: 28px;
  padding: 4px 0 4px 28px;
  font-size: 16px;
  line-height: 2;
  color: var(--color-body);
  border-left: 2px solid var(--color-blue);
}

.p-article__body > blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-style: normal;
  color: var(--color-mute);
}

/* 表（見出し行は小さな灰色、下に濃い罫線） */
.c-article-table {
  width: 100%;
  margin-bottom: 16px;
  font-size: 15px;
  border-collapse: collapse;
}

.c-article-table th {
  padding: 0 24px 12px 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: left;
  color: var(--color-mute);
  border-bottom: 1px solid var(--color-ink);
}

.c-article-table td {
  padding: 18px 24px 18px 0;
  line-height: 1.8;
  vertical-align: top;
  color: var(--color-body);
  border-bottom: 1px solid var(--color-line);
}

.c-article-table td:first-child {
  font-weight: 700;
  color: var(--color-ink);
}

.p-article__annotation {
  margin-bottom: 28px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-mute);
}

/* 図：白い面・罫線・角丸12px */
.p-article__figure {
  margin-bottom: 32px;
}

.p-article__figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 12px;
}

.p-article__figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-mute);
}

/* -------------------------------------------------- 関連するページ・一覧へ戻る */
.p-related {
  margin: 96px 0 0 20%;
  border-top: 1px solid var(--color-ink);
}

.p-related a {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  align-items: center;
  padding: 26px 0;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--color-line);
  transition: color 0.3s ease;
}

.p-related small {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-mute);
}

.p-related a::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--arrow-mask) center / 16px 16px no-repeat;
  mask: var(--arrow-mask) center / 16px 16px no-repeat;
  transition: transform 0.35s var(--ease);
}

.p-related a:hover,
.p-related a:focus-visible {
  color: var(--color-blue);
}

.p-related a:hover::after,
.p-related a:focus-visible::after {
  transform: translateX(4px);
}

.p-back {
  margin: 48px 0 0 20%;
}

/* 線だけのボタン（矢印は左向き） */
.c-button--line {
  color: var(--color-ink);
  background: transparent;
  border-color: #b9c7d3;
}

.c-button--line:hover,
.c-button--line:focus-visible {
  color: #0067a8;
  background: #fff;
  border-color: var(--color-blue);
}

.c-button--reverse {
  flex-direction: row-reverse;
}

.c-button--reverse::after {
  transform: scaleX(-1);
}

.c-button--reverse:hover::after,
.c-button--reverse:focus-visible::after {
  transform: scaleX(-1) translateX(4px);
}

/* -------------------------------------------------- 中間の幅（768〜1023px） */
@media (max-width: 1023px) {
  .p-knowledge-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-article,
  .p-related,
  .p-back {
    margin-left: 0;
  }
}

/* -------------------------------------------------- SP（767px以下） */
@media (max-width: 767px) {
  .p-knowledge-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .c-card--knowledge .c-card__body {
    padding: 22px 24px 24px;
  }

  .c-card--knowledge .c-card__title {
    font-size: 17px;
  }

  /* 記事タイトル22px。本文15px・行間2。表は横に送る */
  .p-article-head {
    padding-top: 32px;
  }

  .p-article-head .c-meta {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }

  .p-article-head__title {
    margin-top: 16px;
    font-size: 22px;
    line-height: 1.6;
    text-wrap: pretty;
  }

  .p-article__points {
    margin-bottom: 48px;
  }

  .p-article__points h2 {
    padding: 14px 20px;
  }

  .p-article__points ol {
    padding: 8px 20px 12px;
  }

  .p-article__points li {
    grid-template-columns: 36px minmax(0, 1fr);
    font-size: 15px;
  }

  .p-article__body > p,
  .p-article__body > ul li,
  .p-article__body > blockquote {
    font-size: 15px;
    line-height: 2;
  }

  .p-article__body > h2 {
    margin-top: 56px;
    padding-top: 22px;
    font-size: 21px;
  }

  .p-article__body > h3 {
    margin-top: 40px;
    font-size: 18px;
  }

  .p-article__body > blockquote {
    padding-left: 18px;
  }

  .c-article-table {
    display: block;
    overflow-x: auto;
    font-size: 14px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .p-related {
    margin-top: 64px;
  }

  .p-related a {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    padding: 20px 0;
    font-size: 17px;
  }

  .p-related small {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .p-related a::after {
    grid-column: 2;
    grid-row: 2;
  }

  .p-back {
    margin-top: 36px;
  }
}

/* ===================================================================
   Project（進め方・体制／実績／会社案内）
   出どころ＝承認済みデザインの sub.css（T-1〜T-11）。**見た目を変えない**
   =================================================================== */

/* -------------------------------------------------- 納品ドキュメントの目次（進め方・体制）
   紙面を思わせる形：白い紙・右上の角の折れ・タイトルの下に濃い罫線・行ごとに番号と点線 */
.p-papers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 72px 0 0 20%;
}

.p-paper {
  filter: drop-shadow(0 14px 28px rgba(11, 34, 57, 0.1)) drop-shadow(0 1px 1px rgba(11, 34, 57, 0.06));
}

.p-paper__sheet {
  position: relative;
  height: 100%;
  padding: 44px 48px 36px;
  background: #fff;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
}

.p-paper__sheet::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(225deg, transparent 50%, #dce6ee 50%);
}

.p-paper__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-blue);
}

.p-paper__title {
  margin-top: 12px;
  padding-bottom: 22px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 2px solid var(--color-ink);
}

.p-paper__list {
  margin-top: 8px;
}

.p-paper__list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: baseline;
  padding: 13px 0;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px dotted #b9c6d2;
}

.p-paper__list li span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-mute);
}

/* 目次の下の小さな注記（本文より小さく、薄い色） */
.p-note {
  margin: 20px 0 0 20%;
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-mute);
}

/* -------------------------------------------------- HANDOVER（3列の表＋定義の行）
   「契約の名義・最上位の権限」は短い語なので、青い線の札にして列幅を詰める */
.c-matrix--handover tbody th {
  width: 32%;
}

.c-matrix--handover td:nth-child(2) {
  width: 24%;
  color: var(--color-ink);
}

.c-matrix--handover td:nth-child(2) b {
  display: inline-block;
  padding: 5px 16px;
  font-size: 14px;
  line-height: 1.7;
  white-space: nowrap;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
  border-radius: 999px;
}

.c-matrix--handover td:last-child {
  width: auto;
}

.c-matrix--handover tbody th,
.c-matrix--handover td {
  padding-top: 26px;
  padding-bottom: 26px;
}

/* 表のあとに続く定義の行（納品するもの） */
.p-defs > div {
  display: grid;
  grid-template-columns: 28% minmax(0, 1fr);
  padding: 28px 0;
  border-bottom: 1px solid var(--color-line);
}

.p-defs dt {
  padding-right: 32px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.95;
}

.p-defs dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--color-body);
}

/* 文中のリンク（矢印つき） */
.c-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 0.6em;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-blue);
  text-decoration: none;
}

.c-text-link::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--arrow-mask) center / 14px 14px no-repeat;
  mask: var(--arrow-mask) center / 14px 14px no-repeat;
  transition: transform 0.35s var(--ease);
}

.c-text-link:hover::after,
.c-text-link:focus-visible::after {
  transform: translateX(4px);
}

/* -------------------------------------------------- TEAM（面2枚＋職種の表＋補足） */
.p-pair--team > div {
  min-height: 380px;
}

/* 職種の表：説明の列を残りの幅いっぱいにして、行の高さをそろえる */
.c-matrix--roles thead th:first-child {
  width: 28%;
}

.c-matrix--roles td:last-child {
  width: auto;
}

.c-matrix--roles tbody th,
.c-matrix--roles td {
  padding-top: 28px;
  padding-bottom: 28px;
  vertical-align: middle;
}

/* 補足（ご依頼の範囲／常駐）：職種ではないので表から切り離す。目立たせない */
.p-aside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin: 40px 0 0 28%;
}

.p-aside dt {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-ink);
}

.p-aside dd {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-mute);
}

.p-aside .c-text-link {
  font-size: 13px;
}

/* -------------------------------------------------- FIELD（実績の種類8つ）
   罫線で区切った4×2の格子。リンクではないので面を塗らない（白いカード＝リンク、と見分ける） */
.p-field {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 72px;
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
}

.p-field__item {
  display: flex;
  flex-direction: column;
  padding: 40px 32px 32px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.p-field__en {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-mute);
}

.p-field__name {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.5;
}

/* 画面の線画（ブラウザの枠の中に、その種類に特有の画面の要素） */
.c-screen {
  display: block;
  width: min(100%, 176px);
  margin-bottom: 32px;
  color: var(--color-blue);
}

.c-screen svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.c-screen svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.c-screen svg .dt,
.c-screen svg .pl {
  fill: currentColor;
  stroke: none;
}

.c-screen svg .sf {
  fill: rgba(0, 120, 192, 0.08);
  stroke: none;
}

.c-screen svg .o6 {
  opacity: 0.6;
}

.c-screen svg .o5 {
  opacity: 0.5;
}

.c-screen svg .o3 {
  opacity: 0.3;
}

/* -------------------------------------------------- CASES（事例の行）
   番号｜本文（題・課題と解決・業種／案件の種類）｜画像。
   文字数が増減しても崩れないよう、行の高さは本文と画像の高いほうに合わせ、画像は比率で固定 */
.p-cases {
  margin-top: 72px;
  border-top: 1px solid var(--color-line);
}

.p-case {
  display: grid;
  grid-template-columns: 20% minmax(0, 1fr) minmax(0, 40%);
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-line);
}

.p-case__number {
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-blue);
}

.p-case__body {
  padding-right: 56px;
}

.p-case__title {
  margin-bottom: 16px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
}

/* 題＝社名（太字）＋案件の種類（1行下に小さく） */
.p-case__kind {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-mute);
}

.p-case__text {
  font-size: 15px;
  line-height: 1.95;
  color: var(--color-body);
}

.p-case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--color-line);
}

.p-case__meta dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-mute);
}

.p-case__meta dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
}

/* 事例の画像＝実際の画面。地は無彩色で引かせ、画面の輪郭は罫線と影で立てる */
.p-case__image {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 3 / 2;
  background: #eceff2;
  border-radius: 12px;
}

.p-case__image img {
  display: block;
  width: 84%;
  border: 1px solid rgba(11, 34, 57, 0.16);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(11, 34, 57, 0.16);
}

/* -------------------------------------------------- DOCUMENT（h2 を置かない帯） */
.p-strip {
  display: grid;
  grid-template-columns: minmax(0, calc(20% - 12px)) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  margin: var(--space-m) var(--gutter) 0;
  padding: 44px 48px;
  background: #fff;
  border-radius: 12px;
}

.p-strip .c-label {
  padding-top: 0;
}

.p-strip__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.p-strip__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-body);
}

/* -------------------------------------------------- OUTLINE（会社概要）
   トップの ABOUT の表を7行に。見出し列は項目名の長さに合わせて広げる */
.p-outline .c-table {
  margin-top: 56px;
  font-size: 16px;
}

.p-outline .c-table th {
  width: 200px;
  padding: 24px 0;
}

.p-outline .c-table td {
  padding: 24px 0;
}

.c-biz-list li {
  position: relative;
  padding-left: 20px;
}

.c-biz-list li + li {
  margin-top: 8px;
}

.c-biz-list li::before {
  content: "";
  position: absolute;
  top: 0.95em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--color-blue);
}

/* -------------------------------------------------- 中間の幅（768〜1023px） */
@media (max-width: 1023px) {
  .p-field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-case {
    grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
    column-gap: 40px;
  }

  .p-case__number {
    grid-column: 1 / -1;
    padding: 0 0 16px;
  }

  .p-case__body {
    padding-right: 0;
  }

  .p-strip {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .p-strip .c-label {
    grid-column: 1 / -1;
  }

  .p-papers,
  .p-note,
  .p-aside {
    margin-left: 0;
  }
}

/* -------------------------------------------------- SP（767px以下） */
@media (max-width: 767px) {
  .p-papers {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .p-paper__sheet {
    padding: 32px 24px 24px;
  }

  .p-paper__title {
    padding-bottom: 16px;
    font-size: 19px;
  }

  .p-paper__list li {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 11px 0;
    font-size: 14px;
  }

  .p-note {
    font-size: 12px;
  }

  .p-defs > div {
    grid-template-columns: 1fr;
    row-gap: 6px;
    padding: 22px 0;
  }

  .p-defs dt,
  .p-defs dd {
    font-size: 14px;
  }

  .p-aside {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  /* 導線の帯：ラベル・題と説明・ボタンを縦に */
  .p-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: var(--space-m) var(--gutter) 0;
    padding: 32px 24px;
  }

  .p-strip__title {
    font-size: 19px;
  }

  .p-strip__text {
    font-size: 14px;
  }

  .p-strip .c-button {
    justify-self: start;
  }

  /* 実績：種類8つは2列。事例は 番号 → 題と本文 → 画像 の順に縦へ */
  .p-field {
    margin-top: 40px;
  }

  .p-field__item {
    padding: 24px 16px 20px;
  }

  .c-screen {
    margin-bottom: 18px;
  }

  .p-field__en {
    font-size: 10px;
  }

  .p-field__name {
    font-size: 15px;
  }

  .p-cases {
    margin-top: 40px;
  }

  .p-case {
    grid-template-columns: 1fr;
    row-gap: 20px;
    padding: 32px 0;
  }

  .p-case__number {
    padding: 0;
  }

  .p-case__title {
    margin-bottom: 12px;
    font-size: 20px;
  }

  .p-case__text {
    font-size: 14px;
    line-height: 1.9;
  }

  .p-case__meta {
    gap: 12px 28px;
    margin-top: 20px;
  }

  /* 会社概要の表：見出し列を狭く */
  .p-outline .c-table {
    margin-top: 32px;
    font-size: 14px;
  }

  .p-outline .c-table th {
    width: 112px;
    padding: 18px 10px 18px 0;
  }

  .p-outline .c-table td {
    padding: 18px 0;
  }
}

/* ===================================================================
   Project（サービス5画面）：入口カード・FOUNDATION・SCOPE・ISSUE・OFFER・BEFORE YOU START
   出どころ＝承認済みデザインの sub.css（S-5〜S-13）。**見た目を変えない**
   =================================================================== */

/* -------------------------------------------------- 入口（サービスTOP）
   トップの SERVICE の箱（横に送る縦長の箱）とは別の形＝2列×2段の大きなカード。
   トップから来た人に「同じもの」と見せないため（課題表 #73）。リンクの決まりは同じ */
.p-entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 72px;
}

.p-entry {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 32px;
  min-height: 400px;
  padding: 40px 40px 36px;
  color: var(--color-ink);
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  transition: color 0.35s ease;
}

.p-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(155deg, #0a8fd6 0%, #0078c0 42%, #00509e 100%);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}

.p-entry::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -55%;
  left: -30%;
  z-index: -1;
  height: 95%;
  background: radial-gradient(closest-side, rgba(36, 180, 232, 0.75), rgba(36, 180, 232, 0) 70%);
  border-radius: 50%;
  transform: translateY(70%);
  transition: transform 0.9s var(--ease) 0.05s;
}

.p-entry:hover::before,
.p-entry:focus-visible::before,
.p-entry:hover::after,
.p-entry:focus-visible::after {
  transform: none;
}

.p-entry:hover,
.p-entry:focus-visible {
  color: #fff;
}

.p-entry__number {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  transition: color 0.35s ease;
}

.p-entry__icon {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 72px;
  height: 72px;
  color: var(--color-blue);
  transition: color 0.35s ease;
}

.p-entry__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.p-entry__title {
  grid-column: 1;
  margin-top: 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.45;
}

.p-entry__text {
  grid-column: 1 / -1;
  max-width: 32em;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--color-body);
  transition: color 0.35s ease;
}

.p-entry__example {
  grid-column: 1;
  align-self: end;
  margin-top: 32px;
  padding-top: 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-body);
  border-top: 1px solid var(--color-line);
  transition: color 0.35s ease, border-color 0.35s ease;
}

.p-entry__example b {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  transition: color 0.35s ease;
}

.p-entry .c-arrow-circle {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  margin-top: 0;
}

.p-entry .c-arrow-circle span {
  width: 44px;
  height: 44px;
}

.p-entry:hover .p-entry__number,
.p-entry:focus-visible .p-entry__number,
.p-entry:hover .p-entry__icon,
.p-entry:focus-visible .p-entry__icon,
.p-entry:hover .p-entry__example b,
.p-entry:focus-visible .p-entry__example b {
  color: #fff;
}

.p-entry:hover .p-entry__text,
.p-entry:focus-visible .p-entry__text,
.p-entry:hover .p-entry__example,
.p-entry:focus-visible .p-entry__example {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
}

.p-entry:hover .c-arrow-circle span,
.p-entry:focus-visible .c-arrow-circle span {
  color: var(--color-ink);
  background: #fff;
}

.p-entry:hover .c-arrow-circle span::before,
.p-entry:focus-visible .c-arrow-circle span::before {
  transform: translateX(4px);
}

/* -------------------------------------------------- OTHER SERVICES（トップの SERVICE の箱と同じ形） */
.l-section__head--label-only {
  display: block;
}

.l-section__head--label-only .c-label {
  padding-top: 0;
}

.l-section__head--label-only + .p-service-list {
  margin-top: 40px;
}

.p-service-list--other .p-service-block {
  height: 420px;
}

/* -------------------------------------------------- FOUNDATION・TEAM
   青の面と濃紺の面の2枚。KVと同じ系統の白い線の図形がゆっくり動く */
.p-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 72px;
}

.p-pair > div {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 44px 48px 48px;
  color: #fff;
  background: radial-gradient(90% 140% at 100% 0%, rgba(23, 161, 227, 0.9) 0%, rgba(23, 161, 227, 0) 60%),
    linear-gradient(140deg, #0887d1 0%, #0070bc 45%, #0054a3 100%);
  border-radius: 12px;
}

.p-pair > div + div {
  background: radial-gradient(90% 120% at 100% 0%, rgba(0, 120, 192, 0.6) 0%, rgba(0, 120, 192, 0) 62%), var(--color-navy);
}

.p-pair__graphic {
  position: absolute;
  top: -30px;
  right: -30px;
  z-index: -1;
  width: 320px;
  height: 320px;
}

.p-pair__graphic * {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.p-pair__graphic .dot {
  fill: rgba(255, 255, 255, 0.85);
  stroke: none;
}

.p-pair__graphic .fill {
  fill: var(--color-cyan);
  stroke: none;
}

.p-pair__graphic .spin,
.p-pair__graphic .tri,
.p-pair__graphic .ring {
  transform-box: fill-box;
  transform-origin: center;
}

.p-pair__graphic .spin {
  animation: spin 60s linear infinite;
}

.p-pair__graphic .tri {
  animation: sway 11s ease-in-out infinite alternate;
}

.p-pair__graphic .tri.t2 {
  animation-duration: 14s;
  animation-delay: -4s;
}

.p-pair__graphic .ring {
  animation: breathe 7s ease-in-out infinite;
}

.p-pair__graphic .run {
  stroke-dasharray: 220;
  animation: run 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.p-pair dt {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.p-pair__label {
  position: absolute;
  top: 44px;
  left: 48px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
}

.p-pair dd {
  max-width: 31em;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.88);
}

/* -------------------------------------------------- 白い面（SCOPE・BEFORE YOU START・HANDOVER） */
.p-surface {
  margin: var(--space-l) 12px 0;
  padding: 112px calc(var(--gutter) - 12px);
  background: #fff;
  border-radius: 20px;
}

.p-surface + .p-knowledge,
.p-surface + .p-issue {
  margin-top: var(--space-l);
}

/* -------------------------------------------------- 3列の表（SCOPE・HANDOVER・職種） */
.c-matrix {
  width: 100%;
  margin-top: 72px;
  font-size: 15px;
  border-collapse: collapse;
}

.c-matrix thead th {
  padding: 0 32px 16px 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--color-mute);
  border-bottom: 1px solid var(--color-ink);
}

.c-matrix tbody th {
  width: 28%;
  padding: 32px 32px 32px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.c-matrix tbody th span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-blue);
}

.c-matrix td {
  padding: 32px 32px 32px 0;
  line-height: 1.95;
  vertical-align: top;
  color: var(--color-body);
  border-bottom: 1px solid var(--color-line);
}

.c-matrix td:last-child {
  width: 27%;
  padding-right: 0;
}

/* -------------------------------------------------- ISSUE（濃紺の面）
   課題は、チェックつきの線の枠で並べる。白く塗ったカード（記事へのリンク）と見分けるため、枠は塗らずに線だけ */
.p-issue {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 12px;
  padding: 112px calc(var(--gutter) - 12px);
  color: #fff;
  background: var(--color-navy);
  border-radius: 20px;
}

.p-issue::before {
  content: "";
  position: absolute;
  top: -250px;
  right: -230px;
  z-index: -1;
  width: 560px;
  height: 560px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 16px);
  border-radius: 50%;
}

.p-issue::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -90px;
  z-index: -1;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.p-issue .c-label {
  color: rgba(255, 255, 255, 0.7);
}

.p-issue .c-label::before {
  background: var(--color-cyan);
}

.p-issue .c-caption {
  color: rgba(255, 255, 255, 0.78);
}

/* 見出し部のすぐ下に ISSUE が来るときは、見出し部の下の罫線を出さない */
.p-page-head:has(+ .p-issue) .p-page-head__group {
  padding-bottom: 64px;
  border-bottom: 0;
}

.p-issue__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 72px;
}

.p-issue__item {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 176px;
  padding: 24px 28px 30px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}

.p-issue__item:nth-child(4) {
  grid-column: 2 / span 2;
}

/* 2行になる文は、文節で折り返して行の長さをそろえる */
.p-issue__text {
  text-wrap: balance;
  word-break: auto-phrase;
}

.p-issue__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 400;
}

.p-issue__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-cyan);
  border-radius: 50%;
}

.p-issue__check svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-issue__number {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.p-issue + .l-section {
  padding-top: var(--space-l);
}

/* -------------------------------------------------- OFFER・PROMISE
   地色の上のカード。頭に青い面（番号＋白い線の図形）を載せる。
   矢印・ロールオーバーなし＝トップの SERVICE の箱（リンク）とは別の形 */
.p-offer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 72px;
}

.p-offer--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p-offer__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}

.p-offer__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 136px;
  padding: 22px 24px 0;
  color: #fff;
  background: radial-gradient(90% 140% at 100% 0%, rgba(23, 161, 227, 0.9) 0%, rgba(23, 161, 227, 0) 60%),
    linear-gradient(140deg, #0887d1 0%, #0070bc 45%, #0054a3 100%);
}

.p-offer__number {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.p-offer__icon {
  display: block;
  width: 84px;
  height: 84px;
  margin-top: 22px;
  opacity: 0.95;
}

.p-offer__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.p-offer__body {
  padding: 28px 24px 36px;
}

.p-offer__title {
  min-height: 3.1em;
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

.p-offer--three .p-offer__title {
  min-height: 0;
}

.p-offer__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-body);
}

/* -------------------------------------------------- FLOW の成果物（説明の下に、破線で区切って置く） */
.p-steps__output {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--color-line);
}

.p-steps__output dt {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-mute);
}

.p-steps__output dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

/* -------------------------------------------------- BEFORE YOU START（5つの宣言）
   白い面の中に、番号の円のバッジつきの札を2列で。最後の1つだけは性質が違うので、横長の線だけの札にする */
.p-pledge {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 72px;
}

.p-pledge__item {
  position: relative;
  min-height: 188px;
  padding: 36px 40px 40px 116px;
  background: var(--color-bg);
  border-radius: 12px;
}

.p-pledge__badge {
  position: absolute;
  top: 36px;
  left: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-blue);
  border-radius: 50%;
}

.p-pledge__badge::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--color-blue);
  border-radius: 50%;
  opacity: 0.35;
}

.p-pledge__title {
  margin: 9px 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

.p-pledge__text {
  max-width: 40em;
  font-size: 15px;
  line-height: 1.95;
  color: var(--color-body);
}

/* 最後の1つは宣言ではなく但し書きなので、目立たせない（面を塗らず罫線だけ、バッジも線だけ） */
.p-pledge__item:last-child {
  grid-column: 1 / -1;
  min-height: 0;
  background: transparent;
  border: 1px solid var(--color-line);
}

.p-pledge__item:last-child .p-pledge__text {
  max-width: none;
}

.p-pledge__item:last-child .p-pledge__badge {
  color: var(--color-mute);
  background: transparent;
  border: 1px solid var(--color-mute);
}

.p-pledge__item:last-child .p-pledge__badge::after {
  display: none;
}

/* -------------------------------------------------- 中間の幅（768〜1023px） */
@media (max-width: 1023px) {
  .p-offer,
  .p-offer--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-issue__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-issue__item,
  .p-issue__item:nth-child(4) {
    grid-column: auto;
  }
}

/* -------------------------------------------------- SP（767px以下） */
@media (max-width: 767px) {
  /* 入口：1列。アイコンは右上 */
  .p-entry-list {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 40px;
  }

  .p-entry {
    grid-template-columns: minmax(0, 1fr) 48px;
    column-gap: 16px;
    min-height: 0;
    padding: 28px 24px 24px;
  }

  .p-entry__icon {
    width: 48px;
    height: 48px;
  }

  .p-entry__title {
    margin-top: 14px;
    font-size: 21px;
  }

  .p-entry__text {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.9;
  }

  .p-entry__example {
    margin-top: 24px;
    padding-top: 16px;
    font-size: 13px;
  }

  .p-entry .c-arrow-circle span {
    width: 40px;
    height: 40px;
  }

  .p-service-list--other .p-service-block {
    height: auto;
  }

  .l-section__head--label-only + .p-service-list {
    margin-top: 28px;
  }

  /* 面2枚：縦に積む */
  .p-pair {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 40px;
  }

  .p-pair > div {
    min-height: 300px;
    padding: 32px 24px;
  }

  .p-pair dt {
    font-size: 20px;
  }

  .p-pair__label {
    top: 32px;
    left: 24px;
  }

  .p-pair dd {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.9;
  }

  .p-pair__graphic {
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
  }

  /* 白い面：周囲8px・角丸16px */
  .p-surface {
    margin: var(--space-l) 8px 0;
    padding: 72px 16px;
    border-radius: 16px;
  }

  /* 3列の表：行ごとに縦に積み、列の名前を小さなラベルで各セルの頭に付ける */
  .c-matrix,
  .c-matrix tbody,
  .c-matrix tr,
  .c-matrix th,
  .c-matrix td {
    display: block;
    width: auto !important;
  }

  .c-matrix {
    margin-top: 40px;
    font-size: 14px;
    border-top: 1px solid var(--color-ink);
  }

  .c-matrix thead {
    display: none;
  }

  .c-matrix tr {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .c-matrix tbody th,
  .c-matrix td {
    padding: 0;
    border: 0;
  }

  .c-matrix tbody th {
    font-size: 17px;
  }

  .c-matrix td {
    margin-top: 14px;
    line-height: 1.9;
  }

  .c-matrix td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--color-mute);
  }

  /* ISSUE：1列。枠の形（線の枠・チェック）は保つ */
  .p-issue {
    margin: 0 8px;
    padding: 72px 16px;
    border-radius: 16px;
  }

  .p-issue__list {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 40px;
  }

  .p-issue__item {
    gap: 18px;
    min-height: 0;
    padding: 20px 20px 24px;
    font-size: 17px;
  }

  .p-issue::before {
    top: -160px;
    right: -200px;
    width: 360px;
    height: 360px;
  }

  /* OFFER：1列。頭の青い面は低く */
  .p-offer,
  .p-offer--three {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 40px;
  }

  .p-offer__head {
    height: 80px;
    padding: 16px 20px 0;
  }

  .p-offer__icon {
    width: 52px;
    height: 52px;
    margin-top: 6px;
  }

  .p-offer__body {
    padding: 22px 20px 28px;
  }

  .p-offer__title {
    min-height: 0;
    font-size: 17px;
  }

  /* FLOW の成果物：題の下に */
  .p-steps__output {
    flex-direction: column;
    gap: 4px;
  }

  /* BEFORE YOU START：1列。バッジは左上、題と説明はその下 */
  .p-pledge {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 40px;
  }

  .p-pledge__item {
    min-height: 0;
    padding: 84px 20px 28px;
  }

  .p-pledge__badge {
    top: 28px;
    left: 28px;
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .p-pledge__title {
    margin: 0 0 8px;
    font-size: 18px;
  }

  .p-pledge__text {
    font-size: 14px;
    line-height: 1.9;
  }
}

/* ===================================================================
   Project（トップ）：KV・WHO WE ARE・SERVICE・PROCESS・溢れる帯・WORKS・KNOWLEDGE・ABOUT
   出どころ＝承認済みデザインの common.css・theme.css・sections.css。**見た目を変えない**
   =================================================================== */

/* -------------------------------------------------- KV
   固定したまま、ファーストビュー → メッセージ 01〜03。
   読み込み直後は中央の小さな角丸 → 周囲12px・角丸20pxの枠まで広がる → スクロールで全面へ */
.p-kv {
  position: relative;
  height: 420vh;
}

.p-kv__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.p-kv__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0064b4;
  clip-path: inset(30% 34% 30% 34% round 20px);
  transition: clip-path 1.2s var(--ease);
}

.is-kv .p-kv__background {
  clip-path: inset(calc(12px * (1 - var(--kv-open))) round calc(20px * (1 - var(--kv-open))));
}

.is-ready .p-kv__background {
  transition: none;
}

.p-kv__background canvas,
.p-kv__background svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.p-kv__lines {
  opacity: 0.9;
  transition: opacity 0.2s linear;
}

.p-kv__lines * {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.p-kv__lines .dot {
  fill: #fff;
  stroke: none;
  animation: pulse 4.6s ease-in-out infinite;
}

.p-kv__lines .dot.still {
  opacity: 1;
  animation: none;
}

.p-kv__lines .fill {
  fill: #24b4e8;
  stroke: none;
}

.p-kv__lines [data-depth] {
  will-change: transform;
}

.p-kv__lines .spin,
.p-kv__lines .tri,
.p-kv__lines .ring {
  transform-box: fill-box;
  transform-origin: center;
}

.p-kv__lines .spin {
  animation: spin 90s linear infinite;
}

.p-kv__lines .tri {
  animation: sway 11s ease-in-out infinite alternate;
}

.p-kv__lines .tri.t2 {
  animation-duration: 14s;
  animation-delay: -4s;
}

.p-kv__lines .ring {
  animation: breathe 7s ease-in-out infinite;
}

.p-kv__lines .orbit {
  transform-origin: 110px 310px;
  animation: spin 24s linear infinite;
}

.p-kv__lines .run {
  stroke-dasharray: 220;
  animation: run 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.p-kv__lines .run.long {
  stroke-dasharray: 560;
  animation-name: run-long;
}

.p-kv__lines .run.r2 {
  animation-duration: 11s;
  animation-delay: -3s;
}

.p-kv__lines .run.r3 {
  animation-duration: 10s;
  animation-delay: -6s;
}

.p-kv__lines .run.r4 {
  animation-duration: 12s;
  animation-delay: -8s;
}

/* ファーストビュー：コピーは左下、ボタンは右下。同じ行の下端でそろえ、上はKVに空ける */
.p-kv__first-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 120px var(--gutter) clamp(56px, 8vh, 80px);
  color: var(--color-on-kv);
}

.p-kv__copy {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: var(--weight-copy);
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.p-kv__copy-line {
  display: block;
}

.p-kv__copy-line span {
  display: block;
}

/* 行頭のカギ括弧の空きを詰めて、2行目と左をそろえる */
.p-kv__copy-line--quote > span {
  margin-left: -0.44em;
}

.p-kv__buttons {
  flex: none;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-bottom: 6px;
}

/* 読み込み直後の順送り */
.js .p-kv__copy-line > span,
.js .p-kv__buttons {
  opacity: 0;
}

.js .p-kv__copy-line > span {
  transform: translateY(30px);
}

.js .p-kv__buttons {
  transform: translateY(20px);
}

.js.is-ready .p-kv__copy-line > span {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease, transform 1.2s var(--ease);
}

.js.is-ready .p-kv__copy-line:nth-child(2) > span {
  transition-delay: 0.12s;
}

.js.is-ready .p-kv__buttons {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease 0.35s, transform 1s var(--ease) 0.35s;
}

/* -------------------------------------------------- WHO WE ARE（KVの上に重なる3つのメッセージ）
   文だけの層なので、クリックを受けない（下のボタンが押せなくなるため） */
.p-messages {
  position: absolute;
  top: 96px;
  right: 0;
  bottom: 0;
  left: 0;
  color: var(--color-on-kv);
  pointer-events: none;
}

.p-messages__head {
  position: absolute;
  top: 0;
  right: var(--gutter);
  left: var(--gutter);
  z-index: 2;
  opacity: 0;
}

.p-messages__label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.p-messages__label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
}

/* 下の線3本が、3つの文それぞれの表示されている長さを示す */
.p-messages__progress {
  display: flex;
  gap: 10px;
}

.p-messages__progress > span {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--color-kv-line);
}

.p-messages__progress span span {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background: currentColor;
}

.p-messages__item {
  position: absolute;
  inset: 0;
  padding: 74px var(--gutter) 0;
  opacity: 0;
  visibility: hidden;
}

.p-messages__inner {
  display: grid;
  grid-template-columns: minmax(200px, 30.5%) minmax(0, 1fr);
  padding-top: clamp(40px, 9vh, 96px);
}

.p-messages__pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-kv-line-strong);
  border-radius: 999px;
}

.p-messages__pager-total {
  opacity: 0.55;
}

.p-messages__sub {
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.p-messages__text {
  font-size: clamp(26px, 2.64vw, 38px);
  font-weight: var(--weight-heading);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* 1字ずつ、薄い色 → 濃い色 */
.p-messages__char {
  transition: opacity 0.25s linear;
}

/* -------------------------------------------------- SERVICE の箱
   白い箱を細い罫線で区切り、図形のアイコンを大きく。右下に丸い矢印だけ（「詳しく見る」の文字は置かない）。
   ロールオーバーで、KVと同じ青の曲面が下からせり上がり、文字とアイコンが白に変わる */
.p-service-list {
  display: flex;
  margin: 72px calc(var(--gutter) * -1) 0;
  overflow-x: auto;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  scrollbar-width: none;
}

.p-service-list::-webkit-scrollbar {
  display: none;
}

.p-service-block {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 1 0 440px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto 44px;
  row-gap: 16px;
  height: 480px;
  padding: 32px 36px 36px;
  color: var(--color-ink);
  text-decoration: none;
  background: #fff;
  border-right: 1px solid var(--color-line);
  transition: color 0.35s ease;
}

.p-service-block:first-child {
  border-left: 1px solid var(--color-line);
}

.p-service-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(155deg, #0a8fd6 0%, #0078c0 42%, #00509e 100%);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}

.p-service-block::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -55%;
  left: -30%;
  z-index: -1;
  height: 95%;
  background: radial-gradient(closest-side, rgba(36, 180, 232, 0.75), rgba(36, 180, 232, 0) 70%);
  border-radius: 50%;
  transform: translateY(70%);
  transition: transform 0.9s var(--ease) 0.05s;
}

.p-service-block:hover::before,
.p-service-block:focus-visible::before,
.p-service-block:hover::after,
.p-service-block:focus-visible::after {
  transform: none;
}

.p-service-block:hover,
.p-service-block:focus-visible {
  color: #fff;
}

.p-service-block__head {
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-line);
  transition: border-color 0.35s ease;
}

.p-service-block:hover .p-service-block__head,
.p-service-block:focus-visible .p-service-block__head {
  border-color: rgba(255, 255, 255, 0.35);
}

.p-service-block__number {
  order: -1;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  transition: color 0.35s ease;
}

.p-service-block__icon {
  width: 40px;
  height: 40px;
  color: var(--color-blue);
  transition: color 0.35s ease;
}

.p-service-block__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.p-service-block:hover .p-service-block__number,
.p-service-block:focus-visible .p-service-block__number,
.p-service-block:hover .p-service-block__icon,
.p-service-block:focus-visible .p-service-block__icon {
  color: #fff;
}

.p-service-block__title {
  grid-row: 3;
  font-size: 23px;
  font-weight: var(--weight-heading);
  line-height: 1.45;
}

.p-service-block__text {
  grid-row: 4;
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-body);
  transition: color 0.35s ease;
}

.p-service-block:hover .p-service-block__text,
.p-service-block:focus-visible .p-service-block__text {
  color: rgba(255, 255, 255, 0.9);
}

.p-service-block .c-arrow-circle {
  grid-row: 5;
}

/* -------------------------------------------------- PROCESS
   工程5つは「番号｜画像｜見出しと説明」の行。左の縦線が、読み進めた工程のぶんだけ青く伸びる */
.p-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 72px;
}

.p-steps__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--color-line);
}

.p-steps__rail span {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 0;
  background: var(--color-blue);
}

.p-steps__item {
  display: grid;
  grid-template-columns: 20% minmax(0, 33.4%) minmax(0, 1fr);
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-line);
}

.p-steps__item:first-of-type {
  border-top: 1px solid var(--color-line);
}

.p-steps__number {
  padding-left: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-mute);
  transition: color 0.4s ease;
}

.p-steps__item.is-on .p-steps__number {
  color: var(--color-blue);
}

.p-steps__item .c-photo {
  aspect-ratio: 400 / 200;
}

.p-steps__body {
  padding-left: 56px;
}

.p-steps__title {
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: var(--weight-heading);
  line-height: 1.4;
}

.p-steps__text {
  font-size: 15px;
  line-height: 1.95;
  color: var(--color-body);
}

.p-steps__output {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-mute);
}

/* -------------------------------------------------- 溢れる帯（スクロールに連動して横に流れる） */
.p-marquee {
  margin-top: var(--space-l);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}

.p-marquee__inner {
  display: inline-flex;
  font-family: var(--font-en);
  will-change: transform;
}

.p-marquee__word {
  display: inline-flex;
  align-items: center;
  padding-right: 0.18em;
  font-size: clamp(64px, 8.3vw, 120px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

/* 語と語をつなぐ線（企画からローンチまでが、ひと続き） */
.p-marquee__word::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 2px;
  margin-left: 0.18em;
  background: var(--color-blue);
}

/* 輪郭だけの文字：文字の中を地色で塗り、線を先に描く */
.p-marquee__word--outline {
  color: var(--color-bg);
  -webkit-text-stroke: 3px var(--color-blue);
  paint-order: stroke fill;
}

.p-marquee + .l-section {
  padding-top: var(--space-m);
}

/* -------------------------------------------------- WORKS の帯
   実際に手がけたサイトの画面が、右から左へゆっくり流れる。地は無彩色（事例の画像の邪魔をしない） */
.p-works-band {
  --band-height: clamp(260px, 25vw, 360px);
  position: relative;
  overflow: hidden;
  height: var(--band-height);
  margin: var(--space-s) calc(var(--gutter) * -1) 0 20%;
  background: #eceff2;
  border-radius: 12px 0 0 12px;
}

.p-works-band__flow {
  position: absolute;
  inset: 0;
  background: url(/assets/images/works-band.webp) 0 50% / calc(var(--band-height) * 8.4 * 0.86) calc(var(--band-height) * 0.86) repeat-x;
  animation: works-band 70s linear infinite;
}

.p-works-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eceff2 0%, rgba(236, 239, 242, 0) 10%);
  pointer-events: none;
}

@keyframes works-band {
  to {
    background-position: calc(var(--band-height) * -8.4 * 0.86) 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-works-band__flow {
    animation: none;
  }
}

/* -------------------------------------------------- KNOWLEDGE（濃紺の面） */
.p-knowledge {
  margin: var(--space-l) 12px 0;
  padding: 112px calc(var(--gutter) - 12px);
  color: #fff;
  background: var(--color-navy);
  border-radius: 20px;
}

.p-knowledge .c-label {
  color: rgba(255, 255, 255, 0.7);
}

.p-knowledge .c-label::before {
  background: var(--color-cyan);
}

.p-knowledge .c-caption {
  color: rgba(255, 255, 255, 0.78);
}

.p-knowledge__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 72px;
}

.c-card--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}

.c-card--feature .c-photo {
  min-height: 360px;
  border-radius: 0;
}

.c-card__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 48px;
}

.c-card--feature .c-card__title {
  font-size: 26px;
  line-height: 1.5;
}

.c-card--compact {
  min-height: 240px;
  padding: 32px;
}

/* -------------------------------------------------- ABOUT */
.p-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 80px;
  align-items: start;
}

.p-about .c-photo {
  aspect-ratio: 520 / 480;
}

.p-about .c-label {
  margin-bottom: 24px;
  padding-top: 0;
}

.p-about__more {
  display: flex;
  margin-top: 40px;
}

/* -------------------------------------------------- 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .p-kv {
    height: auto;
  }

  .p-kv__stage {
    position: relative;
    height: auto;
    min-height: 0;
  }

  .p-kv__background {
    transition: none;
  }

  .p-kv__first-view {
    position: relative;
    min-height: 100vh;
  }

  .p-messages {
    position: relative;
    top: 0;
  }

  .p-messages__head {
    position: relative;
    right: 0;
    left: 0;
    padding: 0 var(--gutter);
    opacity: 1;
  }

  .p-messages__progress span span {
    width: 100%;
  }

  .p-messages__item {
    position: relative;
    padding-bottom: 80px;
    opacity: 1;
    visibility: visible;
  }

  .js .p-kv__copy-line > span,
  .js .p-kv__buttons {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .p-steps__rail span {
    height: 100% !important;
  }

  .p-marquee__inner {
    transform: none !important;
  }
}

/* -------------------------------------------------- 中間の幅（768〜1023px） */
@media (max-width: 1023px) {
  .p-kv__first-view {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 32px;
  }

  .p-kv__buttons {
    justify-content: flex-start;
  }

  .p-messages__inner {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .p-about {
    gap: 48px;
  }

  .c-card--feature {
    grid-template-columns: 1fr;
  }

  .c-card--feature .c-photo {
    min-height: 0;
    aspect-ratio: 16 / 7;
  }
}

/* -------------------------------------------------- SP（767px以下） */
@media (max-width: 767px) {
  .p-kv__stage {
    height: 100svh;
    min-height: 560px;
  }

  .p-kv__first-view {
    padding: 96px var(--gutter) 48px;
  }

  .p-kv__copy {
    font-size: clamp(30px, 9.2vw, 40px);
    line-height: 1.4;
  }

  .p-kv__buttons {
    flex-direction: column;
    align-self: stretch;
    gap: 10px;
    padding-bottom: 0;
  }

  .p-messages {
    top: 64px;
  }

  .p-messages__item {
    padding-top: 64px;
  }

  .p-messages__label {
    padding: 20px 0;
  }

  .p-messages__inner {
    padding-top: 40px;
  }

  .p-messages__sub {
    margin-top: 14px;
  }

  .p-messages__text {
    font-size: clamp(18px, 5.2vw, 21px);
    line-height: 1.75;
  }

  /* SERVICE の箱：1つずつ横に送る（次の箱の端が見える幅）。高さは中身なり */
  .p-service-list {
    margin-top: 40px;
  }

  .p-service-block {
    flex: 0 0 min(84vw, 340px);
    height: auto;
    min-height: 340px;
    padding: 28px 24px;
  }

  .p-service-block__title {
    font-size: 20px;
  }

  /* 工程：番号の下に画像、その下に見出しと説明。左の縦線は残す */
  .p-steps {
    margin-top: 40px;
  }

  .p-steps__item {
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding: 28px 0 32px;
  }

  .p-steps__number {
    padding-left: 20px;
  }

  .p-steps__item .c-photo,
  .p-steps__body {
    margin-left: 20px;
  }

  .p-steps__body {
    padding-left: 0;
  }

  .p-steps__title {
    margin-bottom: 8px;
    font-size: 20px;
  }

  .p-steps__text {
    font-size: 14px;
    line-height: 1.9;
  }

  .p-marquee__word {
    font-size: 56px;
  }

  .p-marquee__word--outline {
    -webkit-text-stroke-width: 2px;
  }

  .p-works-band {
    --band-height: 200px;
    height: 200px;
    margin: 32px calc(var(--gutter) * -1) 0 0;
  }

  .p-knowledge {
    margin-right: 8px;
    margin-left: 8px;
    padding: 72px 16px;
    border-radius: 16px;
  }

  .p-knowledge__list {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 40px;
  }

  .c-card--feature .c-photo {
    aspect-ratio: 8 / 5;
  }

  .c-card__body {
    gap: 14px;
    padding: 28px 24px 24px;
  }

  .c-card--feature .c-card__title {
    font-size: 20px;
  }

  .c-card--compact {
    min-height: 0;
    padding: 24px;
  }

  .p-about {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .p-about .c-photo {
    aspect-ratio: 3 / 2;
  }

  .p-about__more {
    margin-top: 28px;
  }
}

/* ===================================================================
   Utility：1つの役割だけを足す
   =================================================================== */

/* 目には見せず、読み上げとキーボード操作には残す */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

/* 画面幅での出し分け（ブレークポイント＝SP 767px以下／PC 1024px以上） */
.u-sp-only {
  display: none;
}

@media (max-width: 767px) {
  .u-sp-only {
    display: revert;
  }

  .u-pc-only {
    display: none;
  }
}
