/* ==========================================================================
   株式会社TKG コーポレートサイト — 追加ページ用スタイル

   対象：privacy.html / security.html / ai-team.html / demo-3d.html
   css/style.css の後に読み込む。style.css 側のトークン（--ink / --yolk / --line など）と
   部品（.page-header / .section-head / .service-list / .lab-grid / .cta-band など）を
   そのまま使い、ここには足りない分だけを書く。style.css は変更していない。
   ========================================================================== */

/* ---------- ページ見出し（背景画像なしの版） ----------
   追加ページにはヒーロー画像がまだ無いので、金の光だけを敷いて高さを抑える。
   画像ができたら style.css の .page-header--xxx と同じ形で --hero-image を足せばよい。 */

.page-header--plain {
  min-height: 60vh;
  min-height: 60svh;
  background:
    radial-gradient(64% 80% at 88% 0%, rgba(242, 182, 50, 0.2), transparent 70%),
    var(--ink);
}

/* 文字数の多い題（プライバシーポリシー等）がスマホ幅で折り返さない大きさ */
.page-header--plain h1 {
  font-size: clamp(30px, 7.2vw, 108px);
}

/* ---------- 規程の本文（プライバシーポリシー・基本方針） ---------- */

.policy {
  max-width: 920px;
}

.policy-lead {
  margin: 0 0 clamp(32px, 4.4vw, 56px);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 2.05;
}

.policy-list {
  border-bottom: 1px solid var(--line);
}

/* .service-item と同じ「番号＋中身」の2列 */
.policy-sec {
  display: grid;
  grid-template-columns: clamp(56px, 8vw, 120px) minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(12px, 2vw, 32px);
  padding-block: clamp(26px, 3.2vw, 44px);
  border-top: 1px solid var(--line);
}

.policy-sec h2 {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.4;
  margin-bottom: 14px;
}

.policy-sec p,
.policy-sec ol,
.policy-sec ul {
  margin: 0 0 1em;
  font-size: 15.5px;
}

.policy-sec ol,
.policy-sec ul {
  padding-left: 1.5em;
}

.policy-sec li {
  margin-bottom: 6px;
}

.policy-sec li::marker {
  color: var(--yolk-deep);
  font-family: var(--font-en);
  font-weight: 700;
}

.policy-sec li span {
  display: block;
  color: var(--fg-muted);
  font-size: 14px;
}

.policy-sec > div > :last-child {
  margin-bottom: 0;
}

.policy-sec .info-table dd {
  font-size: 15.5px;
}

/* 各項目の頭の「ひとことで」：固い本文の前に、やわらかい要約を置く（2026-10-17 オーナー決定） */
.policy-sec .policy-short {
  margin: 0 0 1.1em;
  padding: 12px 16px;
  border-left: 3px solid var(--yolk-deep);
  background: rgba(242, 179, 61, .1);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  line-height: 1.8;
}

.policy-short b {
  margin-right: .6em;
  color: var(--yolk-deep);
}

.policy-sign {
  margin: clamp(28px, 3.6vw, 48px) 0 0;
  font-size: 14px;
  color: var(--fg-muted);
  text-align: right;
}

@media (max-width: 560px) {
  .policy-sec {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- ひし形の点がつく箇条書き ---------- */

.dia-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dia-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.8;
}

.dia-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background: var(--yolk);
  transform: rotate(45deg);
}

.dia-list li small {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
}

/* ---------- 対策カード（security.html）：.lab-grid を2列で使う ---------- */

.lab-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .lab-grid--two {
    grid-template-columns: 1fr;
  }
}

.note-link {
  margin: clamp(32px, 4.4vw, 56px) 0 0;
}

/* 事例へのリンクのカード（works.html・v14）：カード全体をリンクにしても、文字は通常のカードと同じ見た目にする */
a.lab-card {
  color: inherit;
  text-decoration: none;
}

a.lab-card p {
  color: var(--fg-muted);
}

a.lab-card .btn {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------- AI社員カード（ai-team.html） ---------- */

.ai-members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
}

