/* =========================================================
   CySA Co., Ltd. — サイサ株式会社 コーポレートサイト
   デザインシステム
   テーマ: 白(シルバーみ) × 群青 / 夏の深い青空と大きな雲
   フォント: UD系ゴシック (BIZ UDPGothic)
   ========================================================= */

:root {
  /* --- 色: 白・シルバー系 --- */
  --white:      #ffffff;
  --silver-50:  #f8fafc;   /* ページ基調 (わずかにシルバー) */
  --silver-100: #eef2f7;   /* セクション交互背景 */
  --silver-200: #dde4ee;   /* 罫線・ボーダー */
  --silver-300: #c3cddc;

  /* --- 色: 群青系 --- */
  --gunjo:      #26428b;   /* 主色 (群青) */
  --gunjo-deep: #1a2f6b;
  --gunjo-dark: #101e46;   /* フッター */
  --sora:       #3a6bc7;   /* 空色アクセント (hover等) */
  --sky-pale:   #e9f1fb;   /* 淡い空 */

  /* --- 色: テキスト --- */
  --ink:        #1c2740;   /* 本文 (青みの黒) */
  --ink-soft:   #4d5b76;   /* 補助テキスト */
  --ph:         #8f9cb3;   /* プレースホルダ */

  /* --- 空のグラデーション (夏の深い青空: 天頂が濃い) ---
     雲は具象では描かず、白い光だまり(radial-gradient)の
     「色のイメージ」として空に溶かす */
  --sky-band: linear-gradient(180deg, #e4eefb 0%, var(--silver-50) 100%);
  --sky-ph:   linear-gradient(160deg, #dbe8f8 0%, #b9d2ef 100%);

  /* --- 影 (群青の低透明を多層に。黒影は使わない) --- */
  --shadow-soft: 0 1px 2px rgba(22, 41, 95, 0.05),
                 0 4px 10px rgba(22, 41, 95, 0.06),
                 0 14px 30px rgba(22, 41, 95, 0.07);
  --shadow-lift: 0 2px 4px rgba(22, 41, 95, 0.06),
                 0 10px 20px rgba(22, 41, 95, 0.09),
                 0 24px 48px rgba(22, 41, 95, 0.10);

  /* --- タイポグラフィ ---
     英字・数字は Avenir、日本語は BIZ UDPGothic の混植。
     Avenir を先頭に置くことで、字形を持つラテン文字は Avenir、
     持たない日本語は自動で BIZ UDPGothic へ落ちる。
     Avenir は Apple 端末に同梱のシステムフォント（Web配信不可）で、
     非対応環境では BIZ UDPGothic → 各OSのゴシックへ順にフォールバック。 */
  --font-body: "Avenir Next", "Avenir", "BIZ UDPGothic",
               "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;

  /* --- 寸法 --- */
  --container: 1120px;
  --radius: 16px;
  --header-h: 64px;
}

/* ---------- リセット・ベース ---------- */

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

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.055em;   /* 和文にごく僅かな字間 (約1pt/18pt相当) */
  line-break: strict;
  color: var(--ink);
  background: var(--silver-50);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  line-height: 1.45;
  letter-spacing: 0.07em;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

/* ページ間はクロスフェードで遷移 (MPAのView Transitions・JS不要) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* 動きを減らす設定ではホバー反応・遷移をすべて止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

a { color: var(--gunjo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sora); }

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--sora);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 濃色の面ではフォーカスリングを白に (非テキスト3:1・WCAG 1.4.11) */
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

/* スクリーンリーダー専用テキスト */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gunjo);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- プレースホルダ表記 ----------
   .ph       : 差し込み予定のテキスト (グレー表示)
   .ph-block : 差し込み予定の画像・図版 (淡い空色ブロック)
   ------------------------------------------ */

.ph { color: var(--ph); }

.ph-block {
  display: grid;
  place-items: center;
  background: var(--sky-ph);
  border-radius: var(--radius);
  color: #7189ad;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.7;
}

/* ---------- ヘッダー ---------- */

/* すりガラスは固定ヘッダー1箇所に限定 (2026年の実用形) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  /* 白.85: 濃紺が背後に来てもナビ文字(--ink-soft)がAA(4.5:1)を維持する下限 */
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(22, 41, 95, 0.08);
  view-transition-name: site-header;
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(255, 255, 255, 0.96); }
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark { flex: none; color: var(--gunjo); }

