@charset "UTF-8";

/* ==============================================================
   page.css — p- ページ専用
   TOP ファーストビュー p-showcase（元：元データ/outputs/parallelograms.html）
   ・画面を左右に分け、左＝見出しと切り替えの操作、右＝平行四辺形の画像タイル（下の黒い帯の中まで続く）
   ・縦にスクロールすると、タイルの画像が上のタイルから順に（上から下へ）01→03 と塗り替わる
   ・寸法はモックの「盤」の座標（幅 1280）をそのまま vw に直したもの。
     1単位＝1/12.8vw、正三角形の高さの半分＝320/√3＝184.75単位＝14.4338vw、タイル1枚の高さ＝その3倍＝43.3013vw
   ・タイルは6枚。スマホは2列×3枚（段＝14.4338vw、列の高さ＝段×8＝115.4701vw）、PC(768px〜)は3列×2枚（段＝9.6225vw、列の高さ＝段×7＝67.3575vw）。スクロールの長さ＝列の高さ＋画面1枚分
   ・1回の切り替えの画像は1枚。各フレームの img を「右の列ぜんぶ」の大きさにしてタイルの位置ぶん逆にずらし、6枚で1枚の絵に見せる
   ============================================================== */

/* --------------------------------------------------------------
   全体（スクロールは止めない。高さは「画面の高さ」と「右の列の高さ」の大きい方）
   -------------------------------------------------------------- */
.p-showcase {
  --cols: 2; /* 右の列を何列に分けるか（スマホ2・PC3） */
  --tile-step: 14.4338vw; /* 段＝タイル幅×tan30° */
  --seam: .75px; /* タイル間のすき間＝この2倍（スマホ1.5px／PC 2px） */
  --board-h: 115.4701vw; /* 2列：段×(6＋2) */
  position: relative;
  min-height: var(--board-h);
}
.p-showcase__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

/* --------------------------------------------------------------
   左：見出し（画面の高さ）
   -------------------------------------------------------------- */
.p-showcase__copy {
  position: relative; z-index: 3;
  height: auto; min-width: 0;
  padding: 0 5vw var(--space-28);
  background: var(--paper);
}
.p-showcase__head {
  position: absolute; left: 5vw; right: 5vw; top: 25px;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-12);
}
.p-showcase__company { display: none; font-size: var(--fz-label); letter-spacing: .08em; color: var(--ink-sub); }
@media (min-width: 768px) {
  .p-showcase__copy { padding: 0 3vw; }
  .p-showcase__head { left: 3vw; right: 3vw; top: 31px; }
  .p-showcase__company { display: block; }
}

/* 見出し */
.p-showcase__title-block { position: static; top: 27%; left: 5vw; right: 3vw; margin: 0 -2vw 0 0; padding: var(--space-16) 0; } /* スマホは流れの中。右の余白は 3vw のまま */
.p-showcase__eyebrow span { display: inline-block; }
.p-showcase__eyebrow { margin-bottom: var(--space-18); font-size: var(--fz-label); letter-spacing: .06em; color: var(--ink-sub); line-height: 1.6; }
/* スマホは縦書き（右から左：WEBから／デザインを／整える）。「WEB」は1文字ずつ正立して縦に積む。大きさは、見出しの幅（4列）が左の列の幅（約 42vw）に収まるところ */
.p-showcase__title {
  writing-mode: vertical-rl; text-orientation: upright;
  width: max-content; max-width: 100%;
  margin: 0 auto var(--space-20); /* 左の列の左右の真ん中（2026-11-21） */
  font-size: var(--fz-hero); font-weight: 500; line-height: 1.02; letter-spacing: 0;
}
.p-showcase__em { color: var(--accent); } /* 見出しの3文字（E・イ・え）だけローズ。ロゴの「n」と同じ考え。スマホの縦書きでは3文字がジグザグに並ぶ（2026-11-21） */
.p-showcase__lead { font-size: var(--fz-note); line-height: 1.9; color: var(--ink-sub); }
@media (min-width: 768px) {
  .p-showcase__title-block { position: absolute; left: 3vw; right: 3vw; margin: 0; padding: 0; }
  .p-showcase__eyebrow { letter-spacing: .15em; }
  .p-showcase__title-block { top: 50%; translate: 0 -50%; } /* 画面の上下の真ん中（2026-11-21） */
  .p-showcase__title { writing-mode: horizontal-tb; text-orientation: mixed; width: auto; max-width: none; margin: 0 0 var(--space-28); line-height: 1.15; letter-spacing: -.02em; }
  .p-showcase__lead { font-size: var(--fz-sub); line-height: 1.8; }
}

/* 画面の高さが低いとき（横向きのスマホなど）は説明を省いて詰める。縦向きのスマホ（768px 未満）は英字の行と説明を出す */
@media (min-width: 768px) and (max-height: 600px) {
  .p-showcase__title-block { top: 27%; translate: none; }
  .p-showcase__eyebrow, .p-showcase__lead { display: none; }
}

/* スマホ（768px 未満）の左右組み：左の列を、絶対配置ではなく上から下への流れ（flex の縦並び）で組む。
   実機では画面の見える高さが短く（ツールバー分）、列が狭いため、絶対配置だと各ブロックが重なっていた。
   ・上から：ヘッダー分の余白 → 英字の行 → 見出し（縦書き） → 説明（下へスクロールの案内は無い：2026-11-21 発注者決定）
   ・見出しのまとまりは、ヘッダーと画面の下（下の余白 28px の上）のあいだに、上10：下6 の割合で置く（やや下寄せ）。内容が画面より高いときは、列が伸びる（重ならない） */

/* --------------------------------------------------------------
   右：平行四辺形の画像タイル
   ・右の列はページと一緒に普通に流れる。スクロール量に合わせて写真が 01→02→03 と入れ替わる
   -------------------------------------------------------------- */
.p-showcase__images {
  /* ファーストビューから下の黒い帯（#maintenance）まで続く。高さは script.js が --images-h で入れる（入るまでは列の高さ）。
     背景は持たない：タイルの間のすき間は、上は紙の地、帯の上は帯の色で見える */
  position: absolute; top: 0; right: 0; z-index: 2;
  width: 50%; height: var(--images-h, var(--board-h));
  overflow: clip;
}
.p-showcase__board { position: absolute; inset: 0; }
.p-showcase__tile {
  position: absolute;
  left: calc(100% / var(--cols) * var(--col)); top: calc(var(--tile-step) * var(--ty));
  width: calc(100% / var(--cols)); height: calc(var(--tile-step) * 3);
  isolation: isolate;
  /* 各タイルの外形を内側へ --seam ずつ縮め、隣との間に紙色の細いすき間（線）を出す。
     斜めの辺は傾きが30°なので、縦に縮める量は 辺と直角に --seam 縮めるぶん＝--seam÷cos30°（頂点の式は × .57735 と × 1.7321）。すき間の太さは斜めも縦も --seam の2倍で同じ */
  clip-path: polygon(
    var(--seam) calc(33.3333% + var(--seam) * .57735),
    calc(100% - var(--seam)) calc(var(--seam) * 1.7321),
    calc(100% - var(--seam)) calc(66.6667% - var(--seam) * .57735),
    var(--seam) calc(100% - var(--seam) * 1.7321)
  );
}
/* 下敷き：script.js が作るタイルは、外側（.p-showcase__tile）が縮める前の平行四辺形でローズ、中（.p-showcase__plate）の写真だけ縮めた形で切る。
   → すき間は下敷きの色（差し色のローズ）になる。列の外側の輪郭には縁を出さない（写真が輪郭いっぱいまで届く） */
.p-showcase__board.is-built .p-showcase__tile {
  clip-path: none; /* 形は plate（写真）と下敷き（::before）が持つ。下敷きは内側の辺で外へ広がるので、タイルでは切らない */
}
/* ローズの下敷き（隣のタイルとのすき間に見える）。形は script.js が --u-clip に入れる（外側の輪郭の辺は 1px 内側・内側の辺は外へ広げ、すき間が輪郭に届く角には短い足しを付ける。入っていない内側だけのタイルは下の既定） */
.p-showcase__board.is-built .p-showcase__tile::before {
  content: ""; position: absolute; inset: 0;
  --u-in: calc(var(--seam) * -.9); /* 内側の辺：すき間（--seam）の中へ 0.9 ぶん広げる。隣の下敷きと重なって、すき間の中央まで不透明なローズになる（隣の写真には届かない） */
  background: var(--accent);
  clip-path: var(--u-clip, polygon(
    var(--u-in) calc(33.3333% + var(--u-in) * 1.1547 - var(--u-in) * .57735),
    calc(100% - var(--u-in)) calc(var(--u-in) * 1.1547 + var(--u-in) * .57735),
    calc(100% - var(--u-in)) calc(66.6667% + var(--u-in) * .57735 - var(--u-in) * 1.1547),
    var(--u-in) calc(100% - var(--u-in) * .57735 - var(--u-in) * 1.1547)
  ));
}
.p-showcase__plate {
  position: absolute; inset: 0;
  /* 各辺の縮め量：--s-t（上の斜めの辺）・--s-r（右）・--s-b（下の斜めの辺）・--s-l（左）。script.js が、内側の境目は --seam（既定）、外側の輪郭は 0 にして入れる（写真が輪郭を決める）。
     斜めの辺を縦に縮める量は 辺と直角に縮めるぶん＝÷cos30°（×1.1547）。縦の辺を縮めると斜めの辺の端が ×.57735 ずれる */
  clip-path: polygon(
    var(--s-l, var(--seam)) calc(33.3333% + var(--s-t, var(--seam)) * 1.1547 - var(--s-l, var(--seam)) * .57735),
    calc(100% - var(--s-r, var(--seam))) calc(var(--s-t, var(--seam)) * 1.1547 + var(--s-r, var(--seam)) * .57735),
    calc(100% - var(--s-r, var(--seam))) calc(66.6667% + var(--s-r, var(--seam)) * .57735 - var(--s-b, var(--seam)) * 1.1547),
    var(--s-l, var(--seam)) calc(100% - var(--s-l, var(--seam)) * .57735 - var(--s-b, var(--seam)) * 1.1547)
  );
}

/* タイルの位置：--col＝何列目（0が左）、--ty＝上端（段の数）。隣の列は1段ずつずらして、平行四辺形がすき間なく組み合う。
   並びは上から順（塗り替わる順）。スマホは2列×3枚、PC は3列×2枚 */
.p-showcase__tile:nth-child(1) { --col: 1; --ty: 0; }
.p-showcase__tile:nth-child(2) { --col: 0; --ty: 1; }
.p-showcase__tile:nth-child(3) { --col: 1; --ty: 2; }
.p-showcase__tile:nth-child(4) { --col: 0; --ty: 3; }
.p-showcase__tile:nth-child(5) { --col: 1; --ty: 4; }
.p-showcase__tile:nth-child(6) { --col: 0; --ty: 5; }

/* 1枚のタイルに 01〜03 の3枚が重なる。2枚目以降は上のタイルから順に、上から下へ現れる（--r{フレーム}-{段} は script.js が 0〜1 で入れる） */
.p-showcase__frame {
  position: absolute; inset: 0;
}
/* どのフレームも上から下へ現れる（塗り替わる）。スクロールを戻すと下から上へ元に戻る。後のフレームほど上（script.js が --r{フレーム}-{段} を入れる）。--rv{フレーム} は段ごとの進み具合 */
.p-showcase__frame:nth-child(1) { z-index: 1; clip-path: inset(0 0 calc((1 - var(--rv1, 1)) * 100%) 0); }
.p-showcase__frame:nth-child(2) { z-index: 2; clip-path: inset(0 0 calc((1 - var(--rv2, 0)) * 100%) 0); }
/* 進み具合 --r{フレーム}-{段} を、そのタイルの --rv{フレーム} に受ける */
.p-showcase__tile:nth-child(1) { --rv1: var(--r1-1, 1); --rv2: var(--r2-1, 0); }
.p-showcase__tile:nth-child(2) { --rv1: var(--r1-2, 1); --rv2: var(--r2-2, 0); }
.p-showcase__tile:nth-child(3) { --rv1: var(--r1-3, 1); --rv2: var(--r2-3, 0); }
.p-showcase__tile:nth-child(4) { --rv1: var(--r1-4, 1); --rv2: var(--r2-4, 0); }
.p-showcase__tile:nth-child(5) { --rv1: var(--r1-5, 1); --rv2: var(--r2-5, 0); }
.p-showcase__tile:nth-child(6) { --rv1: var(--r1-6, 1); --rv2: var(--r2-6, 0); }

/* 画像：どのタイルも「右の列ぜんぶ」の箱（幅＝タイルの列数倍）を、タイルの位置ぶん逆にずらして置く。
   → 6枚のタイルが同じ1枚の絵の窓になり、継ぎ目なくつながる */
