/*
  仕事向けの自己紹介サイト（works.mitsu-hp.com）の見た目（v2・2026-11-24）
  主題: 「表（Excel）が、使える道具に変わる」。方眼・セル番地の小見出し・等幅の数字を、静かな飾りとして全体に通す
  色: AI 配色 030「ソルトマリン」の 5 色と白、#173E55 の不透明度違い（影も）、濃い地の上の白の不透明度違いだけ
  動き: 表紙の読み込みのときだけ（CSS だけ・1 秒以内）。prefers-reduced-motion では動かさない。動きが止まっても全部見える
*/
:root {
  --paper: #FAFCF9;   /* ページの地 */
  --mist: #DAE9E8;    /* 帯・カード・札の地・方眼の線 */
  --line: #86BFC8;    /* 細い線・枠・飾り */
  --accent: #2E8396;  /* 差し色（セル番地の英字・番号・枠線・稼働中の札） */
  --ink: #173E55;     /* 文字・見出し・主ボタン・濃い地 */
  --white: #FFFFFF;
  --muted: rgba(23, 62, 85, 0.78); /* 薄い字 */
  --shade: rgba(23, 62, 85, 0.14);
  --clear: rgba(23, 62, 85, 0);     /* 透明（方眼の線の間） */
  --on-dark-line: rgba(255, 255, 255, 0.22);
  --on-dark-grid: rgba(255, 255, 255, 0.06);
  --on-dark-clear: rgba(255, 255, 255, 0);
  --f-head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Noto Sans JP", "Yu Gothic", sans-serif;
  --grid: linear-gradient(to right, var(--mist) 1px, var(--clear) 1px), linear-gradient(to bottom, var(--mist) 1px, var(--clear) 1px);
  --grid-dark: linear-gradient(to right, var(--on-dark-grid) 1px, var(--on-dark-clear) 1px), linear-gradient(to bottom, var(--on-dark-grid) 1px, var(--on-dark-clear) 1px);
  --header-h: 64px;
  --pad: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.03em;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; font-feature-settings: "palt"; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.32em; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-footer :focus-visible, .section-numbers :focus-visible { outline-color: var(--white); }

/* 折れては困る塊（番号＋単位・英字＋助詞・会社名） */
.nw { white-space: nowrap; }
/* 札の間の「・」「。」：文としては残し、見た目は札の区切りで表す */
.sep { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(1120px + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- ボタン（乗せると少し浮く・押すと少し沈む） ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 56px; max-width: 100%; padding: 12px 24px;
  border: 1px solid var(--ink); border-radius: 3px;
  background: var(--ink); color: var(--white);
  box-shadow: 0 1px 2px var(--shade);
  font-family: var(--f-head); font-size: 15.5px; font-weight: 700; line-height: 1.6; letter-spacing: 0.06em;
  text-align: left; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(23, 62, 85, 0.2); }
.button:active { transform: translateY(1px); box-shadow: 0 0 0 rgba(23, 62, 85, 0); }
.button-outline { border-color: var(--ink); background: var(--white); color: var(--ink); }
.button-outline:hover { border-color: var(--accent); }
.button-arrow { flex: none; font-family: var(--f-mono); font-size: 16px; font-weight: 500; line-height: 1; }
.button-small { min-height: 44px; gap: 12px; padding: 8px 16px; font-size: 14px; }

/* 小さな文字のリンク */
.text-link { font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); }
.text-link:hover { text-decoration-color: var(--accent); }
.link-arrow { display: inline-block; margin-left: 0.4em; color: var(--accent); font-family: var(--f-mono); text-decoration: none; }

/* ---------- 上の帯 ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; max-width: calc(1120px + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.brand { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.3; text-decoration: none; }
.brand-name { font-family: var(--f-head); font-size: 18px; font-weight: 700; letter-spacing: 0.12em; white-space: nowrap; }
.brand-caption { display: none; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.header-nav { display: none; }

/* ---------- 節の見出し（セル番地 → 日本語の見出し → 一言） ---------- */
.section { padding-block: 72px; }
.section-head { margin-bottom: 40px; }
.cell { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--accent); font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; line-height: 1.4; letter-spacing: 0.18em; }
.cell-ref { flex: none; padding: 3px 8px 2px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); color: var(--ink); letter-spacing: 0.06em; }
.cell-name { flex: none; white-space: nowrap; }
.cell::after { content: ""; flex: 1 1 24px; min-width: 24px; height: 1px; background: var(--line); }
h2 { font-size: 28px; line-height: 1.45; letter-spacing: 0.03em; }
.section-lead { margin-top: 20px; color: var(--muted); }

