/* inclutia corporate site — shared stylesheet */

:root {
  --ink: #0a1128;
  --paper: #faf9f6;
  --paper-raised: #ffffff;
  --accent: #0048a8;
  --accent-deep: #12909f;
  --accent-green: #5fae22;
  --accent-amber: #e29b00;
  --accent-orange: #e2903a;
  --line: #e1e3e8;
  --muted: #566079;
  --shadow: 0 1px 2px rgba(10,17,40,0.06), 0 12px 32px rgba(10,17,40,0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f2f5;
    --paper: #0a1128;
    --paper-raised: #111c3e;
    --accent: #5490dd;
    --accent-deep: #3fc4d6;
    --accent-green: #8cd84a;
    --accent-amber: #ffc344;
    --accent-orange: #f2a866;
    --line: #223055;
    --muted: #93a0be;
    --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 12px 32px rgba(0,0,0,0.4);
  }
}
:root[data-theme="dark"] {
  --ink: #f1f2f5; --paper: #0a1128; --paper-raised: #111c3e;
  --accent: #5490dd; --accent-deep: #3fc4d6; --accent-green: #8cd84a; --accent-amber: #ffc344; --accent-orange: #f2a866;
  --line: #223055; --muted: #93a0be;
  --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 12px 32px rgba(0,0,0,0.4);
}
:root[data-theme="light"] {
  --ink: #0a1128; --paper: #faf9f6; --paper-raised: #ffffff;
  --accent: #0048a8; --accent-deep: #12909f; --accent-green: #5fae22; --accent-amber: #e29b00; --accent-orange: #e2903a;
  --line: #e1e3e8; --muted: #566079;
  --shadow: 0 1px 2px rgba(10,17,40,0.06), 0 12px 32px rgba(10,17,40,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", -apple-system, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px; }
p { margin: 0 0 18px; }
.eyebrow {
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; font-weight: 700;
  color: var(--accent-deep); display: inline-block; margin-bottom: 16px;
}

/* ---- Header ---- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* padding-left は 0。ロゴPNGは左に幅の 7% ぶんの透明余白を持つので、
   height:80px（=幅160px）なら字面は箱の左から 11px の位置に来る。
   つまり「i」は本文カラム（28px）より 17px 左に出る＝わずかに版面から
   はみ出した配置。厳密にそろえたいなら padding-left を
   `28px - 0.07 × ロゴ表示幅` にすること（ロゴの高さを変えたら再計算が必要）。
   右は、ナビ最終項目の文字が本文カラムより 28px はみ出す。
   ビューポートが 1176px 未満（= .wrap が画面幅いっぱい）だと画面の端に
   文字が貼り付いて見えるため、右だけ 28px 入れて本文カラムにそろえる。 */
header.site .bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 6px 0; }
/* ---- ヘッダーロゴのライト／ダーク出し分け ----
   ロゴPNGの「inclutia」の文字とタグラインは濃紺（#0A1128）で、ダーク背景ではほぼ見えない。
   そこで文字だけを明色にした logo-horizontal-dark.png を用意し、2枚を CSS で出し分ける。
   （生成方法：明度 0.5 未満の画素＝文字だけを #f1f2f5 に置換。アイコン側の最暗は 0.588 なので
     配色は一切変わらない。alpha は保持するのでアンチエイリアスもそのまま）

   ＜<picture> + <source media> を使っていない理由＞
   picture のソース選択は読み込み時に確定し、**ページを開いたまま OS のテーマが切り替わっても
   追従しない**（macOSの自動切替や手動トグルで、ロゴが濃紺のまま暗転して見えなくなる）。
   CSS のメディアクエリならライブに切り替わり、将来 data-theme のトグルを付けても効く。

   ＜セレクタは必ず `header.site img.logo-*` と書くこと＞
   `header.site .logo-light`（0,2,1）だと、下の `header.site img.logo`（0,2,2）に
   詳細度で負けて **2枚とも表示されたままになる**（実際にそうなった）。
   img を含めて詳細度をそろえ、後勝ちで切り替える。 */
/* ヘッダーの高さはほぼこのロゴの高さで決まる（+ .bar の上下 padding 6px + 下境界1px）。
   100px だと追従ヘッダーとして高すぎたので 80px に。→ ヘッダー全体で 93px */
header.site img.logo { height: 80px; width: auto; display: block; }
header.site img.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  header.site img.logo-light { display: none; }
  header.site img.logo-dark { display: block; }
}
:root[data-theme="dark"] header.site img.logo-light { display: none; }
:root[data-theme="dark"] header.site img.logo-dark { display: block; }
:root[data-theme="light"] header.site img.logo-light { display: block; }
:root[data-theme="light"] header.site img.logo-dark { display: none; }
header.site nav { display: flex; gap: 28px; }
header.site nav a {
  font-size: 13.5px; color: var(--muted); text-decoration: none; font-weight: 600;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
header.site nav a:hover, header.site nav a:focus-visible { color: var(--ink); border-color: var(--accent); }
header.site nav a.current { color: var(--ink); border-color: var(--accent); }

/* ---- Mobile nav (drawer) ----
   ナビが6項目あり、横並びのままでは 375px 幅でロゴごと画面外にはみ出す
   （実測：ロゴ91px + ナビ269px = 360px でコンテンツ幅ぴったり＝余白なし）。
   820px 以下ではハンバーガー＋ドロワーに切り替える。
   JS を使わない checkbox 方式にしているのは、reveal.js の保険が働く前でも、
   また JS が読めない環境でも必ずメニューを開けるようにするため。 */
.nav-toggle { display: none; }
.nav-burger { display: none; }
@media (max-width: 820px) {
  header.site img.logo { height: 52px; }
  header.site .bar { position: relative; padding: 8px 0; }

  /* チェックボックス本体は見せず、キーボード操作の受け皿としてだけ残す。
     クリックは label（.nav-burger）が受ける。 */
  .nav-toggle {
    display: block; position: absolute; right: 20px; top: 50%;
    width: 44px; height: 44px; margin: -22px 0 0; opacity: 0; pointer-events: none;
  }
  /* ここで .bar の左右 padding を 0 に戻しているのは、ロゴを画面左端まで
     寄せて（PNGの内側余白ぶんで光学的にそろう）横幅を稼ぐため。
     そのぶん三本線は margin-right で本文カラムの右端（= 28px）に合わせる。
     三本線の内側 padding 8px と合わせて 20px + 8px = 28px。 */
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px 8px; cursor: pointer; border-radius: 8px;
    margin-left: auto; margin-right: 20px;
  }
  .nav-burger span {
    display: block; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  header.site nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .28s ease, visibility .28s;
  }
  .nav-toggle:checked ~ nav { max-height: 480px; visibility: visible; }
  header.site nav a {
    font-size: 15px; padding: 15px 28px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
  }
  header.site nav a:last-child { border-bottom: none; }
  header.site nav a:hover,
  header.site nav a:focus-visible,
  header.site nav a.current {
    border-bottom-color: var(--line); border-left-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, transparent);
  }
  header.site nav a:last-child:hover,
  header.site nav a:last-child:focus-visible,
  header.site nav a:last-child.current { border-bottom-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-burger span, header.site nav { transition: none; }
}

