:root {
  color-scheme: light;
  --ink: #20211f;
  --paper: #f5f5f0;
  --white: #fff;
  --line: #d8d8d1;
  --muted: #53554f;
  --accent: #e9f46a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #557800; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.055em; }
.container { width: min(100% - 6rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: .5rem auto auto .5rem; padding: .5rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; min-height: 5.15rem; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.1rem; letter-spacing: .08em; font-weight: 850; line-height: 1.05; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; background: var(--ink); color: var(--accent); font-size: 1.45rem; letter-spacing: -.05em; }
.brand-ja { display: block; font-size: .75rem; font-weight: 650; letter-spacing: .06em; margin-top: .28rem; }
nav { display: flex; gap: 1.75rem; margin-left: auto; }
nav a { text-decoration: none; font-weight: 650; font-size: .9rem; }
nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.35rem; padding: .65rem 1.35rem; border: 1px solid transparent; background: var(--accent); color: var(--ink); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { background: #dbe858; }
.button-header { min-height: 2.85rem; padding-inline: 1rem; background: var(--ink); color: var(--white); font-size: .875rem; }
.button-header:hover { background: #41443d; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.button-phone { min-height: 2.85rem; padding-inline: .8rem; white-space: nowrap; font-size: .875rem; }
.button-phone { flex-direction: column; line-height: 1.25; }
.button-phone strong { font-size: 1.1rem; }
.hero { background: var(--ink); color: var(--white); overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: 54% 46%; min-height: 33rem; }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: 5rem 1.5rem 5.2rem 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .875rem; font-weight: 750; letter-spacing: .12em; color: inherit; }
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; background: currentColor; }
.hero .eyebrow { color: var(--accent); }
h1 { margin: 1.2rem 0 1.35rem; font-size: clamp(2.25rem, 4.2vw, 4.05rem); line-height: 1.27; letter-spacing: -.06em; }
.hero-description { max-width: 27rem; margin-bottom: 1.65rem; color: #e1e1d9; }
.hero-photo { position: absolute; inset: 0 calc((min(100vw - 6rem, 72rem) - 100vw) / 2) 0 54%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #20211f 0%, transparent 27%); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero-photo figcaption { position: absolute; z-index: 1; right: 1rem; bottom: .85rem; padding: .08rem .48rem; background: #20211f; color: var(--white); font-size: .75rem; }
.section { padding-block: clamp(3.4rem, 7vw, 6.25rem); }
.section-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.9rem; }
.section-intro p, .services p, .contact > div p { color: var(--muted); }
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.services li { padding: 1.55rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-note { margin-top: 1rem; color: var(--muted); }
.services h3 { font-size: 1.13rem; margin-bottom: .55rem; }
.about { background: var(--accent); }
.about-inner { padding-block: clamp(3.2rem, 6vw, 5.4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about h2 { margin: .55rem 0 1.3rem; }
.about h3 { font-size: clamp(1.3rem, 2.3vw, 1.85rem); margin-bottom: .8rem; }
.about-copy { border-left: 1px solid #aab444; padding-left: 2rem; }
dl > div { display: flex; align-items: baseline; gap: 1rem; }
dt { font-weight: 700; min-width: 8rem; }
.about-details { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 1rem 1.5rem; }
.about-details dl > div { flex-wrap: wrap; column-gap: .65rem; row-gap: 0; }
.about-details dt { min-width: 7rem; }
.contact { display: grid; grid-template-columns: 1fr 1.3fr; align-items: start; gap: 3rem; }
.contact > div p { margin-top: 1rem; max-width: 24rem; }
.contact-email a { font-weight: 700; overflow-wrap: anywhere; }
form { display: grid; gap: .55rem; padding: clamp(1rem, 3.5vw, 2.2rem); background: var(--white); border: 1px solid var(--line); }
.demo-note { background: #f1f1eb; padding: .65rem .75rem; font-size: .875rem; margin-bottom: .3rem; }
form label { font-weight: 700; font-size: .9375rem; }
form label span { margin-left: .4rem; font-size: .875rem; color: #515345; font-weight: 500; }
input, textarea { width: 100%; border: 1px solid #a4a59e; border-radius: 0; background: var(--white); color: var(--ink); font: inherit; padding: .6rem .7rem; margin-bottom: .5rem; }
textarea { resize: vertical; }
form .button { justify-self: start; }
.form-status { font-size: .9375rem; }
.form-status:empty { display: none; }
.footer { background: var(--ink); color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; }
.footer a { font-size: .8125rem; }
.footer .footer-brand { font-size: 1rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
@media (max-width: 900px) {
  .container { width: calc(100% - 3rem); }
  .hero-photo { right: -1.5rem; }
  .hero-inner { min-height: 28rem; }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 660px) {
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.2rem; gap: .7rem; justify-content: space-between; }
  nav { display: none; }
  .header-actions { flex-direction: column-reverse; align-items: flex-end; gap: .35rem; padding-block: .4rem; }
  .header .button { padding-inline: .6rem; min-height: 2.6rem; white-space: nowrap; }
  .hero-inner { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { width: 100%; padding: 2.75rem 0 2rem; }
  h1 { font-size: clamp(1.8rem, 7.7vw, 3rem); }
  .hero-description { margin-bottom: 1.25rem; }
  .hero-photo { position: relative; inset: auto; width: calc(100% + 2rem); margin-left: -1rem; height: 13rem; }
  .hero-photo::after { background: linear-gradient(180deg, #20211f 0%, transparent 35%); }
  .section-intro, .about-inner, .contact { display: grid; grid-template-columns: 1fr; gap: 1rem; }
  .about-copy { margin-top: .5rem; border-left: 0; border-top: 1px solid #aab444; padding: 1rem 0 0; }
  .services li { padding: .85rem; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.works { padding-top: 0; }
.work-case { margin-top: 1.5rem; background: var(--white); border: 1px solid var(--line); padding: clamp(1rem, 4vw, 2.25rem); }
.work-case > h3 { font-size: clamp(1.45rem, 3vw, 2rem); }
.work-case > p { margin-top: .55rem; color: var(--muted); }
.work-stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.6rem; }
.work-stage h4 { margin: 0 0 .7rem; font-size: 1rem; }
.work-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; list-style: none; padding: 0; margin: 0; }
.work-photos-single { grid-template-columns: minmax(0, 1fr); max-width: 16rem; }
.work-photos.before { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-photos a { display: block; background: var(--paper); }
.work-photos img { display: block; width: 100%; height: auto; }
@media (max-width: 660px) {
  .work-stages { grid-template-columns: minmax(0, 1fr); }
}