/* ================= 表紙 ================= */
.hero { position: relative; padding-block: 36px 64px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grid); background-size: 24px 24px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 78%, rgba(23, 62, 85, 1) 20%, rgba(23, 62, 85, 0) 100%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 78%, rgba(23, 62, 85, 1) 20%, rgba(23, 62, 85, 0) 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero-copy { min-width: 0; }
.hero-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.hero-name { font-family: var(--f-head); font-size: 17px; font-weight: 700; letter-spacing: 0.12em; white-space: nowrap; }
.hero-role { color: var(--muted); font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.04em; }
.hero h1 { margin-top: 22px; font-size: 30px; font-weight: 900; line-height: 1.4; letter-spacing: 0.02em; }
.hero-mark { background: linear-gradient(to top, var(--mist) 0.34em, var(--clear) 0.34em); }
.hero-lead { margin-top: 20px; color: var(--muted); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.hero-cw { margin-top: 16px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-points li { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 4px 12px 4px 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); font-size: 13px; line-height: 1.7; }
.hero-points li::before { content: ""; flex: none; width: 10px; height: 5px; margin-top: -3px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* 表紙の絵：表の切れ端 → ブラウザの管理画面 → お客様のスマホ */
.hero-art { min-width: 0; }
.art-stage { position: relative; container-type: inline-size; padding: 15% 0 13% 0; }
.art-sheet { position: absolute; top: 2%; left: 3%; z-index: 0; width: 76%; opacity: 0.55; transform: rotate(-3deg); transform-origin: 0 0; }
.art-sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--white); box-shadow: 0 10px 24px rgba(23, 62, 85, 0.12); font-family: var(--f-mono); font-size: clamp(7px, 2.3cqi, 12.5px); line-height: 1.25; letter-spacing: 0; }
.art-sheet th, .art-sheet td { height: 2.15em; padding: 0 0.6em; border: 1px solid var(--line); overflow: hidden; white-space: nowrap; text-align: left; font-weight: 400; }
.art-sheet tr:first-child th { background: var(--mist); text-align: center; font-weight: 500; }
.art-sheet th:first-child { width: 9%; background: var(--mist); text-align: center; font-weight: 500; }
.art-sheet td:nth-child(3) { width: 17%; }
.art-sheet .sheet-head { font-family: var(--f-body); font-weight: 500; }
.art-sheet .sheet-num { text-align: right; }
.art-sheet td:nth-child(4), .art-sheet td:nth-child(5) { font-family: var(--f-body); }
.art-sheet .sheet-dup { position: relative; border: 3px double var(--accent); font-weight: 500; }
.art-arrow { display: none; }
.browser-bar { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 10px; border-bottom: 1px solid var(--mist); background: var(--paper); }
.browser-dots { display: flex; flex: none; gap: 5px; }
.browser-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.browser-url { flex: 1 1 auto; min-width: 0; max-width: 300px; padding: 0 10px; border: 1px solid var(--mist); border-radius: 999px; background: var(--white); color: var(--muted); font-family: var(--f-mono); font-size: 10px; line-height: 16px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-browser { position: relative; z-index: 2; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); box-shadow: 0 24px 48px rgba(23, 62, 85, 0.18), 0 4px 12px rgba(23, 62, 85, 0.08); }
.art-phone { position: absolute; right: 3%; bottom: 0; z-index: 3; width: 26%; padding: 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 18px 36px rgba(23, 62, 85, 0.24), 0 3px 8px rgba(23, 62, 85, 0.1); }
.art-phone img { border-radius: 12px; }
.hero-caption { margin-top: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.hero-caption::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--accent); }

