/* ==========================================================================
   InnoBaseLab — サイト共通スタイル
   配色は解析結果の図で使われるカラーマップ（viridis）から取っています。
   色・フォント・余白は :root の変数で一元管理しています。
   ========================================================================== */

:root {
  /* 地の色 */
  --ink: #15112e;          /* 濃い面（ヘッダー・ヒーロー・フッター） */
  --ink-2: #211b47;        /* 濃い面の2段目 */
  --paper: #f2f3f5;        /* 明るい面 */
  --white: #fff;
  --mist: #dfe2e8;         /* 図版の台紙・区切り */
  --line: #cfd3db;
  --line-dark: rgba(255, 255, 255, .18);

  /* 文字 */
  --text: #1c1a2b;
  --sub: #5d6072;
  --text-inv: #f4f4f8;
  --sub-inv: #b9b7cf;

  /* viridis（流量・強さを表す色。ヒーローの反応経路図と同じ並び） */
  --v0: #440154;
  --v1: #414487;
  --v2: #2a788e;
  --v3: #22a884;
  --v4: #7ad151;
  --v5: #fde725;
  --scale: linear-gradient(90deg, var(--v1), var(--v2), var(--v3), var(--v4), var(--v5));

  --link: #1f6f84;
  --focus: #22a884;

  --display: "Zen Old Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 68px;
  --space: clamp(72px, 10vw, 136px);   /* セクションの上下余白 */
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* カーソルの輪（--v3 を薄くしたもの） */
  --cur-ring: rgba(34, 168, 132, .55);
  --cur-fill: rgba(34, 168, 132, .1);
}

/* ページ遷移をなめらかにつなぐ（対応ブラウザーのみ） */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.9;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  line-break: strict;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 500; line-height: 1.4; margin: 0;
  text-wrap: balance; word-break: auto-phrase;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--v5); color: var(--ink); padding: 8px 14px; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text-inv); border-bottom: 1px solid var(--line-dark);
  view-transition-name: site-header;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 18px; width: auto; filter: brightness(1.5); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: inherit; width: 44px; height: 44px; border-radius: 2px; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; content: ""; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; list-style: none; gap: 2px; }
.site-nav ul a {
  display: block; padding: 8px 11px; text-decoration: none; position: relative;
  font-size: 14.5px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; color: var(--sub-inv);
  transition: color .2s;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px;
  background: var(--v5); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav ul a:hover { color: var(--text-inv); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { color: var(--text-inv); }

.lang-switch { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 2px; overflow: hidden; font-size: 12px; flex: none; letter-spacing: .08em; }
.lang-switch a, .lang-switch span { padding: 4px 11px; text-decoration: none; }
.lang-switch span { background: var(--text-inv); color: var(--ink); font-weight: 700; }
.lang-switch a { color: var(--sub-inv); }
.lang-switch a:hover { color: var(--text-inv); background: rgba(255, 255, 255, .08); }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); flex-direction: column; align-items: stretch;
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line-dark); gap: 18px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line-dark); color: var(--text-inv); }
  .site-nav ul a::after { left: 0; right: auto; width: 28px; bottom: -1px; }
  .lang-switch { align-self: flex-start; }
}

/* ---------- セクション共通 ---------- */
.section { padding: var(--space) 0; }
.section--paper { background: var(--paper); color: var(--text); }
.section--black { background: var(--ink); color: var(--text-inv); }
.section--charcoal { background: var(--ink-2); color: var(--text-inv); }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }

.section-head { margin-bottom: clamp(32px, 5vw, 60px); max-width: 880px; }
.section-head h1, .section-head h2 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: .02em; line-height: 1.3; }
.section-head p { font-size: clamp(16px, 1.6vw, 19px); margin: 18px 0 0; line-height: 1.9; color: var(--sub); }
.section--black .section-head p, .section--charcoal .section-head p { color: var(--sub-inv); }
.section-head--center { text-align: left; }
.eyebrow { font-size: 15px; letter-spacing: .04em; margin: 6px 0 0; }

.figure-panel { background: var(--mist); padding: clamp(10px, 2.4vw, 28px); margin: 0; }
.figure-panel img { width: 100%; }

