/* splight AI トップ（リニューアル確認用・2026-09-16 MK）
 * 企画書 6章・7章／design.md（7-8 の書き換え後）に従う。
 * - 文字は動かさない。静止時に動き続けるのはヒーローの写真切替だけ
 * - 本文 16px・1種類・12px 未満なし／明るい色の上に白文字を置かない／枠と影のカードは使わない
 * - 状態のクラスは html・body ではなく #top（.top）に付ける（公開先で html・body が差し替わるため）
 * - このファイルはトップ専用。下層ページの style.css には触れていない
 */

:root {
  --ink: #1f2321;
  --ink-2: #565b58;
  --paper: #ffffff;
  --paper-warm: #fbf8f1;
  --line: #e7e5e0;
  --lemon: #ffc233;
  --mikan: #ff8f3f;
  --coral: #f4645f;
  --accent: #c74309;
  --chip-bg: #fdf3d9;
  --chip-line: #f0d68a;
  --night: #16110c;
  --font-disp: "M PLUS 2", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "splight EN", "Cormorant Garamond", "Times New Roman", serif;
  --font-hero-jp: "splight Hero JP", "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-ui: "splight UI", "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --pad-x: clamp(20px, 5.6vw, 88px);
  --max: 1200px;
  --hdr-h: 72px;
  --fs-small: 13px;
  --fs-body: 16px;
  --fs-title: 20px;
  --fs-sec: 30px;
  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
}
@media (max-width: 699px) {
  :root { --hdr-h: 60px; --fs-sec: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.top { position: relative; background: #ffffff; color: var(--ink); overflow-x: clip; }
.top a { color: inherit; text-decoration: none; }
.top img { display: block; max-width: 100%; height: auto; }
/* 初期化は :where() で弱くし、各区画の余白指定が必ず勝つようにする */
:where(.top) :where(h1, h2, h3, p, ul, ol, figure, dl, dd) { margin: 0; padding: 0; }
:where(.top) :where(ul, ol) { list-style: none; }
.top button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff !important; font-size: var(--fs-small); font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }
.top :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------------------------------------------------------------- ヘッダー */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--hdr-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--pad-x);
  color: #fff;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.35s var(--ease-out);
}
.hdr.is-light { color: var(--ink); background: rgba(255, 255, 255, 0.96); border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-110%); }
/* ロゴ（案1・●なしの文字だけ・9/17 オーナー決定）: 画像。高さ PC 21px／スマホ 19px。
   ヘッダーは白（写真の上用）と色つき（白い背景用）の2枚を同じ場所に重ね、ヘッダーの色に合わせて見せる方を替える */