/* 表紙の読み込みのときの動き（左の文が上から順に・絵は 表 → ブラウザ → スマホ の順。合計 1 秒以内） */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes rise-sheet { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } }
@keyframes fade { from { opacity: 0; } }
.hero-copy > * { animation: rise 0.5s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.hero-copy > :nth-child(6) { animation-delay: 0.4s; }
.art-sheet { animation: rise-sheet 0.55s var(--ease) 0.15s both; }
.art-browser { animation: rise 0.55s var(--ease) 0.3s both; }
.art-phone { animation: rise 0.5s var(--ease) 0.45s both; }
.art-arrow { animation: fade 0.4s ease 0.55s both; }
.hero-caption { animation: fade 0.4s ease 0.55s both; }

/* ================= お悩み ================= */
.section-problem { background-color: var(--white); background-image: var(--grid); background-size: 24px 24px; background-position: center top; }
.problems { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.problem { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: start; gap: 0 12px; padding: 20px 18px; background: var(--white); }
.problem-box { width: 18px; height: 18px; margin-top: 6px; border: 1.5px solid var(--ink); border-radius: 2px; }
.problem-no { margin-top: 3px; color: var(--accent); font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.problem p { font-size: 16px; font-weight: 500; line-height: 1.75; }
.problem-close { margin-top: 48px; font-family: var(--f-head); font-size: 23px; font-weight: 900; line-height: 1.6; letter-spacing: 0.03em; text-align: center; font-feature-settings: "palt"; }
.problem-close::after { content: ""; display: block; width: 56px; height: 3px; margin: 18px auto 0; background: var(--accent); }

/* ================= できること ================= */
.section-service { background: var(--mist); }
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.service { display: flex; flex-direction: column; min-width: 0; }
.service-tab { position: relative; z-index: 1; align-self: flex-start; margin-bottom: -1px; padding: 6px 16px 5px; border: 1px solid var(--line); border-bottom-color: var(--white); border-radius: 3px 3px 0 0; background: var(--white); font-family: var(--f-mono); font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: 0.04em; transition: border-color 0.2s ease; }
.service-card { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; padding: 28px 22px 30px; border: 1px solid var(--line); border-radius: 0 3px 3px 3px; background: var(--white); transition: border-color 0.2s ease; }
.service:hover .service-card, .service:hover .service-tab { border-color: var(--accent); }
.service:hover .service-tab { border-bottom-color: var(--white); }
.service-icon { position: absolute; top: 24px; right: 22px; width: 40px; height: 40px; color: var(--accent); }
.service h3 { padding-right: 52px; font-size: 24px; line-height: 1.45; letter-spacing: 0.05em; }
.service-text { margin-top: 14px; color: var(--muted); font-size: 15px; }
.service-note { margin-top: 12px; padding: 10px 0 10px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.8; }
.service-eg { margin-top: auto; padding-top: 24px; }
.eg-label { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; }
.eg-list { margin-top: 8px; }
.eg-list li { position: relative; padding-left: 1.7em; font-size: 14.5px; line-height: 1.95; }
.eg-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-family: var(--f-mono); }
/* 3 枚目（ホームページ）は少し控えめに */
.service-quiet .service-tab { border-bottom-color: var(--mist); background: var(--mist); }
.service-quiet:hover .service-tab { border-bottom-color: var(--mist); }
.service-quiet .service-card { background: none; }
.service-quiet h3 { font-size: 21px; }
.service-quiet .service-icon { width: 34px; height: 34px; color: var(--line); }

/* ================= 数字（濃い帯に方眼） ================= */
.section-numbers { background-color: var(--ink); background-image: var(--grid-dark); background-size: 24px 24px; background-position: center top; color: var(--white); }
.section-numbers .cell { color: var(--line); }
.section-numbers .cell-ref { border-color: var(--on-dark-line); background: none; color: var(--white); }
.section-numbers .cell::after { background: var(--on-dark-line); }
.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--on-dark-line); }
.number { min-width: 0; padding: 26px 0 26px 16px; border-bottom: 1px solid var(--on-dark-line); }
.number:nth-child(odd) { padding-right: 16px; padding-left: 0; border-right: 1px solid var(--on-dark-line); }
.number-value { font-family: var(--f-mono); line-height: 1; white-space: nowrap; }
.num { font-size: clamp(42px, 12.5vw, 72px); font-weight: 500; letter-spacing: -0.03em; }
.unit { margin-left: -0.15em; color: rgba(255, 255, 255, 0.86); font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
.unit-pre { margin-right: -0.15em; margin-left: 0; }
.number-text { margin-top: 14px; color: var(--mist); font-size: 14px; line-height: 1.75; }
.numbers-note { margin-top: 20px; color: rgba(255, 255, 255, 0.72); font-size: 12.5px; text-align: right; }

/* ================= 事例 ================= */
.section-case { background: var(--paper); }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.case-art { min-width: 0; }
.case-stage { position: relative; padding: 22px 18% 40px 20px; border-radius: 3px; background-color: var(--ink); background-image: var(--grid-dark); background-size: 24px 24px; }
.case-browser { position: relative; overflow: hidden; border-radius: 5px; background: var(--white); box-shadow: 0 18px 40px rgba(23, 62, 85, 0.5); }
.case-phone { position: absolute; right: 16px; bottom: 16px; width: 27%; padding: 4px; border-radius: 14px; background: var(--white); box-shadow: 0 18px 36px rgba(23, 62, 85, 0.45); }
.case-phone img { border-radius: 10px; }
.case-copy { min-width: 0; }
.case-title { font-size: 19px; line-height: 1.6; letter-spacing: 0.04em; }
.case-catch { margin-top: 12px; font-family: var(--f-head); font-size: 25px; font-weight: 900; line-height: 1.5; letter-spacing: 0.02em; font-feature-settings: "palt"; }
.case-block { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.case-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 12px; line-height: 1.5; }
.tag { padding: 2px 10px 1px; border: 1px solid var(--ink); border-radius: 2px; font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; }
.tag-strong { background: var(--ink); color: var(--white); }
.tag-note { color: var(--muted); font-size: 13px; }
.case-list li { position: relative; padding-left: 1.8em; line-height: 1.8; }
.case-list li + li { margin-top: 6px; }
.case-before li { color: var(--muted); }
.case-before li::before { content: "—"; position: absolute; left: 0; color: var(--line); font-family: var(--f-mono); }
.case-after li { font-weight: 500; }
.case-after li::before { content: ""; position: absolute; top: 0.62em; left: 0.15em; width: 0.8em; height: 0.42em; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.case-made { font-weight: 500; }
.case-tech { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.85; }
.case-button { margin-top: 24px; }

/* ================= 実績 ================= */
.section-works { background: var(--white); }
.work-group + .work-group { margin-top: 64px; }
.group-title { font-size: 20px; line-height: 1.5; letter-spacing: 0.05em; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.group-note { color: var(--muted); font-size: 14px; }
.work-group > .group-title, .group-head { margin-bottom: 20px; }

/* 札（技術・時期・状態） */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 1px 8px; border: 1px solid var(--mist); border-radius: 2px; background: var(--mist); font-family: var(--f-mono); font-size: 12px; line-height: 1.8; letter-spacing: 0.02em; }
.chip-time { border-color: var(--line); background: var(--white); }
.chip-status { border-color: var(--accent); background: var(--white); font-weight: 500; }
.chip-status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chip-paused { border-color: var(--line); }
.chip-paused::before { background: var(--line); }
.url { font-family: var(--f-mono); font-size: 12.5px; text-decoration-color: var(--line); }
.url:hover { text-decoration-color: var(--accent); }

/* 有償の仕事（1 件）：お店 4 件の画面 */
.paid-work { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 22px; border-top: 2px solid var(--ink); }
.ledger-title { display: flex; align-items: baseline; gap: 12px; }
.ledger-no { flex: none; min-width: 26px; color: var(--accent); font-family: var(--f-mono); font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; text-align: right; white-space: nowrap; }
.paid-info h4 { font-size: 20px; line-height: 1.55; letter-spacing: 0.03em; }
.paid-text { margin-top: 12px; color: var(--muted); font-size: 15px; }
.paid-info .chips { margin-top: 16px; }
.shop-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.shop { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.shop-shot { display: block; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color 0.2s ease, transform 0.2s ease; }
.shop-shot img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; object-position: top; border-radius: 8px; }
.shop-kind { margin-top: 12px; color: var(--muted); font-family: var(--f-mono); font-size: 11.5px; line-height: 1.6; letter-spacing: 0.06em; }
.shop-name { margin-top: 2px; font-family: var(--f-head); font-size: 15px; font-weight: 700; line-height: 1.55; }
.shop-text { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.shop:hover .shop-shot { border-color: var(--accent); transform: translateY(-2px); }
.shop:hover .shop-name { text-decoration: underline; text-decoration-color: var(--accent); }
.work-note { padding: 14px 16px; border-left: 2px solid var(--line); background: var(--paper); color: var(--muted); font-size: 13.5px; line-height: 1.85; }

/* 業務委託先 2〜4・自分用 5〜10：帳票のような行の並び */
.ledger { border-top: 2px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 12px; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.ledger-row > .ledger-no { grid-row: span 2; }
.ledger-main { min-width: 0; }
.ledger-main h4 { font-size: 17px; line-height: 1.6; letter-spacing: 0.03em; }
.ledger-main p { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.ledger-row > .chips, .ledger-side { grid-column: 2; min-width: 0; margin-top: 12px; }
.ledger-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ledger-row-case { margin-inline: -12px; padding-inline: 12px; background: var(--mist); }
.own-note { margin-top: 20px; color: var(--muted); font-size: 13.5px; }

/* ================= 頼んでいただく理由 ================= */
.section-reason { background: var(--paper); }
.reason-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.reason { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 26px 0 30px; border-top: 1px solid var(--line); }
.reason::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--accent); }
.reason-no { color: var(--accent); font-family: var(--f-mono); font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.reason h3 { margin-bottom: 10px; font-size: 20px; line-height: 1.55; letter-spacing: 0.03em; }
.reason p { color: var(--muted); }

/* ================= 進め方 ================= */
.section-flow { background: var(--mist); }
.flow-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.flow-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding-bottom: 34px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before { content: ""; position: absolute; top: 48px; bottom: 0; left: 24px; width: 1px; background: var(--line); }
.flow-step:last-child::before { display: none; }
.flow-no { position: relative; z-index: 1; grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--accent); border-radius: 50%; background: var(--white); color: var(--accent); font-family: var(--f-mono); font-size: 18px; font-weight: 500; line-height: 1; }
.flow-step h3 { margin-top: 9px; font-size: 19px; line-height: 1.55; letter-spacing: 0.04em; }
.flow-step p { margin-top: 6px; color: var(--muted); }

/* ================= 料金の目安 ================= */
.section-price { background: var(--paper); }
.price-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 32px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 3px; background: var(--white); }
.price-card h3 { font-size: 19px; line-height: 1.6; letter-spacing: 0.03em; }
.price { font-family: var(--f-head); font-size: 20px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.price-num { font-family: var(--f-mono); font-size: clamp(40px, 11vw, 72px); font-weight: 500; letter-spacing: -0.06em; }
.price-note { color: var(--muted); }

/* ================= 私について ================= */
.section-profile { background: var(--white); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.profile-block { min-width: 0; }
.sub-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 20px; line-height: 1.5; letter-spacing: 0.06em; }
.sub-title::before { content: ""; flex: none; width: 10px; height: 10px; border: 1.5px solid var(--accent); border-radius: 1px; }
.career li { position: relative; padding: 0 0 30px 32px; }
.career li:last-child { padding-bottom: 0; }
.career li::before { content: ""; position: absolute; top: 9px; left: 0; z-index: 1; width: 11px; height: 11px; border: 2px solid var(--accent); border-radius: 50%; background: var(--white); }
.career li::after { content: ""; position: absolute; top: 9px; bottom: -9px; left: 5px; width: 1px; background: var(--line); }
.career li:last-child::after { bottom: 0; }
.career h4 { font-size: 17px; line-height: 1.6; letter-spacing: 0.03em; }
.career p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.info { border-top: 2px solid var(--ink); }
.info > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info dt { font-family: var(--f-head); font-size: 15px; font-weight: 700; }
.info dd { min-width: 0; }
.tech { margin-top: 56px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list li { max-width: 100%; padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); font-size: 14px; line-height: 1.7; }
.tech-name { font-family: var(--f-head); font-weight: 700; }
.tech-detail { color: var(--muted); }

/* ================= よくある質問 ================= */
.section-faq { background: var(--mist); }
.faq-list { min-width: 0; border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; gap: 12px; align-items: start; padding: 20px 0; font-family: var(--f-head); font-size: 17px; font-weight: 700; line-height: 1.65; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; width: 14px; height: 14px; margin-top: 7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
}
.faq-list details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat; }
.faq-mark { color: var(--accent); font-family: var(--f-mono); font-size: 18px; font-weight: 500; line-height: 1.55; }
.faq-a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 0 0 24px; }
.faq-a .faq-mark { color: var(--muted); }
.faq-a p { color: var(--muted); }

/* ================= ご相談 ================= */
.section-contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.contact-form { min-width: 0; }
.field { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.field-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 10px; padding: 0; font-family: var(--f-head); font-size: 15px; font-weight: 700; line-height: 1.6; }
.req { padding: 0 8px; border-radius: 2px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; line-height: 1.8; letter-spacing: 0.08em; }
.opt { color: var(--muted); font-family: var(--f-body); font-size: 13px; font-weight: 400; }
.input { display: block; width: 100%; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); font-size: 16px; line-height: 1.7; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
textarea.input { min-height: 200px; resize: vertical; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 62, 85, 0.14); }
/* ご相談の種類：狭い幅は 1 列、ふつうのスマホは 2×2、フォームが広いときは 4 つ横並び */
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 360px) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 999px), (min-width: 1200px) { .choices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choice { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); font-size: 15px; line-height: 1.5; cursor: pointer; }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--mist); font-weight: 500; }
.form-purpose { margin: 4px 0 20px; color: var(--muted); font-size: 14px; }
.form-purpose a { color: var(--ink); font-weight: 500; text-decoration-color: var(--accent); }
.submit { width: 100%; min-height: 60px; justify-content: center; gap: 16px; font-size: 16px; }
.contact-aside { align-self: start; min-width: 0; padding: 26px 20px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 3px; background: var(--white); }
.contact-reply { margin-bottom: 22px; font-family: var(--f-head); font-size: 20px; font-weight: 700; line-height: 1.6; letter-spacing: 0.04em; }
.contact-aside .button { width: 100%; }