.p-showcase__frame img {
  position: absolute;
  left: calc(var(--col) * -100%);
  top: calc(var(--box-top) - var(--tile-step) * var(--ty));
  width: calc(var(--cols) * 100%); height: var(--box-h); max-width: none;
  object-fit: cover; object-position: var(--box-x) 50%;
}
/* 画像の箱の位置と高さはフレームごと。script.js が「そのフレームが出ている間に見える列の範囲」から --box-top-1〜3（列の上端から）・--box-h-1〜3・--box-x-1〜3 を計算して board に入れる。
   入っていない（JS が動かない）ときは、右の列ぜんぶ（top 0・高さ＝列の高さ）の箱 */
.p-showcase__frame:nth-child(1) { --box-top: var(--box-top-1, 0px); --box-h: var(--box-h-1, var(--board-h)); --box-x: var(--box-x-1, 90%); }
.p-showcase__frame:nth-child(2) { --box-top: var(--box-top-2, 0px); --box-h: var(--box-h-2, var(--board-h)); --box-x: var(--box-x-2, 70%); }
@media (min-width: 768px) {
  .p-showcase {
    --seam: 1px;
    --cols: 3;
    --tile-step: 9.6225vw; /* 16.667vw × tan30° */
    --board-h: 67.3575vw; /* 段×(2×2＋3) */
  }
  .p-showcase__tile:nth-child(1) { --col: 2; --ty: 0; }
  .p-showcase__tile:nth-child(2) { --col: 1; --ty: 1; }
  .p-showcase__tile:nth-child(3) { --col: 0; --ty: 2; }
  .p-showcase__tile:nth-child(4) { --col: 2; --ty: 2; }
  .p-showcase__tile:nth-child(5) { --col: 1; --ty: 3; }
  .p-showcase__tile:nth-child(6) { --col: 0; --ty: 4; }
}

/* 新着：いつも出す（お知らせとコラムの混在・記事ができるまで仮置き）。
   PC：「下へスクロール」の下（画面1枚ぶんの .p-showcase__stage の下）に流れで置く。余白が足りなくても隠さず、左の列が画面より伸びる。
   スマホ：左の列には出さず、黒い帯（#maintenance）の最後に同じ内容を置く（.p-maint__news。二重に読まれないよう、使わない側は display:none） */
