:root {
  --ink: #403b36;
  --muted: #776f66;
  --line: #ded8cf;
  --paper: #fbf8f3;
  --soft: #f1ece3;
  --accent: #8c7c66;
  --accent-dark: #5b4d3e;
  --white: #fffdf9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  line-height: 1.9;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 62px;
  padding: 10px clamp(20px, 7vw, 96px);
  background: rgba(251, 248, 243, 0.91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}

.brand-name {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  letter-spacing: 0.16em;
  line-height: 1;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 42px);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.hero {
  min-height: min(420px, calc(100vh - 62px));
  display: grid;
  align-items: center;
  padding: clamp(42px, 7vw, 84px) clamp(20px, 12vw, 180px);
  background:
    linear-gradient(90deg, rgba(251, 248, 243, 0.95) 0%, rgba(251, 248, 243, 0.82) 36%, rgba(251, 248, 243, 0.1) 68%),
    url("assets/hero-family.jpg") center 42% / cover;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.34;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.55;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.45;
}

.hero-copy p:not(.eyebrow),
.intro p,
.about-copy p,
.contact-band p {
  color: var(--muted);
  font-size: 1rem;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 28px;
  color: var(--white);
  background: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.primary-link::after {
  content: "→";
  margin-left: 18px;
}

.intro {
  padding: clamp(34px, 6vw, 78px) clamp(24px, 16vw, 240px);
  text-align: center;
  background: var(--white);
  border-top: 1px solid rgba(222, 216, 207, 0.45);
  border-bottom: 1px solid rgba(222, 216, 207, 0.45);
}

.intro p {
  margin: 0 auto;
  max-width: 860px;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.section {
  padding: clamp(34px, 5vw, 62px) clamp(20px, 7vw, 96px);
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 6px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  max-width: 1240px;
  margin: 0 auto;
}

.portfolio-grid article {
  min-width: 0;
}

.portfolio-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 12px;
}

.portfolio-grid img.focus-top {
  object-position: center 18%;
}

.portfolio-grid h3,
.portfolio-grid p {
  text-align: center;
}

.portfolio-grid h3 {
  margin-bottom: 2px;
}

.portfolio-action {
  margin-top: 28px;
  text-align: center;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 240px;
  padding: 0 26px;
  color: var(--accent-dark);
  border: 1px solid #bdb3a6;
  background: rgba(255, 253, 249, 0.72);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.secondary-link::after {
  content: "→";
  margin-left: 18px;
}

.portfolio-grid p,
.plan-grid p,
.plan-grid span,
.plan-note {
  color: var(--muted);
  font-size: 0.93rem;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) clamp(20px, 11vw, 150px);
  background:
    linear-gradient(90deg, rgba(241, 236, 227, 0.95), rgba(251, 248, 243, 0.85)),
    radial-gradient(circle at left bottom, rgba(140, 124, 102, 0.2), transparent 34%);
}

.about-band img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.soft-section {
  background: var(--white);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}

.plan-grid article {
  position: relative;
  min-height: 280px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.plan-grid .featured-plan {
  background: #f7f0e6;
  border-color: #cfc3b2;
}

.plan-label {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.plan-grid strong {
  display: block;
  margin-top: 22px;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.plan-grid span {
  display: block;
}

.plan-note {
  margin: 26px auto 0;
  max-width: 900px;
  text-align: center;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 10vw, 140px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(64, 59, 54, 0.82), rgba(64, 59, 54, 0.54)),
    url("assets/mirror-family.jpg") center / cover;
}

.contact-band .eyebrow,
.contact-band p {
  color: rgba(255, 253, 249, 0.82);
}

.contact-band h2 {
  margin-bottom: 12px;
}

.primary-link.light {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(20px, 7vw, 96px);
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.site-footer a {
  border-bottom: 1px solid currentColor;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    min-height: auto;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 560px;
    align-items: end;
    padding-top: 190px;
    background:
      linear-gradient(180deg, rgba(251, 248, 243, 0.05) 0%, rgba(251, 248, 243, 0.55) 40%, rgba(251, 248, 243, 0.96) 82%),
      url("assets/hero-family.jpg") 68% 35% / cover;
  }

  .portfolio-grid,
  .plan-grid,
  .about-band {
    grid-template-columns: 1fr;
  }

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

  .about-band img {
    order: -1;
  }

  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 3px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  h1 {
    font-size: 2.15rem;
  }

  .hero {
    min-height: 540px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .primary-link {
    width: 100%;
  }

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

  .secondary-link {
    width: 100%;
    min-width: 0;
  }

  .section,
  .about-band,
  .contact-band {
    padding-right: 18px;
    padding-left: 18px;
  }

  .plan-grid article {
    min-height: auto;
    padding: 26px;
  }
}
