/* 下層ページ — Impact（白背景）
   英字見出し: Outfit 900 / 和文: Noto Sans JP 900 */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Outfit:wght@500;600;700;800;900&display=swap");

html.theme-impact {
  --header-h: calc(72px * 1.2);
  scroll-padding-top: calc(var(--header-h) + 24px);
  /* ウィンドウ全体のスクロールバーは非表示（スクロール自体は有効, Firefox 等） */
  scrollbar-width: none;
  --imp-bg: #fafafa;
  --imp-ink: rgb(26, 26, 26);
  --imp-muted: rgb(26, 26, 26);
  --imp-line: rgb(26, 26, 26);
  --imp-soft: #fafafa;
  --imp-accent: #ff9398;
  --imp-band-lime: #ccff00;
  --imp-content-width: 80%;
  --imp-gutter-x: clamp(16px, 4vw, 48px);
  --imp-p-scale: 1.5;
  --imp-type-card-title: calc(0.95rem * var(--imp-p-scale));
  --imp-type-card-body: calc(0.82rem * var(--imp-p-scale));
  --imp-type-lead: clamp(calc(0.95rem * var(--imp-p-scale)), calc(1.6vw * var(--imp-p-scale)), calc(1.08rem * var(--imp-p-scale)));
  --imp-text-section: var(--imp-type-card-body);
  --imp-link-underline: 2px;
  --imp-link-underline-offset: 3px;
  --imp-contact-gap: clamp(56px, 9vw, 112px);
  --imp-contact-stack-gap: clamp(48px, 7vw, 72px);
  --imp-line-height-body: 1.7;
  --imp-line-height-list: 1.55;
  --imp-card-padding: clamp(28px, 4vw, 40px);
  --imp-card-padding-x: clamp(28px, 4vw, 40px);
  --imp-card-padding-top: clamp(28px, 4vw, 40px);
  --imp-card-padding-bottom: clamp(14px, 2.2vw, 22px);
  --imp-card-padding-link: var(--imp-card-padding-top) var(--imp-card-padding-x) var(--imp-card-padding-bottom);
  --imp-card-padding-compact: clamp(20px, 3vw, 28px);
  --imp-block-gap: clamp(48px, 7vw, 72px);
  /* HOME と同じクロス背景 */
  --imp-dot-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg stroke='%231a1a1a' stroke-opacity='.25' stroke-width='1.8' shape-rendering='crispEdges'%3E%3Cpath d='M28 23V33M23 28H33'/%3E%3C/g%3E%3C/svg%3E");
  --imp-dot-step: 24px;
  --imp-display: "Outfit", "Noto Sans JP", sans-serif;
  --imp-body: "Noto Sans JP", "Outfit", sans-serif;
}

html.theme-impact ::selection {
  background-color: rgb(26, 26, 26);
  color: #ffffff;
}

html.theme-impact ::-moz-selection {
  background-color: rgb(26, 26, 26);
  color: #ffffff;
}

/* ウィンドウ全体（ページ本体）の縦横スクロールバーは非表示にする
   ※ 内部要素（サイドカラム・コードブロック等）のスクロールバーは維持 */
html.theme-impact::-webkit-scrollbar,
html.theme-impact body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html.theme-impact body {
  scrollbar-width: none;
}

/* オリジナルのスクロールバー（WebKit / Chromium / Safari） */
html.theme-impact ::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

html.theme-impact ::-webkit-scrollbar-track {
  background: var(--imp-bg);
  border-left: 2px solid var(--imp-line);
  border-radius: 0;
}

html.theme-impact ::-webkit-scrollbar-thumb {
  background: var(--imp-ink);
  border: 0;
  border-left: 2px solid var(--imp-line);
  border-radius: 0;
}

html.theme-impact ::-webkit-scrollbar-thumb:hover {
  background: var(--imp-band-lime);
  box-shadow: inset 0 0 0 1px var(--imp-ink);
}

html.theme-impact ::-webkit-scrollbar-thumb:active {
  background: var(--imp-accent);
}

html.theme-impact ::-webkit-scrollbar-corner {
  background: var(--imp-bg);
  border-radius: 0;
}

/* サイドカラム等の細めスクロールバー（細く・控えめ・四角）
   ※ Chromium では scrollbar-width を付けると ::-webkit-scrollbar が無効化される */
html.theme-impact .blog-detail-nav::-webkit-scrollbar,
html.theme-impact .blog-detail-toc::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

html.theme-impact .blog-detail-nav::-webkit-scrollbar-button,
html.theme-impact .blog-detail-toc::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html.theme-impact .blog-detail-nav::-webkit-scrollbar-track,
html.theme-impact .blog-detail-toc::-webkit-scrollbar-track {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html.theme-impact .blog-detail-nav::-webkit-scrollbar-thumb,
html.theme-impact .blog-detail-toc::-webkit-scrollbar-thumb {
  background: var(--imp-ink) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html.theme-impact .blog-detail-nav::-webkit-scrollbar-thumb:hover,
html.theme-impact .blog-detail-toc::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.7) !important;
  box-shadow: none !important;
}

/* Firefox のみ（::-webkit-scrollbar 非対応） */
@supports (-moz-appearance: none) {
  html.theme-impact .blog-detail-nav,
  html.theme-impact .blog-detail-toc {
    scrollbar-width: thin;
    scrollbar-color: var(--imp-ink) transparent;
  }
}

html.theme-impact body.site-v2 {
  --v2-ink: var(--imp-ink);
  --v2-muted: var(--imp-muted);
  --v2-line: var(--imp-line);
  --v2-soft: var(--imp-soft);
  font-family: var(--imp-body);
  background: var(--imp-bg);
  color: var(--imp-ink);
  -webkit-font-smoothing: antialiased;
}

html.theme-impact .btn-contact,
html.theme-impact .v2-btn,
html.theme-impact .anchor-nav a,
html.theme-impact .filter-btn,
html.theme-impact .btn-submit {
  border-width: 2px;
  border-style: solid;
  text-decoration: none;
  transform: translateZ(0) scale(1);
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.5s cubic-bezier(0.22, 1.28, 0.36, 1);
}

html.theme-impact .btn-contact:hover,
html.theme-impact .btn-submit:hover,
html.theme-impact .v2-btn-primary:hover,
html.theme-impact .v2-btn-secondary:hover,
html.theme-impact .v2-btn:hover,
html.theme-impact .sns-links a:hover {
  background: var(--imp-band-lime);
  border-color: var(--imp-ink);
  color: rgb(26, 26, 26);
}

/* Lime-band — white or inverted hover (avoid lime-on-lime) */
html.theme-impact .cta-band:not(.imp-bg-dots) .btn-contact:hover,
html.theme-impact .imp-bg-lime .btn-contact:hover {
  background: var(--imp-bg);
  border-color: var(--imp-ink);
  color: rgb(26, 26, 26);
}

html.theme-impact .imp-bg-lime .v2-btn-primary:hover,
html.theme-impact .imp-bg-lime .v2-btn-secondary:hover {
  background: var(--imp-ink);
  border-color: var(--imp-ink);
  color: #fff;
}

html.theme-impact .btn-contact:hover,
html.theme-impact .v2-btn-primary:hover,
html.theme-impact .v2-btn:hover,
html.theme-impact .anchor-nav a:hover,
html.theme-impact .filter-btn:hover,
html.theme-impact .btn-submit:hover,
html.theme-impact .sns-links a:hover {
  transform: translateZ(0) scale(1.04);
}

html.theme-impact h1,
html.theme-impact h2,
html.theme-impact h3 {
  font-weight: 900;
}

html.theme-impact .header-inner,
html.theme-impact .page-back-bar-inner,
html.theme-impact .work-case-hero-back-inner,
html.theme-impact .work-case-hero-inner,
html.theme-impact .page-hero-inner,
html.theme-impact .page-body-inner,
html.theme-impact .footer-inner {
  width: var(--imp-content-width);
  max-width: var(--imp-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Header — 80% だとナビ7項目が収まらないためフル幅 */
html.theme-impact .site-header {
  align-items: stretch;
  padding-left: var(--imp-gutter-x);
  padding-right: var(--imp-gutter-x);
  background: var(--imp-bg);
  backdrop-filter: none;
  box-shadow: none;
  transition:
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
  will-change: transform;
}

html.theme-impact .site-header.is-scrolled {
  background: var(--imp-bg);
  backdrop-filter: none;
  box-shadow: none;
}

html.theme-impact .site-header.is-auto-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html.theme-impact .site-header.is-auto-hidden {
    transform: none;
    pointer-events: auto;
  }
}

html.theme-impact .site-header .header-inner {
  width: 100%;
  max-width: min(1440px, 100%);
}

html.theme-impact .site-header .brand,
html.theme-impact .site-header .header-actions {
  flex-shrink: 0;
}

html.theme-impact .nav-desktop {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

html.theme-impact .page-hero,
html.theme-impact .page-body,
html.theme-impact .site-footer {
  padding-left: 0;
  padding-right: 0;
}

html.theme-impact body.subpage .site-header {
  border-bottom: 2px solid var(--imp-line);
}

html.theme-impact .site-header .header-inner {
  height: 100%;
  align-items: stretch;
}

html.theme-impact .site-header .brand {
  align-self: stretch;
  align-items: center;
}

html.theme-impact .site-header .header-actions {
  align-self: stretch;
  align-items: stretch;
  gap: 12px;
}

html.theme-impact .site-header .menu-toggle {
  align-self: stretch;
  width: clamp(48px, 6vw, 64px);
  height: auto;
  border: none;
  background: transparent;
  color: var(--imp-ink);
  box-sizing: border-box;
  transition: background 0.25s ease;
}

html.theme-impact .site-header .menu-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
  border: none;
}

html.theme-impact .site-header .menu-toggle:focus-visible {
  outline: 2px solid var(--imp-ink);
  outline-offset: 2px;
}

html.theme-impact .menu-toggle span,
html.theme-impact .menu-toggle span::before,
html.theme-impact .menu-toggle span::after {
  background-color: currentColor;
}

html.theme-impact .nav-desktop {
  align-self: stretch;
  align-items: stretch;
  gap: 0;
}

html.theme-impact .nav-desktop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 44px;
  padding: 0 clamp(14px, 1.6vw, 22px);
  box-sizing: border-box;
  font-family: var(--imp-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--imp-ink);
  opacity: 0.4;
}