.ai-card {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 24px);
  padding: clamp(22px, 3vw, 44px);
  background: var(--ink);
  color: #f4f1e8;
  --fg-muted: #9ea7bb;
  --line: rgba(244, 241, 232, 0.16);
}

/* キャラクター画像の仮の枠。画像ができたら、この要素ごと <img> に差し替える */
.ai-portrait {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(242, 182, 50, 0.55);
  background:
    radial-gradient(60% 70% at 50% 42%, rgba(242, 182, 50, 0.2), transparent 72%),
    repeating-linear-gradient(135deg, rgba(244, 241, 232, 0.05) 0 1px, transparent 1px 14px),
    var(--ink-2);
}

.ai-portrait[data-initial]::before {
  content: attr(data-initial);
  font-family: var(--font-en);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(96px, 13vw, 190px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 182, 50, 0.7);
}

.ai-portrait span {
  position: absolute;
  left: 14px;
  bottom: 10px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.ai-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.ai-name h3 {
  font-size: clamp(26px, 3vw, 42px);
}

.ai-name span {
  font-family: var(--font-en);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
}

.ai-card > p {
  margin: 0;
  font-size: 15px;
  color: #cfd5e3;
}

.ai-card .dia-list {
  padding-top: clamp(16px, 1.8vw, 24px);
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .ai-members {
    grid-template-columns: 1fr;
  }
}

/* ---------- 任せること／人が確認すること（ai-team.html） ---------- */

.duty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.duty-col {
  padding: clamp(24px, 3.2vw, 48px);
  background: rgba(5, 8, 15, 0.5);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 26px);
}

.duty-col + .duty-col {
  border-left: 1px solid var(--line);
}

.duty-col h3 {
  font-size: var(--fs-h3);
}

/* 人の側：金の線で「ここは人」と示す */
.duty-col--human {
  box-shadow: inset 0 3px 0 var(--yolk);
}

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

  .duty-col + .duty-col {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

/* ---------- 図面が3Dになる（demo-3d.html） ---------- */

.demo-notice {
  margin-bottom: clamp(24px, 3.4vw, 44px);
  padding: clamp(18px, 2.4vw, 30px) clamp(20px, 2.8vw, 36px);
  background: rgba(5, 8, 15, 0.6);
  border-left: 3px solid var(--yolk);
  font-size: 14.5px;
  color: #d5dae6;
}

.demo-notice strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  color: #fff;
}

.demo-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  align-items: stretch;
}

.demo-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: #070b15;
}

.demo-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg-muted);
}

/* 図面と3D表示を同じ縦横比（500:350）にそろえる */
.demo-drawing svg,
.demo-view {
  display: block;
  width: 100%;
  aspect-ratio: 500 / 350;
}

.demo-view {
  position: relative;
  background: radial-gradient(70% 70% at 50% 46%, rgba(242, 182, 50, 0.1), transparent 75%);
}

/* 横になぞると回る。縦のなぞりはページのスクロールに譲る */
.demo-view canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}

.demo-view canvas.is-dragging {
  cursor: grabbing;
}

.demo-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg-muted);
}

.demo-panel-foot p {
  margin: 0;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--fg);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.demo-btn:hover,
.demo-btn[aria-pressed="true"] {
  background: var(--yolk);
  border-color: var(--yolk);
  color: var(--ink);
}

/* 図面（SVG）の線種 */
.dwg-frame {
  fill: none;
  stroke: rgba(244, 241, 232, 0.28);
  stroke-width: 1;
}

.dwg-outline {
  fill: rgba(244, 241, 232, 0.05);
  stroke: #f4f1e8;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.dwg-edge {
  stroke: #f4f1e8;
  stroke-width: 1.2;
}

.dwg-center {
  stroke: #9ea7bb;
  stroke-width: 0.8;
  stroke-dasharray: 14 3 2 3;
}

.dwg-ext {
  stroke: rgba(242, 182, 50, 0.6);
  stroke-width: 0.7;
}

.dwg-dim {
  fill: none;
  stroke: var(--yolk);
  stroke-width: 0.9;
}

