:root {
  --paper: #f9f9f6;
  --card: #fcfcfa;
  --ink: #232522;
  --green: #396334;
  --muted: #565b55;
  --line: #b6bab2;
  --gutter: 72px;
  --section: 72px;
  --content-gap: 48px;
  --grid-gap: 32px;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); }
h2 { font-size: 34px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 8px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.inner { width: min(100% - 2 * var(--gutter), 1136px); margin-inline: auto; }
.header { background: #fbfbf9; }
.header-inner, .brand, nav { display: flex; align-items: center; }
.header-inner { min-height: 77px; justify-content: space-between; gap: 24px; }
.brand { gap: 24px; font: bold 32px/1.25 var(--serif); white-space: nowrap; }
.brand span { border-left: 1px solid #9fa69c; padding-left: 24px; color: var(--muted); font-size: 15px; }
.brand a, nav a { text-decoration: none; }
nav { gap: 32px; font: bold 16px/1.5 var(--serif); }
nav a:hover { color: var(--green); text-decoration: underline; }
.hero { position: relative; isolation: isolate; min-height: 354px; }
.hero-photo, .hero::before, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -3; object-fit: cover; filter: saturate(.72) hue-rotate(9deg) contrast(.96) brightness(1.04); }
.hero::before { content: ""; z-index: -2; background: linear-gradient(90deg, var(--paper), rgba(249,249,246,.79) 38%, transparent 72%); }
.hero::after { content: ""; z-index: -1; background: url("../images/hero-wave.svg") bottom center / 100% auto no-repeat; }
.hero-copy { padding-block: 47px 64px; }
.eyebrow { border-left: 3px solid var(--green); padding-left: 18px; font: bold 19px/1.5 var(--serif); }
.hero h1 { font-size: 40px; margin-top: 8px; }
.hero h1 + p { margin-top: 12px; font-size: 22px; }
.section { padding-top: var(--section); }
.section-label { display: flex; gap: 24px; align-items: center; color: var(--green); font: bold 19px/1.5 var(--serif); }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-heading { margin-top: 29px; }
.service-heading, .about-heading { display: flex; align-items: center; gap: 24px; }
.service-heading p, .about-heading p { border-left: 1px solid #a8ada5; padding-left: 24px; font-size: 18px; }
.service-grid, .works-grid, .roles { display: grid; gap: var(--grid-gap); margin-top: var(--content-gap); }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card, .work-card { border: 1px solid #dbded7; border-radius: 10px; background: var(--card); }
.service-card { min-height: 280px; padding: 15px 19px 16px; overflow-wrap: anywhere; }
.icon-badge { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e4eddf; }
.service-card h3 { margin: 16px 0 8px; font-size: 22px; }
.service-card:nth-child(3) h3 { font-size: 20px; }
.service-card:nth-child(4) h3 { font-size: 18px; }
.specialty { margin-top: 12px; }
.specialty a { color: var(--green); font: bold 16px/1.5 var(--serif); text-underline-offset: 3px; }
.specialty small { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-card { overflow: hidden; border-color: #e3e5df; }
.work-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.work-caption { display: grid; justify-items: start; gap: 8px; padding: 16px; }
.work-caption h3 { padding-inline: 12px; border-radius: 5px; background: #dfead9; font-size: 16px; }
.about-heading { align-items: start; gap: 16px; }
.about-heading h2 { flex: none; font-size: 35px; }
.roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role { display: flex; align-items: center; gap: 32px; min-height: 83px; padding: 8px clamp(20px, 4vw, 54px); border-radius: 10px; background: #e9eee5; }
.role img { flex: none; }
.role > div { border-left: 2px solid var(--green); padding-left: 30px; }
.role h3 { font-size: 24px; }
.role p { font-size: 18px; }
.contact { padding-bottom: 48px; background: url("../images/contact-wave.svg") bottom center / 100% auto no-repeat; }
.contact h2 { font-size: 32px; }
.contact-description { margin-top: 8px; font-size: 17px; }
.contact-form { width: min(100%, 760px); margin: var(--content-gap) auto 0; }
.contact-form .contact-button { margin-top: 28px; }
.form-field { display: grid; gap: 8px; margin-bottom: 20px; }
.form-field label { font-weight: bold; }
.required { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 3px; background: #e9eee5; color: var(--green); font-size: 12px; vertical-align: 2px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #aeb5aa; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field :focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.contact-button { display: flex; justify-content: center; align-items: center; gap: 16px; width: min(100%, 420px); min-height: 55px; margin: var(--content-gap) auto 0; padding: 10px 16px; border: 0; border-radius: 28px; background: var(--green); color: white; text-align: center; text-decoration: none; font: bold 20px/1.5 var(--serif); cursor: pointer; }
.contact-button:hover { background: #2d5129; }
.contact-button:focus-visible { outline-color: var(--green); }
.thanks-modal[hidden] { display: none; }
.thanks-modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; }
.thanks-modal-backdrop { position: absolute; inset: 0; background: rgb(20 25 20 / 60%); }
.thanks-modal-panel { position: relative; width: min(100%, 560px); padding: clamp(28px, 6vw, 52px); border-radius: 12px; background: var(--paper); box-shadow: 0 18px 60px rgb(0 0 0 / 24%); text-align: center; }
.thanks-modal-panel .section-label { font-size: 15px; }
.thanks-modal-panel h2 { margin-top: 24px; font-size: 28px; }
.thanks-modal-panel > p:not(.section-label) { margin-top: 14px; }
.thanks-modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.thanks-modal-ok { margin-top: 28px; padding: 10px 34px; border: 0; border-radius: 24px; background: var(--green); color: white; font: bold 16px/1.5 var(--sans); cursor: pointer; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
footer { min-height: 49px; display: flex; justify-content: center; align-items: center; gap: 8px; background: #dde7d8; font: bold 19px/1.5 var(--serif); }
footer small { font-size: 14px; }
@media (max-width: 1100px) {
  :root { --gutter: 40px; --section: 64px; --grid-gap: 24px; }
  .brand span { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 0; }
  .desktop-break { display: none; }
  .role { gap: 16px; }
  .role > div { padding-left: 16px; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; --section: 56px; --content-gap: 32px; --grid-gap: 20px; }
  .header-inner { flex-direction: column; align-items: start; justify-content: center; gap: 8px; padding-block: 12px; }
  nav { gap: clamp(12px, 4vw, 24px); font-size: 14px; flex-wrap: wrap; }
  nav a { padding-block: 6px; }
  .hero { min-height: 454px; }
  .hero-photo { object-position: 75% center; }
  .hero::before { background: linear-gradient(180deg, var(--paper) 5%, rgba(249,249,246,.94) 43%, transparent 79%); }
  .hero-copy { padding-block: 32px 140px; }
  .eyebrow { font-size: 14px; }
  .hero h1 { font-size: clamp(27px, 5.3vw, 38px); }
  .hero h1 + p { font-size: 16px; }
  h2, .about-heading h2, .contact h2 { font-size: 27px; }
  .section-label { font-size: 16px; }
  .section-heading { margin-top: 16px; }
  .service-heading, .about-heading { display: block; }
  .service-heading p, .about-heading p { margin-top: 8px; border: 0; padding: 0; font-size: 16px; }
  .works-grid, .roles { grid-template-columns: minmax(0, 1fr); }
  .role { padding: 12px 20px; }
  .role h3 { font-size: 20px; }
  .role p, .contact-description { font-size: 16px; }
  .contact-button { font-size: 17px; }
}
@media (max-width: 520px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