html.theme-impact .site-header .header-actions .btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-shrink: 0;
  padding: 0 clamp(30px, 4.5vw, 48px);
  box-sizing: border-box;
  border-top: none;
  border-bottom: none;
  letter-spacing: 0.05em;
  transform: translateZ(0) scaleX(1);
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
}

html.theme-impact .site-header .header-actions .btn-contact:hover {
  transform: translateZ(0) scaleX(1.04);
  background: var(--imp-band-lime);
  border-color: var(--imp-ink);
  color: rgb(26, 26, 26);
}

html.theme-impact .site-header .header-actions .btn-contact .btn-contact-lines {
  display: inline;
  text-align: center;
  white-space: nowrap;
}

html.theme-impact .site-header .header-actions .btn-contact .btn-contact-line {
  display: inline;
  white-space: nowrap;
  word-break: keep-all;
}

/* ヘッダーが狭いときだけ「無料」「相談」を2行に（1100px〜：デスクトップナビ表示帯） */
@media (min-width: 1100px) and (max-width: 1280px) {
  html.theme-impact .site-header .header-actions .btn-contact {
    padding: 0 clamp(12px, 1.8vw, 18px);
    line-height: 1.1;
    min-width: 2.85em;
  }

  html.theme-impact .site-header .header-actions .btn-contact .btn-contact-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12em;
    white-space: normal;
  }

  html.theme-impact .site-header .header-actions .btn-contact .btn-contact-line {
    display: block;
  }

  html.theme-impact .nav-desktop a {
    padding: 0 clamp(8px, 1.2vw, 14px);
    font-size: clamp(0.78rem, 1.05vw, 0.88rem);
    letter-spacing: 0.08em;
  }
}

/* 1100px 未満はハンバーガー（768px 付近でナビがロゴと重なるのを防ぐ） */
@media (max-width: 1099px) {
  html.theme-impact .nav-desktop {
    display: none !important;
  }

  html.theme-impact .site-header .menu-toggle {
    display: grid !important;
    flex-shrink: 0;
  }

  html.theme-impact .site-header .header-actions .btn-contact {
    display: inline-flex;
  }

  html.theme-impact body:is(.home-v2, .site-v2) .site-header .header-actions .btn-contact:hover {
    background: var(--imp-band-lime);
    border-color: var(--imp-ink);
    color: rgb(26, 26, 26);
  }
}

/* 狭いスマホで CTA・ロゴがハンバーガーを押し出さないよう調整 */
@media (max-width: 599px) {
  html.theme-impact .site-header .header-inner {
    gap: 12px;
  }

  html.theme-impact .site-header .brand {
    flex-shrink: 1;
    min-width: 0;
    gap: 8px;
  }

  html.theme-impact .site-header .brand img {
    width: 40px;
    height: 41px;
    flex-shrink: 0;
  }

  html.theme-impact .brand-text {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
    letter-spacing: 0.06em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.theme-impact .site-header .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  html.theme-impact .site-header .header-actions .btn-contact {
    padding: 0 10px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    line-height: 1.05;
    min-width: 2.6em;
  }

  html.theme-impact .site-header .header-actions .btn-contact .btn-contact-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    white-space: normal;
  }

  html.theme-impact .site-header .header-actions .btn-contact .btn-contact-line {
    display: block;
  }

  html.theme-impact .site-header .menu-toggle {
    width: 44px;
    min-width: 44px;
    flex-shrink: 0;
  }
}

@media (min-width: 1100px) {
  html.theme-impact .nav-desktop {
    display: flex;
  }

  html.theme-impact .site-header .menu-toggle {
    display: none;
  }
}

html.theme-impact .brand-text {
  font-family: var(--imp-display);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--imp-ink);
}

html.theme-impact .nav-desktop a:hover,
html.theme-impact .nav-desktop a.is-active {
  opacity: 1;
}

html.theme-impact .btn-contact {
  border-radius: 0;
  font-family: var(--imp-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  background: var(--imp-ink);
  border-color: var(--imp-ink);
  color: #fff;
}

html.theme-impact .site-header .menu-toggle[aria-expanded="true"] {
  background: transparent;
  color: var(--imp-ink);
}

html.theme-impact .site-header .menu-toggle[aria-expanded="true"]:hover {
  background: rgba(0, 0, 0, 0.04);
}

html.theme-impact .site-header .menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

html.theme-impact .site-header .menu-toggle[aria-expanded="true"] span::before,
html.theme-impact .site-header .menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  opacity: 1;
  background-color: currentColor;
}

html.theme-impact .site-header .menu-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

html.theme-impact .site-header .menu-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
}

html.theme-impact .site-header .menu-toggle[aria-expanded="true"]:hover span {
  background: transparent;
}

html.theme-impact .site-header .menu-toggle[aria-expanded="true"]:hover span::before,
html.theme-impact .site-header .menu-toggle[aria-expanded="true"]:hover span::after {
  background-color: currentColor;
}

html.theme-impact .mobile-nav-panel {
  background: var(--imp-bg);
  border-left: 2px solid var(--imp-line);
}

html.theme-impact .mobile-nav-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 28px;
  margin: 0 -28px;
  width: calc(100% + 56px);
  box-sizing: border-box;
  font-family: var(--imp-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--imp-ink);
  transition: background 0.2s ease, color 0.2s ease;
}

html.theme-impact .mobile-nav-panel a:hover,
html.theme-impact .mobile-nav-panel a.is-active,
html.theme-impact .mobile-nav-panel a:focus-visible {
  background: var(--imp-band-lime);
  color: var(--imp-ink);
}

html.theme-impact .mobile-nav-panel li + li {
  margin-top: 0;
}

/* Page hero */
html.theme-impact .page-hero {
  padding: calc(var(--header-h) + 56px) 0 clamp(56px, 8vw, 96px);
  background: var(--imp-bg);
  border-bottom: 2px solid var(--imp-line);
}

/* Works detail — compact hero */
html.theme-impact .work-case-hero {
  background: var(--imp-bg);
  border-bottom: 2px solid var(--imp-line);
}

html.theme-impact .work-case-hero-back {
  padding-top: var(--header-h);
  padding-bottom: clamp(8px, 1.2vw, 12px);
}

html.theme-impact .work-case-hero-back .back-link {
  margin-bottom: 0;
}

html.theme-impact .work-case-hero-inner {
  padding: clamp(12px, 2vw, 20px) 0 clamp(28px, 4vw, 48px);
}

html.theme-impact .work-case-hero-eyebrow {
  margin: 0 0 clamp(12px, 1.8vw, 20px) 4px;
  font-family: var(--imp-display);
  font-size: clamp(0.72rem, 1vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--imp-muted);
}