/* スマホ：画面1枚ぶんの盤（stage）が縦並び。左右の余白ぶん外へ広げて、copy と同じ箱にする。新着はこの下に続く */
.p-showcase__stage {
  display: flex; flex-direction: column; position: relative;
  min-height: 100svh; margin: 0 -5vw; padding: var(--space-70) 5vw var(--space-28);
}
/* 見出しのまとまりは、残りの高さを 上10：下6 に分けた位置（やや下寄せ）。内容が高いときは空きが0になって列が伸びる */
.p-showcase__stage::before, .p-showcase__stage::after { content: ""; display: block; min-height: 0; }
.p-showcase__stage::before { flex: 10 1 0; }
.p-showcase__stage::after { flex: 6 1 0; }
.p-showcase__news, .p-maint__news { font-size: var(--fz-sub); line-height: 1.6; }
.p-showcase__news { display: none; } /* スマホは、保守の帯の下の同じ内容（.p-maint__news）を出す。PC はこちら */
.p-maint__news { margin-top: var(--space-52); }
.p-showcase__news-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4) var(--space-16); margin-bottom: var(--space-8); }
.p-showcase__news-head .c-label { margin: 0; }
.p-showcase__news li, .p-maint__news li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-12); padding: var(--space-10) 0; border-top: 1px solid var(--line); }
.p-showcase__news li:last-child, .p-maint__news li:last-child { border-bottom: 1px solid var(--line); }
.p-showcase__news-date { color: var(--ink-sub); font-family: var(--font-num); font-size: var(--fz-note); }
.p-showcase__news-cat { color: var(--ink-sub); font-size: var(--fz-note); letter-spacing: .06em; }
.p-showcase__news-title { flex: 1 0 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* 1行目に日付と種類、2行目にタイトル。タイトルは1行で、長いときは「…」（2026-11-23 発注者） */
/* 黒い帯の中：文字は帯の明るい色、罫線は --ink-line、ラベルの線はローズのまま。小さい文字は --ink-mute（#111 の上で 6.3:1） */
.p-maint__news li { border-top-color: var(--ink-line); }
.p-maint__news li:last-child { border-bottom-color: var(--ink-line); }
.p-maint__news .p-showcase__news-date, .p-maint__news .p-showcase__news-cat { color: var(--ink-mute); }
.p-showcase__news-title:hover { opacity: .6; }
@media (min-width: 768px) {
  /* 画面1枚ぶんの盤（見出し・番号・案内は、これを基準に絶対配置）。左の余白ぶん外へ広げて、今までの copy と同じ箱にする */
  .p-showcase__stage { display: block; flex-direction: row; height: 100svh; min-height: auto; margin: 0 -3vw; padding: 0; }
  .p-showcase__stage::before, .p-showcase__stage::after { content: none; }
  .p-showcase__news { display: block; max-width: 760px; margin: var(--space-24) 0 var(--space-20); }
  .p-maint__news { display: none; }
  .p-showcase__news li { flex-wrap: nowrap; gap: var(--space-12); }
  .p-showcase__news-date { flex: 0 0 6em; }
  .p-showcase__news-cat { flex: 0 0 5.5em; }
  .p-showcase__news-title { flex: 1 1 0; }
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .p-showcase.is-intro .p-showcase__news { animation: p-intro-rise .55s cubic-bezier(.22, 1, .36, 1) 1.2s both; } /* 見出しがそろってから、番号と同じころに出る */
}

/* --------------------------------------------------------------
   左の導入の動き（PC・スマホとも。読み込み時に1回。JS が html.js と #showcase.is-intro を付けているあいだだけ動く。終わると外れて、下の「動きなし」の見た目に戻る）
   見出しの1文字ずつがそろう → 行頭の英字・説明・番号が出る。同時に、写真の境目の延長線が右から左へ走り（0.3 秒あと）、薄い跡になる
   ・動きを減らす設定・JS なしでは、どれも動かない（線は最後の状態＝薄い跡で置くだけ）
   -------------------------------------------------------------- */
.p-showcase__ch { display: inline-block; }
.p-showcase { --line-rest: .16; --a-d0: .1s; --line-d0: .4s; } /* --line-rest＝走り終えた線の薄さ／--a-d0・--line-d0＝A・B が始まるまでの間 */
/* 線：背景（文字より後ろ）。ローズの 1px、最後は薄い跡 */
.p-showcase__lines {
  display: block; position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: hidden; pointer-events: none;
}
.p-showcase__lines path { fill: none; stroke: var(--accent); stroke-width: 1; opacity: var(--line-rest); }
@media (prefers-reduced-motion: no-preference) {
  /* A：1文字ずつ（13文字×25ms ずつ。1文字 1.05s で静かに減速して止まる。行き過ぎない） */
  .p-showcase.is-intro .p-showcase__ch {
    animation:
      p-intro-ch 1.05s cubic-bezier(.25, .8, .25, 1) calc(var(--a-d0) + var(--i) * .025s) both,
      p-intro-ch-op .6s ease-out calc(var(--a-d0) + var(--i) * .025s) both;
  }
  /* A：見出しがそろってから、英字の行・説明・番号と進行バーがふわっと出る（1.0s〜1.75s） */
  .p-showcase.is-intro .p-showcase__eyebrow { animation: p-intro-rise .55s cubic-bezier(.22, 1, .36, 1) 1s both; }
  .p-showcase.is-intro .p-showcase__lead { animation: p-intro-rise .55s cubic-bezier(.22, 1, .36, 1) 1.1s both; }
  /* B：線が右から左へ走る（1本 .8s・0.1s ずつずらす）→ 少しおいて薄い跡まで落ちる */
  .p-showcase.is-intro .p-showcase__lines path {
    stroke-dasharray: 1;
    animation:
      p-intro-draw .8s cubic-bezier(.5, 0, .15, 1) calc(var(--line-d0) + var(--i) * .1s) both,
      p-intro-line-rest .6s ease-out calc(var(--line-d0) + var(--i) * .1s + .9s) both;
  }
}
@keyframes p-intro-ch { from { transform: translate(var(--ix), var(--iy)) rotate(var(--ir)); } to { transform: none; } }
@keyframes p-intro-ch-op { from { opacity: 0; } to { opacity: 1; } }
@keyframes p-intro-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes p-intro-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes p-intro-line-rest { from { opacity: 1; } } /* 行き先は、線の本来の薄さ（--line-rest） */

/* ==============================================================
   PCのロゴの動き（ファーストビュー左・見出しの上の「unwall」。PC のみ、読み込み時に1回だけ。「板が集まる」案）
   ・大きな半透明の板（縁は斜め 30°）が縮んで文字のまわりに集まり、薄れながら文字が左から現れる（約 1.9 秒）。終わったら静止したロゴ
   ・見出しのまとまりは画面の下寄せ、ロゴは英字の行の上。PC は「下へスクロール」を出さない。見出しの動き（is-intro）は、ロゴのあとから始める
   ・板は左の列の中だけに切る（.p-showcase__logo-zone の overflow: clip）。上下は薄れて消えるので、横の切れ目は見えない
   ・動きを減らす設定では、最初から完成したロゴを出す。スマホ（768px 未満）は、ロゴを出さず、「下へスクロール」もそのまま
   ・動きの名前は p-intro- で始める（script.js が終わりを見届けて is-intro を外し、静止した見た目に戻す）
   ・ロゴの形のデータの作り方と、ほかの案は _parts/logo-motion/（納品しない）
   ============================================================== */
.p-showcase__logo { display: none; } /* スマホは出さない */
@media (min-width: 768px) {
  /* 寸法：--logo-h＝文字の高さ（画面の高さの10%・幅が狭いときは列に収まる大きさ）／--logo-w＝文字の幅（横縦比 483:124） */
  .p-showcase { --logo-h: min(10svh, 8.5vw); --logo-w: calc(var(--logo-h) * 3.895); --a-d0: 1.8s; --line-d0: 1.5s; }

  /* 見出しのまとまりは画面の下寄せ。ロゴはその一番上（英字の行の上）。下へスクロールの案内は消す */
  .p-showcase__title-block { top: auto; bottom: 11.5svh; translate: none; } /* 見出しとロゴのまとまり全体を、画面の下から 11.5%（ヘッダーと画面の下のあいだの、やや下寄せ） */
  .p-showcase__logo { display: block; position: relative; height: var(--logo-h); margin-bottom: 9svh; }
  .p-showcase__logo-word { display: block; position: relative; width: var(--logo-w); height: var(--logo-h); overflow: visible; }

  /* 板を切る枠：左の列の幅いっぱい（文字の上下に 0.9 文字ぶん）。左端は列の端、文字は枠の左から 3vw。上下は薄れて消える */
  .p-showcase__logo-zone {
    position: absolute; z-index: 1; left: -3vw; right: -3vw;
    top: calc(var(--logo-h) * -.9); bottom: calc(var(--logo-h) * -.9);
    overflow: clip; pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, var(--black) 24%, var(--black) 76%, transparent);
    mask-image: linear-gradient(to bottom, transparent, var(--black) 24%, var(--black) 76%, transparent);
  }
  /* 板：最後の形（動きなし）では透明。--lx・--ty・--lw＝文字の幅・高さに対する位置と幅、--po＝集まったときの濃さ、--ps・--pr・--px・--py＝動きの出発点（大きさ・回転・ずれ） */
  .p-showcase__logo-plane {
    --lx: 0; --lw: .36; --ty: -.7; --po: .7; --ps: 7; --pr: -12deg; --px: calc(var(--logo-h) * 1.6); --py: calc(var(--logo-h) * -.8);
    position: absolute;
    left: calc(3vw + var(--logo-w) * var(--lx)); top: calc(var(--logo-h) * (.9 + var(--ty)));
    width: calc(var(--logo-w) * var(--lw)); height: calc(var(--logo-h) * 2.4);
    --d: calc(var(--logo-w) * var(--lw) * .5774); /* 上下の縁の落差（30°） */
    clip-path: polygon(0 var(--d), 100% 0, 100% calc(100% - var(--d)), 0 100%);
    transform-origin: calc(var(--logo-w) * (.5 - var(--lx))) calc(var(--logo-h) * (.5 - var(--ty)));
    opacity: 0;
  }
  .p-showcase__logo-plane:nth-child(1) { background: var(--gray-da); }
  .p-showcase__logo-plane:nth-child(2) { --lx: .22; --po: .5; --ps: 9; --pr: 10deg; --px: calc(var(--logo-h) * -1.8); --py: calc(var(--logo-h) * .9); background: var(--gray-a4); }
  .p-showcase__logo-plane:nth-child(3) { --lx: .44; --po: .85; --ps: 8; --pr: -8deg; --px: calc(var(--logo-h) * 1.2); --py: calc(var(--logo-h) * 1.1); background: var(--mist-3); }
  .p-showcase__logo-plane:nth-child(4) { --lx: .64; --po: .55; --ps: 10; --pr: 14deg; --px: calc(var(--logo-h) * -1.2); --py: calc(var(--logo-h) * -1); background: var(--rose-soft); }
}
@media (min-width: 768px) and (max-height: 600px) { /* 背の低い画面（横向きのスマホなど）：文字を少し小さく */
  .p-showcase { --logo-h: min(9svh, 8.5vw); }
  .p-showcase__title-block { bottom: 7svh; } /* 背が低いときは、ヘッダーに近づきすぎないよう下げすぎない */
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  /* 板が縮んで集まる（1.3 秒）→ 薄れて消える（0.8 秒から 1.1 秒）。文字は 0.85 秒から左→右へ（0.95 秒） */
  .p-showcase.is-intro .p-showcase__logo-plane {
    animation: p-intro-logo-gather 1.3s cubic-bezier(.16, 1, .3, 1) both, p-intro-logo-plane-fade 1.1s ease-in-out .8s both;
  }
  .p-showcase.is-intro .p-showcase__logo-plane:nth-child(2) { animation-delay: .06s, .84s; }
  .p-showcase.is-intro .p-showcase__logo-plane:nth-child(3) { animation-delay: .12s, .88s; }
  .p-showcase.is-intro .p-showcase__logo-plane:nth-child(4) { animation-delay: .18s, .92s; }
  .p-showcase.is-intro .p-showcase__logo-word { animation: p-intro-logo-word .95s cubic-bezier(.22, 1, .36, 1) .85s both; }
  /* 見出しの動きを、ロゴのあとへ回す（遅らせた分。文字は --a-d0 で 1.8 秒から） */
  .p-showcase.is-intro .p-showcase__eyebrow { animation-delay: calc(var(--a-d0) + .9s); }
  .p-showcase.is-intro .p-showcase__lead { animation-delay: calc(var(--a-d0) + 1s); }
  .p-showcase.is-intro .p-showcase__news { animation-delay: calc(var(--a-d0) + 1.1s); }
  /* 2回目からはロゴを動かさない（script.js が is-logo-seen を付ける）。見出しの動きは、待たずに今までの時間で始める */
  .p-showcase.is-logo-seen { --a-d0: .1s; --line-d0: .4s; }
  .p-showcase.is-logo-seen.is-intro .p-showcase__logo-plane,
  .p-showcase.is-logo-seen.is-intro .p-showcase__logo-word { animation: none; }
}
@keyframes p-intro-logo-gather { from { transform: translate(var(--px), var(--py)) rotate(var(--pr)) scale(var(--ps)); } to { transform: none; } }
@keyframes p-intro-logo-plane-fade { 0%, 55% { opacity: var(--po); } 100% { opacity: 0; } }
@keyframes p-intro-logo-word { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

/* ==============================================================
   スマホのロゴの動き（768px 未満のみ。2026-11-21 決定）
   ・読み込み時に1回、画面いっぱいの白い層（JS が is-sp-layer を付けている間だけ出る）。大きな板が集まって文字ロゴ「unwall」が画面の中央に現れ（幅 62vw）、
     そのあと、ヘッダー（ファーストビュー左上）のロゴの文字の位置・大きさへ縮んで移り、層が薄れて消える。マークは最後にふわっと出る（全体 約 2.8 秒）
   ・ヘッダーのロゴは移るまで隠す（is-sp-hold）。見出しの導入は、層が消えてから始まる（script.js の initIntro）
   ・初めての訪問のときだけ出す（JS が localStorage の unwall-intro-seen を見る。2回目からは層を出さない）。操作したら 0.15 秒で終わる（is-sp-skip）。動きを減らす設定では、層を出さない（JS が何もしない）。層は飾りで、触れない・フォーカスしない
   ============================================================== */
.p-showcase .p-showcase__sp-intro {
  --sp-w: 62vw; --sp-h: calc(62vw / 3.895); /* 文字の幅・高さ（横縦比 483:124） */
  display: none; position: fixed; inset: 0; z-index: 90; overflow: clip; pointer-events: none;
}
.p-showcase.is-sp-layer .p-showcase__sp-intro { display: grid; place-items: center; }
.p-showcase .p-showcase__sp-intro::before { content: ""; position: absolute; inset: 0; background: var(--paper); } /* 白い層（最後に薄れる） */
.p-showcase.is-sp-skip .p-showcase__sp-intro { opacity: 0; transition: opacity .15s linear; }
.p-showcase .p-showcase__sp-logo { position: relative; width: var(--sp-w); height: var(--sp-h); }
.p-showcase .p-showcase__sp-word { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 50%; }
/* 板（案Aと同じ：縁は斜め 30°）。見える間だけ動く */
.p-showcase .p-showcase__sp-plane {
  --lx: 0; --lw: .36; --ty: -.7; --po: .7; --ps: 7; --pr: -12deg; --px: calc(var(--sp-h) * 1.6); --py: calc(var(--sp-h) * -.8);
  --d: calc(var(--sp-w) * var(--lw) * .5774);
  position: absolute; left: calc(var(--sp-w) * var(--lx)); top: calc(var(--sp-h) * var(--ty));
  width: calc(var(--sp-w) * var(--lw)); height: calc(var(--sp-h) * 2.4);
  clip-path: polygon(0 var(--d), 100% 0, 100% calc(100% - var(--d)), 0 100%);
  transform-origin: calc(var(--sp-w) * (.5 - var(--lx))) calc(var(--sp-h) * (.5 - var(--ty)));
  opacity: 0;
}
.p-showcase .p-showcase__sp-plane:nth-child(1) { background: var(--gray-da); }
.p-showcase .p-showcase__sp-plane:nth-child(2) { --lx: .22; --po: .5; --ps: 9; --pr: 10deg; --px: calc(var(--sp-h) * -1.8); --py: calc(var(--sp-h) * .9); background: var(--gray-a4); }
.p-showcase .p-showcase__sp-plane:nth-child(3) { --lx: .44; --po: .85; --ps: 8; --pr: -8deg; --px: calc(var(--sp-h) * 1.2); --py: calc(var(--sp-h) * 1.1); background: var(--mist-3); }
.p-showcase .p-showcase__sp-plane:nth-child(4) { --lx: .64; --po: .55; --ps: 10; --pr: 14deg; --px: calc(var(--sp-h) * -1.2); --py: calc(var(--sp-h) * -1); background: var(--rose-soft); }
/* 動きの間：見出しは隠す（導入が始まるまで）。ヘッダーのロゴは、文字を隠し、マークを透明に */
.p-showcase.is-sp-layer .p-showcase__title-block { visibility: hidden; }
.p-showcase.is-sp-hold .p-showcase__head .c-brand__type { visibility: hidden; }
.p-showcase.is-sp-hold .p-showcase__head .c-brand__mark { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* 板が集まる（1.4 秒）→ 0.6 秒から薄れる（0.7 秒。文字が出きる 1.5 秒には、ほぼ消えている）。文字は 0.5 秒から左→右へ（1.0 秒）。
     1.55 秒から 0.95 秒かけて、ゆっくり出てゆっくり止まる動きでヘッダーのロゴの位置へ移り、白い層は同時に薄れる（全体 約 2.5 秒＋マーク 0.3 秒） */
  .p-showcase.is-sp-layer .p-showcase__sp-plane { animation: sp-logo-gather 1.4s cubic-bezier(.16, 1, .3, 1) both, sp-logo-plane-fade .7s ease-in-out .6s both; }
  .p-showcase.is-sp-layer .p-showcase__sp-plane:nth-child(2) { animation-delay: .08s, .66s; }
  .p-showcase.is-sp-layer .p-showcase__sp-plane:nth-child(3) { animation-delay: .16s, .72s; }
  .p-showcase.is-sp-layer .p-showcase__sp-plane:nth-child(4) { animation-delay: .24s, .78s; }
  .p-showcase.is-sp-layer .p-showcase__sp-word {
    animation: sp-logo-word 1s cubic-bezier(.22, 1, .36, 1) .5s both, sp-logo-flip .95s cubic-bezier(.65, 0, .35, 1) 1.55s both;
  }
  .p-showcase.is-sp-layer .p-showcase__sp-intro::before { animation: sp-logo-bg .7s ease-in-out 1.6s both; }
  .p-showcase.is-sp-landed .p-showcase__head .c-brand__mark { animation: sp-logo-mark .3s ease-out both; } /* マークは最後に */
}
@media (min-width: 768px) { /* PC では、この動きを出さない */
  .p-showcase .p-showcase__sp-intro, .p-showcase.is-sp-layer .p-showcase__sp-intro { display: none; }
  .p-showcase.is-sp-layer .p-showcase__title-block { visibility: inherit; }
  .p-showcase.is-sp-hold .p-showcase__head .c-brand__type { visibility: inherit; }
  .p-showcase.is-sp-hold .p-showcase__head .c-brand__mark { opacity: 1; }
  .p-showcase.is-sp-landed .p-showcase__head .c-brand__mark { animation: none; }
}
@keyframes sp-logo-gather { from { transform: translate(var(--px), var(--py)) rotate(var(--pr)) scale(var(--ps)); } to { transform: none; } }
@keyframes sp-logo-plane-fade { 0%, 40% { opacity: var(--po); } 100% { opacity: 0; } }
@keyframes sp-logo-word { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes sp-logo-flip { from { transform: none; } to { transform: translate(var(--sp-dx), var(--sp-dy)) scale(var(--sp-s)); } }
@keyframes sp-logo-bg { to { opacity: 0; } }
@keyframes sp-logo-mark { from { opacity: 0; } }

/* ==============================================================
   TOP の下の段（ファーストビューより下）
   保守のお客さま（黒い帯）→ 考え方 → 制作実績 → できること → 業種 → 流れ → 窓口は代表 → コラム
   幅の基準：768px／1200px（モバイルファースト）
   ============================================================== */

/* ファーストビューの左上のメニューボタン（ヘッダーがまだ出ていない間の入口） */
.p-showcase__head .c-menu-btn { margin-right: calc(var(--space-2) * -1); }
/* スマホのファーストビューは左の列が狭い（幅の 40%）ので、ロゴの横には「メニュー」の文字を出さず、三本線だけ（読み上げの名前は残す） */
.p-showcase__head .c-menu-btn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 768px) {
  .p-showcase__head .c-menu-btn__text { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

/* --------------------------------------------------------------
   保守をご契約中のお客さまへ（黒い帯）
   -------------------------------------------------------------- */
.p-maint { overflow: clip; padding-top: var(--maint-pt, calc(62vw + var(--space-section) / 2)); }
/* 右は、ファーストビューから続くタイル（.p-showcase__images が重なる）。スマホは帯の上部にタイルの場所をあけて、文字はその下 */
/* 上の余白と本文の上の間は、スマホの左右組みでは script.js（initBand）が、写真の列に触れない最小の値を測って --maint-pt・--maint-text-mt に入れる（入るまでは従来の余白） */
.p-maint__inner { position: relative; z-index: 1; }
.p-maint__text { margin-top: var(--maint-text-mt, var(--space-40)); max-width: 34em; }
.p-maint__actions { margin-top: var(--space-40); }
@media (min-width: 768px) {
  .p-maint { padding-top: calc(var(--space-section) / 2); }
  .p-maint__inner { max-width: none; margin-inline: 0; padding-left: 3vw; padding-right: calc(50vw + 3vw); }
  .p-maint__text { margin-top: var(--space-56); }
  .p-maint__actions { margin-top: var(--space-48); }
}

/* --------------------------------------------------------------
   考え方：全幅の大きな一文＋平行四辺形6枚（2列×3段）
   ・形はファーストビューのタイルと同じ：幅 w、高さ＝段×3（段＝w×tan30°）。隣の列は1段ずつずらして、すき間なく組む
   ・図の幅＝2w。PC は右のタイルと同じ大きさ（w＝右の列の1/3＝16.667vw → 図の幅 33.333vw）、スマホは段の幅いっぱい
   ・高さ＝段×8＝w×4.6188（幅の 2.3094 倍）。1枚の高さは図の 37.5%、段は図の高さの 1/8（12.5%）
   ・並び：右列＝①③⑤、左列＝②④⑥（上から）。濃淡はWeb制作（①）が一番濃く、順に淡く（⑥が一番淡い）
   -------------------------------------------------------------- */
/* 図の位置（高い順に ①Web制作 ②AI導入支援 ③各種印刷物 ④看板製作）。右の列ほど1段高い */
/* PC：黒い帯の下端から「考え方」のラベルまでの空きを、この段だけ約45%詰める（--space-section は変えない）。右上にはファーストビューから続くタイルが入り込む */
.p-idea { padding-top: calc(var(--space-section) * .55); padding-bottom: calc(var(--space-section) * .5); } /* スマホも同じ割合（2026-11-21：スマホだけ上下が満額で、前後の段との間が 192px と広かった） */
.p-idea__body { display: grid; gap: var(--space-56); margin-top: var(--space-56); }
.p-idea__steps { position: relative; width: 100%; aspect-ratio: 1 / 2.3094; }
.p-idea__step { --ar: .57735; position: absolute; width: 50%; }
.p-idea__step:nth-child(1) { left: 50%; top: 0; }
.p-idea__step:nth-child(2) { left: 0; top: 12.5%; }
.p-idea__step:nth-child(3) { left: 50%; top: 25%; }
.p-idea__step:nth-child(4) { left: 0; top: 37.5%; }
.p-idea__step:nth-child(5) { left: 50%; top: 50%; }
.p-idea__step:nth-child(6) { left: 0; top: 62.5%; }
/* 濃淡：濃い（①）から淡い（⑥）へ6段のグレー。①〜③は白、④〜⑥は黒の文字（どれも文字の対比 4.5:1 以上）
   is-hot のタイルだけローズ＋白い文字（①Web制作・⑥システム開発はいつも。残りの4枚はスクロールで1枚ずつ順に。script.js の initIdeaHot）。
   ローズは文字の差し色 --accent より少し深い --hot（白い文字との対比 4.96:1）。色は内側の影で重ね、なめらかに替える（グラデーションは変化させられないため） */
.p-idea__step:nth-child(1) { --tone: var(--gray-3c); --light: var(--gray-4a); }
.p-idea__step:nth-child(2) { --tone: var(--gray-4e); --light: var(--gray-5c); }
.p-idea__step:nth-child(3) { --tone: var(--gray-60); --light: var(--gray-6e); }
.p-idea__step:nth-child(4) { --tone: var(--gray-90); --light: var(--gray-9e); }
.p-idea__step:nth-child(5) { --tone: var(--gray-ac); --light: var(--gray-ba); }
.p-idea__step:nth-child(6) { --tone: var(--gray-c8); --light: var(--gray-d6); }
.p-idea__step .c-para__ph {
  color: var(--white);
  box-shadow: inset 0 0 0 100vmax var(--hot-0);
  transition: box-shadow .45s var(--ease), color .45s var(--ease);
}
.p-idea__step:nth-child(n+4) .c-para__ph { color: var(--ink); }
.p-idea__step.is-hot .c-para__ph { box-shadow: inset 0 0 0 100vmax var(--hot); color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .p-idea__step .c-para__ph { transition: none; }
}
/* タイルの間に、右のタイルと同じ細い紙色の線（--seam）を入れる（形は右のタイルと同じ縮め方） */
.p-idea { --seam: .75px; }
.p-idea__step .c-para__shape {
  clip-path: polygon(
    var(--seam) calc(33.3333% + var(--seam) * .57735),
    calc(100% - var(--seam)) calc(var(--seam) * 1.7321),
    calc(100% - var(--seam)) calc(66.6667% - var(--seam) * .57735),
    var(--seam) calc(100% - var(--seam) * 1.7321)
  );
}
/* 文字は平行四辺形の中央寄せ。斜めの辺にかからない範囲（中央の帯）に収める */
.p-idea__label { gap: var(--space-2); padding: 0 14%; text-align: center; }
.p-idea__label strong { font-size: var(--fz-idea-name); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.p-idea__label span { display: block; font-size: var(--fz-idea-note); letter-spacing: 0; line-height: 1.4; }
.p-idea__link { margin-top: var(--space-40); }
@media (min-width: 768px) {
  .p-idea__body { margin-top: var(--space-80); }
  .p-idea { --seam: 1px; }
  /* 右の写真のタイルと同じ格子の上に置く。大きさ（--gw）と位置（--gx・--gy）は script.js が右の列から計算する（入るまでは右のタイルと同じ大きさ） */
  .p-idea__steps { width: var(--gw, 50vw); aspect-ratio: 1 / 1.34715; transform: translate(var(--gx, 0px), var(--gy, 0px)); }
  /* PC は 3列×2段（幅＝3w、高さ＝段×7）。右列 ⑤⑥、中列 ①③、左列 ②④。段の位置は 1/7（14.2857%）刻み */
  .p-idea__step { width: 33.3333%; }
  .p-idea__step:nth-child(1) { left: 33.3333%; top: 14.2857%; }
  .p-idea__step:nth-child(2) { left: 0; top: 28.5714%; }
  .p-idea__step:nth-child(3) { left: 33.3333%; top: 42.8571%; }
  .p-idea__step:nth-child(4) { left: 0; top: 57.1429%; }
  .p-idea__step:nth-child(5) { left: 66.6667%; top: 0; }
  .p-idea__step:nth-child(6) { left: 66.6667%; top: 28.5714%; }
  /* 下余白は標準の半分：枠の高さ（--idea-h＝図の下端か本文の下端の低いほう）の下に、この半分と次の段の上余白（半分）で、見た目の距離が段の余白1つぶんになる */
  .p-idea { padding-bottom: calc(var(--space-section) * .5); }
  .p-idea__body { height: var(--idea-h, auto); }
  .p-idea__text { transform: translateY(var(--tup, 0px)); } /* 写真の最下点から約80px下へ引き上げる量は script.js が入れる */
}
@media (min-width: 1200px) {
  .p-idea__body { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; margin-top: var(--space-96); }
  .p-idea__steps { grid-column: 1 / span 6; }
  .p-idea__text { grid-column: 8 / -1; }
}

/* --------------------------------------------------------------
   できること：左見出し（ラベル・見出し・説明・「まとめて頼む」）と、右の行リンク（台形）。見出しはスクロールしても残さない（行が左へ広がるため）
   -------------------------------------------------------------- */
.p-service__lead { margin-top: var(--space-32); max-width: 30em; }
.p-service__bundle { margin-bottom: var(--space-32); }

/* --------------------------------------------------------------
   ご相談からの流れ
   -------------------------------------------------------------- */
.p-flow__steps { margin-top: var(--space-64); }
@media (min-width: 768px) {
  .p-flow__steps { margin-top: var(--space-96); }
}

/* --------------------------------------------------------------
   窓口は代表：写真（縦長の平行四辺形）が左、文章が右
   -------------------------------------------------------------- */
.p-person { display: grid; gap: var(--space-48); align-items: center; }
.p-person__photo { width: 62%; margin-left: auto; } /* あしらいの平行四辺形は右（2026-11-21）。スマホは文章の上で右寄せ */
.p-person .c-heading { margin-bottom: var(--space-32); }
.p-person__name { margin-top: var(--space-32); font-size: var(--fz-sub); }
.p-person__link { margin-top: var(--space-32); }
@media (min-width: 1200px) {
  .p-person { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .p-person__photo { grid-column: 9 / -1; grid-row: 1; width: 100%; } /* PC：文章が左、あしらいが右 */
  .p-person__body { grid-column: 1 / span 7; grid-row: 1; }
}

/* --------------------------------------------------------------
   業種ごとの作り方：SP・768px〜は縦に積む。1200px〜は3列
   （線・見出し・本文は c-steps の部品を使い、列数だけここで決める）
   -------------------------------------------------------------- */
.p-industry__list { margin-top: var(--space-64); grid-template-columns: minmax(0, 1fr); }
.p-industry__kind { margin-top: var(--space-20); font-size: var(--fz-label); letter-spacing: .12em; color: var(--ink-sub); line-height: 1.6; }
.p-industry__kind + .c-steps__text { margin-top: var(--space-6); }
.p-industry__link { margin-top: var(--space-24); }
.p-industry__work { margin-top: var(--space-12); font-size: var(--fz-sub); }
@media (min-width: 768px) {
  .p-industry__list { margin-top: var(--space-96); }
}
@media (min-width: 1200px) {
  .p-industry__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------
   コラム：新しい記事のカード（中身は _news.py が作る）。横スクロールはしない
   ・スマホ：2列で2件。入りきらない3件目は出さない
   ・768px〜：横に3件。1200px〜：左に見出し、右に3件
   -------------------------------------------------------------- */
.p-column__head { display: grid; gap: var(--space-24); margin-bottom: var(--space-40); }
.p-column__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-12); margin: 0; padding: 0; list-style: none; }
.p-column__item:nth-child(n+3) { display: none; }
.p-column__card { display: block; }
.p-column__card .c-para { width: 100%; }
.p-column__date { display: block; margin-top: var(--space-12); font-family: var(--font-num); font-size: var(--fz-note); color: var(--ink-sub); }
.p-column__title { margin-top: var(--space-4); font-size: var(--fz-sub); font-weight: 500; line-height: 1.6; letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; } /* 読点で折り返す */
@media (min-width: 768px) {
  .p-column__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-bottom: var(--space-56); }
  .p-column__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
  .p-column__item:nth-child(n+3) { display: block; }
  .p-column__item:nth-child(n+4) { display: none; }
  .p-column__date { margin-top: var(--space-16); font-size: var(--fz-sub); }
  .p-column__title { margin-top: var(--space-6); font-size: var(--fz-body); }
}
@media (min-width: 1200px) {
  .p-column__layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gutter); align-items: start; }
  .p-column__head { display: block; margin-bottom: 0; }
  .p-column__head > p { margin-top: var(--space-32); }
  .p-column__list { gap: var(--space-32); }
}

/* ==============================================================
   TOP の下の段（2026-11-21〜22 発注者が見本から決定。本番へ）
   ① できること（#service）：最初の行「まとめて頼む」は濃いローズの面（左の見出しの下）。ほかの行は大きな細い番号＋30°に傾いたローズの矢印チップ。
      PC（1200px〜）は、01→05 と下の行ほど左へ広げた台形＋右下のあしらい
   ② ご相談からの流れ（#flow）：PC（1200px〜）は右上がりの階段で、ローズの線が1→4へ1回描かれ、そのあと光が流れ続ける。
      スマホ・タブレットは縦のリストで、左のローズの線がスクロールに合わせて伸びる
   ③ コラム：スマホは横スワイプ（次のカードがのぞく）。PC は最新の1枚を大きく（4列のうち2列）
   ④ 最後の相談の帯（フッターの上段）：見えたときに1回、ロゴの動き（板が集まる）。白い文字ロゴ。板は帯の中だけに切る
   ・動きを減らす設定では、線もロゴも最初から完成した形
   ・メニュー（PC の斜めの帯）の CSS は style.css の l-menu にある
   ============================================================== */

/* ---- ① できること */
.p-service .p-service__bundle > li { background: var(--hot); border-top-color: var(--hot); }
.p-service .p-service__bundle .c-rows__link {
  grid-template-columns: minmax(0, 1fr) 68px; grid-template-areas: "name arrow" "text arrow";
  align-items: center; column-gap: var(--space-16); padding: var(--space-28) var(--space-20); color: var(--white);
}
.p-service .p-service__bundle .c-rows__link::before { inset: 0; background: var(--hot-deep); } /* ホバーは、さらに深いローズ */
.p-service .p-service__bundle .c-rows__name { font-size: calc(var(--fz-h3) * 1.2); }
.p-service .p-service__bundle .c-rows__text { color: var(--white); }
.p-service .p-service__bundle .c-rows__arrow { background: var(--white); color: var(--hot); }
/* ほかの行：大きな細い番号（左）・名前と一文・矢印チップ。スマホ（768px 未満）は番号を出さない（2026-11-22 発注者） */
.p-service .c-rows:not(.p-service__bundle) .c-rows__link {
  grid-template-columns: minmax(0, 1fr) 54px; grid-template-areas: "name arrow" "text arrow";
  align-items: center; column-gap: var(--space-8);
}
.p-service .c-rows:not(.p-service__bundle) .c-rows__num { display: none; }
.p-service .c-rows__num {
  align-self: center; font-family: var(--font-num-thin); font-weight: 200;
  font-size: 2.4em; line-height: 1; letter-spacing: -.04em; color: var(--gray-8a); /* 大きな文字なので、薄いグレーでも 3:1 以上 */
}
/* 矢印：30° に傾いたローズの平行四辺形（--chip 角。上下の縁の落差＝--chip×tan30°）の中に →。2026-11-21 44px→56px（狭い画面 52px）に大きく */
.p-service .c-rows { --chip: 52px; }
.p-service .c-rows__arrow {
  display: grid; place-items: center; width: var(--chip); height: var(--chip); justify-self: end;
  background: var(--hot); color: var(--white); font-size: calc(var(--chip) * .34); line-height: 1;
  clip-path: polygon(0 calc(var(--chip) * .57735), 100% 0, 100% calc(100% - var(--chip) * .57735), 0 100%);
}
@media (min-width: 768px) {
  .p-service .c-rows { --chip: 56px; }
  .p-service .p-service__bundle .c-rows__link {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 68px; grid-template-areas: "name text arrow"; padding: var(--space-36) var(--space-32);
  }
  .p-service .c-rows:not(.p-service__bundle) .c-rows__link {
    grid-template-columns: 96px minmax(0, 1.5fr) minmax(0, 1.2fr) 68px; grid-template-areas: "num name text arrow"; column-gap: var(--space-20);
  }
  .p-service .c-rows:not(.p-service__bundle) .c-rows__num { display: block; }
}
/* スマホ（768px 未満）：一覧の 2〜4 段目の左に、30° の平行四辺形のあしらい（2026-11-22 発注者。半円から変更）。
   左右の辺は縦、上下の辺は 30° で右へ上がる（PC の右下のあしらいと同じ形・見た目）。幅 --sl-w＝画面幅の 12%（2026-11-22 18%→12%）。
   2〜4 段目は、その右から始める。縦の位置と高さは script.js（initServiceFit）が --sl-top・--sl-h に入れる */
.p-service .c-split__body { position: relative; --sl-w: 12vw; }
.p-service__slant {
  display: block; position: absolute; left: calc(var(--gutter) * -1); top: var(--sl-top, 0px);
  width: calc(var(--gutter) + var(--sl-w)); height: var(--sl-h, 0px); pointer-events: none;
  background: var(--accent); /* 上の辺の細い線になる（中の面を 2px 下げて重ねる） */
  clip-path: polygon(0 calc(var(--gutter) * .57735 + var(--sl-w) * .57735), 100% 0, 100% calc(100% - var(--sl-w) * .57735 - var(--gutter) * .57735), 0 100%);
}
.p-service__slant::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--white-50) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--white-50) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(120deg, var(--mist-2), var(--mist-4));
  clip-path: polygon(0 calc(var(--gutter) * .57735 + var(--sl-w) * .57735 + 2.3px), 100% 2.3px, 100% calc(100% - var(--sl-w) * .57735 - var(--gutter) * .57735), 0 100%);
}
.p-service .c-rows:not(.p-service__bundle) > li:nth-child(n+2):nth-child(-n+4) { margin-left: calc(var(--sl-w) + var(--space-12)); }
@media (min-width: 768px) {
  .p-service .c-split__body { position: static; }
  .p-service__slant { display: none; }
  .p-service .c-rows:not(.p-service__bundle) > li:nth-child(n+2):nth-child(-n+4) { margin-left: 0; }
}
/* PC（1200px〜。見出しと行が左右に並ぶ幅）：01→05 と下の行ほど左へ広げて、左の端を台形のように斜めにそろえる（2026-11-21 発注者）。
   行は幅を変えずに、まるごと左へずらす（番号・名前・説明・矢印・線の右端も一緒に。1行ごとに --step ずつ）。左の見出しは重ならないよう、スクロールで残さない */