.logo { display: inline-grid; align-items: center; margin-right: auto; min-height: 44px; }
.top .logo-img { grid-area: 1 / 1; display: block; width: auto; max-width: none; height: 21px; }
.hdr .logo-img { transition: opacity 0.25s ease; }
.hdr .logo-img--color { opacity: 0; }
.hdr.is-light .logo-img--white, .hdr.is-menu .logo-img--white { opacity: 0; }
.hdr.is-light .logo-img--color, .hdr.is-menu .logo-img--color { opacity: 1; }
@media (max-width: 699px) {
  .top .logo-img { height: 19px; }
}
.nav { display: flex; align-items: center; gap: 28px; font-family: var(--font-ui); font-size: var(--fs-body); font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.hdr-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: #fff; color: var(--ink) !important;
  font-family: var(--font-ui); font-size: var(--fs-body); font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.hdr.is-light .hdr-cta { background: var(--ink); color: #fff !important; }
.menu-btn { display: none; }
.menu { display: none; }

@media (max-width: 899px) {
  .hdr { gap: 10px; }
  .nav { display: none; }
  .hdr-cta { min-height: 44px; padding: 0 16px; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .menu-btn span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
  .menu {
    position: fixed; inset: 0; z-index: 99;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 90px 32px 40px; background: #fff; color: var(--ink);
    visibility: hidden; opacity: 0; transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }
  .menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.25s ease; }
  .menu a { display: flex; align-items: center; min-height: 52px; font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-title); }
  .hdr.is-menu { color: var(--ink); background: #fff; }
  .hdr.is-menu .hdr-cta { background: var(--ink); color: #fff !important; }
}

/* ---------------------------------------------------------------- ヒーロー */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  isolation: isolate;
}
/* 重なり順: 開幕の白地と黒い英語・帯(1) < 写真(2) < 文字(4)。文字の層は常に写真より上 */
.hero-open { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none; }
.stage { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: var(--night); transform-origin: 50% 50%; }
.layer { position: absolute; inset: 0; overflow: hidden; }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.layer--group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: transparent; }
.tile { position: relative; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
/* スマホ・タブレット縦の組写真の並べ方は、このファイルの末尾（DS 9/24 指示書 3-2・上1コマ＋下3コマ）。
   ここにあった 2×2 の指定（9/17〜・使われていなかった）は 9/24 に外した */

/* 暗い膜（DS 直し1・2026-09-17）: 全体は20%。白い文字のすぐ後ろ（想い・写真の上の英語・注記・ヘッダーのロゴとメニューとメニューボタン）に
   ぼかした四角（47.5%）を置き、文字の後ろの合計を58%にする（文字の後ろが真っ白でも白い文字は約4.9:1）。
   英語は開幕の白地にも同じ部品（.hero-en--ink）があるので、写真の上の #enLight にだけ付ける */
.film {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: rgba(12, 9, 6, 0.20);
}

.hero-type { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero-type a { pointer-events: auto; }

.hero-omoi::before,
#enLight .hero-en::before,
.hero-note::before,
.hdr:not(.is-light):not(.is-menu) .logo::before,
.hdr:not(.is-light):not(.is-menu) .nav::before,
.hdr:not(.is-light):not(.is-menu) .menu-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: rgba(12, 9, 6, 0.475);
  filter: blur(24px);
}
.hero-omoi::before { inset: -72px; }
#enLight .hero-en::before { inset: -64px; }
.hero-note::before { inset: -56px; }  /* DS 案は -48px。ぼかしの縁で文字の後ろが 56.9% になったため 8px 広げて 57% 以上に（濃さは同じ） */
.hdr .logo, .hdr .nav, .hdr .menu-btn { position: relative; }
.hdr:not(.is-light):not(.is-menu) .logo::before,
.hdr:not(.is-light):not(.is-menu) .nav::before,
.hdr:not(.is-light):not(.is-menu) .menu-btn::before { inset: -60px; }
/* スマホではメニューボタンの四角が白い帯の右上にかぶって帯がくすむ（帯の文字 12.7→6.2:1）ので、下向きの広がりだけ 20px に縮める（DS 案からの変更） */
@media (max-width: 699px) {
  .hdr:not(.is-light):not(.is-menu) .menu-btn::before { inset: -60px -60px -20px -60px; }
}

.hero-omoi {
  position: absolute;
  left: clamp(40px, 8.4vw, 140px);
  top: calc(var(--hdr-h) + clamp(40px, 9vh, 110px));
  writing-mode: vertical-rl;
  font-family: var(--font-hero-jp);
  font-weight: 700;
  font-size: clamp(44px, 4.2vw, 62px);
  line-height: 1.34;
  letter-spacing: 0.12em;
  color: #fff;
}
.hero-omoi span, .hero-band span { display: block; }
/* 想いの文字の切り替え（DS 9/17 指示書 3章）: 4本を同じ場所に重ねる。入れ物は一番大きい文の大きさになるので、位置も暗いぼかしも変わらない */
.hero-omoi { display: grid; }
.hero-omoi .omoi-phrase { grid-area: 1 / 1; }
.hero-omoi .omoi-phrase:not(:first-child) { opacity: 0; }
.hero-omoi .omoi-phrase > span { white-space: nowrap; }  /* 1列が長すぎても列を増やさず下へ伸びる → かぶりの検収で気付ける */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hero-side {
  position: absolute;
  right: clamp(24px, 3.9vw, 72px);
  top: calc(var(--hdr-h) + clamp(40px, 9vh, 110px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 28px;
}
.hero-band {
  writing-mode: vertical-rl;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-family: var(--font-hero-jp);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.9;
  letter-spacing: 0.12em;
  padding: 34px 26px;
}
.btn-lemon {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--lemon); color: var(--ink) !important;
  font-family: var(--font-ui); font-size: var(--fs-body); font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
}
.btn-lemon svg { width: 16px; height: 16px; flex: none; }

.hero-en-wrap { position: absolute; inset: 0; pointer-events: none; }
.hero-en {
  position: absolute;
  left: clamp(40px, 8.4vw, 140px);
  bottom: clamp(56px, 11vh, 104px);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(56px, 5.3vw, 80px);
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  color: #fff;
}
.hero-en--ink { color: var(--ink); }
.hero-note {
  position: absolute;
  right: clamp(16px, 2.6vw, 40px);
  bottom: 18px;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
}

/* 開幕: 白地に白黒の小さな写真の帯（画面と同じ縦横比の小窓） */
.op-band {
  position: absolute; left: 50%; top: 50%;
  display: flex; align-items: center; gap: var(--band-gap, 12px);
  transform: translate(-50%, -50%);
}
.op-band img {
  width: var(--band-w, 92px);
  aspect-ratio: var(--vp-ratio, 1.6);
  height: auto;
  object-fit: cover;
  filter: grayscale(1);
}

@media (max-width: 699px) {
  .hero { min-height: 0; }
  .hero-omoi { left: 20px; top: calc(var(--hdr-h) + 26px); font-size: 36px; line-height: 1.4; letter-spacing: 0.1em; }
  .hero-side { right: 16px; top: calc(var(--hdr-h) + 26px); gap: 16px; }
  .hero-band { font-size: 16px; line-height: 1.8; letter-spacing: 0.1em; padding: 16px 11px; }
  .btn-lemon { min-height: 50px; padding: 0 20px; }
  .hero-en { left: 20px; bottom: 64px; font-size: 42px; }
  .hero-note { right: 14px; bottom: 14px; }
  .op-band { --band-w: 38px; --band-gap: 8px; }
  .op-band picture:first-child, .op-band picture:last-child { display: none; }
}
/* スマホとタブレット縦持ち（縦長の写真を使う画面・top.js の PORTRAIT_MQ と同じ条件）: ヒーローのボタンは出さず、
   写真の上にいる間のヘッダーの「無料体験」をレモン色にする（DS 9/17 12:20・タブレット縦持ちは 17:12 追加） */
@media (max-width: 699px), (orientation: portrait) and (max-width: 1199px) {
  .hero-side .btn-lemon { display: none; }
  .hdr:not(.is-light):not(.is-menu) .hdr-cta { background: var(--lemon); color: var(--ink) !important; }
}
@media (max-height: 640px) and (min-width: 700px) {
  .hero-omoi { font-size: 44px; }
  .hero-band { font-size: 17px; padding: 22px 18px; }
}

/* 状態（#top に JS が付ける） */
.top.is-font-wait .hero-omoi,
.top.is-font-wait .hero-side,
.top.is-font-wait .hero-en-wrap,
.top.is-font-wait .hero-note,
.top.is-font-wait .hdr { opacity: 0; }
.top.mode-opening .hero { background: #ffffff; }
.top.mode-opening .hero-open { display: block; }
.top.mode-opening .stage { visibility: hidden; }
.top.mode-opening .op-band,
.top.mode-opening .hero-en--ink,
.top.mode-opening .hero-omoi,
.top.mode-opening .hero-side,
.top.mode-opening .hero-note,
.top.mode-opening .hdr { opacity: 0; }
.top.mode-opening .hero-en-wrap--light { clip-path: inset(50% 50% 50% 50%); }
.top.mode-opening .hdr { pointer-events: none; }
.top.mode-opening .hero-side a { pointer-events: none; }

/* ---------------------------------------------------------------- 私たちの想い（DS 9/17 指示書 2章） */
.omoi { position: relative; height: 100vh; height: 100svh; background: var(--night); color: #fff; }
.omoi-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.omoi-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* 膜はこの1枚だけ＝不透明度が合計。JS なし・動きを減らす設定では 70% のまま */
.omoi-film { position: absolute; inset: 0; background: rgb(12, 9, 6); opacity: 0.70; }
.omoi-body { position: absolute; top: 50%; transform: translateY(-50%); right: clamp(40px, 8.4vw, 140px); width: min(30em, 42vw); }
.omoi-label { font-family: var(--font-ui); font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: 0.12em; }
.omoi-label::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--mikan); margin-top: 14px; }
.omoi-lead { margin-top: 28px; font-family: var(--font-hero-jp); font-weight: 700; font-size: 44px; line-height: 1.5; letter-spacing: 0.06em; }
/* DS 直し2（9/17 21:10）: 幅 700〜785px で見出し「もっと豊かに。」が本文の幅から右へはみ出す（700px で 33px・768px で 3px）ので、
   見出しの大きさを画面の幅に合わせて小さくする（700px で 39.2px・768px で 43.0px。786px 以上は 44px のまま）。高さの低い画面の 28px の指定より前に置く */
@media (min-width: 700px) {
  .omoi-lead { font-size: min(44px, 5.6vw); }
}
.omoi-lead span { display: inline-block; white-space: nowrap; }  /* 塊の中では折り返さない（MK 9/17: 768px では本文の幅 約323px に「もっと豊かに。」約326px が入らず「もっと豊か／に。」の3行になったため） */
.omoi-text { margin-top: 32px; font-size: 16px; font-weight: 500; line-height: 2.1; letter-spacing: 0.04em; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .omoi-body { left: var(--pad-x); right: var(--pad-x); width: auto; }
  .omoi-lead { margin-top: 22px; font-size: 32px; }
  .omoi-text { margin-top: 24px; line-height: 2.0; }
}
/* 横向きのスマホなど、幅が広く高さが低い画面（幅 700px 以上・高さ 560px 以下）: 文字の塊（約500px）が画面より高くなり、
   上下が約60pxずつ切れた（844×390・812×375 で実測）。幅と位置は DS の指定のまま（左の人物に近づけない）、見出しを小さくし、行と間の間隔だけを詰めて画面の中に収める。
   指示書に無い画面のための MK の追加（9/17）。DS に確認をお願いする。戻すときはこの @media をまるごと消す */
@media (min-width: 700px) and (max-height: 560px) {
  .omoi-label::after { margin-top: 8px; }
  .omoi-lead { margin-top: 10px; font-size: 28px; line-height: 1.3; }
  .omoi-lead span { display: block; }  /* 見出しは指示書どおり「地方を、」「もっと豊かに。」の2行のまま */
  .omoi-text { margin-top: 12px; line-height: 1.7; }
}
/* 動き（動きを減らす設定でないとき、top.js が区画に is-motion を付けてから）。
   DS 案は .top.is-js だけが条件。is-js は先に読む top-boot.js が付けるので、本体の top.js が読めなかったときに文字が出ないまま残る。
   それを避けるため、本体が動き始めた印（is-motion）も条件にした（MK 9/17） */
.top.is-js:not(.mode-reduced) .omoi.is-motion { height: 220vh; height: 220svh; }
.top.is-js:not(.mode-reduced) .omoi.is-motion .omoi-stage { position: sticky; top: 0; }
.top.is-js:not(.mode-reduced) .omoi.is-motion .omoi-body { opacity: 0; transition: opacity 0.4s ease-in; }
.top.is-js:not(.mode-reduced) .omoi.is-motion.is-shown .omoi-body { opacity: 1; transition: opacity 0.8s var(--ease-out); }

/* DS 直し1（9/17 21:10）: 高さ 560px 以下の画面（横向きのスマホなど）では、想いの区画を画面に貼り付けず、暗さ70%と文字を最初から見せる
   （動きを減らす設定と同じ見え方）。理由: 844×390・812×375 では文字の塊（約350px）が、ヘッダーを除いた高さ（318px・303px）に入らず、
   上へ戻してヘッダーが出ると「私たちの想い」とオレンジの線がヘッダーの「無料体験」と重なる（667×375 でも 4px 重なる）。
   上の「横向きのスマホなど」の塊（見出し 28px など）は残す。すぐ上の動きの指定と同じ強さなので、それより後ろに置く（前に置くと上書きされて効かない・MK 9/17） */
@media (max-height: 560px) {
  /* MK の追加（9/17 21:10）: 動きを減らす設定と JS なしでは区画の高さが画面1枚分のまま残り、中身（舞台）が下へはみ出した
     （844×390 で 86px・812×375 で 101px。812×375 では次の区画の見出しに 4px かかる）。区画の高さも中身に合わせる */
  .omoi { height: auto; }
  .top.is-js:not(.mode-reduced) .omoi.is-motion { height: auto; }
  .top.is-js:not(.mode-reduced) .omoi.is-motion .omoi-stage { position: relative; }
  .omoi-stage { height: auto; min-height: 100vh; min-height: 100svh; padding: calc(var(--hdr-h) + 20px) 0 36px; }
  .omoi-body { position: relative; top: auto; left: auto; right: auto; transform: none; margin: 0 clamp(40px, 8.4vw, 140px) 0 auto; }
  .top.is-js:not(.mode-reduced) .omoi.is-motion .omoi-film { opacity: 0.70; }
  .top.is-js:not(.mode-reduced) .omoi.is-motion .omoi-body { opacity: 1; transition: none; }
}
@media (max-height: 560px) and (max-width: 699px) {
  .omoi-body { margin: 0 var(--pad-x); width: auto; }
}

/* ---------------------------------------------------------------- ヒーローの下＝案A（DS 9/18 指示書 12章・オーナー決定 9/18） */
/* 入れ物: ヒーロー1画面＋想い2.2画面＝3.2画面。背景を暗くしておく（スマホのアドレスバーが縮んだとき、下に白い隙間を出さない） */
.hero-block { position: relative; background: var(--night); }
/* 動くとき: ヒーローを入れ物の中で画面に貼り付ける。2.2H で外れ、想いの文字ごと上へ抜ける */
.top.is-js:not(.mode-reduced) .hero { position: sticky; top: 0; }
/* 幕: 膜(.film z3)の上・文字(.hero-type z4)の下。位置はスクロールだけ（top.js が transform を入れる）。
   濃さは写真ごと（setFilm が --curtain-a を入れる）。膜の background-color と同じ 1秒・直線で変える＝切り替えの途中でも合計が 0.70 を割らない */
.hero-curtain { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: rgb(12, 9, 6); opacity: var(--curtain-a, 0.349); transform: translate3d(0, 100%, 0); will-change: transform; transition: opacity 1s linear; }
@media (prefers-reduced-motion: reduce) { .hero-curtain { transition: none; } }
.top:not(.is-js) .hero-curtain, .top.mode-reduced .hero-curtain { display: none; }
/* 想いの区画（動くとき）: 写真も膜も持たず、文字だけを貼り付いたヒーローの上に重ねる */
.top.is-js:not(.mode-reduced) .omoi.is-motion { background: transparent; }
.top.is-js:not(.mode-reduced) .omoi.is-motion .omoi-stage { background: transparent; }
.top.is-js:not(.mode-reduced) .omoi.is-motion .omoi-photo,
.top.is-js:not(.mode-reduced) .omoi.is-motion .omoi-film { display: none; }
/* 高さ 560px 以下（横向きのスマホなど）: 貼り付けず・幕なし。想いの区画は自分の写真（ヒーローの1枚目）＋膜70%＋文字
   （動きを減らす設定と同じ見え方。9/17 21:10 の「貼り付けない・文字を詰める」の分岐はそのまま生きる） */
@media (max-height: 560px) {
  .top.is-js:not(.mode-reduced) .hero { position: relative; }
  .hero-curtain { display: none; }
  .top.is-js:not(.mode-reduced) .omoi.is-motion { background: var(--night); }
  .top.is-js:not(.mode-reduced) .omoi.is-motion .omoi-photo { display: block; }
  .top.is-js:not(.mode-reduced) .omoi.is-motion .omoi-film { display: block; opacity: 0.70; }
}

/* ---------------------------------------------------------------- 区画共通 */
.sec { position: relative; padding: clamp(96px, 12vw, 168px) 0; }
.sec-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
@media (min-width: 1376px) { .sec-inner { padding: 0; } }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: var(--fs-sec);
  line-height: 1.4;
  letter-spacing: 0.04em;
  padding-bottom: 16px;
}
.sec-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 4px; border-radius: 2px; background: var(--mikan);
  transform-origin: 0 50%;
}
.top.is-js .sec-title::after { transform: scaleX(0); }
.top.is-js .sec-title.is-drawn::after { transform: scaleX(1); transition: transform 0.6s var(--ease-out); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; color: var(--accent) !important;
}
.text-link svg { width: 16px; height: 16px; flex: none; }
.text-link:hover span { text-decoration: underline; text-underline-offset: 5px; }
.small { font-size: var(--fs-small); line-height: 1.6; }
.chip {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--chip-bg); border: 1px solid var(--chip-line); color: var(--ink);
  font-size: var(--fs-small); font-weight: 700; line-height: 1; white-space: nowrap;
}