html.theme-impact .work-case-hero-title {
  margin: 0;
  margin-left: -0.09em;
  font-family: var(--imp-display);
  font-size: clamp(1.75rem, 4.5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 14em;
  color: var(--imp-ink);
}

html.theme-impact .work-case-hero-subtitle {
  margin: clamp(6px, 1vw, 10px) 0 0 4px;
  font-family: var(--imp-display);
  font-size: clamp(0.72rem, 1vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--imp-muted);
}

html.theme-impact .work-case-hero-lead {
  margin: clamp(10px, 1.5vw, 16px) 0 0 4px;
  font-family: var(--imp-body);
  font-size: calc(var(--imp-type-lead) * 0.92);
  line-height: calc(var(--imp-line-height-body) * 0.8);
  color: var(--imp-muted);
  max-width: 36em;
}

html.theme-impact .page-eyebrow {
  margin: 0 0 16px 4px;
  font-family: var(--imp-display);
  font-size: clamp(0.9rem, 1.4vw, 2.05rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--imp-muted);
}

html.theme-impact .page-hero h1 {
  margin: 0;
  margin-left: -0.09em;
  font-family: var(--imp-display);
  font-size: clamp(2.5rem, 8vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 14em;
  color: var(--imp-ink);
  word-break: keep-all;
  line-break: strict;
}

html.theme-impact .page-lead {
  margin-top: clamp(20px, 3vw, 32px);
  margin-left: 4px;
  font-size: var(--imp-type-lead);
  line-height: var(--imp-line-height-body);
  color: var(--imp-muted);
  max-width: 36em;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}

html.theme-impact .page-lead-line {
  display: block;
}

html.theme-impact .page-lead-line + .page-lead-line {
  margin-top: 0.4em;
}

html.theme-impact .page-lead strong {
  color: var(--imp-ink);
  font-weight: 900;
}

html.theme-impact .page-body {
  background: var(--imp-bg);
  color: var(--imp-ink);
  border-bottom: none;
  padding: 0 0 clamp(80px, 10vw, 120px);
}

html.theme-impact .page-body-inner {
  width: var(--imp-content-width);
  max-width: var(--imp-content-width);
}

/* ヒーロー直下 — section-block 以外の先頭ブロック（カード・一覧等）の上余白を全下層で統一 */
html.theme-impact body.site-v2.subpage .page-body-inner > :first-child:not(.section-block):not(.anchor-nav) {
  margin-top: clamp(48px, 8vw, 80px);
}

/* ── Impact 共通バンド（全ページ） ── */
html.theme-impact .imp-band-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
}

html.theme-impact .imp-bg-cross {
  background-color: var(--imp-bg);
  background-image: var(--imp-dot-pattern);
  background-size: var(--imp-dot-step) var(--imp-dot-step);
  background-repeat: repeat;
}

html.theme-impact .imp-bg-lime {
  background: var(--imp-band-lime);
}

/* 下層セクション */
html.theme-impact .section-block {
  padding: clamp(56px, 8vw, 96px) calc(50vw - 50%);
  border-bottom: 2px solid var(--imp-line);
  background-color: var(--imp-bg);
}

html.theme-impact .section-block[id],
html.theme-impact .v2-section[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

html.theme-impact .section-block,
html.theme-impact .cta-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
}

/* ライム交互（about / process 等・クロス／白指定以外の偶数ブロック） */
html.theme-impact .section-block:nth-child(even):not(.imp-bg-cross):not(.imp-bg-plain) {
  background: var(--imp-band-lime);
  border-bottom: none;
}

html.theme-impact .section-block.imp-bg-cross,
html.theme-impact .section-block.imp-bg-plain {
  border-bottom: 2px solid var(--imp-line);
}

html.theme-impact .section-block:not(.imp-bg-cross):not(.imp-bg-plain):has(+ .section-block:nth-child(even):not(.imp-bg-cross):not(.imp-bg-plain)) {
  border-bottom: none;
}

html.theme-impact .section-block + .section-block {
  border-top: none;
  margin-top: 0;
  padding-top: clamp(56px, 8vw, 96px);
}

html.theme-impact .section-block h2 {
  margin: 0 0 16px;
  font-family: var(--imp-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--imp-ink);
}

html.theme-impact .section-block .section-desc {
  margin: 0 0 clamp(32px, 5vw, 48px);
  color: var(--imp-muted);
  font-size: var(--imp-type-lead);
  line-height: var(--imp-line-height-body);
  max-width: 40em;
}

html.theme-impact .section-block h2:has(+ .company-grid) {
  margin-bottom: clamp(32px, 5vw, 48px);
}

html.theme-impact .anchor-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.5vw, 14px);
  margin-top: 0;
  margin-bottom: 0;
  padding: clamp(40px, 6vw, 64px) 0;
}

html.theme-impact .anchor-nav.imp-band-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  box-sizing: border-box;
}

/* SERVICE — アンカーナビ（ライム帯・白ボタン） */
html.theme-impact body.page-service .anchor-nav {
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px) clamp(10px, 1.5vw, 14px);
  padding: clamp(40px, 6vw, 64px) calc(50vw - 50%);
  border-bottom: 2px solid var(--imp-line);
}

html.theme-impact body.page-service .anchor-nav-title {
  margin-right: clamp(20px, 4vw, 48px);
}

html.theme-impact .anchor-nav-title {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--imp-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--imp-ink);
}

html.theme-impact .anchor-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.5vw, 14px);
  flex: 1 1 auto;
}

html.theme-impact body.page-service .anchor-nav a {
  background: var(--imp-bg);
}

html.theme-impact body.page-service .anchor-nav a:hover {
  background: var(--imp-ink);
  border-color: var(--imp-ink);
  color: #fff;
}

/* SERVICE — サービス一覧（ライム）以降、レモン（クロス）／ライムを交互に */
html.theme-impact body.page-service .page-body-inner > .section-block {
  background-color: var(--imp-bg);
  border-bottom: 2px solid var(--imp-line);
}

html.theme-impact body.page-service .page-body-inner > .section-block:nth-child(even):not(.imp-bg-cross):not(.imp-bg-plain):not(.imp-bg-lime) {
  background-color: var(--imp-bg);
  border-bottom: 2px solid var(--imp-line);
}

html.theme-impact body.page-service .page-body-inner > .section-block.imp-bg-lime {
  background: var(--imp-band-lime);
  border-bottom: none;
}

html.theme-impact body.page-service .page-body-inner > .section-block.imp-bg-cross {
  background-color: var(--imp-bg);
  background-image: var(--imp-dot-pattern);
  background-size: var(--imp-dot-step) var(--imp-dot-step);
  background-repeat: repeat;
  border-bottom: 2px solid var(--imp-line);
}

html.theme-impact body.page-service .page-body-inner > .section-block.imp-bg-lime + .section-block.imp-bg-cross,
html.theme-impact body.page-service .page-body-inner > .section-block.imp-bg-cross + .section-block.imp-bg-lime {
  border-top: none;
}

html.theme-impact .indie-games-heading {
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  font-family: var(--imp-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: none;
  color: var(--imp-ink);
}

html.theme-impact .indie-game-card-head h3 {
  margin: 0;
}

html.theme-impact .indie-game-status {
  font-family: var(--imp-display);
  border: 2px solid var(--imp-line);
  border-radius: 0;
  color: var(--imp-muted);
}

html.theme-impact .indie-game-title-sub {
  margin: 0 0 0.25em;
  font-family: var(--imp-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--imp-ink);
}

html.theme-impact .indie-game-title-en {
  font-family: var(--imp-body);
  font-size: 0.82rem;
  color: var(--imp-muted);
}

html.theme-impact .indie-games-grid {
  gap: clamp(16px, 2.5vw, 24px);
  background: transparent;
  border: none;
}

html.theme-impact .indie-game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

html.theme-impact .anchor-nav a {
  border-radius: 0;
  border: 2px solid var(--imp-ink);
  background: transparent;
  color: var(--imp-ink);
  font-family: var(--imp-display);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: clamp(12px, 1.5vw, 14px) clamp(16px, 2vw, 22px);
  line-height: 1.35;
}

html.theme-impact .anchor-nav a:hover {
  background: var(--imp-band-lime);
  border-color: var(--imp-ink);
  color: rgb(26, 26, 26);
}

html.theme-impact .detail-card,
html.theme-impact .work-card,
html.theme-impact .faq-item,
html.theme-impact .founder-profile-card {
  border-radius: 0;
  border: 2px solid var(--imp-line);
  background: var(--imp-bg);
}

html.theme-impact .for-who-card {
  border-radius: 0;
  background: var(--imp-bg);
}

html.theme-impact .company-grid {
  border-radius: 0;
  border: 2px solid var(--imp-line);
  background: var(--imp-bg);
}

html.theme-impact .detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--imp-line);
  border: 2px solid var(--imp-line);
}

html.theme-impact .for-who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--imp-line);
  border: 2px solid var(--imp-line);
}

html.theme-impact .detail-card {
  padding: var(--imp-card-padding-link);
  transition: background 0.2s;
}

html.theme-impact .detail-grid .detail-card {
  border: none;
}

html.theme-impact .detail-grid.indie-games-grid {
  gap: clamp(16px, 2.5vw, 24px);
  background: transparent;
  border: none;
}

html.theme-impact .indie-games-grid .indie-game-card {
  border: 2px solid var(--imp-ink);
  border-left-width: 8px;
  background: var(--imp-bg);
}

html.theme-impact .detail-grid .detail-card-full {
  grid-column: 1 / -1;
}

html.theme-impact .for-who-grid .for-who-card {
  border: none;
  padding: var(--imp-card-padding-link);
  transition: background 0.2s;
}

html.theme-impact .section-block > .detail-card {
  margin-top: 20px;
}

html.theme-impact .detail-card:hover,
html.theme-impact .for-who-grid .for-who-card:hover {
  transform: none;
  background: var(--imp-bg);
  outline: 2px solid var(--imp-ink);
  outline-offset: -2px;
}

html.theme-impact .indie-games-grid .indie-game-card:hover {
  background: var(--imp-band-lime);
  outline: none;
}

