:root {
  --ink: #162118;
  --muted: #5f6d63;
  --soft: #f5faf5;
  --soft-2: #eef7ef;
  --line: rgba(30, 83, 48, 0.14);
  --green: #1f7a3f;
  --green-2: #67ad37;
  --teal: #0c8c7d;
  --gold: #b58a35;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(20, 72, 42, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--green);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
}

.footer-brand img {
  width: 126px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.brand span,
.footer-brand span {
  font-size: 1.08rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  color: #243127;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.nav-contact,
.btn,
.mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 800;
}

.nav-contact {
  padding: 10px 18px;
  color: var(--white);
  background: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 128px clamp(20px, 6vw, 82px) 72px;
  overflow: hidden;
  background: var(--soft);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(255, 255, 255, 0.28) 67%, rgba(255, 255, 255, 0.05) 100%),
    url("assets/hero-anemos.jpg") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9.6em;
  margin: 0;
  font-size: clamp(3.1rem, 5.4vw, 5.55rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-lead {
  width: min(610px, 100%);
  margin: 24px 0 0;
  color: #334237;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}

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

.mobile-break {
  display: none;
}

.btn {
  min-width: 144px;
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.mail-link:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 18px 35px rgba(31, 122, 63, 0.24);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.intro-band article {
  min-height: 184px;
  padding: clamp(24px, 4vw, 44px);
  border-right: 1px solid var(--line);
}

.intro-band article:last-child {
  border-right: 0;
}

.intro-band span {
  display: block;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.intro-band strong {
  display: block;
  font-size: 1.25rem;
}

.intro-band p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 6vw, 82px);
}

.section-head {
  width: min(850px, 100%);
  margin-bottom: clamp(30px, 5vw, 54px);
}

.section-head h2,
.about-copy h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-head p:not(.section-kicker),
.about-copy p,
.contact-panel p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.services {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.work-card,
.process-list li,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.service-card {
  min-height: 278px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  padding: 0 12px;
  margin-bottom: 34px;
  color: var(--green);
  border: 1px solid rgba(31, 122, 63, 0.18);
  border-radius: 999px;
  background: #f4fbf3;
  font-size: 0.78rem;
  font-weight: 800;
}

.service-card h3,
.work-card h3,
.process-list h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.35;
}

.service-card p,
.work-card p,
.process-list p {
  margin: 14px 0 0;
  color: var(--muted);
}

.works {
  background: #fbfdfb;
}

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

.work-card {
  display: flex;
  min-height: 338px;
  flex-direction: column;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card.featured {
  background:
    linear-gradient(135deg, rgba(31, 122, 63, 0.92), rgba(12, 140, 125, 0.86)),
    var(--green);
  color: var(--white);
}

.work-card.featured p,
.work-card.featured .work-meta {
  color: rgba(255, 255, 255, 0.82);
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 72px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-meta span {
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.work-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 24px;
  color: var(--green);
  font-weight: 800;
}

.work-card.featured a {
  color: var(--white);
}

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

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  min-height: 244px;
  padding: 26px;
}

.process-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-weight: 800;
}

.about-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 26px;
  padding: clamp(76px, 10vw, 132px) clamp(20px, 6vw, 82px);
  background:
    linear-gradient(135deg, rgba(238, 247, 239, 0.78), rgba(255, 255, 255, 0.94)),
    var(--soft-2);
}

.about-copy {
  align-self: center;
}

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

.tag-list li {
  padding: 10px 14px;
  color: #204229;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.contact-panel {
  padding: clamp(28px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.mail-link {
  width: 100%;
  margin-top: 30px;
  padding: 16px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 18px 35px rgba(31, 122, 63, 0.22);
  word-break: break-word;
  transition: transform 180ms ease;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 6vw, 82px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

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

@media (max-width: 1020px) {
  .service-grid,
  .work-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .brand img,
  .footer-brand img {
    height: 38px;
  }

  .brand img {
    width: 38px;
  }

  .footer-brand img {
    width: 108px;
  }

  .nav-toggle {
    position: fixed;
    top: 12px;
    right: 18px;
    z-index: 12;
    display: block;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 33, 24, 0.1);
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    padding: 12px;
  }

  .nav-contact {
    margin-top: 6px;
  }

  .hero {
    width: 100vw;
    max-width: 100vw;
    min-height: 86vh;
    padding: 110px 20px 56px;
  }

  .hero-content {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.85) 48%, rgba(255, 255, 255, 0.34) 100%),
      url("assets/hero-anemos.jpg") center bottom / cover no-repeat;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.12rem, 9.4vw, 2.92rem);
    line-height: 1.04;
    word-break: break-all;
  }

  .hero-lead {
    width: min(330px, calc(100vw - 40px));
    max-width: min(330px, calc(100vw - 40px));
    font-size: 0.94rem;
    word-break: break-all;
  }

  .mobile-break {
    display: block;
  }

  .intro-band,
  .service-grid,
  .work-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .intro-band article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-band article:last-child {
    border-bottom: 0;
  }

  .service-card,
  .work-card,
  .process-list li {
    min-height: auto;
  }

  .work-meta {
    margin-bottom: 44px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