@media (min-width: 1200px) {
  .p-service__head { position: static; }
  .p-service .c-rows:not(.p-service__bundle) { --step: clamp(48px, 6.5vw, 120px); border-bottom: 0; }
  .p-service .c-rows:not(.p-service__bundle) > li { --ext: calc(var(--step) * var(--k, 0)); margin-left: calc(var(--ext) * -1); margin-right: var(--ext); }
  .p-service .c-rows:not(.p-service__bundle) > li:nth-child(n+2):nth-child(-n+4) { margin-left: calc(var(--ext) * -1); }
  .p-service .c-rows:not(.p-service__bundle) > li:last-child { border-bottom: 1px solid var(--line-ink); }
  .p-service .c-rows:not(.p-service__bundle) > li:nth-child(2) { --k: 1; }
  .p-service .c-rows:not(.p-service__bundle) > li:nth-child(3) { --k: 2; }
  .p-service .c-rows:not(.p-service__bundle) > li:nth-child(4) { --k: 3; }
  .p-service .c-rows:not(.p-service__bundle) > li:nth-child(5) { --k: 4; }
  /* 右下のあしらい（2026-11-21 発注者）：行が左へずれて空いた右下に、30° の平行四辺形（右へ上がる帯）。
     幅は 4 段ぶんのずれから 40px 引いた分（05 の行の右端の右）、右端は行の右端（01 の右端）にそろえ、下端は一覧の下端にそろえる */
  .p-service .c-split__body { position: relative; }
  .p-service__deco {
    --w: calc(clamp(48px, 6.5vw, 120px) * 4 - 40px);
    /* 左の辺の高さ＝05 の行の高さ（script.js が --deco-h に入れる）。左上の角が 05 の行の上の線の高さに来るので、04 より上の行にはかからない */
    position: absolute; right: 0; bottom: 0; width: var(--w); height: calc(var(--deco-h, 170px) + var(--w) * .57735);
    background: var(--accent); /* 上の辺の細い線になる（中の面を 2px 下げて重ねる） */
    clip-path: polygon(0 calc(var(--w) * .57735), 100% 0, 100% calc(100% - var(--w) * .57735), 0 100%);
    pointer-events: none;
  }
  .p-service__deco::after { /* 面：淡いグレー＋格子（ファーストビューの仮画像と同じ見た目） */
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(var(--white-50) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(90deg, var(--white-50) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(120deg, var(--mist-2), var(--mist-4));
    clip-path: polygon(0 calc(var(--w) * .57735 + 2.3px), 100% 2.3px, 100% calc(100% - var(--w) * .57735), 0 100%);
  }
  /* 「まとめて頼む」は左の見出しの下（HTML で見出しの箱の中に置いた）。名前の下に説明、右に矢印。台形の行と重ならない幅に */
  .p-service .p-service__head .p-service__bundle { margin: var(--space-48) 0 0; max-width: var(--bundle-w, 100%); }
  .p-service__head .p-service__bundle .c-rows__link { grid-template-columns: minmax(0, 1fr) 68px; grid-template-areas: "name arrow" "text arrow"; padding: var(--space-32) var(--space-28); row-gap: var(--space-10); }
}
@media (min-width: 768px) and (hover: hover) {
  .p-service .c-rows__link:hover .c-rows__arrow, .p-service .c-rows__link:focus-visible .c-rows__arrow { transform: translateX(10px); } /* チップが右へすべる */
}

/* ---- ② ご相談からの流れ（スマホ・タブレット 1200px 未満：ジグザグ。2026-11-22 発注者）
   手順を左・右・左・右と互い違いに置き（幅 78%）、外側の辺（1・3 は左、2・4 は右）に沿ってローズの線を引き、手順のあいだは斜めにつなぐ。
   線はスクロールに合わせて 1→4 へ伸びる（script.js の initFlow が SVG の折れ線を作り、伸びた長さを入れる）。線の先が届いた手順に印が出る（is-on） */
.p-flow .c-container { position: relative; }
.p-flow__steps { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); gap: var(--space-56); max-width: 720px; padding: 0; }
.p-flow__steps .c-steps__bar { display: none; }
.p-flow__steps .c-steps__item { width: 78%; padding: 0 0 0 var(--space-28); }
.p-flow__steps .c-steps__item:nth-child(even) { margin-left: auto; padding: 0 var(--space-28) 0 0; }
.js .p-flow__steps .c-steps__item.is-in { clip-path: inset(-14px -40px -14px -40px); } /* 外側の印がはみ出す分、切り抜きを広げる */
.p-flow__steps .c-steps__item::before { /* 印：30° の小さな平行四辺形。線の上に重ねる */
  content: ""; position: absolute; left: -9px; top: 8px; width: 18px; height: 20px;
  background: var(--accent); clip-path: polygon(0 10.4px, 100% 0, 100% calc(100% - 10.4px), 0 100%);
}
.p-flow__steps .c-steps__item:nth-child(even)::before { left: auto; right: -9px; }
.p-flow__zig { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.p-flow__zig path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: var(--zig-dash, none); stroke-dashoffset: var(--zig-offset, 0); } /* 長さと伸び具合は script.js が変数で入れる */
/* ---- ② PC（1200px〜）：右上がりの階段。1段あがるごとに --dy（幅 7vw、最大 134px）ずつ上へ。各段の上の線から次の段の上の線へ、斜めの線でつなぐ */
@media (min-width: 1200px) {
  .p-flow__steps { --dy: min(7vw, 134px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gutter); align-items: start; max-width: none; padding: 0; }
  .p-flow__steps .c-steps__item, .p-flow__steps .c-steps__item:nth-child(even) { width: auto; margin-left: 0; padding: 0; }
  .p-flow__zig { display: none; }
  .p-flow__steps::before, .p-flow__steps .c-steps__item::before { display: none; }
  /* 線は 1.5px で、数字の下に引く（2026-11-21 発注者：2px は太い、1px は細い）。--numh＝数字の高さ（style.css の c-steps__num と同じ） */
  .p-flow__steps .c-steps__item { --numh: clamp(40px, 4vw, 68px); --liney: calc(var(--numh) + 16px); padding-top: 0; }
  .p-flow__steps .c-steps__bar { display: block; top: var(--liney); height: 1.5px; background: var(--line); }
  .p-flow__steps .c-steps__num { margin-bottom: var(--space-32); }
  .p-flow__steps .c-steps__title { margin-top: 0; }
  .p-flow__steps .c-steps__item:nth-child(1) { margin-top: calc(var(--dy) * 3); }
  .p-flow__steps .c-steps__item:nth-child(2) { margin-top: calc(var(--dy) * 2); }
  .p-flow__steps .c-steps__item:nth-child(3) { margin-top: var(--dy); }
  .p-flow__steps .c-steps__item:nth-child(4) { margin-top: 0; }
  .js .p-flow__steps .c-steps__item.is-in { clip-path: inset(-150px -70px -14px -14px); } /* 斜めの線がはみ出す分、切り抜きを広げる（現れる動きはそのまま） */
  .p-flow__steps .c-steps__item:not(:last-child)::after { /* 斜めの線：この段の線の右端から、次の段の線の左端へ（長さ＝√(すき間²＋段差²)） */
    content: ""; position: absolute; left: 100%; top: var(--liney); height: 1.5px; width: hypot(var(--gutter), var(--dy));
    background: var(--accent); transform-origin: left center; transform: rotate(calc(atan2(var(--dy), var(--gutter)) * -1));
  }
}
/* スマホ・タブレット（1200px 未満）：左の線は、スクロールに合わせて上から下へ伸びる（JS が --flow-p＝0〜1 を入れる。2026-11-21 発注者）。
   線の先が届いた手順から、印が出る（JS が is-on）。動きを減らす設定では、最初から全部 */
@media (prefers-reduced-motion: no-preference) { /* 印は 1200px〜 では出さない */
  .js .p-flow__steps .c-steps__item::before { transition: opacity .3s ease, transform .3s ease; }
  .js .p-flow__steps .c-steps__item:not(.is-on)::before { opacity: 0; transform: scale(.6); }
}
/* PC（1200px〜）：描き終えた階段の線に沿って、深いローズの光（短い線）が 1→4 へ流れ続ける（JS が SVG の折れ線を作り、is-flow を付ける）。
   pathLength＝1000 に対して、光の長さ 110・太さ 4。4.2 秒で流れ、1.2 秒休んでくり返す */
.p-flow__glow { display: none; }
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  .p-flow .c-container { position: relative; }
  .p-flow .c-container:has(.p-flow__steps.is-flow) .p-flow__glow { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
  .p-flow__glow path {
    fill: none; stroke: var(--hot); stroke-width: 4; stroke-linecap: round;
    stroke-dasharray: 110 1000; stroke-dashoffset: 110;
    animation: p-flow-glow 5.4s cubic-bezier(.45, 0, .55, 1) infinite;
  }
}
@keyframes p-flow-glow { 0% { stroke-dashoffset: 110; opacity: 0; } 6% { opacity: 1; } 72% { opacity: 1; } 78% { stroke-dashoffset: -1000; opacity: 0; } 100% { stroke-dashoffset: -1000; opacity: 0; } }
/* PC の線が描かれる動き（JS が .p-flow__steps に is-draw を付けたとき） */
@media (prefers-reduced-motion: no-preference) {
  /* PC：線 → 斜め → 線 … の順（1本 0.5 秒） */
  .js .p-flow__steps .c-steps__bar::after { transition: transform .5s ease-out 0s; }
  .js .p-flow__steps:not(.is-draw) .c-steps__bar::after { transform: scaleX(0); }
  .js .p-flow__steps.is-draw .c-steps__bar::after { transform: none; }
  .p-flow__steps .c-steps__item:nth-child(2) .c-steps__bar::after { transition-delay: 1s; }
  .p-flow__steps .c-steps__item:nth-child(3) .c-steps__bar::after { transition-delay: 2s; }
  .p-flow__steps .c-steps__item:nth-child(4) .c-steps__bar::after { transition-delay: 3s; }
}
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  .js .p-flow__steps .c-steps__item:not(:last-child)::after { transition: transform .5s ease-out .5s; }
  .js .p-flow__steps:not(.is-draw) .c-steps__item:not(:last-child)::after { transform: rotate(calc(atan2(var(--dy), var(--gutter)) * -1)) scaleX(0); }
  .js .p-flow__steps .c-steps__item:nth-child(2)::after { transition-delay: 1.5s; }
  .js .p-flow__steps .c-steps__item:nth-child(3)::after { transition-delay: 2.5s; }
}