/* Card typography — 全ページ共通トークン */
html.theme-impact :is(
  .detail-card,
  .for-who-card,
  .founder-profile-card
) h3,
html.theme-impact .process-step h3 {
  margin: 0 0 0.65em;
  font-family: var(--imp-body);
  font-size: var(--imp-type-card-title);
  font-weight: 700;
  line-height: 1.325;
  color: var(--imp-ink);
}

html.theme-impact .process-step h3 {
  margin: 0;
}

html.theme-impact .founder-profile-card h3 {
  margin: 0 0 0.15em;
}

html.theme-impact :is(
  .detail-card,
  .for-who-card,
  .founder-profile-card,
  .v2-cap-card
) p,
html.theme-impact .process-step p,
html.theme-impact .process-note,
html.theme-impact .faq-item p,
html.theme-impact .case-block p,
html.theme-impact .case-block ul,
html.theme-impact .contact-aside ul,
html.theme-impact .founder-profile-meta,
html.theme-impact .company-row dd {
  font-family: var(--imp-body);
  font-size: var(--imp-type-card-body);
  font-weight: 400;
  line-height: var(--imp-line-height-body);
  color: var(--imp-muted);
}

html.theme-impact :is(
  .detail-card,
  .for-who-card,
  .founder-profile-card,
  .v2-cap-card,
  .v2-cap-strength
) :is(ul, ol) li,
html.theme-impact .v2-approach-points li {
  line-height: var(--imp-line-height-list);
}

html.theme-impact .work-card h3 {
  font-family: var(--imp-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--imp-ink);
}

html.theme-impact .work-card .client {
  font-family: var(--imp-display);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--imp-muted);
}

html.theme-impact .work-card-subtitle {
  margin: 0 0 8px;
  font-family: var(--imp-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--imp-ink);
}

html.theme-impact .work-card .roles {
  font-size: var(--imp-type-card-body);
  color: var(--imp-muted);
}

html.theme-impact .work-card {
  display: flex;
  flex-direction: column;
}

html.theme-impact .work-card.is-hidden {
  display: none;
}

html.theme-impact .work-card-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  color: inherit;
}

html.theme-impact .work-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  color: inherit;
}

html.theme-impact .founder-profile-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--imp-card-padding-link);
}

html.theme-impact .work-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--imp-card-padding-link);
}

html.theme-impact .legal-document,
html.theme-impact .maintenance-panel {
  padding: var(--imp-card-padding);
}

html.theme-impact .work-card-link .roles {
  flex: 1 1 auto;
}

html.theme-impact .work-card-link .read-more,
html.theme-impact .work-card-link span.imp-text-link {
  opacity: 1;
}

/* Text links without arrow — lime background on hover */
html.theme-impact .filter-btn {
  border-radius: 0;
  font-family: var(--imp-display);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-color: var(--imp-ink);
  background: transparent;
  color: var(--imp-ink);
  padding: 10px 18px;
}

html.theme-impact .filter-btn.is-active {
  background: var(--imp-ink);
  color: #fff;
}

html.theme-impact .filter-btn:hover {
  background: var(--imp-band-lime);
  border-color: var(--imp-ink);
  color: rgb(26, 26, 26);
}

html.theme-impact .work-card img {
  filter: grayscale(15%) contrast(1.02);
  transition: filter 0.4s ease;
}

html.theme-impact .work-card:hover img {
  filter: grayscale(0%);
}

html.theme-impact .cta-band {
  margin-top: clamp(64px, 10vw, 96px);
  padding: clamp(56px, 8vw, 96px) calc(50vw - 50%);
  border: none;
  border-radius: 0;
  text-align: center;
}

html.theme-impact .cta-band:not(.imp-bg-cross):not(.imp-bg-dots) {
  background: var(--imp-band-lime);
}

/* SERVICE / WORKS / PROCESS — お問い合わせ CTA 帯の上下余白をライムで連続 */
html.theme-impact body.page-service .section-block:last-of-type,
html.theme-impact body.page-process .section-block:last-of-type {
  border-bottom: none;
}

html.theme-impact body:is(.page-service, .page-works, .page-process, .page-about) .cta-band {
  margin-top: 0;
}

html.theme-impact body.site-v2.subpage .page-body:has(.page-body-inner > .cta-band:last-child) {
  padding-bottom: 0;
}

/* 下層お問い合わせ CTA — 共通（高さ・中央揃え） */
html.theme-impact body.site-v2.subpage .page-body-inner > .cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(300px, 36vw, 360px);
  padding: clamp(56px, 8vw, 96px) calc(50vw - 50%) clamp(80px, 10vw, 120px);
  box-sizing: border-box;
  text-align: center;
}

/* SERVICE / WORKS — カード下〜お問い合わせ CTA 上の余白（SERVICE section-block の padding-bottom と同値） */
html.theme-impact body.page-works .works-axis-intro {
  margin: 0 0 clamp(28px, 4vw, 40px);
  max-width: 42em;
  font-size: var(--imp-type-lead);
  line-height: var(--imp-line-height-body);
  color: var(--imp-muted);
}

html.theme-impact body.page-works .works-axis-list {
  display: grid;
  gap: clamp(48px, 7vw, 80px);
}

html.theme-impact body.page-works .works-axis-block.is-hidden {
  display: none;
}

html.theme-impact body.page-works .works-axis-head {
  margin-bottom: clamp(24px, 3.5vw, 36px);
  max-width: 44em;
}

html.theme-impact body.page-works .works-axis-title {
  margin: 0 0 12px;
  font-family: var(--imp-display);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--imp-ink);
}

html.theme-impact body.page-works .works-axis-lead {
  margin: 0;
  font-size: var(--imp-type-card-body);
  line-height: var(--imp-line-height-body);
  color: var(--imp-muted);
}

html.theme-impact body.page-works .works-axis-empty {
  margin: 0;
  padding: clamp(24px, 3vw, 32px);
  border: 2px dashed var(--imp-line);
  font-size: var(--imp-type-card-body);
  line-height: var(--imp-line-height-body);
  color: var(--imp-muted);
  text-align: center;
}

html.theme-impact body.page-works .works-grid {
  margin-bottom: 0;
}

html.theme-impact body.page-works .works-axis-list {
  margin-bottom: clamp(56px, 8vw, 96px);
}

html.theme-impact .cta-band.imp-bg-cross,
html.theme-impact .cta-band.imp-bg-dots {
  margin-top: 0;
}

html.theme-impact .page-body:has(.cta-band.imp-bg-cross),
html.theme-impact .page-body:has(.cta-band.imp-bg-dots) {
  padding-bottom: 0;
}

html.theme-impact .cta-band p {
  margin: 0 auto 24px;
  max-width: 36em;
  text-align: center;
  font-size: var(--imp-type-lead);
  line-height: var(--imp-line-height-body);
  color: var(--imp-ink);
}

html.theme-impact .cta-band .btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.theme-impact .process-steps {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

@media (prefers-reduced-motion: no-preference) {
  html.theme-impact .process-sequence .process-enter {
    opacity: 0;
    transform: translateY(clamp(16px, 2.5vw, 28px));
  }

  html.theme-impact .process-sequence.is-animated .process-enter {
    animation: imp-process-enter 0.65s var(--ease) both;
  }

  html.theme-impact .process-sequence.is-animated .process-enter:nth-child(1) {
    animation-delay: 0.05s;
  }

  html.theme-impact .process-sequence.is-animated .process-enter:nth-child(2) {
    animation-delay: 0.2s;
  }

  html.theme-impact .process-sequence.is-animated .process-enter:nth-child(3) {
    animation-delay: 0.35s;
  }

  html.theme-impact .process-sequence.is-animated .process-enter:nth-child(4) {
    animation-delay: 0.5s;
  }

  html.theme-impact .process-sequence.is-animated .process-enter:nth-child(5) {
    animation-delay: 0.65s;
  }
}

@keyframes imp-process-enter {
  from {
    opacity: 0;
    transform: translateY(clamp(16px, 2.5vw, 28px));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.theme-impact .process-sequence .process-enter {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  html.theme-impact .process-steps {
    width: 50%;
    max-width: 50%;
  }
}

html.theme-impact .process-step::before {
  grid-column: 1;
  grid-row: 1;
  position: static;
  top: auto;
  font-family: var(--imp-display);
  font-weight: 900;
  color: var(--imp-muted);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.06em;
  width: auto;
  padding-right: 0;
  text-align: right;
  box-sizing: border-box;
  align-self: end;
  font-variant-numeric: tabular-nums;
}

html.theme-impact .process-step:nth-child(4)::before {
  letter-spacing: 0.12em;
}

html.theme-impact .process-step {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  column-gap: 20px;
  row-gap: 8px;
  align-items: start;
  padding: var(--imp-card-padding) 0;
  padding-left: 0;
  border-bottom-color: var(--imp-line);
}

html.theme-impact .process-step h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  line-height: 1.325;
}

html.theme-impact .process-step p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

html.theme-impact .process-note {
  border: 2px solid var(--imp-ink);
  border-left-width: 8px;
  border-radius: 0;
  padding: var(--imp-card-padding-compact);
  background: var(--imp-bg);
  color: var(--imp-muted);
}

html.theme-impact .process-note + .section-block {
  margin-top: clamp(96px, 14vw, 144px);
}

html.theme-impact .work-case-gallery {
  display: grid;
  gap: clamp(10px, 1.5vw, 16px);
  margin: 0;
}

html.theme-impact .work-case-gallery--cols-1 {
  grid-template-columns: minmax(0, 1fr);
}

html.theme-impact .work-case-gallery--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.theme-impact .work-case-gallery--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 左カラム内は幅が狭いので、3列指定でも実効は最大2列 */
html.theme-impact .work-case-media .work-case-gallery--cols-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 767px) {
  html.theme-impact .work-case-gallery--cols-2,
  html.theme-impact .work-case-gallery--cols-3,
  html.theme-impact .work-case-media .work-case-gallery--cols-3 {
    grid-template-columns: 1fr;
  }
}

html.theme-impact .work-case-gallery-item {
  margin: 0;
  border: none;
  background: transparent;
}

html.theme-impact .work-case-gallery-item img,
html.theme-impact .work-case-gallery-item video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--imp-soft);
}