/* ---- Hero (top page) ---- */
.hero { position: relative; padding: 116px 0 104px; overflow: hidden; min-height: 620px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero .wrap { width: 100%; }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 68% 46%; z-index: 0;
  transform: scale(1.02);
}
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-scrim .fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 26%, color-mix(in srgb, var(--paper) 35%, transparent) 38%, transparent 56%);
}
.hero-scrim .grade {
  position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0.16;
  background: linear-gradient(115deg, #0048a8 0%, #12909f 35%, #5fae22 68%, #e29b00 100%);
}
@media (prefers-color-scheme: dark) { .hero-scrim .grade { mix-blend-mode: color; opacity: 0.34; } }
:root[data-theme="dark"] .hero-scrim .grade { mix-blend-mode: color; opacity: 0.34; }
:root[data-theme="light"] .hero-scrim .grade { mix-blend-mode: multiply; opacity: 0.16; }
.hero-content { position: relative; z-index: 2; max-width: 620px; }
/* モバイルは縦長になるぶん写真の見える面積が減る。
   以前は上から46%が「完全に不透明な紙色」で、写真の家族がまるごと隠れて
   実質ただのグラデーション背景になっていた。
   文字側は .hero h1 / .hero .lead のテキストシャドウで可読性を確保しているので、
   ここは終始半透明にとどめて写真を見せる。 */
@media (max-width: 760px) {
  .hero-scrim .fade {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--paper) 90%, transparent) 0%,
      color-mix(in srgb, var(--paper) 76%, transparent) 34%,
      color-mix(in srgb, var(--paper) 52%, transparent) 58%,
      color-mix(in srgb, var(--paper) 18%, transparent) 100%);
  }
}
.hero .tag { font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; margin: 0 0 26px; line-height: 1.35;
  text-wrap: balance; letter-spacing: -0.01em;
  text-shadow: 0 2px 20px color-mix(in srgb, var(--paper) 75%, transparent);
}
.hero .lead {
  font-size: 17px; color: var(--ink); max-width: 42ch; margin-bottom: 36px;
  /* モバイルで最終行が「す。」だけになる孤立行が出ていた。
     対応ブラウザでは行分けを最適化して短すぎる最終行を避ける。 */
  text-wrap: pretty;
  /* 文字の 9 割前後が写真の上に乗るため、色を --muted から --ink に濃くし（中間色の草の上で
     3.93:1 → 11.71:1）、締まった白フチを重ねて草の細かい模様との干渉を防ぐ。 */
  text-shadow:
    0 1px 2px  color-mix(in srgb, var(--paper) 92%, transparent),
    0 0  6px   color-mix(in srgb, var(--paper) 88%, transparent),
    0 0  18px  color-mix(in srgb, var(--paper) 70%, transparent);
}

