:root {
  --bg: #f7f2e9;
  --bg-soft: #eee6da;
  --surface: #fffaf2;
  --surface-strong: #fdf7ed;
  --ink: #24201c;
  --ink-soft: #5f574f;
  --muted: #7d746a;
  --line: #dfd3c2;
  --brand: #9d7a39;
  --brand-dark: #6f5428;
  --shadow: 0 20px 60px rgba(55, 42, 24, 0.12);
  --max: 1120px;
  --hero-left-min: 31rem;
  --hero-copy-width: 30rem;
  --hero-gutter: clamp(2rem, 4.5vw, 4.5rem);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Source Han Serif JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", sans-serif;
  --type-caption: 0.875rem;
  --type-small: 0.875rem;
  --type-body: 1rem;
  --type-lead: 1.125rem;
  --type-card-title: 1.35rem;
  --type-section: 2.1rem;
  --type-hero: clamp(2.55rem, 3.2vw, 3.35rem);
  --leading-body: 1.82;
  --leading-tight: 1.35;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  letter-spacing: 0;
  font-kerning: normal;
  font-feature-settings: "palt";
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--surface);
  border-radius: 4px;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  background: rgba(247, 242, 233, 0.92);
  border-bottom: 1px solid rgba(223, 211, 194, 0.7);
  backdrop-filter: saturate(1.15) blur(14px);
}

.header-inner,
.section-inner,
.identity-inner,
.contact-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(var(--hero-left-min), 5fr) 7fr;
  align-items: center;
  width: 100%;
  min-height: 76px;
  gap: 0;
  margin: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.75rem;
  min-width: 0;
}

.site-header .brand {
  justify-self: center;
  width: min(calc(100% - var(--hero-gutter) - var(--hero-gutter)), var(--hero-copy-width));
}

.brand-mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--brand);
  color: #fff8eb;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.brand-text span {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.brand-text small {
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 2.5rem;
  padding-right: var(--hero-gutter);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block: 0.4rem;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease-out;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  min-width: 4.5rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 250, 242, 0.7);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(var(--hero-left-min), 5fr) 7fr;
  min-height: 94svh;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 100%;
}

.hero-media img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 64% 50%;
}

.hero::after {
  content: none;
}

.hero-panel {
  display: none;
}

.hero-inner {
  position: relative;
  display: grid;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-content: center;
  justify-items: center;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 7rem var(--hero-gutter) 5rem;
  background: rgba(247, 242, 233, 0.96);
  border-right: 1px solid rgba(223, 211, 194, 0.72);
}

.hero-inner > * {
  width: min(100%, var(--hero-copy-width));
  max-width: var(--hero-copy-width);
}

.eyebrow,
.section-label,
.service-kicker {
  margin: 0;
  color: var(--brand-dark);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: var(--leading-tight);
  text-wrap: balance;
}

.hero h1 {
  margin-top: 1rem;
  font-size: var(--type-hero);
  max-width: 29rem;
}

