
:root {
  --paper: #f4f0e8;
  --paper-light: #fffdf8;
  --ink: #20201e;
  --muted: #766d62;
  --line: #d9d0c3;
  --accent: #ff5538;
  --accent-dark: #e94025;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 88px;
  padding: 0 clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 232, 0.94);
}

.logo {
  justify-self: start;
  display: block;
  width: clamp(176px, 16vw, 224px);
}

.logo img,
.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  gap: 42px;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 100%;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transition: right 220ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  right: 0;
}

.header-cta {
  display: flex;
  justify-self: end;
  align-items: center;
  justify-content: space-between;
  min-width: 178px;
  height: 54px;
  padding: 0 22px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible,
.primary-cta:hover,
.primary-cta:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 88px));
  overflow: hidden;
  background: var(--paper-light);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("/images/etrecom-team-hero.png");
  background-position: center;
  background-size: cover;
  animation: hero-in 900ms ease-out both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,253,248,.99) 0%, rgba(255,253,248,.96) 29%, rgba(255,253,248,.62) 45%, rgba(255,253,248,.06) 65%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 56vw);
  padding: clamp(88px, 11vh, 126px) 0 84px clamp(32px, 6vw, 96px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow::after,
.section-kicker::after {
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 17px;
  background: currentColor;
  content: "";
}

.hero h1 {
  margin: 0;
  font-size: clamp(50px, 5.8vw, 86px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.hero-lead {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.9;
}

.primary-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(286px, 100%);
  height: 64px;
  margin-top: 36px;
  padding: 0 26px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.service-rail {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.service-rail a {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 142px;
  padding: 28px clamp(20px, 3vw, 46px);
  border-right: 1px solid var(--line);
  transition: background 180ms ease, color 180ms ease;
}

.service-rail a:last-child {
  border-right: 0;
}

.service-rail a:hover,
.service-rail a:focus-visible {
  background: var(--accent);
  color: white;
}

.service-rail span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service-rail a:hover span,
.service-rail a:focus-visible span {
  color: white;
}

.service-rail strong {
  align-self: end;
  font-size: clamp(14px, 1.25vw, 18px);
}

.service-rail i {
  position: absolute;
  right: 24px;
  bottom: 26px;
  font-style: normal;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr);
  align-items: start;
  gap: clamp(56px, 8vw, 128px);
  padding: 120px clamp(32px, 8vw, 128px);
  background: var(--paper-light);
}

.intro-section h2,
.section-heading h2,
.process-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.4;
}

.intro-section h2 {
  max-width: 740px;
  font-size: clamp(36px, 3.8vw, 58px);
  text-wrap: balance;
}

.intro-copy {
  max-width: 560px;
  padding-top: 58px;
}

.intro-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.services-section {
  padding: 120px clamp(32px, 8vw, 128px);
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 72px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.service-list {
  border-top: 1px solid var(--ink);
}

.service-list article {
  display: grid;
  grid-template-columns: .4fr 1.25fr 1.5fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.service-title p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.service-title h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
}

.service-description {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.service-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
}

.service-list li::before {
  position: absolute;
  top: .6em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.process-section {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(48px, 8vw, 128px);
  padding: 120px clamp(32px, 8vw, 128px);
  background: var(--ink);
  color: white;
}

.process-intro > p:last-child {
  max-width: 370px;
  margin: 28px 0 0;
  color: #b8b2aa;
  line-height: 1.9;
}

.process-list {
  border-top: 1px solid rgba(255,255,255,.45);
}

.process-list article {
  display: grid;
  grid-template-columns: 60px .8fr 1.3fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.process-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.process-list h3,
.process-list p {
  margin: 0;
}

.process-list h3 {
  font-size: 20px;
}

.process-list p {
  color: #b8b2aa;
  font-size: 14px;
  line-height: 1.9;
}

.belief-section {
  padding: 140px clamp(32px, 12vw, 192px);
  background: var(--accent);
  color: white;
  text-align: center;
}

.belief-label {
  margin: 0 0 44px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
}

.belief-section blockquote {
  margin: 0;
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.35;
}

.belief-section > p:last-child {
  max-width: 720px;
  margin: 48px auto 0;
  font-size: 16px;
  line-height: 2;
}

.company-section {
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  gap: 80px;
  padding: 120px clamp(32px, 8vw, 128px);
  background: var(--paper-light);
}

.company-section h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
}

.company-section dl {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.company-section dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.company-section dt {
  color: var(--muted);
  font-size: 13px;
}

.company-section dd {
  margin: 0;
  line-height: 1.8;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(480px, 1.25fr);
  align-items: start;
  gap: clamp(48px, 10vw, 160px);
  padding: 120px clamp(32px, 8vw, 128px);
  background: var(--ink);
  color: white;
}

.contact-label {
  margin: 0 0 30px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.contact-section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.45;
}

.contact-intro {
  position: sticky;
  top: 48px;
}

.contact-intro > p:last-child {
  max-width: 430px;
  margin: 34px 0 0;
  color: #b8b2aa;
  line-height: 1.9;
}

.contact-form {
  display: grid;
  gap: 26px;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}

.contact-form label { display: grid; gap: 10px; }
.contact-form label > span:first-child { font-size: 13px; font-weight: 700; }
.contact-form label b, .contact-form label small { margin-left: 6px; font-size: 10px; font-weight: 700; }
.contact-form label b { color: #ff806b; }
.contact-form label small { color: #8f8a84; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 0; outline: 0;
  background: rgba(255,255,255,.07); color: white; font: inherit;
  transition: border-color 180ms ease, background 180ms ease;
}
.contact-form input, .contact-form select { min-height: 54px; padding: 0 16px; }
.contact-form textarea { min-height: 170px; padding: 15px 16px; line-height: 1.7; resize: vertical; }
.contact-form select option { color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); background: rgba(255,255,255,.11); }
.privacy-consent { grid-template-columns: auto 1fr; align-items: start; gap: 12px !important; color: #b8b2aa; font-size: 12px; line-height: 1.7; }
.privacy-consent input { width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  border: 0;
  padding: 0 28px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-form button:hover, .contact-form button:focus-visible { background: var(--accent-dark); transform: translateY(-2px); }
.contact-form button:disabled { cursor: wait; opacity: .65; transform: none; }
.form-note {
  color: #8f8a84;
  font-size: 11px;
}

.form-result-page { display: grid; min-height: 100vh; place-items: center; padding: 32px; background: var(--paper); }
.form-result-card { width: min(680px, 100%); padding: clamp(40px, 7vw, 80px); background: var(--paper-light); box-shadow: 0 24px 80px rgba(32,32,30,.12); text-align: center; }
.form-result-card img { width: min(240px, 60%); height: auto; margin-bottom: 52px; }
.form-result-card h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); }
.form-result-card p { margin: 24px 0 0; color: var(--muted); line-height: 1.9; }
.form-result-card a { display: inline-flex; min-height: 56px; align-items: center; margin-top: 36px; padding: 0 28px; background: var(--accent); color: white; font-weight: 700; }

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 56px;
  padding: 64px clamp(32px, 8vw, 128px) 40px;
  background: var(--paper);
}

.footer-logo {
  display: block;
  width: clamp(190px, 18vw, 252px);
}

footer nav {
  display: grid;
  gap: 12px;
  font-size: 12px;
}

footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 72px;
  }

  .logo {
    width: 172px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    list-style: none;
  }

  .mobile-menu nav {
    position: absolute;
    top: 34px;
    right: -24px;
    display: grid;
    width: min(320px, 90vw);
    padding: 20px 24px;
    background: var(--ink);
    color: white;
  }

  .mobile-menu nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }

  .hero {
    min-height: 740px;
  }

  .hero-media {
    background-position: 60% bottom;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(255,253,248,.98) 0%, rgba(255,253,248,.88) 48%, rgba(255,253,248,.15) 78%);
  }

  .hero-copy {
    width: 100%;
    padding: 72px 24px 320px;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 68px);
  }

  .hero-lead br {
    display: none;
  }

  .service-rail {
    grid-template-columns: 1fr 1fr;
  }

  .service-rail a:nth-child(2) {
    border-right: 0;
  }

  .service-rail a:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .intro-section,
  .section-heading,
  .process-section,
  .company-section {
    grid-template-columns: 1fr;
    padding: 88px 24px;
  }

  .intro-copy {
    max-width: 680px;
    padding-top: 0;
  }

  .service-list article {
    grid-template-columns: 42px 1fr;
    gap: 24px 16px;
  }

  .service-description,
  .service-list ul {
    grid-column: 2;
  }

  .process-list article {
    grid-template-columns: 42px 1fr;
  }

  .process-list p {
    grid-column: 2;
  }

  .contact-section {
    grid-template-columns: 1fr;
    padding: 88px 24px;
  }

  .contact-intro { position: static; }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 36px;
  }
}

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

  .service-rail {
    grid-template-columns: 1fr;
  }

  .service-rail a {
    min-height: 108px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-rail a:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .service-list article {
    padding: 34px 0;
  }

  .company-section dl div {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
