:root {
  color-scheme: light;
  --ink: #1d2124;
  --text: #3d4246;
  --muted: #5a5f62;
  --cream: #f5f2ec;
  --line: #d8d3c9;
  --accent: #b5461f;
  --slate: #2f3b41;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --latin: Inter, var(--sans);
  --gutter: clamp(20px, 4vw, 48px);
  --section-space: clamp(56px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
}

h1, h2, h3, p, dl, dd, ul { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }

.site-wrap, .detail-wrap {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.detail-wrap { width: min(100%, 1200px); }
.section { padding-block: var(--section-space); }
.surface { background: var(--cream); }

.skip-link {
  position: absolute;
  z-index: 1;
  inset: 8px auto auto 8px;
  padding: 8px 16px;
  background: #fff;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus { transform: none; }

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 40px;
  padding-block: 18px;
}

.site-brand { display: flex; align-items: center; min-height: 44px; }
.site-brand img, .footer-company img { flex: none; width: auto; height: 24px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px clamp(14px, 2.25vw, 32px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a[aria-current] { border-bottom-color: var(--ink); }

.site-footer {
  padding-block: clamp(44px, 5.5vw, 72px) 40px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 200px;
  gap: 32px 40px;
  margin-bottom: 48px;
}

.footer-company address {
  margin-top: 18px;
  color: var(--text);
  font-size: 13px;
  font-style: normal;
}

.footer-content nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-content nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  text-decoration: none;
}

.footer-content .eyebrow { margin-bottom: 6px; }
.footer-copyright {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.eyebrow {
  color: var(--muted);
  font: 600 13px/1.5 var(--latin);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-hero {
  padding-block: clamp(32px, 5vw, 64px) clamp(44px, 7vw, 88px);
  background: var(--cream);
}

.page-hero .eyebrow, .detail-heading .eyebrow, .service-tagline { color: var(--accent); }
.page-hero h1 { margin-top: 18px; font: 600 clamp(30px, 4vw, 44px)/1.5 var(--serif); }
.page-intro { max-width: 760px; margin-top: 22px; color: var(--text); font-size: 16px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: clamp(20px, 3vw, 32px);
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.section-heading h2, .detail-heading h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.5; }
.section-heading h2 { margin-top: 12px; }
.detail-heading h2 { margin-top: 8px; font: 600 clamp(25px, 3vw, 32px)/1.6 var(--serif); }
.detail-heading h2 + p { margin-top: 14px; color: var(--text); font-size: 14px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  gap: 12px;
  border-bottom: 1px solid currentColor;
  font-weight: 600;
  text-decoration: none;
}

.text-link::after { content: "→" / ""; }

.home-hero {
  height: 400px;
  overflow: hidden;
}

.home-photo {
  position: relative;
  inset-block-start: 60%;
  width: 100%;
  /* Keep the frame covered at narrow widths after shifting the image. */
  min-height: 110%;
  object-fit: cover;
  transform: translateY(calc(20px - 60%));
}

.purpose-grid {
  display: grid;
  grid-template-columns: minmax(0, 600fr) minmax(0, 528fr);
  gap: clamp(24px, 4.4vw, 56px);
  align-items: start;
}

.purpose-panel, .purpose-hero { background: var(--slate); color: #fff; }
.purpose-panel { padding: clamp(24px, 4vw, 48px); padding-block: clamp(36px, 5vw, 64px); }
.purpose-panel .eyebrow, .purpose-hero .eyebrow, .purpose-hero .breadcrumb { color: #c4ccd0; }
.purpose-panel h1, .purpose-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .02em;
  word-break: keep-all;
}
.purpose-panel h1 { margin-top: 24px; font-size: clamp(22px, 3vw, 32px); line-height: 1.75; }

.purpose-copy, .service-copy { display: grid; gap: 18px; color: var(--text); }
.purpose-copy strong { color: var(--ink); font-size: 18px; }
.purpose-hero {
  padding-block: clamp(32px, 5.5vw, 72px) var(--section-space);
}

.purpose-hero .breadcrumb { margin-bottom: clamp(30px, 6vw, 72px); }
.purpose-hero .breadcrumb a:hover { color: #fff; }
.purpose-hero :focus-visible { outline-color: #fff; }
.purpose-hero h1 { margin-top: 26px; font-size: clamp(24px, 4vw, 48px); line-height: 1.65; }
.purpose-article { width: min(100%, 720px); margin-inline: auto; gap: clamp(24px, 4vw, 40px); font-size: 16px; line-height: 2.1; }

.service-cards, .company-links { display: grid; gap: clamp(24px, 4vw, 40px); }
.service-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.service-card, .company-link { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.service-card { padding-top: 28px; border-top: 2px solid var(--ink); }
.company-link { min-height: 250px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); }
.company-link:hover { border-color: var(--ink); }
.service-card h3, .company-link h2 { font-size: clamp(23px, 2.5vw, 30px); line-height: 1.4; }
.service-card strong { color: var(--ink); font-size: 17px; }
.service-card p, .company-link p:not(.eyebrow) { color: var(--text); font-size: 14px; }
.card-arrow {
  display: grid;
  align-self: end;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 19px;
}

.service-card:hover .card-arrow, .company-link:hover .card-arrow { border-color: var(--ink); }
.audience {
  width: fit-content;
  padding: 2px 12px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.audience-business { background: var(--ink); color: #fff; }

.service-nav { border-bottom: 1px solid var(--line); }
.service-nav .detail-wrap, .service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(16px, 3vw, 40px);
}

.service-nav .detail-wrap { padding-block: 8px; }
.service-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}

.service-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  scroll-margin-top: 20px;
}

.service-detail + .service-detail {
  margin-top: clamp(36px, 7vw, 104px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.service-detail h2 { color: var(--ink); font: 600 clamp(25px, 3vw, 36px)/1.3 var(--latin); }
.service-tagline { font: 600 20px/1.6 var(--serif); }
.service-with-image { align-items: center; }
.service-visual {
  display: grid;
  place-items: center;
  min-height: clamp(240px, 34vw, 420px);
  padding: 20px;
  background: var(--cream);
}

.service-visual img { max-height: 380px; width: auto; object-fit: contain; }

.news-rows { padding: 0; list-style: none; }
.home-news .news-rows { border-top: 2px solid var(--ink); }
.news-rows > li { border-bottom: 1px solid var(--line); }
.news-row {
  display: grid;
  grid-template-columns: 96px minmax(128px, 180px) minmax(0, 1fr);
  gap: 4px clamp(16px, 3vw, 32px);
  align-items: baseline;
  padding-block: 22px;
  text-decoration: none;
}

.news-row time { color: var(--muted); font: 500 14px/1.5 var(--latin); }
.news-category { color: var(--text); font-size: 12px; font-weight: 700; }
.news-empty { padding-block: 24px; color: var(--muted); }

.news-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.news-controls p { padding-block: 8px; color: var(--muted); font-size: 13px; }
.news-filters, .news-pagination { display: flex; flex-wrap: wrap; gap: 4px; }
.news-filters a, .news-pagination > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: clamp(8px, 2vw, 18px);
  font-size: 14px;
  text-decoration: none;
}

.news-filters a { border-bottom: 2px solid transparent; }
.news-filters [aria-current] { border-color: var(--ink); font-weight: 700; }
.news-pagination { justify-content: center; margin-top: 36px; }
.news-pagination > * { border: 1px solid var(--line); }
.news-pagination [aria-current] { border-color: var(--ink); background: var(--ink); color: #fff; }
.news-archives { margin-top: 36px; color: var(--text); }
.news-archives summary { width: fit-content; cursor: pointer; }
.news-archives ul { columns: 12em; margin-top: 12px; padding-left: 20px; }

.company-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(24px, 6vw, 80px);
}

.company-profile { border-top: 2px solid var(--ink); }
.company-profile > div {
  display: grid;
  grid-template-columns: minmax(86px, 140px) minmax(0, 1fr);
  gap: 8px 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.company-profile dt { color: var(--muted); font-size: 14px; }
.company-profile ul { padding-left: 1.25em; }
.company-profile li + li { margin-top: 6px; }
.googleMap { background: #e6e1d7; }
.googleMap iframe { display: block; width: 100%; height: clamp(260px, 35vw, 400px); border: 0; }

.contact-form { max-width: 880px; display: grid; gap: 28px; }
.contact-field { display: grid; gap: 8px; }
.contact-field label { font-weight: 600; }

.required {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream);
  color: var(--accent);
  font-size: 12px;
}

.contact-field input, .contact-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #8f9293;
  border-radius: 2px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.contact-field input[type=tel] { max-width: 320px; }
.contact-field textarea { resize: vertical; }
.contact-field ::placeholder, .contact-hint { color: var(--muted); }
.contact-hint { font-size: 13px; }
.contact-actions { display: grid; justify-items: start; gap: 12px; }
#contact-challenge { width: 100%; min-width: 0; }
#contact-status { min-height: 1.5em; }
#contact-status[data-error] { color: var(--accent); }

.contact-actions button {
  min-height: 48px;
  padding: 10px 48px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-actions button:hover:enabled { background: var(--slate); }
.contact-actions button:disabled { background: var(--muted); cursor: default; }

@media (max-width: 760px) {
  .header-content { flex-direction: column; gap: 2px; padding-block: 8px 12px; }
  .site-nav { justify-content: center; }
  .purpose-grid, .service-cards, .service-detail, .company-grid { grid-template-columns: 1fr; }
  .service-cards { gap: 28px; }
  .service-with-image .service-copy { grid-row: 1; }
  .service-visual img { max-height: 310px; }
  .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-company { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .site-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-nav a { justify-content: center; font-size: 13px; }
  .company-links { grid-template-columns: 1fr; gap: 16px; }
  .company-profile > div { grid-template-columns: 1fr; }
  .company-link { min-height: 190px; }
  .news-row { grid-template-columns: auto minmax(0, 1fr); padding-block: 16px; }
  .news-row > :last-child { grid-column: 1 / -1; }
}
