:root {
  --header: #27343c;
  --header-nav: #2a3d48;
  --dark: #343434;
  --pink: #ca6666;
  --body-text: #72777c;
  --line: #e1e1e1;
  --container: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body-text);
  background: #fff;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 10px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.site-container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

/* Header */
.site-header {
  height: 64px;
  background: var(--header);
  color: #fff;
  position: relative;
  z-index: 20;
}
.header-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-block; text-decoration: none; }
.back-link { color: #fff; text-decoration: none; font-size: 11px; }
.brand img { width: 190px; height: auto; }
.global-nav {
  height: 64px;
  display: flex;
  align-items: stretch;
  margin-left: auto;
}
.global-nav a {
  min-width: 60px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  white-space: nowrap;
  background: var(--header-nav);
  border-left: 1px solid rgba(0,0,0,.18);
  transition: background .15s ease;
}
.global-nav a:last-child { border-right: 1px solid rgba(0,0,0,.12); }
.global-nav a:hover { background: #314956; }
.menu-button { display: none; }

/* Hero */
.hero {
  height: 324px;
  background: #eee url("../images/hero.jpg") center center / cover no-repeat;
}

/* Shared title bands */
.section-title-band {
  height: 97px;
  margin: 0;
  background: var(--dark);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.section-title-band::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 36px solid transparent;
  border-right: 36px solid transparent;
  border-top: 12px solid var(--dark);
  z-index: 3;
}
.section-title-icon {
  width: 18px;
  height: 18px;
  margin-bottom: 4px;
  color: #fff;
}
.section-title-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.service-section .section-title-icon { color: #fff; }
.service-section .section-title-icon svg { filter: drop-shadow(0 0 0 #d68cb6); }
.company-section .section-title-band,
.contact-section .section-title-band { height: 98px; }

.section-title-band h2 {
  margin: 0;
  color: #fff;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: .02em;
}
.section-title-band p {
  margin: 4px 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7px;
  line-height: 1;
}

/* Service */
.service-body {
  height: 251px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 34px;
  background: #fff;
}
.service-copy {
  width: min(620px, calc(100% - 32px));
  text-align: center;
  font-size: 9px;
  line-height: 1.65;
  letter-spacing: .01em;
}
.service-copy p { margin: 0 0 21px; }
.service-copy p:last-child { margin-bottom: 0; }

/* Company */
.company-body {
  height: 407px;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.company-info-wrap {
  height: 100%;
  padding-top: 64px;
}
.company-table {
  width: 445px;
  margin: 0 0 0 max(16px, calc((100vw - var(--container)) / 2));
  padding: 0;
  position: relative;
  z-index: 2;
  font-size: 9px;
}
.company-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}
.company-row.first-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  border-top: 2px solid #5e666c;
}
.company-row dt,
.company-row dd { margin: 0; }
.company-row dt { padding-left: 20px; color: #696f74; }
.company-row dd { color: #697178; }
.company-row dd a { color: inherit; text-decoration: none; }
.company-address { min-height: 75px; align-items: start; padding-top: 13px; }
.company-contact { min-height: 76px; align-items: start; padding-top: 13px; }
.map-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: 40%;
  height: 407px;
  background: #e9e7e4 url("../images/map-fallback.jpg") center / cover no-repeat;
}
.map-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

/* Contact */
.contact-body {
  height: 449px;
  background: var(--pink);
  padding-top: 39px;
}
.contact-form {
  width: min(390px, calc(100% - 36px));
  margin: 0 auto;
  color: #fff;
  font-size: 9px;
}
.form-row { margin: 0 0 13px; }
.form-row label {
  display: block;
  margin-bottom: 4px;
  line-height: 1.3;
}
.form-row input,
.form-row textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 1px;
  background: #fff;
  color: #333;
  outline: none;
  box-shadow: none;
  padding: 4px 7px;
}
.form-row input { height: 23px; }
.form-row textarea {
  height: 89px;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus { outline: 1px solid rgba(39,52,60,.45); }
.submit-wrap { text-align: center; padding-top: 1px; }
.submit-wrap button {
  width: 98px;
  height: 30px;
  border: 0;
  border-radius: 1px;
  background: #142731;
  color: #fff;
  font-size: 9px;
  cursor: pointer;
}
.submit-wrap button:hover { background: #0c1c24; }
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  height: 239px;
  position: relative;
  background: var(--dark);
  color: #fff;
}
.footer-inner { padding-top: 55px; }
.footer-brand { display: inline-block; }
.footer-brand img { width: 190px; }
.copyright {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 6px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(82,82,82,.88);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* Contact result / retained legacy subpage */
.site-header-solid { position: relative; }
.subpage { background: #f4f4f4; font-size: 14px; }
.article-main { min-height: calc(100vh - 260px); padding: 70px 20px; }
.article-card {
  width: min(780px, 100%);
  margin: 0 auto;
  background: #fff;
  padding: 48px;
  color: #555;
}
.article-card h1 { margin: 0 0 20px; color: #333; }
.article-label { font-size: 11px; color: var(--pink); }
.article-content { border-top: 1px solid #eee; padding-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  background: #142731;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 760px) {
  body { font-size: 12px; }
  .site-header, .header-inner { height: 64px; }
  .brand img { width: 170px; }
  .menu-button {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    z-index: 42;
  }
  .menu-button span { height: 2px; width: 100%; background: #fff; transition: transform .2s, opacity .2s; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .global-nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    z-index: 40;
    background: rgba(39,52,60,.98);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .global-nav.is-open { transform: translateX(0); }
  .global-nav a {
    min-height: 58px;
    border: 0;
    background: transparent;
    font-size: 14px;
  }
  body.menu-open { overflow: hidden; }

  .hero { height: 280px; background-position: 48% center; }
  .section-title-band { height: 94px; }
  .service-body { height: auto; min-height: 275px; padding: 42px 18px 36px; }
  .service-copy { font-size: 11px; line-height: 1.9; }
  .service-copy br { display: none; }

  .company-body { height: auto; overflow: visible; }
  .company-info-wrap { height: auto; padding: 48px 20px 44px; }
  .company-table { width: 100%; margin: 0; font-size: 11px; }
  .company-row { grid-template-columns: 80px 1fr; }
  .company-row dt { padding-left: 10px; }
  .map-panel {
    position: relative;
    inset: auto;
    width: 100%;
    height: 320px;
  }

  .contact-body { height: auto; min-height: 465px; padding: 42px 0 58px; }
  .contact-form { font-size: 11px; }
  .form-row input { height: 36px; }
  .form-row textarea { height: 120px; }
  .submit-wrap button { width: 120px; height: 38px; font-size: 11px; }

  .site-footer { height: 220px; }
  .footer-inner { padding-top: 48px; }
  .footer-brand img { width: 170px; }
  .copyright { font-size: 8px; }
  .back-to-top { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