/* ==============================================================
   会社概要（company.html）：会社情報の表（c-table）と、アクセスの地図
   ============================================================== */
.p-company__biz { display: grid; gap: var(--space-6); }
.p-company__biz a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .3em; }
.p-company__biz a:hover { text-decoration-color: var(--accent); }
.p-company__access { margin-top: var(--space-32); line-height: 2; }
.p-company__maplink { margin-top: var(--space-24); }
.p-company__map { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); }
.p-company__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1); } /* 色は灰色に（サイトの色づかいに合わせる） */
@media (min-width: 768px) {
  .p-company__map { aspect-ratio: 16 / 10; }
}

/* ==============================================================
   できること（service.html）
   ① まとめて頼む（p-bundle）：濃いローズの帯。白い平行四辺形のカード4枚（上下の辺が右へ上がる。文字が読めるよう傾きはゆるやか）
   ② サービス一覧（p-svclist）：番号の平行四辺形（ローズと黒を交互）＋名前・一文・できることの札。PC は左右互い違い
   ③ 進め方と費用（p-svcinfo）：5つのサービスで共通なので1回だけ
   ・番号の大きな細い数字は TOP の「できること」と同じ見た目
   ============================================================== */

/* ---- ① まとめて頼む */
.p-bundle { background: var(--hot); color: var(--white); }
.p-bundle .c-label { color: var(--white); }
.p-bundle .c-label::before { background: var(--white); }
.p-bundle__lead { margin-top: var(--space-28); }
.p-bundle__lead + .p-bundle__lead { margin-top: var(--space-16); }
.p-bundle__cards { display: grid; gap: var(--space-12); }
.p-bundle__card {
  --d: 26px; /* 上下の辺の落差 */
  padding: calc(var(--d) + var(--space-22)) var(--space-28) calc(var(--d) + var(--space-22)) var(--space-32);
  background: var(--white); color: var(--ink);
  clip-path: polygon(0 var(--d), 100% 0, 100% calc(100% - var(--d)), 0 100%);
}
.p-bundle__scene { font-size: var(--fz-h3); font-weight: 500; line-height: 1.5; letter-spacing: 0; display: flex; align-items: center; gap: var(--space-12); }
.p-bundle__scene::before { content: ""; flex: none; width: 18px; height: 11px; background: var(--hot); clip-path: polygon(0 45%, 100% 0, 100% 55%, 0 100%); } /* 30° の小さな印 */
.p-bundle__text { margin-top: var(--space-10); font-size: var(--fz-sub); line-height: 1.95; color: var(--ink-sub); line-break: strict; }
.p-bundle__cta { margin-top: var(--space-40); }
@media (min-width: 768px) {
  .p-bundle__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); margin-top: var(--space-56); }
  .p-bundle__card { --d: 36px; }
}
@media (min-width: 1200px) {
  .p-bundle__cards { margin-top: 0; }
}

