:root {
  --paper: #f5f5f1;
  --surface: #eef0f2;
  --ink: #17191d;
  --muted: #626975;
  --line: #cfd2d6;
  --blue: #173eb5;
  --blue-dark: #0f2e91;
  --header-h: 68px;
  --wrap: 1360px;
  --radius-control: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(calc(100% - 64px), var(--wrap)); margin-inline: auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.14; letter-spacing: -.045em; font-feature-settings: "palt" 1; }
p { margin-top: 0; }
section { scroll-margin-top: calc(var(--header-h) + 12px); }
.section { padding: clamp(88px, 9vw, 148px) 0; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
html.reveal-ready .reveal.in { opacity: 1; transform: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid var(--ink); border-radius: var(--radius-control); font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.btn-primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn-primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; text-underline-offset: 5px; }

.site-header { position: sticky; top: 0; z-index: 20; min-height: var(--header-h); background: rgba(245,245,241,.94); border-bottom: 1px solid rgba(23,25,29,.12); backdrop-filter: blur(12px); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-main { font-size: 21px; font-weight: 850; letter-spacing: -.05em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 700; }
.site-header nav a { text-decoration: none; white-space: nowrap; }
.nav-work { border-bottom: 1px solid var(--ink); }
.site-header .btn { min-height: 44px; padding-inline: 22px; }

.hero { min-height: calc(100dvh - var(--header-h)); display: grid; align-items: center; padding: clamp(36px, 5vw, 72px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-areas: "title work" "lead work" "actions work"; grid-template-columns: minmax(320px,.72fr) minmax(0,1.28fr); grid-template-rows: auto auto 1fr; align-items: center; gap: 0 clamp(36px,5vw,88px); }
.hero h1 { grid-area: title; align-self: end; max-width: 520px; margin-bottom: 24px; font-size: clamp(46px,5.4vw,82px); font-weight: 850; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 b { color: var(--blue); font-size: 1.55em; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.075em; }
.hero-lead { grid-area: lead; max-width: 30em; margin-bottom: 30px; color: var(--muted); font-size: clamp(15px,1.3vw,18px); }
.hero-actions { grid-area: actions; align-self: start; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-work { grid-area: work; display: block; min-width: 0; overflow: hidden; background: #d8dce0; }
.hero-work img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.hero-work:hover img { transform: scale(1.01); }

@media (max-width: 900px) {
  .wrap { width: min(calc(100% - 40px), var(--wrap)); }
  .hero { min-height: auto; padding: 44px 0 72px; }
  .hero-grid { grid-template-areas: "title" "work" "lead" "actions"; grid-template-columns: 1fr; grid-template-rows: auto; gap: 30px; }
  .hero h1 { max-width: 680px; margin-bottom: 0; font-size: clamp(44px,10vw,72px); }
  .hero-lead { margin-bottom: 0; }
}
@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .wrap { width: min(calc(100% - 32px), var(--wrap)); }
  .nav-work { display: none; }
  .brand small { display: none; }
  .hero h1 { font-size: 41px; }
  .hero h1 b { font-size: 1.48em; }
  .hero-actions .btn { flex: 1 1 0; padding-inline: 12px; }
}

.work-showcase { padding-top: clamp(72px,8vw,128px); }
.showcase-heading { max-width: 720px; margin: 0 0 64px; }
.showcase-heading h2 { margin-bottom: 12px; font-size: clamp(34px,4vw,60px); }
.showcase-heading p { color: var(--muted); }
.work-row { display: grid; grid-template-columns: minmax(110px,.24fr) minmax(0,1.76fr); gap: clamp(24px,5vw,80px); align-items: start; margin-top: 64px; }
.work-meta { padding-top: 20px; border-top: 1px solid var(--ink); }
.work-meta h3 { margin-bottom: 8px; font-size: 22px; }
.work-meta p { color: var(--muted); font-size: 13px; }
.work-image { display: block; overflow: hidden; }
.work-image img { width: 100%; aspect-ratio: 16/9.6; object-fit: cover; object-position: top; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.work-image:hover img { transform: scale(1.01); }
.showcase-foot { display: flex; justify-content: space-between; gap: 24px; margin: 42px 0 0 calc(24% + 60px); padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.mechanism { background: var(--surface); }
.mechanism-grid { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: clamp(48px,7vw,112px); align-items: center; }
.mechanism-copy h2 { font-size: clamp(36px,4.4vw,66px); }
.mechanism-copy p { max-width: 36em; color: var(--muted); }
.mechanism-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.mechanism-steps li { position: relative; min-height: 180px; padding: 28px 22px; border-right: 1px solid var(--line); }
.mechanism-steps li:last-child { border-right: 0; }
.mechanism-steps b, .mechanism-steps span { display: block; }
.mechanism-steps b { margin-bottom: 14px; font-size: 16px; }
.mechanism-steps span { color: var(--muted); font-size: 13px; }
.mechanism-steps .human-finish { background: var(--ink); color: #fff; }
.mechanism-steps .human-finish span { color: rgba(255,255,255,.72); }

.fit-band { display: grid; grid-template-columns: 1fr 1fr; }
.fit-panel { min-height: 390px; display: grid; place-items: center; padding: clamp(48px,7vw,100px); }
.fit-panel > div { width: min(100%,560px); }
.fit-panel h2 { font-size: clamp(30px,3.4vw,50px); }
.fit-panel ul { display: grid; gap: 14px; margin: 28px 0 0; padding-left: 1.2em; }
.fit-for { background: #ececea; }
.fit-out { background: var(--ink); color: #fff; clip-path: polygon(7% 0,100% 0,100% 100%,0 100%); }
.fit-out p { margin-top: 24px; color: rgba(255,255,255,.68); font-size: 14px; }

/* ---- セクションごとの余白 ---- */
#samples.section { padding: 116px 0 124px; }
#pricing.section { padding: 96px 0 108px; }
#faq.section { padding: 84px 0 92px; }

/* ---- 料金 ---- */
.pricing-title { margin-bottom: 54px; }
.pricing-title h2 { margin-bottom: 8px; font-size: clamp(36px,4vw,58px); }
.pricing-title p { color: var(--muted); }
.price-layout { display: grid; grid-template-columns: minmax(220px,.85fr) minmax(320px,1.1fr) minmax(240px,.85fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-layout > div { padding: 40px clamp(20px,3vw,48px); }
.price-includes { grid-column: 1; grid-row: 1; }
.price-main { grid-column: 2; grid-row: 1; border-left: 1px solid var(--line); }
.price-aside { grid-column: 3; grid-row: 1; border-left: 1px solid var(--line); }
.price-layout h3, .price-support h3 { margin-bottom: 22px; font-size: 18px; }
.price-includes ul { display: grid; gap: 10px; margin: 0; padding-left: 1.2em; color: var(--muted); }
.price-main { display: grid; align-content: center; justify-items: center; text-align: center; }
.price-main p { margin-bottom: 24px; color: var(--blue); line-height: 1; white-space: nowrap; }
.price-main b { font-size: clamp(48px,5vw,76px); font-weight: 550; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.price-main span { font-size: 16px; font-weight: 700; }
.price-aside dl { margin: 0; }
.price-aside dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.price-aside dt { color: var(--muted); }
.price-aside dd { margin: 0; font-weight: 700; white-space: nowrap; }
.price-support { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); }
.price-support section { padding: 30px; background: var(--paper); }
.price-support p { color: var(--muted); font-size: 14px; }
.price-support b { color: var(--ink); }
.price-note { max-width: 70em; margin: 26px 0 0; color: var(--muted); font-size: 12px; }

/* ---- 制作の流れ ---- */
.process-line { display: grid; grid-template-columns: repeat(5,1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-line li { position: relative; padding: 34px 24px 0 0; }
.process-line li::before { content: ""; position: absolute; width: 9px; height: 9px; top: -5px; left: 0; background: var(--blue); border-radius: 50%; }
.process-line span { display: block; margin-bottom: 28px; color: var(--blue); font-size: 22px; font-variant-numeric: tabular-nums; }
.process-line b { display: block; margin-bottom: 10px; }
.process-line p { max-width: 18em; color: var(--muted); font-size: 13px; }

/* ---- 制作実績とFAQ ---- */
.result { background: var(--surface); }
.result-grid { display: grid; grid-template-columns: minmax(260px,.62fr) minmax(0,1.38fr); gap: clamp(40px,7vw,110px); align-items: center; }
.result-grid h2 { max-width: 10em; font-size: clamp(36px,4.4vw,64px); }
.result-grid p { max-width: 30em; color: var(--muted); }
.result-image { display: block; overflow: hidden; }
.result-image img { width: 100%; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.result-image:hover img { transform: scale(1.01); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { position: relative; width: 100%; min-height: 64px; padding: 18px 52px 18px 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.faq-item button::after { content: ""; position: absolute; top: 50%; right: 4px; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq-item button[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item .faq-a { padding: 0 52px 22px 0; color: var(--muted); }
html.faq-ready .faq-item .faq-a { display: none; }
html.faq-ready .faq-item.open .faq-a { display: block; }

/* ---- 最終CTAとフッター ---- */
.final-cta { padding: 58px 0; background: var(--ink); color: #fff; }
.final-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.final-cta h2 { margin-bottom: 8px; font-size: clamp(28px,3vw,44px); }
.final-cta p { margin-bottom: 0; color: rgba(255,255,255,.72); }
.final-cta .btn-primary { min-width: 180px; }
.final-cta a:focus-visible, .final-cta button:focus-visible { outline-color: #ffffff; }
.site-footer { padding: 42px 0; background: var(--paper); color: var(--muted); font-size: 12px; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer p { margin: 0; }

/* ---- 法的ページ ---- */
.legal { max-width: 860px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: 26px; }
.legal h2 { font-size: 18px; margin-top: 36px; }
.legal table { border-collapse: collapse; width: 100%; }
.legal th, .legal td { border-bottom: 1px solid var(--line); padding: 12px 14px 12px 0; text-align: left; font-size: 14.5px; vertical-align: top; }
.legal th { color: var(--muted); font-size: 13.5px; white-space: nowrap; padding-right: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .faq-item button::after { transition: none; }
}

/* ============================================================
   レスポンシブ
   ============================================================ */

@media (max-width: 860px) {
  .section#samples { padding-top: 72px; padding-bottom: 76px; }
  .section#pricing { padding-top: 72px; padding-bottom: 80px; }
  .section#faq { padding-top: 52px; padding-bottom: 60px; }
}

@media (max-width: 822px) {
  .price-layout { grid-template-columns: 1fr; }
  .price-main { grid-column: auto; grid-row: auto; border-left: 0; }
  .price-includes { grid-column: auto; grid-row: auto; }
  .price-aside { grid-column: auto; grid-row: auto; border-left: 0; }
  .price-layout > div + div { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .work-row { grid-template-columns: 1fr; gap: 14px; margin-top: 46px; }
  .work-meta { padding-top: 12px; }
  .work-meta p { margin-bottom: 0; }
  .showcase-foot { display: grid; margin-left: 0; }
  .mechanism-grid { grid-template-columns: 1fr; }
  .mechanism-steps { grid-template-columns: 1fr; }
  .mechanism-steps li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .mechanism-steps li:last-child { border-bottom: 0; }
  .fit-band { grid-template-columns: 1fr; }
  .fit-panel { min-height: auto; place-items: start; padding: 64px 24px; }
  .fit-out { clip-path: none; }
  .price-support { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); }
  .process-line li { padding: 0 0 36px 34px; }
  .process-line li::before { top: 6px; left: -5px; }
  .process-line span { margin-bottom: 4px; }
  .result-grid { grid-template-columns: 1fr; }
  .final-cta .wrap { display: grid; }
  .final-cta .btn { width: 100%; }
}