.hero-lead {
  margin: 1.4rem 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-note {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.72rem 1.2rem;
  border: 1px solid var(--brand);
  border-radius: 4px;
  font-size: 0.94rem;
  font-weight: 700;
}

.button-primary {
  background: var(--brand);
  color: #fff8eb;
}

.button-ghost {
  background: rgba(255, 250, 242, 0.45);
  color: var(--brand-dark);
}

@media (min-width: 1680px) {
  :root {
    --hero-copy-width: 34rem;
  }

  .hero {
    --type-hero: 3.9rem;
  }

  .hero h1 {
    max-width: 34rem;
    line-height: 1.24;
  }

  .hero-lead {
    font-size: 1.3rem;
  }

  .hero-note {
    font-size: 1.05rem;
  }

  .button {
    min-height: 3.05rem;
    padding-inline: 1.35rem;
  }
}

.identity-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.identity-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.identity-inner div {
  display: grid;
  gap: 0.25rem;
  min-height: 8.6rem;
  align-content: center;
  padding: 1.5rem 1.6rem;
  border-left: 1px solid var(--line);
}

.identity-inner div:last-child {
  border-right: 1px solid var(--line);
}

.identity-inner span,
.identity-inner small {
  color: var(--muted);
  font-size: var(--type-caption);
}

.identity-inner strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.section {
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.section-copy {
  max-width: 34rem;
}

.section h2,
.contact-section h2 {
  margin-top: 0.8rem;
  font-size: var(--type-section);
}

.section-copy p:not(.section-label),
.section-head p,
.contact-section p {
  color: var(--ink-soft);
  line-height: var(--leading-body);
  text-wrap: pretty;
}

.image-feature {
  margin: 0;
}

.image-feature img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-feature figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: var(--type-caption);
  text-align: right;
}

.services-section {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 0.8rem;
  max-width: 43rem;
  margin-bottom: 2.6rem;
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 0;
  font-size: var(--type-lead);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-item {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 1.2rem;
  min-height: 18rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-item-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(18rem, 42%) 1fr;
}

.service-item img {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  border-radius: 6px;
}

.service-item div {
  align-self: center;
  padding: 0.5rem 0.5rem 0.5rem 0;
}

.service-item h3 {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: var(--type-card-title);
  line-height: 1.35;
}

.service-summary {
  margin: 0.55rem 0 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.service-item p:not(.service-summary) {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.78;
  text-wrap: pretty;
}

.company-section {
  background: var(--surface-strong);
}

.company-layout {
  align-items: start;
}

.company-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.company-table {
  margin: 0;
}

.company-table div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.company-table div:last-child {
  border-bottom: 0;
}

.company-table dt {
  color: var(--muted);
  font-size: var(--type-small);
  font-weight: 700;
}

.company-table dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

.contact-section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: var(--ink);
  color: #fff8eb;
}

.contact-inner {
  display: grid;
  gap: 0.8rem;
  text-align: center;
}

.contact-section .section-label,
.contact-section p {
  color: #d8c7ad;
}

.contact-section p {
  margin: 0 auto;
  max-width: 34rem;
}

.mail-link {
  justify-self: center;
  min-height: 3rem;
  margin-top: 1.1rem;
  padding: 0.72rem 1.2rem;
  border: 1px solid rgba(255, 248, 235, 0.34);
  border-radius: 4px;
  color: #fff8eb;
  font-weight: 700;
}

.site-footer {
  background: #181512;
  color: #d7cab7;
  border-top: 1px solid rgba(255, 248, 235, 0.12);
}

.footer-inner {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-brand .brand-text span {
  color: #fff8eb;
}

.footer-brand .brand-text small,
.site-footer p,
.site-footer small {
  margin: 0;
  color: #b9aa93;
  font-size: var(--type-caption);
}

:focus-visible {
  outline: 3px solid rgba(157, 122, 57, 0.5);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .header-inner {
    display: flex;
    width: min(var(--max), calc(100% - 3rem));
    justify-content: space-between;
    gap: 2rem;
    margin-inline: auto;
  }

  .site-header .brand {
    width: auto;
    justify-self: auto;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.7rem 1.5rem 1.4rem;
    background: rgba(247, 242, 233, 0.98);
    border-bottom: 1px solid var(--line);
    justify-self: auto;
  }

  body.menu-open .site-nav {
    display: grid;
  }

  .site-nav a {
    min-height: 3rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 76px;
  }

  .hero-media {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    height: 42svh;
    min-height: 23rem;
  }

  .hero-panel {
    display: none;
  }

  .hero::after {
    display: none;
  }

  .hero-inner {
    grid-column: 1;
    grid-row: 2;
    width: min(var(--max), calc(100% - 2rem));
    min-height: auto;
    margin-inline: auto;
    padding: 2.3rem 0 3.2rem;
    background: transparent;
    border-right: 0;
  }

  .hero-inner > * {
    width: 100%;
    max-width: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2.25rem;
  }

  .hero-lead {
    font-size: 1.15rem;
  }

  .identity-inner {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .identity-inner div {
    min-height: 7rem;
  }

  .identity-inner div:nth-child(odd) {
    border-left: 0;
  }

  .identity-inner div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .identity-inner div:last-child {
    border-right: 0;
  }

  .two-column,
  .service-list,
  .service-item,
  .service-item-wide {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item-wide {
    min-height: auto;
  }

  .service-item div {
    padding: 0.2rem 0.2rem 0.4rem;
  }
}

@media (max-width: 920px) and (orientation: landscape) {
  .hero-media {
    height: 56svh;
    min-height: 15rem;
  }
}

@media (max-width: 560px) {
  :root {
    --type-section: 1.8rem;
  }

  .header-inner,
  .section-inner,
  .contact-inner,
  .footer-inner {
    width: calc(100% - 2rem);
  }

  .brand-text span {
    font-size: 0.98rem;
  }

  .brand-text small {
    font-size: var(--type-caption);
  }

  .hero-media {
    height: 39svh;
    min-height: 20rem;
  }

  .hero-media img {
    object-position: 62% 50%;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero-actions {
    display: grid;
  }

  .identity-inner strong {
    font-size: 1.5rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .service-item {
    padding: 0.8rem;
  }

  .service-item img {
    min-height: 12rem;
  }

  .company-table div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