html.theme-impact .work-detail-hero .work-case-copyright {
  margin: 0;
  font-family: var(--imp-body);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--imp-muted);
}

html.theme-impact .work-case-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
  margin-top: clamp(40px, 6vw, 64px);
}

html.theme-impact .work-case-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: var(--imp-card-padding-compact);
  border: none;
  background: transparent;
  text-decoration: none;
  color: var(--imp-ink);
  transition: background 0.2s ease;
}

html.theme-impact .work-case-nav-link:is(:hover, :active) {
  background: var(--imp-band-lime);
}

html.theme-impact .work-case-nav-link--next {
  text-align: right;
  align-items: flex-end;
}

html.theme-impact .work-case-nav-label {
  font-family: var(--imp-display);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--imp-muted);
}

html.theme-impact .work-case-nav-title {
  font-family: var(--imp-body);
  font-size: var(--imp-type-card-body);
  font-weight: 700;
  line-height: var(--imp-line-height-body);
  color: var(--imp-ink);
  text-decoration: none;
  border-bottom: none;
  background-image: none;
}

html.theme-impact .work-case-nav-spacer {
  display: block;
}

html.theme-impact .work-case-nav-back {
  align-self: end;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--imp-card-padding-compact);
  margin-bottom: 0;
  border: none;
  background: transparent;
  text-decoration: none;
  color: var(--imp-ink);
  transition: background 0.2s ease;
}

html.theme-impact .work-case-nav-back:is(:hover, :active) {
  background: var(--imp-band-lime);
}

html.theme-impact .work-case-nav-grid-icon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 1.125rem;
  height: 1.125rem;
}

html.theme-impact .work-case-nav-grid-icon span {
  display: block;
  background: currentColor;
}

@media (max-width: 767px) {
  html.theme-impact .work-case-nav {
    grid-template-columns: 1fr;
  }

  html.theme-impact .work-case-nav-link--next {
    text-align: left;
    align-items: flex-start;
  }
}

html.theme-impact .company-row {
  display: grid;
  grid-template-columns: minmax(11em, 180px) 1fr;
  gap: 12px 20px;
  align-items: center;
  border-bottom: 2px solid var(--imp-line);
  padding: clamp(16px, 2.5vw, 22px) var(--imp-card-padding-compact);
}

/* 複数行の値がある行は、ラベルを上寄せのまま */
html.theme-impact .company-row:has(br) {
  align-items: start;
}

html.theme-impact .company-row:last-child {
  border-bottom: none;
}

html.theme-impact .company-row dt {
  font-family: var(--imp-display);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--imp-muted);
  margin: 0;
  padding: 0;
  border: none;
}

html.theme-impact .company-row:has(br) dt {
  padding-top: 0.15em;
}

html.theme-impact .company-row dd {
  font-family: var(--imp-body);
  font-size: var(--imp-type-card-body);
  font-weight: 400;
  line-height: var(--imp-line-height-body);
  color: var(--imp-muted);
  margin: 0;
  padding: 0;
}

html.theme-impact .faq-item h3,
html.theme-impact .faq-item summary {
  font-family: var(--imp-body);
  font-size: var(--imp-type-card-title);
  font-weight: 900;
  line-height: var(--imp-line-height-body);
  color: var(--imp-ink);
}

html.theme-impact .faq-item {
  padding: 0;
  overflow: hidden;
}

html.theme-impact .faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: var(--imp-card-padding-compact);
  margin: 0;
  transition: background 0.2s ease;
}

html.theme-impact .faq-item summary::-webkit-details-marker {
  display: none;
}

html.theme-impact .faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--imp-display);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  color: var(--imp-ink);
}

html.theme-impact .faq-item[open] summary::after {
  content: "−";
}

html.theme-impact .faq-item summary:hover {
  background: var(--imp-band-lime);
}

html.theme-impact .faq-answer {
  padding: 0 var(--imp-card-padding-compact) var(--imp-card-padding-compact);
}

html.theme-impact .form-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  color: var(--imp-muted);
  font-size: calc(0.85rem * var(--imp-p-scale));
  line-height: 1.6;
}

html.theme-impact .form-check-control {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
}

html.theme-impact .form-check-label {
  flex: 1;
  margin: 0;
  padding: 0;
}

html.theme-impact .form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 1.45em;
  height: 1.45em;
  min-width: 1.45em;
  margin: 0;
  flex-shrink: 0;
  border: 2px solid var(--imp-line);
  border-radius: 0;
  background: var(--imp-bg);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

html.theme-impact .form-check:hover input[type="checkbox"]:not(:checked),
html.theme-impact .form-check input[type="checkbox"]:not(:checked):hover {
  background: var(--imp-band-lime);
  border-color: var(--imp-ink);
}

html.theme-impact .form-check:hover input[type="checkbox"]:checked,
html.theme-impact .form-check input[type="checkbox"]:checked:hover {
  border-color: var(--imp-ink);
  box-shadow: inset 0 0 0 2px var(--imp-band-lime);
}

html.theme-impact .form-check input[type="checkbox"]:checked {
  background-color: var(--imp-ink);
  border-color: var(--imp-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' d='M2 6l3 3 5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.72em 0.72em;
}

html.theme-impact .form-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--imp-ink);
  outline-offset: 2px;
}

html.theme-impact .form-check a {
  color: var(--imp-ink);
  text-decoration: underline;
  text-decoration-thickness: var(--imp-link-underline);
  text-underline-offset: var(--imp-link-underline-offset);
  transition: background 0.2s ease, color 0.2s ease;
}

html.theme-impact .form-check a:is(:hover, :active) {
  background: var(--imp-band-lime);
  text-decoration: none;
}

html.theme-impact .contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--imp-contact-stack-gap);
  align-items: start;
}

html.theme-impact .contact-form {
  gap: clamp(24px, 3vw, 32px);
}

html.theme-impact .form-row {
  gap: clamp(20px, 2.5vw, 28px);
}

html.theme-impact .form-row.two-col {
  gap: clamp(16px, 2vw, 24px);
}

html.theme-impact .form-notice {
  margin: 0 0 clamp(24px, 3.5vw, 36px);
  padding: var(--imp-card-padding-compact);
  border: 1px solid var(--imp-line);
  font-family: var(--imp-body);
  font-size: var(--imp-type-card-body);
  font-weight: 400;
  line-height: var(--imp-line-height-body);
  color: var(--imp-muted);
  background: var(--imp-bg);
  border-radius: 0;
}

html.theme-impact body.page-contact .form-notice-title {
  margin: 0 0 12px;
  font-family: var(--imp-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--imp-ink);
}

html.theme-impact body.page-contact .form-notice-steps {
  margin: 0;
  padding-left: 1.4em;
  color: var(--imp-muted);
}

html.theme-impact body.page-contact .form-notice-steps li {
  padding-left: 0.25em;
}

html.theme-impact body.page-contact .form-notice-steps li + li {
  margin-top: 8px;
}

html.theme-impact body.page-contact .form-notice-steps strong {
  font-weight: 700;
  color: var(--imp-ink);
}

html.theme-impact body.page-contact .form-notice-note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--imp-line);
  font-size: 0.85em;
  color: var(--imp-muted);
}

html.theme-impact body.page-contact .contact-privacy-note {
  margin: 10px 0 0;
  font-family: var(--imp-body);
  font-size: 0.75em;
  font-weight: 400;
  line-height: 1.5;
  color: var(--imp-muted);
}

html.theme-impact body.page-contact .contact-privacy-note a {
  color: var(--imp-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: var(--imp-link-underline-offset);
  transition: background 0.2s ease, color 0.2s ease;
}

html.theme-impact body.page-contact .contact-privacy-note a:is(:hover, :active) {
  background: var(--imp-band-lime);
  text-decoration: none;
}

html.theme-impact body.page-contact .contact-email-card {
  padding: clamp(32px, 5vw, 48px) var(--imp-card-padding-compact);
  border: 3px solid var(--imp-line);
  background: var(--imp-bg);
}

html.theme-impact body.page-contact .contact-email-label {
  margin: 0 0 12px;
  font-family: var(--imp-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--imp-muted);
}

html.theme-impact body.page-contact .contact-email-link {
  display: inline-block;
  margin: 0 0 20px;
  font-family: var(--imp-body);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--imp-ink);
  text-decoration: underline;
  text-decoration-thickness: var(--imp-link-underline);
  text-underline-offset: var(--imp-link-underline-offset);
  transition: background 0.2s ease, color 0.2s ease;
}

