:root {
  --ink: #101010;
  --muted: #777;
  --line: #171717;
  --paper: #fbfbf8;
  --white: #fff;
  --teal: #078f79;
  --soft: #eff4f1;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.13);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}

html,
body {
  width: 100%;
  max-width: 100%;
}

main,
section,
header,
footer,
nav,
aside {
  max-width: 100%;
}

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

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

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 24px 40px;
  background: rgba(251, 251, 248, 0.88);
  backdrop-filter: blur(16px);
}

.header-pills {
  display: flex;
  gap: 10px;
}

.header-pills a,
.finder-panel dd span,
.finder-panel dd a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal), #046b5b);
  border-radius: 10px;
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.logo-fill {
  fill: #fff;
}

.logo-fill-soft {
  fill: #c9fff2;
}

.logo-line {
  fill: none;
  stroke: #046b5b;
  stroke-linecap: round;
  stroke-width: 4;
}

.brand strong {
  display: block;
  font-size: 21px;
  letter-spacing: 0.04em;
}

.brand small {
  display: block;
  margin-top: -4px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.menu-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.menu-button i {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-button i::before,
.menu-button i::after {
  content: "";
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-button i::before {
  top: 18px;
}

.menu-button i::after {
  top: 26px;
}

.menu-button.is-open i::before {
  top: 22px;
  transform: rotate(45deg);
}

.menu-button.is-open i::after {
  top: 22px;
  transform: rotate(-45deg);
}

.drawer-nav {
  position: fixed;
  z-index: 25;
  top: 92px;
  right: 40px;
  display: grid;
  gap: 10px;
  width: min(280px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
}

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

.drawer-nav a {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  font-weight: 900;
}

.hero {
  padding: 104px 40px 0;
}

.hero-frame {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18) 62%, rgba(0, 0, 0, 0.02));
}

.hero-frame img {
  width: 100%;
  height: 78vh;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(30px, 8vw, 120px);
  bottom: clamp(54px, 9vw, 130px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: #f7ca5e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.8vw, 86px);
  line-height: 1.28;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  width: fit-content;
  border-bottom: 4px solid currentColor;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.18);
}

.finder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 40px 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.finder-panel {
  min-height: 290px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finder-panel:nth-child(2n) {
  border-right: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.panel-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.panel-head a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 900;
}

dl,
dd {
  margin: 0;
}

.finder-panel dl {
  display: grid;
  gap: 16px;
}

.finder-panel dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid #ddd;
}

.finder-panel dt {
  color: #aaa;
  font-size: 13px;
  font-weight: 900;
}

.finder-panel dd {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-panel p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.outline-marquee {
  max-width: 100%;
  overflow: hidden;
  margin: -8px 0 30px;
  color: transparent;
  -webkit-text-stroke: 1px #d8d8d8;
  white-space: nowrap;
  font-size: clamp(56px, 10vw, 150px);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section {
  padding: 98px 40px;
}

.story-section {
  padding-top: 30px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 0.6fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.story-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid transparent;
}

.story-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.story-card.tall img {
  height: 620px;
}

.story-card p {
  position: absolute;
  left: 24px;
  bottom: 20px;
  max-width: min(78%, 300px);
  margin: 0;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  writing-mode: horizontal-tb;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-shadow: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.vertical-copy {
  min-height: 510px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.vertical-copy p {
  margin: 0;
  writing-mode: vertical-rl;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.35;
  font-weight: 900;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 34px;
  border-bottom: 1px solid var(--line);
}

.section-title span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.25;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.service-card div {
  padding: 22px;
}

.service-card p {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

.service-card span,
.works-note p,
.contact-copy p {
  color: var(--muted);
  font-weight: 700;
}

.works-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.works-main {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 8px;
}

.works-note {
  display: grid;
  align-content: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.works-note h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.25;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  padding: 100px 40px 150px;
  background: #111;
  color: var(--white);
}

.contact-copy,
.contact-form {
  max-width: 620px;
}

.contact-copy {
  justify-self: end;
}

.contact-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.2;
}

.contact-form {
  padding: 34px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fbfbfb;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--teal);
  font-weight: 900;
}

.floating-cta {
  position: fixed;
  z-index: 26;
  left: 50%;
  bottom: 16px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.floating-cta a {
  padding: 12px 28px;
  font-size: 20px;
  font-weight: 900;
}

.floating-cta a + a {
  border-left: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 40px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 1181px) {
  .site-header,
  .hero,
  .finder,
  .section,
  .contact-section,
  .site-footer {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-header {
    max-width: none;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .header-pills {
    order: 2;
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand {
    justify-self: start;
    text-align: left;
  }

  .menu-button {
    justify-self: end;
  }

  .hero {
    padding-left: 28px;
    padding-right: 28px;
  }

  .finder {
    margin-left: 28px;
    margin-right: 28px;
  }

  .finder-panel dl div {
    grid-template-columns: 120px 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vertical-copy {
    grid-column: 1 / -1;
    min-height: auto;
    justify-content: flex-end;
  }

  .vertical-copy p {
    writing-mode: horizontal-tb;
    max-width: 900px;
  }

  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
  }

  .header-pills {
    display: none;
  }

  .brand {
    justify-content: flex-start;
  }

  .brand small,
  .menu-button span {
    display: none;
  }

  .menu-button {
    position: static;
  }

  .hero {
    padding: 84px 14px 0;
  }

  .hero-frame,
  .hero-frame img {
    min-height: 620px;
    height: 620px;
  }

  .hero-copy {
    left: 24px;
    right: 24px;
    bottom: 82px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.22;
  }

  .hero h1 span {
    border-bottom-width: 3px;
  }

  .finder {
    grid-template-columns: 1fr;
    margin: 14px;
  }

  .finder-panel {
    border-right: 0;
    padding: 26px;
    min-height: auto;
  }

  .finder-panel dl div {
    grid-template-columns: 1fr;
  }

  .story-grid,
  .service-list,
  .works-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section,
  .contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .story-card img,
  .story-card.tall img,
  .works-main {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .story-card p {
    writing-mode: horizontal-tb;
    max-width: calc(100% - 32px);
    left: 16px;
    bottom: 16px;
    font-size: 16px;
  }

  .vertical-copy {
    min-height: auto;
    justify-content: flex-start;
  }

  .vertical-copy p {
    writing-mode: horizontal-tb;
    font-size: 34px;
  }

  .contact-copy {
    justify-self: start;
  }

  .floating-cta {
    left: 12px;
    right: 12px;
    width: calc(100vw - 24px);
    transform: none;
  }

  .floating-cta a {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: clip;
  }

  .site-header {
    padding: 14px 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  .brand strong {
    font-size: 19px;
  }

  .menu-button {
    top: 16px;
    right: 16px;
  }

  .menu-button i {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.88);
  }

  .menu-button i::before,
  .menu-button i::after {
    left: 11px;
  }

  .drawer-nav {
    top: 78px;
    right: 16px;
    width: calc(100vw - 32px);
  }

  .hero {
    width: 100%;
    padding: 82px 14px 0;
  }

  .hero-frame {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero-frame,
  .hero-frame img {
    min-height: auto;
    height: auto;
  }

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

  .hero-copy {
    position: static;
    padding: 18px;
    color: var(--ink);
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .hero-frame::after {
    bottom: auto;
    height: 68%;
    pointer-events: none;
  }

  .eyebrow {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.28;
  }

  .hero h1 span {
    width: auto;
    text-shadow: none;
  }

  .hero h1 span + span {
    display: none;
  }

  .finder-panel {
    padding: 28px;
  }

  .finder-panel dd {
    width: 100%;
  }

  .panel-head h2 {
    font-size: 34px;
  }

  .finder-panel dd {
    gap: 8px;
  }

  .finder-panel dd span,
  .finder-panel dd a {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }

  .outline-marquee {
    width: 100%;
    margin-top: 18px;
    font-size: 52px;
  }

  .section {
    width: 100%;
    padding: 68px 20px;
  }

  .story-grid {
    gap: 22px;
  }

  .story-card p {
    position: static;
    max-width: none;
    word-break: break-all;
    border-radius: 0 0 8px 8px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }

  .story-card {
    border-color: var(--line);
    background: var(--white);
  }

  .story-card img,
  .story-card.tall img {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .vertical-copy p {
    font-size: 28px;
  }

  .section-title {
    display: block;
  }

  .section-title h2 {
    margin-top: 8px;
    font-size: 30px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    grid-column: auto;
  }

  .works-note {
    padding: 26px;
  }

  .works-note h3 {
    font-size: 28px;
  }

  .contact-section {
    width: 100%;
    padding: 72px 20px 120px;
  }

  .contact-copy h2 {
    font-size: 34px;
  }

  .contact-form {
    padding: 24px;
  }

  .site-footer {
    display: grid;
    padding: 24px 20px 88px;
  }
}

@media (max-width: 420px) {
  .hero-frame,
  .hero-frame img {
    min-height: auto;
    height: auto;
  }

  .hero h1 {
    font-size: 23px;
  }

  .finder {
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }

  .finder-panel {
    padding: 24px;
  }

  .floating-cta {
    bottom: 10px;
    left: 8px;
    right: 8px;
    width: auto;
    max-width: calc(100vw - 16px);
  }

  .floating-cta a {
    font-size: 13px;
  }
}
