:root {
  --color-bg: #f7f4ee;
  --color-bg-sub: #efe9df;
  --color-text: #302b27;
  --color-muted: #776f66;
  --color-line: #d8cfc2;
  --color-accent: #8a7662;
  --color-white: #ffffff;
  --font-serif-en: "Cormorant Garamond", Georgia, serif;
  --font-serif-ja: "Noto Serif JP", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", system-ui, sans-serif;
  --container: 1120px;
  --header-height: 112px;
  --page-gutter: 4vw;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif-ja);
  font-size: 1.6rem;
  line-height: 1.9;
  overflow-x: hidden;
}

p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
}

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

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  margin: 0 auto;
}

.site-header {
  background: rgba(247, 244, 238, 0.96);
  border-bottom: 1px solid rgba(216, 207, 194, 0.45);
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  box-shadow: 0 2px 12px rgba(48, 43, 39, 0.06);
}

main {
  padding-top: var(--header-height);
}

.header-inner {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1260px);
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-grid;
  gap: 3px;
  color: var(--color-text);
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-serif-en);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.3;
}

.brand-sub span {
  width: 52px;
  height: 1px;
  background: var(--color-text);
  opacity: 0.72;
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  font-family: var(--font-sans);
  font-size: 1.6rem;
  letter-spacing: 0;
}

.site-nav a,
.footer-nav a,
.footer-links a {
  color: var(--color-text);
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.footer-nav a:hover,
.footer-links a:hover {
  color: var(--color-accent);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 9px;
  border: 1px solid var(--color-line);
  background: transparent;
  cursor: pointer;
}

.menu-button:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-sub);
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button span + span {
  margin-top: 8px;
}

.menu-button.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(35deg);
}

.menu-button.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-35deg);
}

.hero {
  position: relative;
  height: clamp(430px, 43vw, 560px);
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #3b332b;
  width: 100%;
}

.hero::after,
.contact-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(38, 31, 25, 0.22);
}

.hero img,
.contact-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero img {
  object-position: center 47%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--page-gutter) * 2)), 920px);
  color: var(--color-white);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.35;
}

.hero-copy h1 span {
  display: inline;
}

.hero-copy p {
  margin: 10px 0 0;
  font-size: clamp(15px, 1.4vw, 19px);
}

.section {
  padding: clamp(76px, 9vw, 112px) 0 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  font-family: var(--font-serif-en);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.section-label::after {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.75;
}

.section-copy h2 {
  margin: 0 0 26px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.65;
}

.section-copy p:not(.section-label) {
  margin: 0;
  color: var(--color-text);
  font-size: 1.6rem;
}

.about-image img {
  width: 100%;
  aspect-ratio: 1.92 / 1;
  object-fit: cover;
  object-position: center;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading .section-label {
  margin-bottom: 8px;
}

.section-heading > p:not(.section-label) {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.6rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
}

.service-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--color-line);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
}

.card-body {
  padding: 21px 20px 22px;
}

.card-body h3 {
  margin: 0 0 13px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.card-body h3 span {
  margin-right: 12px;
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 1.6rem;
}

.card-body p {
  min-height: 78px;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 1.6rem;
  line-height: 1.8;
}

.card-body a,
.center-link a,
.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card-body a::after,
.center-link a::after,
.outline-button::after {
  content: "→";
  line-height: 1;
}

.card-body a:hover,
.center-link a:hover {
  color: var(--color-accent);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 54px);
}

.work-item img {
  width: 100%;
  aspect-ratio: 1.95 / 1;
  object-fit: cover;
}

.work-item h3 {
  margin: 16px 0 0;
  font-family: var(--font-serif-en);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
}

.work-item p {
  margin: 3px 0 0;
  color: var(--color-muted);
  font-size: 1.6rem;
}

.center-link {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.center-link a {
  border-bottom: 1px solid var(--color-line);
  padding: 0 28px 9px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.flow-step {
  position: relative;
  text-align: center;
}

.flow-step:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 38px;
  right: -12px;
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 1.6rem;
}

.line-icon {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
}

.line-icon::before,
.line-icon::after {
  content: "";
  position: absolute;
  border: 1px solid var(--color-accent);
}

.icon-chat::before {
  inset: 15px 6px 12px 6px;
  border-radius: 50%;
}

.icon-chat::after {
  width: 10px;
  height: 10px;
  left: 12px;
  bottom: 7px;
  border-top: 0;
  border-right: 0;
  transform: rotate(-12deg);
}

.icon-plan::before {
  inset: 6px 13px;
  border-radius: 1px;
}

.icon-plan::after {
  width: 17px;
  height: 1px;
  left: 19px;
  top: 20px;
  border-width: 1px 0 0;
  box-shadow: 0 9px 0 var(--color-accent), 0 18px 0 var(--color-accent);
}

.icon-contract::before {
  width: 28px;
  height: 28px;
  left: 7px;
  top: 17px;
  transform: rotate(45deg);
}

.icon-contract::after {
  width: 28px;
  height: 28px;
  right: 7px;
  top: 17px;
  transform: rotate(45deg);
  border-left: 0;
  border-bottom: 0;
}

.icon-chair::before {
  width: 24px;
  height: 22px;
  left: 15px;
  top: 12px;
  border-radius: 4px 4px 1px 1px;
}

.icon-chair::after {
  width: 34px;
  height: 18px;
  left: 10px;
  top: 29px;
  border-top: 0;
}

.icon-lamp::before {
  width: 30px;
  height: 16px;
  left: 12px;
  top: 19px;
  transform: perspective(30px) rotateX(28deg);
}

.icon-lamp::after {
  width: 1px;
  height: 23px;
  left: 26px;
  top: 31px;
  border-width: 0 0 0 1px;
  box-shadow: -10px 22px 0 -1px var(--color-accent), 10px 22px 0 -1px var(--color-accent);
}

.icon-home::before {
  width: 29px;
  height: 23px;
  left: 13px;
  top: 24px;
}

.icon-home::after {
  width: 25px;
  height: 25px;
  left: 14px;
  top: 10px;
  transform: rotate(45deg);
  border-right: 0;
  border-bottom: 0;
}

.flow-step h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.55;
}

