:root {
  color-scheme: light;
  --navy: #102a40;
  --ink: #172d40;
  --muted: #455867;
  --line: #c9d2d9;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", serif;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .28em; }
a:focus-visible { outline: 3px solid #3880a4; outline-offset: 4px; }
.wrap { width: min(100% - clamp(2.5rem, 10vw, 10rem), 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: .5rem; left: 1rem; padding: .75rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead, .brand, nav, nav a, .footer-inner { display: flex; align-items: center; }
.masthead, .footer-inner { justify-content: space-between; gap: 1.5rem; }
.masthead { min-height: 5.5rem; }
.brand { gap: .8rem; font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.28rem); text-decoration: none; }
.brand img { width: 2.5rem; height: 2.5rem; }
nav { gap: clamp(1.25rem, 3.2vw, 3rem); }
nav a, footer a { font-size: .94rem; font-weight: 600; text-decoration: none; }
nav a { min-height: 44px; justify-content: center; }
nav a:hover, footer a:hover { text-decoration: underline; }
nav .contact-nav { padding-inline: 1.4rem; color: white; background: var(--navy); }
.hero { position: relative; isolation: isolate; color: white; background: var(--navy); overflow: hidden; }
.architecture {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 51%;
  height: 100%;
  object-fit: cover;
  object-position: 49% 45%;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-inner { min-height: clamp(23rem, 31vw, 30rem); display: flex; align-items: center; }
.hero-text { width: 51%; padding: 3.5rem 1.5rem 3.5rem 0; }
.hero-text::before, h2::before { display: block; content: ""; width: 2.35rem; height: 2px; }
.hero-text::before { background: #95c5d8; margin-bottom: 1.6rem; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(2.6rem, 4.15vw, 4.3rem); line-height: 1.45; letter-spacing: .045em; }
.hero-text p { margin-top: 1.45rem; color: #e3edf2; font-size: 1rem; line-height: 1.95; }
.section-layout { display: grid; grid-template-columns: minmax(11rem, 27%) 1fr; gap: 2rem; padding-block: clamp(3.4rem, 5.8vw, 5.6rem); }
h2 { font-size: clamp(1.6rem, 2.1vw, 2.05rem); line-height: 1.45; letter-spacing: .045em; }
h2::before { background: #34657f; margin-bottom: .75rem; width: 1.85rem; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 3vw, 3rem); }
.services article { border-top: 1px solid #9baebc; padding-top: 1.15rem; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.37rem); line-height: 1.65; }
article p, .contact-body p { color: var(--muted); line-height: 1.95; }
article p { margin-top: .7rem; }
.company { background: #f1f5f7; }
.facts { border-top: 1px solid #9baebc; }
.facts div { display: grid; grid-template-columns: minmax(5rem, 24%) 1fr; gap: 1rem; padding: 1.05rem .2rem; border-bottom: 1px solid var(--line); line-height: 1.8; }
dt { font-weight: 600; }
.email { display: inline-block; min-height: 44px; margin-top: .7rem; color: #164a6a; font-size: clamp(1.3rem, 2.35vw, 2rem); font-family: "Helvetica Neue", Arial, sans-serif; text-decoration-thickness: 1px; }
.email:hover { color: #28769c; }
footer { background: #10283c; color: white; }
.footer-inner { min-height: 4.75rem; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
small { font-size: .85rem; }
@media (max-width: 68rem) {
  .wide-only { display: none; }
}
@media (max-width: 51rem) {
  .masthead { flex-wrap: wrap; justify-content: center; gap: 0 2rem; padding-block: .75rem; }
  .section-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 38rem) {
  .masthead { justify-content: flex-start; row-gap: .35rem; }
  nav { width: 100%; justify-content: space-between; gap: .75rem; }
  nav .contact-nav { padding-inline: .9rem; }
  .hero { display: flex; flex-direction: column; }
  .architecture { position: static; order: 2; width: 100%; height: clamp(9rem, 33vw, 13rem); object-position: 50% 53%; clip-path: none; }
  .hero-inner { min-height: auto; }
  .hero-text { width: 100%; padding: 2.25rem 0 2rem; }
  .hero-text::before { margin-bottom: .85rem; }
  h1 { font-size: clamp(2.35rem, 8.8vw, 3.1rem); line-height: 1.4; }
  .hero-text p { margin-top: .9rem; }
  .section-layout { padding-block: 2.85rem; }
  .services { grid-template-columns: 1fr; gap: 1.45rem; }
  .facts div { grid-template-columns: 4.4rem 1fr; gap: .55rem; }
  .footer-inner { flex-wrap: wrap; gap: 0 1rem; padding-block: .65rem; }
}
@media print {
  header, footer, .architecture, .skip { display: none; }
  .hero, .company { background: white; color: black; }
  .hero-text p { color: black; }
  .hero-inner { min-height: auto; }
  .hero-text { width: 100%; padding-block: 1rem; }
  .section-layout { padding-block: 1rem; }
  section { break-inside: avoid; }
}