.btn {
  display: inline-block; padding: 14px 30px; text-decoration: none; border-radius: 2px;
  border: 1px solid currentColor; font: inherit; font-size: 15.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.4;
  background: transparent; color: inherit; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary, .cta .btn, .section--black .rb-more .btn { background: var(--v5); color: var(--ink); border-color: var(--v5); }
.btn--primary:hover, .cta .btn:hover { background: var(--white); border-color: var(--white); }
.section--black .btn:not(.btn--primary):hover, .section--charcoal .btn:hover { background: var(--text-inv); color: var(--ink); border-color: var(--text-inv); }
.section--paper .btn { background: var(--ink); color: var(--text-inv); border-color: var(--ink); }
.section--paper .btn:hover { background: var(--v1); border-color: var(--v1); }
.more-link { font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color .2s; }
.more-link:hover { text-decoration-color: currentColor; }
.section--paper .more-link { color: var(--link); }
.section-foot { margin: 36px 0 0; }

/* ---------- スクロールで現れた部分の強調 ----------
   site.js が、まだ見えていない要素に .rv と .rv-wait を付け、画面に入ると .rv-wait を外す。
   見出しの上の短い色帯は、現れるときに左から伸びる。 */
.section-head::before {
  content: ""; display: block; width: 56px; height: 3px; background: var(--scale);
  margin-bottom: clamp(18px, 2.4vw, 26px); transform-origin: left;
}
.rv { transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.rv.rv-wait { opacity: 0; transform: translateY(18px); }
.section-head.rv::before { transition: transform .9s var(--ease) .2s; }
.section-head.rv-wait::before { transform: scaleX(0); }
.rv .rb-feature img, .rv.rb-feature img, .rv .case__img img { transition: transform 1.2s var(--ease) var(--d, 0s); }
.rv-wait.rb-feature img, .rv-wait .case__img img { transform: scale(1.04); }
@media print { .rv.rv-wait { opacity: 1; transform: none; } }

/* ---------- トップ：ヒーロー（反応経路図） ---------- */
.hero { background: var(--ink); color: var(--text-inv); overflow: hidden; position: relative; }
.hero .container {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 60px);
  align-items: center; min-height: min(calc(100vh - var(--header-h)), 820px); padding-top: 48px; padding-bottom: 48px;
}
.hero h1 { font-size: clamp(40px, 6.6vw, 88px); line-height: 1.22; letter-spacing: .02em; font-weight: 500; }
.hero__what { font-size: clamp(16px, 1.7vw, 20px); margin: 28px 0 0; color: var(--text-inv); font-weight: 500; letter-spacing: .04em; }
.hero__lead { font-size: 16px; color: var(--sub-inv); margin: 14px 0 0; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__figure { margin: 0; position: relative; }
.hero__figure svg { width: 100%; height: auto; overflow: visible; }
.hero__figure figcaption { font-size: 12.5px; color: var(--sub-inv); margin-top: 6px; text-align: right; }

.rxn-edge { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .92; }
.rxn-node rect { fill: var(--ink); stroke: rgba(255, 255, 255, .42); stroke-width: 1; }
.rxn-node text { fill: var(--text-inv); font-family: var(--body); font-size: 13px; font-weight: 500; text-anchor: middle; dominant-baseline: central; }
.rxn-node--end rect { fill: var(--v5); stroke: var(--v5); }
.rxn-node--end text { fill: var(--ink); font-weight: 700; }
.rxn-dot { fill: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .rxn-edge { animation: rxn-draw .8s var(--ease) backwards; animation-delay: calc(var(--i) * .2s + .35s); }
  .rxn-node { animation: rxn-pop .5s var(--ease) backwards; animation-delay: calc(var(--i) * .2s + .15s); }
  .hero h1, .hero__what, .hero__lead, .hero__actions { animation: hero-in .9s var(--ease) backwards; }
  .hero__what { animation-delay: .15s; }
  .hero__lead { animation-delay: .25s; }
  .hero__actions { animation-delay: .35s; }
}
@keyframes rxn-draw { from { stroke-dashoffset: 1; } }
@keyframes rxn-pop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 56px; padding-bottom: 32px; }
  .hero__figure { max-width: 460px; margin: 12px auto 0; }
}

/* ---------- 下層ページの見出し帯 ---------- */
.page-hero { background: var(--ink); color: var(--text-inv); padding: clamp(56px, 9vw, 120px) 0 clamp(44px, 6vw, 80px); position: relative; }
.page-hero h1 { font-size: clamp(34px, 5.6vw, 72px); letter-spacing: .02em; line-height: 1.25; }
.page-hero h1::after { content: ""; display: block; width: 120px; height: 4px; background: var(--scale); margin-top: 28px; }
.page-hero p { margin: 22px 0 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--sub-inv); max-width: 40em; }
.page-hero p a { color: var(--text-inv); }
.page-hero p.page-hero__link { margin-top: 14px; font-size: 15px; }
.page-hero--image { background-size: cover; background-position: center; padding: clamp(110px, 16vw, 200px) 0 clamp(60px, 8vw, 110px); }
.page-hero--about { background-image: linear-gradient(rgba(21, 17, 46, .55), rgba(21, 17, 46, .92)), url("/assets/img/about-hero.webp"); }

