:root {
  --bg: #eaf6ff;
  --card: #dff1ff;
  --heading: #cfeaff;
  --accent: #b8ddff;
  --safe: #bfe5cf;
  --safe-strong: #92d3ae;
  --white: #ffffff;
  --ink: #183244;
  --muted: #5a7180;
  --line: #d6e4ec;
  --deep: #104363;
  --deep-2: #0c2f46;
  --green: #287757;
  --shadow: 0 18px 44px rgba(18, 58, 82, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  background: var(--white);
  letter-spacing: 0;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(100% - 40px, var(--max));
  min-height: 84px;
  margin: 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  width: 168px;
  min-width: 168px;
}

.site-logo img {
  width: 168px;
  height: auto;
}

.global-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 0 14px;
  color: var(--deep-2);
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
}

.global-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 8px;
  left: 14px;
  height: 3px;
  background: var(--safe-strong);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
  content: "";
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-call {
  display: grid;
  align-content: center;
  min-width: 174px;
  min-height: 58px;
  padding: 8px 16px;
  color: var(--white);
  background: var(--deep);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(16, 67, 99, 0.22);
}

.header-call span {
  font-size: 0.78rem;
  line-height: 1.1;
}

.header-call strong {
  font-size: 1.1rem;
  line-height: 1.2;
}

.menu-toggle {
  display: none;
}

.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(72vh - 84px);
  padding: 72px max(24px, calc((100vw - var(--max)) / 2)) 80px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 46%, rgba(255, 255, 255, 0.28) 72%, rgba(255, 255, 255, 0.1) 100%),
    var(--hero-image) center / cover no-repeat;
}

.home-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 68px;
  background: url("../img/hero.png") center bottom / cover no-repeat;
  content: "";
}

.home-hero-content {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
}

.hero-sub,
.page-kicker,
.section-label {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 800;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 6vw, 5.7rem);
  line-height: 1;
  font-weight: 900;
}

.latin-nowrap {
  white-space: nowrap;
}

.hero-en {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 0.98rem;
  font-family: Georgia, "Times New Roman", serif;
}

.hero-lead p {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--deep);
  box-shadow: 0 12px 24px rgba(16, 67, 99, 0.2);
}

.button-phone {
  color: var(--deep-2);
  background: var(--safe-strong);
  box-shadow: 0 12px 24px rgba(40, 119, 87, 0.18);
}

.button-dark {
  color: var(--white);
  background: var(--deep-2);
}

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 84px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr);
  gap: 20px 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 1.18;
}

.section-head p:not(.section-label) {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

.section-head.compact {
  align-items: start;
}

.service-overview {
  padding-top: 72px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(24, 50, 68, 0.08);
}

.service-tile a {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.service-tile-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--card);
}

.service-tile-body {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.service-tile-body p {
  margin: 0;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

.service-tile-body h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.35;
}

.service-tile-body span {
  color: var(--muted);
  font-size: 0.95rem;
}

.call-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 34px 42px;
  color: var(--white);
  background: linear-gradient(110deg, var(--deep-2), var(--deep));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.call-band p,
.call-band h2 {
  margin: 0;
}

.call-band h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-grid figure,
.side-visual figure {
  margin: 0;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, var(--white) 70%);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 52px;
  background: url("../img/hero.png") center bottom / cover no-repeat;
  opacity: 0.78;
  content: "";
}

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

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.14;
}

.page-hero p:not(.page-kicker) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: start;
}

.lead-copy {
  margin-bottom: 34px;
  padding: 28px;
  background: var(--bg);
  border-left: 7px solid var(--safe-strong);
  border-radius: 6px;
}

.lead-copy p {
  margin: 0 0 10px;
  font-weight: 700;
}

.lead-copy p:last-child {
  margin-bottom: 0;
}

