/* Y'SBRAIN GROUP — 4社共通のスタイル。
   HTML は scripts/ysbrain/build.py が書き出す（直接編集しない）。
   アラビア語版は <html dir="rtl">。左右は margin-inline などの論理プロパティで書き、
   物理的な左右が要る箇所だけ [dir="rtl"] で反転する。 */

:root {
  --navy-950: #070d24;
  --navy-900: #0b1433;
  --navy-800: #131e48;
  --navy-700: #1c2b63;
  --blue: #3a6ee0;
  --blue-soft: #8fb0f2;
  --steel: #9aa8c4;
  --gold: #c9a45c;
  --gold-light: #ead39a;
  --paper: #ffffff;
  --mist: #f2f4f8;
  --line: #dde2ec;
  --ink: #0e1530;
  --ink-soft: #4a5370;
  --ok-on-dark: rgba(255, 255, 255, 0.78);

  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --serif-ja: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
}

html[lang="en"] { --sans: "Inter", "Helvetica Neue", Arial, sans-serif; }
html[lang="ar"] {
  --sans: "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --serif-ja: "IBM Plex Sans Arabic", "Geeza Pro", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  /* 日本語のはみ出し対策：keep-all は使わない（failures F-008） */
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}
html[lang="ar"] body { letter-spacing: 0; line-height: 2; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.ja-phrase { word-break: auto-phrase; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding-inline: var(--gutter);
  color: #fff;
  background: linear-gradient(to bottom, rgba(7, 13, 36, 0.55), rgba(7, 13, 36, 0));
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-solid { background: rgba(7, 13, 36, 0.94); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.brand img { height: 42px; width: auto; }
.brand-name { font-size: 12px; letter-spacing: 0.08em; line-height: 1.4; color: var(--ok-on-dark); max-width: 16em; }
.gnav ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.gnav a { text-decoration: none; font-size: 13px; letter-spacing: 0.08em; opacity: 0.88; padding-block: 6px; border-bottom: 1px solid transparent; }
.gnav a:hover { opacity: 1; border-color: var(--gold); }
.langs { display: flex; gap: 4px; font-size: 12px; }
.langs a, .langs span {
  text-decoration: none; padding: 4px 9px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 2px; line-height: 1.4;
}
.langs span { background: #fff; color: var(--navy-900); border-color: #fff; }
.langs a:hover { border-color: var(--gold); }
.langs [lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; height: 1.5px; background: currentColor; margin-block: 6px; transition: transform 0.45s cubic-bezier(.65, 0, .35, 1); }
/* 開くと2本線が × に。線の中心の間隔が 7.5px なので半分ずつ寄せて回す */
.site-header.open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
.site-header.open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- hero A: タクマ型（濃紺の三角面＋写真＋中央の1行） ---------- */
.hero-a {
  position: relative; min-height: max(640px, 100svh); overflow: hidden;
  display: grid; place-items: center; text-align: center; color: #fff;
  background: var(--navy-900);
}
.hero-a .photo { position: absolute; inset: 0; background-size: cover; background-position: center 60%; animation: slowzoom 24s ease-out both; }
.hero-a .shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(7, 13, 36, 0.15), rgba(7, 13, 36, 0.62) 75%); }
.hero-a svg.facets { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-a .copy { position: relative; padding: calc(var(--header-h) + 20px) var(--gutter) 80px; }
.eyebrow-light { font-size: 12px; letter-spacing: 0.42em; color: var(--gold-light); margin-bottom: 26px; }
.hero-a h1 {
  font-family: var(--serif-en); font-weight: 600; font-size: clamp(54px, 10vw, 148px); line-height: 1; letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 6px 32px rgba(7, 13, 36, 0.45);
}
.hero-a .sub { margin-top: 28px; font-family: var(--serif-ja); font-size: clamp(17px, 2.1vw, 26px); letter-spacing: 0.24em; }
html[lang="en"] .hero-a .sub { font-family: var(--serif-en); letter-spacing: 0.12em; font-size: clamp(19px, 2.3vw, 28px); }
html[lang="ar"] .hero-a .sub { letter-spacing: 0; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.4em; color: rgba(255, 255, 255, 0.7); }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 44px; margin: 10px auto 0; background: linear-gradient(rgba(255, 255, 255, 0.8), transparent); animation: cue 2.2s ease-in-out infinite; }
.img-note { position: absolute; bottom: 14px; inset-inline-end: var(--gutter); font-size: 10px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.06em; }

/* ---------- hero B: 自然電力型（写真を全面に・英字の大見出し） ---------- */
.hero-b {
  position: relative; min-height: max(600px, 92svh); overflow: hidden; color: #fff; background: var(--navy-900);
  display: flex; align-items: flex-end;
}
.hero-b .photo { position: absolute; inset: 0; background-size: cover; background-position: center; animation: slowzoom 24s ease-out both; }
.hero-b .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 13, 36, 0.92) 0%, rgba(7, 13, 36, 0.35) 55%, rgba(7, 13, 36, 0.25) 100%); }
.hero-b .copy { position: relative; padding-block: 0 clamp(64px, 10vh, 120px); }
.hero-b .brand-en { font-family: var(--serif-en); font-weight: 600; font-size: clamp(42px, 7.4vw, 108px); line-height: 0.98; letter-spacing: 0.01em; direction: ltr; }
html[dir="rtl"] .hero-b .brand-en { text-align: right; }
.hero-b h1 { margin-top: 26px; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(20px, 2.6vw, 32px); letter-spacing: 0.14em; }
html[lang="en"] .hero-b h1 { font-family: var(--serif-en); letter-spacing: 0.04em; font-size: clamp(22px, 2.8vw, 34px); }
html[lang="ar"] .hero-b h1 { letter-spacing: 0; }
.hero-b .company { margin-top: 14px; font-size: 13px; letter-spacing: 0.12em; color: var(--ok-on-dark); }
.hero-b .gold-rule { width: 64px; height: 2px; background: var(--gold); margin-bottom: 26px; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(84px, 11vw, 150px); }
.sec-mist { background: var(--mist); }
.sec-dark { background: var(--navy-900); color: #fff; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--serif-en); font-size: 15px; letter-spacing: 0.32em; color: var(--blue); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.sec-dark .eyebrow { color: var(--gold-light); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-family: var(--sans); font-size: 14px; }
.sec-title { margin-top: 18px; font-family: var(--serif-ja); font-weight: 600; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.5; letter-spacing: 0.06em; }
html[lang="en"] .sec-title { font-family: var(--serif-en); letter-spacing: 0.01em; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.2; }
html[lang="ar"] .sec-title { letter-spacing: 0; line-height: 1.6; font-weight: 700; }
.lead { margin-top: 22px; max-width: 46em; color: var(--ink-soft); }
.sec-dark .lead { color: var(--ok-on-dark); }
.note { margin-top: 18px; font-size: 12px; color: var(--ink-soft); }
.sec-dark .note { color: rgba(255, 255, 255, 0.6); }

/* statement */
.statement { text-align: center; }
.statement h2 { font-family: var(--serif-ja); font-weight: 600; font-size: clamp(24px, 3.3vw, 42px); line-height: 1.75; letter-spacing: 0.1em; }
html[lang="en"] .statement h2 { font-family: var(--serif-en); letter-spacing: 0.01em; line-height: 1.3; font-size: clamp(30px, 4vw, 52px); }
html[lang="ar"] .statement h2 { letter-spacing: 0; line-height: 1.8; }
.statement p { margin: 34px auto 0; max-width: 40em; color: var(--ink-soft); font-size: 17px; text-align: start; }
.statement .note { margin-top: 14px; }

/* message（代表あいさつ） */
.message { position: relative; overflow: hidden; }
.message .spiral { position: absolute; inset-block: 0; inset-inline-end: 0; width: 46%; background-size: cover; background-position: right center; opacity: 0.9; }
html[dir="rtl"] .message .spiral { transform: scaleX(-1); }
.message .spiral::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 0%, rgba(11, 20, 51, 0) 45%); }
.message .container { position: relative; }
.message .body { max-width: 640px; }
.message .body p { margin-top: 28px; color: var(--ok-on-dark); }
.signature { margin-top: 40px; display: flex; align-items: baseline; gap: 18px; color: #fff; }
.signature small { font-size: 13px; color: var(--ok-on-dark); letter-spacing: 0.1em; }
.signature strong { font-family: var(--serif-ja); font-size: 26px; font-weight: 600; letter-spacing: 0.2em; }
html[lang="en"] .signature strong { font-family: var(--serif-en); letter-spacing: 0.04em; }
html[lang="ar"] .signature strong { letter-spacing: 0; font-size: 22px; }

/* BIOGASPARK */
.bgp-brand { display: inline-block; background: #fff; padding: 14px 20px; border-radius: 4px; margin-bottom: 26px; }
.bgp-brand img { height: 40px; width: auto; }
.purposes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); margin-top: 56px; }
.purpose { background: var(--navy-900); color: #fff; padding: 34px 28px 30px; position: relative; overflow: hidden; }
.purpose::after { content: ""; position: absolute; inset-block-start: 0; inset-inline-end: 0; width: 90px; height: 90px; background: linear-gradient(135deg, transparent 50%, var(--navy-700) 50%); }
html[dir="rtl"] .purpose::after { background: linear-gradient(225deg, transparent 50%, var(--navy-700) 50%); }
.purpose .num { font-family: var(--serif-en); font-size: 54px; line-height: 1; color: var(--gold); }
.purpose p { margin-top: 16px; font-size: 17px; font-weight: 500; line-height: 1.7; }
.purposes-label { margin-top: 64px; font-size: 13px; letter-spacing: 0.2em; color: var(--ink-soft); }
html[lang="ar"] .purposes-label { letter-spacing: 0; }
.purposes-label + .purposes { margin-top: 18px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 18px; }
.feature { background: #fff; padding: clamp(28px, 3.4vw, 44px); }
.feature .num { font-family: var(--serif-en); font-size: 15px; letter-spacing: 0.2em; color: var(--blue); }
.feature h3 { margin-top: 10px; font-size: 20px; line-height: 1.6; font-weight: 700; }
.feature p { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }

/* system flow */
.flow { margin-top: 72px; }
.flow h3 { font-size: 20px; font-weight: 700; }
.flow ol { margin-top: 26px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.flow li { position: relative; counter-increment: step; }
.flow li .ph { aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: var(--navy-800); }
.flow li .cap { margin-top: 12px; font-size: 14px; font-weight: 700; line-height: 1.55; }
.flow li .cap::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif-en); font-weight: 600; color: var(--blue); font-size: 14px; letter-spacing: 0.12em; }
.flow li .en { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-soft); font-weight: 400; letter-spacing: 0.02em; }
/* 工程の結論：ボタンに見えないよう帯にする（2026-11-02。矢印はユーザー判断で無し） */
.flow-out {
  position: relative; margin-top: 40px; padding: 30px clamp(22px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(150px, 0.7fr) 1fr 1fr; gap: 20px clamp(24px, 3vw, 48px); align-items: start;
  background: var(--navy-900); color: #fff;
}
.flow-out-title { font-size: 15px; font-weight: 700; line-height: 1.6; padding-block-start: 6px; color: var(--gold-light); letter-spacing: 0.06em; }
html[lang="ar"] .flow-out-title { letter-spacing: 0; }
.flow-out-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.flow-out-item .ic { inline-size: 36px; block-size: 36px; color: var(--blue-soft); }
.flow-out-item .name { font-size: 20px; font-weight: 700; line-height: 1.5; }
.flow-out-item .desc { margin-top: 6px; font-size: 13.5px; line-height: 1.8; color: var(--ok-on-dark); }
.flow-out-sub { grid-column: 2 / -1; padding-block-start: 16px; border-block-start: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: rgba(255, 255, 255, 0.62); }

/* business（事業内容） */
.biz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.biz li { display: flex; gap: 18px; align-items: baseline; padding: 26px 24px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: #fff; min-height: 104px; }
.biz .num { font-family: var(--serif-en); font-weight: 600; font-size: 26px; color: var(--blue); line-height: 1; min-width: 1.6em; }
.biz p { font-size: 16px; font-weight: 500; line-height: 1.65; }
.biz.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* group cards（自然電力型の写真カード） */
.group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; padding: 26px 22px; color: #fff; text-decoration: none; overflow: hidden; background: var(--navy-800); isolation: isolate; }
.gcard .ph { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.9s cubic-bezier(.2, .7, .2, 1); z-index: -2; }
.gcard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 13, 36, 0.95) 8%, rgba(7, 13, 36, 0.2) 70%); z-index: -1; }
.gcard:hover .ph { transform: scale(1.06); }
.gcard img.logo { height: 34px; width: auto; max-width: 100%; object-fit: contain; object-position: left; margin-bottom: 18px; }
html[dir="rtl"] .gcard img.logo { object-position: right; }
.gcard .role { font-size: 12px; letter-spacing: 0.12em; color: var(--gold-light); }
html[lang="ar"] .gcard .role { letter-spacing: 0; }
.gcard .name { margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.gcard .more { margin-top: 18px; font-size: 12px; letter-spacing: 0.16em; display: flex; align-items: center; gap: 10px; }
.gcard .more::after { content: ""; width: 26px; height: 1px; background: currentColor; transition: width 0.4s; }
.gcard:hover .more::after { width: 44px; }
.gcard.current { outline: 1px solid var(--gold); outline-offset: -1px; }
.gcard.current .more { color: var(--gold-light); }

/* organization（2026-10-31 作り直し：Codex web-design レビューを反映）
   箱を重ねず、持株会社→3社は実際に線でつなぎ、社内組織は番号＋罫線の一覧にする。 */
.oc-group-root, .oc-companies, .oc-chain, .oc-units, .oc-departments { list-style: none; margin: 0; padding: 0; }
.oc-group-root li, .oc-companies li, .oc-chain li, .oc-units li { min-inline-size: 0; }
/* Cormorant の既定は旧式数字で「01」が「o1」に見えるので、番号は全部ライニング数字にする */
.oc-idx, .purpose .num, .feature .num, .biz .num, .quals li b, .quals-total strong, .flow li .cap::before { font-variant-numeric: lining-nums; }
.oc-idx { font-family: var(--serif-en); font-weight: 600; font-size: 18px; line-height: 1.6; color: #6f86c4; letter-spacing: 0.04em; font-variant-numeric: lining-nums tabular-nums; }

/* 持株会社：濃紺のパネル（タクマ型の斜めの面） */
.oc-holding {
  position: relative; overflow: hidden;
  inline-size: min(100%, 720px); margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 32px);
  padding: clamp(26px, 4vw, 40px) clamp(24px, 4vw, 48px);
  color: #fff; background: var(--navy-900);
}
.oc-holding::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(128deg, transparent 80%, rgba(28, 43, 99, 0.85) 80%);
}
html[dir="rtl"] .oc-holding::before { background: linear-gradient(232deg, transparent 80%, rgba(28, 43, 99, 0.85) 80%); }
.oc-holding > * { position: relative; }
.oc-holding img { block-size: 64px; inline-size: auto; flex: none; }
.oc-holding-name { font-size: clamp(19px, 2vw, 24px); font-weight: 700; line-height: 1.5; }
.oc-holding-role { margin-block-start: 6px; color: #cbd3e4; font-size: 14px; letter-spacing: 0.04em; line-height: 1.7; }
html[lang="ar"] .oc-holding-role { letter-spacing: 0; }

/* 持株会社から3社へ：縦線→横の分岐→各社への縦線 */
.oc-companies { --gap: 20px; --drop: 32px; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-block-start: calc(var(--drop) * 2); }
.oc-companies::before { content: ""; position: absolute; inset-block-start: calc(var(--drop) * -2); inset-inline-start: 50%; inline-size: 1px; block-size: var(--drop); background: var(--steel); }
.oc-companies > li { position: relative; }
.oc-companies > li::before { content: ""; position: absolute; inset-block-start: calc(var(--drop) * -1); inset-inline: calc(var(--gap) / -2); block-size: 1px; background: var(--steel); }
.oc-companies > li:first-child::before { inset-inline-start: 50%; }
.oc-companies > li:last-child::before { inset-inline-end: 50%; }
.oc-companies > li::after { content: ""; position: absolute; inset-block-start: calc(var(--drop) * -1); inset-inline-start: 50%; inline-size: 1px; block-size: var(--drop); background: var(--steel); }
.oc-company { block-size: 100%; padding: 24px 26px 26px; background: var(--mist); border-block-start: 1px solid var(--line); }
.oc-company-name { margin-block-start: 8px; font-size: 17px; font-weight: 700; line-height: 1.6; }
.oc-company-role { margin-block-start: 8px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }

/* 社内の組織 */
.oc-internal { margin-block-start: clamp(48px, 5vw, 64px); padding-block-start: 32px; border-block-start: 1px solid var(--line); }
.oc-title { margin-block-end: 24px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.6; }
.oc-node { inline-size: min(100%, 420px); margin-inline: auto; padding: 14px 24px; text-align: center; font-size: 15px; font-weight: 700; line-height: 1.6; }
.oc-node--meeting { background: transparent; color: var(--ink-soft); font-weight: 500; border: 1px solid var(--line); }
.oc-node--director { background: var(--navy-900); color: #fff; }
.oc-node--planning { background: var(--navy-700); color: #fff; }
.oc-chain .oc-chain { position: relative; padding-block-start: 22px; }
.oc-chain .oc-chain::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 50%; inline-size: 1px; block-size: 22px; background: var(--steel); }

/* 本部の一覧：PC は2列。番号＋本部名＋部署（中黒の並び） */
.oc-units { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); margin-block-start: 30px; border-block-start: 1px solid var(--navy-900); }
.oc-units::before { content: ""; position: absolute; inset-block-start: -31px; inset-inline-start: 50%; inline-size: 1px; block-size: 30px; background: var(--steel); }
.oc-unit { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding-block: 24px; border-block-end: 1px solid var(--line); }
.oc-unit-name { font-size: 17px; font-weight: 700; line-height: 1.6; }
.oc-departments { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-block-start: 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.oc-departments > li { position: relative; padding-inline-start: 12px; }
.oc-departments > li::before { content: ""; position: absolute; inset-block-start: 0.82em; inset-inline-start: 0; inline-size: 4px; block-size: 4px; border-radius: 50%; background: var(--blue-soft); }

/* 各社ページは淡色のセクションに置くので、外枠の線だけ見せる */
.sec-mist .oc-node--meeting { background: #fff; }

/* qualifications */
.quals { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.quals li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; }
.quals li b { font-family: var(--serif-en); font-weight: 600; font-size: 18px; color: var(--blue); min-width: 1.4em; text-align: end; }
.quals-sub { grid-column: 1 / -1; margin-top: 40px; font-weight: 700; font-size: 15px; }
.quals-total { margin-top: 36px; display: flex; align-items: baseline; gap: 16px; justify-content: flex-end; }
.quals-total strong { font-family: var(--serif-en); font-size: 64px; line-height: 1; color: var(--navy-900); }
.quals-total small { color: var(--ink-soft); font-size: 13px; }
.quals-note { margin-top: 12px; text-align: end; color: var(--ink-soft); font-size: 13px; }

/* company profile */
.profile { border-top: 2px solid var(--navy-900); }
.profile > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 6px; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 700; color: var(--navy-900); }
.profile dd { white-space: pre-line; }
.profile dd .addr + .addr { margin-top: 14px; }
.profile dd .addr b { display: block; font-size: 13px; color: var(--blue); font-weight: 700; }
.profile dd .officer + .officer { margin-top: 6px; }

/* contact */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.22; }
.contact .container { position: relative; }
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.contact p { margin-top: 22px; color: var(--ok-on-dark); }
.mail {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 40px; padding: 22px 40px;
  border: 1px solid rgba(255, 255, 255, 0.5); text-decoration: none; font-family: var(--serif-en); font-size: clamp(20px, 3vw, 30px); letter-spacing: 0.04em; direction: ltr;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.mail:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.mail svg { width: 26px; height: 26px; flex: none; }
.contact .desk { margin-top: 24px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* footer */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.72); padding: 64px 0 36px; font-size: 13px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.foot-top img { height: 48px; width: auto; }
.foot-group { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
.foot-group a { text-decoration: none; }
.foot-group a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, 0.5); }

/* about (sub pages) */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about .ph { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.about p { margin-top: 22px; color: var(--ink-soft); font-size: 17px; }

/* draft bar（確認用。公開時に外す） */
.draft-bar { position: fixed; inset-inline-start: 12px; bottom: 12px; z-index: 60; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 11px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }

@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes cue { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-a .photo, .hero-b .photo, .scroll-cue::after { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .gnav, .gnav li, .site-header.open .gnav, .site-header.open .gnav li, .menu-btn span { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gcard { min-height: 340px; }
  .flow ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .biz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .menu-btn { display: block; order: 3; }
  /* メニュー：上から降りてくる。閉じるときは visibility を遅らせてフェードを見せ切る */
  .gnav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: rgba(7, 13, 36, 0.97);
    padding: 12px var(--gutter) 28px;
    visibility: hidden; opacity: 0; transform: translateY(-12px); pointer-events: none;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2, .7, .2, 1), visibility 0s linear 0.45s;
  }
  .site-header.open .gnav {
    visibility: visible; opacity: 1; transform: none; pointer-events: auto;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2, .7, .2, 1), visibility 0s;
  }
  .site-header.open { background: rgba(7, 13, 36, 0.97); }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li { opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
  .site-header.open .gnav li { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.55s cubic-bezier(.2, .7, .2, 1); }
  .site-header.open .gnav li:nth-child(2) { transition-delay: 0.05s; }
  .site-header.open .gnav li:nth-child(3) { transition-delay: 0.1s; }
  .site-header.open .gnav li:nth-child(4) { transition-delay: 0.15s; }
  .site-header.open .gnav li:nth-child(5) { transition-delay: 0.2s; }
  .site-header.open .gnav li:nth-child(6) { transition-delay: 0.25s; }
  .gnav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; }
  .brand-name { display: none; }
  .message .spiral { position: relative; width: 100%; height: 260px; inset: auto; margin-top: -24px; }
  .message { display: flex; flex-direction: column-reverse; padding-bottom: 0; }
  .message .container { padding-bottom: 84px; }
  .message .spiral::after { background: linear-gradient(0deg, var(--navy-900) 0%, rgba(11, 20, 51, 0) 60%); }
  .purposes { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .quals { grid-template-columns: 1fr; }
  .profile > div { grid-template-columns: 1fr; gap: 6px; padding: 20px 2px; }
  .oc-companies { grid-template-columns: 1fr; gap: 0; margin-block-start: 32px; padding-inline: 24px; background: var(--mist); }
  .oc-companies::before { inset-block-start: -32px; block-size: 32px; }
  .oc-companies > li::before, .oc-companies > li::after { display: none; }
  .oc-company { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); column-gap: 4px; align-items: baseline; padding: 20px 0; background: transparent; border-block-start: 0; }
  .oc-company .oc-idx { grid-row: span 2; }
  .oc-company-name { margin-block-start: 0; }
  .oc-companies > li + li { border-block-start: 1px solid var(--line); }
  .oc-units { grid-template-columns: 1fr; }
  .flow-out { grid-template-columns: 1fr; }
  .flow-out-sub { grid-column: auto; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand img { height: 34px; }
  .langs a, .langs span { padding: 3px 7px; }
  .site-header { gap: 12px; }
  .group { grid-template-columns: 1fr; }
  .gcard { min-height: 260px; }
  .flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz, .biz.wide { grid-template-columns: 1fr; }
  .biz li { min-height: 0; padding: 20px 18px; }
  .mail { padding: 18px 20px; font-size: 18px; }
  .hero-a .sub { letter-spacing: 0.12em; }
  .foot-group { grid-template-columns: 1fr; }
  .oc-holding { flex-direction: column; text-align: center; }
  .oc-holding img { block-size: 52px; }
  .oc-unit { grid-template-columns: 36px minmax(0, 1fr); padding-block: 20px; }
  .oc-internal { margin-block-start: 48px; padding-block-start: 28px; }
  html[lang="ja"] .oc-departments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-block-start: 8px; line-height: 1.7; }
}
