*, *::before, *::after { box-sizing: border-box; }

/* 方向：小さな制作事務所の見積書。白・墨・朱 1 色。構造は罫線と余白で見せる */
:root {
  --paper: #ffffff;
  --paper-alt: #f6f5f1;
  --ink: #1d1c1a;
  --ink-2: #4a4843;
  --ink-3: #6b6861;
  --line: rgba(29, 28, 26, .14);
  --line-strong: rgba(29, 28, 26, .72);
  --accent: #b0432a;
  --accent-ink: #973823;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-feature-settings: "palt" 0;
}

h1, h2, h3 { line-height: 1.4; margin: 0; font-weight: 600; }
p { margin: 0 0 16px; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { font-size: .8125rem; color: var(--ink-3); margin: 16px 0 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: .8125rem; }

/* hero */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line-strong); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: end; }
.eyebrow { font-size: .875rem; color: var(--accent-ink); margin-bottom: 16px; }
.hero h1 { font-size: clamp(1.75rem, 5.2vw, 3.25rem); letter-spacing: .01em; margin-bottom: 24px; }
.hero-lead { color: var(--ink-2); max-width: 36em; margin: 0; }

.toc { border-top: 1px solid var(--line-strong); }
.toc-title { font-size: .8125rem; color: var(--ink-3); margin: 12px 0 4px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 16px; align-items: baseline; padding: 10px 0; text-decoration: none; transition: color 160ms var(--ease); }
.toc a:hover { color: var(--accent-ink); }

/* sections */
section[id] { scroll-margin-top: 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: 1.5rem; }
.section-lead { color: var(--ink-2); margin: -16px 0 32px; }

/* price table */
.price-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.price-table thead th { font-size: .8125rem; font-weight: 400; color: var(--ink-3); text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line-strong); }
.price-table tbody th, .price-table td { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; text-align: left; }
.price-table tbody tr:last-child > * { border-bottom: none; }
.price-table tbody th { font-size: 1.125rem; font-weight: 600; width: 22%; }
.price-table .desc { color: var(--ink-2); font-size: .9375rem; }
.price-table .col-price { text-align: right; white-space: nowrap; width: 18%; }
.price-table .col-period { white-space: nowrap; width: 16%; color: var(--ink-2); font-size: .9375rem; padding-left: 24px; padding-right: 0; }
.price { font-size: 1.625rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; margin-right: 2px; }
.price-table .label { display: none; }

/* works list */
.works { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.works li + li { border-top: 1px solid var(--line); }
.work { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 24px 0; text-decoration: none; }
.swatch { display: grid; place-items: end start; height: 104px; padding: 12px; border-radius: 4px; font-size: .9375rem; letter-spacing: .04em; }
.swatch-salon { background: #efe5d6; color: #6a4630; font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; box-shadow: inset 0 -32px 0 #8f5a3c; }
.swatch-salon span { color: #fff; }
.swatch-corp { background: #1b2f4a; color: #fff; font-weight: 600; box-shadow: inset -56px 0 0 #8796a8; }
.swatch-service { background: #e9efed; color: #2d5f5a; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(45, 95, 90, .3); }
.work-tag { display: block; font-size: .8125rem; color: var(--ink-3); margin-bottom: 4px; }
.work-body h3 { font-size: 1.125rem; margin-bottom: 8px; }
.work-desc { display: block; font-size: .9375rem; color: var(--ink-2); }
.work-link { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--accent-ink); white-space: nowrap; }
.work-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--ease); }
.work:hover .work-body h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.work:hover .work-link svg { transform: translateX(2px); }

/* flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.flow li { padding: 20px 20px 0 0; }
.flow li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.step { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .8125rem; color: var(--accent-ink); margin-bottom: 8px; }
.flow h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.flow p { font-size: .875rem; color: var(--ink-2); margin: 0; }

/* scope */
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.scope h3 { font-size: 1.0625rem; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.scope ul { margin: 0; padding: 0; list-style: none; }
.scope li { display: grid; grid-template-columns: 24px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.scope li::before { color: var(--ink-3); }
.scope-yes li::before { content: "○"; }
.scope-no li::before { content: "×"; }
.scope-no li { color: var(--ink-2); }

/* caution */
.section-caution { padding: 72px 0; }
.caution { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; border-left: 2px solid var(--accent); padding: 4px 0 4px 24px; max-width: 880px; }
.caution h2 { font-size: 1.125rem; }
.caution p { color: var(--ink-2); }
.caution p:last-child { margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line-strong); padding: 32px 0 40px; font-size: .8125rem; color: var(--ink-3); }
.site-footer p { margin: 4px 0; }
.sample-label { font-size: .9375rem; font-weight: 600; color: var(--ink); }

/* 出現：scroll-triggered fade-up（shared/reveal.js） */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .work { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
  .swatch { height: 88px; }
  .work-link { grid-column: 2; }
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li + li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; padding: 16px 0; border-left: none; border-bottom: 1px solid var(--line); }
  .flow .step { grid-row: span 2; margin: 2px 0 0; }
  .flow h3 { margin-bottom: 4px; }
}

@media (max-width: 720px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table, .price-table tbody { display: block; }
  .price-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:last-child { border-bottom: none; }
  .price-table tbody th, .price-table td { display: block; width: auto; padding: 0; border: none; }
  .price-table tbody th { grid-column: 1; align-self: baseline; }
  .price-table .col-price { grid-column: 2; grid-row: 1; }
  .price-table .desc { grid-column: 1 / -1; margin-top: 8px; }
  .price-table .col-period { grid-column: 1 / -1; margin-top: 4px; padding: 0; color: var(--ink-3); font-size: .8125rem; }
  .price-table .label { display: inline; }
  .price { font-size: 1.375rem; }
  .scope-grid { grid-template-columns: 1fr; gap: 40px; }
  .caution { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 40px); }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 1.3125rem; }
  .work { grid-template-columns: 1fr; gap: 16px; padding: 20px 0; }
  .work-link { grid-column: 1; }
  .swatch { height: 72px; }
}

/* 印刷・PDF では出現前の要素も表示する */
@media print {
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