/* ==============================================================
   プライバシーポリシー（privacy.html）：読みやすい1本の文章。1行は 45 字ほど
   ============================================================== */
.p-policy > * + * { margin-top: var(--space-56); }
.p-policy__h { margin-bottom: var(--space-16); padding-top: var(--space-24); border-top: 1px solid var(--line-ink); font-size: var(--fz-h3); font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.p-policy__list { margin-top: var(--space-12); }
.p-policy__list li { position: relative; padding-left: 1.4em; line-height: 2; }
.p-policy__list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 6px; background: var(--accent); clip-path: polygon(0 45%, 100% 0, 100% 55%, 0 100%); }
.p-policy__num { counter-reset: n; }
.p-policy__num li { counter-increment: n; padding-left: 2em; }
.p-policy__num li::before { content: counter(n) "."; position: static; display: inline-block; width: 2em; margin-left: -2em; background: none; clip-path: none; height: auto; font-family: var(--font-num); color: var(--ink-sub); }
.p-policy a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .3em; }
.p-policy a:hover { text-decoration-color: var(--accent); }
.p-bundle a { text-decoration: underline; text-underline-offset: .3em; }

/* --------------------------------------------------------------
   お知らせ（2026-11-22）：一覧 news.html・記事 news-detail-XX.html
   クラス名は制作基準 §8（news-link / news-date / news-title、記事は news-detail-title / -date / -body）
   1件：スマホは「日付・分類」の下にタイトルと要約、右に矢印。768px〜 は左に日付と分類、中にタイトルと要約。1200px〜 は左に見出し、右に一覧
   -------------------------------------------------------------- */
.p-news__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-ink); }
.p-news__list > li { border-top: 1px solid var(--line-ink); }
.news-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "date cat arrow" "title title arrow" "excerpt excerpt arrow";
  align-items: center;
  gap: var(--space-10) var(--space-16);
  padding: var(--space-24) 0;
}
.news-date, .news-detail-date { font-family: var(--font-num); font-size: var(--fz-sub); letter-spacing: .04em; color: var(--ink-sub); }
.news-date { grid-area: date; }
/* 分類：灰の地の小さな平行四辺形（サイトの形に合わせる） */
.news-cat {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 var(--space-16);
  font-size: var(--fz-note); letter-spacing: .06em; line-height: 1;
  background: var(--paper-2);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.news-link .news-cat { grid-area: cat; justify-self: start; }
.news-title { grid-area: title; font-size: var(--fz-body); font-weight: 500; line-height: 1.7; transition: color var(--dur-hover) var(--ease); }
.news-excerpt { grid-area: excerpt; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: var(--fz-sub); line-height: 1.8; color: var(--ink-sub); } /* 要約は2行まで */
.news-arrow { --h: 34px; grid-area: arrow; display: grid; place-items: center; width: 52px; height: var(--h); background: var(--ink); color: var(--white); font-size: var(--fz-sub); clip-path: polygon(calc(var(--h) * .57735) 0, 100% 0, calc(100% - var(--h) * .57735) 100%, 0 100%); transition: transform var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease); }
.news-link:hover .news-title, .news-link:focus-visible .news-title { color: var(--hot); }
.news-link:hover .news-arrow, .news-link:focus-visible .news-arrow { background: var(--hot); transform: translateX(6px); }
.p-news__heading { position: relative; margin-bottom: var(--space-24); padding-left: calc(20px + var(--space-12)); font-size: var(--fz-h3); font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.p-news__heading::before { content: ""; position: absolute; left: 0; top: .72em; width: 20px; height: 2px; background: var(--accent); }
@media (min-width: 768px) {
  .news-link {
    grid-template-columns: 7.5em minmax(0, 1fr) auto;
    grid-template-areas: "date title arrow" "cat excerpt arrow";
    gap: var(--space-8) var(--space-24);
    padding: var(--space-32) 0;
  }
  .news-title { font-size: calc(var(--fz-body) * 1.125); }
  .news-date { align-self: center; }
  .news-link .news-cat { align-self: start; }
  .news-excerpt { align-self: start; }
  .p-news__list, .p-news__layout .pagination { max-width: 1040px; } /* 広い画面でも、矢印がタイトルから離れすぎないように */
}
@media (min-width: 1200px) {
  .p-news__layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gutter); align-items: start; }
  .p-news__heading { margin-bottom: 0; padding-top: var(--space-32); }
  .p-news__heading::before { top: calc(var(--space-32) + .72em); }
  .p-news__list, .p-news__layout .pagination { grid-column: 2; }
}

/* 記事：題字帯にパンくず・日付と分類・タイトル。本文は 1行 40〜45字（c-text） */
.p-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-16); }
.news-detail-title { max-width: 30em; font-size: var(--fz-h2); font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }
.news-detail-title, .news-detail-body h2 { position: relative; padding-left: calc(20px + var(--space-12)); } /* 見出しの左に短い横線 */
.news-detail-title::before, .news-detail-body h2::before { content: ""; position: absolute; left: 0; top: .72em; width: 20px; height: 2px; background: var(--accent); }
.news-detail-body h2 { margin-top: 2.8em; font-size: var(--fz-h3); font-weight: 500; line-height: 1.5; letter-spacing: 0; text-align: left; }
.news-detail-body ul { padding: 0; list-style: none; }
.news-detail-body li { position: relative; padding-left: 1.4em; }
.news-detail-body li::before { content: ""; position: absolute; left: 0; top: 1em; width: 10px; height: 6px; background: var(--accent); clip-path: polygon(0 45%, 100% 0, 100% 55%, 0 100%); }
.news-detail-body img { width: 100%; height: auto; }
.news-detail-body .c-compare td, .news-detail-body .c-compare th { text-align: left; }
.news-detail-body a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .3em; }
.p-article__back { margin-top: var(--space-80); }
/* 記事の題字帯：PC の12列の並べ方（c-page-head__inner）に、日付と分類・タイトルを1列ずつ置く */
@media (min-width: 768px) {
  .p-article__head .c-page-head__inner > * { grid-column: 1 / span 9; }
  .p-article__head .c-page-head__inner { row-gap: var(--space-28); }
}

/* --------------------------------------------------------------
   できることのサービス一覧（service.html）
   1サービス＝番号の平行四辺形（ローズと黒を交互）＋名前・一文・できることの札・別のご依頼。PC は左右互い違い
   -------------------------------------------------------------- */
.p-svclist__title { margin-bottom: var(--space-48); }
.p-svclist__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-ink); }
.p-svclist__row { border-bottom: 1px solid var(--line-ink); }
.p-svclist__item {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "mark name" "text text" "tags tags" "foot foot";
  column-gap: var(--space-20); align-items: center; padding-block: var(--space-40);
}
.p-svclist__mark {
  --ar: .86;
  grid-area: mark; display: grid; place-items: center; aspect-ratio: var(--ar); margin: 0;
  background: var(--hot); color: var(--white);
  font-family: var(--font-num-thin); font-size: 26px; font-weight: 300; letter-spacing: -.02em; line-height: 1;
  clip-path: polygon(0 calc(var(--ar) * var(--tan30) * 100%), 100% 0, 100% calc(100% - var(--ar) * var(--tan30) * 100%), 0 100%);
}
.p-svclist__row:nth-child(even) .p-svclist__mark { background: var(--ink); }
.p-svclist__name { grid-area: name; font-size: var(--fz-h3); font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.p-svclist__text { grid-area: text; margin-top: var(--space-20); font-size: var(--fz-body); line-height: 1.9; }
.p-svclist__tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: var(--space-8); margin: var(--space-20) 0 0; padding: 0; list-style: none; }
.p-svclist__tags li {
  --h: 32px;
  display: flex; align-items: center; min-height: var(--h); padding: 0 calc(var(--h) * .57735 + var(--space-8));
  background: var(--paper-2); font-size: var(--fz-note); font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  clip-path: polygon(calc(var(--h) * .57735) 0, 100% 0, calc(100% - var(--h) * .57735) 100%, 0 100%);
}
.p-svclist__foot { grid-area: foot; margin-top: var(--space-20); }
.p-svclist__note { margin-bottom: var(--space-8); font-size: var(--fz-sub); line-height: 1.8; color: var(--ink-sub); }
.p-svclist__note:last-of-type { margin-bottom: var(--space-20); }
.p-svclist__note a { text-decoration: underline; text-underline-offset: .2em; }
.p-svcinfo__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.p-svcinfo__steps li { display: flex; align-items: baseline; gap: var(--space-10); padding: var(--space-12) 0; border-top: 1px solid var(--line-ink); font-weight: 500; }
.p-svcinfo__steps span { font-family: var(--font-num-thin); font-size: var(--fz-h3); font-weight: 300; color: var(--hot); }
.p-svcinfo__text { margin-top: var(--space-24); }
.p-svcinfo__link { margin-top: var(--space-24); }
@media (min-width: 768px) {
  .p-svclist__title { margin-bottom: var(--space-64); }
  .p-svclist__item {
    grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "mark name" "mark text" "mark tags" "mark foot"; column-gap: var(--space-48); padding-block: var(--space-56);
  }
  .p-svclist__mark { align-self: center; font-size: 56px; }
  .p-svclist__name { font-size: var(--fz-h2); }
  .p-svcinfo__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .p-svclist__item { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: none; column-gap: var(--gutter); }
  .p-svclist__mark { grid-area: 1 / 1 / span 4 / span 3; font-size: clamp(64px, 6vw, 112px); }
  .p-svclist__name { grid-area: 1 / 5 / auto / -1; }
  .p-svclist__text { grid-area: 2 / 5 / auto / -1; }
  .p-svclist__tags { grid-area: 3 / 5 / auto / -1; }
  .p-svclist__foot { grid-area: 4 / 5 / auto / -1; }
  .p-svclist__row:nth-child(even) .p-svclist__mark { grid-area: 1 / 10 / span 4 / -1; }
  .p-svclist__row:nth-child(even) .p-svclist__name { grid-area: 1 / 1 / auto / span 8; }
  .p-svclist__row:nth-child(even) .p-svclist__text { grid-area: 2 / 1 / auto / span 8; }
  .p-svclist__row:nth-child(even) .p-svclist__tags { grid-area: 3 / 1 / auto / span 8; }
  .p-svclist__row:nth-child(even) .p-svclist__foot { grid-area: 4 / 1 / auto / span 8; }
}

/* --------------------------------------------------------------
   ローカルLLMとは（system.html）：言葉の説明・一般的なAIとの違い（図2つ・比較表）・こんな方にも・知っておきたいこと
   表はスマホでは「比べること」の下に2列、768px〜 は3列の表
   -------------------------------------------------------------- */
