/* =============================================================
   ポネクト（Ponnect）— style.css
   順序: トークン → ベース → 部品 → セクション → ユーティリティ
   テーマ: :root(light) → @media prefers-color-scheme:dark → :root[data-theme]
   ============================================================= */

/* ---------- Fonts (self-hosted subset) ---------- */
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/zkgn-400.woff2") format("woff2");
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/zkgn-500.woff2") format("woff2");
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/zkgn-700.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/outfit-var.woff2") format("woff2");
}

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F3F8FD;
  --surface: #FFFFFF;
  --ink: #06285B;
  --muted: #4A5E85;
  --border: #DCE6F2;
  --navy: #022662;
  --navy-deep: #021B4B;
  --cyan: #01C4FC;
  --accent-ink: #0187C8;
  --link: #0077B6;
  --pale: #D5F5FE;
  --glow: rgba(1, 196, 252, .14);

  /* 派生 */
  --header-glass: rgba(255, 255, 255, .82);
  --net-line: rgba(2, 38, 98, .10);
  --net-dot: rgba(1, 196, 252, .45);
  --shadow-card: 0 12px 32px rgba(2, 38, 98, .10);

  /* ネイビー面の固定色 */
  --on-navy: #FFFFFF;
  --on-navy-soft: #C7D8F2;
  --on-navy-cyan: #01C4FC;

  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-en: "Outfit", "Avenir Next", system-ui, sans-serif;

  --shell: min(1080px, 92vw);
  --radius: 16px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* auto dark: 明示的 light 指定が無いときだけ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #051233;
    --bg-alt: #081A42;
    --surface: #0B2158;
    --ink: #E8EFFB;
    --muted: #A6B8D8;
    --border: rgba(166, 196, 255, .16);
    --navy: #022662;
    --navy-deep: #020F2E;
    --cyan: #01C4FC;
    --accent-ink: #38CDFF;
    --link: #55D4FF;
    --pale: rgba(1, 196, 252, .10);
    --glow: rgba(1, 196, 252, .10);
    --header-glass: rgba(5, 18, 51, .82);
    --net-line: rgba(85, 212, 255, .12);
    --net-dot: rgba(1, 196, 252, .55);
    --shadow-card: 0 12px 32px rgba(0, 0, 0, .35);
  }
}

/* 明示的 dark 指定（システムが light でも） */
:root[data-theme="dark"] {
  --bg: #051233;
  --bg-alt: #081A42;
  --surface: #0B2158;
  --ink: #E8EFFB;
  --muted: #A6B8D8;
  --border: rgba(166, 196, 255, .16);
  --navy: #022662;
  --navy-deep: #020F2E;
  --cyan: #01C4FC;
  --accent-ink: #38CDFF;
  --link: #55D4FF;
  --pale: rgba(1, 196, 252, .10);
  --glow: rgba(1, 196, 252, .10);
  --header-glass: rgba(5, 18, 51, .82);
  --net-line: rgba(85, 212, 255, .12);
  --net-dot: rgba(1, 196, 252, .55);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, .35);
}

/* ---------- 2. Base / reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .03em;
  font-feature-settings: "palt";
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

button { font: inherit; color: inherit; }

:where(#services, #reasons, #cases, #about, #contact, #top) { scroll-margin-top: 84px; }

/* focus ring */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- 3. Layout helpers ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}
.section--alt { background: var(--bg-alt); }

.skip-link {
  position: fixed;
  top: -80px;
  left: 1rem;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: .65rem 1.1rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* scroll progress */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 130;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan);
}

