/* Shared KSC navigation. Scoped to avoid changing the concept-site designs. */
html { scroll-padding-top: 24px; }
body.ksc-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
body.ksc-page > main { flex: 1 0 auto; }
.ksc-header, .ksc-footer, .ksc-skip-link {
  --ksc-ink: #172f3d;
  --ksc-muted: #566a68;
  --ksc-accent: #18796f;
  --ksc-line: #d9e2de;
  box-sizing: border-box;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--ksc-ink);
  -webkit-font-smoothing: antialiased;
}
.ksc-header *, .ksc-footer * { box-sizing: border-box; }
.ksc-header a, .ksc-footer a { color: inherit; text-decoration: none; }
.ksc-header a:focus-visible, .ksc-footer a:focus-visible, .ksc-menu summary:focus-visible {
  outline: 3px solid var(--ksc-accent);
  outline-offset: 5px;
}
.ksc-header { position: relative; z-index: 30; background: #fcfdfb; flex-shrink: 0; }
.ksc-header__inner {
  width: min(1280px, calc(100% - 80px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--ksc-line);
}
.ksc-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.ksc-brand img { display: block; width: 118px; height: 39px; object-fit: contain; }
.ksc-nav { display: flex; gap: 32px; align-items: center; margin-left: auto; font-weight: 600; }
.ksc-nav a { display: inline-flex; padding-block: 14px; white-space: nowrap; }
.ksc-nav a:hover, .ksc-footer a:hover { color: var(--ksc-accent); }
.ksc-nav a[aria-current] { color: var(--ksc-accent); text-decoration: underline; text-underline-offset: 8px; }
.ksc-header .ksc-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 28px;
  padding: 11px 21px;
  min-height: 44px;
  border-radius: 3px;
  background: var(--ksc-ink);
  color: #fff;
  font-weight: 600;
}
.ksc-contact-link span { font-size: 19px; line-height: 1; }
.ksc-header .ksc-contact-link:hover { background: #265265; }
.ksc-menu { display: none; }
.ksc-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 12px 20px;
  background: var(--ksc-ink);
  color: #fff;
  text-decoration: none;
}
.ksc-skip-link:focus { transform: translateY(0); }
.ksc-footer { background: #f4f7f3; border-top: 1px solid var(--ksc-line); margin-top: auto; }
.ksc-footer__inner { width: min(1180px, calc(100% - 100px)); margin-inline: auto; }
.ksc-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 48px 38px; }
.ksc-footer__identity p { margin: 15px 0 0; font-size: 11px; color: var(--ksc-muted); line-height: 1.9; }
.ksc-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 28px; font-size: 11px; }
.ksc-footer__nav a { display: inline-flex; min-height: 36px; align-items: center; gap: 10px; }
.ksc-footer__bottom { display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--ksc-line); padding-block: 20px; }
.ksc-footer__privacy { font-size: 10px; }
.ksc-footer__bottom small { font: 10px/1.7 Arial, sans-serif; letter-spacing: .06em; color: var(--ksc-muted); margin-left: auto; }
.ksc-back-to-top { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #bdcec4; border-radius: 50%; flex-shrink: 0; font: 19px/1 Arial, sans-serif; }
.ksc-back-to-top:hover { background: #e4efe8; }
@media (max-width: 900px) {
  .ksc-header__inner { width: calc(100% - 48px); gap: 24px; }
  .ksc-nav { gap: 20px; font-size: 11px; }
  .ksc-footer__inner { width: calc(100% - 48px); }
  .ksc-footer__top { align-items: flex-start; gap: 32px; }
  .ksc-footer__nav { max-width: 330px; }
}
@media (max-width: 760px) {
  .ksc-header__inner { width: calc(100% - 32px); min-height: 80px; gap: 16px; }
  .ksc-brand img { width: 100px; height: 34px; }
  .ksc-nav { display: none; }
  .ksc-header .ksc-contact-link { margin-left: auto; font-size: 11px; padding: 10px 14px; gap: 18px; }
  .ksc-menu { display: block; }
  .ksc-menu summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 48px; min-height: 48px; cursor: pointer; list-style: none; font-size: 9px; }
  .ksc-menu summary::-webkit-details-marker { display: none; }
  .ksc-menu__icon { width: 20px; height: 12px; position: relative; }
  .ksc-menu__icon::before, .ksc-menu__icon::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ksc-ink); transition: transform .2s; }
  .ksc-menu__icon::before { top: 2px; }
  .ksc-menu__icon::after { bottom: 2px; }
  .ksc-menu[open] .ksc-menu__icon::before { transform: translateY(3px) rotate(45deg); }
  .ksc-menu[open] .ksc-menu__icon::after { transform: translateY(-3.5px) rotate(-45deg); }
  .ksc-menu__panel { position: absolute; top: 100%; left: 0; right: 0; background: #fcfdfb; padding: 12px 24px 24px; box-shadow: 0 18px 28px #172f3d12; border-bottom: 1px solid var(--ksc-line); }
  .ksc-menu__panel a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--ksc-line); font-size: 13px; }
  .ksc-menu__panel a:last-child { color: var(--ksc-accent); }
  .ksc-footer__top { display: grid; gap: 28px; padding-block: 36px 26px; }
  .ksc-footer__nav { display: grid; grid-template-columns: 1fr 1fr; justify-content: start; gap: 4px 28px; max-width: none; }
  .ksc-footer__bottom { gap: 16px; padding-block: 16px; }
}
@media (max-width: 360px) {
  .ksc-header__inner { gap: 10px; }
  .ksc-brand img { width: 88px; height: 30px; }
  .ksc-header .ksc-contact-link { padding-inline: 11px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ksc-menu__icon::before, .ksc-menu__icon::after { transition: none; }
}