.dwg-arrow {
  fill: var(--yolk);
}

.dwg-num {
  fill: var(--yolk-hi);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  text-anchor: middle;
}

.dwg-note {
  fill: #9ea7bb;
  font-family: var(--font-body);
  font-size: 11px;
}

.dwg-title {
  fill: #f4f1e8;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .demo-stage {
    grid-template-columns: 1fr;
  }
}

/* ---------- フッターの補助リンク（追加ページへの入口） ---------- */

.footer-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 12.5px;
}

.footer-sub a {
  color: #b9c1d3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-sub a:hover,
.footer-sub a[aria-current="page"] {
  color: var(--yolk);
}

/* スマホ幅では図面が小さくなるので、寸法の数字だけ大きくする */
@media (max-width: 900px) {
  .dwg-num {
    font-size: 18px;
  }
}

/* ==========================================================================
   ここから下は 2026-10-12 の第2弾（tkg-site-v2）で足した分。
   全11ページから読み込む。style.css は変更していない。
   ========================================================================== */

/* ---------- 本文の書体 ----------
   本文用の Noto Sans JP はサイト内に置いていない（容量を抑えるため）。
   端末に入っていればそれを使い、無ければ各OSの標準の日本語書体で表示する。 */

:root {
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
}

[hidden] {
  display: none !important;
}

/* ---------- 確認用の静止表示（URL に ?static=1 を付けたとき） ----------
   スクロール連動の出現演出を止め、全内容を最初から表示する。js/additions.js が <html> に .is-static を付ける。 */

.is-static *,
.is-static *::before,
.is-static *::after {
  animation: none !important;
  transition: none !important;
}

.is-static .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.is-static .lines .line > span {
  transform: none !important;
}

.is-static .loader {
  display: none !important;
}

/* ---------- 代表挨拶（about.html）：締めの話し言葉と、署名＋正式ロゴ ---------- */

.rep-text .rep-voice {
  margin-top: 2em;
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 3px solid var(--yolk);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 2;
}

.rep-signature {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(32px, 4vw, 56px);
}

/* 正式ロゴ（茶碗）。名刺と同じ地色の四角のまま、小さく添える */
.rep-logo {
  width: clamp(88px, 9vw, 128px);
  height: auto;
  flex-shrink: 0;
  border-radius: 6px;
}

.rep-text .rep-signature .rep-role {
  margin: 0 0 4px;
}

/* ---------- お問い合わせフォームの追加部品（contact.html） ---------- */

.form-cautions {
  margin: 0 0 clamp(28px, 3.6vw, 44px);
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--fg-muted);
}

.form-cautions li {
  position: relative;
  padding-left: 1.4em;
}

.form-cautions li::before {
  content: "※";
  position: absolute;
  left: 0;
}

/* ハニーポット：人には見せない（display:none だと機械に見破られやすいので、画面の外へ出す） */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field .form-note {
  margin: 0;
}

.form-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.form-field .check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
}

.check-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--yolk-deep);
  flex-shrink: 0;
}

.form-pending {
  margin: 20px 0 0;
}

.form-status {
  margin: 16px 0 0;
  font-size: 14.5px;
}

.form-status:empty {
  display: none;
}

.form-status.is-ok,
.form-status.is-error {
  padding: 14px 18px;
  border-left: 3px solid var(--yolk-deep);
  background: var(--card);
}

.form-status.is-error {
  border-left-color: #b3261e;
  color: #8c1d18;
}

.form-submit {
  margin-top: 14px;
}

/* ---------- トップ：タップで殻が割れる（js/additions.js の initTapCrack） ---------- */

.crack-canvas {
  position: fixed;
  inset: 0;
  z-index: 250;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tap-hint {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(244, 241, 232, 0.72);
  text-align: center;
  animation: tap-hint-pulse 2.6s ease-in-out infinite;
}

@keyframes tap-hint-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (max-width: 640px) {
  .tap-hint {
    display: none;
  }
}

/* ---------- AI社員のキャラクター（ai-team.html）：SVG を CSS で動かす ---------- */

.ai-portrait svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ai-portrait[data-initial] svg {
  display: none;
}

.ai-chara * {
  transform-box: fill-box;
  transform-origin: center;
}

.ai-chara-body {
  animation: chara-bob 5s ease-in-out infinite;
}

.ai-chara--gemmy .ai-chara-body {
  animation-duration: 6s;
  animation-delay: -2s;
}

@keyframes chara-bob {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(5px); }
}