/* ================= フッター ================= */
.site-footer { padding-block: 48px; background-color: var(--ink); background-image: var(--grid-dark); background-size: 24px 24px; color: var(--white); }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand { font-family: var(--f-head); font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: 0.12em; }
.footer-brand a { text-decoration: none; }
.footer-link { font-size: 14px; }
.footer-copy { color: rgba(255, 255, 255, 0.78); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; }

/* ================= 別ページ（プライバシーポリシー・送ったあと・見つからない） ================= */
.page-main { position: relative; padding-block: 48px 80px; }
.page-main::before, .message-main::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 280px; pointer-events: none;
  background-image: var(--grid); background-size: 24px 24px; background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, rgba(23, 62, 85, 1), rgba(23, 62, 85, 0));
  mask-image: linear-gradient(to bottom, rgba(23, 62, 85, 1), rgba(23, 62, 85, 0));
}
.page-main .container, .message-main .container { position: relative; }
.page-main h1 { margin-bottom: 36px; font-size: 30px; font-weight: 900; line-height: 1.45; letter-spacing: 0.03em; }
.page-main h1::after, .message-main h1::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 18px; background: var(--accent); }
.policy { border-top: 2px solid var(--ink); }
.policy > div { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.policy dt { font-family: var(--f-head); font-size: 16px; font-weight: 700; }
.policy dd { min-width: 0; }
.page-main .button { margin-top: 40px; }
.message-main { position: relative; display: flex; align-items: center; min-height: calc(100vh - var(--header-h) - 160px); padding-block: 72px; }
.message-main .container { max-width: calc(760px + var(--pad) * 2); }
.message-code { color: var(--line); font-family: var(--f-mono); font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.message-main h1 { margin-top: 20px; font-size: 28px; font-weight: 900; line-height: 1.5; letter-spacing: 0.03em; }
.message-main h1:first-child { margin-top: 0; }
.message-main p:not(.message-code) { margin-top: 18px; }
.message-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ================= 幅 600px 以上 ================= */
@media (min-width: 600px) {
  .hero h1 { max-width: 15em; font-size: 38px; line-height: 1.38; }
  .hero-lead { max-width: 36em; }
  .hero-art { width: 100%; max-width: 680px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .art-stage { padding: 19% 7% 9% 9%; }
  .art-sheet { top: 1%; left: 0; width: 60%; }
  .art-arrow { display: block; position: absolute; top: 4%; left: 61%; z-index: 1; width: 21%; color: var(--accent); }
  .art-phone { right: 0; width: 23%; padding: 5px; border-radius: 20px; }
  .art-phone img { border-radius: 15px; }
  .browser-bar { height: 30px; padding: 0 12px; }
  .browser-dots i { width: 8px; height: 8px; }
  .browser-url { font-size: 11px; line-height: 18px; }
  .problem { padding: 24px 24px; }
  .shop-list { gap: 32px 20px; }
  .info > div { grid-template-columns: 9em minmax(0, 1fr); gap: 24px; }
  .policy > div { grid-template-columns: 15em minmax(0, 1fr); gap: 32px; }
  .footer-inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
  .footer-brand { margin-right: auto; }
  .case-stage { padding: 32px 20% 56px 32px; }
  .case-phone { right: 32px; bottom: 28px; width: 25%; padding: 5px; border-radius: 18px; }
  .case-phone img { border-radius: 13px; }
}

/* ================= 幅 768px 以上 ================= */
@media (min-width: 768px) {
  .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem { padding: 28px 30px; }
  .problem p { font-size: 17px; }
  .reason-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
  .shop-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
  .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  .number, .number:nth-child(odd) { padding: 8px 24px 10px; border-bottom: 0; border-right: 0; border-left: 1px solid var(--on-dark-line); }
  .number:last-child { border-right: 1px solid var(--on-dark-line); }
  .num { font-size: clamp(48px, 6vw, 72px); }
  .unit { font-size: 16px; }
  .number-text { margin-top: 18px; font-size: 14.5px; }
  .ledger-row { grid-template-columns: 32px minmax(0, 1fr); gap: 0 20px; }
  .ledger-no { min-width: 32px; font-size: 22px; }
}

/* ================= 幅 860px 以上（パソコン） ================= */
@media (min-width: 860px) {
  :root { --header-h: 76px; --pad: 40px; }
  .brand-caption { display: block; }
  .header-nav { display: flex; gap: 18px; }
  .header-nav a { font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
  .header-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
  .section { padding-block: 112px; }
  .section-head { margin-bottom: 56px; }
  /* 見出しと一言を左右に。セル番地の線は全幅のまま */
  .section-head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: end; }
  .section-head-split > div { display: contents; }
  .section-head-split .cell { grid-column: 1 / -1; }
  .section-head-split h2 { grid-column: 1; }
  .section-head-split .section-lead { grid-column: 2; grid-row: 2; margin-top: 0; }
  .cell { margin-bottom: 22px; font-size: 13px; }
  h2 { font-size: 40px; line-height: 1.4; }

  .problem-close { margin-top: 72px; font-size: 32px; }

  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .service-card { padding: 36px 30px 36px; }
  .service-icon { top: 32px; right: 28px; }
  .service h3 { font-size: 26px; }
  .service-quiet h3 { font-size: 22px; }

  .case-grid { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: 56px; align-items: start; }
  .case-stage { padding: 40px 15% 76px 40px; }
  .case-phone { right: 36px; bottom: 32px; width: 27%; padding: 6px; border-radius: 22px; }
  .case-phone img { border-radius: 16px; }
  .case-block { margin-top: 24px; padding-top: 18px; }
  .case-copy { grid-column: 1; grid-row: 1; }
  .case-art { position: sticky; top: calc(var(--header-h) + 32px); grid-column: 2; grid-row: 1; }
  .case-title { font-size: 20px; }
  .case-catch { font-size: 30px; }

  .work-group + .work-group { margin-top: 80px; }
  .group-title { font-size: 22px; }
  .ledger-row { grid-template-columns: 32px minmax(0, 1fr) minmax(0, 16rem); gap: 0 28px; padding: 26px 0 28px; }
  .ledger-main p { max-width: 46em; }
  .ledger-row > .ledger-no { grid-row: auto; }
  .ledger-row > .chips, .ledger-side { grid-column: 3; grid-row: 1; align-self: start; margin-top: 4px; }
  .ledger-side { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ledger-row-case { margin-inline: -20px; padding-inline: 20px; }
  .ledger-main h4 { font-size: 18px; }
  .ledger-main p { font-size: 15px; }

  .reason { grid-template-columns: 64px minmax(0, 1fr); padding: 34px 0 42px; }
  .reason-no { font-size: 34px; }
  .reason h3 { font-size: 22px; }

  .flow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
  .flow-step { display: block; padding: 0; }
  .flow-step::before { top: 24px; right: -40px; bottom: auto; left: 64px; width: auto; height: 1px; }
  .flow-step:nth-child(3n)::before { right: 0; }
  .flow-step:last-child::before { display: block; }
  .flow-step h3 { margin-top: 22px; font-size: 21px; }
  .flow-step p { margin-top: 8px; }

  .price-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 12px 64px; align-items: center; padding: 52px 60px; }
  .price-card h3 { grid-column: 1; font-size: 22px; }
  .price-note { grid-column: 1; grid-row: 2; }
  .price { grid-column: 2; grid-row: 1 / span 2; padding-left: 64px; border-left: 1px solid var(--line); }

  .profile-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 80px; }
  .tech { margin-top: 72px; }

  .faq-grid { display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr); gap: 48px; align-items: start; }
  .faq-list summary { gap: 16px; padding: 26px 0; font-size: 18px; }
  .faq-a { gap: 16px; padding: 0 32px 28px 0; }

  .contact-aside { padding: 36px 30px; }
  .site-footer { padding-block: 56px; }
  .page-main { padding-block: 88px 120px; }
  .page-main h1 { margin-bottom: 52px; font-size: 42px; }
  .message-main h1 { font-size: 36px; }
  .message-code { font-size: 88px; }
}

/* ================= 幅 1000px 以上（表紙を 2 列・ヘッダーのリンク・相談 2 列） ================= */
@media (min-width: 1000px) {
  .header-nav { gap: 26px; }

  .hero { padding-block: 60px 76px; }
  .hero::before {
    -webkit-mask-image: radial-gradient(ellipse 60% 75% at 74% 50%, rgba(23, 62, 85, 1) 25%, rgba(23, 62, 85, 0) 100%);
    mask-image: radial-gradient(ellipse 60% 75% at 74% 50%, rgba(23, 62, 85, 1) 25%, rgba(23, 62, 85, 0) 100%);
  }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; }
  .hero-art { width: auto; max-width: none; }
  .hero h1 { margin-top: 26px; font-size: clamp(40px, 2.3vw + 14px, 48px); line-height: 1.35; }
  .hero-lead { margin-top: 24px; font-size: 15.5px; }
  .hero-actions { margin-top: 34px; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-points { margin-top: 28px; }
  .hero-art { margin-right: -8px; }

  .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 72px; }
}