.brand-text { line-height: 1.3; }

.brand-en {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gunjo);
}

.brand-ja {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--gunjo);
  background: var(--silver-100);
}

.site-nav a[aria-current="page"] {
  color: var(--gunjo);
}
.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  border-radius: 1px;
  background: var(--gunjo);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--silver-200);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  background: var(--gunjo);
  border-radius: 1px;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--silver-200);
    box-shadow: 0 12px 24px rgba(22, 41, 95, 0.08);
  }
  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px clamp(20px, 4vw, 40px) 16px;
  }
  .site-nav a { padding: 12px 8px; font-size: 15px; }
  .site-nav a[aria-current="page"]::after { width: 3em; }
}

/* ---------- ヒーロー (トップ) ----------
   夏の深い青空。雲は輪郭を描かず、白い光だまりとして
   グラデーションに溶かす(すべて静的・画像なし)。
   最上層のフェードでページ背景色へ自然につなぐ。 */

.hero {
  position: relative;
  color: var(--white);
  background-color: #1b2f6e;
  background-image:
    linear-gradient(to bottom, rgba(248, 250, 252, 0) 84%, var(--silver-50) 100%),
    radial-gradient(ellipse 80% 55% at 76% 88%, rgba(255, 255, 255, 0.38), transparent 62%),
    radial-gradient(ellipse 50% 38% at 12% 98%, rgba(255, 255, 255, 0.26), transparent 65%),
    radial-gradient(ellipse 45% 32% at 55% 34%, rgba(140, 175, 226, 0.20), transparent 70%),
    linear-gradient(175deg, #16295f 0%, #1f3c8e 42%, #3563bd 72%, #9fc2e8 100%);
}

/* 対応ブラウザでは空のグラデをoklch補間にして中間色の濁りを消す */
@supports (background: linear-gradient(in oklch, red, blue)) {
  .hero {
    background-image:
      linear-gradient(to bottom, rgba(248, 250, 252, 0) 84%, var(--silver-50) 100%),
      radial-gradient(ellipse 80% 55% at 76% 88%, rgba(255, 255, 255, 0.38), transparent 62%),
      radial-gradient(ellipse 50% 38% at 12% 98%, rgba(255, 255, 255, 0.26), transparent 65%),
      radial-gradient(ellipse 45% 32% at 55% 34%, rgba(140, 175, 226, 0.20), transparent 70%),
      linear-gradient(in oklch 175deg, #16295f 0%, #1f3c8e 42%, #3563bd 72%, #9fc2e8 100%);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(88px, 13vw, 156px) clamp(110px, 15vw, 170px);
  max-width: 1010px;
}

.hero-kicker {
  font-size: clamp(12px, 1.6vw, 14px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #bcd3f2;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(27px, 4.5vw, 44px);
  line-height: 1.55;
  letter-spacing: 0.065em;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 24px;
  font-size: clamp(14px, 1.9vw, 16px);
  line-height: 2.1;
  color: #dce9fa;
  max-width: 40em;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- ページタイトル帯 (下層ページ) ---------- */

.page-head {
  background-image:
    radial-gradient(ellipse 55% 90% at 85% 10%, rgba(255, 255, 255, 0.75), transparent 62%),
    var(--sky-band);
  border-bottom: 1px solid var(--silver-200);
}

.page-head .container {
  padding-block: clamp(48px, 8vw, 80px);
}

.page-head .kicker { margin-bottom: 8px; }

.page-title {
  font-size: clamp(24px, 3.6vw, 34px);
}

.page-lead {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 44em;
}

/* ---------- セクション共通 ---------- */

.section { padding-block: clamp(56px, 9vw, 104px); }
.section.alt { background: var(--silver-100); }

.kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gunjo);
}

.section-head { margin-bottom: clamp(28px, 5vw, 48px); }

.section-title {
  font-size: clamp(22px, 3.2vw, 30px);
  margin-top: 6px;
}

.section-lead {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 44em;
}

.section-foot { margin-top: clamp(28px, 5vw, 44px); }

/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gunjo);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--sora);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  color: var(--gunjo);
  border-color: var(--gunjo);
}
.btn-outline:hover { color: var(--sora); border-color: var(--sora); }