html.theme-impact body.page-contact .contact-email-link:is(:hover, :active) {
  background: var(--imp-band-lime);
  color: rgb(26, 26, 26);
}

html.theme-impact body.page-contact .contact-email-note {
  margin: 0;
  font-family: var(--imp-body);
  font-size: var(--imp-type-card-body);
  font-weight: 400;
  line-height: var(--imp-line-height-body);
  color: var(--imp-muted);
}

html.theme-impact body.page-contact .contact-template {
  margin-top: 0;
}

html.theme-impact body.page-contact .contact-section-divider {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
  margin: clamp(40px, 6vw, 64px) 0;
  color: var(--imp-muted);
  font-family: var(--imp-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

html.theme-impact body.page-contact .contact-section-divider::before,
html.theme-impact body.page-contact .contact-section-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--imp-line);
}

html.theme-impact body.page-contact .contact-template-head {
  margin-bottom: clamp(20px, 3vw, 28px);
}

html.theme-impact body.page-contact .contact-template-eyebrow {
  margin: 0 0 10px;
  font-family: var(--imp-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--imp-muted);
}

html.theme-impact body.page-contact .contact-template-title {
  margin: 0 0 12px;
  font-family: var(--imp-display);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--imp-ink);
}

html.theme-impact body.page-contact .contact-template-lead {
  margin: 0;
  max-width: 38em;
  font-size: var(--imp-type-card-body);
  line-height: var(--imp-line-height-body);
  color: var(--imp-muted);
}

html.theme-impact body.page-contact .contact-template-lead a {
  color: var(--imp-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: var(--imp-link-underline-offset);
}

html.theme-impact body.page-contact .contact-template-lead a:is(:hover, :active) {
  background: var(--imp-band-lime);
  text-decoration: none;
}

html.theme-impact body.page-contact .contact-template-panel {
  padding: clamp(28px, 4vw, 40px) var(--imp-card-padding-compact);
  border: 2px solid var(--imp-line);
  background: var(--imp-bg);
}

html.theme-impact body.page-contact .contact-template-panel .form-notice {
  margin-top: 0;
}

html.theme-impact body.page-contact .contact-aside {
  --contact-aside-scale: 0.75;
  --contact-aside-size: calc(0.8rem * var(--imp-p-scale) * var(--contact-aside-scale));
  display: grid;
  gap: clamp(24px, 3.5vw, 32px);
}

html.theme-impact body.page-contact .contact-aside h2 {
  font-family: var(--imp-display);
  font-size: calc(1.05rem * var(--imp-p-scale));
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--imp-ink);
  margin: 0;
}

/* Contact aside — 補足情報（FAQ は控えめ） */
html.theme-impact body.page-contact .contact-aside ul {
  margin: 0;
  padding-left: 1.2em;
  font-family: var(--imp-body);
  font-size: var(--contact-aside-size);
  font-weight: 400;
  line-height: var(--imp-line-height-body);
  color: var(--imp-muted);
}

html.theme-impact body.page-contact .contact-aside-faq {
  display: grid;
  gap: clamp(12px, 2vw, 16px);
  margin-top: clamp(8px, 1.5vw, 12px);
  padding-top: clamp(28px, 4.5vw, 44px);
  border-top: 1px solid var(--imp-line);
}

html.theme-impact body.page-contact .contact-aside .faq-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: none;
}

html.theme-impact body.page-contact .contact-aside .faq-item {
  border: none;
  border-bottom: 1px solid var(--imp-line);
}

html.theme-impact body.page-contact .contact-aside .faq-item:last-child {
  border-bottom: none;
}

html.theme-impact body.page-contact .contact-aside .faq-item summary {
  font-family: var(--imp-body);
  font-size: var(--contact-aside-size);
  font-weight: 400;
  line-height: 1.55;
  padding: 10px 0;
  margin: 0;
}

html.theme-impact body.page-contact .contact-aside .faq-item summary::after {
  font-family: var(--imp-display);
  font-size: calc(0.85rem * var(--contact-aside-scale));
  font-weight: 500;
}

html.theme-impact body.page-contact .contact-aside .faq-item summary:hover {
  background: transparent;
  color: var(--imp-ink);
}

html.theme-impact body.page-contact .contact-aside .faq-answer {
  padding: 0 0 12px;
}

html.theme-impact body.page-contact .contact-aside .faq-item .faq-answer p {
  font-family: var(--imp-body);
  font-size: calc(0.76rem * var(--imp-p-scale) * var(--contact-aside-scale));
  font-weight: 400;
  line-height: 1.6;
  color: var(--imp-muted);
}

html.theme-impact body.page-contact .contact-aside > p,
html.theme-impact body.page-contact .contact-aside .contact-aside-note {
  margin: 0;
  font-family: var(--imp-body);
  font-size: var(--contact-aside-size);
  font-weight: 400;
  line-height: var(--imp-line-height-body);
  color: var(--imp-muted);
}

html.theme-impact body.page-contact .contact-aside .contact-aside-note a {
  text-decoration: underline;
}

@media (min-width: 768px) {
  html.theme-impact body.page-contact .contact-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.58fr);
    gap: clamp(48px, 7vw, 96px);
  }

  html.theme-impact .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

html.theme-impact .form-field label {
  font-family: var(--imp-display);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--imp-muted);
}

html.theme-impact .form-field input,
html.theme-impact .form-field select,
html.theme-impact .form-field textarea {
  border-radius: 0;
  border-color: var(--imp-line);
  font-size: 1rem;
  background: var(--imp-bg);
  color: var(--imp-ink);
}

html.theme-impact .btn-submit {
  border-radius: 0;
  font-family: var(--imp-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--imp-ink);
  color: #fff;
  border-color: var(--imp-ink);
}

/* Footer（黒背景・白字・くらげ動画） */
html.theme-impact .site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  min-height: clamp(360px, 52vw, 560px);
  background: rgb(26, 26, 26);
  color: #ffffff;
  padding: 0 0 40px;
  border-top: none;
}

html.theme-impact .imp-footer-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

html.theme-impact .imp-footer-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

html.theme-impact .imp-footer-mark {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  align-self: stretch;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  margin-left: calc(50% - 50vw);
  padding: clamp(24px, 4vw, 48px) 0;
  overflow: hidden;
  box-sizing: border-box;
  user-select: none;
  pointer-events: none;
}

html.theme-impact .imp-footer-mark-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: imp-footer-marquee 44.4s linear infinite;
}