/* ---------------------------------------------------------------- サービス */
.svc-main {
  margin-top: 56px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}
.svc-photo { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: var(--paper-warm); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.top.is-js .svc-photo.is-armed img { clip-path: inset(0 100% 0 0); }
.top.is-js .svc-photo.is-shown img { clip-path: inset(0 0 0 0); transition: clip-path 0.3s var(--ease-out); }
.svc-name { font-family: var(--font-disp); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.4; letter-spacing: 0.03em; }
.svc-name a:hover { text-decoration: underline; text-underline-offset: 6px; }
.svc-can { margin-top: 22px; border-top: 1px solid var(--ink); }
.svc-can li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.svc-can li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mikan); transform: translateY(-2px); }
.svc-price { margin-top: 22px; font-weight: 700; }
.svc-price .tax { font-weight: 500; }
.svc-price .nw { display: inline-block; }
.svc-cta { margin-top: 26px; }
.svc-side { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.svc-side a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
.svc-side a + a { border-left: 1px solid var(--line); padding-left: 28px; }
.svc-side a:hover span { text-decoration: underline; text-underline-offset: 5px; }
.svc-side svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* ---------------------------------------------------------------- 実績紹介 */
.sec--works { background: var(--paper-warm); }
.works { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.works-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #f3efe6; border: 1px solid var(--line); }
.works-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.works-screen img.is-on { opacity: 1; }
.top.is-js .works-screen img { transition: opacity 0.7s ease; }
.works-list { border-top: 1px solid var(--ink); }
.works-item { position: relative; border-bottom: 1px solid var(--line); }
.works-item button {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 0 18px 22px;
}
.works-item::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 2px; background: transparent; }
.works-item.is-on::before { background: var(--mikan); }
.works-name { display: block; font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-title); line-height: 1.5; }
.works-row { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 4px 10px; margin-top: 6px; }
.works-row .dt { font-size: var(--fs-small); font-weight: 700; color: var(--ink-2); line-height: 2.2; }
.works-row .dd { line-height: 1.7; }
.works-more { margin-top: 18px; }

