:root {
  --blue: #1769aa;
  --blue-dark: #0d3f73;
  --blue-soft: #eaf3fb;
  --ink: #172331;
  --muted: #647181;
  --line: #dce5ee;
  --paper: #fff;
  --sand: #f4f8fc;
  --header-h: 84px;
  --radius: 20px;
  --shadow: 0 22px 60px rgba(13, 63, 115, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 6px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.container.narrow { width: min(960px, calc(100% - 48px)); }
.section { padding: 120px 0; }
.section-heading { margin-bottom: 58px; }
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
}
.section-heading h2,
.contact-box h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.35;
  letter-spacing: .06em;
}
.section-heading.light h2,
.section-heading.light .section-kicker { color: #fff; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(13, 63, 115, .10);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1280px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(145deg, #3f91d0, #13558d);
  border-radius: 50% 50% 50% 12px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
}
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 15px; letter-spacing: .08em; white-space: nowrap; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .1em; white-space: nowrap; }
.navigation { display: flex; align-items: center; gap: 28px; }
.navigation a { position: relative; font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.navigation a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--blue);
  transition: right .25s ease;
}
.navigation a:hover::after { right: 0; }
.nav-contact { padding: 13px 20px; color: #fff; background: var(--blue); border-radius: 999px; }
.menu-button { display: none; }

.hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding-top: var(--header-h);
  background: #eaf2f9;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 43, 78, .88) 0%, rgba(8, 43, 78, .68) 43%, rgba(8, 43, 78, .18) 72%, rgba(8, 43, 78, .05) 100%),
    url("images/hero.jpg") center 48% / cover no-repeat;
  transform: scale(1.015);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: min(1160px, calc(100% - 48px)); margin-inline: auto; color: #fff; }
.hero-eyebrow { margin: 0 0 22px; font-size: 12px; font-weight: 800; letter-spacing: .28em; opacity: .82; }
.hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.33;
  letter-spacing: .07em;
  text-shadow: 0 3px 26px rgba(0,0,0,.18);
}
.hero h1 span { color: #c6e5ff; }
.hero-lead { margin: 30px 0 0; font-size: clamp(15px, 1.8vw, 19px); letter-spacing: .05em; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; padding: 15px 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; font-size: 14px; font-weight: 700; transition: .25s ease; }
.button-primary { color: var(--blue-dark); background: #fff; }
.button-primary:hover { transform: translateY(-2px); background: #eef7ff; }
.button-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.scroll-guide {
  position: absolute;
  right: 42px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}
.scroll-guide span { display: block; width: 1px; height: 58px; background: rgba(255,255,255,.65); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scaleY(.6); transform-origin: top; opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(48px, 8vw, 100px); }
.about-image { margin: 0; position: relative; }
.about-image::before { content: ""; position: absolute; z-index: -1; left: -28px; bottom: -28px; width: 76%; height: 70%; background: var(--blue-soft); border-radius: var(--radius); }
.about-image img { aspect-ratio: 4 / 4.75; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-content p { margin: 0 0 22px; color: #465466; }
.about-content .lead-copy { margin-bottom: 32px; color: var(--blue-dark); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(24px, 3vw, 34px); line-height: 1.6; letter-spacing: .05em; }

.business { background: var(--sand); }
.business-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 36px; padding: 54px 64px; background: #fff; border-radius: var(--radius); box-shadow: 0 16px 50px rgba(20, 66, 110, .08); }
.business-card::after { content: ""; position: absolute; right: -75px; bottom: -95px; width: 250px; height: 250px; border: 1px solid #dceaf6; border-radius: 50%; box-shadow: 0 0 0 35px rgba(220,235,248,.42), 0 0 0 70px rgba(220,235,248,.22); }
.business-text { position: relative; z-index: 1; }
.business-text p { margin: 0 0 20px; }
.business-text p:last-child { margin-bottom: 0; }

.quality { color: #fff; background: var(--blue-dark); }
.quality-main { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 0; }
.quality-hero-image { margin: 0; }
.quality-hero-image img { aspect-ratio: 1.45 / 1; object-fit: cover; border-radius: var(--radius) 0 0 var(--radius); }
.quality-copy { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 5vw, 68px); color: var(--ink); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.quality-label { margin: 0 0 18px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.quality-copy h3 { margin: 0 0 28px; color: var(--blue-dark); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(28px, 3vw, 40px); line-height: 1.5; letter-spacing: .05em; }
.quality-copy p:not(.quality-label) { margin: 0 0 18px; color: #4b5868; }
.facility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; }
.facility-item { margin: 0; overflow: hidden; position: relative; border-radius: 16px; }
.facility-item img { aspect-ratio: 1.5 / 1; object-fit: cover; transition: transform .6s ease; }
.facility-item:hover img { transform: scale(1.04); }
.facility-item figcaption { position: absolute; inset: auto 0 0; padding: 42px 24px 20px; background: linear-gradient(transparent, rgba(5,30,58,.86)); font-weight: 700; letter-spacing: .08em; }
.facility-item figcaption span { display: block; margin-bottom: 4px; font-size: 9px; letter-spacing: .2em; opacity: .72; }

.company { background: #fff; }
.company-table-wrap { border-top: 2px solid var(--blue-dark); }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td { padding: 24px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.company-table th { width: 180px; color: var(--blue-dark); text-align: left; font-size: 14px; letter-spacing: .04em; }
.company-table td { color: #445163; }
.company-table ul { margin: 0; padding-left: 1.15em; }
.company-table li + li { margin-top: 8px; }

.contact { padding: 100px 0; background: var(--blue-soft); }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 58px 64px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-box h2 { margin-bottom: 16px; }
.contact-box p:last-child { margin: 0; color: var(--muted); }
.contact-hours { margin-top: 10px !important; font-size: 13px; font-weight: 700; }
.phone-link { display: grid; min-width: 330px; padding: 20px 34px; color: #fff; background: var(--blue); border-radius: 16px; text-align: center; transition: .25s ease; }
.phone-link:hover { transform: translateY(-3px); background: #125b96; box-shadow: 0 14px 30px rgba(23,105,170,.24); }
.phone-link span { font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.phone-link strong { font-family: Arial, sans-serif; font-size: clamp(28px, 4vw, 38px); letter-spacing: .04em; }

.site-footer { color: #fff; background: #103b67; }
.footer-inner { display: flex; justify-content: space-between; gap: 50px; padding: 70px 0 54px; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: rgba(255,255,255,.58); }
.footer-company address { margin-top: 26px; color: rgba(255,255,255,.7); font-size: 13px; font-style: normal; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 16px 28px; align-content: start; }
.footer-nav a { padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 13px; }
.copyright { padding: 20px 24px; color: rgba(255,255,255,.48); background: #0a2c4e; text-align: center; font-size: 10px; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .site-header { height: var(--header-h); }
  .header-inner { width: calc(100% - 28px); }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { display: none; }
  .brand-mark { flex-basis: 38px; width: 38px; height: 38px; font-size: 21px; }

  .menu-button {
    position: relative;
    z-index: 1002;
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-button span { display: block; width: 25px; height: 2px; background: var(--blue-dark); transition: .25s ease; }
  .menu-button.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button.open span:nth-child(2) { opacity: 0; }
  .menu-button.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .navigation {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 90px 28px 40px;
    background: rgba(255,255,255,.98);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: .25s ease;
  }
  .navigation.active { visibility: visible; opacity: 1; transform: translateY(0); }
  .navigation a { font-size: 18px; }
  .nav-contact { padding: 14px 34px; }
  body.menu-open { overflow: hidden; }

  .hero { min-height: 700px; height: 92svh; }
  .hero-bg { background-position: 58% center; }
  .hero h1 { font-size: clamp(38px, 8vw, 62px); }
  .scroll-guide { display: none; }

  .section { padding: 90px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 650px; }
  .about-image img { aspect-ratio: 16 / 11; }
  .business-card { grid-template-columns: 1fr; padding: 44px; }
.quality-main { grid-template-columns: 1fr; }
  .quality-hero-image img { border-radius: var(--radius) var(--radius) 0 0; }
  .quality-copy { border-radius: 0 0 var(--radius) var(--radius); }
  .contact-box { align-items: stretch; flex-direction: column; }
  .phone-link { min-width: 0; }
}

@media (max-width: 640px) {
  .container,
  .container.narrow,
  .hero-inner { width: calc(100% - 36px); }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 38px; }
  .pc-only { display: none; }

  .hero { min-height: 650px; }
  .hero-bg { background-position: 61% center; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); letter-spacing: .035em; }
  .hero-lead { line-height: 1.8; }
  .hero-actions { flex-direction: column; width: min(100%, 330px); }
  .button { width: 100%; }

  .about-grid { gap: 54px; }
  .about-image::before { left: -14px; bottom: -14px; }
  .about-image img { aspect-ratio: 4 / 3; }
  .about-content .lead-copy { font-size: 25px; }

  .business-card { grid-template-columns: 1fr; gap: 16px; padding: 34px 26px; }
.quality-copy { padding: 34px 24px; }
  .facility-grid { grid-template-columns: 1fr; }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td { display: block; width: 100%; }
  .company-table tr { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .company-table th,
  .company-table td { padding: 0; border: 0; }
  .company-table th { margin-bottom: 9px; }

  .contact { padding: 72px 0; }
  .contact-box { padding: 38px 24px; }
  .phone-link { padding: 18px 16px; }
  .phone-link strong { font-size: 29px; }

  .footer-inner { flex-direction: column; padding: 54px 0 42px; }
  .footer-nav { grid-template-columns: 1fr; }
}

/* Blue & muted teal edition */
:root {
  --blue: #2f7788;
  --blue-dark: #123f67;
  --blue-soft: #edf5f7;
  --ink: #182532;
  --muted: #566575;
  --line: #d7e1e6;
  --paper: #ffffff;
  --sand: #f5f8fa;
  --shadow: 0 22px 60px rgba(18, 63, 103, .13);
}

/* Readability */
body {
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: .015em;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}
p,
li,
td,
address { font-weight: 500; }
.section-heading h2,
.contact-box h2,
.hero h1,
.about-content .lead-copy,
.quality-copy h3 {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 700;
}
.section-heading h2,
.contact-box h2 { letter-spacing: .045em; }
.hero h1 { letter-spacing: .045em; }
.about-content .lead-copy,
.quality-copy h3 { letter-spacing: .035em; }
.about-content p,
.quality-copy p:not(.quality-label),
.company-table td { color: #354657; }

.site-header { border-bottom-color: rgba(47, 119, 136, .24); }
.brand-mark {
  background: linear-gradient(145deg, #4e96aa, #174f78);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 5px 16px rgba(18,63,103,.16);
}
.navigation a:not(.nav-contact)::after { background: linear-gradient(90deg, #123f67, #4e96aa); }
.nav-contact,
.phone-link {
  background: linear-gradient(135deg, #123f67 0%, #1c5f8e 72%, #2f7788 135%);
  box-shadow: 0 10px 28px rgba(18,63,103,.20);
}
.nav-contact:hover,
.phone-link:hover { background: linear-gradient(135deg, #0d3152, #174f78 72%, #286978 135%); }
.hero { background: #123f67; }
.hero-bg {
  background:
    linear-gradient(90deg, rgba(7,35,61,.93) 0%, rgba(18,63,103,.78) 43%, rgba(18,63,103,.30) 72%, rgba(18,63,103,.08) 100%),
    url("images/hero.jpg") center 48% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: var(--header-h) 0 auto;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, transparent, #87b7c2 18%, #2f7788 50%, #87b7c2 82%, transparent);
  opacity: .82;
}
.hero h1 span { color: #bfe4eb; }
.hero-eyebrow,
.section-kicker { color: #2f7788; }
.section-heading.light .section-kicker { color: #bfe4eb; }
.button-primary {
  color: #123f67;
  background: #ffffff;
}
.button-primary:hover { background: #e9f4f7; }
.button-secondary { border-color: rgba(191,228,235,.82); background: rgba(7,35,61,.18); }
.about-image::before { background: #e8f2f5; }
.business-card,
.contact-box,
.quality-copy { border: 1px solid rgba(47,119,136,.20); }
.business-card::after {
  border-color: #b8d5db;
  box-shadow: 0 0 0 35px rgba(184,213,219,.22), 0 0 0 70px rgba(184,213,219,.11);
}
.quality { background: linear-gradient(145deg, #0d3152, #123f67 58%, #092843); }
.quality-label { color: #2f7788; }
.facility-item figcaption { background: linear-gradient(transparent, rgba(7,35,61,.92)); }
.company-table-wrap { border-top-color: #2f7788; }
.company-table th { color: #123f67; font-weight: 700; }
.contact { background: #edf5f7; }
.site-footer { background: #103a5d; border-top: 4px solid #2f7788; }
.copyright { background: #082944; }

/* Heading typography: restore elegant Mincho style */
.section-heading h2,
.contact-box h2,
.hero h1,
.about-content .lead-copy,
.quality-copy h3 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  font-weight: 700;
  letter-spacing: .055em;
}

/* Mobile navigation and hero refinements (2026-07) */
@media (max-width: 900px) {
  .navigation {
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding:
      calc(var(--header-h) + 34px + env(safe-area-inset-top))
      max(28px, env(safe-area-inset-right))
      calc(40px + env(safe-area-inset-bottom))
      max(28px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
  }

  .navigation a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--blue-dark);
    font-size: 17px;
    font-weight: 700;
  }

  .navigation a::before {
    content: "";
    order: 2;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-top: 2px solid var(--blue);
    border-right: 2px solid var(--blue);
    transform: rotate(45deg);
  }

  .navigation a:not(.nav-contact)::after { display: none; }

  .navigation .nav-contact {
    margin-top: 24px;
    padding: 17px 22px;
    min-height: 58px;
    justify-content: center;
    color: #fff;
    border: 0;
    border-radius: 999px;
  }

  .navigation .nav-contact::before { display: none; }

  body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 700px;
    height: 100svh;
    align-items: start;
    padding-top: var(--header-h);
    background: #123f67;
  }

  .hero-bg {
    inset: var(--header-h) 0 0;
    background:
      linear-gradient(180deg,
        rgba(7,35,61,.98) 0%,
        rgba(18,63,103,.92) 34%,
        rgba(18,63,103,.60) 55%,
        rgba(18,63,103,.12) 79%,
        rgba(18,63,103,.02) 100%),
      url("images/hero.jpg") 66% 100% / auto 66% no-repeat,
      #123f67;
    transform: none;
  }

  .hero-inner {
    padding-top: 48px;
    padding-bottom: 290px;
  }

  .hero-eyebrow { margin-bottom: 16px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 46px); }
  .hero-lead { margin-top: 22px; }
  .hero-actions { margin-top: 28px; }
}

@media (max-width: 390px) {
  .hero-bg {
    background:
      linear-gradient(180deg,
        rgba(7,35,61,.99) 0%,
        rgba(18,63,103,.94) 36%,
        rgba(18,63,103,.62) 57%,
        rgba(18,63,103,.13) 81%,
        rgba(18,63,103,.02) 100%),
      url("images/hero.jpg") 65% 100% / auto 62% no-repeat,
      #123f67;
  }

  .hero-inner { padding-bottom: 270px; }
}


/* Reliable zero-height target for #top on mobile browsers */
.page-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Mobile copy line-break refinements */
.mobile-copy { display: none; }

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(27px, 8vw, 34px);
    letter-spacing: .035em;
    line-height: 1.55;
  }

  .hero h1 .mobile-keep {
    white-space: nowrap;
  }

  .about-content .lead-copy {
    font-size: clamp(19px, 5.8vw, 23px);
    line-height: 1.75;
    letter-spacing: .035em;
  }

  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
}

/* Mobile hero: keep the researcher's face clear by lowering the copy and buttons */
@media (max-width: 640px) {
  .hero-inner {
    padding-top: 108px;
    padding-bottom: 215px;
  }

  .hero-actions {
    margin-top: 34px;
  }
}

@media (max-width: 390px) {
  .hero-inner {
    padding-top: 96px;
    padding-bottom: 205px;
  }
}
