:root {
  --ink: #17211d;
  --sub: #53615b;
  --paper: #f7f8f6;
  --accent: #b66d2e;
  --accent-dark: #23443d;
  --line: #e1ded5;
  --green: #2f5b51;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-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: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(225, 222, 213, 0.8);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  color: var(--sub);
  font-size: 12px;
  line-height: 1.4;
}

.logo-brand {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.logo-brand img {
  width: min(260px, 74vw);
  height: auto;
}

.logo-brand small {
  padding-left: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--sub);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: #111a16;
}

.hero > img {
  width: 100%;
  height: calc(100vh - 76px);
  min-height: 620px;
  object-fit: cover;
  object-position: center center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 25, 21, 0.78), rgba(16, 25, 21, 0.18) 58%, rgba(16, 25, 21, 0));
  pointer-events: none;
}

.hero-panel {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 7vw, 110px);
  top: 50%;
  width: min(820px, calc(100% - 40px));
  color: var(--white);
  transform: translateY(-45%);
}

.eyebrow {
  margin: 0 0 12px;
  color: #c89254;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-note {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: 18px;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.35;
  letter-spacing: 0;
}

.balanced-title span {
  display: block;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.35;
}

.lead {
  margin-bottom: 30px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.hero-lead span {
  display: block;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.3;
}

.button.primary {
  color: var(--white);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 74px);
}

.section-head {
  max-width: 900px;
  margin: 0 auto 34px;
}

.section-head > p:not(.eyebrow) {
  color: var(--sub);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
  max-width: 1100px;
  margin: 0 auto;
}

.intro-grid p {
  color: var(--sub);
  font-size: 17px;
}

.checks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 4px;
  font-weight: 700;
}

.works {
  background: #eef1ef;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.work-card {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.work-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #d9dfdc;
}

.work-card figcaption {
  min-height: 58px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

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

.service-grid article {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.service-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.service-grid p,
.about-copy p,
.reason-list p,
.contact p {
  color: var(--sub);
}

.service-detail {
  max-width: 1100px;
  margin: 22px auto 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.service-detail h3 {
  margin-bottom: 16px;
}

.service-detail p {
  margin: 18px 0 0;
  color: var(--sub);
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 12px;
  background: #eef1ef;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 46px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.reason-list {
  display: grid;
  gap: 14px;
}

.reason-list div {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.reason-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.estate {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 46px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  background: #eef1ef;
}

.estate-copy p,
.estate-list p {
  color: var(--sub);
}

.license-note {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
}

.estate-list {
  display: grid;
  gap: 14px;
}

.estate-list div {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.estate-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.flow {
  background: var(--white);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  min-height: 260px;
  padding: 24px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.flow-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.flow-list h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.flow-list p {
  margin-bottom: 0;
  color: var(--sub);
  font-size: 14px;
}

.company {
  background: #eef1ef;
}

.company-list {
  display: grid;
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.company-list div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.company-list div:last-child {
  border-bottom: 0;
}

.company-list dt,
.company-list dd {
  margin: 0;
}

.company-list dt {
  color: var(--sub);
  font-weight: 800;
}

.company-list dd {
  font-weight: 800;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(18px, 5vw, 74px) clamp(70px, 8vw, 110px);
  padding: clamp(34px, 5vw, 58px);
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
}

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

.contact p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-actions {
  display: grid;
  gap: 8px;
  min-width: min(100%, 300px);
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 20px;
  color: var(--green);
  background: var(--white);
  border-radius: 4px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.2;
}

.contact-actions span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.contact-actions small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 28px clamp(18px, 5vw, 74px);
  color: rgba(255, 255, 255, 0.82);
  background: #17211d;
  font-size: 14px;
}

.footer strong {
  color: var(--white);
}

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

  .nav {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .hero,
  .hero > img {
    min-height: 680px;
  }

  .hero-panel {
    top: auto;
    bottom: 58px;
    transform: none;
  }

  .intro-grid,
  .about,
  .estate,
  .service-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .flow-list li {
    min-height: 0;
  }

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

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
    padding: 12px 18px;
  }

  .nav {
    gap: 10px 16px;
    font-size: 13px;
  }

  .hero,
  .hero > img {
    height: 680px;
    min-height: 680px;
  }

  .hero > img {
    object-position: 68% center;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(16, 25, 21, 0.26), rgba(16, 25, 21, 0.82));
  }

  .hero-note {
    right: auto;
    left: 20px;
    bottom: 14px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-title span {
    white-space: normal;
  }

  .lead {
    font-size: 16px;
  }

  .hero-lead span {
    display: inline;
  }

  .balanced-title span {
    display: inline;
  }

  .button {
    width: 100%;
  }

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