:root {
  --bg: oklch(0.965 0.012 88);
  --fg: oklch(0.25 0.02 55);
  --card: oklch(0.985 0.008 90);
  --primary: oklch(0.52 0.14 42);
  --primary-fg: oklch(0.98 0.01 88);
  --muted: oklch(0.46 0.02 55);
  --border: oklch(0.86 0.018 80);
  --ink: oklch(0.22 0.016 55);
  --paper: oklch(0.955 0.014 88);
  --danger: oklch(0.48 0.17 28);
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --header: 4rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: oklch(0.52 0.14 42 / 0.28); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--card);
  padding: 0.5rem 0.8rem;
  z-index: 50;
}
.skip:focus { transform: none; }

.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.eyebrow {
  margin: 0;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  color: var(--muted);
}
h1, h2, h3, .brand span, .brand p, .service-no { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.1rem); line-height: 1.18; margin: 1.2rem 0 0; }
h2 { font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.25; margin: 0.6rem 0 0; }
h3 { font-size: 1.7rem; line-height: 1.35; margin: 0.4rem 0 0; }
.muted { color: var(--muted); }
.prose { line-height: 1.9; }

.mark { width: 1.7rem; height: 1.7rem; display: block; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand span, .brand p { margin: 0; font-size: 1.15rem; letter-spacing: 0.04em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.header-bar { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.desktop-nav { display: none; align-items: center; gap: 1.6rem; }
.desktop-nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.desktop-nav a.btn { color: var(--primary-fg); }
.menu-button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: transparent;
  display: grid;
  place-items: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 1rem;
  height: 1px;
  background: var(--fg);
  position: relative;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.site-header.is-open .menu-icon { background: transparent; }
.site-header.is-open .menu-icon::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .menu-icon::after { top: 0; transform: rotate(-45deg); }
.mobile-nav { display: grid; gap: 0; padding: 0.4rem 1.25rem 1rem; border-top: 1px solid var(--border); }
.mobile-nav a { text-decoration: none; padding: 0.95rem 0; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 1rem; text-align: center; color: var(--primary-fg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.2rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--primary-fg);
  text-decoration: none;
  cursor: pointer;
}
.btn-outline { background: color-mix(in oklch, var(--card) 70%, transparent); color: var(--fg); border-color: var(--border); }
.hero-actions .btn, .form-actions .btn { width: 100%; }
@media (min-width: 640px) {
  .hero-actions .btn, .form-actions .btn { width: auto; }
}

.hero { position: relative; overflow: hidden; padding: 4rem 0 4.5rem; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% -10%, oklch(0.9 0.05 55 / 0.9), transparent 46%),
    radial-gradient(ellipse at -10% 110%, oklch(0.9 0.03 145 / 0.7), transparent 42%);
  pointer-events: none;
}
.hero-mark {
  display: none;
  position: absolute;
  right: -0.4rem;
  top: 3rem;
  margin: 0;
  font-family: var(--serif);
  font-size: 14rem;
  line-height: 1;
  color: color-mix(in oklch, var(--fg) 4.5%, transparent);
  pointer-events: none;
}
.hero-grid, .hero-actions, .service-index { position: relative; }
.lead { max-width: 38rem; color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.8rem; }
.service-index { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--border); }
.service-index a {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding: 0.95rem 0;
}
.service-index a span:first-child { color: var(--muted); font-size: 0.88rem; }
.service-index a span:last-child { font-family: var(--serif); font-size: 1.25rem; }
.service-index a:hover span:last-child { color: var(--primary); }

.band { background: var(--ink); color: var(--paper); }
.band-grid { display: grid; gap: 1.2rem; padding: 3.2rem 0; }
.band-grid p:first-child { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.5; margin: 0; }
.band-grid p:last-child { margin: 0; color: color-mix(in oklch, var(--paper) 75%, transparent); font-size: 0.95rem; }

.section { padding: 4rem 0; }
.section.tight { padding-top: 0; }
.service {
  display: grid;
  gap: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding: 2.6rem 0;
  scroll-margin-top: 5.5rem;
}
.service-no { margin: 0; font-size: 3rem; color: var(--primary); line-height: 1; }
.service-summary { font-size: 1.08rem; line-height: 1.9; margin-top: 0; }
.points { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.points li { border: 1px solid var(--border); background: var(--card); border-radius: 0.5rem; padding: 0.75rem 0.95rem; font-size: 0.92rem; }

.situations { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.situations li { border: 1px solid var(--border); background: var(--card); border-radius: 0.5rem; padding: 1.3rem; }
.situations p { color: var(--muted); margin-bottom: 0; }

.approach { padding: 4rem 0; }
.approach .eyebrow { color: color-mix(in oklch, var(--paper) 60%, transparent); }
.approach-head { display: grid; gap: 0.8rem; }
.approach-head p { margin: 0; color: color-mix(in oklch, var(--paper) 75%, transparent); font-size: 0.95rem; max-width: 28rem; }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1px; background: color-mix(in oklch, var(--paper) 15%, transparent); border-radius: 0.5rem; overflow: hidden; }
.steps li { background: var(--ink); padding: 1.4rem; }
.steps li p:first-child { margin: 0; color: var(--primary); font-family: var(--serif); }
.steps li h3 { font-size: 1.8rem; margin-top: 1.6rem; }
.steps li p:last-child { color: color-mix(in oklch, var(--paper) 75%, transparent); font-size: 0.92rem; }

#services, #approach, #profile, #contact { scroll-margin-top: 5rem; }
.profile-grid, .contact-grid { display: grid; gap: 1.8rem; }
.profile { margin: 0; }
.profile div { display: grid; gap: 0.2rem; border-top: 1px solid var(--border); padding: 0.9rem 0; }
.profile dt { color: var(--muted); font-size: 0.88rem; }
.profile dd { margin: 0; }
.contact { border-top: 1px solid var(--border); }

.contact-form { display: grid; gap: 1rem; }
.fields { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.4rem; font-size: 0.92rem; font-weight: 500; }
.hint { color: var(--muted); font-weight: 400; font-size: 0.75rem; justify-self: end; }
.message-field { position: relative; }
.message-field .hint { position: absolute; right: 0; top: 0.15rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.5rem;
  padding: 0.75rem 0.8rem;
  outline: none;
}
.contact-form textarea { min-height: 10rem; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 25%, transparent);
}
.contact-form [aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: 0.85rem; font-weight: 400; min-height: 0; }
.error:empty { display: none; }
.form-actions { display: flex; flex-direction: column; gap: 0.7rem; }
.form-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.notice { border: 1px solid var(--border); background: var(--card); border-radius: 0.5rem; padding: 1rem; font-size: 0.92rem; }
.notice pre { white-space: pre-wrap; font-family: var(--sans); color: var(--muted); margin: 0.8rem 0 0; }

.site-footer { border-top: 1px solid var(--border); }
.footer-bar { display: grid; gap: 1.5rem; padding: 2.5rem 0; }
.footer-bar .muted { max-width: 24rem; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover, .profile a, .form-note a, .page a { text-decoration: underline; text-underline-offset: 0.25rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.6rem; }

.narrow { width: min(46rem, calc(100% - 2.5rem)); }
.page { padding: 4rem 0 5rem; }
.page h1 { font-size: 2.4rem; }
.page section { margin-top: 2rem; }
.page section p { color: var(--muted); }
.back { font-size: 0.92rem; }

@media (min-width: 700px) {
  .points, .situations, .fields { grid-template-columns: 1fr 1fr; }
  .profile div { grid-template-columns: 9rem 1fr; gap: 1rem; align-items: baseline; }
  .footer-bar { grid-template-columns: 1fr auto; align-items: end; }
  .footer-links { text-align: right; }
  .footer-links ul, .footer-meta { justify-content: flex-end; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .menu-button, .mobile-nav { display: none; }
  .desktop-nav { display: flex; }
  .hero-grid, .band-grid, .service, .profile-grid, .contact-grid, .approach-head { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero-grid { grid-template-columns: 1.4fr 0.8fr; gap: 3rem; }
  .service-index { margin: 0; border-top: 0; border-left: 1px solid var(--border); padding-left: 2rem; align-self: end; }
  .band-grid { align-items: end; padding: 4.5rem 0; }
  .service { grid-template-columns: 0.7fr 1.3fr; gap: 2rem; padding: 3.4rem 0; }
  .profile-grid, .contact-grid { grid-template-columns: 0.7fr 1.3fr; }
  .approach-head { align-items: end; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .hero-mark { display: block; }
  .form-actions { flex-direction: row; }
}
@media (min-width: 640px) {
  .hero-actions, .form-actions { flex-direction: row; }
}