/* ---- Page hero (sub pages) ---- */
.page-hero { position: relative; overflow: hidden; padding: 96px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero .ring { position: absolute; right: -180px; top: 50%; transform: translateY(-50%); width: 520px; height: 520px; pointer-events: none; z-index: 0; }
.page-hero .ring svg { width: 100%; height: 100%; animation: spin 100s linear infinite; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0 0 18px; text-wrap: balance; letter-spacing: -0.01em; }
.page-hero .lead { font-size: 16px; color: var(--muted); max-width: 60ch; margin: 0; }
@media (max-width: 640px) { .page-hero .ring { display: none; } }

/* ---- Ring motion: 「循環」を表す装飾円のアニメーション ---- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

/* 円全体がゆっくり呼吸するように拡縮する */
@keyframes ring-breathe {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(-50%) scale(1.055); }
}
/* 呼吸に合わせた濃淡 */
@keyframes ring-glow {
  0%, 100% { opacity: 0.72; }
  50%      { opacity: 1; }
}
/* 光の弧が円周をめぐる（円周 ≈ 2πr ≈ 1030） */
@keyframes ring-flow-travel {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1030; }
}

.about-ring, .page-hero .ring { animation: ring-breathe 16s ease-in-out infinite; }
.about-ring svg, .page-hero .ring svg { animation: spin 100s linear infinite, ring-glow 16s ease-in-out infinite; }

/* 内側の円は逆回転させ、グラデーションの流れに差をつける */
.ring-inner { transform-box: fill-box; transform-origin: center; animation: spin-reverse 64s linear infinite; }