.p-llm__terms { display: grid; gap: var(--space-12); margin-top: var(--space-48); }
.p-llm__term { padding: var(--space-24) var(--space-20); background: var(--white); }
.p-llm__term-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-4) var(--space-12); font-size: var(--fz-h3); font-weight: 500; line-height: 1.4; }
.p-llm__term-read { font-size: var(--fz-note); font-weight: 500; color: var(--ink-sub); }
.p-llm__term-text { margin-top: var(--space-10); font-size: var(--fz-sub); line-height: 1.8; color: var(--ink-sub); }
.p-llm__block { margin-top: var(--space-48); }
.p-llm__block-title { margin-bottom: var(--space-20); font-size: var(--fz-h3); font-weight: 500; line-height: 1.4; }
.p-llm__figs { display: grid; gap: var(--space-12); margin-top: var(--space-24); }
.p-llm__fig { display: flex; flex-direction: column; margin: 0; padding: var(--space-24) var(--space-20); background: var(--white); }
.p-llm__fig-title { margin-bottom: var(--space-16); font-size: var(--fz-h3); font-weight: 500; line-height: 1.4; }
.p-llm__zone { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); padding: var(--space-12) var(--space-16) var(--space-16); border: 1px solid var(--line); }
.p-llm__zone--out { background: var(--paper-2); border-style: dashed; border-color: var(--gray-8a); }
.p-llm__zone--inside { flex: 1; justify-content: space-between; border: 2px solid var(--hot); }
.p-llm__zone-name { align-self: flex-start; font-size: var(--fz-note); font-weight: 500; color: var(--ink-sub); }
.p-llm__node {
  --h: 40px;
  display: flex; align-items: center; justify-content: center; width: min(100%, 260px); min-height: var(--h); padding: 0 calc(var(--h) * .57735 + var(--space-4));
  background: var(--ink); color: var(--white); font-size: var(--fz-sub); font-weight: 500; line-height: 1.4; text-align: center;
  clip-path: polygon(calc(var(--h) * .57735) 0, 100% 0, calc(100% - var(--h) * .57735) 100%, 0 100%);
}
.p-llm__node--ai { background: var(--hot); }
.p-llm__flow { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-28); align-items: center; width: 100%; min-height: 72px; font-size: var(--fz-note); line-height: 1.5; color: var(--ink-sub); }
.p-llm__flow span:first-child { text-align: right; }
.p-llm__flow::before {
  content: ""; position: absolute; left: calc(50% - 7px); top: var(--space-6); bottom: var(--space-6); width: 14px; background: var(--hot);
  clip-path: polygon(50% 0, 100% 10px, 58% 10px, 58% calc(100% - 10px), 100% calc(100% - 10px), 50% 100%, 0 calc(100% - 10px), 42% calc(100% - 10px), 42% 10px, 0 10px);
}
.p-llm__stop { display: flex; align-items: center; gap: var(--space-10); margin-top: var(--space-16); font-size: var(--fz-sub); font-weight: 500; line-height: 1.5; text-align: center; }
.p-llm__stop::before, .p-llm__stop::after { content: ""; flex: 1; min-width: var(--space-12); border-top: 1px dashed var(--gray-8a); }
.p-llm__fig-note { margin-top: var(--space-16); font-size: var(--fz-sub); line-height: 1.8; color: var(--ink-sub); }
.p-llm__compare { margin-top: var(--space-48); }
.p-llm__end { display: grid; justify-items: start; gap: var(--space-24); margin-top: var(--space-48); }
@media (min-width: 768px) {
  .p-llm__terms { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-64); }
  .p-llm__term { padding: var(--space-32); }
  .p-llm__figs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-32); }
  .p-llm__fig { padding: var(--space-32); }
  .p-llm__compare { margin-top: var(--space-64); }
  .p-llm__block { margin-top: var(--space-64); }
  .p-llm__block-title { margin-bottom: var(--space-32); }
  .p-llm__end { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-48); margin-top: var(--space-64); }
}

/* ==============================================================
   AI導入支援（ai.html）：？のイラスト／無料と有料／得意と不得意／利用ルール／進め方／よくある質問
   ============================================================== */
.p-ai__makers { display: grid; gap: var(--space-12); margin: var(--space-48) 0 0; padding: 0; list-style: none; }
.p-ai__maker { padding: var(--space-24); background: var(--paper-2); }
.p-ai__maker-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-4) var(--space-10); padding-bottom: var(--space-12); border-bottom: 1px solid var(--line-ink); font-family: var(--font-num); font-size: var(--fz-h3); font-weight: 500; line-height: 1.3; }
.p-ai__maker-name small { font-size: var(--fz-note); font-weight: 400; color: var(--ink-sub); }
.p-ai__maker-text { margin-top: var(--space-12); font-size: var(--fz-sub); line-height: 1.8; }
.p-ai__tiers { margin-top: var(--space-48); }
.p-ai__more { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-24); margin-top: var(--space-32); font-weight: 500; line-height: 1.7; }
.p-ai__signal { display: grid; gap: var(--space-12); margin: var(--space-48) 0 0; padding: 0; list-style: none; }
.p-ai__signal-item { --tone: var(--gray-70); padding: var(--space-24); background: var(--white); color: var(--ink); border-top: 6px solid var(--tone); }
.p-ai__signal-item--ok { --tone: var(--gray-22); }
.p-ai__signal-item--check { --tone: var(--gray-9c); }
.p-ai__signal-item--no { --tone: var(--hot); }
.p-ai__signal-name { font-size: var(--fz-h3); font-weight: 500; line-height: 1.4; }
.p-ai__signal-item--no .p-ai__signal-name { color: var(--hot); }
.p-ai__signal-item ul { margin: var(--space-12) 0 0; padding: 0; list-style: none; }
.p-ai__signal-item ul li { position: relative; padding: var(--space-4) 0 var(--space-4) var(--space-20); font-size: var(--fz-sub); line-height: 1.7; }
.p-ai__signal-item ul li::before { content: ""; position: absolute; left: 0; top: .85em; width: 12px; height: 7px; background: var(--tone); clip-path: polygon(0 45%, 100% 0, 100% 55%, 0 100%); }
.p-ai__signal-note { margin-top: var(--space-12); font-size: var(--fz-note); line-height: 1.8; color: var(--ink-mute); }
.p-ai__rules { margin: var(--space-48) 0 0; padding: 0; list-style: none; counter-reset: rule; border-top: 1px solid var(--ink-line); }
.p-ai__rules li { position: relative; counter-increment: rule; padding: var(--space-16) 0 var(--space-16) var(--space-48); border-bottom: 1px solid var(--ink-line); }
.p-ai__rules li::before { content: counter(rule); position: absolute; left: 0; top: var(--space-12); font-family: var(--font-num-thin); font-size: 30px; font-weight: 300; line-height: 1.2; color: var(--accent); }
.p-ai__rule-name { font-size: var(--fz-body); font-weight: 500; line-height: 1.6; }
.p-ai__rule-text { margin-top: var(--space-2); font-size: var(--fz-sub); line-height: 1.8; color: var(--ink-mute); }
.p-ai__source { margin-top: var(--space-24); font-size: var(--fz-note); line-height: 1.9; color: var(--ink-mute); }
.p-ai__source a { text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 768px) {
  .p-ai__tiers, .p-ai__makers, .p-ai__signal, .p-ai__rules { margin-top: var(--space-64); }
  .p-ai__makers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-ai__signal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-ai__rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
}
@media (min-width: 1200px) {
  .p-ai__makers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==============================================================
   保守・ITサポート（maintenance.html）：含まれること／含まれないこと（黒い帯）／プラン／進め方
   ============================================================== */
.p-care__blank { margin-top: var(--space-20); }
.p-care__lead { margin-top: var(--space-24); }
.p-care__note { margin-top: var(--space-16); font-size: var(--fz-sub); line-height: 1.8; color: var(--ink-sub); }
.p-care__dark .c-blank { background: var(--ink-deco-2); color: var(--white-85); }
.p-care__panel { padding: var(--space-24) var(--space-20); background: var(--paper-2); }
.p-care__panel .c-blank { background: var(--paper); }
.p-care__table { width: 100%; border-collapse: collapse; }
.p-care__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.p-care__table tr { display: block; padding-block: var(--space-14); border-top: 1px solid var(--line-ink); }
.p-care__table td { display: block; padding-block: var(--space-4); line-height: 1.9; }
.p-care__table td::before { content: attr(data-label); display: block; font-size: var(--fz-note); letter-spacing: .06em; color: var(--ink-sub); }
.p-care__cost { margin-top: var(--space-24); }
@media (min-width: 768px) {
  .p-care__panel { padding: var(--space-32); }
  .p-care__table thead { position: static; display: table-header-group; width: auto; height: auto; overflow: visible; clip: auto; }
  .p-care__table tr { display: table-row; padding: 0; border: 0; }
  .p-care__table th { padding: 0 var(--space-16) var(--space-12) 0; border-bottom: 1px solid var(--line-ink); font-size: var(--fz-note); font-weight: 500; text-align: left; color: var(--ink-sub); }
  .p-care__table td { display: table-cell; padding: var(--space-16) var(--space-16) var(--space-16) 0; }
  .p-care__table td::before { display: none; }
}

/* ==============================================================
   Web制作（web.html）
   ============================================================== */

/* はじめのご相談 → うかがってみると（平行四辺形の札） */
.p-web__listen { display: grid; gap: var(--space-20); margin-top: var(--space-48); }
.p-web__cap { margin-bottom: var(--space-12); font-size: var(--fz-sub); color: var(--ink-sub); }
.p-web__says { --h: 56px; display: grid; gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.p-web__says li { display: flex; align-items: center; min-height: var(--h); padding: 0 calc(var(--h) * .57735 + var(--space-8)); background: var(--paper-2); font-size: var(--fz-h3); font-weight: 500; line-height: 1.4; letter-spacing: 0; clip-path: polygon(calc(var(--h) * .57735) 0, 100% 0, calc(100% - var(--h) * .57735) 100%, 0 100%); }
.p-web__says--real li { background: var(--hot); color: var(--white); }
.p-web__turn { justify-self: center; font-size: var(--fz-arrow-l); color: var(--accent); rotate: 90deg; }

.p-web__band { margin-top: var(--space-32); }

/* 事例：250 のかたまり */
.p-web__count { position: static; }

/* カードの中のリンク */
.p-web__more .c-cases__item { display: flex; flex-direction: column; align-items: flex-start; }
.p-web__more .c-cases__name { text-wrap: balance; }
.p-web__card-link { margin-top: auto; padding-top: var(--space-16); font-size: var(--fz-sub); }
.p-web__industry { margin-top: var(--space-48); }

@media (min-width: 768px) {
  .p-web__listen { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-32); align-items: center; margin-top: var(--space-64); }
  .p-web__turn { rotate: 0deg; }
  .p-web__industry { margin-top: var(--space-64); }
}
@media (min-width: 1200px) {
  .p-web__says { --h: 72px; }
}


/* ==============================================================
   各種デザインと製作（design.html）
   ============================================================== */
/* 題字帯：ページ名が長いので、スマホでは飾りを小さくしてパンくずに重ねない */
.p-design__head .c-page-head__deco { width: 32vw; }
/* 別々に頼むと／そろえて頼むと */
.p-design__compare { display: grid; gap: var(--space-16); margin-top: var(--space-48); }
.p-design__set { --d: 16px; margin: 0; padding: calc(var(--d) + var(--space-20)) var(--space-20); background: var(--paper-2); clip-path: polygon(0 var(--d), 100% 0, 100% calc(100% - var(--d)), 0 100%); }
.p-design__set--same { background: var(--ink); color: var(--white); }
.p-design__set-title { font-size: var(--fz-h3); font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.p-design__set-text { margin-top: var(--space-4); font-size: var(--fz-sub); line-height: 1.8; color: var(--ink-sub); }
.p-design__set--same .p-design__set-text { color: var(--white-70); }
.p-design__things { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-20) var(--space-12); margin: var(--space-20) 0 0; padding: 0; list-style: none; }
.p-design__thing { display: grid; gap: var(--space-8); justify-items: center; font-size: var(--fz-note); line-height: 1.5; }

/* 名刺・リーフレット・看板の小さな絵（飾り） */
.p-design__stage { --c-face: var(--white); --c-mark: var(--hot); --c-bar: var(--mist-1); display: flex; align-items: center; justify-content: center; width: 100%; height: 72px; }
.p-design__art { position: relative; display: block; flex: none; background-color: var(--c-face); }
.p-design__art i { position: absolute; display: block; background: var(--c-bar); }
.p-design__art i:nth-child(1) { top: 22%; left: 12%; width: 34%; height: 26%; background: var(--c-mark); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.p-design__art i:nth-child(2) { top: 60%; left: 12%; width: 58%; height: 7%; }
.p-design__art i:nth-child(3) { top: 74%; left: 12%; width: 40%; height: 7%; }
.p-design__art--web { height: 100%; aspect-ratio: 16 / 10; }
.p-design__art--web::before { content: ""; position: absolute; inset: 0 0 auto; height: 10%; background: var(--c-bar); }
.p-design__art--card { height: 62%; aspect-ratio: 91 / 55; }
.p-design__art--leaf { height: 84%; aspect-ratio: 297 / 210; background-image: linear-gradient(90deg, transparent calc(33.33% - 1px), var(--c-bar) calc(33.33% - 1px), var(--c-bar) 33.33%, transparent 33.33%, transparent calc(66.66% - 1px), var(--c-bar) calc(66.66% - 1px), var(--c-bar) 66.66%, transparent 66.66%); }
.p-design__art--leaf i:nth-child(1) { left: 72%; width: 22%; }
.p-design__art--leaf i:nth-child(2) { left: 6%; width: 22%; }
.p-design__art--leaf i:nth-child(3) { left: 39%; width: 22%; }
.p-design__art--sign { height: 60%; margin-bottom: 14%; aspect-ratio: 5 / 2; }
.p-design__art--sign::before, .p-design__art--sign::after { content: ""; position: absolute; top: 100%; width: 4%; height: 36%; background: var(--c-bar); }
.p-design__art--sign::before { left: 18%; }
.p-design__art--sign::after { right: 18%; }
.p-design__art--sign i:nth-child(1) { top: 24%; left: 8%; width: 24%; height: 52%; }
.p-design__art--sign i:nth-child(2) { top: 34%; left: 40%; width: 50%; height: 10%; }
.p-design__art--sign i:nth-child(3) { top: 58%; left: 40%; width: 34%; height: 10%; }

/* 別々に頼んだときは、印の形も色も位置も違う */
.p-design__set--apart .p-design__art--web i:nth-child(1) { width: 20%; background: var(--ink); clip-path: none; }
.p-design__set--apart .p-design__art--card i:nth-child(1) { top: 12%; left: 39%; width: 22%; height: 38%; background: var(--ink-mute); clip-path: circle(50%); }
.p-design__set--apart .p-design__art--card i:nth-child(2) { left: 20%; width: 60%; }
.p-design__set--apart .p-design__art--card i:nth-child(3) { left: 30%; width: 40%; }
.p-design__set--apart .p-design__art--leaf i:nth-child(1) { top: 10%; left: 6%; width: 88%; height: 20%; background: var(--ink-sub); clip-path: none; }
.p-design__set--apart .p-design__art--sign i:nth-child(1) { left: auto; right: 8%; width: 18%; height: 56%; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.p-design__set--apart .p-design__art--sign i:nth-child(2) { left: 8%; width: 58%; }
.p-design__set--apart .p-design__art--sign i:nth-child(3) { left: 8%; width: 40%; }

/* 黒い帯：作れるもの */
.p-design__items { display: grid; gap: var(--space-40); margin: var(--space-48) 0 0; padding: 0; list-style: none; }
.p-design__stage--large { --d: 16px; height: 176px; padding: var(--space-36) var(--space-24); background: var(--gray-22); clip-path: polygon(0 var(--d), 100% 0, 100% calc(100% - var(--d)), 0 100%); }
.p-design__name { margin-top: var(--space-20); font-size: var(--fz-h3); font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.p-design__use { margin-top: var(--space-2); font-size: var(--fz-sub); line-height: 1.7; color: var(--rose-soft); }
.p-design__text { margin-top: var(--space-10); font-size: var(--fz-body); line-height: 1.9; letter-spacing: .04em; color: var(--white-85); text-align: justify; line-break: strict; }
.p-design__notes { display: grid; gap: var(--space-8); margin-top: var(--space-40); padding-top: var(--space-24); border-top: 1px solid var(--ink-line); font-size: var(--fz-sub); line-height: 1.8; color: var(--white-70); }

/* 納品までの3つの形 */
.p-design__lead { margin-top: var(--space-24); }
.p-design__lanes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.p-design__lane { display: grid; gap: var(--space-2); padding-block: var(--space-24); border-bottom: 1px solid var(--line); }
.p-design__lane-title { font-size: var(--fz-h3); font-weight: 500; line-height: 1.5; letter-spacing: 0; }

/* ご依頼の場面 */
.p-design__scenes { margin-top: var(--space-48); }
@media (min-width: 768px) {
  .p-design__head .c-page-head__deco { width: 34vw; }
  .p-design__compare { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-64); }
  .p-design__set { --d: 24px; padding: calc(var(--d) + var(--space-28)) var(--space-28); }
  .p-design__stage { height: 92px; }
  .p-design__items { gap: var(--space-32); margin-top: var(--space-64); }
  .p-design__item { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: var(--space-32); }
  .p-design__stage--large { grid-row: 1 / 4; height: 200px; }
  .p-design__name { margin-top: 0; }
  .p-design__scenes { margin-top: var(--space-64); }
}
@media (min-width: 1200px) {
  .p-design__stage { height: 120px; }
  .p-design__thing { font-size: var(--fz-sub); }
  .p-design__items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-40); }
  .p-design__item { display: block; }
  .p-design__stage--large { --d: 24px; height: 260px; padding: var(--space-56) var(--space-40); }
  .p-design__name { margin-top: var(--space-24); }
}


/* ==============================================================
   システム開発（system.html）
   ============================================================== */
/* 業務の流れの例：一つだけローズにして「ここから試す」を見せる */
.p-system__work { margin: var(--space-48) 0 0; padding: var(--space-32) var(--space-20); background: var(--paper-2); }
.p-system__work-title { font-size: var(--fz-sub); font-weight: 500; line-height: 1.6; color: var(--ink-sub); }
.p-system__tasks { display: grid; gap: var(--space-8); margin: var(--space-16) 0 0; padding: 0; list-style: none; }
.p-system__task { --h: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--space-2); min-height: var(--h); padding: 0 calc(var(--h) * .57735 + var(--space-4)); background: var(--white); clip-path: polygon(calc(var(--h) * .57735) 0, 100% 0, calc(100% - var(--h) * .57735) 100%, 0 100%); }
.p-system__task--try { background: var(--hot); color: var(--white); }
.p-system__task-name { font-size: var(--fz-body); font-weight: 500; line-height: 1.4; }
.p-system__task-tag { flex: none; font-size: var(--fz-note); line-height: 1.4; color: var(--ink-sub); }
.p-system__task--try .p-system__task-tag { color: var(--white); }
.p-system__work-note { margin-top: var(--space-16); font-size: var(--fz-sub); line-height: 1.8; color: var(--ink-sub); }
@media (min-width: 768px) {
  .p-system__work { margin-top: var(--space-64); padding: var(--space-40) var(--space-32); }
  .p-system__tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-system__task { --h: 72px; }
}
@media (min-width: 1200px) {
  .p-system__tasks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
}