html.theme-impact .imp-footer-mark-unit {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

html.theme-impact .imp-footer-mark-text {
  flex: 0 0 auto;
  font-family: var(--imp-display);
  font-size: clamp(4rem, 20vw, 25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.88;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

html.theme-impact .imp-footer-mark-gap {
  flex: 0 0 clamp(160px, 29vw, 410px);
  width: clamp(160px, 29vw, 410px);
}

@keyframes imp-footer-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.theme-impact .imp-footer-mark-track {
    animation: none;
    width: 100%;
    justify-content: center;
  }

  html.theme-impact .imp-footer-mark-unit:not(:first-child),
  html.theme-impact .imp-footer-mark-gap {
    display: none;
  }
}

html.theme-impact .footer-inner {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: var(--imp-content-width);
  max-width: var(--imp-content-width);
  margin-left: auto;
  margin-right: auto;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

html.theme-impact .footer-meta {
  font-size: calc(0.425rem * 1.2);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
}

html.theme-impact .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

html.theme-impact .footer-nav a {
  font-family: var(--imp-display);
  font-size: calc(0.85rem * 1.2);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffffff;
  opacity: 0.75;
}

html.theme-impact .footer-legal {
  font-size: calc(0.425rem * 1.2);
}

html.theme-impact .footer-legal a {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #ffffff;
  opacity: 0.75;
}

html.theme-impact .footer-nav a:hover,
html.theme-impact .footer-legal a:hover {
  color: #ffffff;
  opacity: 1;
}

@media (min-width: 768px) {
  html.theme-impact .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

html.theme-impact .back-link {
  display: inline-flex;
  align-items: center;
}

/* Arrow text links — unified (all pages) */
html.theme-impact a.imp-text-link,
html.theme-impact span.imp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative;
  box-sizing: border-box;
  text-decoration: none;
  border-bottom: none;
  color: var(--imp-ink);
  font-family: var(--imp-body);
  font-size: var(--imp-type-card-body);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  padding: 0.2em 0.35em;
  min-height: 0;
  transition: background 0.2s ease, color 0.2s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% var(--imp-link-underline);
  background-position: 0 calc(100% - var(--imp-link-underline-offset));
  background-repeat: no-repeat;
}

html.theme-impact a.imp-text-link:not(.back-link):not(:has(.imp-link-arrow--back)):is(:hover, :active),
html.theme-impact span.imp-text-link:is(:hover, :active),
html.theme-impact .work-card-link:is(:hover, :active) span.imp-text-link,
html.theme-impact a.imp-text-link:has(.imp-link-arrow--back):is(:hover, :active),
html.theme-impact a.back-link.imp-text-link:is(:hover, :active) {
  background-color: var(--imp-band-lime);
  background-image: none;
  color: rgb(26, 26, 26);
}

html.theme-impact .imp-link-arrow:not(.imp-link-arrow--back) {
  margin-left: 0.08em;
}

/* Arrow text links — flex hosts + right-aligned footer (all pages; ← back links excluded) */
html.theme-impact :is(
  .detail-card,
  .for-who-grid .for-who-card,
  .founder-profile-card,
  .v2-who-card,
  .v2-work-body,
  .v2-founders-unified,
  .work-card-body,
  .case-block,
  .faq-item
) {
  display: flex;
  flex-direction: column;
}

html.theme-impact :is(
  .detail-card,
  .for-who-grid .for-who-card,
  .founder-profile-card,
  .v2-who-card,
  .v2-work-body,
  .work-card-body,
  .v2-founders-unified
) > a.imp-text-link:not(.back-link):not(:has(.imp-link-arrow--back)),
html.theme-impact :is(
  .detail-card,
  .for-who-grid .for-who-card,
  .founder-profile-card,
  .v2-who-card,
  .v2-work-body,
  .work-card-body,
  .v2-founders-unified
) > span.imp-text-link,
html.theme-impact .work-card-link > .work-card-body > span.imp-text-link,
html.theme-impact .work-card-link > .work-card-body > .read-more {
  align-self: flex-end;
  justify-content: center;
  text-align: right;
  margin-top: clamp(16px, 2vw, 24px);
  padding: 0.55em 0.85em 0.35em;
  min-height: 44px;
  font-size: var(--imp-type-card-body);
}

@media (min-width: 768px) {
  html.theme-impact .detail-grid .detail-card,
  html.theme-impact .for-who-grid .for-who-card,
  html.theme-impact .v2-who-card {
    height: 100%;
  }

  html.theme-impact :is(
    .detail-card,
    .for-who-grid .for-who-card,
    .founder-profile-card,
    .v2-who-card,
    .work-card-body
  ) > p:last-of-type {
    margin-bottom: clamp(20px, 2.5vw, 28px);
  }

  html.theme-impact :is(
    .detail-card,
    .for-who-grid .for-who-card,
    .founder-profile-card,
    .v2-who-card,
    .work-card-body
  ) > a.imp-text-link:not(.back-link):not(:has(.imp-link-arrow--back)),
  html.theme-impact :is(
    .detail-card,
    .for-who-grid .for-who-card,
    .v2-who-card,
    .work-card-body
  ) > span.imp-text-link {
    margin-top: auto;
  }

  html.theme-impact :is(
    .detail-card,
    .for-who-grid .for-who-card,
    .v2-who-card,
    .v2-cap-card
  ) h3 {
    margin-bottom: 0.85em;
  }
}

html.theme-impact .imp-link-arrow {
  display: inline-block;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html.theme-impact .imp-link-arrow--back {
  margin-left: 0;
  margin-right: 0.12em;
}

html.theme-impact a.imp-text-link:hover .imp-link-arrow:not(.imp-link-arrow--back),
html.theme-impact a.imp-text-link:active .imp-link-arrow:not(.imp-link-arrow--back),
html.theme-impact .work-card-link:hover .imp-link-arrow:not(.imp-link-arrow--back),
html.theme-impact .work-card-link:active .imp-link-arrow:not(.imp-link-arrow--back) {
  transform: translateX(6px);
}

html.theme-impact a.imp-text-link:hover .imp-link-arrow--back,
html.theme-impact a.imp-text-link:active .imp-link-arrow--back,
html.theme-impact .work-card-link:hover .imp-link-arrow--back,
html.theme-impact .work-card-link:active .imp-link-arrow--back {
  transform: translateX(-6px);
}

/* Text links without arrow — lime background on hover */
/* No-arrow prose links */
html.theme-impact .page-lead a:not(.imp-text-link),
html.theme-impact .section-desc a:not(.imp-text-link),
html.theme-impact .v2-public-compact-note a,
html.theme-impact .process-step a:not(.imp-text-link),
html.theme-impact .process-note a:not(.imp-text-link),
html.theme-impact .detail-card a:not(.imp-text-link),
html.theme-impact .for-who-card a:not(.imp-text-link),
html.theme-impact .faq-item a:not(.imp-text-link),
html.theme-impact .case-block a:not(.imp-text-link),
html.theme-impact .form-notice a:not(.imp-text-link),
html.theme-impact .cta-band a:not(.imp-text-link):not(.btn-contact),
html.theme-impact .founder-profile-card a:not(.imp-text-link),
html.theme-impact .v2-book-list a {
  color: var(--imp-ink);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: var(--imp-link-underline);
  text-underline-offset: var(--imp-link-underline-offset);
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

html.theme-impact .page-lead a:not(.imp-text-link):is(:hover, :active),
html.theme-impact .section-desc a:not(.imp-text-link):is(:hover, :active),
html.theme-impact .v2-public-compact-note a:is(:hover, :active),
html.theme-impact .process-step a:not(.imp-text-link):is(:hover, :active),
html.theme-impact .process-note a:not(.imp-text-link):is(:hover, :active),
html.theme-impact .detail-card a:not(.imp-text-link):is(:hover, :active),
html.theme-impact .for-who-card a:not(.imp-text-link):is(:hover, :active),
html.theme-impact .faq-item a:not(.imp-text-link):is(:hover, :active),
html.theme-impact .case-block a:not(.imp-text-link):is(:hover, :active),
html.theme-impact .form-notice a:not(.imp-text-link):is(:hover, :active),
html.theme-impact .cta-band a:not(.imp-text-link):not(.btn-contact):is(:hover, :active),
html.theme-impact .founder-profile-card a:not(.imp-text-link):is(:hover, :active),
html.theme-impact .v2-book-list a:is(:hover, :active) {
  background-color: var(--imp-band-lime);
  color: rgb(26, 26, 26);
}

html.theme-impact .case-block h2 {
  font-family: var(--imp-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--imp-ink);
}

html.theme-impact body.page-work-detail .work-case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 56px);
}

html.theme-impact body.page-work-detail .work-case-media {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
  min-width: 0;
}

html.theme-impact body.page-work-detail .work-detail-hero {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

/* ギャラリー付きは左が長くなるため sticky を外す */
html.theme-impact body.page-work-detail .work-case-media--with-gallery .work-detail-hero {
  position: static;
}

html.theme-impact body.page-work-detail .work-case-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  min-height: 0;
  /* 概要・課題・対応内容・成果で本文を共通化 */
  --work-case-body-size: calc(var(--imp-type-card-body) * 0.88);
  --work-case-body-line: calc(var(--imp-line-height-body) * 0.9);
  --work-case-body-color: var(--imp-ink);
  --work-case-section-gap: clamp(36px, 5vw, 56px);
}

html.theme-impact body.page-work-detail .work-case-meta + .case-block {
  margin-top: var(--work-case-section-gap);
}

html.theme-impact body.page-work-detail .work-case-info .case-block + .case-block {
  margin-top: var(--work-case-section-gap);
}

/* WORKS 詳細 — 見出し先頭に記号 */
html.theme-impact body.page-work-detail .work-case-info .case-block h2 {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.3;
}

html.theme-impact body.page-work-detail .work-case-info .case-block h2::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55em;
  height: 0.55em;
  background: currentColor;
}

html.theme-impact body.page-work-detail .work-case-info .case-block p,
html.theme-impact body.page-work-detail .work-case-info .case-block ul,
html.theme-impact body.page-work-detail .work-case-info .case-block li {
  font-family: var(--imp-body);
  font-size: var(--work-case-body-size);
  font-weight: 400;
  line-height: var(--work-case-body-line);
  color: var(--work-case-body-color);
}

/* 課題以下は行ボーダーなし。余白だけで読む */
html.theme-impact body.page-work-detail .work-case-info .case-block p {
  margin: 0;
  padding: 0;
  border: none;
}

html.theme-impact body.page-work-detail .work-case-info .case-block p + p {
  margin-top: 0.75em;
}

html.theme-impact body.page-work-detail .work-detail-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  background: var(--imp-line);
}

html.theme-impact .work-case-meta {
  width: 100%;
  margin: 0;
  border: none;
  background: transparent;
  text-align: left;
}

html.theme-impact body.page-work-detail .work-case-meta-row {
  display: grid;
  grid-template-columns: minmax(6em, auto) 1fr;
  gap: 4px 12px;
  align-items: baseline;
  padding: clamp(6px, 1vw, 9px) 0;
  border-bottom: 1px solid var(--imp-line);
  line-height: calc(var(--imp-line-height-body) * 0.8);
}

html.theme-impact body.page-work-detail .work-case-meta-row:first-child {
  border-top: 1px solid var(--imp-line);
}

html.theme-impact .work-case-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px 12px;
  padding: clamp(8px, 1.2vw, 11px) 0;
  border: none;
}