/* 円周を旅する光の弧 */
.ring-flow {
  stroke-dasharray: 48 982;
  stroke-linecap: round;
  animation: ring-flow-travel 12s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .about-ring, .page-hero .ring,
  .about-ring svg, .page-hero .ring svg,
  .ring-inner, .ring-flow { animation: none; }
  .ring-flow { display: none; }
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700;
  padding: 13px 26px; border-radius: 999px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
/* 枠線に --line(#e1e3e8) を使うと淡すぎてボタンに見えないため、--ink を薄めた線にする */
.btn-ghost {
  color: var(--ink);
  border: 1.5px solid color-mix(in srgb, var(--ink) 20%, transparent);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

/* ヒーローのゴーストボタンは写真の上に乗るので、
   すりガラスの下地を敷いて輪郭と文字を写真から切り離す */
.hero .btn-ghost {
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  backdrop-filter: blur(8px);
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
}
.hero .btn-ghost:hover {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-color: var(--accent);
}

/* ---- Section base ---- */
section { padding: 96px 0; }
section.tight { padding: 80px 0; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; margin: 0 0 22px; text-wrap: balance; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.lead-block { max-width: 620px; }
.lead-block p { color: var(--muted); font-size: 16px; }

/* ---- About / mission ring ---- */
#about, .ring-section { position: relative; overflow: hidden; }
.about-ring {
  position: absolute; right: -260px; top: 50%; transform: translateY(-50%);
  width: 820px; height: 820px; pointer-events: none; z-index: 0;
}
.about-ring svg { width: 100%; height: 100%; animation: spin 100s linear infinite; }
@media (max-width: 980px) { .about-ring { opacity: 0.5; right: -340px; } }
@media (max-width: 640px) { .about-ring { display: none; } }
#about .wrap, .ring-section .wrap { position: relative; z-index: 1; }

.principle-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.principle { border-left: 2px solid var(--line); padding-left: 18px; }
.principle b { display: block; font-size: 14.5px; margin-bottom: 6px; }
.principle span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) { .principle-row { grid-template-columns: 1fr; } }

/* ---- Ecosystem diagram ---- */
.eco-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; margin-top: 8px; }
@media (max-width: 880px) { .eco-wrap { grid-template-columns: 1fr; } }
.eco-diagram svg { width: 100%; height: auto; display: block; }
.eco-copy p { color: var(--muted); font-size: 15.5px; }

/* モバイルでは SVG が約334pxで描画され、viewBox 520 に対して縮尺 0.64。
   ノードの font-size="13" は実効 8.4px となり判読できなかった。
   文字を大きくすると円からはみ出すので、円の半径（CSSの r）も併せて広げる。
   ※ font-size / r ともプレゼンテーション属性より CSS が優先される。 */
@media (max-width: 640px) {
  .eco-svg .eco-node circle { r: 56; }
  .eco-svg .eco-node text { font-size: 19px; }
  .eco-svg .eco-core circle { r: 76; }
  .eco-svg .eco-core text { font-size: 18px; }
}

/* ---- Business cards ---- */
/* 5枚を3カラムに置くと2行目が「2枚＋空き」になって右下が抜ける。
   6分割にして 2+2+2 / 3+3 と割ることで、どちらの行も幅を使い切る。 */
.biz-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 56px; }
.biz-grid > * { grid-column: span 2; }
.biz-grid > *:nth-child(4), .biz-grid > *:nth-child(5) { grid-column: span 3; }
@media (max-width: 900px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-grid > *, .biz-grid > *:nth-child(4), .biz-grid > *:nth-child(5) { grid-column: auto; }
}
@media (max-width: 600px) { .biz-grid { grid-template-columns: 1fr; } }
.biz-card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
  border-top: 3px solid var(--dot);
}
a.biz-card:hover { transform: translateY(-4px); border-color: var(--dot); }
.biz-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.biz-card h3 { font-size: 16.5px; margin: 0; font-weight: 800; }
.biz-card p { font-size: 14.5px; color: var(--muted); margin: 0; flex: 1; }
.biz-card .go { font-size: 12px; font-weight: 700; color: var(--dot); display: flex; align-items: center; gap: 4px; }
.biz-card.disabled { cursor: default; }
.biz-card.disabled .go { color: var(--muted); }