/* ---------- 4. Section head ---------- */
.sec-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sec-eyebrow {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .5rem;
}
.sec-title {
  font-size: clamp(1.625rem, 1.1rem + 2vw, 2.375rem);
  color: var(--ink);
}
.sec-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 3px;
  margin-top: 1rem;
}
.sec-rule::before {
  content: "";
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
}
.sec-rule span {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--cyan);
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--ink);
  max-width: 40em;
  margin-bottom: 1.25rem;
}
.section-lead--sub { color: var(--muted); font-size: 1rem; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-shadow: 0 8px 22px rgba(2, 38, 98, .16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s, color .2s, border-color .2s;
}
.btn--pill { border-radius: 999px; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 8px 22px rgba(1, 196, 252, .14); }
.btn--ghost:active { transform: translateY(0); }
.btn--cyan { background: var(--cyan); color: #021B4B; }
.btn--cyan:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(1, 196, 252, .3); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { transform: translateY(-2px); }
.btn--nav-cta {
  padding: .5rem 1.1rem;
  font-size: .875rem;
  background: var(--navy);
  color: #fff;
}
.btn--nav-cta:hover { transform: translateY(-1px); box-shadow: var(--btn-shadow); }
.btn--submit {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: .95rem 1.5rem;
  margin-top: .4rem;
}
.btn--submit:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow); }
.btn--submit:active { transform: translateY(0); }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font: inherit;
}
.link-btn:hover { color: var(--accent-ink); }

.text-link {
  color: var(--link);
  text-underline-offset: 2px;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--border);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo--light { height: 40px; width: auto; }
.brand-logo--dark { display: none; height: 40px; width: auto; }

.primary-nav { display: none; }
.nav-list {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: .35rem 0;
  letter-spacing: .02em;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-link:hover::after,
.nav-link[aria-current="true"]::after { transform: scaleX(1); }
.nav-link[aria-current="true"] { color: var(--accent-ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.btn--nav-cta { display: none; }

.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--cyan); color: var(--accent-ink); }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle__box { position: relative; display: block; width: 24px; height: 16px; }
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s, background .2s;
}
.nav-toggle__bar { top: 7px; }
.nav-toggle__bar::before { content: ""; top: -7px; }
.nav-toggle__bar::after { content: ""; top: 7px; }

/* header theme icon swap for dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo--light { display: none; }
  :root:not([data-theme="light"]) .brand-logo--dark { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
}
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* drawer-open state: white brand + white bars */
body.nav-open .brand-logo--light { display: none; }
body.nav-open .brand-logo--dark { display: block; }
body.nav-open .site-header {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.nav-open .nav-toggle { color: #fff; }
body.nav-open .nav-toggle__bar { background: transparent; }
body.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); background: #fff; }
body.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); background: #fff; }

@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .btn--nav-cta { display: inline-flex; }
  .theme-toggle { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- 7. Drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility .3s;
}
body.nav-open .drawer { opacity: 1; visibility: visible; }
.drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: min(90vw, 420px);
}
.drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  text-align: center;
  width: 100%;
}
.drawer-link {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}
.drawer-link:hover { color: var(--cyan); }
.drawer-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
}
.drawer-cta { width: 100%; max-width: 280px; }
.theme-toggle--drawer {
  display: inline-flex;
  width: auto;
  height: auto;
  gap: .6rem;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.theme-toggle--drawer:hover { color: var(--cyan); border-color: var(--cyan); }
.theme-toggle__label { font-size: .95rem; font-weight: 500; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 6.5rem);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}
.hero-copy { max-width: 40em; }
.hero-eyebrow {
  font-size: .875rem;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.hero-eyebrow .sep {
  color: var(--accent-ink);
  margin-inline: .55em;
  font-weight: 700;
}
.hero-title {
  font-size: clamp(2.375rem, 1.2rem + 4.6vw, 4rem);
  color: var(--ink);
  white-space: nowrap;
  margin-bottom: 1.3rem;
}
.hero-title .accent { color: var(--accent-ink); }
.hero-lead {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 34em;
  color: var(--muted);
  margin-bottom: 1.9rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-visual img {
  width: 100%;
  height: auto;
}
/* テーマで出し分け: ライト=白背景版(白地に溶ける) / ダーク=濃紺版 */
.hero-visual__dark {
  display: none;
  /* 濃紺版: 左を大きく透明化しつつ、上下右も軽くフェードして箱の輪郭を消す
     （右は端のアイコンを守るため浅め。白背景版はマスク不要） */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 40%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 40%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
:root[data-theme="dark"] .hero-visual__light { display: none; }
:root[data-theme="dark"] .hero-visual__dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-visual__light { display: none; }
  :root:not([data-theme="light"]) .hero-visual__dark { display: block; }
}

@media (min-width: 1024px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 5fr 4fr;
    align-items: center;
    gap: clamp(1.75rem, 4vw, 3.25rem);
  }
}

/* ---------- 9. Flow component ---------- */
.flow {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.flow-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding-block: .6rem;
}
.flow-node {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: .34em;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--cyan);
  position: relative;
  z-index: 1;
}
.flow-label {
  font-size: .975rem;
  color: var(--ink);
  line-height: 1.5;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(.34em + 15px);
  bottom: -.2rem;
  width: 2px;
  background: var(--cyan);
  opacity: .5;
  transform: scaleY(1);
  transform-origin: top;
}
.flow-step.is-final .flow-node {
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--pale);
}
.flow-step.is-final .flow-label { font-weight: 700; color: var(--accent-ink); }

