:root {
  --color-bg: #F8F7F2;
  --color-main: #0B1B2B;
  --color-text: #26313D;
  --color-sub: #66717D;
  --color-line: #DCD6C8;
  --color-accent: #A8874A;
  --color-card: #FFFFFF;
  --color-card-soft: #FCFBF7;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Inter", sans-serif;
  --container: 1120px;
  --narrow: 760px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(220, 214, 200, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 214, 200, 0.2) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 55%);
}

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

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

a:focus-visible {
  outline: 2px solid rgba(168, 135, 74, 0.72);
  outline-offset: 5px;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: var(--narrow);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  background: rgba(248, 247, 242, 0.88);
  border-bottom: 1px solid rgba(220, 214, 200, 0.62);
  backdrop-filter: blur(18px);
  animation: headerIn 0.6s var(--ease) both;
}

.site-logo {
  width: clamp(86px, 10vw, 118px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--color-sub);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

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

.section {
  padding-block: clamp(72px, 9vw, 126px);
  scroll-margin-top: 92px;
}

.hero {
  min-height: 100svh;
  padding-top: 136px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  gap: 0;
  align-items: center;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  color: var(--color-accent);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow {
  opacity: 0;
  transform: translateY(16px);
  animation: revealFirst 0.72s var(--ease) 0.18s forwards;
}

h1 {
  margin-top: 22px;
  color: var(--color-main);
  font-size: clamp(40px, 7vw, 66px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.22;
  opacity: 0;
  transform: translateY(20px);
  animation: revealFirst 0.78s var(--ease) 0.34s forwards;
}

.hero-text {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  font-size: clamp(15px, 1.5vw, 17px);
  opacity: 0;
  transform: translateY(20px);
  animation: revealFirst 0.78s var(--ease) 0.52s forwards;
}

.quiet-link {
  margin-top: 30px;
  color: var(--color-main);
  font-weight: 500;
  opacity: 0;
  transform: translateY(18px);
  animation: revealFirst 0.72s var(--ease) 0.66s forwards;
}

.card-label,
.example-number,
.example-label,
.philosophy-item span {
  color: var(--color-accent);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

h2 {
  margin-top: 14px;
  color: var(--color-main);
  font-size: clamp(31px, 4vw, 39px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0;
}

.section-text,
.section-lead > p:last-child {
  margin-top: 26px;
}

.section-text {
  display: grid;
  gap: 18px;
}

.section-lead {
  max-width: 780px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

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

.philosophy-item h3 {
  margin-top: 16px;
  color: var(--color-main);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.55;
}

.examples-section {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.example-list {
  border-top: 1px solid var(--color-line);
}

.example-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 0.88fr) 26px minmax(0, 1.12fr);
  gap: clamp(18px, 3vw, 34px);
  padding: 28px 0;
  border-bottom: 1px solid var(--color-line);
}

.example-item::before {
  content: "";
  align-self: center;
  width: 26px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.55;
  grid-column: 3;
  grid-row: 1;
}

.example-item p:last-child {
  margin-top: 6px;
}

.example-label {
  text-transform: uppercase;
}

.work-section {
  background: linear-gradient(180deg, rgba(252, 251, 247, 0.42), rgba(248, 247, 242, 0));
}

.work-list {
  display: grid;
  gap: 18px;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.24fr) minmax(0, 0.76fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 42px);
  background: var(--color-card-soft);
  border: 1px solid var(--color-line);
  box-shadow: 0 18px 44px rgba(11, 27, 43, 0.045);
  cursor: default;
}

.work-card-meta {
  padding-top: 4px;
  border-top: 1px solid var(--color-line);
}

.work-card-meta p,
.work-number {
  color: var(--color-accent);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-transform: uppercase;
}

.work-number {
  display: inline-block;
  margin-bottom: 16px;
}

.work-card h3 {
  color: var(--color-main);
  font-size: clamp(23px, 2.7vw, 30px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.work-tags li {
  padding: 7px 11px;
  color: var(--color-main);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(220, 214, 200, 0.95);
  cursor: default;
}

.work-tags li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  vertical-align: 0.1em;
  background: var(--color-accent);
}

.samples-section {
  border-top: 1px solid var(--color-line);
}

.samples-section .section-lead {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.sample-note {
  margin-top: 22px;
  color: var(--color-sub);
  font-size: 13px;
  line-height: 1.8;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sample-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--color-card-soft);
  border: 1px solid var(--color-line);
  box-shadow: 0 18px 42px rgba(11, 27, 43, 0.045);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.sample-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 135, 74, 0.48);
  box-shadow: 0 20px 44px rgba(11, 27, 43, 0.06);
}

.sample-media-link {
  position: relative;
  display: block;
  padding: 16px 16px 0;
  background: rgba(255, 255, 255, 0.46);
}

.sample-media-link img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid rgba(220, 214, 200, 0.78);
}

.sample-media-link span {
  position: absolute;
  right: 28px;
  bottom: 14px;
  padding: 5px 9px;
  color: var(--color-main);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  background: rgba(252, 251, 247, 0.9);
  border: 1px solid rgba(220, 214, 200, 0.95);
}

.sample-card-body {
  padding: 24px clamp(22px, 3vw, 30px) 28px;
}

.sample-card h3 {
  margin-top: 12px;
  color: var(--color-main);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.55;
}

.sample-card-body > p:not(.card-label) {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
}

.sample-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}

.sample-tags li {
  padding: 6px 9px;
  color: var(--color-main);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(220, 214, 200, 0.94);
  cursor: default;
}

.sample-tags li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 7px;
  vertical-align: 0.13em;
  background: var(--color-accent);
}

.muted-section {
  background: #F1EFE7;
}

.philosophy-item {
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.philosophy-item p {
  margin-top: 14px;
  color: var(--color-text);
  font-size: 15px;
}

.profile-layout {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  justify-items: center;
  text-align: center;
}

.profile-heading {
  max-width: 720px;
}

.profile-card {
  display: grid;
  gap: 22px;
  justify-items: center;
  width: 100%;
  max-width: 720px;
}

.profile-photo {
  width: 180px;
  height: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 34%;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: #fff;
}

.profile-body {
  width: 100%;
}

.profile-name {
  margin-bottom: 26px;
  color: var(--color-main);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.profile-name span {
  display: block;
  margin-bottom: 6px;
  color: #c8102e;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.profile-card .section-text {
  max-width: 720px;
  margin-top: 0;
  margin-inline: auto;
  gap: 1.2rem;
  line-height: 1.9;
  text-align: left;
}

.contact-section {
  padding-bottom: clamp(90px, 12vw, 150px);
}

.closing-brand {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}

.closing-brand img {
  width: 104px;
}

.closing-brand p {
  margin-top: 12px;
  color: var(--color-sub);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.site-footer {
  padding: 24px 0 34px;
  color: var(--color-sub);
  font-family: var(--font-en);
  border-top: 1px solid var(--color-line);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.34s; }

@keyframes headerIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealFirst {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 122px;
  }

  .hero-grid,
  .profile-layout,
  .work-card {
    grid-template-columns: 1fr;
  }

  .philosophy-grid,
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .example-item {
    grid-template-columns: 44px 1fr;
  }

  .example-item > div:last-child {
    grid-column: 2;
  }

  .example-item::before {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.9;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

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

  .site-nav {
    display: none;
  }

  .section {
    padding-block: 68px;
    scroll-margin-top: 78px;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 68px;
  }

  h1 {
    margin-top: 18px;
    font-size: clamp(36px, 11vw, 44px);
  }

  h2 {
    font-size: clamp(29px, 8vw, 34px);
  }

  .hero-text {
    margin-top: 24px;
  }

  .quiet-link {
    margin-top: 26px;
  }

  .work-card {
    padding: 22px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-inline: 1.5rem;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
  }

  .profile-name {
    margin-bottom: 22px;
    font-size: 24px;
  }

  .profile-card .section-text {
    gap: 1.2rem;
  }

  .work-card-meta {
    padding-top: 14px;
  }

  .work-card h3 {
    font-size: 22px;
  }

  .work-tags {
    gap: 8px;
    margin-top: 22px;
  }

  .work-tags li {
    font-size: 12px;
    padding: 7px 10px;
  }

  .sample-grid {
    gap: 18px;
  }

  .sample-media-link {
    padding: 12px 12px 0;
  }

  .sample-media-link img {
    width: 100%;
    height: min(112vw, 420px);
    object-fit: contain;
  }

  .sample-card-body {
    padding: 22px;
  }

  .sample-card h3 {
    font-size: 20px;
  }

  .sample-note {
    font-size: 12px;
  }

  .example-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .example-item > div:last-child {
    grid-column: auto;
  }

  .example-number {
    display: inline-flex;
    width: fit-content;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-accent);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .hero-eyebrow,
  h1,
  .hero-text,
  .quiet-link {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