/* ---- Business detail (business.html) ----
   以前は「番号 | 本文」の2カラムで、本文に max-width:66ch が効いていたため
   1120px の版面に対して右半分が丸ごと空き、それが5事業ぶん続いていた。
   「番号 | 事業名 | 本文」の3カラムにして横幅を使い切る。 */
.biz-detail {
  display: grid; grid-template-columns: 84px minmax(180px, 250px) minmax(0, 1fr); gap: 24px;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.biz-detail:last-child { border-bottom: none; }
.biz-detail .num-dot { width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--dot); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--dot); }
.biz-detail h3 { font-size: 20px; margin-bottom: 10px; }
.biz-detail p { color: var(--muted); font-size: 15px; max-width: 62ch; }
/* 900px 以下は事業名と本文を縦に積み、番号だけ左に残す */
@media (max-width: 900px) {
  .biz-detail { grid-template-columns: 84px minmax(0, 1fr); }
  .biz-detail .num-dot { grid-area: 1 / 1; }
  .biz-detail .biz-head { grid-area: 1 / 2; }
  .biz-detail .biz-body { grid-area: 2 / 2; margin-top: -8px; }
}
.biz-detail .feat-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.biz-detail .feat { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--dot) 12%, transparent); color: var(--dot); }
.biz-detail .go-link { font-size: 13.5px; font-weight: 700; color: var(--dot); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.biz-detail .go-link:hover { text-decoration: underline; }
.biz-detail .go-link.disabled { color: var(--muted); pointer-events: none; }
@media (max-width: 640px) {
  .biz-detail { grid-template-columns: 1fr; }
  .biz-detail .num-dot { margin-bottom: 6px; }
  .biz-detail .num-dot, .biz-detail .biz-head, .biz-detail .biz-body { grid-area: auto; margin-top: 0; }
}

/* ---- Value cards（about.html「私たちが目指す社会」の5枚）----
   以前は濃紺の「価値観」セクション専用だったが、そちらは削除済み。
   現在は明るい背景の上でしか使わないので、配色をそちら向けに作り直してある。

   grid をやめて flex-wrap にしているのは、5枚を4カラムに並べると
   最後の1枚だけが2行目に取り残されていたため（980px以下の2カラムでも同じ）。
   flex なら最終行の要素が伸びて隙間が空かず、どの幅でも破綻しない。 */
.value-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.value-card {
  flex: 1 1 auto; text-align: center;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 18px; font-size: 14.5px; font-weight: 600;
  line-height: 1.6; box-shadow: var(--shadow);
}
@media (max-width: 560px) { .value-card { flex-basis: 100%; } }

/* ---- Company ---- */
.company-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 8px; }
@media (max-width: 800px) { .company-wrap { grid-template-columns: 1fr; gap: 32px; } }
dl.facts { margin: 0; }
dl.facts > div { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
dl.facts dt { flex: 0 0 108px; font-size: 12.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.03em; padding-top: 2px; }
dl.facts dd { margin: 0; font-size: 14.5px; }
dl.facts dd a { color: var(--accent); text-decoration: none; }
dl.facts dd a:hover { text-decoration: underline; }

/* ---- Map ---- */
.map-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); margin-top: 8px; }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---- Contact / footer ----
   CTA帯はサイト唯一の反転バンド。ライトでは濃紺、ダークでは明色になり、
   どちらのモードでも本文の流れを断ち切るアクセントとして効く。
   （以前は「価値観」セクションがこの役割を担っていたが、2026-07-28に削除したため
     全ページ共通のこの帯に移した） */
.contact-band { background: var(--ink); color: var(--paper); }
.contact-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px; padding: 64px 0; }
.contact-inner h2 { margin: 0 0 8px; color: var(--paper); }
.contact-inner p { margin: 0; color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 15px; }
.contact-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cat-chip {
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--paper) 26%, transparent);
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}
/* 濃紺の上では --accent(#0048a8) が沈むので、帯の中のボタンは紙色に反転させる */
.contact-band .btn-primary { background: var(--paper); color: var(--ink); }
.contact-band .btn-primary:hover { background: color-mix(in srgb, var(--paper) 88%, var(--accent)); }