/* ================= 幅 1200px 以上（お店 4 件は文の横に小さく） ================= */
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; }
  .paid-work { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; padding-top: 28px; }
  .paid-info { grid-row: 1 / span 2; }
  .shop-list { grid-column: 2; gap: 20px; }
  .work-note { grid-column: 2; }
  .hero-art { margin-right: -24px; }
}

/* 動きを減らす設定のときは動かさない（最終の状態がそのまま見える） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 表紙の見出しを 3 行に固定し、左の列の幅に合わせて字の大きさを決める（2026-11-24 Claude の確かめで直した。「小さな／アプリ」と言葉の途中で折れていたため）
   いちばん長い行「業務を、小さなアプリと」は約 11.2 字分。8.6cqi × 11.2 ≒ 列の幅の 96% */
.hero-copy { container-type: inline-size; }
.hero h1 .h1-line { display: block; white-space: nowrap; }
.hero h1 { font-size: clamp(22px, 7.2vw, 30px); font-size: min(50px, 8.6cqi); }
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); }
}


/* 2 回目の初見の見直しを受けた直し（2026-11-24 Claude）
   本文の薄い字が淡い地で読みにくい → 濃くする／断り書きを目立たせる／時期は札でなく文字に／使う技術は 2 列の表に／5 の行の幅をほかとそろえる */
:root { --muted: rgba(23, 62, 85, 0.88); }
.service-price { margin-top: 14px; font-size: 14px; font-weight: 500; }
.service-price a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.service-price a:hover { text-decoration-color: var(--accent); }
.case-tech { font-size: 14.5px; }
.case-disclaimer { color: var(--ink); font-weight: 700; }
.case-tech-note { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.numbers-note { line-height: 1.8; }
.chip-time { padding-inline: 2px; border-color: rgba(23, 62, 85, 0); background: rgba(23, 62, 85, 0); color: var(--muted); }
.shop-url { display: block; margin-top: 6px; color: var(--accent); font-family: var(--f-mono); font-size: 11.5px; line-height: 1.6; letter-spacing: 0.02em; word-break: break-all; }
.tech-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.tech-list li { padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(23, 62, 85, 0); }
.tech-name { display: block; }
.tech-detail { display: block; margin-top: 2px; font-size: 13.5px; }
@media (min-width: 768px) {
  .tech-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}
.ledger-row-case { margin-inline: 0 !important; padding-inline: 12px !important; }
