:root {
  color-scheme: light;
  --ink: #0e1a14;
  --sub: #1e2a23;
  --muted: #6b7a72;
  --line: #e4ebe4;
  --line-strong: #c9d4ca;
  --paper: #ffffff;
  --soft: #f6f8f5;
  --white: #ffffff;
  --green: #49af33;
  --green-deep: #2e7a1e;
  --green-soft: #eaf5e4;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior-y: none; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  letter-spacing: 0.01em;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

[id] { scroll-margin-top: 110px; }

h1, h2, h3 { letter-spacing: -0.005em; }

p { color: var(--sub); }

/* ── Header ─────────────────────────────────── */
.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: transparent;
  color: var(--white);
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 200ms ease, color 200ms ease;
}

.site-header.is-scrolled .brand-mark {
  background: var(--ink);
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a { color: inherit; opacity: 0.85; transition: color 160ms ease, opacity 160ms ease; }
.site-nav a:hover { opacity: 1; color: var(--green); }
.site-header.is-scrolled .site-nav a { color: var(--sub); opacity: 1; }
.site-header.is-scrolled .site-nav a:hover { color: var(--green-deep); }

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  color: var(--ink) !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.nav-contact::after {
  content: "→";
  font-size: 0.95rem;
}

.nav-contact:hover { background: var(--green); color: var(--white) !important; }

.site-header.is-scrolled .nav-contact {
  background: var(--ink);
  color: var(--white) !important;
}
.site-header.is-scrolled .nav-contact:hover { background: var(--green-deep); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: currentColor;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(14, 26, 20, 0.78) 0%, rgba(14, 26, 20, 0.55) 55%, rgba(14, 26, 20, 0.2) 100%),
    linear-gradient(180deg, rgba(14, 26, 20, 0.25) 0%, rgba(14, 26, 20, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 160px 0 100px;
  display: block;
}

.hero-text { display: block; max-width: 640px; }
.hero-text .hero-actions { margin-top: 36px; }
.hero-text .hero-meta { margin-top: 28px; color: rgba(255, 255, 255, 0.7); }

.hero .eyebrow { color: #c8f0bd; }
.hero .eyebrow::before { background: var(--green); }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: #9bdf8a; }
.hero-en { color: rgba(255, 255, 255, 0.75); }
.hero-copy { color: rgba(255, 255, 255, 0.9); }

.hero .button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green);
}

.hero h1 {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(2.6rem, 6.8vw, 6rem);
  line-height: 1.18;
  font-weight: 700;
  color: var(--white);
  word-break: keep-all;
}

.hero h1 .hero-line { white-space: nowrap; }

.hero h1 .accent {
  color: #9bdf8a;
  display: inline;
}

.hero-en {
  display: block;
  margin-top: 18px;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-copy {
  max-width: 540px;
  margin: 44px 0 0;
  color: var(--sub);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  font-weight: 400;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.hero-meta {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 60px;
  display: none;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

@media (min-width: 1080px) {
  .hero-meta { display: block; }
}

/* ── Buttons ─────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button::after {
  content: "→";
  font-size: 1rem;
  transition: transform 180ms ease;
}

.button:hover::after { transform: translateX(4px); }

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.primary:hover { background: var(--green-deep); }

.button.secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.button.secondary:hover { border-color: var(--ink); }

.button.light {
  background: var(--white);
  color: var(--ink);
}

/* ── Section base ─────────────────────────────────── */
.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--green-deep);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--green);
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.6;
  font-weight: 700;
}

.intro-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
}

.company {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.section-heading p {
  max-width: 60ch;
}

.intro p,
.company p {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.95;
}

.section-heading p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--muted);
}

/* ── Trust strip ─────────────────────────────────── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 34px 36px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child { border-right: 0; }

.trust-strip strong,
.trust-strip span { display: block; }

.trust-strip strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Mission ─────────────────────────────────── */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid var(--line);
}

.mission-grid article {
  position: relative;
  padding: 40px 36px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.mission-grid article:last-child { border-right: 0; }

.mission-grid span {
  display: block;
  margin-bottom: 36px;
  color: var(--green-deep);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mission-grid h3 {
  font-size: 1.35rem;
  line-height: 1.5;
}

/* ── Services ─────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  padding: 44px 40px 48px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease;
}

.service-card:hover { background: var(--soft); }

.card-index {
  display: block;
  margin-bottom: 32px;
  color: var(--green);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.service-card p { margin: 0; line-height: 1.85; }

/* ── Works ─────────────────────────────────── */
.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  margin-top: 60px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.work-media {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--ink);
  color: var(--white);
}

.work-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 80% 20%, rgba(73, 175, 51, 0.22), transparent 60%);
}

.work-media span {
  position: relative;
  font-family: "Inter", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.work-content { padding: clamp(36px, 5vw, 60px); }

.work-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--green-deep);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green);
}