.ai-chara-eye {
  animation: chara-blink 4.6s infinite;
}

@keyframes chara-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.ai-chara-gear {
  animation: chara-spin 26s linear infinite;
}

.ai-chara-orbit {
  animation: chara-spin 18s linear infinite;
}

@keyframes chara-spin {
  to { transform: rotate(360deg); }
}

/* Tさん：足もとのブロックが順に積み上がる（段取り） */
.ai-chara-block {
  animation: chara-block 3.6s ease-in-out infinite;
}

.ai-chara-block:nth-of-type(2) { animation-delay: 0.3s; }
.ai-chara-block:nth-of-type(3) { animation-delay: 0.6s; }
.ai-chara-block:nth-of-type(4) { animation-delay: 0.9s; }

@keyframes chara-block {
  0%, 60%, 100% { opacity: 1; transform: translateY(0); }
  30% { opacity: 0.45; transform: translateY(-7px); }
}

/* Kさん：音の波 */
.ai-chara-bar {
  transform-origin: center bottom;
  animation: chara-bar 1.4s ease-in-out infinite;
}

.ai-chara-bar:nth-of-type(2) { animation-delay: -0.25s; }
.ai-chara-bar:nth-of-type(3) { animation-delay: -0.5s; }
.ai-chara-bar:nth-of-type(4) { animation-delay: -0.75s; }
.ai-chara-bar:nth-of-type(5) { animation-delay: -1s; }

@keyframes chara-bar {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* ---------- 図面が3Dになる：寸法を変えるスライダー（demo-3d.html） ---------- */

.demo-tuner {
  margin-top: clamp(16px, 2.4vw, 32px);
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  background: #070b15;
}

.demo-tuner-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.demo-tuner-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-muted);
}

.demo-tuner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 36px);
}

.demo-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.demo-slider span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.demo-slider output {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--yolk-hi);
  font-variant-numeric: tabular-nums;
}

.demo-slider input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--yolk);
  cursor: pointer;
}

@media (max-width: 760px) {
  .demo-tuner-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- AI社員紹介：Gemini が描いたイラスト（2026-10-12 追加） ---------- */

/* イラストの背景（濃紺）とカードの地色をそろえる */
.ai-card--art {
  background: #171c2e;
}

.ai-photo {
  margin: 0;
}

/* 四辺をわずかにぼかして、イラストの背景とカードの境目を見えなくする */
.ai-photo img {
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}

/* 導入：2体が並んだ横長のイラスト */
.ai-pair {
  margin: 0 0 clamp(28px, 4vw, 56px);
  padding: clamp(8px, 1.6vw, 24px) clamp(8px, 1.6vw, 24px) 0;
  background: #171c2e;
  overflow: hidden;
}

.ai-pair img {
  width: 100%;
  height: auto;
  animation: ai-pair-float 7s ease-in-out infinite;
}

@keyframes ai-pair-float {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(6px); }
}

.ai-pair figcaption {
  padding: 10px 6px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #9ea7bb;
  text-align: right;
}

/* おまけ：コードで描いた仮のキャラクター（小さな飾り） */
.ai-mini {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(28px, 4vw, 56px);
  padding: 14px clamp(14px, 2vw, 24px);
  background: var(--ink);
  color: #9ea7bb;
  font-size: 13px;
}

.ai-mini p {
  margin: 0;
}