.btn-inverse {
  background: var(--white);
  color: var(--gunjo);
}
.btn-inverse:hover { background: var(--sky-pale); color: var(--gunjo-deep); }

.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}
.hero .btn-outline:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

/* テキストリンク: ホバーで下線が左から伸びる */
.text-link {
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}
.text-link::after { content: " →" / ""; }
.text-link:hover { background-size: 100% 1px; }

/* ---------- ミッション: ベントーグリッド ----------
   大小の角丸タイルで構成 (Bento・トップの1箇所限定)。
   接続の物語はミッションタイル内の式で示す。 */

.bento-main .mission-statement {
  font-size: clamp(22px, 3.1vw, 35px);
  font-weight: 700;
  line-height: 1.75;
  text-wrap: balance;
}

/* モバイルでは指定改行を解除して自然に折り返す */
@media (max-width: 620px) {
  .mission-statement br { display: none; }
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.bento-tile {
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}

.bento-tile .en {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gunjo);
}

.bento-tile h3 {
  font-size: 18px;
  margin-top: 4px;
}

.bento-tile p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.9;
}

.bento-main {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.bento-formula {
  color: var(--gunjo);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 空のタイル: 夏空の色のイメージをそのまま1枚のタイルに */
.bento-sky {
  border: none;
  color: var(--white);
  display: grid;
  align-content: end;
  min-height: 190px;
  background-color: #1f3c8e;
  /* 最上層はテキスト足元のスクリム (白文字のコントラスト確保・WCAG AA) */
  background-image:
    linear-gradient(to top, rgba(16, 30, 70, 0.55), transparent 55%),
    radial-gradient(ellipse 90% 60% at 80% 95%, rgba(255, 255, 255, 0.35), transparent 62%),
    radial-gradient(ellipse 60% 45% at 15% 80%, rgba(255, 255, 255, 0.18), transparent 65%),
    linear-gradient(170deg, #16295f 0%, #2a4da6 60%, #7ba9e0 100%);
}

.bento-sky .en { color: rgba(255, 255, 255, 0.9); }

.bento-sky .sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  /* 末尾タイルも全幅にして2列×奇数枚の穴を防ぐ */
  .bento-main, .bento-sky,
  .bento > .bento-tile:last-child { grid-column: span 2; }
  .bento-sky { min-height: 130px; }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-main, .bento-sky,
  .bento > .bento-tile:last-child { grid-column: auto; }
}

/* ---------- カードグリッド (Works) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}

@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- 作品一覧: タイトル｜説明の横並び段組 (works.html) ----------
   1作品=1段。段を増やすだけで追記できる */

.work-rows {
  display: flex;
  flex-direction: column;
}

.work-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(20px, 4vw, 64px);
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--silver-200);
}

.work-row:last-child { border-bottom: 1px solid var(--silver-200); }

.work-row-head h2 {
  font-size: 19px;
  line-height: 1.6;
}

.work-row-head .work-tags { margin-top: 12px; }

.work-row-body p {
  font-size: 15px;
  line-height: 2;
}

@media (max-width: 760px) {
  .work-row { grid-template-columns: 1fr; gap: 14px; }
}

/* YouTube埋め込み */
.video-embed {
  margin-top: 20px;
  max-width: 560px;
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
  border-color: var(--silver-300);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.work-thumb { aspect-ratio: 16 / 10; border-radius: 0; }

/* 動画作品のサムネイル: 中央に再生マーク（追加のみ・既存規則は不変更） */
a.work-thumb { display: grid; place-items: center; text-decoration: none; }
.work-thumb.is-video {
  position: relative;
  align-content: end;
  background: var(--gunjo-deep);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 0.16em;
  padding-bottom: 12px;
  text-align: center;
}
.work-thumb.is-video::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 58px; height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.work-thumb.is-video::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.work-card:hover .work-thumb.is-video::before {
  background: rgba(255, 255, 255, 0.22);
}

.work-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 24px;
  flex: 1;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.work-tags li {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gunjo);
  background: var(--sky-pale);
  border-radius: 999px;
  padding: 3px 12px;
}