.work-content h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.work-content p {
  margin: 22px 0 0;
  font-size: 1rem;
  line-height: 1.9;
}

.work-points {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}

.work-points div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.work-points dt { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.work-points dd { margin: 0; font-weight: 500; }

/* ── Strength (3つの強み) ──────────────────── */
.strength { display: block; }

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strength-grid article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  background: var(--white);
  transition: background 0.25s ease;
}

.strength-grid article:last-child { border-right: 0; }

.strength-grid article:hover { background: var(--soft); }

.strength-grid .card-index {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--green);
}

.strength-grid h3 {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}

.strength-grid p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ── Process ─────────────────────────────────── */
.section-heading.compact { max-width: 56ch; }

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

.process-list li {
  --arrow-w: 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 28px 36px 44px;
  background: var(--soft);
  clip-path: polygon(
    0 0,
    calc(100% - var(--arrow-w)) 0,
    100% 50%,
    calc(100% - var(--arrow-w)) 100%,
    0 100%,
    var(--arrow-w) 50%
  );
  transition: background 0.25s ease;
}

.process-list li:hover { background: var(--green-soft); }

.process-list li:first-child {
  padding-left: 28px;
  clip-path: polygon(
    0 0,
    calc(100% - var(--arrow-w)) 0,
    100% 50%,
    calc(100% - var(--arrow-w)) 100%,
    0 100%
  );
}

.process-list li:last-child {
  padding-right: 28px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0 100%,
    var(--arrow-w) 50%
  );
}

.process-list li:nth-child(2),
.process-list li:nth-child(4) { background: var(--green-soft); }