.content-block {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.content-block:first-of-type {
  border-top: 0;
}

.content-block h2 {
  display: inline;
  margin: 0;
  padding: 6px 10px;
  background: linear-gradient(180deg, transparent 45%, var(--heading) 45%);
  font-size: 1.65rem;
  line-height: 1.45;
}

.content-block p {
  margin: 18px 0 0;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 14px 12px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.check-list li::before {
  position: absolute;
  top: 19px;
  left: 15px;
  width: 10px;
  height: 10px;
  background: var(--safe-strong);
  border-radius: 50%;
  content: "";
}

.side-visual {
  position: sticky;
  top: 112px;
}

.main-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.side-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.side-visual-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.inline-cta,
.phone-panel,
.form-result {
  margin-top: 28px;
  padding: 28px;
  background: var(--card);
  border: 1px solid #c4e3f8;
  border-radius: 8px;
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.inline-cta p {
  margin: 0;
  font-weight: 700;
}

.phone-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 34px;
  background: linear-gradient(135deg, var(--deep-2), var(--deep));
  color: var(--white);
}

.phone-panel p {
  margin: 0;
  font-weight: 700;
}

.phone-panel strong {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
}

.narrow {
  width: min(100% - 40px, 940px);
}

.company-table {
  margin: 0;
  border-top: 2px solid var(--deep);
}

.company-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.company-row dt {
  color: var(--deep);
  font-weight: 800;
}

.company-row dd {
  display: grid;
  gap: 5px;
  margin: 0;
}

.message-body,
.document-body {
  width: min(100% - 40px, 920px);
}

.message-body p,
.document-body p {
  margin: 0 0 18px;
}

.signature {
  display: grid;
  justify-content: end;
  gap: 4px;
  margin-top: 40px !important;
  font-weight: 800;
}

.form-section {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 112px;
  padding: 28px;
  background: var(--bg);
  border-radius: 8px;
}

.form-intro p {
  margin: 0 0 14px;
}

.form-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--deep-2);
  font-weight: 800;
}

.contact-form .full,
.form-actions,
.form-result {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--deep);
  box-shadow: 0 0 0 4px rgba(184, 221, 255, 0.55);
}

.check {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px !important;
  font-weight: 700 !important;
}

.check input {
  width: 20px;
  min-height: 20px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-result {
  margin: 0 0 6px;
  background: var(--safe);
  border-color: var(--safe-strong);
}

.form-result h2,
.form-result p {
  margin: 0;
}

.form-result p {
  margin-top: 8px;
}

.site-footer {
  margin-top: 52px;
  color: var(--white);
  background: var(--deep-2);
}

.footer-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 44px 0;
}

.footer-band p {
  margin: 0 0 6px;
}

.footer-name {
  font-size: 1.35rem;
  font-weight: 900;
}

.footer-call {
  display: grid;
  align-content: center;
  min-width: 250px;
  padding: 20px;
  color: var(--deep-2);
  background: var(--safe-strong);
  border-radius: 8px;
}

.footer-call span {
  font-size: 0.9rem;
  font-weight: 800;
}

.footer-call strong {
  font-size: 1.75rem;
  line-height: 1.2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.error-page {
  min-height: 50vh;
}

.error-page h1 {
  margin-top: 0;
}

@media (max-width: 1320px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .global-nav {
    position: fixed;
    top: 84px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .global-nav.is-open {
    display: block;
  }

  .global-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .global-nav a {
    justify-content: start;
    min-height: 46px;
  }

  .menu-toggle {
    display: inline-grid;
    grid-template-columns: 24px auto;
    align-items: center;
    gap: 9px;
    justify-self: end;
    min-height: 46px;
    padding: 0 12px;
    color: var(--deep-2);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .menu-toggle span {
    grid-column: 1;
    width: 22px;
    height: 2px;
    background: var(--deep-2);
  }

  .menu-toggle b {
    grid-row: 1 / span 3;
    grid-column: 2;
    font-size: 0.84rem;
  }

  .header-call {
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .home-hero {
    min-height: auto;
    padding-top: 64px;
  }

  .section,
  .page-hero-inner,
  .footer-band,
  .footer-bottom,
  .call-band {
    width: min(100% - 32px, var(--max));
  }

  .section {
    padding: 64px 0;
  }

  .section-head,
  .two-column,
  .form-section {
    grid-template-columns: 1fr;
  }

  .section-head p:not(.section-label) {
    grid-column: auto;
  }

  .service-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .side-visual,
  .form-intro {
    position: static;
  }

  .main-photo {
    aspect-ratio: 16 / 11;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-band,
  .footer-bottom,
  .call-band,
  .inline-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    grid-template-columns: auto auto;
    gap: 12px;
    width: min(100% - 24px, var(--max));
    min-height: 74px;
  }

  .site-logo,
  .site-logo img {
    width: 136px;
  }

  .header-call {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 50px;
    margin-bottom: 10px;
  }

  .global-nav {
    top: 132px;
    right: 12px;
    left: 12px;
  }

  .global-nav ul {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 52px 16px 72px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.78)),
      var(--hero-image) center / cover no-repeat;
  }

  .home-hero h1 {
    font-size: 3.1rem;
  }

  .hero-lead p {
    font-size: 1.02rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    min-height: 52px;
    padding-inline: 16px;
  }

  .page-hero-inner {
    padding: 52px 0 72px;
  }

  .lead-copy,
  .inline-cta,
  .phone-panel,
  .form-intro {
    padding: 22px;
  }

  .content-block h2 {
    font-size: 1.36rem;
  }

  .side-visual-grid {
    grid-template-columns: 1fr;
  }

  .call-band {
    padding: 26px;
  }

  .footer-call {
    min-width: 0;
  }
}
