@font-face {
  font-family: "Noto Sans JP";
  src: url("./assets/noto-sans-jp.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif JP";
  src: url("./assets/noto-serif-jp.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f4ede3;
  --brown: #8c6745;
  --ink: #322114;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Yu Gothic", sans-serif;
  --u: min(1px, calc(100vw / 1440));
  --arrow: url("./assets/chevron-right.svg");
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 400 16px/1.7 var(--sans); }
img { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #936836; outline-offset: 4px; }
main:focus, section:focus, body:focus { outline: none; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 4;
  transform: translateY(-160%);
  padding: 8px 16px;
  background: var(--cream);
}
.skip-link:focus { transform: none; }
.sp-break { display: none; }
.line-art { object-fit: contain; pointer-events: none; }
.photo { width: 100%; height: 100%; object-fit: cover; }
.section h2 { font-size: calc(40 * var(--u)); line-height: 1.35; letter-spacing: .0325em; }
.section-copy { font: 400 calc(17 * var(--u))/1.7 var(--serif); letter-spacing: .047em; }

.header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1440px);
  height: calc(96 * var(--u));
  padding: 0 calc(47 * var(--u)) 0 calc(64 * var(--u));
  margin-inline: auto;
  color: #faf3df;
}
.wordmark { font-size: calc(24 * var(--u)); font-weight: 500; line-height: 1.15; letter-spacing: .3em; white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; gap: calc(36 * var(--u)); color: #f2ebdc; }
.desktop-nav a, .footer-nav a { font-size: max(13px, calc(16 * var(--u))); font-weight: 500; letter-spacing: .0875em; }
.desktop-nav a:hover, .footer-nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; color: #f6edd9; background: #372517; }
.hero-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner {
  position: relative;
  width: min(100%, 1440px);
  min-height: calc(900 * var(--u));
  margin-inline: auto;
  padding: calc(316 * var(--u)) calc(100 * var(--u)) calc(140 * var(--u));
}
.hero h1 { font-size: calc(48 * var(--u)); line-height: 1.25; letter-spacing: .042em; }
.hero p {
  max-width: calc(398 * var(--u));
  margin-top: calc(50 * var(--u));
  font: 400 calc(18 * var(--u))/1.7 var(--serif);
  letter-spacing: .044em;
  color: #ebe5d6;
}
.hero-art { position: absolute; width: calc(296 * var(--u)); height: auto; left: calc(462 * var(--u)); top: calc(372 * var(--u)); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(100%, max(240px, calc(300 * var(--u))));
  min-height: max(44px, calc(64 * var(--u)));
  padding: 10px calc(26 * var(--u)) 10px calc(34 * var(--u));
  border: 0;
  border-radius: 12px;
  background: #fdf8ee;
  color: #322114;
  font: 500 max(14px, calc(16 * var(--u)))/1.7 var(--sans);
  letter-spacing: .056em;
  text-align: left;
}
.cta::after, .menu-links a::after {
  flex: 0 0 22px;
  height: 22px;
  background: var(--arrow) center / contain no-repeat;
  content: "";
}
.cta:hover { filter: brightness(.96); }
.cta-hero {
  width: min(100%, max(200px, calc(251 * var(--u))));
  min-height: max(44px, calc(57 * var(--u)));
  margin-top: calc(44 * var(--u));
  padding-right: calc(25 * var(--u));
  border-radius: 10px;
  background: #f6ecd7;
  font-weight: 700;
}
.cta-dark {
  --arrow: url("./assets/chevron-right-cream.svg");
  width: min(100%, max(260px, calc(300 * var(--u))));
  background: #523619;
  color: #f9f5ef;
}
.cta-contact {
  width: min(100%, max(220px, calc(313 * var(--u))));
  min-height: max(44px, calc(63 * var(--u)));
  margin-top: calc(34 * var(--u));
  border-radius: 11px;
  background: #f9f1e2;
  color: #351a0c;
  font-weight: 700;
}

.works { padding-block: calc(110 * var(--u)) calc(76 * var(--u)); }
.works-grid {
  display: grid;
  grid-template-columns: minmax(0, 750fr) minmax(0, 512fr);
  grid-template-rows: auto 1fr auto;
  column-gap: calc(50 * var(--u));
  width: min(100% - 128 * var(--u), 1312px);
  margin-inline: auto;
}
.works-intro { grid-column: 2; grid-row: 1; padding-top: calc(38 * var(--u)); color: #45260e; }
.works-art { width: calc(332 * var(--u)); height: auto; margin: 0 auto calc(66 * var(--u)); }
.works-intro .section-copy { max-width: calc(428 * var(--u)); margin-top: calc(50 * var(--u)); color: #563c28; }
.works-gallery { grid-column: 1; grid-row: 1 / 4; display: grid; gap: calc(20 * var(--u)); }
.works-gallery figure { position: relative; overflow: hidden; border-radius: 19px; }
.works-gallery figure:first-child { aspect-ratio: 750 / 428; }
.works-gallery figure:nth-child(2) { aspect-ratio: 750 / 413; }
.works-gallery figcaption {
  position: absolute;
  inset: auto 18px calc(30 * var(--u)) calc(30 * var(--u));
  color: #f6edd9;
  font: 400 calc(22 * var(--u))/1.35 var(--serif);
  letter-spacing: .045em;
  text-shadow: 0 1px 8px #251607;
}
.works-button { grid-column: 2; grid-row: 2; align-self: start; margin-top: calc(38 * var(--u)); border: 1px solid #e2d3b9; }
.works-note {
  grid-column: 2;
  grid-row: 3;
  width: 104px;
  margin-bottom: calc(57 * var(--u));
  padding-bottom: 5px;
  border-bottom: 1px solid #68543e;
  color: #5e4733;
  font-size: max(12px, calc(13 * var(--u)));
  letter-spacing: .067em;
}

.feature { padding-block: calc(76 * var(--u)); }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--copy-width)) minmax(0, var(--photo-width));
  grid-template-rows: 1fr auto auto 1fr;
  gap: 0 var(--gap);
  width: min(100% - var(--left) - var(--right), var(--max));
  margin-inline: auto;
  transform: translateX(calc((var(--left) - var(--right)) / 2));
}
.building {
  --copy-width: 512fr; --photo-width: 750fr; --gap: calc(28 * var(--u));
  --left: calc(96 * var(--u)); --right: calc(54 * var(--u)); --max: 1290px;
  color: #311d0c;
}
.feature-copy { position: relative; grid-column: 1; grid-row: 2; }
.feature-copy .section-copy { margin-top: calc(50 * var(--u)); }
.feature-art { position: absolute; height: auto; }
.feature-photo { grid-column: 2; grid-row: 1 / 5; align-self: center; }
.feature-button { grid-column: 1; grid-row: 3; align-self: start; margin-top: calc(38 * var(--u)); }
.building .feature-photo { aspect-ratio: 750 / 482; border-radius: 26px; }
.building .section-copy { max-width: calc(490 * var(--u)); font-family: var(--sans); color: #47382b; }
.building .feature-art { right: 0; top: calc(54 * var(--u)); width: calc(137 * var(--u)); }
.renovation {
  --copy-width: 665fr; --photo-width: 620fr; --gap: calc(61 * var(--u));
  --left: calc(53 * var(--u)); --right: calc(41 * var(--u)); --max: 1346px;
  color: #4f3316;
}
.renovation .feature-grid { grid-template-columns: minmax(0, var(--photo-width)) minmax(0, var(--copy-width)); }
.renovation .feature-photo { grid-column: 1; aspect-ratio: 620 / 514; border-radius: 19px; }
.renovation .feature-copy, .renovation .feature-button { grid-column: 2; }
.renovation .section-copy { max-width: calc(618 * var(--u)); color: #593f27; }
.renovation .feature-art { right: 0; top: calc(-6 * var(--u)); width: calc(191 * var(--u)); }
.about {
  --copy-width: 590fr; --photo-width: 626fr; --gap: calc(40 * var(--u));
  --left: calc(102 * var(--u)); --right: calc(82 * var(--u)); --max: 1256px;
  padding-bottom: calc(110 * var(--u));
  color: #301a08;
}
.about .feature-photo { aspect-ratio: 626 / 449; border-radius: 27px; }
.about .section-copy { max-width: calc(567 * var(--u)); color: #412f21; }
.about .feature-art { right: calc(27 * var(--u)); top: calc(271 * var(--u)); width: calc(224 * var(--u)); }

.contact, .footer { background: var(--brown); color: #faf6ee; }
.contact { padding-block: calc(80 * var(--u)) calc(76 * var(--u)); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 536fr) minmax(0, 680fr);
  align-items: center;
  gap: calc(74 * var(--u));
  width: min(100% - 150 * var(--u), 1290px);
  margin-inline: auto;
  transform: translateX(calc(7 * var(--u)));
}
.contact-photo { aspect-ratio: 536 / 332; }
.contact-copy { position: relative; }
.contact-copy .section-copy { max-width: calc(468 * var(--u)); margin-top: calc(50 * var(--u)); color: #f9f2e8; }
.contact-art { position: absolute; right: calc(8 * var(--u)); top: calc(91 * var(--u)); width: calc(177 * var(--u)); height: auto; }
.footer { padding-block: calc(76 * var(--u)) calc(160 * var(--u)); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 930fr) minmax(0, 262fr);
  align-items: center;
  gap: calc(34 * var(--u));
  width: min(100% - 214 * var(--u), 1226px);
  margin-inline: auto;
  transform: translateX(calc(25 * var(--u)));
}
.footer-logo { display: inline-block; font-size: calc(36 * var(--u)); letter-spacing: .36em; color: #fdfdfd; }
.footer-nav { display: flex; align-items: center; justify-content: space-between; margin-top: calc(47 * var(--u)); color: #fdfcfb; }
.footer-nav a + a { border-left: 1.5px solid #f5f0edaa; padding-left: calc(63 * var(--u)); }
.footer-art { width: 100%; height: auto; }

.icon-button {
  position: relative;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}
.icon-button::before, .icon-button::after, .menu-toggle span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  content: "";
}
.menu-toggle::before { transform: translate(-50%, -7px); }
.menu-toggle::after { transform: translate(-50%, 6px); }
.menu-toggle span { transform: translate(-50%, -50%); }
.close-button::before { transform: translate(-50%, -50%) rotate(45deg); }
.close-button::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0 max(24px, calc((100% - 620px) / 2)) 32px;
  border: 0;
  background: var(--cream);
  color: #45260e;
}
.menu-header { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.menu-header .close-button { margin-right: -12px; }
.menu-links { margin-top: 22px; border-top: 1px solid #69513c40; }
.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid #69513c40;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .045em;
}
.menu-links a::after { flex-basis: 18px; }
.menu-art { width: 150px; height: auto; margin: 34px 2px 0 auto; }
body:has(dialog[open]) { overflow: hidden; }
.detail-dialog {
  width: min(680px, 100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: var(--cream);
}
.detail-dialog::backdrop { background: #211409a6; }
.detail-dialog .close-button { position: absolute; top: 12px; right: 12px; }
.detail-dialog h2 { margin: 0 32px 20px 0; font-size: clamp(20px, 4vw, 30px); line-height: 1.35; }
.detail-content { display: grid; gap: 18px; }
.detail-content .feature-photo { grid-column: auto; grid-row: auto; height: auto; border-radius: 12px; }
.detail-content .works-gallery { grid-column: auto; grid-row: auto; gap: 16px; }
.detail-content .works-note { margin: 0; }

@media (max-width: 960px) {
  :root { --pad: max(clamp(16px, 6.154vw, 24px), calc((100% - 620px) / 2)); }
  .sp-break { display: initial; }
  .header { height: 72px; padding-inline: var(--pad); }
  .wordmark { font-size: 20px; letter-spacing: .25em; }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; margin-right: -12px; }
  .hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgb(26 16 9 / 47%), rgb(26 16 9 / 53%) 20%, rgb(26 16 9 / 62%) 59%, rgb(26 16 9 / 43%) 76%, rgb(26 16 9 / 6%));
    content: "";
  }
  .hero-inner { min-height: 668px; padding: 168px var(--pad) 118px; }
  .hero h1 { font-size: clamp(28px, 8.72vw, 34px); letter-spacing: .7px; }
  .hero p { max-width: 350px; margin-top: 25px; font-size: 16px; letter-spacing: .22px; }
  .hero-art {
    position: relative;
    inset: auto;
    /* Scale up on wider phones, then return to the base size by 600px. */
    width: clamp(187.5px, min(48.077vw, calc(337.5px - 25vw)), 212px);
    margin: 17px 4px 0 auto;
  }
  .section h2 { font-size: clamp(23px, 6.67vw, 26px); line-height: 1.35; letter-spacing: .15px; }
  .section-copy { font-size: 16px; letter-spacing: .22px; }
  .cta { width: min(100%, 300px); min-height: 64px; padding-inline: min(8.72vw, 34px) 26px; font-size: 16px; }
  .cta-hero { width: 222px; min-height: 55px; margin-top: 28px; padding-inline: 22px 18px; }
  .cta-contact { width: 242px; min-height: 58px; margin-top: 25px; padding-inline: 22px 18px; }
  .works { padding: 73px var(--pad) 51px; }
  .works-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "intro" "gallery" "note" "button";
    gap: 25px;
  }
  .works-intro { position: relative; grid-area: intro; padding-top: 0; }
  .works-art { position: absolute; top: -65px; right: 0; width: 136.8px; margin: 0; }
  .works-intro .section-copy { max-width: none; margin-top: 25px; }
  .works-gallery { grid-area: gallery; gap: 16px; }
  .works-gallery figure { border-radius: 12px; }
  .works-gallery figure:first-child { aspect-ratio: 342 / 207; }
  .works-gallery figure:nth-child(2) { aspect-ratio: 342 / 196; }
  .works-gallery figcaption { left: 15px; bottom: 15px; font-size: 17px; letter-spacing: .6px; }
  .works-note { grid-area: note; margin: 0; padding-bottom: 6px; font-size: 15px; letter-spacing: 1px; }
  .works-button { grid-area: button; margin: 0; }
  .feature { padding: 51px var(--pad); }
  .about { padding-bottom: 73px; }
  .feature-grid, .renovation .feature-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "copy" "photo" "button";
    gap: 25px;
    transform: none;
  }
  .feature-copy, .renovation .feature-copy { grid-area: copy; }
  .feature-photo, .renovation .feature-photo { grid-area: photo; }
  .feature-button, .renovation .feature-button { grid-area: button; margin-top: 0; }
  .feature-copy .section-copy { max-width: none; margin-top: 25px; }
  .building .feature-photo { aspect-ratio: 342 / 220; border-radius: 12px; }
  .building .feature-art { top: 4px; right: 0; width: min(27%, 91px); }
  .building h2 { max-width: calc(100% - min(28%, 96px)); }
  .renovation .feature-grid { grid-template-areas: "photo" "copy" "button"; }
  .renovation .feature-photo { aspect-ratio: 342 / 262; border-radius: 12px; }
  .renovation .feature-copy, .about .feature-copy { padding-top: 58px; }
  .renovation .feature-art { top: 0; right: 3px; width: 91px; }
  .about .feature-art { top: -14px; right: 0; width: 141.6px; }
  .about .feature-photo { aspect-ratio: 342 / 241; border-radius: 12px; }
  .contact { padding: 53px var(--pad) 54px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); width: 100%; gap: 25px; transform: none; }
  .contact-photo { aspect-ratio: 342 / 216; }
  .contact-copy h2 { width: calc(100% - 79px); }
  .contact-art { top: 1px; right: 1px; width: 77px; }
  .contact-copy .section-copy { max-width: none; margin-top: 25px; }
  .footer { padding: 51px var(--pad) 64px; }
  .footer-grid { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 25px; transform: none; }
  .footer-logo { font-size: 26px; letter-spacing: 7px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 4px; margin-top: 27px; }
  .footer-nav a { font-size: 16px; letter-spacing: .45px; }
  .footer-nav a + a { border: 0; padding: 0; }
  .footer-art { width: 149px; }
  .detail-content .works-gallery, .detail-content .feature-photo, .detail-content .works-note { grid-area: auto; }
}

@media (max-width: 360px) {
  .building h2 { max-width: 100%; padding-right: 67px; font-size: 22px; }
  .building .feature-art { width: 66px; }
  .about h2 { text-wrap: balance; }
  .about h2 br { display: none; }
  .renovation .section-copy, .about .section-copy { text-wrap: pretty; }
  .renovation .section-copy .sp-break, .about .section-copy .sp-break { display: none; }
  .contact-copy h2 { width: 100%; padding-right: 64px; font-size: clamp(18px, 6.1vw, 22px); }
  .contact-art { width: 60px; }
  .cta { padding-right: 18px; }
}