footer.site { padding: 40px 0 28px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
/* ---- フッターのロゴ ----
   ヘッダーと同じ2枚出し分け方式（ロゴPNGの文字が濃紺でダーク背景では読めないため）。
   セレクタに img を含めて詳細度 (0,1,1) にしてあるのは、.footer-logo-img の
   `display:block` に確実に勝たせるため。ヘッダーで詳細度負けして
   2枚とも出たままになった経験があるので同じ轍を踏まない。

   ロゴ画像にはタグラインも入っているが、この表示サイズでは4px相当で読めない。
   そのため読めるテキストのタグラインは下に残している（.footer-tag）。 */
/* margin-left の負値は、ロゴPNG左端にある幅7%ぶんの透明余白の打ち消し。
   これで下の .footer-bottom の文字と左端がそろう（= -0.07 × 表示幅144px ≒ -10px）。
   ロゴの高さを変えたら再計算すること。 */
.footer-logo { display: inline-block; margin-left: -10px; }
.footer-logo-img { height: 72px; width: auto; display: block; }
img.footer-logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  img.footer-logo-light { display: none; }
  img.footer-logo-dark { display: block; }
}
:root[data-theme="dark"] img.footer-logo-light { display: none; }
:root[data-theme="dark"] img.footer-logo-dark { display: block; }
:root[data-theme="light"] img.footer-logo-light { display: block; }
:root[data-theme="light"] img.footer-logo-dark { display: none; }
.footer-tag { font-size: 13px; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links div b { display: block; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; }
/* body の line-height 1.85 をそのまま受けるとリンク1件あたり34pxになり、
   6件並ぶ Company 列だけでフッターの高さの大半を占めてしまう。
   ここは行間を詰める。ただしモバイルは指で押す領域なので下の
   メディアクエリで元の広さに戻している。 */
.footer-links a { display: block; font-size: 14px; line-height: 1.7; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.footer-links a:hover { color: var(--accent); }
.footer-links a.muted-link { color: var(--muted); cursor: default; }
.footer-links a.muted-link:hover { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 18px; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 10px; }
@media (max-width: 700px) {
  .footer-links a { line-height: 1.85; margin-bottom: 10px; }
  /* モバイルはフッターが縦積みになるぶん、ロゴの高さがそのまま全体の高さに乗る。
     72px だとテキストのワードマークだった頃より42px背が高くなるので抑える。
     margin-left は -0.07 × 表示幅112px ≒ -8px。 */
  .footer-logo-img { height: 56px; }
  .footer-logo { margin-left: -8px; }
}

/* ---- Forms (contact.php) ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
label .req { color: var(--accent-orange); font-weight: 700; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper-raised); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 24px; }
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; }
.radio-chip label {
  display: inline-block; margin: 0; font-size: 13.5px; font-weight: 600; padding: 9px 16px;
  border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; color: var(--muted);
}
.radio-chip input:checked + label { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.radio-chip input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Simple prose page (privacy) ---- */
.prose { max-width: 760px; }
.prose h2 { font-size: 19px; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 14.5px; }
.prose ul { padding-left: 1.2em; }

/* ---- News strip（トップページのヒーロー直下・最新1件）----
   スクロール表示アニメーションの対象にしていない（section の外に置いてあるので
   reveal.js のセレクタにも掛からない）。お知らせは開いた瞬間に見えるべきもので、
   フェードインを待たせたくないため。 */
.news-strip { background: var(--paper-raised); border-bottom: 1px solid var(--line); }
.news-strip-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; min-height: 56px;
}
.news-strip-label {
  flex: 0 0 auto;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.news-strip time {
  flex: 0 0 auto;
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em;
}
/* 見出しが長いときは1行で省略。min-width:0 がないと flex アイテムが縮まず
   ellipsis が効かないまま横に押し出される。 */
.news-strip-title {
  flex: 1 1 auto; min-width: 0;
  font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-strip-title:hover { color: var(--accent); text-decoration: underline; }
.news-strip-all { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
.news-strip-all:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .news-strip-inner { flex-wrap: wrap; gap: 8px 12px; padding: 14px 28px; }
  /* モバイルは見出しを2行まで見せる（1行省略だと何のお知らせか分からない） */
  .news-strip-title {
    flex-basis: 100%; white-space: normal; overflow: visible; text-overflow: clip;
    line-height: 1.6;
  }
  .news-strip-all { margin-left: auto; }
}

/* ---- News (news.html) ---- */
.news-list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.news-item {
  display: grid; grid-template-columns: 190px 1fr; gap: 28px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 8px; }
.news-item:last-child { border-bottom: none; }
.news-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.news-meta time {
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em;
}
/* カテゴリの色は事業カードのドットと同じブランド配色から取る */
.news-cat {
  font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cat) 45%, transparent);
  background: color-mix(in srgb, var(--cat) 10%, transparent);
  color: var(--cat); white-space: nowrap;
  --cat: var(--accent);
}
.news-cat[data-cat="business"] { --cat: var(--accent-green); }
.news-cat[data-cat="media"]    { --cat: var(--accent-amber); }
.news-cat[data-cat="service"]  { --cat: var(--accent-deep); }
.news-body h2 { font-size: 19px; margin: 0 0 12px; letter-spacing: 0; }
.news-body p { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.news-body p:last-child { margin-bottom: 0; }
.news-body a { color: var(--accent); text-decoration: none; font-weight: 700; }
.news-body a:hover { text-decoration: underline; }
.news-empty { color: var(--muted); font-size: 14.5px; }
@media (max-width: 700px) {
  .news-item { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .news-meta { flex-direction: row; align-items: center; gap: 12px; }
}

/* ---- Breadcrumb ---- */
/* padding のショートハンドで書くと、同じ詳細度で後から来るこのルールが
   .wrap の `padding: 0 28px` ごと打ち消してしまい、ビューポートが 1176px 未満の
   ときにパンくずだけ画面の左端に貼り付く。上下だけを longhand で指定すること。 */
.crumb { font-size: 13px; color: var(--muted); padding-top: 20px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* =========================================================
   スクロール表示アニメーション
   ※ 下の「非表示にする」セレクタ一覧は assets/js/reveal.js の
      SELECTOR 定数と必ず同じ内容に保つこと（ズレると出たまま／消えたままになる）
   ========================================================= */

/* --- ③ 見出し・本文のフェードアップ（.hero / .page-hero は対象外） --- */

/* transition は常に効かせる（:not() を付けない） */
.js section:not(.hero):not(.page-hero) .wrap > .eyebrow,
.js section:not(.hero):not(.page-hero) .wrap > h2,
.js section:not(.hero):not(.page-hero) .wrap > .lead-block,
.js section:not(.hero):not(.page-hero) .wrap > .cta-row,
.js .eco-copy,
.js .biz-detail,
.js .contact-inner > div,
.js dl.facts > div,
.js .map-frame,
.js .prose > h2,
.js .prose > p,
.js .prose > ul,
.js .form-grid,
.js .form-note,
.js .news-item {
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}

/* 未表示のあいだ「だけ」隠す。
   .is-visible が付いた瞬間にこのルール自体がマッチしなくなるので、
   別ルールで詳細度を上回って打ち消す必要がない。
   ＜以前の不具合＞ここを .js .is-visible {opacity:1} で上書きしようとしたが、
   隠す側（例: 0,5,1）の方が詳細度が高く、見出し・本文・prose 等が
   永久に非表示のままになっていた。同じ轍を踏まないこと。 */
.js section:not(.hero):not(.page-hero) .wrap > .eyebrow:not(.is-visible),
.js section:not(.hero):not(.page-hero) .wrap > h2:not(.is-visible),
.js section:not(.hero):not(.page-hero) .wrap > .lead-block:not(.is-visible),
.js section:not(.hero):not(.page-hero) .wrap > .cta-row:not(.is-visible),
.js .eco-copy:not(.is-visible),
.js .biz-detail:not(.is-visible),
.js .contact-inner > div:not(.is-visible),
.js dl.facts > div:not(.is-visible),
.js .map-frame:not(.is-visible),
.js .prose > h2:not(.is-visible),
.js .prose > p:not(.is-visible),
.js .prose > ul:not(.is-visible),
.js .form-grid:not(.is-visible),
.js .form-note:not(.is-visible),
.js .news-item:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

/* --- ② カードの時間差表示 --- */
.js .biz-grid > *,
.js .value-grid > *,
.js .principle-row > * {
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}

/* コンテナに .is-visible が付くまで子を隠す */
.js .biz-grid:not(.is-visible) > *,
.js .value-grid:not(.is-visible) > *,
.js .principle-row:not(.is-visible) > * {
  opacity: 0;
  transform: translateY(18px);
}

/* 子要素は 0.08 秒ずつ遅らせて、順に立ち上がって見せる */
.js .is-visible > *:nth-child(1) { transition-delay: .00s; }
.js .is-visible > *:nth-child(2) { transition-delay: .08s; }
.js .is-visible > *:nth-child(3) { transition-delay: .16s; }
.js .is-visible > *:nth-child(4) { transition-delay: .24s; }
.js .is-visible > *:nth-child(5) { transition-delay: .32s; }
.js .is-visible > *:nth-child(6) { transition-delay: .40s; }
.js .is-visible > *:nth-child(7) { transition-delay: .48s; }

/* --- ① 循環図が組み上がる演出 --- */
/* 外周（円周 = 2πr = 2π×190 ≈ 1194） */
.js .eco-svg .eco-outer { stroke-dasharray: 1194; stroke-dashoffset: 1194; }
.js .eco-svg.is-visible .eco-outer { animation: eco-draw 1.4s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes eco-draw { to { stroke-dashoffset: 0; } }

/* 中心（子ども・家庭・地域社会） */
.js .eco-svg .eco-core { opacity: 0; transform: scale(.72); transform-box: fill-box; transform-origin: center; }
.js .eco-svg.is-visible .eco-core { animation: eco-pop .7s cubic-bezier(.2,.8,.3,1) .35s forwards; }

/* 中心から各事業へ伸びる線（最長 ≈ 193 なので 200 で足りる） */
.js .eco-svg .eco-line { stroke-dasharray: 200; stroke-dashoffset: 200; }
.js .eco-svg.is-visible .eco-line { animation: eco-draw-line .55s ease-out calc(.85s + var(--i) * .09s) forwards; }
@keyframes eco-draw-line { to { stroke-dashoffset: 0; } }

/* 事業の円 */
.js .eco-svg .eco-node { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; }
.js .eco-svg.is-visible .eco-node { animation: eco-pop .6s cubic-bezier(.2,.9,.3,1) calc(1.05s + var(--i) * .09s) forwards; }
@keyframes eco-pop { to { opacity: 1; transform: scale(1); } }

/* 点線（新規事業）は最後にそっと現れる。線は描かずフェードのみ */
.js .eco-svg .eco-line-next { opacity: 0; }
.js .eco-svg.is-visible .eco-line-next { animation: eco-fade .9s ease 1.85s forwards; }
.js .eco-svg.is-visible .eco-node-next { animation: eco-pop .8s cubic-bezier(.2,.9,.3,1) 2s forwards; }
@keyframes eco-fade { to { opacity: 1; } }

/* --- 動きを減らす設定の方には一切再生しない --- */
@media (prefers-reduced-motion: reduce) {
  .js .eco-svg .eco-outer,
  .js .eco-svg .eco-core,
  .js .eco-svg .eco-line,
  .js .eco-svg .eco-node,
  .js .eco-svg .eco-line-next {
    opacity: 1;
    transform: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
  .js .eco-svg .eco-line-next { stroke-dasharray: 4 5; }
  .js .eco-svg .eco-node-next circle { stroke-dasharray: 5 5; }
}