/* ---------- TOPICS ---------- */
.topics { list-style: none; border-top: 1px solid var(--text); }
.topics li { display: grid; grid-template-columns: 120px 96px minmax(0, 1fr) auto; gap: 8px 28px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.topics time { font-size: 15px; color: var(--sub); font-variant-numeric: tabular-nums; }
.topics__kind { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; padding: 2px 0; text-align: center; border: 1px solid var(--text); border-radius: 2px; align-self: center; }
.topics h3 { font-family: var(--body); font-size: 17.5px; font-weight: 700; line-height: 1.6; }
.topics p { margin: 4px 0 0; font-size: 15px; color: var(--sub); }
@media (max-width: 760px) {
  .topics li { grid-template-columns: auto 1fr; gap: 8px 14px; }
  .topics__body, .topics .more-link { grid-column: 1 / -1; }
  .topics__kind { padding: 1px 12px; justify-self: start; }
}

/* ---------- サービス一覧 ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); list-style: none; }
.services > li { border-top: 1px solid var(--text); padding: 26px 0 34px; }
.services > li:nth-child(1) { grid-row: span 2; }
.services > li:nth-child(2) { grid-column: 1; grid-row: 3 / span 2; }
.services > li:nth-child(n+3) { grid-column: 2; }
.services > li:nth-child(3) { grid-row: 1; }
.services > li:nth-child(4) { grid-row: 2; }
.services > li:nth-child(5) { grid-row: 3; }
.services h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 14px; }
.services ul { list-style: none; color: var(--sub); font-size: 15.5px; line-height: 1.7; }
.services ul li { padding: 5px 0 5px 22px; position: relative; }
.services ul li::before { content: ""; position: absolute; left: 0; top: 1em; width: 10px; height: 2px; background: var(--v2); }
@media (max-width: 760px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .services > li, .services > li:nth-child(n) { grid-column: 1; grid-row: auto; }
}

/* ---------- 専門性（円環） ---------- */
.expertise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 500px) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.expertise__side { display: grid; gap: 40px; }
.expertise__side > p { font-family: var(--display); font-size: clamp(18px, 1.9vw, 23px); line-height: 1.6; margin: 0; }
.expertise__side:last-child { text-align: right; }
.fields h3 { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--v4); margin-bottom: 8px; }
.fields ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.expertise__side:last-child .fields ul { justify-content: flex-end; }
.fields li { font-size: 13.5px; padding: 2px 12px; border: 1px solid var(--line-dark); border-radius: 99px; color: var(--sub-inv); }
.fields li:last-child { border: 0; padding: 2px 2px; }

.orbit { position: relative; aspect-ratio: 1; width: 100%; list-style: none; }
.orbit::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px solid var(--line-dark); }
.orbit__core {
  position: absolute; inset: 31%; border-radius: 50%; background: var(--text-inv); color: var(--ink);
  display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: clamp(14px, 1.5vw, 18px); line-height: 1.5; padding: 8px;
}
.orbit li:not(.orbit__core) {
  --a: calc(36deg * var(--i) - 90deg);
  position: absolute; left: calc(50% + cos(var(--a)) * 38%); top: calc(50% + sin(var(--a)) * 38%);
  transform: translate(-50%, -50%);
  width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); border: 1px solid rgba(255, 255, 255, .5);
  display: grid; place-items: center; text-align: center; font-size: clamp(11px, 1.15vw, 14px); line-height: 1.3; font-weight: 500; padding: 4px;
  transition: background .3s, color .3s, border-color .3s;
}
.orbit li:not(.orbit__core):hover { background: var(--v5); color: var(--ink); border-color: var(--v5); }
@media (max-width: 960px) {
  .expertise { grid-template-columns: minmax(0, 1fr); }
  .expertise__orbit { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
  .expertise__side:last-child { text-align: left; }
  .expertise__side:last-child .fields ul { justify-content: flex-start; }
}

/* ---------- Reaction Bench ---------- */
.rb-home { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.rb-home__text { position: sticky; top: calc(var(--header-h) + 32px); }
.rb-home__shots { display: grid; gap: 28px; }
@media (max-width: 860px) { .rb-home { grid-template-columns: minmax(0, 1fr); } .rb-home__text { position: static; } }

.rb-head { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 36px; }
.rb-home .rb-head { display: block; margin-bottom: 24px; }
.rb-logo { width: min(100%, 440px); filter: brightness(0) invert(1); }
.rb-home .rb-logo { width: min(100%, 360px); }
.rb-head p { font-size: clamp(16px, 1.8vw, 20px); margin: 0; color: var(--sub-inv); }
.rb-home .rb-head p { margin-top: 16px; }
.rb-lead { font-family: var(--display); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.6; text-wrap: balance; word-break: auto-phrase; }
.rb-more { margin: 32px 0 0; }
.rb-feature { margin: 34px 0 0; }
.rb-home .rb-feature { margin: 0; }
.rb-feature figcaption { font-size: 15.5px; margin-bottom: 12px; padding-left: 14px; border-left: 3px solid var(--v4); line-height: 1.5; }
.rb-feature img, .rb-feature video { width: 100%; height: auto; display: block; background: var(--white); border-radius: 4px; }

/* 可視化機能のパネル（製品ページ）。画面に入ると1枚ずつ現れ、図が左から描かれ、下の viridis の線が伸びる */
.rb-viz { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "path contour pca" "path surface crank" "heat surface crank"; gap: 16px; }
.rb-viz__item--path { grid-area: path; }
.rb-viz__item--contour { grid-area: contour; }
.rb-viz__item--surface { grid-area: surface; }
.rb-viz__item--heat { grid-area: heat; }
.rb-viz__item--crank { grid-area: crank; }
.rb-viz__item--pca { grid-area: pca; }
.rb-viz__item { position: relative; margin: 0; display: flex; flex-direction: column; background: var(--white); border-radius: 6px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.rb-viz__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--scale); transform-origin: left; transition: transform 1.1s var(--ease) calc(var(--d, 0s) + .5s); }
.rb-viz__img { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 16px 0; overflow: hidden; clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease) calc(var(--d, 0s) + .2s); }
.rb-feature .rb-viz__img img { width: 100%; height: 100%; max-height: 640px; object-fit: contain; border-radius: 0; transition: transform .8s var(--ease); }
.rb-feature .rb-viz__item figcaption { margin: 0; padding: 10px 16px 14px; border: 0; font-size: 13.5px; color: var(--sub); }
.rb-viz__item.rv { transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.rb-viz__item.rv-wait .rb-viz__img { clip-path: inset(0 100% 0 0); }
.rb-viz__item.rv-wait::after { transform: scaleX(0); }
@media (hover: hover) {
  .rb-viz__item:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
  .rb-feature .rb-viz__item:hover img { transform: scale(1.04); }
  .rb-feature .rb-viz__item:hover figcaption { color: var(--text); }
}
/* トップでは右の欄が狭いので2列（反応経路図の横にコンターと3D、下に熱収支とクランク角度） */
@media (min-width: 861px) {
  .rb-home .rb-viz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "path contour" "path surface" "heat heat" "crank pca"; gap: 12px; }
  .rb-home .rb-viz__img { padding: 12px 12px 0; }
  .rb-home .rb-feature .rb-viz__item figcaption { padding: 8px 12px 12px; font-size: 13px; }
}
@media (max-width: 860px) {
  .rb-viz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "path contour" "path surface" "heat heat" "crank pca"; gap: 10px; }
  .rb-viz__img { padding: 10px 10px 0; }
  .rb-feature .rb-viz__item figcaption { padding: 6px 10px 10px; font-size: 12.5px; }
}