.ai-mini-figs {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.ai-mini-figs svg {
  width: clamp(84px, 9vw, 120px);
  height: auto;
}

@media (max-width: 560px) {
  .ai-mini {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 追加ページのヘッダー画像（Gemini 作、2026-10-12 追加） ----------
   style.css の .page-header--about などと同じ作り。画像は左側が暗く空けてあり、見出しはそこに重なる。
   プライバシーポリシーは画像なし（.page-header--plain）のまま。 */

.page-header--security { --hero-image: url("../assets/hero-security.jpg"); }
.page-header--ai-team { --hero-image: url("../assets/hero-ai-team.jpg"); }
.page-header--demo-3d { --hero-image: url("../assets/hero-demo-3d.jpg"); }

/* 文字数の多い題がスマホ幅で折り返さない大きさ */
.page-header--art h1 {
  font-size: clamp(34px, 7.4vw, 112px);
}

@media (max-width: 640px) {
  .page-header--security { --hero-image-mobile: url("../assets/hero-security-mobile.jpg"); }
  .page-header--ai-team { --hero-image-mobile: url("../assets/hero-ai-team-mobile.jpg"); }
  .page-header--demo-3d { --hero-image-mobile: url("../assets/hero-demo-3d-mobile.jpg"); }
}

/* ---------- 404.html ---------- */

.page-header--notfound {
  min-height: 82vh;
  min-height: 82svh;
}

/* ---------- トップ：殻が割れる音の切り替えボタン（左下に固定。既定は OFF） ---------- */

.sound-toggle {
  position: fixed;
  left: clamp(12px, 1.8vw, 28px);
  bottom: clamp(12px, 1.8vw, 28px);
  z-index: 95;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #f4f1e8;
  background: rgba(5, 8, 15, 0.72);
  border: 1px solid rgba(244, 241, 232, 0.3);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.sound-toggle:hover,
.sound-toggle[aria-pressed="true"] {
  background: var(--yolk);
  border-color: var(--yolk);
  color: var(--ink);
}

/* ---------- 会社概要：保有資格（代表挨拶の署名の下） ---------- */

.rep-licenses {
  margin-top: clamp(36px, 4.4vw, 60px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.rep-licenses h3 {
  margin-bottom: clamp(14px, 1.8vw, 22px);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: var(--yolk);
}

.rep-license-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: clamp(20px, 3vw, 44px);
  font-size: 14px;
  line-height: 1.7;
}

.rep-license-list li {
  position: relative;
  padding: 5px 0 5px 18px;
  break-inside: avoid;
}

.rep-license-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 6px;
  height: 6px;
  background: var(--yolk);
  transform: rotate(45deg);
}

@media (max-width: 560px) {
  .rep-license-list {
    columns: 1;
  }
}

/* 上のメニューに「AI TEAM（AI社員紹介）」を足して 8 項目になった（2026-10-15 オーナー決定）。
   スマホの全画面メニューで、7・8 番目にも順に現れる遅れを付ける */
@media (max-width: 900px) {
  .nav.is-open a:nth-child(7) { transition-delay: 0.46s; }
  .nav.is-open a:nth-child(8) { transition-delay: 0.51s; }
}

/* 画面に収まらないとき（背の低いスマホ、横向きなど）は、メニューを上から並べてスクロールできるようにする。
   中央寄せのままだと、上下がはみ出して押せない項目が出る。
   safe center に対応したブラウザは「収まるときは中央・収まらないときは上から」。対応していないブラウザは上から並べる */
@media (max-width: 900px) {
  .nav {
    justify-content: flex-start;
    justify-content: safe center;
    overflow-y: auto;
  }
}

/* 事業内容 04（IT と AI）：横長の画像を、ほかの節と同じ正方形の見え方にそろえる（2026-10-18） */
.svc-visual--wide img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 68% 50%;
}

/* AI社員紹介「AIに守らせて／いる決まり」：2 行に区切り、行の途中では折り返さない（2026-10-19 オーナー依頼）。
   長いほうの行が見出しの幅（cqi）に収まらないときだけ文字を小さくする */
.section-head--fit {
  container-type: inline-size;
}

.section-head--fit h2 {
  font-size: min(clamp(28px, 4.2vw, 60px), 15cqi);
}

.section-head--fit h2 .line > span {
  white-space: nowrap;
}