.work-card h2,
.work-card h3 { font-size: 17px; }

.work-card .desc {
  font-size: 14px;
  line-height: 1.9;
  flex: 1;
}

/* ---------- 概要テーブル ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 18px 22px;
  border-top: 1px solid var(--silver-200);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.9;
}

.spec-table tr:first-child th,
.spec-table tr:first-child td { border-top: none; }

.spec-table th {
  width: 11em;
  background: var(--silver-100);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.spec-table ul { list-style: none; }
.spec-table li { padding-left: 1.2em; text-indent: -1.2em; }
.spec-table li::before { content: "・" / ""; color: var(--gunjo); }

@media (max-width: 620px) {
  .spec-table th, .spec-table td {
    display: block;
    width: 100%;
    padding: 12px 18px;
  }
  .spec-table th { border-top: 1px solid var(--silver-200); }
  .spec-table td { border-top: none; padding-top: 4px; }
}

/* ---------- 沿革 ---------- */

.history { list-style: none; position: relative; }

.history li {
  position: relative;
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 18px;
  padding: 0 0 28px 22px;
}

.history li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gunjo);
}

.history li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 26px;
  bottom: -4px;
  width: 1px;
  background: var(--silver-300);
}

.history .when { font-weight: 700; color: var(--gunjo); }