.process-list span {
  display: inline-block;
  margin: 0;
  color: var(--green);
  font-family: "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.process-list span::before { content: "0"; }

.process-list h3 { font-size: 1.1rem; margin: 0; }

.process-list p { margin: 0; font-size: 0.9rem; line-height: 1.75; color: var(--muted); }

/* ── Features ─────────────────────────────────── */
.features-list {
  list-style: none;
  margin: 50px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 140px 1fr 24px;
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
}

.feature-item::after {
  content: "";
  width: 24px;
  height: 24px;
  opacity: 0;
}

.feature-item--clickable {
  cursor: pointer;
  transition: background 160ms ease;
}

.feature-item--clickable::after {
  content: "→";
  color: var(--muted);
  font-size: 1.1rem;
  text-align: center;
  opacity: 1;
  transition: transform 160ms ease, color 160ms ease;
}

.feature-item--clickable:hover {
  background: var(--soft);
}

.feature-item--clickable:hover::after {
  transform: translateX(4px);
  color: var(--green-deep);
}

.feature-date {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.feature-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.65;
}

/* ── Company ─────────────────────────────────── */
.company-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

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

.company-table dt { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.company-table dd { margin: 0; font-weight: 500; }

/* ── Contact ─────────────────────────────────── */
.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap: 56px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 120px;
  padding: 84px clamp(36px, 6vw, 80px);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-intro { display: flex; flex-direction: column; gap: 18px; }
.contact-cta { display: flex; align-items: center; justify-content: flex-end; }

.contact-meta { display: grid; gap: 10px; margin: 8px 0 0; }
.contact-meta div { display: grid; grid-template-columns: 84px 1fr; gap: 16px; font-size: 0.9rem; }
.contact-meta dt { margin: 0; color: rgba(255, 255, 255, 0.55); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; padding-top: 2px; }
.contact-meta dd { margin: 0; color: rgba(255, 255, 255, 0.92); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 14px);
  backdrop-filter: blur(6px);
}

.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}
.contact-form label span { color: var(--green); margin-left: 2px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.09);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.6) 50%), linear-gradient(135deg, rgba(255,255,255,0.6) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.contact-form select option { color: var(--ink); }

.contact-form .button {
  align-self: flex-start;
  margin-top: 4px;
}
.contact-form .button:disabled { opacity: 0.5; cursor: not-allowed; }

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}
.form-status[data-state="success"] { color: #9ee08a; }
.form-status[data-state="error"] { color: #ff8a8a; }
.form-status[data-state="loading"] { color: rgba(255, 255, 255, 0.6); }

/* ── Contact page (standalone /contact.html) ───── */
.page-contact {
  background: var(--soft, #f6f8f5);
}

/* Contactページではヘッダーを常に白背景として表示 */
.page-contact .site-header {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}
.page-contact .site-header .brand-mark { background: var(--ink); color: var(--white); }
.page-contact .site-header .site-nav a { color: var(--sub); opacity: 1; }
.page-contact .site-header .site-nav a:hover { color: var(--green-deep); }
.page-contact .site-header .nav-contact {
  background: var(--ink);
  color: var(--white) !important;
}
.page-contact .site-header .nav-contact:hover { background: var(--green-deep); }

.contact-page {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-page-head { display: flex; flex-direction: column; gap: 14px; }

.contact-page-head { display: flex; flex-direction: column; gap: 18px; }
.contact-page-head .eyebrow { color: var(--green); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0; }
.contact-page-head h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.3; color: var(--ink); }
.contact-page-head .lead { margin: 0; color: var(--muted, #5a6b5a); font-size: 1rem; line-height: 1.85; max-width: 42ch; }

.contact-meta.light dt { color: var(--muted, #5a6b5a); }
.contact-meta.light dd { color: var(--ink); }

.contact-form.light {
  background: #fff;
  border: 1px solid var(--line, #e4ebe4);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 0 rgba(14, 26, 20, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form.light .field { gap: 6px; display: flex; flex-direction: column; }
.contact-form.light textarea { min-height: 140px; resize: vertical; }
.contact-form.light .form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.contact-form.light .form-foot .button { align-self: auto; margin-top: 0; min-width: 160px; }
.contact-form.light .form-foot .form-status { margin: 0; flex: 1; }
@media (max-width: 640px) {
  .contact-form.light .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .contact-form.light .form-foot .button { width: 100%; }
}
.contact-form.light label { color: var(--ink); font-weight: 500; }
.contact-form.light label span { color: var(--green); }
.contact-form.light input,
.contact-form.light select,
.contact-form.light textarea {
  background: #fff;
  border: 1px solid var(--line, #e4ebe4);
  color: var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form.light input:focus,
.contact-form.light select:focus,
.contact-form.light textarea:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(73, 175, 51, 0.12);
}
.contact-form.light select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted, #5a6b5a) 50%), linear-gradient(135deg, var(--muted, #5a6b5a) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.contact-form.light select option { color: var(--ink); background: #fff; }
.contact-form.light .form-status { color: var(--muted, #5a6b5a); }
.contact-form.light .form-status[data-state="success"] { color: var(--green-deep, #2e7a1e); }
.contact-form.light .form-status[data-state="error"] { color: #c0392b; }

@media (max-width: 900px) {
  .contact-page { padding: 100px 0 60px; gap: 32px; }
  .contact-form.light { padding: 24px; }
}

/* 横長 & 一定以上の高さ ⇒ 2カラム横並び・100vh固定レイアウト */
@media (min-width: 1100px) and (min-height: 760px) and (min-aspect-ratio: 16/10) {
  .page-contact { height: 100vh; overflow: hidden; }
  .page-contact main { height: 100vh; }
  .contact-page {
    width: min(var(--max), calc(100% - 40px));
    height: 100vh;
    padding: 110px 0 32px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
    flex-direction: initial;
  }
  .contact-form.light {
    max-height: calc(100vh - 160px);
    box-sizing: border-box;
    overflow: auto;
  }
}

.contact::before {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 360px;
  height: 360px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(40px);
}

.contact > * { position: relative; z-index: 1; }

.contact .section-label { color: rgba(255, 255, 255, 0.85); }
.contact .section-label::before { background: rgba(255, 255, 255, 0.5); }

.contact h2 {
  max-width: 18ch;
  color: var(--white);
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  line-height: 1.45;
}

.contact p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .brand { color: var(--ink); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .site-header { height: 68px; }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-contact { justify-content: center; margin-top: 10px; }
  .nav-toggle { display: block; }

  .intro-grid,
  .work-card,
  .strength,
  .company { grid-template-columns: 1fr; }

  .strength-grid { grid-template-columns: 1fr; }
  .strength-grid article { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .strength-grid article:last-child { border-bottom: 0; }

  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }

  .hero-inner { padding: 140px 0 80px; }

  .work-media { min-height: 280px; }

  .mission-grid,
  .service-grid { grid-template-columns: 1fr; border-left: 0; }
  .mission-grid article,
  .service-card { border-right: 0; }

  .process-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .process-list li,
  .process-list li:first-child,
  .process-list li:last-child {
    clip-path: none;
    padding: 28px;
    border-radius: 12px;
  }

  .visual-panel { aspect-ratio: 16 / 10; }

  .feature-item { grid-template-columns: 120px 1fr 20px; gap: 16px; }
}

@media (max-width: 640px) {
  [id] { scroll-margin-top: 80px; }
  .site-header { padding: 0 18px; }
  .hero { min-height: 90vh; }
  .hero-inner { padding: 130px 0 80px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.6rem); }
  .hero-copy { margin-top: 32px; }
  .button { width: 100%; }

  .section { padding: 90px 0; }

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

  .company-table div,
  .work-points div { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }

  .contact { margin-bottom: 70px; padding: 56px 26px; grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 24px; }
  .contact-form .button { width: 100%; }

  .feature-item {
    grid-template-columns: 1fr 24px;
    grid-template-areas: "date arrow" "title arrow";
    gap: 4px 16px;
    padding: 22px 6px;
  }
  .feature-date { grid-area: date; }
  .feature-title { grid-area: title; }
  .feature-item::after,
  .feature-item--clickable::after { grid-area: arrow; align-self: center; }

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