.subhead { font-size: 22px; margin: 52px 0 16px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.section--paper .subhead { border-top-color: var(--line); }
.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 22px; margin: .4em 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .95em; width: 10px; height: 2px; background: var(--v4); }
.check-list ul { list-style: none; margin: .2em 0 .4em; color: var(--sub-inv); }
.check-list ul li::before { width: 6px; background: var(--sub-inv); }

.license-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--text-inv); }
.license { padding: 28px 28px 8px 0; border-right: 1px solid var(--line-dark); }
.license + .license { padding-left: 28px; }
.license:last-child { border-right: 0; }
.license h3 { font-size: 21px; margin-bottom: 2px; }
.license .license__sub { font-size: 14px; color: var(--sub-inv); margin-bottom: 14px; }
.license .check-list { font-size: 15.5px; }
@media (max-width: 860px) {
  .license-grid { grid-template-columns: minmax(0, 1fr); }
  .license, .license + .license { padding: 24px 0 8px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
}

.course { background: var(--white); color: var(--text); padding: clamp(22px, 4vw, 48px); margin-top: 28px; border-radius: 4px; }
.course__badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 2px 12px; background: var(--v5); color: var(--ink); margin-bottom: 14px; border-radius: 2px; }
.course__badge--soon { background: var(--mist); }
.course h3 { font-size: clamp(20px, 2.4vw, 27px); }
.course__lead { margin: 12px 0 0; color: var(--sub); }
.course__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; margin-top: 30px; align-items: start; }
.course__grid--single { grid-template-columns: minmax(0, 1fr); }
.course h4 { font-family: var(--body); font-size: 15px; font-weight: 700; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--text); }
.steps { list-style: none; }
.steps > li { margin-bottom: 16px; }
.steps strong { display: block; font-size: 16px; }
.steps ul { list-style: none; font-size: 14.5px; line-height: 1.7; color: var(--sub); }
.steps ul li { position: relative; padding-left: 18px; }
.steps ul li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 2px; background: var(--v2); }
.course__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.course__gallery img { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 2px; }
.course__gallery img:first-child { grid-column: 1 / -1; }
.course__info { margin-top: 28px; background: var(--paper); padding: 20px 24px; font-size: 15.5px; border-radius: 2px; }
.course__info ul { list-style: none; }
.course__info a { color: var(--link); font-weight: 700; }
@media (max-width: 860px) { .course__grid { grid-template-columns: minmax(0, 1fr); } }

.video { position: relative; aspect-ratio: 16 / 9; max-width: 900px; background: #000; border-radius: 4px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.blog-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 32px); }
.blog-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.blog-card__img { aspect-ratio: 4 / 3; background: var(--white); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 4px; }
.blog-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card__img img { transform: scale(1.04); }
.blog-card__body { padding: 18px 0 0; display: flex; flex-direction: column; flex: 1; }
.blog-card__label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--v4); }
.blog-card h3 { font-family: var(--body); font-weight: 700; font-size: 17px; margin: 6px 0 8px; line-height: 1.6; }
.blog-card p { font-size: 14.5px; color: var(--sub-inv); }
.blog-card .more-link { margin-top: auto; }
@media (max-width: 860px) { .blog-cards { grid-template-columns: minmax(0, 1fr); max-width: 460px; } }

