:root {
  color-scheme: light;
  --page: #f5f5f5;
  --ink: #272727;
  --muted: #626262;
  --rule: #d4d4d4;
  --accent: #454545;
  --signal: #777777;
  --image: #e8e8e8;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --latin: "Manrope", "Verdana", sans-serif;
  font-family: var(--sans);
  font-size: 100%;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
  scroll-behavior: smooth;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 95px, rgb(39 39 39 / 2%) 95px, rgb(39 39 39 / 2%) 96px);
}

a { color: inherit; }
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
main:focus { outline: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2 { font-size: 2rem; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
section { scroll-margin-top: 24px; }
.page-width { width: min(1040px, calc(100% - 80px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 10px 16px;
  color: var(--page);
  background: var(--ink);
  font-weight: 700;
  line-height: 1.5;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
  padding-block: 36px 28px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.wordmark span { color: var(--accent); font-weight: 400; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 700; line-height: 1.5; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

.hero a:focus-visible { outline-color: #fff; }
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100svh; isolation: isolate; color: #fff; background: #303030; }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 40%)); }
.hero-content { min-width: 0; padding-block: 96px max(144px, 9rem); }
.hero h1 { font-family: var(--sans); font-size: 3rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; text-wrap: balance; }
.hero-company { margin-top: 16px; font-family: var(--latin); font-size: .875rem; font-weight: 500; line-height: 1.75; overflow-wrap: anywhere; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: max-content; max-width: calc(100% - 40px); min-width: 80px; min-height: 60px; transform: translateX(-50%); font-family: var(--latin); font-size: 1rem; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none; }
.hero-scroll span:last-child { font-size: 1.5rem; line-height: 1; }

.services-section { padding-block: 48px 64px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.service-link { display: block; min-width: 0; text-decoration: none; }

.service-visual {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: calc(3.75rem + 42px);
  aspect-ratio: 5 / 2;
  border: 1px solid var(--rule);
  background: var(--image);
  transition: border-color 160ms ease;
}

.service-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.service-link:hover .service-visual { border-color: var(--accent); }
.service-link:hover .service-name { text-decoration: underline; text-underline-offset: .25em; }
.service-name { position: relative; z-index: 1; align-self: start; justify-self: end; max-width: calc(100% - 24px); margin: 12px; padding: 8px 12px; border-radius: 2px; color: #fff; background: rgb(0 0 0 / 72%); font-family: var(--latin); font-size: 1.25rem; font-weight: 700; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }

.document-page { display: flex; flex-direction: column; min-height: 100svh; }
.document-main { flex: 1; padding-block: 64px 80px; }
.document-heading { padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.document-heading h1 { margin-top: 8px; font-size: 2rem; }
.document-content { max-width: 640px; margin-top: 32px; font-size: 1rem; }
.document-status { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.draft-field { color: var(--muted); overflow-wrap: anywhere; }
.policy-body { display: grid; gap: 32px; margin-top: 32px; }
.policy-body h2 { font-size: 1.25rem; }
.policy-body p { margin-top: 1em; }
.policy-body ul { margin: 1em 0 0; padding-inline-start: 1.5em; }
.policy-body li + li { margin-top: .5em; }
.policy-contact { margin-top: 1em; }
.policy-date { margin-top: 32px; color: var(--muted); font-size: .875rem; }
.company-details > div { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 12px 20px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.company-details > div:first-child { padding-top: 0; }
.company-details dt { color: var(--muted); }
.company-details dd { overflow-wrap: anywhere; }
.company-details ul { margin: 0; padding-inline-start: 1.25em; }
.company-details li + li { margin-top: .5em; }

.company-contact { margin-top: 48px; padding-top: 32px; }
.contact-form { display: grid; gap: 24px; margin-top: 24px; }
.contact-field { display: grid; gap: 8px; min-width: 0; }
.contact-field label { font-weight: 700; line-height: 1.5; }
.field-note { margin-left: 8px; color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.75; }
.contact-field input, .contact-field textarea { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 12px 14px; border: 1px solid var(--muted); border-radius: 2px; color: var(--ink); background: #fff; font: inherit; line-height: 1.75; }
.contact-field textarea { min-height: 160px; resize: vertical; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible, .contact-submit:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.contact-privacy { font-size: .875rem; }
.contact-status { font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.contact-status:empty { display: none; }
.contact-status[data-state="error"] { color: #a22f2a; }
.contact-submit { justify-self: start; min-height: 48px; max-width: 100%; padding: 12px 24px; border: 1px solid var(--accent); border-radius: 2px; color: #fff; background: var(--accent); font: inherit; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; cursor: pointer; }
.contact-submit:hover:not(:disabled) { background: #303030; }
.contact-submit:disabled { cursor: not-allowed; opacity: .65; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 24px 32px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
.site-footer > span { font-size: .75rem; }
.site-footer small { font-size: inherit; }
.wordmark::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 6px 0; background: var(--signal); }

@media (max-width: 700px) {
  .page-width { width: calc(100% - 40px); }
  h1, h2 { font-size: 1.5rem; }
  .site-header { gap: 16px; padding-block: 24px 20px; }
  nav { width: 100%; gap: 4px 20px; }
  .hero-image { object-position: 75% 55%; }
  .hero h1 { font-size: 2rem; line-height: 1.5; }
  .services-section { padding-block: 32px 40px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .document-main { padding-block: 40px 56px; }
  .document-heading h1 { font-size: 1.5rem; }
  .policy-body h2 { font-size: 1.125rem; }
  .company-details > div { grid-template-columns: minmax(0, 100px) minmax(0, 1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .service-visual { transition: none; }
}