/* ---------------------------------------------------------------- メンバー */
.members { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); }
.member-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 22%; border-radius: 16px; background: var(--paper-warm); }
.top.is-js .member-photo.is-armed { opacity: 0; }
.top.is-js .member-photo.is-shown { opacity: 1; transition: opacity 0.3s ease-out; }
.member-role { margin-top: 18px; font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.member-name { margin-top: 2px; font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-title); letter-spacing: 0.04em; }
.member-bio { margin-top: 6px; }

/* ---------------------------------------------------------------- 各ページへのカード */
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(20px, 2.4vw, 32px); }
.card { display: block; }
.card-photo { overflow: hidden; border-radius: 12px; aspect-ratio: 3 / 2; background: var(--paper-warm); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.card-label { display: flex; flex-wrap: wrap; row-gap: 4px; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 10px 2px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.card-label svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
/* 狭い画面では矢印ではなく名前の方を <wbr> の位置で折り返す（矢印だけが次の行に落ちないように。「準備中」の札があるカードは DS 案どおり札の方を折り返す） */
.card-label > span:only-of-type { flex: 1 1 0; min-width: 0; }
a.card:hover .card-photo img { transform: scale(1.04); }
a.card:hover .card-label span { text-decoration: underline; text-underline-offset: 5px; }
.card--soon .card-photo img { filter: saturate(0.55); }
.card--soon .card-label { color: var(--ink-2); }

/* ---------------------------------------------------------------- フッター */
.ftr { border-top: 1px solid var(--line); background: #ffffff; }
.ftr-inner { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad-x) 28px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
@media (min-width: 1376px) { .ftr-inner { padding-left: 0; padding-right: 0; } }
.ftr-addr { margin-top: 14px; font-style: normal; font-size: var(--fs-small); line-height: 1.9; color: var(--ink); }
.ftr-addr a { text-decoration: underline; text-underline-offset: 3px; }
.ftr-links { display: grid; grid-template-columns: auto; gap: 0; align-content: start; font-size: var(--fs-small); }
.ftr-links a, .ftr-links span { display: inline-flex; align-items: center; min-height: 44px; }
.ftr-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ftr-links span { color: var(--ink-2); }
.ftr-copy { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x) 28px; font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 1376px) { .ftr-copy { padding-left: 0; padding-right: 0; } }

/* ---------------------------------------------------------------- スマホ */
@media (max-width: 899px) {
  .svc-main, .works { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
}
@media (max-width: 699px) {
  .sec { padding: 88px 0; }
  .svc-main, .works, .members { margin-top: 36px; }
  .svc-side { grid-template-columns: 1fr; }
  .svc-side a + a { border-left: 0; padding-left: 4px; }
  .members { grid-template-columns: 1fr; gap: 44px; }
  .member-photo { width: 64%; }
  .ftr-links { grid-template-columns: 1fr; }
}

/* 改行の決まり（DS 直し5）: 日本語を文字の途中で切らず、<wbr> の位置で区切る。2行になるときは行の長さをそろえる */
.works-row .dd, .member-bio, .news-title, .news-excerpt, .card-label span, .svc-side span, .svc-can li, .svc-price {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* ---------------------------------------------------------------- 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .hdr, .hdr-cta, .logo-img, .menu { transition: none !important; }
  .card-photo img { transition: none !important; }
}
.top.mode-reduced .sec-title::after { transform: none !important; transition: none !important; }
.top.mode-reduced .svc-photo img { clip-path: none !important; transition: none !important; }
.top.mode-reduced .member-photo { opacity: 1 !important; transition: none !important; }
.top.mode-reduced .works-screen img { transition: none !important; }

/* ---------------------------------------------------------------- 計測用（計測スクリプトが __top.hideText() で付ける。文字の色だけを透明にして、帯やボタンの地は残す） */
.top.is-measure-hide .hero-open .hero-en,
.top.is-measure-hide .hero-type,
.top.is-measure-hide .hero-type *,
.top.is-measure-hide .hdr,
.top.is-measure-hide .hdr * { color: transparent !important; }
.top.is-measure-hide .hdr .logo-img { visibility: hidden !important; }
/* メニューを開いたときの文字も、計測では消す（9/18 メニュー案C）。
   ヘッダーの「無料体験」はメニュー案C の指定（.hdr.is-menu .hdr-cta）と同じ強さなので、こちらを強く書く */
.top.is-measure-hide .menu,
.top.is-measure-hide .menu * { color: transparent !important; }
.top.is-measure-hide .hdr.is-menu .hdr-cta,
.top.is-measure-hide .hdr.is-light .hdr-cta { color: transparent !important; }
/* 私たちの想い: 文字を透明にし、見出しの下のみかん色の線も消す（文字の後ろの明るさを測るため） */
.top.is-measure-hide #omoi .omoi-body,
.top.is-measure-hide #omoi .omoi-body * { color: transparent !important; }
.top.is-measure-hide #omoi .omoi-label::after { visibility: hidden !important; }
/* スマホで写真の上にいる間のヘッダーの「無料体験」は文字色の指定が強いので、計測のときはこちらでも消す */
.top.is-measure-hide .hdr:not(.is-light):not(.is-menu) .hdr-cta { color: transparent !important; }
/* 膜の濃さを測るとき: 写真を消して白地にし、膜だけを写す */
.top.is-film-probe .layer { visibility: hidden !important; }
.top.is-film-probe .stage { background: #ffffff !important; }
.top.is-film-probe .omoi-photo { visibility: hidden !important; }
.top.is-film-probe .omoi-stage { background: #ffffff !important; }
/* 案A（9/18 指示書12章）: 動くときの想いの舞台は貼り付いたヒーローの上に重なるので、白く塗らない（塗ると幕の濃さが測れない） */
.top.is-film-probe .omoi.is-motion .omoi-stage { background: transparent !important; }

/* ================================================================================================
 * 2026-09-18 オーナー決定（9/18 0時ごろ・朝）: 白い帯と小さい見出しを画面から消す／文字とロゴの後ろの部分的な膜をやめる／
 * スマホは案C（想いを右上・見出しなし）／暗くし方は案2（写真ごとに必要な分だけ 36〜57%）／黄色いボタンをやめて「無料体験」は文字のリンク。
 * 下の3つは DS の直し案（_review_ds/260918_*.css）を指示書8-1 の順番どおりにそのまま写したもの。戻すときはこの区切りから下を消す。
 * ================================================================================================ */

/* ---- 写し元: _review_ds/260918_共通_帯と部分膜をやめる_スマホ案C改.css ---- */
/* ============================================================================
 * 共通（PC・スマホ）: 白い帯と見出しの文字をやめる／文字とロゴの後ろの部分的な暗い膜をやめる
 *                     ＋スマホは案C（想いを右上）から見出しを外した形（DS 2026-09-18・オーナー指示 9/18 0時ごろ）
 * 依頼元: AI（秘書経由）／実装: MK／top.css の末尾に足す。読みやすさの守り方は案1・案2 のどちらかを続けて入れる
 * ========================================================================== */

/* 1. 見出し（h1）の白い帯をやめる。ただし h1 の文は読み上げと検索のために見えない形で残す
      （display:none だと検索・読み上げから消えるため、位置だけ画面外にする） */
.hero-band {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  background: none !important;
  border: 0;
}

/* 2. 文字とロゴの後ろの部分的な暗い膜（ぼかした四角）をやめる */
.hero-omoi::before,
#enLight .hero-en::before,
.hero-note::before,
.hdr:not(.is-light):not(.is-menu) .logo::before,
.hdr:not(.is-light):not(.is-menu) .nav::before,
.hdr:not(.is-light):not(.is-menu) .menu-btn::before {
  content: none;
}

/* 3. スマホ・タブレット縦（縦長の写真を使う画面）: 想いを右上に置く（案C から見出しを外した形）
      ・想い 36px・行の間 1.2・字の間 0.06em（案C と同じ）
      ・英語は下の余白 52px、注記と英語の左右の余白はヘッダーと同じ --pad-x */
@media (max-width: 699px), (orientation: portrait) and (max-width: 1199px) {
  .hero-type {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: flex-start;
    padding: calc(var(--hdr-h) + 8px) var(--pad-x) 0;
  }
  .hero-omoi {
    position: relative;
    left: auto; top: auto;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: 0.06em;
  }
  .hero-side { display: none; }   /* 帯（見えない h1）とボタンの入れ物。スマホではボタンも出さない */
  .hero-en { left: var(--pad-x); bottom: 52px; }
  .hero-note { right: var(--pad-x); }
}

/* ---- 写し元: _review_ds/260918_ヒーロー案2_写真ごとに必要な分だけ.css ---- */
/* ============================================================================
 * 読みやすさの守り方 案2「写真ごとに必要な分だけ暗くする（36〜57%）」（DS 2026-09-18）
 * 共通（260918_共通_帯と部分膜をやめる_スマホ案C改.css）の後に入れる
 * 考え方: 明るい写真だけ濃く、暗い写真は明るいまま残す。写真の切り替えに合わせて濃さも変える
 * 数値［DS実測・一番長い文で確認］: PC 16場面 最小 4.60:1／スマホ 5場面 最小 4.63:1（必要値＋3%のとき）
 *   ※ 必要値＋1% だと造船・工場で 4.47:1 と足りない。**＋3%・上限57%** で運用する
 * ========================================================================== */
.film {
  background-color: rgba(12, 9, 6, var(--film-a, 0.57));
  transition: background-color 1s linear;   /* 写真の重ね合わせ（1秒）と同じ長さで濃さも変える */
}
/* 動きを減らす設定では、濃さの変化も出さない（写真も切り替わらないので値は最初の写真のもの） */
@media (prefers-reduced-motion: reduce) {
  .film { transition: none; }
}

/* --- 入れ方（MK）
 * 1. `_renewal/photos.json` の写真ごとに `film` を持たせる（例: "film": 0.57）。値は run_checks.py が計算した
 *    「必要値（写真だけを撮って二分探索）＋0.03・上限0.57」。組写真は4コマの中で一番大きい値を使う
 * 2. `prep_photos.py` が `top-photos.js` に `film` を書き出す（singles[].film / groups[].film）
 * 3. `top.js` の切り替えで、次の写真の値を入れる:
 *      const setFilm = (v) => { film.style.setProperty('--film-a', String(v ?? 0.57)); };
 *      - beginSwitch() の中（el を出す直前）に `setFilm(item.photo.film)`
 *      - freezeCycle(i) / cycleSeek(to, ms) でも同じように入れる（計測で場面ごとの濃さを再現するため）
 *      - 開幕の終わり（finishOpening）で1枚目の値を入れる
 * 4. 開幕の途中は今までどおり 0 →（1枚目の値）へ。openingAt() の film を 1枚目の値でかけ算する
 * --- 一律57%（案1）に戻すとき: この2つのファイルを外し、`.film { background: rgba(12,9,6,0.57); }` に戻す
 */

/* ---- 写し元: _review_ds/260918_ボタンをやめる_ヘッダーは文字リンク.css ---- */
/* ============================================================================
 * 黄色いボタンをやめる（PC・スマホ共通）（DS 2026-09-18・オーナー指示「pc案2でokだが、黄色いボタンは不要」）
 * 依頼元: AI（秘書経由）／実装: MK／共通（260918_共通_…）と案2（260918_ヒーロー案2_写真ごとに…）の後に入れる
 * 中身: ①ヒーローの黄色いボタンを出さない ②ヘッダーの「無料体験」を、下線つきの文字リンクにする
 * 計測の目印: HTML は触らないので `data-cta="header"` はそのまま残り、押された場所の記録（header／menu／hero）は続く
 *             （ヒーローのボタンは出さなくなるので `data-cta="hero"` の記録だけ止まる）
 * ========================================================================== */

/* 1. ヒーローの黄色いボタン（PC の右上）を出さない。
      入れ物（.hero-side）は残す＝見えない h1 の文が DOM に残るため（display:none にしない） */
.hero-side .btn-lemon { display: none; }

/* 2. ヘッダーの「無料体験」＝ボタンの形と地の色をやめ、文字のリンクにする。
      ほかのメニューより少しだけ強く見せるため、太さ700＋つねに下線（ほかは hover のときだけ下線）。
      ※ 下線は `.top a { text-decoration: none }` に負けるので、`.top .hdr-cta` と書く
      写真の上では白い文字、白い地のヘッダーとメニューを開いたときは濃い文字 */
.top .hdr-cta {
  min-height: 44px;
  padding: 0 !important;
  border-radius: 0;
  background: none !important;
  color: inherit !important;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
  margin-left: 8px;
}
.hdr.is-light .hdr-cta,
.hdr.is-menu .hdr-cta { background: none !important; color: var(--ink) !important; }
.hdr:not(.is-light):not(.is-menu) .hdr-cta { background: none !important; color: #fff !important; }
.top .hdr-cta:hover { text-decoration-thickness: 2px; }

/* 3. スマホ: ボタンが無くなるぶん、メニューボタンとの間を少し空ける（文字どうしがくっつかないように） */
@media (max-width: 899px) {
  .top .hdr-cta { margin-left: 4px; margin-right: 6px; }
}

/* MK 9/18: スマホ・タブレット縦で DS 案は .hero-side を display:none にしているが、それだと中の見出し（h1）が
   読み上げと検索から消える（DS の方針「h1 の文は display:none にしない」と食い違う）。
   見た目と配置は display:none と同じ（位置を画面外にして流れから外す）まま、文だけ残す。戻すときはこの塊を消す */
@media (max-width: 699px), (orientation: portrait) and (max-width: 1199px) {
  .hero-side {
    display: block;
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* ---- 写し元: _review_ds/260918_メニュー案C_写真をぼかす.css（9/18 オーナー決定・ヒーローの確定案の後に置く） ---- */
/* ============================================================================
 * スマホのメニュー 案C「後ろの写真をぼかして暗くする（白い文字）」（DS 2026-09-18）
 * 考え方: 開いてもヒーローの写真が透けて見え、同じ画面の続きとして読める
 * 対応していないブラウザ（backdrop-filter 非対応）は、夜色の画面になる（@supports の書き分け）
 * ========================================================================== */
@media (max-width: 899px) {
  /* 閉じているとき: 2本の線（今と同じ太さ・少し長く） */
  .menu-btn { gap: 7px; }
  .menu-btn span { width: 24px; height: 2px; transition: transform 0.25s var(--ease-out); }
  .hdr.is-menu .menu-btn span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .hdr.is-menu .menu-btn span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  /* 開いたとき: 後ろの写真をぼかし、その上に濃い膜（合計で白い文字が読める濃さ） */
  .menu {
    background: rgba(18, 14, 10, 0.78);
    -webkit-backdrop-filter: blur(26px) saturate(0.9);
    backdrop-filter: blur(26px) saturate(0.9);
    color: #fff;
    padding: calc(var(--hdr-h) + 28px) var(--pad-x) 40px;
    justify-content: flex-start;
    gap: 0;
  }
  @supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .menu { background: var(--night); }
  }
  .menu a {
    min-height: 64px;
    color: #fff;
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
  }
  .menu a:last-child {
    border-bottom: 0;
    margin-top: 12px;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
  }
  .hdr.is-menu { background: transparent; color: #fff; border-bottom-color: transparent; }
  .hdr.is-menu .logo-img--white { opacity: 1; }
  .hdr.is-menu .logo-img--color { opacity: 0; }
  .hdr.is-menu .hdr-cta { color: #fff !important; }
  @media (prefers-reduced-motion: reduce) {
    .menu-btn span, .menu { transition: none !important; }
  }
}

/* 9/18 オーナー指示「ヒーローの『写真はイメージです』は不要」: 注記を画面から消す。
   HTML の行（.hero-note）はそのまま残す（動きの仕組み top.js がこの要素を使っており、消すと開幕の処理も直す必要があるため）。
   戻すときはこの1行を消すだけ。文字は画面から無くなるので、検収の「注記の読みやすさ・注記の後ろの暗さ・注記のかぶり」は自動的に対象から外れる */
.hero-note { display: none; }

/* ---- 写し元: _review_ds/260918_実績_4件のカード.css（9/18 オーナー指示・実績の区画だけ先に入れる） ---- */
/* ============================================================================
 * 「外注せずに作ったもの」→「実績」（受託のお客様の実績も載せる・4件のカード）（DS 2026-09-18）
 * 依頼元: AI（秘書経由・オーナー指示「外注せずに作ったものではなく実績にして（コスナビの実績なども）」）
 * 実装: MK／top.css の末尾に足す。HTML の形は指示書10章（4件ぶんのカード）
 * 本番の実績ページから取り入れたもの: 画面写真＋題＋短い説明の並び。トップでは4件を2列に並べる
 * 画面写真が無い実績: 写真の枠に紙色の面と「画面写真は準備中」（13px・濃い文字）を置き、
 *                     写真ありのカードと同じ高さにそろえる（枠だけ空くのを防ぐ）
 * ========================================================================== */
.sec--works { background: var(--paper-warm); }
/* 主役1件（横長）＋小カード3件。文字の量を1画面200字以下に保つため、詳しい説明は主役だけに置く */
.works { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.wk-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: stretch; }
.wk-card--lead .wk-shot { aspect-ratio: auto; height: 100%; min-height: 240px; }
.wk-card--lead .wk-body { display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; }

.wk-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.wk-shot { position: relative; aspect-ratio: 16 / 10; background: var(--paper-warm); overflow: hidden; }
.wk-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 画面写真が無いとき */
.wk-shot--none { display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.wk-shot--none span { font-size: var(--fs-small); font-weight: 700; color: var(--ink-2); letter-spacing: 0.06em; }
.wk-body { padding: 20px 22px 24px; }
.wk-client { font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.wk-name { margin-top: 6px; font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-title); line-height: 1.5;
  word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }   /* 題が1文字だけ次の行に落ちるのを防ぐ（HTML の <wbr> と合わせて使う） */
.wk-rows { margin-top: 10px; display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 4px 10px; }
.wk-rows .dt { font-size: var(--fs-small); font-weight: 700; color: var(--ink-2); line-height: 2.2; }
.wk-rows .dd { line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.works-more { margin-top: 28px; }

@media (max-width: 899px) {
  .works { grid-template-columns: 1fr; gap: 20px; }
  .wk-card--lead { grid-template-columns: 1fr; }
  .wk-card--lead .wk-shot { aspect-ratio: 16 / 10; min-height: 0; }
  .wk-card--lead .wk-body { padding: 20px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-card { transition: none; }
}

/* MK 9/18: DS の実績の CSS は `.wk-card--lead { display: grid }` の後ろに `.wk-card { display: block }` が来るため、
   主役カード（コスナビ様）が縦積みになり、PC で高さ897px・写真が幅いっぱいになっていた（11:04 実測）。
   DS が意図した「写真は左・中身は右」を後ろに置き直す。戻すときはこの塊を消す */
.wk-card--lead { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: stretch; }
.wk-card--lead .wk-shot { aspect-ratio: auto; height: 100%; min-height: 240px; }
.wk-card--lead .wk-body { display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; }
@media (max-width: 899px) {
  .wk-card--lead { grid-template-columns: 1fr; }
  .wk-card--lead .wk-shot { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .wk-card--lead .wk-body { padding: 20px 22px 24px; }
}

/* ---- 写し元: _review_ds/260918_できること_本番Service風.css（9/18 オーナー決定・区画の題は「サービス」） ---- */
/* ============================================================================
 * 「できること」区画を、本番の Service 区画のような見せ方にする（DS 2026-09-18）
 * 依頼元: AI（秘書経由・オーナー指示「できることのセクションは現在の本番のようなServiceセクションのような表示に」）
 * 実装: MK／top.css の末尾に足す。中身（文言・料金・リンク先）は今のまま、見せ方だけ変える
 * 本番から取り入れたもの: ①写真つきの大きな主役カード（写真＋題＋中身＋料金＋矢印）②脇の項目を写真なしのカード2枚に
 * 本番と変えたもの（理由）:
 *   ・英語の見出し「Service」は付けない（新しいトップの決まり「区画の見出しは日本語だけ」）
 *   ・カードの後ろの曲線（SVG）は入れない（区画ごとの動きを1つに保つ・読み込みを増やさない）
 *   ・脇のカードに写真を入れない（今ある写真は8業種を下のカードで使い切っており、同じ写真が近くで重なるため）
 * ========================================================================== */

/* 主役カード: 紙色の台に、写真と中身を1枚のカードとして載せる */
.svc-main {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 0;
  align-items: stretch;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.svc-photo { border-radius: 0; aspect-ratio: 3 / 2; height: 100%; }   /* 本番の写真（900×600）に合わせる */
@media (min-width: 900px) { .svc-photo { width: 100%; } }   /* MK 9/18 18:xx: height:100%とaspect-ratioの同時指定で幅が列を超えて右の文章に重なるバグの修正。900〜1920pxで実測し重なり0pxを確認（戻すときはこの1行を消す） */
.svc-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.svc-name { font-size: clamp(24px, 2.2vw, 30px); }
.svc-name a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }   /* 押せる高さ 44px */
.svc-can { margin-top: 18px; border-top: 1px solid var(--line); }
.svc-can li { padding: 12px 0; }
.svc-price { margin-top: 18px; }
.svc-cta { margin-top: 22px; }

/* 脇の2つ: 文字だけのカード2枚（枠と余白で「押せる面」に見せる） */
.svc-side {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 0;
}
.svc-side a {
  min-height: 104px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.svc-side a + a { border-left: 1px solid var(--line); padding-left: 22px; }
.svc-side a:hover { border-color: var(--mikan); background: var(--paper-warm); }

@media (max-width: 899px) {
  .svc-main { grid-template-columns: 1fr; }
  .svc-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 699px) {
  .svc-side { grid-template-columns: 1fr; }
  .svc-side a + a { border-left: 1px solid var(--line); padding-left: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-side a { transition: none; }
}

/* 申し込みの入口（DS 案）: 黄色いボタンをやめ、濃い色（#1f2321）のボタン＋白い文字にする。
   ・ヒーローとヘッダーで黄色をやめた流れに合う（画面で一番強い色を1つ減らす）
   ・写真の上ではないので「明るい色の上に白文字」にはならない（明暗の差 15.9:1）
   ・押せる場所がはっきり残る（本番の矢印だけのリンクより、申し込み口が弱くならない）
   ※ オーナーが「本番と同じ矢印のリンク」を選ぶ場合は、この塊を外して
     .svc-cta a { background: none; color: var(--accent) !important; text-decoration: underline; } にする */
.svc-cta .btn-lemon {
  background: var(--ink);
  color: #fff !important;
}
.svc-cta .btn-lemon svg { color: #fff; }

/* ============================================================================
 * 追記（DS 2026-09-18・オーナー指示「できることではなくサービスとして／本番のようにカードで」）
 * 区画の題を「サービス」に。主役カード（月額AIレクチャー）＋「必要なときに、つくる・直す」の
 * カードの並び（本番と同じ組み立て）。カードに写真は入れない（下のカード群と写真が重なるため・主役を一番大きく見せるため）
 * ========================================================================== */
.svc-group {
  margin-top: 40px;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: var(--fs-title);
  letter-spacing: 0.04em;
}
.svc-side {                       /* カードの並び（本番の svc-cards に当たる） */
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 0;
}
.svc-side a {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: start;
  justify-items: start;
  gap: 8px;
  padding: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  font-weight: 400;
}
/* カードの写真（本番と同じ写真）。主役より背を低くするため 16:9 で切り抜く */
.svc-side .svc-cphoto { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-warm); }
.svc-side .svc-cphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-side .svc-ctitle, .svc-side .svc-cdesc { padding: 0 20px; }
.svc-side svg { margin: 0 20px; }
.svc-side a + a { border-left: 1px solid var(--line); padding-left: 22px; }
.svc-side .svc-ctitle { font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-title); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.svc-side .svc-cdesc { font-size: 15px; line-height: 1.8; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.svc-side svg { align-self: end; justify-self: end; }
@media (max-width: 899px) {
  .svc-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .svc-side { grid-template-columns: 1fr; gap: 12px; }
  .svc-side a { min-height: 0; }
}

/* MK 9/18: サービスのカードは4枚（オーナー指示「SEOやAEOも入れて」）。
   PC は 2列×2行（オーナー判断 9/18 12:5x）。理由: 4列だと区画がまるごと1画面に入り、1画面の文字数が 212字 になって基準（200字以下）を超えるため。
   2列にすると文字が2つの画面に分かれ 198字 になる（実測）。
   カードの写真は PC だけ 3:1 にして背を低くする（2列にすると写真が大きくなり、カードの高さ 451px が主役カード 438px を超えて「主役が一番大きく見える」が崩れるため。
   3:1 にするとカード 316px・主役 438px＝1.39倍・面積で2.8倍）。
   あわせて、DS の CSS に残っていた2枚のころの指定（2枚目以降の左の線と左余白）を打ち消す（写真が端まで届かなくなるため）。
   戻すとき: この塊を消す（4列に戻すなら repeat(4, …)・3枚に戻すなら HTML の SEO・AEO対策のカードも消す） */
@media (min-width: 1100px) {
  .svc-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-side .svc-cphoto { aspect-ratio: 3 / 1; }
}
.svc-side a + a { border-left: 1px solid var(--line); padding-left: 0; }

/* ============================================================================
 * お知らせ：写真（アイキャッチ）と本文の書き出しを添える（DS 2026-09-18）
 * 依頼元: AI事業部（オーナー指示 9/18 19時台）「TOPのお知らせセクションはアイキャッチ画像と
 *          少し本文が表示されるように修正して」
 * 主管: AI事業部 ／ デザイン: DS ／ 実装: MK
 * 適用先: top.css の末尾にそのまま追記する。
 *   追記後、既存の 486〜490行（.news 系の元の定義）と 531行（スマホ用の .news a 上書き）は
 *   セレクタが重なるため、あとに書いたこのブロックの値で自動的に上書きされる。
 *   紛らわしければ 486〜490行・531行は削除してよい（このブロックだけで完結する）。
 *   → 2026-09-18 実装（MK）: 旧 .news 定義（見出しコメント＋5ルール）とスマホ用の上書き行は削除済み。
 * HTML の形・JS の変更点・字数とコントラストの実測は指示書を参照:
 *   .company/ai/renewal_260916/_review_ds/260918_お知らせ区画_写真と書き出し_指示書.md
 *
 * ── 形を「画像が上のカード」にせず「横長の行のリスト」のまま保った理由（指示書 6章）──
 *   このページはすでに「サービス」の小さいカード4枚・「実績」のカード4枚・「メンバー」の
 *   正方形写真3枚と、"画像が上・文字が下" の箱形が3つ連続している。お知らせも同じ箱形にすると
 *   下に向かって4つ目・5つ目の同じ形が続いてしまう。お知らせは罫線で区切った横長の行のまま、
 *   左に小さな写真だけを足すことで、他の区画と見分けがつく形にした。
 * ========================================================================== */

.news { margin-top: 48px; border-top: 1px solid var(--ink); }
.news a {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 8px 24px;
  min-height: 130px;                 /* 写真の高さ99px＋上下の余白32px。押せる高さの基準44px以上を大きく上回る */
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.news a:hover .news-title { text-decoration: underline; text-underline-offset: 5px; }

.news-thumb {
  display: block;
  width: 148px;
  aspect-ratio: 3 / 2;                /* 用意されている画像は縦横比 3:2 のみ。実寸は medium(300×200) を使う */
  border-radius: 6px;                 /* 他のカード写真の角丸12〜16pxより控えめにして、カードと見分けがつくようにする */
  overflow: hidden;
  background: var(--paper-warm);      /* 読み込み中・失敗時の下地。onerror 時はこの色の空枠だけが残る */
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 写真が読み込めなかった（onerror）ときの保険の続き: .news-thumb を消すだけだと 2 列のグリッドの
   1列目（148px）に .news-body が入ってしまい、文字が狭い列へ押し込まれる（実装確認で発見・2026-09-18）。
   指示書5章の「文字だけの行として崩れずに残す」を満たすため、そのときは1列グリッドに切り替える。
   onerror 側で .news-thumb を消すのと同時に、行の <a> へ .news--no-thumb を付ける（JS・控えHTML 共通）。 */
.news a.news--no-thumb { grid-template-columns: minmax(0, 1fr); }

.news-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.news-date { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.news-title { font-weight: 700; line-height: 1.6; }
.news-excerpt {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);                /* 白地との明暗差 6.92:1（基準4.5:1以上・指示書8章） */
  display: -webkit-box;
  -webkit-line-clamp: 2;              /* 行数の保険。表示する文字数そのものは JS 側で35字までに切って200字ルールを守る（指示書7章） */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.7em * 2);        /* 抜粋が短い記事でも2行分の高さを確保し、3件の行の高さをそろえる（文字のずれ防止） */
}

@media (max-width: 699px) {
  .news a {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 6px 16px;
    min-height: 88px;                 /* 写真の高さ64px＋上下の余白24px */
    padding: 12px 4px;
  }
  .news-thumb { width: 96px; }
  .news-excerpt { font-size: 13px; }
}

/* ==========================================================================
 * 区画の余白を詰める（DS 2026-09-18・オーナー指示「メンバー・お知らせ・各ページへの下の空きが広すぎる」）
 * 依頼元: AI（秘書経由）／実装: MK
 *
 * 考え方: 5つの区画（サービス・実績・メンバー・お知らせ・各ページへ）を同じ値でそろえたまま、全体を 1/3 詰める
 *   PC 1440   168px → 112px（区画と区画の間 336px → 224px）
 *   タブレット 768   96px →  88px
 *   スマホ 390       88px →  88px（変えない・スマホは中身が縦に長く、空きは目立っていない）
 * 上と下は同じ値にする（実績の帯の中で中身が上下どちらかに寄らないように）
 * 題の上の余白（112／88）はヘッダーの高さ（72／60）より大きい＝区画の先頭へ飛んでも題が隠れない
 *
 * 下の3区画だけ詰める案を採らなかった理由: 実績の区画だけ背景色が違うため、帯の内側168pxと
 * 帯の下の白い余白の差が見え、メンバーの題が帯にくっついて見える（DS 実測）
 *
 * 実測: ページの高さ PC 8,581→8,021px（−560）／タブレット −80px／スマホ 変わらず
 *       1画面の文字数は 3つの画面幅とも変わらない（286／270／217字）
 * ========================================================================== */
.sec { padding: clamp(88px, 8vw, 112px) 0; }
/* スマホ（699px 以下）は今と同じ 88px。518行目の指定を上書きしたことを明示しておく */
@media (max-width: 699px) { .sec { padding: 88px 0; } }

/* ==========================================================================
 * 組写真（DS 2026-09-24 指示書「ヒーロー組写真とカード写真」3-2・6-3／オーナー決定 9/24）
 * スマホ・タブレット縦（縦長の写真を使う画面・top.js の PORTRAIT_MQ と同じ条件）は「上に1コマ目を大きく（55%）＋下に3コマ（45%）」。
 * 下の並びは 4コマ目・2コマ目・3コマ目（英語が乗る左と中央に手元が高いコマ、右端に手元が低いコマ）。1コマ目は少し上寄りに切り抜く。
 * パソコン（横長の写真を使う画面）は今までどおり4コマ横並び（上の .layer--group のまま）。戻すときはこの塊を消す
 * ========================================================================== */
@media (max-width: 699px), (orientation: portrait) and (max-width: 1199px) {
  .layer--group { grid-template-columns: repeat(3, 1fr); grid-template-rows: 55fr 45fr; gap: 2px; }
  .layer--group .tile:first-child { grid-column: 1 / -1; }
  .layer--group .tile:first-child img { object-position: 50% 35%; }
  .layer--group .tile:nth-child(4) { order: 1; }
  .layer--group .tile:nth-child(2) { order: 2; }
  .layer--group .tile:nth-child(3) { order: 3; }
}