.flow-step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.6rem;
  line-height: 1.7;
}

.inline-heading {
  display: flex;
  align-items: baseline;
  gap: 42px;
}

.inline-heading .section-label {
  margin: 0;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
}

.voice-card {
  background: var(--color-bg-sub);
  padding: 31px 34px 29px;
  min-height: 122px;
}

.voice-card p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.75;
}

.voice-card cite {
  color: var(--color-muted);
  font-size: 1.6rem;
  font-style: normal;
}

.contact-cta {
  position: relative;
  min-height: 280px;
  margin-top: clamp(76px, 9vw, 112px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
  width: 100%;
}

.contact-cta::after {
  background: rgba(41, 32, 25, 0.56);
}

.contact-cta img {
  object-position: center 63%;
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--page-gutter) * 2)), 840px);
  padding: 50px 0;
}

.contact-inner h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 500;
  line-height: 1.55;
}

.contact-inner p {
  margin: 12px 0 26px;
  font-size: 1.6rem;
}

.outline-button {
  justify-content: center;
  min-width: min(420px, 100%);
  min-height: 58px;
  padding: 15px 32px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: var(--color-white);
}

.outline-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
}

.blog-anchor {
  height: 1px;
}

.site-footer {
  background: var(--color-bg);
  padding: 52px 0 36px;
  width: 100%;
}

.footer-inner {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1260px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 20px 46px;
}

.footer-nav {
  justify-content: center;
  align-self: center;
  gap: clamp(18px, 2vw, 30px);
}

.footer-links {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-sans);
  font-size: 1.6rem;
}

.social-links {
  display: flex;
  gap: 16px;
  align-self: center;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-text);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.social-links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.copyright {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  text-align: center;
  color: var(--color-muted);
  font-family: var(--font-serif-en);
  font-size: 1.6rem;
}

@media (max-width: 1024px) {
  :root {
    --header-height: 92px;
  }
  .header-inner {
    width: min(calc(100% - (var(--page-gutter) * 2)), 940px);
    min-height: 92px;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 11;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    background: rgba(247, 244, 238, 0.98);
    font-size: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-button {
    display: block;
    position: relative;
    z-index: 12;
    flex: 0 0 auto;
    background: rgba(247, 244, 238, 0.92);
  }

  .card-grid,
  .works-grid,
  .voice-grid {
    gap: 24px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 24px;
  }

  .flow-step:nth-child(3)::after {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    width: min(calc(100% - (var(--page-gutter) * 2)), 900px);
  }

  .footer-links {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 78px;
  }

  .container {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: 100%;
  }

  .header-inner {
    position: relative;
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: 100%;
    min-height: 78px;
    gap: 12px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-sub {
    gap: 10px;
    font-size: 1.6rem;
  }

  .brand-sub span {
    width: 32px;
  }

  .menu-button {
    display: block;
    position: relative;
    right: 0;
    left: auto;
    z-index: 12;
    flex: 0 0 auto;
    background: rgba(247, 244, 238, 0.92);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 11;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    background: rgba(247, 244, 238, 0.98);
    font-size: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    height: 540px;
    min-height: 540px;
  }

  .hero::after {
    background: rgba(38, 31, 25, 0.34);
  }

  .hero img {
    object-position: center;
  }

  .hero-copy {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: 520px;
  }

  .hero-copy h1 {
    font-size: 31px;
    line-height: 1.45;
  }

  .hero-copy h1 span {
    display: block;
  }

  .section {
    padding-top: 72px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-image {
    order: 2;
  }

  .section-label {
    font-size: 28px;
    gap: 14px;
  }

  .section-label::after {
    width: 38px;
  }

  .section-copy h2 {
    margin-bottom: 18px;
  }

  .section-copy p:not(.section-label) br {
    display: none;
  }

  .about-image img {
    max-width: 100%;
    aspect-ratio: 1.45 / 1;
  }

  .card-grid,
  .works-grid,
  .voice-grid {
    grid-template-columns: 1fr;
  }

  .card-body p {
    min-height: 0;
  }

  .work-item img,
  .service-card img {
    aspect-ratio: 1.55 / 1;
  }

  .flow-list {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--color-line);
  }

  .flow-step {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 0 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
  }

  .flow-step::after {
    display: none;
  }

  .line-icon {
    grid-row: span 2;
    margin: 0;
  }

  .flow-step h3 {
    margin-bottom: 5px;
  }

  .inline-heading {
    display: block;
  }

  .inline-heading .section-label {
    margin-bottom: 8px;
  }

  .voice-card {
    padding: 27px 25px;
  }

  .contact-cta {
    min-height: 340px;
  }

  .contact-inner {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: 520px;
  }

  .outline-button {
    width: 100%;
    padding-inline: 18px;
  }

  .footer-inner {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: 640px;
    gap: 24px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
