/* FideCollective — 値は DESIGN.md（05_デザインシステム.md）のYAMLと1対1 */
:root {
  --paper: #FBFAF8;
  --ink: #141414;
  --ink-sub: #5E5E5E;
  --line: #DCDBD6;
  --mute: #A3A29D;
  --dark: #141414;
  --on-dark: #F2F1EC;
  --accent: #C73E22;
  --line-dark: #FFFFFF2E;
  --on-dark-sub: #C9C8C2;
  /* 光（プリズム）：写真の虹色の反射から取った4色。装飾の光だけに使い、文字・面には使わない */
  --prism-gold: #E9C46A;
  --prism-rose: #EBA7A0;
  --prism-aqua: #8CCBCB;
  --prism-lilac: #B6A8E8;
  --prism-band: linear-gradient(100deg, transparent 0%, var(--prism-gold) 38%, var(--prism-rose) 46%, var(--prism-lilac) 54%, var(--prism-aqua) 62%, transparent 100%);

  --ff-en: "Crimson Pro", "Times New Roman", serif;
  --ff-min: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ff-go: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;

  --fs-display: clamp(1.75rem, 2.2vw + 1rem, 3rem);
  --fs-vertical: min(clamp(1.5rem, 1.2vw + 1rem, 2.25rem), 3.6svh);
  --fs-hero-copy: min(clamp(1.25rem, 1vw + 0.9rem, 2rem), 3.4svh);
  --fs-en-xl: clamp(3rem, 7vw + 1rem, 7.5rem);
  --fs-en-l: clamp(2.5rem, 3.6vw + 1rem, 4.5rem);
  --fs-h3: clamp(1.25rem, 0.8vw + 1rem, 1.625rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --tr-min: 0.08em;
  --tr-body: 0.03em;
  --tr-en: 0.02em;
  --tr-label: 0.2em;
  --tr-logo: 0.224em; /* 0.32em の30%減 */
  --tr-tag: 0.3em;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px; --s11: 192px;

  --section-gap: 112px;
  --gutter: 20px;
  --container: 1240px;
  --hdr-h: 64px;

  --r-pill: 999px;
  --split: 5fr 7fr;

  --t-fast: 250ms;
  --t-reveal: 1100ms;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}
@media (min-width: 1024px) {
  :root { --section-gap: 192px; --gutter: 48px; --hdr-h: 84px; --fs-body: 1.0625rem; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr-h); overflow-x: clip; }
body {
  font-family: var(--ff-go);
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: var(--tr-body);
  font-feature-settings: "palt";
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s4); z-index: 200; background: var(--paper); padding: var(--s2) var(--s4); }
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.en { font-family: var(--ff-en); font-weight: 300; letter-spacing: var(--tr-en); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; min-height: 44px; position: relative; color: var(--logo-ink, #1B4A7A); }
.logo-svg { width: clamp(132px, 55vw, 215px); height: auto; overflow: visible; }
.logo-ink { fill: currentColor; }
/* 写真の上では文字を白に、マークの青を明るく */
.hdr.on-dark .logo { --logo-ink: var(--on-dark); }
.hdr.on-dark .logo .lb1 { stop-color: #5FA4D0; }
.hdr.on-dark .logo .lb2 { stop-color: #8CCBE0; }
.hdr.is-solid .logo { --logo-ink: #1B4A7A; }
.hdr.is-solid .logo .lb1 { stop-color: #1B4A7A; }
.hdr.is-solid .logo .lb2 { stop-color: #2A7CA8; }
@media (min-width: 1024px) { .logo-svg { width: 340px; } }
@media (max-width: 380px) { .hdr { gap: var(--s2); padding-left: var(--s3); } .logo-svg { width: 45vw; } }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hdr-h);
  display: flex; align-items: center; gap: var(--s5);
  padding-left: var(--gutter);
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.hdr.on-dark { color: var(--on-dark); }
.hdr.is-solid { color: var(--ink); }
/* すりガラス（オフィスブレーンのヘッダーと同じ考え方：背後を軽くぼかし、白を半透明で重ねる）。縦の筋は付けない。
   ぼかしは疑似要素に掛ける（本体に掛けると、中の position: fixed のSPメニューの基準が変わってしまう） */
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(8px) saturate(1.15); backdrop-filter: blur(8px) saturate(1.15);
  background: rgba(251, 250, 248, .58);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .5), 0 1px 0 rgba(20, 20, 20, .06);
  transition: background-color var(--t-fast) var(--ease);
}
.hdr.on-dark::before { background: rgba(20, 20, 20, .3); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .22); }
.hdr.is-solid::before { background: rgba(251, 250, 248, .72); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .5), 0 1px 0 rgba(20, 20, 20, .06); }
.hdr .logo { margin-right: auto; }
.nav { display: none; }
/* 言語の切り替え（JA / EN） */
.lang { display: flex; align-items: center; gap: var(--s1); font-family: var(--ff-en); font-size: 0.9375rem; letter-spacing: var(--tr-label); }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; opacity: .55; transition: opacity var(--t-fast) var(--ease); }
.lang a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.lang a:hover { opacity: 1; }
.hdr-contact {
  display: none; align-self: stretch; align-items: center; padding: 0 var(--s6);
  background: var(--ink); color: var(--on-dark); font-family: var(--ff-en); font-size: 1rem; letter-spacing: var(--tr-en);
  transition: background-color var(--t-fast) var(--ease);
}
.hdr-contact:hover { background: var(--ink-sub); }
.nav-toggle {
  width: var(--hdr-h); height: var(--hdr-h); border: 0; background: var(--ink); cursor: pointer;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.nav-toggle span { width: 22px; height: 1px; background: var(--on-dark); transition: transform var(--t-fast) var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav.is-open {
  display: block; position: fixed; inset: var(--hdr-h) 0 0 0; color: var(--on-dark);
  padding: var(--s7) var(--gutter);
  /* 黒のすりガラス：透過率25%（＝不透明度75%）。背後がうっすら透ける */
  background: rgba(20, 20, 20, .75);
  -webkit-backdrop-filter: blur(8px) saturate(1.15); backdrop-filter: blur(8px) saturate(1.15);
}
.nav.is-open ul { display: grid; }
.nav.is-open a { font-family: var(--ff-en); font-size: 2rem; display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line-dark); }

/* ---------- 改行（意味の切れ目で折る） ---------- */
h1, h2, h3, .lead-m, .contact-lead { word-break: auto-phrase; text-wrap: balance; }
p { word-break: auto-phrase; text-wrap: pretty; }

/* ---------- section heading ---------- */
.sec { padding: var(--section-gap) 0; }
.sec-head { margin-bottom: var(--s8); }
.sec-en { font-size: var(--fs-en-l); line-height: 1.05; }
.sec-ja { font-family: var(--ff-min); font-weight: 500; font-size: var(--fs-small); letter-spacing: var(--tr-min); color: var(--ink); margin-top: var(--s3); }
.sec-note { color: var(--ink-sub); margin-top: var(--s5); }
.js-split .ch { display: inline-block; }
.js-split .ln { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; white-space: nowrap; }

/* ---------- ① hero ---------- */
.hero { position: relative; height: 280vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-frame {
  position: absolute; left: var(--cx, 50%); top: 50%;
  width: var(--fw, 100vw); height: var(--fh, 100%);
  transform: translate(-50%, -50%);
  overflow: hidden; background: var(--dark);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img-a { transform: scale(var(--zoom, 1)); background: var(--dark); }
.hero-img-b { opacity: var(--swap, 1); object-position: 68% 50%; }
@media (min-width: 768px) { .hero-img-b { object-position: 50% 50%; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #1a1611 0%, #1a1611cc 50%, #1a1611 100%); opacity: var(--shade, .45); }
/* 小窓の上をゆっくり横切る虹色の光（写真のガラスの反射と同じ色） */
.hero-prism {
  position: absolute; inset: -10% -40%; pointer-events: none; mix-blend-mode: screen;
  background: var(--prism-band); opacity: calc(.18 + .32 * var(--swap, 0));
  filter: blur(28px); transform: translateX(-60%) rotate(8deg);
  animation: prism-sweep 11s var(--ease) infinite;
}
@keyframes prism-sweep { 0%, 15% { transform: translateX(-60%) rotate(8deg); } 70%, 100% { transform: translateX(60%) rotate(8deg); } }
.hero-frame::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; background: linear-gradient(color-mix(in srgb, var(--dark) 45%, transparent), transparent); opacity: var(--topshade, 0); pointer-events: none; }
.hero-tag {
  position: absolute; left: var(--gutter); bottom: var(--s7); color: var(--ink);
  display: grid; gap: var(--s1);
  opacity: var(--tag, 0);
}
.lockup-tag { font-family: "Montserrat", var(--ff-en); font-weight: 500; font-size: clamp(0.875rem, 0.4vw + 0.78rem, 1.125rem); line-height: 1.5; letter-spacing: 0.01em; color: #1B4A7A; }
/* FVの縦書きコピー（小窓の右・SPは左） */
.hero-copy {
  position: absolute; top: 50%; left: var(--gutter); transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--ff-min); font-weight: 500; font-size: var(--fs-hero-copy);
  line-height: 1.8; letter-spacing: 0.16em; color: var(--ink); opacity: var(--tag, 0);
}
.hero-copy span { display: block; white-space: nowrap; }
@media (max-width: 767px) { .hero-copy { line-height: 1.6; } }
.hero-copy span + span { padding-top: 3em; }
.hero-en {
  position: absolute; right: calc(var(--gutter) + var(--s8)); bottom: var(--s7); writing-mode: horizontal-tb;
  font-size: 1rem; color: var(--ink); opacity: var(--tag, 0);
  display: none; align-items: center; gap: var(--s2); min-height: 44px; border-bottom: 1px solid var(--ink);
}
.hero-en span { color: var(--ink-sub); }
.hero-en i { font-style: normal; transition: transform var(--t-fast) var(--ease); }
.hero-en:hover i { transform: translateX(4px); }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: var(--s7); writing-mode: vertical-rl;
  font-size: var(--fs-small); letter-spacing: var(--tr-label); color: var(--ink-sub); opacity: var(--tag, 0);
  padding-bottom: var(--s8);
}
.hero-scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: var(--s7); background: var(--ink-sub); animation: scrolline 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes scrolline { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.statement {
  position: absolute; inset: 0; color: var(--on-dark);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: var(--s5) var(--s4);
  padding: calc(var(--hdr-h) + var(--s5)) var(--gutter) var(--s7);
  opacity: var(--st, 1); pointer-events: none;
  text-shadow: 0 1px 14px #00000066; /* 明るい写真の上でも白い文字を読めるように */
}
.statement-label { grid-column: 1; grid-row: 1; font-size: 1rem; color: var(--on-dark); opacity: .8; }
.statement-title {
  grid-column: 2; grid-row: 1 / span 2; writing-mode: vertical-rl;
  font-family: var(--ff-min); font-weight: 500; font-size: var(--fs-vertical); line-height: 1.7; letter-spacing: 0.14em;
}
.statement-title > span { display: block; white-space: nowrap; }
.statement-title > span + span { margin-right: var(--s2); padding-top: 3em; }
.statement-l, .statement-r { grid-column: 1; font-size: var(--fs-small); line-height: 2.1; letter-spacing: var(--tr-body); }
.statement-l { grid-row: 2; align-self: end; }
.statement-r { grid-row: 3; }
.statement br { display: none; }

/* ---------- ② role ---------- */
.role-body { display: grid; gap: var(--s8); align-items: center; }
.role-fig { max-width: 620px; width: 100%; margin: 0; }
.role-fig .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.role-fig .ring-in { stroke-dasharray: 2 6; }
.role-fig .spoke { fill: none; stroke: var(--ink); stroke-width: 1; }
.role-fig .flow { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 9; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }
.role-fig .node circle { fill: var(--ink); }
.role-fig .node.is-us circle { fill: var(--accent); }
.role-fig .halo { fill: none; stroke: var(--accent); stroke-width: 1; transform-box: fill-box; transform-origin: center; opacity: 0; }
.role-fig .halo.is-on { animation: halo 1.4s var(--ease-out); }
@keyframes halo { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(4.5); } }
.role-fig .pulse { filter: url(#glow); }
.role-fig text { font-family: var(--ff-min); font-weight: 500; font-size: 26px; letter-spacing: .06em; text-anchor: middle; fill: var(--ink); }
.role-fig .en-t { font-family: var(--ff-en); font-weight: 300; font-size: 34px; letter-spacing: .1em; }
.lead-m { font-family: var(--ff-min); font-weight: 500; font-size: var(--fs-vertical); line-height: 1.7; letter-spacing: var(--tr-min); margin-bottom: var(--s6); }
.role-text p:not(.lead-m) { color: var(--ink); max-width: 34em; }

/* ---------- ③ company ---------- */
.company { border-top: 1px solid var(--line); }
.company-list { border-top: 1px solid var(--ink); }
.company-list div { display: grid; grid-template-columns: 6.5em 1fr; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.company-list dt { font-family: var(--ff-min); font-weight: 500; color: var(--ink-sub); letter-spacing: var(--tr-min); }
.company-list .tbd { color: var(--ink-sub); }

/* ---------- ④ contact ---------- */
.contact { background: var(--dark); color: var(--on-dark); padding: var(--section-gap) 0; }
.contact-en { font-size: var(--fs-en-xl); line-height: 1; position: relative; display: inline-block; overflow: hidden; }
/* 光は文字の形だけに乗せる（箱全体に乗算すると、暗い背景が箱の範囲だけ色づいて線に見える）。文字が出そろってから点灯 */
.contact-en::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
  color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(100deg, transparent 0%, transparent 38%, var(--prism-gold) 44%, var(--prism-rose) 49%, var(--prism-lilac) 54%, var(--prism-aqua) 59%, transparent 65%, transparent 100%) 0 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  transition: opacity 1s var(--ease);
  animation: sheen 7s var(--ease) infinite;
}
.contact-en.is-lit::after { opacity: 1; }
@keyframes sheen { 0%, 20% { background-position: 100% 0; } 80%, 100% { background-position: 0 0; } }
.contact-ja { font-family: var(--ff-min); font-weight: 500; font-size: var(--fs-small); letter-spacing: var(--tr-label); color: var(--on-dark-sub); margin-top: var(--s4); }
.contact-lead { margin-top: var(--s7); color: var(--on-dark); }
.cform { margin-top: var(--s7); display: grid; gap: var(--s5); max-width: 560px; }
.cf-row { display: grid; gap: var(--s2); }
.cf-l { font-family: var(--ff-min); font-weight: 500; font-size: var(--fs-small); letter-spacing: var(--tr-label); color: var(--on-dark-sub); }
.cf-req, .cf-opt { font-style: normal; margin-left: var(--s3); font-size: 0.75rem; letter-spacing: .08em; opacity: .7; }
.cf-req { color: var(--prism-gold); opacity: 1; }
.cform input[type=text], .cform input[type=email], .cform input[type=tel], .cform textarea {
  width: 100%; min-height: 48px; padding: var(--s3) 0; font: inherit; font-size: 1rem; color: var(--on-dark);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; outline: 0;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.cform textarea { resize: vertical; min-height: 160px; line-height: 1.8; }
.cform input:focus, .cform textarea:focus { border-bottom-color: var(--prism-gold); box-shadow: 0 1px 0 0 var(--prism-gold); }
.cform :focus-visible { outline: 2px solid var(--prism-gold); outline-offset: 4px; }
.cform input:focus-visible, .cform textarea:focus-visible { outline: 0; }
.cf-agree { display: flex; gap: var(--s3); align-items: flex-start; font-size: 0.9375rem; line-height: 1.7; }
.cf-agree input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--prism-gold); }
.cf-note { display: block; color: var(--on-dark-sub); font-size: 0.8125rem; margin-top: var(--s1); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-status { font-family: var(--ff-min); line-height: 1.8; color: var(--on-dark); }
.cf-status.is-error { color: var(--prism-rose); }
.contact-grid { display: grid; gap: var(--s8); }
.contact-side { border-top: 1px solid var(--line-dark); padding-top: var(--s5); }
.contact-side-h { font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem); line-height: 1.2; }
.contact-side-b { color: var(--on-dark-sub); font-size: 1.125rem; margin-top: var(--s4); }
.customers { margin-top: var(--s9); padding-top: var(--s5); border-top: 1px solid var(--line-dark); max-width: 40em; }
.customers .en { color: var(--on-dark-sub); }
.customers p:last-child { color: var(--on-dark-sub); font-size: var(--fs-small); margin-top: var(--s2); }

/* ---------- ⑧ english ---------- */
.en-grid { display: grid; gap: var(--s8); }
.en-stmt { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem); line-height: 1.35; margin-top: var(--s6); max-width: 18em; }
.en-body { color: var(--ink-sub); font-size: 1.125rem; line-height: 1.6; margin-top: var(--s5); max-width: 28em; }
.en-list { border-top: 1px solid var(--ink); font-size: 1.125rem; line-height: 1.5; }
.en-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.en-list span { color: var(--ink-sub); grid-row: span 2; }
.en-list b { font-weight: 300; font-size: 1.375rem; }
.en-list em { font-style: normal; color: var(--ink-sub); }
.btn-line {
  margin-top: var(--s7); display: inline-flex; align-items: center; gap: var(--s4); min-height: 56px; padding: 0 var(--s6);
  border: 1px solid var(--ink); border-radius: var(--r-pill); font-size: 1.125rem;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn-line:hover { background: var(--ink); color: var(--on-dark); }

/* ---------- footer ---------- */
.ftr { background: var(--dark); color: var(--on-dark); padding: var(--s8) 0 var(--s6); border-top: 1px solid var(--line-dark); }
.ftr-brand { display: block; width: min(62vw, 280px); }
.ftr-brand img { width: 100%; height: auto; }
.ftr-in { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-dark); padding-top: var(--s5); }
.ftr small { color: var(--mute); font-size: 0.9375rem; }

/* ---------- きらめき（JSが各セクションに置く） ---------- */
.sec, .contact { position: relative; }
.glints { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glints i {
  position: absolute; width: var(--g, 14px); aspect-ratio: 1; background: var(--c, var(--prism-gold)); opacity: 0;
  clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
  animation: twinkle var(--d, 6s) ease-in-out var(--dl, 0s) infinite;
}
@keyframes twinkle { 0%, 40%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 52% { opacity: .85; transform: scale(1) rotate(30deg); } 64% { opacity: 0; transform: scale(.5) rotate(50deg); } }
.sec > .wrap, .contact > .wrap { position: relative; z-index: 1; }

/* ---------- reveal（JSが付ける） ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (min-width: 768px) {
  .statement { grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr; padding: calc(var(--hdr-h) + var(--s6)) var(--gutter) var(--s8); gap: var(--s5) var(--s8); align-items: center; }
  .statement-label { grid-column: 1 / -1; }
  .statement-title { grid-column: 2; grid-row: 2; align-self: center; }
  .statement-l { grid-column: 1; grid-row: 2; align-self: center; justify-self: end; }
  .statement-r { grid-column: 3; grid-row: 2; align-self: center; }
  .en-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 7fr 5fr; align-items: end; }
  .hero-en { display: inline-flex; }
  .sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s7); }
  .sec-head-row .sec-note { margin-top: 0; text-align: right; }
}

/* ---------- pc ---------- */
@media (min-width: 1024px) {
  .hdr { padding-left: var(--s7); gap: var(--s6); }
  .nav { display: block; }
  .nav ul { display: flex; gap: var(--s6); }
  .nav .nav-contact { display: none; }
  .nav a { font-family: var(--ff-en); font-size: 1rem; letter-spacing: var(--tr-en); display: inline-flex; align-items: center; min-height: 44px; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-fast) var(--ease); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .hdr-contact { display: inline-flex; }
  .hero-copy { left: calc(50% + var(--small, 440px) / 2 + var(--s8)); }
  .nav-toggle { display: none; }
  .statement-l, .statement-r { font-size: 0.875rem; }
  .statement br { display: inline; }
  .role-body, .company-grid, .en-grid, .contact-grid { grid-template-columns: var(--split); gap: var(--s10); }
  .company-grid { display: grid; }
}

/* ---------- 英語ページ（/en/）：縦書きを横書きに、和文の書体を英字の書体に ---------- */
html[lang="en"] {
  --ff-min: "Crimson Pro", "Times New Roman", serif;
  --ff-go: "Crimson Pro", "Times New Roman", serif;
  --tr-min: 0.01em;
  --tr-body: 0.005em;
}
html[lang="en"] body { font-size: 1.125rem; line-height: 1.65; }
html[lang="en"] .hero-frame { left: 50%; }
html[lang="en"] .hero-copy {
  writing-mode: horizontal-tb; transform: none; top: calc(var(--hdr-h) + var(--s5));
  font-family: var(--ff-en); font-weight: 300; font-size: clamp(1.5rem, 1.4vw + 1rem, 2.25rem); line-height: 1.3; letter-spacing: 0; max-width: 15em;
}
html[lang="en"] .hero-copy span { display: inline; white-space: normal; }
html[lang="en"] .hero-copy span + span { padding-top: 0; }
html[lang="en"] .statement { grid-template-columns: 1fr; grid-template-rows: auto; align-content: center; gap: var(--s5); }
html[lang="en"] .statement-label { grid-row: 1; }
html[lang="en"] .statement-title {
  grid-column: 1; grid-row: 2; writing-mode: horizontal-tb;
  font-family: var(--ff-en); font-weight: 300; font-size: clamp(1.75rem, 2.4vw + 1rem, 3.5rem); line-height: 1.2; letter-spacing: 0;
}
html[lang="en"] .statement-title > span { display: block; white-space: normal; }
html[lang="en"] .statement-title > span + span { margin-right: 0; padding-top: 0; }
html[lang="en"] .statement-l { grid-row: 3; }
html[lang="en"] .statement-r { grid-row: 4; }
html[lang="en"] .statement-l, html[lang="en"] .statement-r { font-size: 1rem; line-height: 1.6; align-self: start; justify-self: start; max-width: 32em; }
@media (min-width: 768px) {
  html[lang="en"] .statement { grid-template-columns: 1fr 1fr; padding-left: var(--s8); padding-right: var(--s8); column-gap: var(--s8); }
  html[lang="en"] .statement-label, html[lang="en"] .statement-title { grid-column: 1 / -1; }
  html[lang="en"] .statement-l { grid-column: 1; grid-row: 3; }
  html[lang="en"] .statement-r { grid-column: 2; grid-row: 3; }
}
@media (min-width: 1024px) {
  html[lang="en"] .hero-copy { top: 50%; transform: translateY(-50%); max-width: calc(50% - var(--small, 440px) / 2 - var(--s8) - var(--gutter)); }
  html[lang="en"] .statement-l, html[lang="en"] .statement-r { font-size: 1.125rem; }
}

/* ---------- 画面の縁の虹色の光（スクロールしても画面に固定）。右上の Contact ボタンの範囲だけ切り抜き、ボタンが光の上に見えるようにする ---------- */
.edge-glow {
  --cw: 0px; --ch: 0px; /* Contact ボタンの幅・高さ（main.js が測って入れる） */
  position: fixed; inset: 0; z-index: 110; pointer-events: none;
  clip-path: polygon(0 0, calc(100% - var(--cw)) 0, calc(100% - var(--cw)) var(--ch), 100% var(--ch), 100% 100%, 0 100%);
}
.eg-soft, .eg-line { position: absolute; inset: 0; }
.eg-soft { filter: blur(6px); opacity: .6; --w: 9px; }
.eg-line { opacity: .85; --w: 2px; }
.eg-ring {
  position: absolute; inset: 0; overflow: hidden; padding: var(--w);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.eg-ring i {
  position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax;
  background: conic-gradient(#F28482, #E9C46A, #9BD18B, #8CCBCB, #B6A8E8, #EBA7A0, #F28482);
  animation: egspin 18s linear infinite; will-change: transform;
}
@keyframes egspin { to { transform: rotate(360deg); } }
/* スマホ・タブレット（Contact ボタンが出ない幅）：枠を細く（デスクトップの約5分の3）、ヘッダーより下の層に置く */
@media (max-width: 1023px) {
  .edge-glow { z-index: 90; }
  .eg-soft { filter: blur(3.6px); --w: 5.4px; }
  .eg-line { --w: 1.2px; }
}

@media (prefers-reduced-motion: reduce) {
  .send-ring i, .send-plane svg, .send-trail { animation: none !important; }
  .btn-send.is-sent .send-plane { visibility: hidden; }
  .eg-ring i { animation: none; }
  .hero { height: auto; }
  .hero-pin { position: relative; height: auto; min-height: 100svh; }
  .role-fig .flow, .hero-scroll::after, .hero-prism, .contact-en::after, .glints i { animation: none; }
  .glints { display: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ====== 2026-10-29 構成変更（参考：sparkycreate.com／act-trading.com）。人物の写真は使わない ====== */
/* 見出しの下に短い光の線（参考サイトの見出し下の短い線を、プリズムで） */
.sec-head .sec-ja::before { content: ""; display: block; width: 40px; height: 2px; margin-bottom: var(--s3); background: linear-gradient(90deg, var(--prism-gold), var(--prism-rose), var(--prism-lilac), var(--prism-aqua)); }

/* 会社概要：上の余白は Our Role の下余白だけ */
.company { padding-top: 0; }

/* お問い合わせ：入口を2つに（参考：フォームの入口を用途で分ける） */
.contact-doors { display: grid; gap: var(--s5); margin: var(--s7) 0 var(--s8); }
.door { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 72px; padding: var(--s4) var(--s5); border: 1px solid var(--line-dark); background: #FFFFFF0A; transition: box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.door:hover { border-color: var(--prism-gold); box-shadow: 0 0 24px #E9C46A33; }
.door-t { font-family: var(--ff-min); font-weight: 500; letter-spacing: var(--tr-min); }
.door-t.en { font-family: var(--ff-en); font-size: 1.125rem; letter-spacing: var(--tr-en); }
.door .arr { transition: transform var(--t-fast) var(--ease); }
.door:hover .arr { transform: translateX(6px); }
.door-sub { margin-top: var(--s2); font-size: var(--fs-small); color: var(--on-dark-sub); }
.contact-doors { max-width: 520px; }

.company { border-top: 0; }

/* 見出しに半円の虹がふわっとかかる（10/29 打ち合わせの案。外すときは main.js の rainbow ブロックごと消す） */
.sec-en.has-rainbow { position: relative; display: inline-block; }
.rainbow { position: absolute; left: var(--rx, 50%); bottom: .16em; width: 2.1em; height: 1.05em; transform: translateX(-50%); z-index: -1; pointer-events: none; overflow: visible; filter: blur(.075em); opacity: .8; }
.rainbow path { fill: none; stroke-width: 11; opacity: .85; }
.role > .wrap, .company-grid { isolation: isolate; }

/* 送信ボタン：虹の輪郭（画面の縁の光と同じ）＋押すと紙飛行機が飛ぶ */
.btn-send {
  position: relative; display: flex; align-items: center; justify-content: center; gap: var(--s3);
  width: 100%; max-width: 320px; min-height: 64px; margin-top: var(--s4); padding: 0 var(--s6);
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--on-dark); cursor: pointer;
  font-family: var(--ff-min); font-weight: 500; font-size: 1rem; letter-spacing: var(--tr-min);
}
.btn-send:disabled { cursor: wait; }
.send-ring {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.send-ring i {
  position: absolute; left: 50%; top: 50%; width: 400px; height: 400px; margin: -200px 0 0 -200px;
  background: conic-gradient(#F28482, #E9C46A, #9BD18B, #8CCBCB, #B6A8E8, #EBA7A0, #F28482);
  animation: egspin 6s linear infinite;
}
.send-fill {
  position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, var(--prism-gold), var(--prism-rose), var(--prism-lilac), var(--prism-aqua));
  transition: opacity var(--t-fast) var(--ease);
}
.btn-send:hover .send-fill, .btn-send:focus-visible .send-fill { opacity: .25; }
.send-t { position: relative; }
.send-plane { position: relative; flex: none; width: 24px; height: 24px; }
.send-plane svg { width: 100%; height: 100%; overflow: visible; transition: transform var(--t-fast) var(--ease); }
.btn-send:hover .send-plane svg { transform: translate(2px, -2px); }
.send-trail { position: absolute; right: 50%; top: 50%; width: 0; height: 2px; border-radius: 2px; transform-origin: 100% 50%; transform: rotate(-26deg); background: linear-gradient(90deg, transparent, var(--prism-aqua), var(--prism-lilac), var(--prism-rose), var(--prism-gold)); }
.btn-send.is-sent .send-plane svg { animation: send-fly 1s cubic-bezier(.45, 0, .75, .5) forwards; }
.btn-send.is-sent .send-trail { animation: send-trail 1s cubic-bezier(.45, 0, .75, .5) forwards; }
@keyframes send-fly {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  18% { transform: translate(-7px, 4px) rotate(-8deg); opacity: 1; }
  100% { transform: translate(190px, -96px) rotate(6deg) scale(.7); opacity: 0; }
}
@keyframes send-trail {
  0% { width: 0; opacity: 0; transform: translate(0, 0) rotate(-26deg); }
  18% { width: 0; opacity: 1; transform: translate(-7px, 4px) rotate(-26deg); }
  70% { opacity: 1; }
  100% { width: 150px; opacity: 0; transform: translate(190px, -96px) rotate(-26deg); }
}

/* ---------- 10/31 修正：トップのコピーは日英とも横書き。SPは写真の上、PCは写真に重ねる ---------- */
.logo-tag { opacity: .85; }
html[lang] .hero-copy { writing-mode: horizontal-tb; transform: none; left: var(--gutter); right: var(--gutter); top: calc(var(--hdr-h) + var(--s5)); }
html[lang="ja"] .hero-copy { font-size: clamp(1.25rem, 5.4vw, 1.75rem); line-height: 1.6; letter-spacing: 0.06em; }
html[lang="ja"] .hero-copy span + span { padding-top: 0; }
@media (min-width: 1024px) {
  html[lang] .hero-copy {
    left: auto; right: calc(50% - var(--fw0, 860px) / 2 + var(--s6)); top: calc(50% + var(--fh0, 540px) / 2 - var(--s6));
    transform: translateY(-100%); max-width: calc(var(--fw0, 860px) * .7);
    color: var(--on-dark); text-shadow: 0 1px 14px rgba(20, 16, 12, .7), 0 0 2px rgba(20, 16, 12, .35);
  }
  html[lang="ja"] .hero-copy { font-size: clamp(1.75rem, 2.2vw, 2.25rem); }
}

/* 2026-10-31 トップ映像：4人とも切らずに映す（拡大しない）／背景はリング照明を中心に */
.hero-img-a { object-position: 50% 50%; transform: none; }
.nowrap { white-space: nowrap; }
.hero-fade { display: none; }
@media (min-width: 768px) {
  .hero-fade { display: block; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #1a1611e6 100%); opacity: calc(1 - var(--swap, 1)); pointer-events: none; }
  html[lang] .hero-copy { text-shadow: 0 1px 12px #1a161199; }
}
.hero-img-b { object-position: 38% 50%; }


/* 2026-10-31 Philosophyが画面に収まらないときの詰めた組み（main.js の fitStatement が付ける） */
html[lang] .statement.is-fit { grid-template-columns: 1fr; grid-template-rows: auto; align-content: center; align-items: start; gap: var(--s3); padding: calc(var(--hdr-h) + var(--s3)) var(--gutter) var(--s3); }
html[lang] .statement.is-fit .statement-label { grid-column: 1; grid-row: 1; font-size: 0.875rem; }
html[lang] .statement.is-fit .statement-title { grid-column: 1; grid-row: 2; writing-mode: horizontal-tb; font-size: var(--st-title, 1.25rem); line-height: 1.4; letter-spacing: 0.04em; }
html[lang] .statement.is-fit .statement-title > span { white-space: normal; margin: 0; padding: 0; }
html[lang] .statement.is-fit .statement-l,
html[lang] .statement.is-fit .statement-r { grid-column: 1; justify-self: start; align-self: start; max-width: none; font-size: var(--st-fs, 0.875rem); line-height: 1.75; }
html[lang] .statement.is-fit .statement-l { grid-row: 3; }
html[lang] .statement.is-fit .statement-r { grid-row: 4; }
html[lang] .statement.is-fit br { display: none; }


/* 2026-11-02 コピーは日英共通の英語で、全幅とも動画の小窓の中（右下）に重ねる */
.hero-fade { display: block; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #1a1611e6 100%); opacity: calc(1 - var(--swap, 1)); pointer-events: none; }
html[lang] .hero-pin .hero-copy {
  left: auto; right: calc(50% - var(--fw0, 860px) / 2 + var(--s4)); top: calc(50% + var(--fh0, 540px) / 2 - var(--s4));
  transform: translateY(-100%); max-width: none; writing-mode: horizontal-tb;
  font-family: var(--ff-en); font-weight: 300; font-size: clamp(1.125rem, 4.8vw, 1.5rem); line-height: 1.3; letter-spacing: 0;
  color: var(--on-dark); text-shadow: 0 1px 12px #1a161199;
}
html[lang] .hero-pin .hero-copy span { display: block; white-space: nowrap; padding: 0; }
@media (min-width: 1024px) {
  html[lang] .hero-pin .hero-copy { right: calc(50% - var(--fw0, 860px) / 2 + var(--s6)); top: calc(50% + var(--fh0, 540px) / 2 - var(--s6)); font-size: clamp(1.5rem, 1.4vw + 1rem, 2.25rem); }
}

/* 2026-11-02 ヘッダーのドロップシャドウ */
.hdr { box-shadow: 0 4px 16px rgba(0, 0, 0, .28); }

/* 2026-11-02 英語コピーは動画の小窓の中央下。下端からの隙間は --copy-gap で調整 */
.hero-pin { --copy-gap: var(--s5); }
html[lang] .hero-pin .hero-copy { right: 50%; top: calc(50% + var(--fh0, 540px) / 2 - var(--copy-gap)); transform: translate(50%, -100%); text-align: center; text-shadow: 0 1px 3px #1a1611b3, 0 2px 18px #1a1611cc; }
.hero-fade { background: linear-gradient(180deg, transparent 50%, #1a1611d9 100%); }
@media (min-width: 1024px) { .hero-pin { --copy-gap: var(--s7); } }
