/*
 * NextFrontLine shared-shell enterprise visual layer.
 * Scope: the 39 corporate-shell pages. /nextclip/ intentionally does not load it.
 * Navigation and form component classes are deliberately untouched.
 */

body {
  color: #172234;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .006em;
}

main :where(h1, h2, h3) {
  color: #111d30;
  font-weight: 700;
  letter-spacing: -.012em;
}

main :where(p, li, dd) {
  line-height: 1.8;
}

.kicker,
.eyebrow {
  margin-bottom: 12px;
  color: #176b8b;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.home-hero,
.hero,
.page-hero {
  border-bottom: 1px solid #d5e0e7;
}

.home-hero {
  padding-block: clamp(56px, 5vw, 80px);
  background: #f5f8fa;
}

.home-hero::before,
.hero::before {
  background: #f5f8fa;
}

.home-hero::after,
body[data-brand] .page-hero::after,
body[data-brand="nextdrive"] .page-hero::before {
  display: none;
}

.home-hero .hero__copy::before {
  width: 56px;
  height: 3px;
  margin-bottom: 24px;
  border-radius: 1px;
  background: #16749a;
}

.home-hero h1 {
  font-size: clamp(2.65rem, 5.2vw, 4rem);
  line-height: 1.18;
  letter-spacing: -.015em;
}

.hero__lead {
  margin-top: 24px;
  color: #4f6072;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.85;
}

.hero__service-card {
  padding: clamp(24px, 2.6vw, 32px);
  border-color: #cbd8e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.hero__service-card::before {
  width: 88px;
  height: 4px;
  background: #70c0e0;
}

.hero__service-card h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.45;
}

.hero__service-list {
  margin-top: 20px;
}

.hero__service-list li {
  padding-block: 4px;
  font-weight: 600;
}

.hero__service-list a {
  min-height: 40px;
}

.hero__service-list span,
.card__number {
  font-weight: 700;
}

.brand-line i {
  border-radius: 1px;
}

.brand-line {
  margin-top: 20px;
}

.region-chip {
  border-radius: 8px;
}

.page-hero {
  display: grid;
  min-height: clamp(320px, 28vw, 430px);
  align-items: center;
  padding-block: clamp(72px, 7vw, 104px);
  background: #f3f6f8;
}

body[data-brand] .page-hero {
  background: #f3f6f8;
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.35rem, 3.6vw, 3.1rem);
  line-height: 1.24;
  letter-spacing: -.014em;
}

.page-hero p:last-child {
  margin-top: 22px;
  color: #526477;
  font-size: 1.04rem;
  line-height: 1.85;
}

.section {
  padding-block: clamp(72px, 7.5vw, 112px);
}

.section__head {
  margin-bottom: clamp(32px, 4vw, 44px);
}