@media (min-width: 1024px) {
  .flow--h { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 0; }
  .flow--h .flow-step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .8rem;
    padding: 0 .4rem;
  }
  .flow--h .flow-node { margin-top: 0; }
  .flow--h .flow-label { font-size: .9rem; }
  .flow--h .flow-step:not(:last-child)::after {
    left: calc(50% + 9px);
    right: calc(-50% + 9px);
    top: 6px;
    bottom: auto;
    width: auto;
    height: 2px;
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ---------- 10. Services ---------- */
.service-grid {
  display: grid;
  gap: 24px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  padding-left: clamp(1.75rem, 3.2vw, 2.25rem);
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--navy);
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 12px;
  background: var(--cyan);
  transition: height .25s var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.service-card:hover::after { height: 24px; }
.service-sub {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  color: var(--accent-ink);
  font-weight: 500;
  font-size: .875rem;
  margin-bottom: .4rem;
}
.service-num {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.service-title {
  font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem);
  color: var(--ink);
  margin-bottom: .9rem;
}
.service-body {
  color: var(--muted);
  font-size: .975rem;
  margin-bottom: .8rem;
}
.chips {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chip {
  background: var(--pale);
  color: var(--ink);
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: .8125rem;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 11. Reasons ---------- */
.reasons { margin-top: clamp(2rem, 5vw, 3rem); }
.reason-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  align-items: start;
}
.reason-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.reason-title {
  font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem);
  color: var(--ink);
  margin-bottom: 1rem;
}
.reason-cols { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.reason-text { color: var(--muted); }
.reason-text p + p { margin-top: 1rem; }
.reason-text--wide { max-width: 42em; }

@media (min-width: 960px) {
  .reason-cols { grid-template-columns: 1.1fr .9fr; align-items: center; }
}

/* plus-stack (reason 01) */
.plus-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.plus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
}
.plus-chip {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem 1.2rem;
  font-weight: 500;
  font-size: .925rem;
  color: var(--ink);
  text-align: center;
}
.plus-chip:not(:first-child)::before {
  content: "＋";
  position: absolute;
  top: -1.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
}
.stack-arrow { color: var(--accent-ink); font-size: 1.4rem; line-height: 1; }
.stack-result {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: .65rem 1.4rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

/* ---------- 12. Cases ---------- */
.case-grid {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.case-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--ink);
  font-size: .975rem;
  line-height: 1.6;
  transition: border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.case-card:hover {
  border-color: rgba(1, 196, 252, .4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.check-ic { flex: 0 0 auto; margin-top: .2em; }

@media (min-width: 640px) { .case-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 13. Overview ---------- */
.overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.overview { margin: 0; }
.overview-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding-block: 1.05rem;
  border-top: 1px solid var(--border);
}
.overview-row:first-child { border-top: 0; padding-top: 0; }
.overview-row dt { font-weight: 700; color: var(--ink); }
.overview-row dd { margin: 0; color: var(--muted); }
.overview-note {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: .875rem;
}

@media (max-width: 640px) {
  .overview-row { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- 14. Contact ---------- */
.contact {
  background: var(--navy);
  color: var(--on-navy);
  overflow: hidden;
}
.contact-band {
  position: absolute;
  top: 0;
  left: 0;
  width: min(560px, 72%);
  height: 12px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}
.contact-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.sec-eyebrow--on-navy { color: var(--on-navy-cyan); }
.contact-title {
  font-size: clamp(1.625rem, 1.1rem + 2vw, 2.375rem);
  color: var(--on-navy);
  margin-bottom: 1.25rem;
}
.contact-lead {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--on-navy-soft);
  max-width: 34em;
  margin-bottom: 2rem;
}
.contact-info { margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-info__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.contact-info__row dt {
  font-family: var(--font-en);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
  min-width: 84px;
}
.contact-info__row dd { margin: 0; color: var(--on-navy); display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.contact-mail { color: var(--on-navy-cyan); text-underline-offset: 2px; word-break: break-all; }
.copy-btn {
  background: transparent;
  border: 1px solid rgba(1, 196, 252, .5);
  color: var(--on-navy-cyan);
  border-radius: 999px;
  padding: .28rem .85rem;
  font-size: .8125rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.copy-btn:hover { background: rgba(1, 196, 252, .12); border-color: var(--cyan); }

.contact-form-card {
  /* 白い名刺メタファ: 両テーマとも白地・ネイビー文字（トークンを局所再定義） */
  --ink: #06285B;
  --muted: #4A5E85;
  --border: #DCE6F2;
  --surface: #FFFFFF;
  --pale: #D5F5FE;
  --navy: #022662;
  --link: #0369A1;
  --accent-ink: #026396;
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 20px;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: 0 30px 60px -24px rgba(2, 15, 46, .55);
}
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.15rem; }
.field label {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
}
.req {
  background: var(--navy);
  color: #fff;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .12rem .5rem;
  border-radius: 999px;
}
.opt {
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .04em;
  padding: .1rem .5rem;
  border-radius: 999px;
}
.field input,
.field textarea {
  font: inherit;
  width: 100%;
  padding: .72rem .85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  line-height: 1.7;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 8em; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa9c4; }
.field input:focus,
.field textarea:focus { border-color: var(--cyan); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, .16);
}
.form-note {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: .85rem;
}
.form-note--privacy { margin-top: .6rem; }

@media (min-width: 1024px) {
  .contact-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(2.5rem, 5vw, 4.5rem); }
}

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-mark { height: 44px; width: auto; }
.footer-id { display: flex; flex-direction: column; gap: .15rem; }
.footer-name { color: #fff; font-weight: 700; font-size: 1.05rem; }
.footer-rep { color: var(--on-navy-soft); font-size: .925rem; }
.footer-mail { color: var(--on-navy-cyan); text-underline-offset: 2px; font-size: .95rem; }
.footer-contact-link { color: var(--on-navy-cyan); text-underline-offset: 2px; font-size: .95rem; width: max-content; }
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
}
.footer-nav a {
  color: var(--on-navy-soft);
  text-decoration: none;
  font-size: .95rem;
}
.footer-nav a:hover { color: var(--cyan); }

.footer-bottom {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(199, 216, 242, .18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.copyright {
  font-family: var(--font-en);
  letter-spacing: .1em;
  color: var(--on-navy-soft);
  font-size: .875rem;
}
.footer-bottom__links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.link-btn--footer { color: var(--on-navy-soft); }
.link-btn--footer:hover { color: var(--cyan); }
.footer-top-link {
  color: var(--on-navy-soft);
  text-decoration: none;
  font-size: .9rem;
}
.footer-top-link:hover { color: var(--cyan); }

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-nav { grid-template-columns: repeat(4, auto); gap: 1.75rem; }
}

/* ---------- 16. Privacy dialog ---------- */
.privacy-dialog {
  border: none;
  padding: 0;
  width: min(640px, calc(100% - 2rem));
  max-height: 80vh;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(2, 15, 46, .5);
  overflow: hidden;
}
.privacy-dialog::backdrop {
  background: rgba(2, 15, 46, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.privacy-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.4rem, 4vw, 2rem);
  border-bottom: 1px solid var(--border);
}
.privacy-dialog__title { font-size: 1.2rem; color: var(--ink); }
.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.dialog-close:hover { background: var(--bg-alt); color: var(--ink); }
.privacy-dialog__body {
  padding: 1.4rem clamp(1.4rem, 4vw, 2rem);
  overflow-y: auto;
  max-height: calc(80vh - 9rem);
}
.privacy-dialog__body h3 {
  font-size: 1rem;
  color: var(--ink);
  margin: 1.5rem 0 .4rem;
}
.privacy-dialog__body p { color: var(--muted); font-size: .95rem; }
.privacy-meta { color: var(--muted); font-size: .875rem; margin-bottom: .5rem; }
.privacy-dialog__foot {
  padding: 1.1rem clamp(1.4rem, 4vw, 2rem);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* ---------- 17. Floating UI ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 110;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(2, 15, 46, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s, background .2s;
}
.back-to-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent-ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 140;
  transform: translate(-50%, 1rem);
  max-width: calc(100% - 2rem);
  background: var(--navy);
  color: #fff;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-size: .95rem;
  text-align: center;
  box-shadow: 0 14px 34px rgba(2, 15, 46, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================
   18. Motion — 全ての「入場前状態」は no-preference 内でのみ定義
        （reduced-motion では完成形で静止 / important 指定に頼らない設計）
   ============================================================= */
/* JS 無効時は入場前状態で本文が隠れないよう完成形で表示（プログレッシブ・エンハンスメント） */
html:not(.js) .reveal,
html:not(.js) .sec-rule span,
html:not(.js) .flow-node,
html:not(.js) .plus-stack .plus-chip,
html:not(.js) .plus-stack .stack-arrow,
html:not(.js) .plus-stack .stack-result,
html:not(.js) .drawer-link { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* リビール */
  .reveal { opacity: 0; transform: translateY(16px); }
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 60ms);
  }

  /* sec-rule: シアン片のドックイン */
  .sec-rule span { transform: translateX(-12px); opacity: 0; }
  .sec-rule.is-in span {
    transform: none;
    opacity: 1;
    transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
  }

  /* フロー: コネクタ順次描画 + ノード点灯 */
  .flow-node { opacity: 0; transform: scale(.4); }
  .flow.is-in .flow-node,
  .flow-step .flow-node { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
  .flow.is-in .flow-step:nth-child(1) .flow-node { opacity: 1; transform: none; transition-delay: 60ms; }
  .flow.is-in .flow-step:nth-child(2) .flow-node { opacity: 1; transform: none; transition-delay: 180ms; }
  .flow.is-in .flow-step:nth-child(3) .flow-node { opacity: 1; transform: none; transition-delay: 300ms; }
  .flow.is-in .flow-step:nth-child(4) .flow-node { opacity: 1; transform: none; transition-delay: 420ms; }
  .flow.is-in .flow-step:nth-child(5) .flow-node { opacity: 1; transform: none; transition-delay: 540ms; }

  .flow-step:not(:last-child)::after { transform: scaleY(0); }
  .flow.is-in .flow-step:not(:last-child)::after {
    transition: transform .4s var(--ease-out);
  }
  .flow.is-in .flow-step:nth-child(1):not(:last-child)::after { transform: scaleY(1); transition-delay: 120ms; }
  .flow.is-in .flow-step:nth-child(2):not(:last-child)::after { transform: scaleY(1); transition-delay: 240ms; }
  .flow.is-in .flow-step:nth-child(3):not(:last-child)::after { transform: scaleY(1); transition-delay: 360ms; }
  .flow.is-in .flow-step:nth-child(4):not(:last-child)::after { transform: scaleY(1); transition-delay: 480ms; }

  /* plus-stack: チップの浮き上がり */
  .plus-stack .plus-chip,
  .plus-stack .stack-arrow,
  .plus-stack .stack-result { opacity: 0; transform: translateY(10px); }
  .plus-stack.is-in .plus-chip,
  .plus-stack.is-in .stack-arrow,
  .plus-stack.is-in .stack-result {
    opacity: 1;
    transform: none;
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  }
  .plus-stack.is-in .plus-chip:nth-child(1) { transition-delay: 60ms; }
  .plus-stack.is-in .plus-chip:nth-child(2) { transition-delay: 140ms; }
  .plus-stack.is-in .plus-chip:nth-child(3) { transition-delay: 220ms; }
  .plus-stack.is-in .plus-chip:nth-child(4) { transition-delay: 300ms; }
  .plus-stack.is-in .plus-chip:nth-child(5) { transition-delay: 380ms; }
  .plus-stack.is-in .stack-arrow { transition-delay: 440ms; }
  .plus-stack.is-in .stack-result { transition-delay: 520ms; }

  /* 横フロー: コネクタは scaleX */
  @media (min-width: 1024px) {
    .flow--h .flow-step:not(:last-child)::after { transform: scaleX(0); }
    .flow--h.is-in .flow-step:nth-child(1):not(:last-child)::after { transform: scaleX(1); transition-delay: 120ms; }
    .flow--h.is-in .flow-step:nth-child(2):not(:last-child)::after { transform: scaleX(1); transition-delay: 240ms; }
    .flow--h.is-in .flow-step:nth-child(3):not(:last-child)::after { transform: scaleX(1); transition-delay: 360ms; }
    .flow--h.is-in .flow-step:nth-child(4):not(:last-child)::after { transform: scaleX(1); transition-delay: 480ms; }
  }

  /* ドロワーのリンク順次フェード */
  .drawer-link { opacity: 0; transform: translateY(10px); }
  body.nav-open .drawer-link {
    opacity: 1;
    transform: none;
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
  }
  body.nav-open .drawer-list li:nth-child(1) .drawer-link { transition-delay: .12s; }
  body.nav-open .drawer-list li:nth-child(2) .drawer-link { transition-delay: .18s; }
  body.nav-open .drawer-list li:nth-child(3) .drawer-link { transition-delay: .24s; }
  body.nav-open .drawer-list li:nth-child(4) .drawer-link { transition-delay: .30s; }
}

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

/* =============================================================
   20. フェーズ2 追加 — NEWS / WORKS / 記事タイポグラフィ
        既存トークン・命名で追記（新トークン/新色は追加しない）
   ============================================================= */

/* 追加セクションのスクロール余白（sticky ヘッダー分） */
:where(#works, #news) { scroll-margin-top: 84px; }

/* ---------- 20-1. NEWS カード（トップ最新3件 / 一覧共通） ---------- */
.news-list {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
@media (min-width: 900px) {
  .news-list--home { grid-template-columns: repeat(3, 1fr); }
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.news-card:hover,
.news-card:focus-within {
  border-color: rgba(1, 196, 252, .4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.news-card__date {
  font-family: var(--font-en);
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.news-card__title {
  font-size: 1.075rem;
  line-height: 1.5;
  color: var(--ink);
}
.news-card__link { color: inherit; text-decoration: none; }
.news-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-card__link:hover { color: var(--accent-ink); }
.news-card__desc { color: var(--muted); font-size: .95rem; line-height: 1.75; }

/* 「すべてのお知らせ →」 */
.news-more-wrap { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.news-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 700;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s var(--ease-out), color .2s;
}
.news-more:hover { border-color: var(--cyan); color: var(--accent-ink); }

/* ---------- 20-2. WORKS ギャラリー ---------- */
.works-grid {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .works-grid { grid-template-columns: 1fr 1fr; } }
.works-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.works-card:hover,
.works-card:focus-within {
  border-color: rgba(1, 196, 252, .4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.works-card__body {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
}
.works-card__industry {
  align-self: flex-start;
  background: var(--pale);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: .22rem .75rem;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.5;
}
.works-card__title {
  font-size: clamp(1.075rem, 1rem + .5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
}
.works-card__link { color: inherit; text-decoration: none; }
.works-card__link::after { content: ""; position: absolute; inset: 0; }
.works-card__link:hover { color: var(--accent-ink); }
.works-card__summary { color: var(--muted); font-size: .95rem; line-height: 1.75; }
.works-card__tags { margin-top: .35rem; }

/* カード全体リンクのフォーカスはカード枠に集約（二重リング回避） */
.news-card__link:focus-visible,
.works-card__link:focus-visible { outline: none; }
.news-card:has(.news-card__link:focus-visible),
.works-card:has(.works-card__link:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 20-3. 画像プレースホルダ（cover 未指定時） ---------- */
.works-ph {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #041d4d 0%, #022662 42%, #01518f 78%, #0187c8 125%);
}
.works-ph__mark {
  width: clamp(64px, 22%, 120px);
  height: auto;
  opacity: .16;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
}
.works-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%);
  transform: translateX(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .works-ph::before { animation: works-ph-shimmer 2.8s var(--ease-out) infinite; }
}
@keyframes works-ph-shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- 20-4. 記事/実績ページ 共通コンテナ ---------- */
.article-shell,
.work-shell {
  width: min(760px, 92vw);
  margin-inline: auto;
}
.article-head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.article-title {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.125rem);
  color: var(--ink);
  margin-top: .7rem;
  line-height: 1.4;
}
.article-foot,
.work-cta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.work-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.article-back,
.work-back {
  font-weight: 700;
  color: var(--accent-ink);
  text-decoration: none;
  text-underline-offset: 2px;
}
.article-back:hover,
.work-back:hover { color: var(--cyan); text-decoration: underline; }

/* ---------- 20-5. 長文タイポグラフィ（.prose 相当） ---------- */
.prose {
  max-width: 42em; /* 日本語 38–46em の可読幅 */
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.85;
}
.prose > * + * { margin-top: 1.4em; }
.prose h2 {
  font-size: 1.4rem;
  line-height: 1.4;
  margin-top: 2.2em;
  padding-left: .7rem;
  border-left: 3px solid var(--cyan);
  color: var(--ink);
}
.prose h3 {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-top: 1.8em;
  color: var(--ink);
}
.prose p { color: var(--ink); }
.prose a { color: var(--link); text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-ink); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul,
.prose ol { padding-left: 1.4em; }
.prose li { margin-top: .5em; }
.prose li::marker { color: var(--accent-ink); }
.prose blockquote {
  margin-inline: 0;
  padding: .7rem 1.1rem;
  border-left: 3px solid var(--cyan);
  background: var(--bg-alt);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}
.prose blockquote p { color: var(--muted); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .1em .4em;
}
.prose pre {
  background: var(--navy-deep);
  color: #E8EFFB;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  overflow-x: auto;
  line-height: 1.7;
}
.prose pre code { background: none; border: none; padding: 0; color: inherit; }
.prose img { border-radius: 12px; border: 1px solid var(--border); }
.prose hr { border: none; border-top: 1px solid var(--border); margin-block: 2em; }

/* ---------- 20-6. 実績個別ページ ---------- */
.work-industry {
  display: inline-block;
  background: var(--pale);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: .8rem;
}
.work-media { margin: clamp(1.5rem, 4vw, 2rem) 0; }
.work-media__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.works-ph--wide { aspect-ratio: 16 / 7; border-radius: var(--radius); }
.works-ph--wide .works-ph__mark { width: clamp(80px, 16%, 140px); }
.work-summary {
  font-size: 1.075rem;
  color: var(--ink);
  line-height: 1.85;
  max-width: 42em;
}
.work-tags { margin-top: 1.1rem; }
.work-body {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 16px;
}
.work-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  padding: clamp(1.15rem, 2.5vw, 1.6rem) clamp(1.25rem, 3vw, 1.8rem);
}
.work-block__label {
  font-size: .95rem;
  color: var(--accent-ink);
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.work-block__text { color: var(--ink); line-height: 1.85; }
.work-extra { margin-top: clamp(2rem, 5vw, 3rem); }

/* ---------- 20-7. ドロワー stagger（ナビ項目 5・6 の追随） ---------- */
@media (prefers-reduced-motion: no-preference) {
  body.nav-open .drawer-list li:nth-child(5) .drawer-link { transition-delay: .36s; }
  body.nav-open .drawer-list li:nth-child(6) .drawer-link { transition-delay: .42s; }
}

/* ---------- 21. お問い合わせフォーム（実送信・フェーズ4） ---------- */
/* ハニーポット: 視覚・スクリーンリーダーの双方から外しつつ、DOM 上には残す（display:none は避ける） */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Turnstile ウィジェットの描画先（遅延ロードで内容が入るまでは余白を作らない） */
.turnstile-holder:not(:empty) { margin: 0 0 1.15rem; min-height: 65px; }

/* 送信ボタンの送信中状態 */
.btn--submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 送信エラー表示（白い名刺カード内） */
.form-status--error {
  margin-top: .85rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: rgba(214, 69, 69, .08);
  border: 1px solid rgba(214, 69, 69, .35);
  color: #b23636;
  font-size: .875rem;
  line-height: 1.7;
}
.form-status--error[hidden] { display: none; }

.form-note--noscript {
  color: #b23636;
}

/* 送信成功パネル（フォームと差し替え表示） */
.form-success {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.6rem) .5rem;
  color: var(--ink);
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__icon { display: block; margin: 0 auto 1rem; }
.form-success__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .6rem;
}
.form-success__text {
  color: var(--muted);
  line-height: 1.85;
  max-width: 26em;
  margin: 0 auto;
}
