:root {
  --bg: #f5f2eb;
  --paper: #fffdf8;
  --text: #2e2e2b;
  --muted: #5f5a52;
  --line: #d9d2c6;
  --accent: #925c43;
  --accent-dark: #744632;
  --dark: #2e2e2b;
  --white: #ffffff;
  --container: 1120px;
  --reading: 760px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(146, 92, 67, 0.35);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--dark);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.narrow { max-width: var(--reading); margin-left: max(32px, calc((100% - var(--container)) / 2)); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(217, 210, 198, 0.9);
  background: rgba(245, 242, 235, 0.94);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark,
.footer-wordmark {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.82rem;
}

.nav-text {
  text-decoration: none;
  text-underline-offset: 5px;
}

.nav-text:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid var(--accent);
  color: var(--white);
  background: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button-small { min-height: 42px; padding-inline: 18px; }

.hero {
  display: grid;
  min-height: min(760px, calc(100svh - 78px));
  align-items: center;
  padding: 102px 0 96px;
}

.hero-inner { position: relative; }

.hero-inner::after {
  position: absolute;
  right: 0;
  bottom: 0.6rem;
  width: 120px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.eyebrow,
.section-label,
.card-number,
.work-index {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 { text-wrap: balance; }

h1 {
  max-width: 900px;
  margin-bottom: 30px;
  font-size: clamp(2.6rem, 6.1vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.28;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 38px;
  color: #4f4b45;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 2.05;
}

.section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.section-paper { background: rgba(255, 253, 248, 0.7); }

h2 {
  margin-bottom: 30px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.45;
}

h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.body-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2.1;
}

.capability-grid {
  display: grid;
  margin-top: 46px;
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.capability-card {
  min-height: 278px;
  padding: 34px 30px 38px;
  background: var(--bg);
}

.capability-card p:last-child,
.work-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.95;
}

.card-number { margin-bottom: 36px; }

.work-grid {
  display: grid;
  margin-top: 46px;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  position: relative;
  min-height: 224px;
  padding: 30px 32px 34px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.work-index {
  position: absolute;
  top: 30px;
  right: 30px;
  margin: 0;
}

.work-card h3 { max-width: calc(100% - 34px); }

.about-grid {
  display: grid;
  align-items: start;
  gap: 76px;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
}

.steps {
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  counter-reset: step;
  list-style: none;
}

.steps li {
  display: grid;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
  grid-template-columns: 58px 1fr;
}

.steps li::before {
  padding-top: 2px;
  color: var(--accent);
  content: "0" counter(step);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.contact {
  padding: 110px 0;
  color: var(--white);
  background: var(--dark);
}

.contact h2 { max-width: 850px; }

.contact > .container > p:not(.section-label) {
  max-width: 700px;
  margin-bottom: 34px;
  color: #dcd7cd;
  line-height: 2;
}

.section-label-light { color: #d5a88f; }

.contact-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.button-light {
  border-color: var(--bg);
  color: var(--text);
  background: var(--bg);
}

.button-light:hover {
  border-color: var(--white);
  color: var(--text);
  background: var(--white);
}

.contact-link {
  color: var(--white);
  font-size: 0.9rem;
  text-underline-offset: 5px;
}

.site-footer {
  padding: 52px 0 26px;
  color: var(--muted);
  background: #e9e3d8;
  font-size: 0.78rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto;
}

.company p { line-height: 2; }
.company a { text-underline-offset: 4px; }
.footer-wordmark { color: var(--text); }

.footer-links {
  display: flex;
  align-items: start;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a { text-underline-offset: 5px; }

.copyright {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(95, 90, 82, 0.2);
  font-size: 0.7rem;
}

.subpage-main { padding: 86px 0 112px; }
.subpage-header { margin-bottom: 64px; }
.subpage-header h1 { max-width: none; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.policy { max-width: 760px; }
.policy section { margin-top: 46px; }
.policy h2 { margin-bottom: 14px; font-size: 1.35rem; letter-spacing: -0.02em; }
.policy p, .policy li { color: var(--muted); line-height: 2; }
.policy ul { padding-left: 1.4em; }
.back-link { display: inline-block; margin-top: 54px; text-underline-offset: 5px; }

.not-found {
  display: grid;
  min-height: calc(100svh - 78px);
  place-items: center;
  padding: 80px 0;
}

@media (max-width: 860px) {
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 24px; grid-template-columns: 1fr; }
  .hero-inner::after { display: none; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 70px; }
  .container { width: calc(100% - 36px); }
  .narrow { margin-inline: auto; }
  .header-inner { min-height: 68px; }
  .site-nav { gap: 12px; }
  .nav-text { display: none; }
  .button-small { min-height: 38px; padding-inline: 14px; }
  .hero { min-height: auto; padding: 78px 0 72px; }
  h1 { font-size: clamp(2.35rem, 11.5vw, 3.45rem); line-height: 1.34; }
  .hero-lead { line-height: 1.95; }
  .section { padding: 76px 0; }
  h2 { font-size: clamp(1.85rem, 8vw, 2.65rem); line-height: 1.48; }
  .capability-grid, .work-grid { margin-top: 34px; }
  .capability-card, .work-card { padding: 28px 24px 30px; }
  .card-number { margin-bottom: 24px; }
  .contact { padding: 78px 0; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 10px; }
  .subpage-main { padding: 64px 0 86px; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 28px); }
  h1 { font-size: 2.25rem; }
  .hero .button { width: 100%; }
  .work-index { top: 27px; right: 22px; }
}

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

.service-entry {
  color: var(--white);
  background: var(--dark);
}

.service-entry-grid {
  display: grid;
  align-items: start;
  gap: 84px;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
}

.service-entry .section-label {
  color: rgba(255, 255, 255, 0.55);
}

.service-entry-list {
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.service-entry-list a {
  display: grid;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.service-entry-list span,
.service-entry-list small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
}

.service-entry-list strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 500;
}

.service-entry-list a:hover small {
  color: var(--white);
}

@media (max-width: 760px) {
  .service-entry-grid {
    gap: 38px;
    grid-template-columns: 1fr;
  }
}