.section h2,
.prose h2,
.prose-wide h2 {
  font-size: clamp(1.75rem, 2.65vw, 2.5rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.012em;
}

.section h3,
.prose h3,
.prose-wide h3 {
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.008em;
}

.section__lead,
.prose-wide > p {
  color: #536477;
  line-height: 1.85;
}

.statement {
  font-weight: 700;
  letter-spacing: -.012em;
}

a.button {
  border-radius: 8px;
  box-shadow: none;
  font-weight: 700;
}

.card,
.feature-card,
.policy-card,
.price-card,
.area-panel,
.quote-panel,
.workflow-panel,
.job-card,
.job-detail,
.bank-list,
.trust-grid article,
.principles span {
  border-color: #d2dde4;
  border-radius: 12px;
  box-shadow: none;
}

.card,
.feature-card,
.policy-card,
.price-card {
  padding: clamp(24px, 3vw, 32px);
}

.card h3 {
  margin-top: 16px;
  font-size: 1.18rem;
  font-weight: 700;
}

.card p,
.feature-card p {
  color: #536477;
}

.card:hover,
.feature-card:hover,
.policy-card:hover {
  border-color: #9fb6c4;
  box-shadow: none;
  transform: none;
}

body[data-page-type="home"] :is(#business, #corporate-facts) .card-grid {
  gap: 1px;
  padding: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: #d2dde4;
}

body[data-page-type="home"] :is(#business, #corporate-facts) .card {
  border: 0;
  border-radius: 0;
}

.feature-card,
.policy-card,
.price-card,
.trust-grid article,
.principles span {
  background: #fff;
}

.policy-card__number,
.process-flow li::before {
  border-radius: 4px;
  font-weight: 700;
}

.process-flow li,
.workflow-panel span,
.workflow-panel strong,
.job-flow li,
.tag-list li,
.limit-strip span {
  border-radius: 6px;
}

.workflow-panel {
  background: #f3f6f8;
}

.quote-panel,
.section--cta,
.recruit-banner {
  background: #0c1b33;
}

.quote-panel p {
  font-weight: 700;
}

.recruit-banner {
  border-radius: 12px;
}

.recruit-banner::after {
  display: none;
}

.hero__image,
.media-card img {
  border-radius: 12px;
  box-shadow: none;
}

.hero__badge {
  border-radius: 8px;
  box-shadow: none;
}

.product-shell,
.product-dialog {
  border-radius: 14px;
  box-shadow: none;
}

.product-screen {
  border-radius: 8px;
}

.journey-nav__inner {
  border-radius: 8px;
  box-shadow: none;
}

.journey-nav__link span {
  border-radius: 4px;
}

.timeline time,
.timeline__date,
.fact-list dt,
.job-spec__term {
  font-weight: 700;
}

.site-footer {
  padding-block: 58px 30px;
  border-top: 1px solid #27405e;
  background: #0b1930;
}

.site-footer__grid {
  gap: 42px 48px;
}

.footer-heading {
  margin-bottom: 12px;
  color: #b9dce8;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.site-footer img {
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: none;
}

.site-footer p,
.site-footer .sales-contact-note {
  color: #b8c6d6;
  line-height: 1.75;
}

.footer-links {
  gap: 2px;
}

.footer-links a {
  font-size: .84rem;
  font-weight: 500;
}

@media (min-width: 721px) {
  .page-hero,
  body[data-brand] .page-hero {
    min-height: 360px;
    padding-block: clamp(52px, 4.2vw, 60px);
  }

  .page-hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .85fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    column-gap: clamp(40px, 6vw, 88px);
    row-gap: 12px;
  }

  .page-hero .kicker {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .page-hero h1,
  body[data-brand] .page-hero h1 {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
  }

  .page-hero .container > p:not(.kicker) {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin: 0;
    color: #526477;
    font-size: 1rem;
    line-height: 1.8;
  }

  .page-hero .button-row {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: 0;
  }

  .page-hero .limit-strip {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin-top: 0;
  }

  .page-hero h1.philosophy-page-title {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .page-hero .philosophy-hero-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .page-hero .philosophy-hero-copy + p {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (min-width: 721px) and (max-width: 959px) {
  .page-hero,
  body[data-brand] .page-hero {
    padding-block: 44px;
  }

  .page-hero .container {
    grid-template-columns: minmax(0, .95fr) minmax(280px, 1.05fr);
    column-gap: 28px;
    row-gap: 8px;
  }

  .page-hero h1,
  body[data-brand] .page-hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .page-hero .container > p:not(.kicker) {
    font-size: .92rem;
    line-height: 1.65;
  }

  .page-hero .button-row {
    gap: 8px;
  }

  .page-hero .button-row .button {
    min-height: 46px;
    padding: 8px 12px;
    font-size: .78rem;
  }

  .page-hero .limit-strip {
    gap: 6px;
  }

  .page-hero .limit-strip span {
    padding: 5px 8px;
    font-size: .7rem;
  }
}

@media (min-width: 1121px) {
  .process-flow:has(> li:nth-child(6):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-flow:has(> li:nth-child(6):last-child) > li:nth-child(3)::after {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: minmax(300px, 1.25fr) minmax(190px, .75fr) minmax(190px, .75fr);
  }

  .site-footer__grid > :nth-child(4) {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }

  .site-footer__grid > :nth-child(4).footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 28px;
  }

  .site-footer__grid > :nth-child(4).footer-links a {
    min-height: 40px;
    font-size: .78rem;
  }
}

@media (min-width: 721px) and (max-width: 1120px) {
  .site-footer__grid > :nth-child(4) {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }

  .site-footer__grid > :nth-child(4).footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
}

@media (max-width: 720px) {
  .home-hero {
    padding-block: 52px 64px;
  }

  .home-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
  }

  .page-hero,
  body[data-brand] .page-hero {
    min-height: 300px;
    padding-block: 44px 52px;
  }

  .page-hero h1,
  body[data-brand] .page-hero h1 {
    max-width: none;
    font-size: clamp(1.95rem, 8vw, 2.45rem);
    line-height: 1.25;
  }

  .page-hero .button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  .page-hero .button-row .button {
    min-height: 48px;
    padding: 9px 12px;
    font-size: .8rem;
  }

  .section {
    padding-block: clamp(48px, 13vw, 72px);
  }

  .section h2,
  .prose h2,
  .prose-wide h2 {
    font-size: clamp(1.65rem, 7.4vw, 2.15rem);
  }

  .hero__service-card,
  .card,
  .feature-card,
  .policy-card,
  .price-card {
    padding: 22px;
  }

  .journey-nav__inner {
    border-radius: 6px;
  }

  .site-footer {
    padding-block: 48px 24px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }

  .site-footer__grid > :first-child,
  .site-footer__grid > :nth-child(4) {
    grid-column: 1 / -1;
  }

  .site-footer__grid > :nth-child(4) {
    padding-top: 24px;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }

  .site-footer__grid > :nth-child(4).footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .site-footer__grid > :nth-child(4).footer-links a {
    align-items: flex-start;
    padding-block: 8px;
    font-size: .76rem;
    line-height: 1.55;
  }

  .footer-links a {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .feature-card,
  .policy-card {
    transition: none;
  }
}