html.theme-impact .work-case-meta-row dt {
  margin: 0;
  padding: 0;
  border: none;
  font-family: var(--imp-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--imp-muted);
  line-height: inherit;
}

html.theme-impact body.page-work-detail .work-case-meta-row dd,
html.theme-impact body.page-work-detail .work-case-meta-row dd p {
  margin: 0;
  padding: 0;
  font-family: var(--imp-body);
  font-size: var(--work-case-body-size);
  font-weight: 400;
  line-height: var(--work-case-body-line);
  color: var(--work-case-body-color);
}

html.theme-impact body.page-work-detail .work-case-meta-row dd p + p {
  margin-top: 0.5em;
}

html.theme-impact body.page-work-detail .work-case-info .case-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55em;
}

html.theme-impact body.page-work-detail .work-case-info .case-block ul li {
  position: relative;
  padding: 0 0 0 1em;
  border: none;
}

html.theme-impact body.page-work-detail .work-case-info .case-block ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--imp-muted);
}

html.theme-impact .work-case-meta-row dd .tag-list {
  justify-content: flex-start;
  margin-top: 0;
}

html.theme-impact body.page-work-detail .work-case-meta-row dd p {
  margin: 0;
}

html.theme-impact body.page-work-detail .work-case-meta-row dd p + p {
  margin-top: 0.5em;
}

@media (max-width: 767px) {
  html.theme-impact body.page-work-detail .work-case-intro {
    grid-template-columns: 1fr;
  }

  html.theme-impact body.page-work-detail .work-detail-hero {
    position: static;
  }
}

html.theme-impact .founder-profile-card .role {
  margin: 0 0 12px;
  font-family: var(--imp-display);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--imp-muted);
}

html.theme-impact .founder-profile-meta {
  margin: 0;
  line-height: 1.75;
  color: var(--imp-ink);
  font-weight: 700;
}

html.theme-impact .founder-profile-highlights {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  margin: clamp(22px, 3.5vw, 28px) 0 0;
  padding: 0;
}

html.theme-impact .founder-profile-highlights div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  column-gap: 10px;
  align-items: baseline;
}

html.theme-impact .founder-profile-highlights div:last-child {
  margin-top: auto;
}

html.theme-impact .founder-profile-highlights dt {
  margin: 0;
  font-family: var(--imp-body);
  font-size: calc(0.625rem * var(--imp-p-scale));
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--imp-muted);
  white-space: nowrap;
}

html.theme-impact .founder-profile-highlights dd {
  margin: 0;
  font-size: calc(0.625rem * var(--imp-p-scale));
  line-height: 1.55;
  color: var(--imp-muted);
  min-width: 0;
}

html.theme-impact .founder-profile-highlights dd a {
  color: inherit;
}

html.theme-impact .founder-profile-body p:last-child {
  margin-bottom: 0;
}

html.theme-impact .founder-team-note {
  margin-top: clamp(24px, 4vw, 32px);
  margin-bottom: 0;
}

html.theme-impact .sub-links a {
  font-size: calc(0.85rem * var(--imp-p-scale));
  color: var(--imp-ink);
  background: var(--imp-soft);
  border: 2px solid var(--imp-line);
  border-radius: 0;
}

html.theme-impact .sns-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--imp-display);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--imp-ink);
  border: 2px solid var(--imp-ink);
  border-radius: 0;
  color: #fff;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.5s cubic-bezier(0.22, 1.28, 0.36, 1);
}

html.theme-impact .btn-submit-secondary:hover {
  background: var(--imp-band-lime);
  border-color: var(--imp-ink);
  color: rgb(26, 26, 26);
}

html.theme-impact .form-success {
  color: var(--imp-ink);
  background: var(--imp-bg);
  border: 1px solid var(--imp-line);
  border-radius: 0;
}

html.theme-impact .contact-output {
  border-top: 2px solid var(--imp-line);
}

html.theme-impact .contact-output-lead {
  color: var(--imp-muted);
}

html.theme-impact .contact-output-label {
  font-family: var(--imp-display);
  color: var(--imp-muted);
}

html.theme-impact .contact-output-value {
  background: var(--imp-bg);
  border: 1px solid var(--imp-line);
  border-radius: 0;
  color: var(--imp-ink);
}

html.theme-impact .contact-output-body {
  background: var(--imp-bg);
  border-color: var(--imp-line);
  border-radius: 0;
  color: var(--imp-ink);
}

html.theme-impact .contact-copy-btn {
  font-family: var(--imp-display);
  border: 2px solid var(--imp-line);
  border-radius: 0;
  background: var(--imp-bg);
  color: var(--imp-ink);
}

html.theme-impact .contact-copy-btn:hover {
  background: var(--imp-band-lime);
}

html.theme-impact .btn-submit-secondary {
  background: var(--imp-bg);
  color: var(--imp-ink);
  border: 2px solid var(--imp-line);
}

html.theme-impact .btn-submit-secondary:hover {
  background: var(--imp-band-lime);
}

html.theme-impact .contact-copy-toast {
  position: fixed;
  bottom: clamp(24px, 4vw, 40px);
  left: 50%;
  z-index: 200;
  padding: 14px 28px;
  background: var(--imp-ink);
  color: #fff;
  font-family: var(--imp-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  border: 2px solid var(--imp-ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translate(-50%, calc(100% + 20px));
  pointer-events: none;
  transition:
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease);
}

html.theme-impact .contact-copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  html.theme-impact .contact-copy-toast {
    transition: opacity 0.2s ease;
    transform: translate(-50%, 0);
  }

  html.theme-impact .contact-copy-toast:not(.is-visible) {
    opacity: 0;
  }
}

@media (min-width: 900px) {
  html.theme-impact .detail-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }

  html.theme-impact .detail-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  html.theme-impact .for-who-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 1100px) {
  html.theme-impact .for-who-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

html.theme-impact .tag-list span {
  border-radius: 0;
  font-family: var(--imp-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--imp-line);
  color: var(--imp-muted);
}

/* Scroll to top — Impact accent */
html.theme-impact .scroll-to-top {
  border: 2px solid var(--imp-line);
  border-radius: 50%;
  background: var(--imp-bg);
  color: var(--imp-ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
}

html.theme-impact .scroll-to-top:hover {
  background: var(--imp-band-lime);
  border-color: var(--imp-ink);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

html.theme-impact .scroll-to-top:focus-visible {
  outline: 2px solid var(--imp-ink);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  html.theme-impact {
    --imp-content-width: 85%;
    --imp-gutter-x: clamp(12px, 3vw, 48px);
    --imp-line-height-body: 1.65;
    --imp-line-height-list: 1.5;
    --imp-card-padding: clamp(18px, 4vw, 24px);
    --imp-card-padding-x: clamp(18px, 4vw, 24px);
    --imp-card-padding-top: clamp(18px, 4vw, 24px);
    --imp-card-padding-bottom: clamp(10px, 2.5vw, 14px);
    --imp-card-padding-link: var(--imp-card-padding-top) var(--imp-card-padding-x) var(--imp-card-padding-bottom);
    --imp-card-padding-compact: clamp(16px, 3.5vw, 20px);
    --imp-block-gap: clamp(28px, 5vw, 44px);
    /* Card type scale — title stays prominent, body steps down for hierarchy */
    --imp-type-card-title: calc(1rem * var(--imp-p-scale));
    --imp-type-card-body: calc(0.74rem * var(--imp-p-scale));
  }

  /* 和文見出しが折り返しても重ならないよう行間を確保 */
  html.theme-impact .section-block h2,
  html.theme-impact .page-hero h1 {
    line-height: 1.2;
  }

  html.theme-impact :is(
    .detail-card,
    .for-who-card,
    .founder-profile-card
  ) h3,
  html.theme-impact .process-step h3 {
    line-height: 1.5;
  }

  /* 会社情報など — 2列だと狭く潰れるので縦積みに */
  html.theme-impact .company-row {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
    padding: clamp(14px, 3.5vw, 18px) clamp(14px, 3.5vw, 18px);
  }

  html.theme-impact .company-row dt {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    line-height: 1.35;
  }

  html.theme-impact .company-row dd {
    font-size: calc(0.88rem * var(--imp-p-scale));
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  html.theme-impact .sns-links {
    margin-top: 4px;
    gap: 8px;
  }

  html.theme-impact .sns-links a {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  html.theme-impact .footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
  }

  html.theme-impact .footer-nav a {
    font-size: clamp(0.62rem, 2.6vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.35;
    opacity: 0.85;
  }

  html.theme-impact .footer-legal {
    font-size: calc(0.4rem * 1.2);
    line-height: 1.5;
  }

  html.theme-impact .process-steps {
    margin-top: clamp(32px, 6vw, 48px);
    margin-bottom: clamp(32px, 6vw, 48px);
  }

  html.theme-impact .process-step {
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    row-gap: 8px;
    column-gap: 16px;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }

  html.theme-impact .process-step::before {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    text-align: right;
    margin-bottom: 0;
    align-self: end;
  }

  html.theme-impact .process-step h3 {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    text-align: left;
    align-self: end;
    margin: 0;
  }

  html.theme-impact .process-step p {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    text-align: left;
  }
}
