:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-muted: #ebe7dd;
  --text: #1d2520;
  --muted: #667169;
  --line: #d8d2c6;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --accent-soft: #d8ede9;
  --shadow: 0 18px 45px rgba(29, 37, 32, 0.08);
  --content-max: 1120px;
  --sidebar-width: 250px;
  --page-gutter: max(
    20px,
    calc((100vw - var(--sidebar-width) - var(--content-max)) / 2)
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  line-height: 1.7;
}

main,
.site-footer {
  margin-left: var(--sidebar-width);
}

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

main a:not(.button) {
  color: #0057b8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

main a:not(.button):hover,
main a:not(.button):focus-visible {
  color: #003d82;
}

.site-header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 48px;
  padding: 36px 28px;
  overflow-y: auto;
  background: rgba(247, 244, 238, 0.92);
  border-right: 1px solid rgba(216, 210, 198, 0.7);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-dark);
}

.hero {
  min-height: 50svh;
  display: grid;
  align-items: start;
  padding: 0 var(--page-gutter) clamp(24px, 4vw, 48px);
  background: #ffffff;
}

.hero-content {
  width: min(var(--content-max), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero-media {
  order: 1;
  justify-self: start;
}

.hero-media img {
  display: block;
  width: 150%;
  max-width: 350px;
  object-fit: cover;
  border-radius: 0;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.hero-copy {
  order: 2;
  max-width: 620px;
  justify-self: end;
}

.eyebrow,
.card-label {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(20px, 4.2vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-title-block {
  grid-column: 1 / -1;
  width: calc(100% + var(--page-gutter) + var(--page-gutter));
  margin-left: calc(0px - var(--page-gutter));
  padding: 20px 20px;
  background: #dcefe4;
  color: #17211b;
  border-radius: 4px;
  text-align: center;
}

#hero-title {
  font-size: clamp(20px, 3vw, 48px);
  font-weight: 700;
  overflow-wrap: normal;
  white-space: nowrap;
}

.hero-role {
  margin: 7px 0 0;
  color: #35463b;
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 700;
  overflow-wrap: normal;
  white-space: nowrap;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #37443d;
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
  line-height: 1.2;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  color: var(--accent-dark);
}

.section {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 80px);
  padding: clamp(56px, 9vw, 104px) var(--page-gutter);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

.text-block {
  max-width: 760px;
  color: #35423b;
  font-size: 18px;
}

.text-block p {
  margin: 0;
}

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

.work-card {
  min-height: 230px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(216, 210, 198, 0.85);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.work-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.work-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 28px var(--page-gutter);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  :root {
    --sidebar-width: 0px;
  }

  main,
  .site-footer {
    margin-left: 0;
  }

  .site-header {
    position: sticky;
    bottom: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    overflow-y: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 210, 198, 0.7);
  }

  .nav {
    flex-direction: row;
    gap: clamp(14px, 3vw, 28px);
  }

  .hero {
    min-height: calc(100svh - 68px);
  }
}

@media (max-width: 860px) {
  .section {
    grid-template-columns: 1fr;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 220px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: calc(100svh - 108px);
  }
}
