/* ⭐明るさの作り方は、有名6社を実測して決めた（Apple・Stripe・Airbnb・任天堂・無印・メルカリ）
   ⛔カードを四方の枠で囲まない。6社のうち四方囲みを使うのは任天堂の3か所だけ
   ⭐区切りは「白いカード × わずかに沈んだ下地（1.11:1）」＋ 24px の隙間が担う
   ⭐太さは 400 と 700 の2段だけ（Spotify・任天堂と同じ。⛔500と600の差は読む側に伝わらない）
   ⭐700 を使うのは「名前」だけ（ページ名と作品名）。⛔それ以外は全部 400
   ★任天堂のソフト一覧は太字63%でも成立している。理由は「全部が作品名」＝役割が1つだから
   ⭐大きい字ほど字間と行間を締める（Figma実測: 16px→行間1.45倍／44px→1.10倍／88px→1.00倍）
   ⛔色は目で決めない。コントラスト比を測って決めている（本文 4.5:1） */
:root {
  color-scheme: light;

  /* ⭐2026-11-13 pineさん「濃いめの緑にクリーム」。⛔色は目で決めていない。下の比は測った値。
     ★変えたのは ⑴緑を1段濃く ⑵下地をクリームに ⑶それに合わせて灰を温かい側へ、の3つ。 */
  --bg: #f5f3ed;         /* クリーム。白カードとの段差 1.11:1 */
  --card: #ffffff;
  --ink: #2a2825;        /* カード上 14.70:1 ／ 下地 13.25:1。⛔真っ黒は使わない */
  --ink-soft: #56524b;   /* カード上  7.77:1 ／ 下地  7.00:1 */
  --ink-faint: #625d55;  /* カード上  6.53:1 ／ 下地  5.88:1 ／ 細線の地 5.05:1 */
  --hair: #e6e2d9;       /* 片辺1本の細線だけに使う。⛔四方を囲まない */
  --accent: #076b43;     /* カード上  6.58:1 ／ 下地  5.93:1。⭐旧 #0a7d4f は 5.17／4.65 で余裕が無かった */
  --accent-ink: #ffffff; /* 緑地の上  6.58:1 */
  --snag: #a33a15;       /* カード上  6.6:1 ／ 淡い地の上 6.0:1 */
  --snag-bg: #fdf1ec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(38, 43, 51, .04), 0 2px 10px rgba(38, 43, 51, .05);
  --shadow-up: 0 2px 4px rgba(38, 43, 51, .06), 0 10px 24px rgba(38, 43, 51, .10);

  --font-head: "Zen Kaku Gothic New", system-ui, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-body: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

/* ⛔このサイトは明るい一本に決めている（2026-10-22 pineさん指示「明るいサイトを作って」）。
   暗い配色に切り替えない。⭐そのぶん、どの色も上で必ず指定しきっている */

/* 濃い線を求めている人にだけ、枠を戻す */
@media (prefers-contrast: more) {
  :root { --hair: var(--ink-faint); }
  .card, .lead-card, .note-sec { border: 2px solid var(--ink-faint); }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 80px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

/* ⭐2026-11-03: トップだけ 820 → 1100 にした。目的は作品一覧を2列から3列にすること。
   ⛔**作品ページ（9枚）は 820px のまま。**★1100px にすると見出し画像が大きくなりすぎ、
     本文（34em）の右に空白が大きく余って読みにくかった（2026-11-03 に実物で確認）。
   ⇒ 広げるのは <body class="home"> のトップだけ。
   ⛔この style.css は作品ページ9枚と共有している。ここを直すときは必ず1枚開いて確かめる。 */
.hero, .autow, main, footer { max-width: 820px; margin-inline: auto; }
body.home .hero, body.home .autow, body.home main, body.home footer { max-width: 1100px; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px; top: 0; z-index: 10;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 400; padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---- つかみ ---- */
.hero { padding-block: 44px 0; }

/* ⭐2026-11-13: 入口を「大きな看板＋勝手に切り替わる舞台」にした（見比べの⑪＋⑧）。
   ⛔2026-11-03 の .hero-in / .hero-art（絵4枚を右に並べる形）はやめた。理由は2つ:
     ⑴4枚のうち2枚（ムツナギ・ROWTATE）が、同じ1画面の中でカードにも出ていた
     ⑵スマホでは絵を出していなかったので、入口が文字だけだった
   ⭐かわりに 9本ぜんぶを 5秒ずつ見せる。⛔ぜんぶ出すから「重複」ではなく「地図」になる。
   ⭐⭐JavaScript は1行も使っていない（CSSアニメーション＋チェックボックス）。
     ★トップの <script> 0個 は、このサイトの取り柄。崩していない。 */
.ctl { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.autow {
  margin-top: 16px; padding: 18px 18px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
/* ⭐高さを縮めたぶん、1画面目にカードが入る。⛔絵は逆に大きくする（⒥の実測 幅の56%） */
.stage { position: relative; aspect-ratio: 16 / 5; min-height: 200px; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 34%); gap: 22px; align-items: center;
  opacity: 0; animation: cyc 55s linear infinite;
}
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }
.slide:nth-child(5) { animation-delay: 20s; }
.slide:nth-child(6) { animation-delay: 25s; }
.slide:nth-child(7) { animation-delay: 30s; }
.slide:nth-child(8) { animation-delay: 35s; }
.slide:nth-child(9) { animation-delay: 40s; }
.slide:nth-child(10) { animation-delay: 45s; }
.slide:nth-child(11) { animation-delay: 50s; }
/* ⭐カードと同じ 16:10。⛔正方形に contain で詰めない（2026-11-03 に捨てた形） */
/* ⭐舞台の絵にも同じマットを置く（カードと同じ考え方） */
/* ⛔ここは「比」ではなく「高さ」で決める。★舞台の高さいっぱいに絵を入れるため。
   ⚠️16:10 の絵を 2:1 くらいに切ることになる（上下が少し切れる）。
     ⭐⒥の試作で9枚とも中身が読めることを確かめてから入れている。 */
.slide .ph {
  display: block; height: 100%; padding: 7px; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow-up);
}
.slide .ph img {
  display: block; width: 100%; height: 100%; aspect-ratio: auto;
  object-fit: cover; object-position: center; border-radius: 9px; background: var(--hair);
}
.slide-body { min-width: 0; }
.slide-k { margin: 0; font-size: .78rem; letter-spacing: .14em; color: var(--accent); }
.slide-n {
  margin: .4em 0 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem); line-height: 1.3; letter-spacing: -.022em; color: var(--ink);
}
.slide-t { margin: .35em 0 0; max-width: 24em; font-size: .95rem; color: var(--ink-soft); }
.slide .mini-spec { margin-top: .6em; }

/* ⭐11枚・1枚5秒・1周55秒（2026-11-19 に 9枚→11枚）。
   ⛔％は手で書かない: 秒 ÷ 55秒 × 100。出入りの秒は前と同じ（0.54 / 4.10 / 4.64） */
@keyframes cyc {
  0%          { opacity: 0; transform: translateX(16px); }
  0.98%  { opacity: 1; transform: none; }
  7.45%  { opacity: 1; transform: none; }
  8.44%  { opacity: 0; transform: translateX(-16px); }
  100%        { opacity: 0; transform: translateX(-16px); }
}
@keyframes dot {
  0%          { background: #cfc9bd; transform: scale(1); }
  0.98%  { background: var(--accent); transform: scale(1.4); }
  7.45%  { background: var(--accent); transform: scale(1.4); }
  8.44%  { background: #cfc9bd; transform: scale(1); }
  100%        { background: #cfc9bd; transform: scale(1); }
}

.bar { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.dots { display: flex; gap: 9px; margin: 0; padding: 0; list-style: none; }
.dots li { width: 9px; height: 9px; border-radius: 50%; background: #cfc9bd; animation: dot 55s linear infinite; }
.dots li:nth-child(1) { animation-delay: 0s; }
.dots li:nth-child(2) { animation-delay: 5s; }
.dots li:nth-child(3) { animation-delay: 10s; }
.dots li:nth-child(4) { animation-delay: 15s; }
.dots li:nth-child(5) { animation-delay: 20s; }
.dots li:nth-child(6) { animation-delay: 25s; }
.dots li:nth-child(7) { animation-delay: 30s; }
.dots li:nth-child(8) { animation-delay: 35s; }
.dots li:nth-child(9) { animation-delay: 40s; }
.dots li:nth-child(10) { animation-delay: 45s; }
.dots li:nth-child(11) { animation-delay: 50s; }

/* ⭐止めるボタン＝チェックボックス。⛔5秒より長く動くものは、止められないといけない */
.pause {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 44px; padding: 0 18px; cursor: pointer; user-select: none;
  border-radius: 999px; background: var(--bg); color: var(--ink-soft);
  font-size: .9rem;              /* 薄い地の上 6.2:1 */
}
.pause:hover { background: var(--hair); }
.ctl:focus-visible ~ .autow .pause { outline: 3px solid var(--accent); outline-offset: 3px; }
.pause .on { display: none; }
.ctl:checked ~ .autow .pause .on { display: inline; }
.ctl:checked ~ .autow .pause .off { display: none; }
/* ⭐舞台と点を同じ入れ物に入れてあるので、両方そろって止まる */
.ctl:checked ~ .autow .slide, .ctl:checked ~ .autow .dots li,
.autow:hover .slide, .autow:hover .dots li { animation-play-state: paused; }

/* ⛔「動きを減らす」設定の人には、1枚目を出して完全に止める */
@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; opacity: 0; }
  .slide:nth-child(1) { opacity: 1; }
  .dots li { animation: none; }
  .dots li:nth-child(1) { background: var(--accent); }
  .pause { display: none; }
}

@media (max-width: 620px) {
  .autow { padding: 18px 16px; }
  .slide { grid-template-columns: 1fr; gap: 13px; align-content: start; }
  .stage { aspect-ratio: auto; min-height: 350px; }
  .slide .ph { max-width: 300px; height: auto; }
  .slide .ph img { height: auto; aspect-ratio: 16 / 10; }
}

/* ⭐看板なので、トップだけ字を大きくする */
/* ⭐2026-11-13 pineさん「インパクトが欲しい」。
   ⛔太さを足さない（400と700の2段だけ・700は名前だけ）。⛔色も増やさない（測り直しになる）。
   ⇒ 🔧効かせるのは【大きさ】と【余白】だけ。 */
/* ⭐⭐2026-11-13 夜: 有名サイトを8つ実測して「任天堂型」に変えた（pineさん採用）。
   ⛔午前に大きくしたのは【逆方向】だった。実測:
     任天堂 2.14倍 ／ Steam 1.70倍 ／ note 1.67倍 ／ Apple 2.67倍
     ⚠️いまのサイト 4.33倍 ＝ 測った8つの中でいちばん高かった（Goodpatch の色面を除く）
   ⭐作品を並べるサイトは、大きい字を使わない。札の数が多いほど倍率は下がる。
   ⛔「情報量が少ない」の正体は文字数ではなく【1画面目に作品が0枚】だったので、
     看板と舞台を縮めて、1画面目にカードが入るようにする。
   ⛔太さは足さない（400と700の2段だけ・700は名前だけ）。効かせるのは大きさと余白。
   ⚠️詳しいページは変えない（同じ style.css を使っているため body.home に限る）。 */
body.home .hero { padding-block: 24px 0; }
body.home .hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.15rem); letter-spacing: -.03em; }
/* ⛔つかみの文が 16.8px で、本文（17px）より【小さかった】。⭐2026-11-14 に 18.4px へ */
body.home .hero .lead { margin-top: .5em; font-size: 1.15rem; max-width: 34em; }
body.home .hero .who { font-size: .95rem; }
body.home .figures { margin-top: 12px; gap: 6px 28px; }
body.home .figures .v { font-size: 1.15rem; }
body.home .figures .k { font-size: .9rem; }
/* ⭐節の見出しは大きくしない。かわりに【緑のベタ】で切る（主色の面積をかせぐ） */
body.home main > section > h2 {
  font-size: 1.25rem; letter-spacing: -.02em; margin-top: 32px;
  border-left: 5px solid var(--accent); padding-left: 13px;
}
body.home main > section:first-of-type > h2 { margin-top: 22px; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.hero .btns .btn { margin-top: 0; }
/* ⛔存在しない変数を書かない（--tint-bg は定義が無かった。2026-11-13）。
   ⭐#e8f1e7 は .play と同じ値。その上の緑は測って 5.11:1（style.css の 515行目あたり） */
.btn.ghost { background: #e8f1e7; color: var(--accent); }
.hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;              /* ⭐700 はここと作品名だけ */
  font-size: clamp(2.1rem, 6.5vw, 3.1rem);
  line-height: 1.12;             /* ⭐大きい字ほど行間を締める */
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero .lead {
  margin: .5em 0 0;
  max-width: 32em;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.hero .lead b { font-weight: 400; color: var(--ink); }

.figures {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.figures div { display: flex; align-items: baseline; gap: 7px; }
.figures .v {
  font-family: var(--font-head);
  font-weight: 400;              /* ⛔太字にしない。大きさと色で足りる */
  font-size: 2.3rem;
  line-height: 1;                /* ⭐いちばん大きい字は行間1.0 */
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.figures .k { font-size: .9rem; color: var(--ink-faint); }

/* ---- 節 ---- */
h2 {
  margin: 72px 0 0;              /* ⭐枠を外したぶん、区切りは余白が引き受ける */
  font-family: var(--font-head);
  font-size: 1.45rem;            /* ⭐太さをやめたぶん、大きさで階層を作る */
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}
h2 .n {
  margin-left: .6em;
  font-size: .85rem;
  font-weight: 400;
  color: var(--ink-faint);
  white-space: nowrap;
}

.list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 24px; }

/* ---- カード。⛔枠で囲まない ---- */
.lead-card, .card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .16s ease, transform .16s ease;
}
.lead-card:hover, .card:hover { box-shadow: var(--shadow-up); transform: translateY(-2px); }
.lead-card:focus-within, .card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .lead-card, .card { transition: none; }
  .lead-card:hover, .card:hover { transform: none; }
}

.lead-card .thumb { aspect-ratio: 1200 / 630; }
.lead-card .body { padding: 22px 24px 24px; }
.lead-card h3 { font-size: 1.9rem; line-height: 1.25; letter-spacing: -.022em; }
.lead-card .tag { font-size: 1.05rem; }

.card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
}
.card .body { padding-block: 18px; min-width: 0; }

/* 見出しのリンクをカード全面に広げる。中の note リンクは上に重ねて残す */
h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.read { position: relative; z-index: 2; }

.thumb { align-self: stretch; background: var(--hair); min-height: 146px; }
.thumb img {
  width: 100%; height: 100%; max-width: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;              /* ⭐太字を使うのはここだけ。「名前は太い」の1役に絞る */
  font-size: 1.4rem;
  line-height: 1.35;
  letter-spacing: -.015em;
}
h3 a { color: inherit; text-decoration: none; }
h3 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
h3 rt { font-size: .5em; font-weight: 400; color: var(--ink-faint); }

.badge {
  font-size: .78rem; font-weight: 400;
  color: var(--accent);
  background: #e8f1e7;
  border-radius: 999px;
  padding: 2px 11px;
  white-space: nowrap;
}

.tag { margin: .4em 0 0; max-width: 34em; color: var(--ink-soft); font-size: 1rem; }

/* ⭐このサイトの中心。⛔ベタ塗りにしない・太字にしない（6枚並ぶとブレーキになる） */
.snag {
  margin: .75em 0 0;
  max-width: 34em;
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.65;
}
.snag::before {
  content: "つまずいた";
  display: inline-block;
  margin-right: .7em;
  padding: 1px 8px;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--snag);
  background: var(--snag-bg);
  border-radius: 4px;
  vertical-align: .08em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 18px;
  margin: .75em 0 0;
  font-size: .875rem;
  color: var(--ink-faint);
}
.facts .span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts .fix { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-soft); }
.facts .fix b { font-family: var(--font-head); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.facts .read {
  display: inline-block;
  min-height: 24px;
  padding: 2px 0;
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.facts .read:hover { text-decoration-thickness: 2px; }

.go { font-size: 1.05rem; font-weight: 400; color: var(--accent); white-space: nowrap; }
.lead-card .go { display: inline-block; margin-top: 16px; }

@media (max-width: 660px) {
  .card { grid-template-columns: 1fr; gap: 0; padding-right: 0; }
  .card .thumb { aspect-ratio: 16 / 9; min-height: 0; }
  .card .body { padding: 16px 17px 0; }
  .card .go { padding: 10px 17px 18px; }
  .lead-card .body { padding: 18px 17px 20px; }
  .lead-card h3 { font-size: 1.5rem; }
  .hero .lead { font-size: 1.05rem; }
}

/* ---- note ---- */
/* ⭐「作った」だけでなく「決めた」が伝わるようにする節（2026-11-04）
   ★ここに出す数字は、作品のページに既に書いてあるものと同じ。⛔ここで新しい数字を作らない
   ⛔問い → 測ったこと → 決めたこと、の3行。順番を変えない（測った話が主役） */
.rule-sec {
  margin-top: 72px;
  padding: 28px 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rule-sec h2 { margin: 0; }
.rule-sec > p { margin: .55em 0 0; max-width: 34em; color: var(--ink-soft); }
.rule-sec > p b { font-weight: 400; color: var(--ink); }

.rule-list { margin: 1.4em 0 0; padding: 0; list-style: none; counter-reset: r; }
.rule-list > li {
  counter-increment: r;
  margin: 0;
  padding: 0 0 0 42px;
  position: relative;
}
.rule-list > li + li { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--hair); }
.rule-list > li::before {
  content: counter(r);
  position: absolute; left: 0; top: .05em;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: .95rem;
  color: var(--accent);             /* 淡い緑地の上 4.56:1 */
  background: #e9f2e6;
  border-radius: 999px;
}
.rule-list > li + li::before { top: calc(26px + .05em); }

.r-q { margin: 0; max-width: 34em; font-size: 1.0625rem; color: var(--ink); }   /* ⭐16.32→17（本文と同じ段） */
.r-m { margin: .45em 0 0; max-width: 34em; font-size: .95rem; line-height: 1.7; color: var(--ink-soft); }
.r-a { margin: .35em 0 0; max-width: 34em; font-size: .95rem; line-height: 1.7; color: var(--ink-soft); }
.r-m b, .r-a b { font-weight: 400; color: var(--ink); }
.r-go { margin: .5em 0 0; font-size: .9rem; }
.r-go a { color: var(--accent); text-underline-offset: 3px; }

.rule-note { margin-top: 1.5em !important; padding-top: 1.1em; border-top: 1px solid var(--hair); }

@media (max-width: 480px) {
  .rule-sec { padding: 24px 18px; }
  .rule-list > li { padding-left: 36px; }
  .rule-list > li::before { width: 25px; height: 25px; font-size: .9rem; }
}


.note-sec {
  margin-top: 72px;
  padding: 28px 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.note-sec h2 { margin: 0; }
.note-sec p { margin: .55em 0 0; max-width: 34em; color: var(--ink-soft); }
.note-sec p b { font-weight: 400; color: var(--ink); }
.note-sec ul { margin: .9em 0 0; padding-left: 1.2em; max-width: 34em; color: var(--ink-soft); }
.note-sec li { margin: .25em 0; }
.note-sec li a { color: var(--accent); text-underline-offset: 3px; }

.btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 400;
  font-size: 1.0625rem;   /* ⭐16.8→17（本文と同じ段）。2026-11-14 */
  padding: 13px 28px;
  border-radius: 999px;
}
.btn:hover { filter: brightness(1.1); }

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

/* ---- フッター。⭐線は片辺1本だけ ---- */
footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: .95rem;
  color: var(--ink-soft);
}
footer p { margin: .2em 0; }
footer a { color: var(--accent); font-weight: 400; }

/* ---- 自己紹介の1〜2行 ---- */
.hero .who {
  margin: .55em 0 0;
  max-width: 34em;
  font-size: 1rem;
  color: var(--ink-soft);
}
/* ⛔.ask-link は 2026-11-13 にやめた。段落の中のリンクでは小さすぎたので、
   入口のボタン（.hero .btns）に出した。⚠️詳しいページでは使っていない（index.html だけだった） */

/* ---- 仕事の相談 ---- */
.ask-sec {
  margin-top: 72px;
  padding: 28px 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ask-sec h2 { margin: 0; }
.ask-sec p { margin: .55em 0 0; max-width: 34em; color: var(--ink-soft); }
.ask-sec p b { font-weight: 400; color: var(--ink); }

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.contacts a {
  display: inline-flex;
  align-items: baseline;
  gap: .55em;
  padding: 11px 20px;
  background: var(--bg);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.0625rem;   /* ⭐16→17（本文と同じ段）。2026-11-14 */
}
.contacts a:hover { background: #e8f1e7; }
.contacts .h { font-size: .9rem; color: var(--ink-faint); }   /* ⭐13.6→14.4 */

/* ⭐2026-11-03: 仕事の相談は、まずメールで受ける。
   ⛔それまで連絡先が Instagram と note の2つだけで、会社から発注する人が送りにくかった。
   ⭐1つだけ塗りつぶして「ここが本線」を出す。
   ⛔色は測って決めた: 白/緑 5.17:1 ／ 白/濃い緑(hover) 6.75:1 ／ 小さい字 #e9f2e6/緑 4.56:1。
     ⚠️#d3ece0 は 4.15:1 で本文の基準(4.5)に届かなかったので使っていない。 */
.contacts .mail { background: var(--accent); color: var(--accent-ink); }
.contacts .mail:hover { background: #05573a; }
.contacts .mail .h { color: #e9f2e6; }

/* 使った技術。⭐発注側が見る欄（2_WordPress\CLAUDE.md:119） */
.facts .tech { color: var(--ink-faint); }

/* ========== 作品ごとの「詳しく見る」ページ ========== */
.hero.detail { padding-block: 32px 0; }
.back { margin: 0 0 20px; font-size: .95rem; }
.back a, .back-btm a { color: var(--accent); text-underline-offset: 3px; }
.back-btm { margin-top: 56px; font-size: 1rem; }
.hero.detail h1 { font-size: clamp(2.3rem, 8vw, 3.4rem); }
.hero.detail h1 rt { font-size: .32em; font-weight: 400; color: var(--ink-faint); letter-spacing: .1em; }
.hero.detail .btn { margin-top: 22px; }

/* 画面写真 */
.shot { margin: 34px 0 0; }
.shot img {
  display: block; width: 100%; max-width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.shot figcaption { margin: .7em 0 0; font-size: .9rem; color: var(--ink-faint); }

/* できること3つ／つまずいた話3つ */
.cans, .snags { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: n; }
.cans > li, .snags > li {
  position: relative;
  counter-increment: n;
  padding: 22px 24px 22px 62px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cans > li::before, .snags > li::before {
  content: counter(n);
  position: absolute;
  left: 22px; top: 22px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.snags > li::before { color: var(--snag); }
.cans h3, .snags h3 {
  display: block;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: -.01em;
}
.cans p, .snags p { margin: .55em 0 0; max-width: 34em; color: var(--ink-soft); }
.cans b, .snags b { font-weight: 400; color: var(--ink); }
.ex { font-size: .92rem; color: var(--ink-faint) !important; }
.ex b { color: var(--ink-soft) !important; }

/* 遊びはじめるまで（2列） */
.two { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 20px; }
.half { padding: 22px 24px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.half h3 { display: block; margin: 0; font-size: 1.1rem; }
.steps { margin: .8em 0 0; padding-left: 1.3em; color: var(--ink-soft); }
.steps li { margin: .3em 0; }
.steps b { font-weight: 400; color: var(--ink); }
.half .ex { margin: .8em 0 0; }
.note-line { margin: 18px 0 0; max-width: 34em; color: var(--ink-soft); }
.note-line b { font-weight: 400; color: var(--ink); }
.sub-lead { margin: .5em 0 0; color: var(--ink-faint); }

/* どう作ったか */
.spec { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .97rem; }
.spec th, .spec td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.spec th { width: 9em; font-weight: 400; color: var(--ink-faint); white-space: nowrap; }
.spec td { color: var(--ink-soft); }
.spec b { font-weight: 400; color: var(--ink); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.tw { overflow-x: auto; }

/* 測った数字 */
.nums {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.nums li {
  padding: 18px 18px 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.nums b {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.nums span { display: block; margin-top: .5em; font-size: .85rem; color: var(--ink-faint); }

@media (max-width: 660px) {
  .cans > li, .snags > li { padding: 18px 17px 18px 50px; }
  .cans > li::before, .snags > li::before { left: 17px; top: 18px; }
  .half { padding: 18px 17px; }
  .spec th { width: auto; }
}

/* ========== 一覧：小さいカードを2列に（⭐一覧性を優先。詳しいことは詳細ページへ） ========== */
.grid {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
/* ⭐2026-11-03: 横型（絵が左）から縦型（絵が上）にした。
   ★横型だと絵の幅が 124px しか取れず、作品の見分けがつかなかった */
.mini {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .16s ease, transform .16s ease;
}
.mini:hover { box-shadow: var(--shadow-up); transform: translateY(-2px); }
.mini:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .mini { transition: none; }
  .mini:hover { transform: none; }
}

/* ⭐2026-11-03: 9本とも 16:10 の本物の画面写真にそろえた（img/card-*.jpg・600×375）。
   ⛔もとは 124×202 の縦長1枠に、5通りの形の絵を流し込んでいた:
      295×381／800×450／800×500／150×150／512×512 を cover と contain の2通りで。
      ⇒ ムツナギは看板の文字が切れ、賽島とでんぶんは横を6割以上 捨てていた */
/* ⭐2026-11-13: 絵のまわりに同じ色の余白（マット）を置いた。
   ⛔9枚の明るさが 1〜87 とバラバラで（works.mjs の AKARUSA）、一覧がまだらに見えていた。
     ・真っ黒4枚（flowchat 1／rowtate 2／wolf 2／saito 7）
     ・真っ白1枚（binary 87）は下地90とほぼ同じで、⛔カードの形が見えなかった
   ⭐マットなら、絵そのものは1ミリも変えずに、外側だけ必ずそろう。
   ⛔比を <img> ではなく中の絵に持たせる。★入れ物に余白があるので、入れ物に比を付けると絵が縦長になる */
.mini-thumb { display: block; padding: 7px 7px 0; background: var(--card); }
.mini-thumb img {
  /* ⛔height="375" 属性が aspect-ratio に勝つので、height:auto を必ず書く。
     ★2026-11-03 に入口の絵で同じ罠を踏み、2026-11-13 にここでもう一度踏んだ。 */
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: center;
  border-radius: 9px; background: var(--hair);
}

.mini-body { padding: 14px 16px 16px; min-width: 0; display: flex; flex-direction: column; flex: 1; }

/* カード全面を詳細ページへ。中の「あそぶ」は上に重ねる */
.mini h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mini .play { position: relative; z-index: 2; }

.mini h3 {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 9px;
  margin: 0;
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; line-height: 1.35; letter-spacing: -.01em;   /* ⭐2026-11-14: 17.92→18.4。数字（.figures .v）と同じ段にそろえた */
}
/* ⛔.46em だと 8.24px になり、ページでいちばん小さい字だった（2026-11-13 実測）。
   ⭐札と同じ .72rem に寄せた。字の大きさの種類も1つ減る */
.mini h3 rt { font-size: .78rem; font-weight: 400; color: var(--ink-faint); }
.mini .tag { margin: .25em 0 0; font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }
/* ⭐2026-11-14: 13.12→14.4。⛔つまずいた話はこのサイトの中身そのものなのに、
   カードの中でいちばん小さい字だった。 */
.mini .snag { margin: .4em 0 0; font-size: .9rem; line-height: 1.55; }
.mini .snag::before { font-size: .78rem; margin-right: .5em; padding: 0 6px; }
.mini .badge { font-size: .78rem; padding: 1px 8px; }

/* ⭐カード1枚で「遊べるかどうか」が分かるようにする札（2026-11-03）
   ★順番は 人数 → お金 → 登録。⛔読む人がいちばん先に要るのは「ひとりで遊べるか」
   ⛔文字はここで決めない。_tools/works.mjs の nin / yen / reg が出どころで、
     node _tools/check.mjs が index.html と突き合わせる
   ⛔色は目で決めていない: 薄い札 5.14:1 ／ 目立つ札 11.48:1（どちらも本文の 4.5 以上） */
.mini-spec {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin: .5em 0 0; padding: 0; list-style: none;
}
.mini-spec > li {
  padding: 2px 8px;
  font-size: .78rem; line-height: 1.5; letter-spacing: .01em;   /* ⭐11.52→12.48。2026-11-14 */
  color: var(--accent);             /* 淡い緑の札の上 5.69:1 */
  background: #e8f1e7;              /* ⭐2026-11-13 夜: 主色の面積をかせぐため、札も緑にした */
  border-radius: 4px;
  white-space: nowrap;
}
/* ⭐ちがうものだけ濃くする。⛔「悪い」の色（--snag）は使わない。登録が要るのは欠点ではない */
.mini-spec > li.need {
  color: var(--ink);                /* 11.48:1 */
  background: var(--hair);
}
/* 狭いカードでは、札が3つで2行になる。⭐折り返させる（横にはみ出させない） */
@media (max-width: 420px) {
  .mini-spec { gap: 4px; }
  .mini-spec > li { padding: 2px 7px; }   /* ⛔ここで font-size を変えない（大きさが1種増えるため） */
}


/* ⭐説明の長さが違っても、▶ はカードの下端にそろう */
.mini-go { margin: auto 0 0; padding-top: .7em; }
/* ⭐2026-11-13 夜: 淡い緑の地＋緑の字 → 緑のベタ＋白字にした。
   ⛔理由は好みではない。緑で【塗った】面積が画面全体の 0.56% しかなく、
     主色が見えていなかった（実測）。★塗る場所はここがいちばん効く。
   ⛔太さは400のまま（700は名前だけ）。⛔色は測って決めた: 白/緑 6.58:1 ／ 白/押したとき 8.64:1 */
.play {
  display: inline-block;
  font-size: .9rem; font-weight: 400;
  color: var(--accent-ink);
  text-decoration: none;
  padding: 4px 13px 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  min-height: 24px;
}
.play:hover { background: #05573a; text-decoration: underline; text-underline-offset: 3px; }

.grid-note { margin: 18px 0 0; max-width: 46em; font-size: .9rem; color: var(--ink-faint); }
.grid-note b { font-weight: 400; color: var(--ink-soft); }

@media (max-width: 420px) {
  .mini-body { padding: 13px 14px 15px; }
}

/* 使い方の節：2つの手順カードが並んだあとに、補足の表を置く */
.half.solo { margin-top: 20px; }
.two + .tw { margin-top: 18px; }
.two + .tw .spec { margin-top: 0; }
.spec th { font-weight: 400; }
/* 数字は「どう作ったか」の節の中に置くので、上に少し間をとる */
#h-made ~ .nums, .nums { margin-top: 22px; }

/* 指で押せる大きさを確保する（⭐賽島のページで「29か所すべて44px以上」と書いている基準を、このサイト自身も満たす） */
.play {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px 0 12px;
}
.mini h3 a { display: inline-block; padding: 6px 0; }
.mini h3 { margin: -6px 0 0; }

/* 注意書き（⚠️）は「どんなものか」の中に置く */
.caution { margin-top: .9em !important; font-size: .95rem; color: var(--ink-faint) !important; }
.caution b { color: var(--ink-soft); }

/* ⛔2026-11-03 に外した: 一覧の「かたちの絵」（正方形のSVG）と、その後ろに敷いていた5色。
   ★9本とも本物の画面写真にそろえたので、器の色が要らなくなった。
   ⛔とくに Cook Log の #e8921f だけが極端に目立ち、一覧が落ち着かない原因になっていた。
   ⚠️試作 design-*.html は style.css を読んでいない（自前の <style> を持っている）ので、
     ここを外しても試作の見た目は変わらない。 */

/* ページの最後の「使った技術」（⭐発注する人が見る欄） */
.techline {
  margin: 44px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-size: .9rem;
  line-height: 1.8;
  color: var(--ink-faint);
}
.techline b {
  display: inline-block;
  margin-right: .6em;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ⭐2026-11-03: 入口のすぐ下だけ、節の間隔（72px）を詰める。
   ★スマホだと数字と最初の見出しのあいだが空きすぎて、作品が1画面ぶん遠ざかっていた */
@media (max-width: 660px) {
  body.home main > section:first-of-type > h2 { margin-top: 46px; }
}

/* ========== 意見箱（iken.html・2026-11-03）==========
   ⭐このページだけ JavaScript を使う。⛔トップは <script> 0個のまま。
     ★別ページにしたのは、トップに Firebase を載せると入口が重くなるため。
   ⛔色は測って決めた（淡い緑の箱 #e8f1e7 の上）:
     本文 12.72:1 ／ 注記 5.11:1 ／ ink-soft 6.14:1 ／ 緑の字 4.62:1 — 全部 4.5:1 以上 */
.iken-box {
  margin-top: 40px;
  padding: 24px 22px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.iken-box h2 { margin: 0; font-size: 1.25rem; }
.iken-box p { margin: .6em 0 0; max-width: 34em; color: var(--ink-soft); }
.iken-box p b { font-weight: 400; color: var(--ink); }

.iken-label { display: block; margin: 18px 0 6px; font-size: .95rem; color: var(--ink-faint); }
#iken-text, #reply-number {
  display: block; width: 100%; max-width: 34em;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--hair); border-radius: 10px;
  padding: 12px 14px;
}
#iken-text { resize: vertical; }
#iken-text:focus-visible, #reply-number:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.iken-count { margin: 6px 0 0 !important; font-size: .85rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.iken-msg { margin: .7em 0 0; font-size: .95rem; color: var(--ink-soft); }
.iken-msg.ng { color: var(--snag); }

/* ボタン（<button> は字を受けつがないので、ここで指定しきる） */
#iken-send, #iken-copy, #reply-read { border: 0; cursor: pointer; font-family: var(--font-body); min-height: 44px; }
#iken-send[disabled], #reply-read[disabled] { opacity: .6; cursor: default; }
.btn-light { background: var(--bg); color: var(--accent); font-size: .95rem; padding: 11px 20px; }
.btn-light:hover { background: #e8f1e7; }

.iken-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.iken-row input { max-width: 16em; }
.iken-row .btn { margin-top: 0; }

.iken-done { margin-top: 20px; padding: 18px 18px 14px; background: #e8f1e7; border-radius: 12px; }
.iken-done p { color: var(--ink-soft); }
.iken-done-t { margin: 0 !important; }
.iken-number {
  margin: .5em 0 0 !important;
  font-family: var(--font-head); font-size: 1.5rem; letter-spacing: .06em;
  color: var(--ink) !important; font-variant-numeric: tabular-nums;
  user-select: all;                      /* ⭐1回押すだけで全部えらべる */
}
.iken-note { font-size: .88rem; color: var(--ink-faint) !important; }
.iken-reply {
  margin: .6em 0 0; padding: 14px 16px;
  background: var(--bg); border-radius: 10px;
  white-space: pre-wrap; color: var(--ink);
}

/* 意見箱のページの中にある「メールで相談する」 */
.mail-btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
}
.mail-btn:hover { background: #05573a; }
.mail-btn .h { font-size: .85rem; color: #e9f2e6; }
.iken-mail { margin-top: 1em !important; }

/* ============================================================
   ⭐2026-11-14: 指で押す的が 24px に足りないリンクが7つあった（390x844 で実測）。
     .r-go 19px ／ note の記事3本 23px ／ 足元の note 21px
   ⛔WCAG 2.2 の「的の大きさ（最小）」は 24x24。
   ★display は変えない。⭐文字の並びの中のリンクは、上下の余白だけで的が広がる
     （行の高さは変わらないので、見た目は動かない）。
   ============================================================ */
.r-go a, .note-sec li a, footer p a { padding-block: 5px; }

/* ============================================================
   ⭐スマホ（2026-11-14 実測 390x844）。
     看板が 341px ＝ 画面の4割あり、作品の絵が始まるのが 359px だった。
   ⛔文は1文字も減らさない。余白と絵の大きさだけで詰める。
   ⚠️ここをファイルの終わりに置いているのは、上のほうにある
     .hero .btns / body.home .hero などと同じ強さだから（あとに書いたほうが勝つ）。
   ============================================================ */
@media (max-width: 620px) {
  body.home .hero { padding-block: 14px 0; }
  body.home .figures { margin-top: 8px; }
  .hero .btns { margin-top: 10px; }
  .autow { margin-top: 12px; padding: 14px 14px; }
  /* ⭐絵を少しだけ小さくする。⛔いちばん高い札（でんぶんかんぷん＝説明が2行）が
     入る高さを測ってから決めた: 175(絵)+13(すきま)+144(文) = 332 */
  /* ⚠️札を .72rem→.78rem にしたぶん、いちばん高い札が 339px になった（実測）。
     ⭐絵を 10px 小さくして、舞台（342px）に 9px の余裕を戻す。⛔ぎりぎりにしない */
  .slide .ph { max-width: 270px; }
  /* ⚠️測り直したら いちばん高い札は 337px だった（計算の 332 ではない）。⭐測った値＋余裕で 342 */
  .stage { min-height: 342px; }
  body.home main > section > h2 { margin-top: 24px; }
  body.home main > section:first-of-type > h2 { margin-top: 18px; }
}