/* ==============================================================
   ご相談（contact.html）：スマホは 見出し→フォーム→電話と流れ
   1200px〜 は左に見出しと電話と流れ、右にフォーム
   ============================================================== */
.p-contact__layout { display: grid; gap: var(--space-48); }
.p-contact__head .c-text { margin-top: var(--space-24); }
.p-contact__form { min-width: 0; padding: var(--space-28) var(--space-20); background: var(--paper-2); }
.p-contact__group { min-width: 0; margin: 0 0 var(--space-32); padding: 0; border: 0; }
.p-contact__legend { display: block; margin-bottom: var(--space-12); padding: 0; }
.p-contact__choices { display: grid; gap: var(--space-8); padding: 0; list-style: none; }
.p-contact__choice { display: flex; align-items: center; gap: var(--space-12); min-height: 52px; padding: var(--space-10) var(--space-16); border: 1px solid var(--line-ink); background: var(--white); font-size: var(--fz-sub); font-weight: 500; line-height: 1.5; cursor: pointer; }
.p-contact__choice:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.p-contact__choice input { flex: none; width: 18px; height: 18px; margin: 0; border: 1px solid currentColor; border-radius: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.p-contact__choice input:checked { border-color: var(--hot); background: var(--hot); }
.p-contact__choice input:focus-visible { outline: 2px solid var(--line-ink); outline-offset: 3px; }
.p-contact__zip .c-field__input { max-width: 12em; }
.p-contact__zip-status { font-size: var(--fz-note); line-height: 1.7; color: var(--ink-sub); }
.p-contact__zip-status:empty { display: none; }
.p-contact__note { margin-top: var(--space-24); }
.p-contact__submit { margin-top: var(--space-24); border: 0; cursor: pointer; }
.p-contact__submit:disabled { opacity: .5; cursor: wait; }
.p-contact__actions { margin-top: var(--space-32); }
.p-contact__status { margin-top: var(--space-16); padding: var(--space-14) var(--space-16); border: 1px solid var(--ink); background: var(--white); font-size: var(--fz-sub); line-height: 1.8; }
.p-contact__status:empty { display: none; }
.p-contact__side { display: grid; gap: var(--space-40); }
.p-contact__side-title { font-size: var(--fz-h3); font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.p-contact__tel { display: inline-block; margin-top: var(--space-10); font-size: var(--fz-h2); font-weight: 500; line-height: 1.3; letter-spacing: .02em; }
.p-contact__hours { margin-top: var(--space-4); font-size: var(--fz-sub); color: var(--ink-sub); }
.p-contact__flow { margin-top: var(--space-16); padding: 0; list-style: none; counter-reset: contact-flow; border-top: 1px solid var(--line); }
.p-contact__flow-item { position: relative; padding: var(--space-16) 0 var(--space-16) var(--space-32); border-bottom: 1px solid var(--line); counter-increment: contact-flow; }
.p-contact__flow-item::before { content: counter(contact-flow); position: absolute; left: 0; top: var(--space-16); font-size: var(--fz-sub); font-weight: 500; line-height: 1.6; color: var(--hot); }
.p-contact__flow-name { font-size: var(--fz-sub); font-weight: 500; line-height: 1.6; letter-spacing: 0; }
.p-contact__flow-text { margin-top: var(--space-2); font-size: var(--fz-note); line-height: 1.8; color: var(--ink-sub); }
@media (min-width: 768px) {
  .p-contact__layout { gap: var(--space-64); }
  .p-contact__form { padding: var(--space-40); }
  .p-contact__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-contact__choices li:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 奇数のとき、最後の1つは横いっぱい */
  .p-contact__side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-48); }
}
@media (min-width: 1200px) {
  .p-contact__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: var(--space-48) var(--space-80); align-items: start; }
  .p-contact__head { grid-column: 1; grid-row: 1; }
  .p-contact__side { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); }
  .p-contact__form { grid-column: 2; grid-row: 1 / span 2; padding: var(--space-48); }
}

/* --------------------------------------------------------------
   Web制作「仮のサイトで、実際に確認できます」：パソコンとスマホの画面の例（このサイト自身の画面）
   -------------------------------------------------------------- */
.p-web__preview { max-width: var(--measure); margin: var(--space-28) 0 0; }
.p-web__preview-frame { position: relative; padding: 0 12% var(--space-24) 0; }
.p-web__preview-pc { border: 1px solid var(--ink-line); background: var(--ink-deco); }
.p-web__preview-bar { display: flex; align-items: center; gap: var(--space-40); padding: var(--space-6) var(--space-10); background: var(--ink-deco-2); color: var(--white-70); font-size: var(--fz-label); line-height: 1.4; }
.p-web__preview-bar::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--hot); box-shadow: 11px 0 0 var(--white-50), 22px 0 0 var(--white-50); }
.p-web__preview-pc img, .p-web__preview-sp img { display: block; width: 100%; height: auto; }
.p-web__preview-sp { position: absolute; right: 0; bottom: 0; width: 25%; padding: var(--space-4); border: 1px solid var(--white-50); background: var(--ink); }
.p-web__preview-cap { margin-top: var(--space-12); color: var(--white-70); font-size: var(--fz-note); line-height: 1.7; }
@media (min-width: 768px) {
  .p-web__preview { margin-top: var(--space-32); }
}

/* TOP のコラムのカード：写真を使わず、斜めの帯にテーマの言葉を入れる。色は新しい順に 黒→ローズ→灰（_news.py が付ける） */
.p-column__theme--ink { --theme-bg: var(--ink); --theme-fg: var(--white); }
.p-column__theme--rose { --theme-bg: var(--hot); --theme-fg: var(--white); }
.p-column__theme--gray { --theme-bg: var(--gray-d4); --theme-fg: var(--ink); }
.p-column__theme .c-para__shape { background: var(--theme-bg); }
.p-column__word { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--theme-fg); font-size: var(--fz-note); font-weight: 500; line-height: 1.3; letter-spacing: .02em; white-space: nowrap; rotate: -30deg; }
@media (min-width: 768px) {
  .p-column__word { font-size: var(--fz-sub); }
}
@media (min-width: 1200px) {
  .p-column__word { font-size: var(--fz-body); }
}

/* お知らせ・コラムの一覧のページ送り（11件目から news-page2.html ができるときに出る） */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8); margin-top: var(--space-48); }
.pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-12); border: 1px solid var(--line-ink); font-family: var(--font-num); font-size: var(--fz-sub); }
.pagination a:hover { background: var(--paper-2); }
.pagination a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* 各種デザイン「作れるもの」の写真 */
.p-design__photo { margin: var(--space-48) 0 0; }
.p-design__photo img { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
  .p-design__photo { margin-top: var(--space-64); }
}

/* 記事ページ 1200px〜：左に見出し、右に本文の2列で、画面を広く使う（本文は1行52字まで。表は右の列いっぱい） */
@media (min-width: 1200px) {
  .news-detail-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gutter); max-width: none; }
  .news-detail-body > * { grid-column: 2; }
  .news-detail-body > h2 { grid-column: 1; margin-top: var(--space-72); }
  .news-detail-body > h2 + * { margin-top: var(--space-72); }
  .news-detail-body > p, .news-detail-body > ul { max-width: calc(var(--fz-body) * 1.04 * 52); }
  .p-article__back { margin-left: calc((100% - var(--gutter)) / 3 + var(--gutter)); }
}
