@font-face {
  font-family: "NotoSansJP";
  src: url("/assets/fonts/NotoSansJP-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NotoSansJP";
  src: url("/assets/fonts/NotoSansJP-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NotoSansJP";
  src: url("/assets/fonts/NotoSansJP-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #5f6370;
  --line: #e6e8ec;
  --paper: #ffffff;
  --subtle: #f5f7fb;
  --blue: #2d6bcf;
  --cyan: #22d2c7;
  --violet: #a237d7;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "NotoSansJP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 92px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  width: 86px;
  height: 54px;
  align-items: center;
}

.brand img {
  width: 86px;
  height: 54px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover,
.footer-links a:hover,
.privacy-link:hover {
  color: var(--blue);
}

.contact-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  color: #ffffff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}

.contact-button:hover,
.submit-button:hover {
  background: #1e5cbd;
}

.hero {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin-bottom: 24px;
}

.hero-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.3;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1200 / 654;
  border-radius: 8px;
  background: var(--blue);
}

.hero-visual img,
.section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.gradient-section {
  color: #ffffff;
  background: linear-gradient(100deg, var(--violet), #6d92df 54%, var(--cyan));
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 64px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-copy p:not(.eyebrow),
.contact-copy p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.92);
}

.section-image {
  aspect-ratio: 600 / 399;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--blue);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.35;
}

.content-band {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
}

.content-band.subtle {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  background: var(--subtle);
}

.section-heading {
  margin-bottom: 34px;
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-item {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.45;
}

.service-item p,
.empty-news,
.legal-content p,
.page-hero p,
.form-note {
  color: var(--muted);
}

.service-item p,
.empty-news {
  margin: 0;
}

.company-list {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.company-list dt,
.company-list dd {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  color: var(--muted);
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 56px;
  align-items: start;
  padding: 88px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: #f7f8fb;
}

.contact-section.compact {
  margin-top: 40px;
}

.contact-copy p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-form em {
  color: var(--blue);
  font-style: normal;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd5df;
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  background: #ffffff;
}

.contact-form textarea {
  min-height: 172px;
  resize: vertical;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 10px !important;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500 !important;
}

.consent input {
  width: 18px;
  height: 18px;
  flex: none;
}

.privacy-link {
  width: fit-content;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.submit-button {
  width: min(220px, 100%);
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.form-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status[data-state="success"] {
  color: #146c43;
}

.form-status[data-state="error"] {
  color: #b42318;
}

.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0;
  color: var(--muted);
  font-size: 13px;
}

.to-top {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.copyright {
  margin: 0;
}

.page-hero {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 42px;
}

.page-hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.35;
}

.page-hero.not-found {
  min-height: 56vh;
  text-align: center;
}

.page-button {
  margin-top: 26px;
}

.legal-content {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto 72px;
}

.legal-content h2 {
  margin: 42px 0 12px;
  font-size: 22px;
  line-height: 1.5;
}

.legal-content p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 2;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 12px 18px;
    min-height: 76px;
    padding: 12px 18px;
  }

  .brand,
  .brand img {
    width: 72px;
    height: 44px;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 13px;
  }

  .contact-button {
    min-height: 42px;
    padding: 0 18px;
    font-size: 13px;
  }

  .hero {
    width: min(100% - 32px, var(--max));
    padding: 32px 0 52px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    width: min(100% - 32px, var(--max));
    padding: 68px 0;
  }

  .section-image {
    max-height: 420px;
  }

  h2 {
    font-size: 34px;
  }

  .content-band,
  .page-hero,
  .legal-content,
  .site-footer {
    width: min(100% - 32px, var(--max));
  }

  .content-band {
    padding: 66px 0;
  }

  .content-band.subtle,
  .contact-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 66px;
    padding-bottom: 66px;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: start;
  }

  .site-nav {
    gap: 16px;
    font-size: 12px;
  }

  .contact-button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-label {
    font-size: 14px;
  }

  .hero-visual {
    aspect-ratio: 4 / 3;
  }

  h2,
  .page-hero h1 {
    font-size: 30px;
  }

  .service-item {
    padding: 22px 18px;
  }

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

  .company-list dt {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .company-list dd {
    padding-top: 0;
  }

  .submit-button {
    width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