.cta { background: var(--ink-2); color: var(--text-inv); padding: var(--space) 0; }
.cta h2 { font-size: clamp(24px, 3.4vw, 40px); margin-bottom: 18px; }
.cta p { max-width: 40em; margin: 0 0 32px; color: var(--sub-inv); }
/* 技術サービス：開発事例のあと・ご支援の流れのあとの相談ボタン */
.case-cta { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.case-cta p { margin: 0; max-width: 34em; }
.flow-cta { margin: 44px 0 0; text-align: center; }

/* ---------- 技術サービス：事例 ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 84px) clamp(28px, 4vw, 56px); }
.case__img { background: var(--mist); aspect-ratio: 16 / 7; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__img--contain img { object-fit: contain; padding: 12px; }
.case__img--white { background: var(--white); border: 1px solid var(--line); }
.case h3 { font-size: clamp(20px, 2.1vw, 25px); margin: 24px 0 14px; }
.case p { font-size: 15.5px; color: #3a3850; }
.case__tags { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.case__tags h4 { font-family: var(--body); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--sub); margin-bottom: 8px; }
.case__tags ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.case__tags li { font-size: 13.5px; padding: 1px 12px; border: 1px solid var(--text); border-radius: 99px; line-height: 1.7; }
@media (max-width: 860px) { .cases { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ご支援の流れ（8つの手順） ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 0; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding: 26px 20px 0 0; }
.flow li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--v1), var(--v3)); transform-origin: left;
}
.flow li::after {
  content: counter(flow); position: absolute; left: 0; top: -15px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--text-inv);
  font-size: 14px; font-weight: 700; line-height: 30px; text-align: center;
}
.flow p { font-size: 16px; font-weight: 700; line-height: 1.55; min-height: 3.2em; margin: 14px 0 12px; }
.flow img { height: 96px; width: auto; }
.flow.is-waiting li::before { transform: scaleX(0); }
.flow.is-waiting li::after { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .flow li::before { transition: transform .5s var(--ease) calc(var(--n) * .12s); }
  .flow li::after { transition: opacity .4s calc(var(--n) * .12s + .1s); }
}
.flow li:nth-child(1) { --n: 0; } .flow li:nth-child(2) { --n: 1; } .flow li:nth-child(3) { --n: 2; } .flow li:nth-child(4) { --n: 3; }
.flow li:nth-child(5) { --n: 4; } .flow li:nth-child(6) { --n: 5; } .flow li:nth-child(7) { --n: 6; } .flow li:nth-child(8) { --n: 7; }
@media (max-width: 860px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 0; }
  .flow p { font-size: 14.5px; }
  .flow p br { display: none; }
  .flow img { height: 76px; }
}

/* ---------- 私たちの想い（Mission / Vision / Values） ---------- */
.mvv { display: grid; border-top: 1px solid var(--text-inv); }
.mvv__row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line-dark); }
.mvv__label { font-family: var(--display); font-size: 22px; line-height: 1.4; }
.mvv__label small { display: block; font-family: var(--body); font-size: 13.5px; color: var(--sub-inv); margin-top: 4px; }
.mvv__statement { font-family: var(--display); font-size: clamp(22px, 3vw, 38px); line-height: 1.5; margin: 0; text-wrap: balance; word-break: auto-phrase; }
.mvv__desc { margin: 14px 0 0; font-size: 16px; color: var(--sub-inv); max-width: 40em; }
.values { list-style: none; display: grid; gap: 0; }
.values li { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.values li:first-child { padding-top: 0; }
.values li:last-child { border-bottom: 0; padding-bottom: 0; }
.values strong { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.values span { display: block; margin-top: 4px; font-size: 15px; color: var(--sub-inv); }
@media (max-width: 760px) { .mvv__row { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ---------- 会社概要 ---------- */
.company { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.company dl { margin: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); border-top: 1px solid var(--text); }
.company dt, .company dd { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.company dt { font-size: 14px; font-weight: 700; color: var(--sub); letter-spacing: .04em; padding-top: 22px; }
.company dd { font-size: 17.5px; }
.company dd small { font-size: 14px; margin-left: 10px; color: var(--sub); }
.company dd ul { list-style: none; font-size: 16px; line-height: 1.9; }
.company dd a { color: var(--link); }
/* 会社概要ページ：ベン図は下の「私たちの想い」にあるので、表だけを置く */
.company--solo { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.company__figure, .concept { margin: 0; }
.concept { max-width: 520px; margin: clamp(48px, 7vw, 88px) auto 0; }
/* ベン図：画面に入ると3つの円が寄り集まる（.venn--wait が外れると動く）。
   円や語に触れると、その円が前に出て説明が開く（.is-active を site.js が付ける）。 */
.venn text { font-family: var(--display); text-anchor: middle; pointer-events: none; }
.venn__c { transform-box: fill-box; transform-origin: center; transition: transform .9s var(--ease), opacity .8s; cursor: pointer; }
.venn__c circle { transition: fill-opacity .4s, stroke-width .4s; }
.venn--wait .venn__c--1 { transform: translateY(-26%); opacity: 0; }
.venn--wait .venn__c--2 { transform: translate(-24%, 16%); opacity: 0; }
.venn--wait .venn__c--3 { transform: translate(24%, 16%); opacity: 0; }
.venn__c--2 { transition-delay: .12s; } .venn__c--3 { transition-delay: .24s; }
.venn-wrap.has-active .venn__c { transition-delay: 0s; transition-duration: .5s; }
.venn-wrap.has-active .venn__c:not(.is-active) { opacity: .45; }
.venn-wrap .venn__c.is-active { transform: scale(1.06); }
.venn-wrap .venn__c.is-active circle { fill-opacity: .42; stroke-width: 2.5; }
.venn__legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.venn__item { font: inherit; text-align: left; background: none; border: 0; border-top: 2px solid var(--line); padding: 12px 4px 10px; color: inherit; cursor: pointer; display: block; transition: border-color .3s; }
.venn__item[data-venn-item="0"] { border-top-color: #414487; } .venn__item[data-venn-item="1"] { border-top-color: #22a884; } .venn__item[data-venn-item="2"] { border-top-color: #c9b400; }
.section--black .venn__item[data-venn-item="2"] { border-top-color: #fde725; }
.venn__word { display: block; font-family: var(--display); font-size: 17px; line-height: 1.3; }
.venn__word small { display: block; font-family: var(--body); font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.section--black .venn__word small { color: var(--sub-inv); }
.venn__desc { display: block; font-size: 13.5px; line-height: 1.65; color: var(--sub); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .35s, margin .35s; }
.section--black .venn__desc { color: var(--sub-inv); }
.venn__item.is-active .venn__desc, .venn__item:focus-visible .venn__desc { max-height: 8em; opacity: 1; margin-top: 8px; }
.venn-wrap.has-active .venn__item:not(.is-active) { opacity: .55; }
.venn__item { transition: opacity .3s; }
@media (max-width: 560px) { .venn__legend { grid-template-columns: minmax(0, 1fr); gap: 0; } .venn__item { padding: 10px 4px; } }
.venn .venn__en { font-size: 30px; }
.venn .venn__ja { font-size: 16px; font-family: var(--body); }
.section--paper .venn { color: var(--text); }
.section--black .venn { color: var(--text-inv); }
@media (max-width: 900px) {
  .company { grid-template-columns: minmax(0, 1fr); }
  .company dl { grid-template-columns: minmax(0, 1fr); }
  .company dt { border-bottom: 0; padding: 16px 0 0; }
  .company dd { padding: 2px 0 16px; }
  /* スマホでは由来のベン図をページ見出しの直後（会社情報の表の上）に出す */
  .company__figure { order: -1; max-width: 420px; }
}

/* ---------- メディア（ブログ・YouTube） ---------- */
.particles { height: 34vh; min-height: 180px; max-height: 360px; background: var(--ink); }
.particles canvas { width: 100%; height: 100%; display: block; }

.feed-box + .feed-box { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-dark); }
.feed-box__pill { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; padding: 1px 12px; border-radius: 99px; margin-bottom: 12px; border: 1px solid currentColor; }
.feed-box__pill--blog { color: var(--v4); }
.feed-box__pill--yt { color: var(--v5); }
.feed-box__title { font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 8px; max-width: 30em; }
.feed-box__sub { margin: 0 0 24px; color: var(--sub-inv); font-size: 15.5px; max-width: 44em; }
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 4px 0 18px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent; }
.feed-card { flex: 0 0 auto; width: 272px; display: flex; flex-direction: column; background: var(--white); color: var(--text); border-radius: 4px; overflow: hidden; scroll-snap-align: start; text-decoration: none; transition: transform .35s var(--ease); }
.feed-card:hover { transform: translateY(-4px); }
.feed-card img, .feed-card__ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--mist); flex: none; }
.feed-card__body { padding: 14px 16px 18px; min-width: 0; }
.feed-card__title { font-family: var(--body); font-size: 15px; font-weight: 700; line-height: 1.55; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: normal; text-wrap: wrap; }
.feed-card__meta { font-size: 13px; color: var(--sub); margin: 0; font-variant-numeric: tabular-nums; }
.feed-card__desc { font-size: 13px; color: var(--sub); line-height: 1.6; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-box__foot { margin-top: 10px; }
.feed-box__foot a { font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.feed-box__foot a:hover { text-decoration-color: currentColor; }

/* ---------- 燃焼反応のライブ計算（メディアページ） ----------
   この節だけ横幅を広く取る。操作は上に一列、図は下に2つ（温度グラフ：反応経路図 = 2:1）。
   図の高さは .kin__plot canvas の aspect-ratio で決まる。 */
.kin .container { max-width: 1480px; }
.kin__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.kin__controls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 20px 32px; align-items: end; padding-bottom: 8px; border-bottom: 1px solid var(--line-dark); margin-bottom: 8px; }
.kin__slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; color: var(--sub-inv); }
.kin__slider output { font-variant-numeric: tabular-nums; color: var(--text-inv); font-weight: 700; font-size: 15px; }
.kin__slider input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--v5); cursor: pointer; }
.kin__readout { margin: 0; display: grid; grid-template-columns: auto auto auto; gap: 0 28px; align-items: end; grid-column: 1 / 3; }
.kin__readout div { min-width: 0; }
.kin__readout dt { font-size: 12.5px; color: var(--sub-inv); }
.kin__readout dd { margin: 0; font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; }
.kin__tau dd { font-family: var(--display); font-size: clamp(30px, 3vw, 44px); font-weight: 500; line-height: 1.1; color: var(--v5); transition: text-shadow .6s; }
.is-ignited .kin__tau dd { text-shadow: 0 0 24px rgba(253, 231, 37, .55); }
.kin__controls .btn { justify-self: start; align-self: end; }
.kin__steps { font-size: 12.5px; color: var(--sub-inv); margin: 0; justify-self: end; grid-column: 4; }
.kin__plot, .kin__path { margin: 0; display: flex; flex-direction: column; min-width: 0; }
/* 高さは固定（キャンバスの描画サイズに合わせて伸び続けないよう、aspect-ratio や flex では決めない） */
.kin__plot canvas, .kin__path canvas { width: 100%; height: var(--kin-h, clamp(360px, 52vh, 520px)); display: block; background: var(--ink-2); border-radius: 4px; }
.kin figcaption { font-size: 13px; color: var(--sub-inv); margin-top: 10px; line-height: 1.6; }
.kin__note { margin: 28px 0 0; font-size: 13.5px; color: var(--sub-inv); max-width: 60em; }
/* 燃焼デモの下の Reaction Bench への案内 */
.kin__rb { margin: 36px 0 0; padding: 24px 28px; border: 1px solid var(--line-dark); border-left: 4px solid var(--v5); border-radius: 4px; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.kin__rb p { margin: 0; flex: 1 1 32em; color: var(--sub-inv); font-size: 15px; line-height: 1.85; }
.kin__rb strong { display: block; color: var(--text-inv); font-size: 17px; margin-bottom: 6px; }
.kin__rb .btn { flex: none; }
@media (max-width: 1080px) {
  .kin__controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kin__readout { grid-column: 1 / 3; }
  .kin__steps { grid-column: 3; }
}
@media (max-width: 860px) {
  .kin__grid { grid-template-columns: minmax(0, 1fr); }
  .kin__plot canvas { height: clamp(260px, 60vw, 400px); }
  .kin__path { max-width: 420px; }
  .kin__path canvas { height: min(400px, 90vw); }
}
@media (max-width: 720px) {
  .kin__controls { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kin__readout { grid-column: 1; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .kin__tau { grid-column: 1 / -1; }
  .kin__steps { grid-column: 1; justify-self: start; }
}

/* ---------- 技術デモ（lab-*.js、技術サービスページ） ----------
   構造は燃焼反応のデモと同じ：操作を上に一列、図を下に。図の高さは固定。 */
.lab .container { max-width: 1480px; }
.lab__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.lab__controls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; align-items: end; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); margin-bottom: 8px; }
.lab__slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; color: var(--sub-inv); }
.lab__slider output { font-variant-numeric: tabular-nums; color: var(--text-inv); font-weight: 700; font-size: 15px; }
.lab__slider input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--v5); cursor: pointer; }
.lab__buttons { display: flex; flex-wrap: wrap; gap: 10px; grid-column: 1 / -1; }
.lab__buttons .btn { padding: 11px 20px; font-size: 14.5px; }
.lab__buttons .btn[aria-pressed="true"]:not(.btn--primary) { background: var(--text-inv); color: var(--ink); border-color: var(--text-inv); }
.lab__readout { margin: 0; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 24px; }
.lab__readout div { min-width: 0; }
.lab__readout dt { font-size: 12.5px; color: var(--sub-inv); line-height: 1.4; }
.lab__readout dd { margin: 0; font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; line-height: 1.3; }
.lab__small { grid-column: 1 / -1; font-size: 12.5px; color: var(--sub-inv); margin: 0; font-variant-numeric: tabular-nums; }
.lab__sso { color: var(--v5); font-weight: 700; font-size: 14px; min-height: 1.5em; }
.lab__fig { margin: 0; min-width: 0; }
.lab__fig--main { grid-column: 1; }
.lab__fig--side { grid-column: 2; }
.lab__fig--tall { grid-column: 1 / -1; }
.lab__fig canvas { width: 100%; height: var(--lab-h, clamp(340px, 50vh, 500px)); display: block; background: var(--ink-2); border-radius: 4px; touch-action: none; }
.lab__fig--tall canvas { height: var(--lab-h-tall, clamp(420px, 62vh, 640px)); }
.lab__fig canvas:focus-visible { outline: 2px solid var(--v4); outline-offset: 2px; }
.lab__fig canvas.lab__acq { height: 72px; margin-top: 6px; }
.lab__fig figcaption { font-size: 13px; color: var(--sub-inv); margin-top: 10px; line-height: 1.6; }
.lab__note { margin: 28px 0 0; font-size: 13.5px; color: var(--sub-inv); max-width: 60em; }
.lab--orbit.is-sso .lab__sso { text-shadow: 0 0 18px rgba(253, 231, 37, .6); }
@media (max-width: 1080px) { .lab__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .lab__grid { grid-template-columns: minmax(0, 1fr); }
  .lab__fig--main, .lab__fig--side, .lab__fig--tall { grid-column: 1; }
  .lab__fig canvas { height: clamp(260px, 70vw, 420px); }
  .lab__fig--tall canvas { height: min(480px, 95vw); }
  .lab__fig--side canvas { height: 200px; }
}
@media (max-width: 600px) { .lab__controls { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* ---------- お問い合わせフォーム ---------- */
/* フォームの上の「安心材料」4点 */
.contact-notes { list-style: none; padding: 0; margin: 0 0 48px; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.contact-notes li { padding: 14px 0 0; border-top: 2px solid var(--v3); }
.contact-notes strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.contact-notes span { font-size: 14px; color: var(--sub); line-height: 1.6; }
@media (max-width: 640px) { .contact-notes { grid-template-columns: 1fr; } }
.form { max-width: 760px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form__field { margin-bottom: 24px; }
.form label { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.form .req { color: #b42318; margin-left: 3px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .form select {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; line-height: 1.6;
  border: 1px solid #8b8fa0; background: var(--white); color: var(--text); border-radius: 2px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 200px; resize: vertical; }
.form textarea::placeholder { color: #8b8fa0; }
.form select { appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6072' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.form .opt { margin-left: 4px; font-weight: 400; font-size: 13px; color: var(--sub); }
.form__hint { margin: 0 0 8px; font-size: 14px; color: var(--sub); line-height: 1.6; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--v2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--v3) 30%, transparent); }
.form label.form__agree { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 30px; font-size: 16px; font-weight: 400; }
.form__agree input { width: 20px; height: 20px; margin: 6px 0 0; flex: none; accent-color: var(--v2); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__turnstile:not(:empty) { margin: 0 0 26px; }
.form__submit .btn { min-width: 220px; }
.form__submit .btn[disabled] { opacity: .5; cursor: wait; transform: none; }
.form__status { margin-top: 22px; padding: 14px 18px; display: none; border-radius: 2px; }
.form__status.is-ok { display: block; background: #e3f4ec; color: #14532d; border: 1px solid #9fd3b6; }
.form__status.is-error { display: block; background: #fdecea; color: #7a271a; border: 1px solid #f1b0a8; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- ポリシー等の文章ページ ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 48px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.4em; margin: 0 0 1em; }
.prose a { color: var(--link); }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--text-inv); padding: clamp(56px, 8vw, 96px) 0 32px; border-top: 1px solid var(--line-dark); }
.site-footer .container { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.site-footer__logo img { width: 170px; filter: brightness(0) invert(1); }
.site-footer ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 12px 44px; justify-content: start; }
.site-footer a { text-decoration: none; font-size: 15px; color: var(--sub-inv); transition: color .2s; }
.site-footer a:hover { color: var(--text-inv); }
.site-footer__copy { grid-column: 1 / -1; font-size: 13px; color: var(--sub-inv); margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line-dark); }
@media (max-width: 760px) {
  .site-footer .container { grid-template-columns: minmax(0, 1fr); }
  .site-footer ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
}

.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--text-inv); display: flex; align-items: center; justify-content: center;
  text-decoration: none; z-index: 40; border: 1px solid var(--line-dark); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top::before { content: ""; width: 11px; height: 11px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateY(3px) rotate(45deg); }

.notfound { padding: clamp(100px, 16vw, 200px) 0; }
.notfound h1 { font-size: clamp(72px, 14vw, 160px); line-height: 1; }
.notfound p { color: var(--sub-inv); margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   カーソル（マウスのある PC だけ。site.js の 8 が html に .has-cur を付け、.cur を足す）
   中心の点＝実際の位置、輪＝反応経路図の化学種、線＝反応の線。
   独自のカーソルを持つ場所（文字入力欄・無効なボタン・ドラッグできるデモなど）では、
   元のカーソルを出して .cur を隠す（site.js が computed の cursor で判定）。
   ========================================================================== */
html.has-cur, html.has-cur * { cursor: none; }
html.has-cur :is(input:not([type="range"], [type="checkbox"], [type="radio"], [type="submit"], [type="button"]), textarea, [contenteditable]) { cursor: text; }
html.has-cur select { cursor: default; }
.cur { position: fixed; left: 0; top: 0; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cur.is-on { opacity: 1; }
.cur.is-on.is-hidden { opacity: 0; }
.cur i { position: absolute; left: 0; top: 0; display: block; will-change: transform; }
.cur__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--v3); }
.cur__node { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 14px; border: 1px solid var(--cur-ring);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), border-radius .35s var(--ease), background-color .35s, border-color .35s; }
.cur.is-link .cur__node { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 22px; border-color: var(--v3); background-color: var(--cur-fill); }
.cur.is-down .cur__node { width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 10px; }
.cur__edge { height: 1px; transform-origin: 0 50%; border-radius: 1px; opacity: 0; }
