/* Front page only. Loaded when body has .top-v4. */

body.top-v4 {
  --kp-cta: #20364b;
  --kp-cta-hover: #152433;
  overflow-x: clip;
  background: #fff;
  color: #20364b;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 16px;
  line-height: 1.85;
  word-break: normal;
}
body.top-v4::before { display: none; }
body.top-v4 p { margin: 0; }
body.top-v4 a { color: #20364b; text-underline-offset: 3px; }
body.top-v4 a:hover,
body.top-v4 a:focus-visible { color: #152433; }
body.top-v4 a:focus-visible,
body.top-v4 button:focus-visible {
  outline: 2px solid #20364b;
  outline-offset: 3px;
}
body.top-v4 .site-footer :focus-visible,
body.top-v4 .top-contact :focus-visible { outline-color: #fff; }

body.top-v4 .container,
body.top-v4 .header-inner,
body.top-v4 .footer-inner { width: min(calc(100% - 48px), 1040px); }

body.top-v4 h1,
body.top-v4 h2,
body.top-v4 h3 {
  color: #20364b;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0;
}
body.top-v4 h1,
body.top-v4 h2 { font-weight: 700; }

body.top-v4 .site-footer .brand-logo-image { filter: none; }

body.top-v4 .site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,.16);
  background: #142b41;
  color: #fff;
}
body.top-v4 .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 48px;
  align-items: start;
  text-align: left;
}
body.top-v4 .site-footer .brand-logo-image { width: 88px; height: 88px; }
body.top-v4 .footer-logo { text-decoration: none; }
body.top-v4 .footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  justify-items: stretch;
  text-align: left;
}
body.top-v4 .footer-nav a,
body.top-v4 .footer-nav a:hover,
body.top-v4 .footer-nav a:focus-visible {
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}
body.top-v4 .footer-nav a:hover,
body.top-v4 .footer-nav a:focus-visible { border-bottom-color: #fff; }
body.top-v4 .footer-inner > p {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 13px;
  text-align: left;
}
body.top-v4 .footer-inner > p small { font-size: inherit; color: inherit; }

body.top-v4 .button {
  display: inline-block;
  min-height: 0;
  padding: 14px 28px;
  border: 1px solid var(--kp-cta);
  border-radius: 2px;
  background: var(--kp-cta);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}
body.top-v4 .button:hover,
body.top-v4 .button:focus-visible {
  border-color: var(--kp-cta-hover);
  background: var(--kp-cta-hover);
  color: #fff;
  transform: none;
}
.top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.top-actions .button { margin-top: 0; }
.top-text-action { font-weight: 500; }

.top-sp-br { display: none; }

.top-hero { padding: 0 0 40px; background: #fff; color: #20364b; }
.top-hero-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  overflow: hidden;
}
.top-hero-media,
.top-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.top-hero-media img {
  display: block;
  object-fit: cover;
  object-position: 68% 42%;
}
.top-hero-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1040px);
  margin-inline: auto;
  padding: 40px 0 48px;
}
body.top-v4 .top-hero h1 { max-width: 11em; }
body.top-v4 .top-hero .top-lead,
body.top-v4 .top-hero .top-actions { max-width: 22em; }
body.top-v4 .top-hero h1 {
  margin: 0;
  color: #20364b;
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
  text-shadow: none;
  animation: top-hero-in .5s ease both;
}
.top-lead {
  max-width: 28em;
  margin-top: 22px;
  color: #20364b;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
}
body.top-v4 .top-hero .top-lead { margin-top: 32px; }
body.top-v4 .top-hero .top-lead { max-width: 31em; }
.top-lead .ph { display: inline-block; }
.top-hero .top-actions { margin-top: 28px; }
@keyframes top-hero-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.top-facts {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  margin-top: 28px;
  border: 1px solid #20364b;
  background: #fff;
}
.top-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
  margin: 0;
  padding: 16px 18px;
  color: #20364b;
  font-size: 14px;
  line-height: 1.7;
}
.top-fact + .top-fact { border-left: 1px solid #20364b; }
.top-fact-label { font-weight: 500; white-space: nowrap; }
.top-facts--single { grid-template-columns: minmax(0, 1fr); }

.top-sec-title {
  padding-top: 14px;
  border-top: 2px solid #20364b;
  color: #20364b;
  font-size: clamp(1.65rem, 5vw, 2.55rem);
  font-weight: 700;
  line-height: 1.5;
}

.top-intro { padding: 96px 0 80px; background: #fff; }
.top-intro-copy { max-width: 40rem; }
.top-intro h2 { color: #20364b; font-size: clamp(1.65rem, 5vw, 2.55rem); font-weight: 700; line-height: 1.5; }
.top-intro p { margin-top: 16px; color: #20364b; font-size: 16px; line-height: 1.9; }
.top-intro p + p { margin-top: 12px; }
.top-follow { margin-top: 16px; }
.top-follow a { font-weight: 500; }

.top-services,
.top-problems,
.top-price,
.top-people { padding: 72px 0 64px; background: #fff; }
.top-svc { margin: 28px 0 0; padding: 0; border-top: 1px solid #d7dee4; list-style: none; }
.top-svc li {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 8px 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid #d7dee4;
}
.top-svc h3 { color: #20364b; font-size: 1.24rem; font-weight: 500; line-height: 1.5; }
.top-svc p { grid-column: 2; color: #20364b; font-size: 15px; line-height: 1.9; }
.top-svc a { grid-column: 2; justify-self: start; color: #20364b; font-size: 14px; font-weight: 500; }
.top-note { margin-top: 20px; color: #20364b; font-size: 13px; line-height: 1.8; }

.top-works { padding: 80px 0 72px; background: #fff; }
.top-works-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
  margin-top: 28px;
}
.top-work-main { padding: 28px; border: 1px solid #d7dee4; background: #fff; box-shadow: none; }
.top-work-main h3 { color: #20364b; font-size: 1.24rem; font-weight: 700; line-height: 1.5; }
.top-work-main p { margin-top: 12px; font-size: 16px; line-height: 1.9; }
.top-work-main a { display: inline-block; margin-top: 16px; font-weight: 700; }
.top-work-sub { margin: 0; padding: 0; border-top: 1px solid #20364b; list-style: none; }
.top-work-sub li { padding: 16px 0; border-bottom: 1px solid #d7dee4; }
.top-work-sub h3 { color: #20364b; font-size: 1.24rem; font-weight: 700; line-height: 1.6; }
.top-work-sub p { margin-top: 4px; color: #20364b; font-size: 13px; line-height: 1.7; }
.top-work-sub a { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; }
.top-svc li:has(.work-labels) h3 { grid-row: 1 / span 3; }
.top-svc .work-labels { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.work-label { padding: 1px 10px; border: 1px solid #20364b; color: #20364b; font-size: 12px; font-weight: 500; line-height: 1.7; }
.work-label--self { background: #20364b; color: #fff; }
.works-marquee { margin-top: 28px; overflow: hidden; }
.works-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.works-viewport::-webkit-scrollbar { display: none; }
.works-track { display: flex; gap: 24px; width: max-content; margin: 0; padding: 4px 12px; list-style: none; }
.works-card { flex: none; width: clamp(240px, 22vw, 300px); }
.works-card a { position: relative; display: block; height: 100%; border: 1px solid #d7dee4; background: #fff; color: #20364b; text-decoration: none; }
.works-card a:hover, .works-card a:focus-visible { border-color: #20364b; }
.works-card a:focus-visible { outline: 2px solid #20364b; outline-offset: 2px; }
.works-card-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 12px; background: #e9edf1; }
.works-card-media img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.works-card-media--placeholder { background: linear-gradient(145deg, #1a252f, #52606c 62%, #a6b0b8); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .08em; }
.works-card-body { display: block; padding: 14px 16px 18px; }
.works-card-name { display: block; min-height: 3em; color: #20364b; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.works-card .work-labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.works-marquee:not(.is-ready) .works-viewport { padding-bottom: 0; }
.top-price-list { margin: 28px 0 0; padding: 0; border-top: 1px solid #d7dee4; list-style: none; }
.top-price-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid #d7dee4; color: #20364b; font-size: 15px; line-height: 1.7; }
.top-price-list strong { font-size: 1.24rem; font-weight: 700; white-space: nowrap; }
.top-works-more { margin-top: 28px; }
.top-works-more a { font-weight: 500; }

.top-info { padding: 72px 0; background: #fff; }
.top-info > .container > p { margin-top: 16px; }
.top-info-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) auto;
  gap: 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid #d7dee4;
}
.top-info-row:last-child { border-bottom: 0; }
.top-info-row h2 { color: #20364b; font-size: clamp(1.65rem, 5vw, 2.55rem); font-weight: 700; line-height: 1.5; }
.top-info-row p { color: #20364b; font-size: 15px; line-height: 1.8; }
.top-info-row h2 + p { margin-top: 2px; }
.top-go { justify-self: end; font-size: 14px; font-weight: 700; white-space: nowrap; }

.top-avail { padding: 64px 0; background: #fff; }
.top-avail-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) auto;
  gap: 32px;
  align-items: end;
}
.top-avail h2 {
  padding-top: 14px;
  border-top: 2px solid #20364b;
  color: #20364b;
  font-size: clamp(1.65rem, 5vw, 2.55rem);
  font-weight: 700;
  line-height: 1.5;
}
.top-avail p { margin-top: 10px; font-size: 16px; }
.top-avail .button { justify-self: end; }

.top-contact { padding: 72px 0 88px; background: #fff; color: #20364b; }
.top-contact-inner { max-width: 640px; }
.top-contact h2 { color: #20364b; font-weight: 700; font-size: clamp(1.65rem, 5vw, 2.55rem); line-height: 1.5; }
.top-contact .top-body { margin-top: 16px; color: #20364b; font-size: 16px; }
.top-contact .top-actions { margin-top: 24px; }

@media (max-width: 767px) {
  .top-pc-br { display: none; }
  .top-hero-stage { display: flex; flex-direction: column; min-height: 0; }
  .top-hero-copy { order: 1; z-index: 1; padding: 24px 0 0; }
  .top-hero-media {
    order: 2; position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
    margin-top: -64px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0, #000 30%);
  }
  .top-hero-media img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
  body.top-v4 .top-hero h1 { margin-bottom: 4px; }
}
@media (max-width: 860px) {
  .top-facts { grid-template-columns: minmax(0, 1fr); }
  .top-fact + .top-fact { border-top: 1px solid #20364b; border-left: 0; }
  .top-svc li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .top-svc h3,
  .top-svc p,
  .top-svc .work-labels,
  .top-svc a { grid-column: 1; }
  .top-svc li:has(.work-labels) h3 { grid-row: auto; }
  .top-svc a { justify-self: start; }
  .top-works-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 720px) {
  .works-card { width: 74vw; max-width: 320px; }
  .works-track { gap: 16px; }
  .top-hero { padding-bottom: 28px; }
  body.top-v4 .top-hero h1 { font-size: clamp(26px, 7.6vw, 38px); }
  body.top-v4 .top-hero .top-lead { margin-top: 27px; }
  .top-lead { font-size: 15px; line-height: 1.8; }
  .top-hero .top-actions { margin-top: 20px; }
  .top-fact { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .top-intro { padding: 64px 0 56px; }
  .top-services { padding: 56px 0 48px; }
  .top-works { padding: 56px 0 48px; }
  .top-work-main { padding: 20px; }
  .top-info-row,
  .top-avail-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .top-go,
  .top-avail .button { justify-self: start; }
  .top-avail .button { margin-top: 12px; }
  .top-contact { padding: 64px 0; }
  body.top-v4 .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  body.top-v4 .footer-nav { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .top-hero h1 { animation: none; }
}