@media (max-width: 620px) {
  .history li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- 代表挨拶 ---------- */

.message-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

@media (max-width: 760px) {
  .message-grid { grid-template-columns: 1fr; }
  .message-grid .portrait { max-width: 320px; margin-inline: auto; }
}

.portrait { aspect-ratio: 3 / 4; }

img.portrait {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 50% 22%;   /* 2:3の元写真を3:4枠に、頭部を保って切り出す */
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.message-catch {
  font-size: clamp(20px, 2.8vw, 26px);
  line-height: 1.8;
  text-wrap: balance;
}

.message-body { margin-top: 24px; }

.signature {
  margin-top: 36px;
  text-align: right;
  line-height: 1.8;
}
.signature .role { font-size: 13px; color: var(--ink-soft); display: block; }
.signature .name { font-size: 19px; font-weight: 700; letter-spacing: 0.14em; }

/* 署名下の略歴 */
.bio-box {
  margin-top: 36px;
  border-top: 1px solid var(--silver-200);
  padding-top: 20px;
}
.bio-box h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.bio-box p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 2.1;
  color: var(--ink-soft);
}

/* ---------- CTA帯 ---------- */

.cta-band {
  background: var(--gunjo-deep);
  color: var(--white);
  text-align: center;
}

.cta-band .container { padding-block: clamp(56px, 8vw, 88px); }

.cta-band h2 { font-size: clamp(20px, 3vw, 27px); }

.cta-band p {
  margin-top: 14px;
  color: #c9d9f2;
  font-size: 15px;
}

.cta-band .btn { margin-top: 32px; }

/* ---------- フォーム ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: 22px; }

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.req {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #b3423d;
  background: #fbeceb;
  border-radius: 4px;
  padding: 1px 8px;
  vertical-align: 1px;
}

.opt {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--silver-100);
  border-radius: 4px;
  padding: 1px 8px;
  vertical-align: 1px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--silver-300);
  border-radius: 8px;
  padding: 12px 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--sora);
  outline-offset: 0;
  border-color: var(--sora);
}

.form-field textarea { resize: vertical; min-height: 180px; }

/* スパム対策フィールドは画面外へ (display:noneはbotに見破られるため位置で隠す) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gunjo);
  min-height: 1.5em;
}

.contact-aside {
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
  box-shadow: var(--shadow-soft);
}

.contact-aside h2 { font-size: 16px; }
.contact-aside h2:not(:first-child) { margin-top: 28px; }

.contact-aside p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 2;
}

.contact-aside .mail {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--gunjo-dark);
  color: #c6d4ec;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
  padding-block: clamp(44px, 7vw, 64px) 36px;
}

.footer-brand .brand-en { color: var(--white); }
.footer-brand .brand-ja { color: #9fb2d6; }

.footer-brand .tagline {
  margin-top: 14px;
  font-size: 13px;
  line-height: 2;
  max-width: 26em;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: #c6d4ec;
  font-size: 14px;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--white); text-decoration: underline; }

.footer-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #9fb2d6;
}

/* =========================================================
   テーマ: 上忍 (jonin) — 渋色ソリッド版
   えんじ × 紺 × モスグリーン。グラデーションを排し、
   面はベタ・角は締める(6px)・影は最小の平面構成。
   切替: URLに ?theme=jonin (?theme=sora で空テーマに復帰。
   選択はlocalStorageに記憶される)
   ========================================================= */

[data-theme="jonin"] {
  /* 白・生成り系 (シルバーみ→わずかに温かい鈍色) */
  --silver-50:  #f5f4f0;
  --silver-100: #ebeae3;
  --silver-200: #d9d7cb;
  --silver-300: #b9b6a6;

  /* 主要色: 変数の役割は流用し、値だけ渋色に差し替える */
  --gunjo:      #1e2f4f;   /* 紺 (主色) */
  --gunjo-deep: #1f3251;   /* 藍 (ヒーロー・CTA帯) — 従来より1段階やわらげた */
  --gunjo-dark: #16233c;   /* 深い藍 (フッター) — 従来のヒーローの藍で最下部を締める */
  --sora:       #8e3a44;   /* えんじ (hoverアクセント) */
  --sky-pale:   #e9e7dd;   /* 淡い生成り */

  --ink:        #23252b;
  --ink-soft:   #565549;
  --ph:         #a09d8f;

  /* 影はほぼ消してソリッドに */
  --shadow-soft: 0 1px 2px rgba(20, 23, 30, 0.07);
  --shadow-lift: 0 2px 8px rgba(20, 23, 30, 0.12);

  --radius: 6px;

  /* テーマ固有色 */
  --enji: #8e3a44;         /* えんじ */
  --moss: #5c684b;         /* モスグリーン */
}

/* ボタンも角を締める */
[data-theme="jonin"] .btn { border-radius: var(--radius); }

/* キッカー(英字ラベル)はえんじで一点だけ効かせる */
[data-theme="jonin"] .kicker,
[data-theme="jonin"] .bento-formula { color: var(--enji); }
[data-theme="jonin"] .site-nav a[aria-current="page"] { color: var(--enji); }
[data-theme="jonin"] .site-nav a[aria-current="page"]::after { background: var(--enji); }

/* 三役ラベル・タグはモスグリーン (えんじタイル内は白のまま) */
[data-theme="jonin"] .bento-tile .en { color: var(--moss); }
[data-theme="jonin"] .bento-sky .en { color: rgba(255, 255, 255, 0.9); }
[data-theme="jonin"] .work-tags li {
  color: var(--moss);
  background: #e7eadf;
}

/* ヒーロー: グラデーションを捨て、濃紺のベタ1面（フラット） */
[data-theme="jonin"] .hero {
  background-color: var(--gunjo-deep);
  background-image: none;
}
[data-theme="jonin"] .hero-kicker { color: #b34e59; }  /* 縫い目(スティッチ)と同色 */
[data-theme="jonin"] .hero-lead { color: #c4c8d2; }

/* ページタイトル帯: ベタ+ヘアライン */
[data-theme="jonin"] .page-head {
  background-color: var(--silver-100);
  background-image: none;
}

/* 空タイル→えんじのベタ1面（フラット） */
[data-theme="jonin"] .bento-sky {
  background-color: var(--enji);
  background-image: none;
}

/* 画像プレースホルダ: グラデ→鈍色のベタ */
[data-theme="jonin"] .ph-block {
  background: #e4e2d7;
  color: #8b8877;
}

/* フッター・CTA帯の青系ハードコード色を渋色トーンへ */
[data-theme="jonin"] .cta-band p { color: #c1c6d1; }
[data-theme="jonin"] .site-footer { color: #c4c2b8; }
[data-theme="jonin"] .footer-brand .brand-ja { color: #93917f; }
[data-theme="jonin"] .footer-nav a { color: #c4c2b8; }
[data-theme="jonin"] .footer-foot { color: #93917f; }

/* すりガラスは維持しつつ、生成りに寄せる (白.88でナビ文字AA維持) */
[data-theme="jonin"] .site-header {
  background: rgba(247, 246, 242, 0.88);
  border-bottom-color: rgba(30, 40, 60, 0.1);
}

/* ---------- 上忍: 縫い目 (running stitch) ----------
   「面と面が接続される境界」にえんじの糸を走らせる。
   縫い目=接続のメタファー(ミッションと同じ言葉)。
   紺の面にはえんじの糸、えんじの面には白の糸。 */

/* 針目はSVGタイル(data URI)で描く — デザイン批評パネル反映版:
   ・運針は縫い線に沿って浅く寝かせる(約15°)・糸:間≈3:1 (参照: レザーシートのトップステッチ)
   ・影は+1px整数オフセット(DPR1でも分離)・弱め(革に沈む程度)
   ・針目の間に針穴(糸が沈む窪み)を打つ
   ・background-repeat: space で左右両端とも完全な針目で終わる
   ・縫い代は全箇所「端から糸中心まで約8.5px = 糸幅3.5倍」に統一
   ・縫いが走るのは目に見える継ぎ目だけ(ヒーロー裾・CTA帯上端・えんじタイル裾)
   糸色はSVG内に直書き(えんじ糸 #b34e59 / 白糸 白.62) */

[data-theme="jonin"] .cta-band { position: relative; }

[data-theme="jonin"] .hero::after,
[data-theme="jonin"] .cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='11'%3E%3Cdefs%3E%3Cfilter id='b' x='-60%' y='-60%' width='220%' height='220%'%3E%3CfeGaussianBlur stdDeviation='0.9'/%3E%3C/filter%3E%3C/defs%3E%3Cline x1='4.2' y1='8.7' x2='15.6' y2='5.7' stroke='rgba(8,12,24,0.30)' stroke-width='2.7' stroke-linecap='round' filter='url(%23b)'/%3E%3Cline x1='3.26' y1='7.44' x2='14.66' y2='4.44' stroke='%237f3540' stroke-width='2.9' stroke-linecap='round'/%3E%3Cline x1='3.2' y1='7.2' x2='14.6' y2='4.2' stroke='%23b34e59' stroke-width='2.4' stroke-linecap='round'/%3E%3Cline x1='3.11' y1='6.86' x2='14.51' y2='3.86' stroke='%23cd6f78' stroke-width='1.3' stroke-linecap='round'/%3E%3Cline x1='4.41' y1='6.24' x2='13.07' y2='3.96' stroke='rgba(255,233,236,0.8)' stroke-width='0.55' stroke-linecap='round'/%3E%3Cline x1='5.1' y1='5.69' x2='6.77' y2='7.27' stroke='rgba(66,18,24,0.33)' stroke-width='0.5' stroke-linecap='round'/%3E%3Cline x1='7.15' y1='5.15' x2='8.83' y2='6.73' stroke='rgba(66,18,24,0.33)' stroke-width='0.5' stroke-linecap='round'/%3E%3Cline x1='9.2' y1='4.61' x2='10.88' y2='6.19' stroke='rgba(66,18,24,0.33)' stroke-width='0.5' stroke-linecap='round'/%3E%3Cline x1='11.25' y1='4.07' x2='12.93' y2='5.65' stroke='rgba(66,18,24,0.33)' stroke-width='0.5' stroke-linecap='round'/%3E%3Cellipse cx='3.2' cy='7.2' rx='1.25' ry='0.85' fill='rgba(8,12,24,0.5)'/%3E%3Cellipse cx='3.02' cy='6.52' rx='0.7' ry='0.4' fill='rgba(255,220,224,0.28)'/%3E%3Cellipse cx='14.6' cy='4.2' rx='1.25' ry='0.85' fill='rgba(8,12,24,0.5)'/%3E%3Cellipse cx='14.42' cy='3.52' rx='0.7' ry='0.4' fill='rgba(255,220,224,0.28)'/%3E%3C/svg%3E");
  background-repeat: space;
}

[data-theme="jonin"] .hero::after { bottom: 4px; }     /* 裾の縫い */
[data-theme="jonin"] .cta-band::before { top: 3px; }   /* 帯の縫い */

/* えんじタイルは白糸。角丸の手前で針を止める */
[data-theme="jonin"] .bento-sky { position: relative; }
[data-theme="jonin"] .bento-sky::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='11'%3E%3Cdefs%3E%3Cfilter id='b' x='-60%' y='-60%' width='220%' height='220%'%3E%3CfeGaussianBlur stdDeviation='0.9'/%3E%3C/filter%3E%3C/defs%3E%3Cline x1='4.2' y1='8.7' x2='15.6' y2='5.7' stroke='rgba(58,16,22,0.42)' stroke-width='2.7' stroke-linecap='round' filter='url(%23b)'/%3E%3Cline x1='3.26' y1='7.44' x2='14.66' y2='4.44' stroke='rgba(214,210,214,0.55)' stroke-width='2.9' stroke-linecap='round'/%3E%3Cline x1='3.2' y1='7.2' x2='14.6' y2='4.2' stroke='rgba(255,255,255,0.74)' stroke-width='2.4' stroke-linecap='round'/%3E%3Cline x1='3.11' y1='6.86' x2='14.51' y2='3.86' stroke='rgba(255,255,255,0.92)' stroke-width='1.3' stroke-linecap='round'/%3E%3Cline x1='4.41' y1='6.24' x2='13.07' y2='3.96' stroke='rgba(255,255,255,1)' stroke-width='0.55' stroke-linecap='round'/%3E%3Cline x1='5.1' y1='5.69' x2='6.77' y2='7.27' stroke='rgba(120,58,64,0.32)' stroke-width='0.5' stroke-linecap='round'/%3E%3Cline x1='7.15' y1='5.15' x2='8.83' y2='6.73' stroke='rgba(120,58,64,0.32)' stroke-width='0.5' stroke-linecap='round'/%3E%3Cline x1='9.2' y1='4.61' x2='10.88' y2='6.19' stroke='rgba(120,58,64,0.32)' stroke-width='0.5' stroke-linecap='round'/%3E%3Cline x1='11.25' y1='4.07' x2='12.93' y2='5.65' stroke='rgba(120,58,64,0.32)' stroke-width='0.5' stroke-linecap='round'/%3E%3Cellipse cx='3.2' cy='7.2' rx='1.25' ry='0.85' fill='rgba(58,16,22,0.55)'/%3E%3Cellipse cx='3.02' cy='6.52' rx='0.7' ry='0.4' fill='rgba(255,255,255,0.5)'/%3E%3Cellipse cx='14.6' cy='4.2' rx='1.25' ry='0.85' fill='rgba(58,16,22,0.55)'/%3E%3Cellipse cx='14.42' cy='3.52' rx='0.7' ry='0.4' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E");
  background-repeat: space;
  pointer-events: none;
}

/* ---------- 透かしロゴ (上忍) ----------
   ピッチ資料と同じ文法: 大きく・薄く・端で切れる。
   ヒーロー=白の透かし / タイトル帯=紺の透かし。後段定義で jonin の background-image:none を上書き */

[data-theme="jonin"] .hero {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cg fill='%23ffffff' opacity='0.07'%3E%3Ccircle cx='17' cy='9' r='6'/%3E%3Cpath d='M9,1 a8,8 0 1,0 0,16 a8,8 0 1,0 0,-16 M9,3 a6,6 0 1,1 0,12 a6,6 0 1,1 0,-12' fill-rule='evenodd'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% + 180px) calc(100% + 170px);
  background-size: 900px auto;
}

/* 下層ページ: ヒーローと同じ文法をボトムで再現 (紺地・白・端で切れる) */
[data-theme="jonin"] .subpage .cta-band {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cg fill='%23ffffff' opacity='0.06'%3E%3Ccircle cx='17' cy='9' r='6'/%3E%3Cpath d='M9,1 a8,8 0 1,0 0,16 a8,8 0 1,0 0,-16 M9,3 a6,6 0 1,1 0,12 a6,6 0 1,1 0,-12' fill-rule='evenodd'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% + 110px) calc(100% + 130px);
  background-size: 560px auto;
}

@media (max-width: 760px) {
  [data-theme="jonin"] .hero { background-size: 560px auto; background-position: calc(100% + 120px) calc(100% + 110px); }
  [data-theme="jonin"] .subpage .cta-band { background-size: 400px auto; background-position: calc(100% + 80px) calc(100% + 90px); }
}
