:root {
  --navy: #0a2a55;
  --navy-deep: #082344;
  --ink: #10233f;
  --muted: #6d7683;
  --line: #dfe5eb;
  --paper: #ffffff;
  --soft: #f7f9fb;
  --warm: #f7f3eb;
  --gold: #d7b66a;
  --gold-deep: #b89546;
  --max: 1240px;
  --shadow: 0 12px 30px rgba(13, 34, 64, .08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --hero-image: url("../img/hero.png");
  /* typography */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 16px;
  --leading-snug: 1.5;
  --leading-normal: 1.7;
  --leading-relaxed: 1.85;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  letter-spacing: .02em;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 42, 85, .08);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.brand-main {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: 24px;
  letter-spacing: .04em;
  color: var(--navy-deep);
}
.brand-sub {
  font-size: var(--text-xs);
  margin-top: 7px;
  color: #42536a;
  letter-spacing: .06em;
  font-weight: var(--weight-medium);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}
.nav a:not(.nav-cta) { position: relative; }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--navy);
  transition: .2s;
}
.nav a:hover::after { right: 0; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: var(--navy-deep);
  font-size: 22px;
  line-height: 1;
}
.mobile-menu { display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu-inner {
  padding: 10px 24px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-menu a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f3;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}
.mobile-menu .mobile-cta {
  margin-top: 12px;
  border: 0;
  background: var(--navy);
  color: #fff;
  text-align: center;
  border-radius: 999px;
  padding: 13px 16px;
}

/* —— Hero —— */
.hero {
  overflow: hidden;
  background: var(--navy-deep);
  padding: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  min-height: 478px;
  position: relative;
}
.hero-copy {
  padding: 54px 54px 46px max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
  min-height: 100%;
  background: var(--navy-deep);
  color: #fff;
}
.hero-copy-inner { max-width: 520px; }
.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.28;
  letter-spacing: .03em;
  margin: 0 0 22px;
  color: #fff;
  font-weight: var(--weight-bold);
}
.hero-lead {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-semibold);
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .94);
}
.hero-note {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .76);
}
.cta-wrap { width: min(340px, 100%); }
.cta-kicker {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, .72);
  margin-bottom: 4px;
}
.cta-main {
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #e0c072);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #142743;
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  box-shadow: 0 8px 20px rgba(184, 149, 70, .18);
}
.cta-foot {
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, .62);
  margin-top: 7px;
  font-weight: var(--weight-regular);
}
.cta-sub {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, .88);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: hover) {
  .cta-sub:hover {
    color: #fff;
  }
}
.hero-visual {
  position: relative;
  min-height: 478px;
  overflow: visible;
  background: #edf2f5;
  margin-left: -118px;
  z-index: 1;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image) center / cover no-repeat;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy-deep) 0%, rgba(8, 35, 68, .98) 7%, rgba(8, 35, 68, .88) 15%, rgba(8, 35, 68, .56) 24%, rgba(8, 35, 68, .20) 34%, rgba(8, 35, 68, 0) 46%),
    linear-gradient(180deg, rgba(8, 35, 68, .05), rgba(8, 35, 68, 0) 38%, rgba(8, 35, 68, .04));
}
.hero-badge {
  position: absolute;
  right: 6%;
  bottom: 30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: left;
  padding: 23px;
  background: rgba(8, 35, 68, .95);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.85;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}

/* —— Feature strip —— */
.feature-strip { background: linear-gradient(90deg, #fbf9f4, #fff); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature {
  padding: 22px 24px;
  text-align: center;
  border-right: 1px solid #e8e3d8;
}
.feature:last-child { border-right: 0; }
.feature-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  color: var(--navy);
  display: grid;
  place-items: center;
}
.icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.feature-title {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 5px;
}
.feature p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  color: #444e5d;
}

/* —— Shared sections —— */
section { padding: 66px 0; }
.section-title {
  text-align: center;
  font-family: var(--font-sans);
  color: var(--navy-deep);
  font-size: clamp(24px, 2.4vw, 28px);
  line-height: 1.35;
  font-weight: var(--weight-bold);
  margin: 0 0 36px;
  letter-spacing: .03em;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--navy);
  margin: 16px auto 0;
}

/* —— Concerns —— */
.concerns { background: #fbfcfd; }
.concern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.concern-card {
  min-height: 148px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 26px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(12, 37, 70, .025);
}
.mini-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  color: var(--navy);
}
.mini-icon .icon-svg {
  width: 100%;
  height: 100%;
}
.concern-card strong {
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  font-weight: var(--weight-bold);
  color: var(--navy-deep);
}
.concern-closing {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 0;
}

/* —— Consultation desks —— */
.desks {
  background: #fff;
  padding: 56px 0;
}
.desks .section-title { margin-bottom: 10px; }
.desks-inner { max-width: 880px; }
.desks-lead {
  text-align: center;
  margin: 0 auto 28px;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: #4d5765;
}
.desk-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.desk-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 16px;
  align-items: start;
  padding: 28px 8px 28px 0;
  min-width: 0;
}
.desk-row + .desk-row {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}
.desk-no {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: .12em;
  color: var(--muted);
  padding-top: 4px;
}
.desk-copy { min-width: 0; }
.desk-title {
  display: block;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  font-weight: var(--weight-bold);
  color: var(--navy-deep);
  margin: 0 0 8px;
}
.desk-desc {
  display: block;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: #4d5765;
}
.desk-arrow {
  align-self: center;
  color: var(--navy);
  font-weight: var(--weight-bold);
  font-size: 15px;
  line-height: 1;
  transition: transform .2s;
}

/* —— Engineer desk page —— */
.eng-kicker {
  margin: 0 0 14px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .72);
}
.eng-br { display: none; }

.eng-narrow {
  max-width: 640px;
  margin: 0 auto;
}
.eng-worries {
  background: #fbfcfd;
  padding: 48px 0;
}
.eng-worries .section-title { margin-bottom: 24px; }
.eng-worry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.eng-worry-list li {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: var(--weight-semibold);
  color: var(--navy-deep);
}
.eng-no {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: .1em;
  color: var(--muted);
}
.eng-founder {
  background: #fff;
  padding: 48px 0;
}
.eng-founder-lead {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.5;
  font-weight: var(--weight-bold);
  color: var(--navy-deep);
  letter-spacing: .02em;
}
.eng-founder-body {
  margin: 0 0 16px;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: #4d5765;
}
.eng-founder-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--navy);
}
.diag-entry-meta {
  margin: 0 0 22px;
  font-size: var(--text-sm);
  letter-spacing: .04em;
  color: var(--muted);
}

/* —— Founder —— */
.founder-wrap {
  background: #fbfcfd;
}
.founder-card {
  border: 1px solid #71809a;
  border-radius: 0;
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
}
.founder-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quote-mark {
  font-size: 42px;
  line-height: 1;
  color: var(--navy);
  font-family: var(--font-sans);
}
.founder-quote {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.8vw, 26px);
  line-height: 1.5;
  color: var(--navy-deep);
  margin: 0;
  font-weight: var(--weight-bold);
  letter-spacing: .02em;
}
.founder-body p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-regular);
  margin: 0 0 14px;
  color: #39465a;
}
.founder-body p:last-child {
  margin-bottom: 0;
}
.founder-body p.founder-emphasis {
  font-weight: var(--weight-bold);
  color: var(--navy-deep);
}
.founder-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}
.founder-role {
  font-size: var(--text-xs);
  color: #4a596d;
  margin: 0;
  font-weight: var(--weight-regular);
}
.founder-link {
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

/* —— Services —— */
.services { background: #fff; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.service-card {
  border-radius: 0;
  background: #fff;
  border: none;
  border-right: 1px solid var(--line);
  box-shadow: none;
  padding: 32px 22px 30px;
  text-align: center;
}
.service-card:last-child {
  border-right: none;
}
.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--navy);
  display: grid;
  place-items: center;
}
.service-icon .icon-svg {
  width: 100%;
  height: 100%;
}
.service-body { padding: 0; }
.service-body h3 {
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  margin: 0 0 10px;
  font-weight: var(--weight-bold);
  color: var(--navy-deep);
}
.service-body p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  margin: 0;
  color: #4d5765;
}

/* —— Mid CTA —— */
.mid-cta {
  background: linear-gradient(90deg, var(--navy-deep), #0d315f);
  color: #fff;
  padding: 44px 0;
}
.mid-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.mid-cta-title {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: var(--leading-normal);
  font-weight: var(--weight-medium);
  margin: 0;
  max-width: 640px;
  letter-spacing: .02em;
}
.mid-cta-br { display: none; }
.mid-cta-button {
  min-width: 260px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}
@media (hover: hover) {
  .mid-cta-button:hover {
    filter: brightness(.97);
  }
}

/* —— Loan-check entry —— */
.diag-entry {
  background: #fbfcfd;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.diag-entry-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.diag-entry-kicker {
  margin: 0 0 12px;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: .1em;
  color: var(--navy);
}
.diag-entry-title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: clamp(22px, 3.5vw, 28px);
  line-height: 1.4;
  font-weight: var(--weight-bold);
  color: var(--navy-deep);
  letter-spacing: .02em;
}
.diag-entry-lead {
  margin: 0 0 18px;
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: #4d5765;
}
.diag-entry-br { display: none; }
.diag-entry-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.diag-entry-points span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--navy-deep);
  background: #fff;
}
.diag-entry-button {
  min-width: 260px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #e0c072);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #142743;
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  box-shadow: 0 8px 20px rgba(184, 149, 70, .18);
}
@media (hover: hover) {
  .diag-entry-button:hover {
    filter: brightness(1.03);
  }
}

/* —— Recommended articles —— */
.articles {
  background: #fbfcfd;
  padding: 66px 0;
}
.articles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.articles-title {
  margin: 0;
  text-align: left;
}
.articles-title::after {
  margin: 14px 0 0;
}
.articles-all-link {
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--navy);
  white-space: nowrap;
}
.articles-all-link:hover {
  text-decoration: underline;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.article-card-thumb {
  aspect-ratio: 16 / 10;
  background: #eff2f4;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-card-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: .02em;
  line-height: 1.45;
}
.article-card-title {
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  margin: 0;
  color: var(--navy-deep);
  font-weight: var(--weight-bold);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.article-card-date {
  font-size: var(--text-xs);
  color: #8a939f;
  margin-top: auto;
  font-weight: var(--weight-regular);
}

/* —— Bottom CTA —— */
.bottom-cta {
  background: linear-gradient(90deg, var(--navy-deep), #0d315f);
  color: #fff;
  padding: 28px 0;
}
.bottom-cta-inner {
  display: grid;
  grid-template-columns: 1.2fr .85fr;
  gap: 46px;
  align-items: center;
}
.bottom-left {
  display: flex;
  align-items: center;
  gap: 28px;
}
.bottom-image {
  width: 180px;
  height: 94px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}
.bottom-copy h2 {
  font-family: var(--font-sans);
  margin: 0 0 7px;
  font-size: 23px;
}
.bottom-copy p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  color: #dce5f0;
}
.bottom-button {
  height: 60px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d1ab59, #e6c778);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #142743;
  font-weight: 800;
  font-size: 16px;
  position: relative;
}
.bottom-pill {
  position: absolute;
  top: -10px;
  background: #fff;
  color: #1a2f50;
  border-radius: 999px;
  padding: 4px 15px;
  font-size: 10px;
}

footer {
  /* legacy single-line footer removed; use .site-footer */
}

/* —— Interactions —— */
@media (hover: hover) {
  .cta-main:hover,
  .bottom-button:hover,
  .nav-cta:hover {
    filter: brightness(.97);
  }
  .desk-row:hover .desk-title {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .desk-row:hover .desk-arrow {
    transform: translateX(3px);
  }
  .eng-founder-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* —— Tablet / narrow desktop —— */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .eng-br { display: inline; }
}

@media (min-width: 641px) and (max-width: 1080px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    min-height: 450px;
  }
  .hero-copy {
    padding: 42px 28px 40px max(24px, calc((100vw - var(--max)) / 2));
    justify-content: center;
  }
  .hero-copy-inner { max-width: 460px; }
  .hero h1 {
    margin-bottom: 18px;
  }
  .hero-lead { margin-bottom: 14px; }
  .hero-note { margin-bottom: 20px; }
  .cta-wrap { width: min(320px, 100%); }
  .hero-visual {
    position: relative;
    min-height: 450px;
    margin-left: -64px;
    overflow: visible;
  }
  .hero-visual::before { background-position: 56% center; }
  .hero-visual::after {
    background:
      linear-gradient(90deg, var(--navy-deep) 0%, rgba(8, 35, 68, .98) 9%, rgba(8, 35, 68, .82) 20%, rgba(8, 35, 68, .42) 33%, rgba(8, 35, 68, .08) 46%, rgba(8, 35, 68, 0) 58%),
      linear-gradient(180deg, rgba(8, 35, 68, .04), rgba(8, 35, 68, 0) 42%);
  }
  .hero-badge {
    width: 128px;
    height: 128px;
    right: 5%;
    bottom: 24px;
    padding: 18px;
    font-size: 10.5px;
  }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid #e8e3d8; }
  .concern-grid { grid-template-columns: repeat(2, 1fr); }
  .desk-list { grid-template-columns: 1fr; }
  .desk-row {
    padding: 22px 0;
  }
  .desk-row + .desk-row {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .founder-card {
    padding: 28px 30px 26px;
  }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2n) { border-right: none; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-cta-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .bottom-left { align-items: flex-start; }
}

/* —— Mobile —— */
@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--max)); }
  .header-inner { min-height: 68px; }
  .brand-main { font-size: 20px; }
  .brand-sub {
    font-size: 10px;
    margin-top: 5px;
  }

  .hero {
    position: relative;
    background: var(--navy-deep);
    overflow: hidden;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
  }
  .hero-visual {
    position: relative;
    order: -1;
    width: 100%;
    min-height: 52vw;
    height: clamp(240px, 58vw, 420px);
    margin: 0;
    overflow: hidden;
    z-index: 0;
    background: #e9eef2;
  }
  .hero-visual::before {
    background-position: 42% 28%;
    transform: none;
  }
  .hero-visual::after {
    background: linear-gradient(
      180deg,
      rgba(8, 35, 68, 0) 50%,
      rgba(8, 35, 68, .55) 78%,
      var(--navy-deep) 100%
    );
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    min-height: 0;
    padding: 8px 20px 36px;
    display: block;
    background: var(--navy-deep);
    color: #fff;
  }
  .eng-fv .hero-visual::after {
    background: linear-gradient(
      180deg,
      rgba(8, 35, 68, 0) 22%,
      rgba(8, 35, 68, .28) 48%,
      rgba(8, 35, 68, .72) 76%,
      var(--navy-deep) 100%
    );
  }
  .eng-fv .hero-copy {
    margin-top: -56px;
    padding: 48px 20px 36px;
    background: linear-gradient(
      180deg,
      rgba(8, 35, 68, 0) 0%,
      var(--navy-deep) 40px,
      var(--navy-deep) 100%
    );
  }
  .hero-copy-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .hero h1 {
    font-size: clamp(30px, 8.5vw, 36px);
    line-height: 1.3;
    margin: 0 0 16px;
    letter-spacing: .02em;
    color: #fff;
  }
  .hero-lead {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    font-weight: var(--weight-semibold);
    margin: 0 0 10px;
    max-width: none;
    color: rgba(255, 255, 255, .94);
  }
  .hero-note {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    font-weight: var(--weight-regular);
    margin: 0 0 18px;
    max-width: none;
    color: rgba(255, 255, 255, .76);
  }
  .cta-wrap {
    margin: 0;
    width: 100%;
    max-width: none;
  }
  .cta-kicker {
    font-size: 10px;
    font-weight: var(--weight-medium);
    color: rgba(255, 255, 255, .72);
  }
  .cta-main {
    font-size: var(--text-sm);
    height: 50px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  }
  .cta-foot {
    font-size: 10px;
    color: rgba(255, 255, 255, .62);
  }
  .hero-badge { display: none; }

  .feature { padding: 20px 14px; }
  .feature-title { font-size: 13px; }
  .feature p { font-size: 11px; }
  .feature-icon {
    width: 34px;
    height: 34px;
  }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid #e8e3d8; }

  section { padding: 56px 0; }
  .services {
    background: #fbfcfd;
  }
  .section-title {
    font-size: clamp(22px, 6vw, 25px);
    margin-bottom: 28px;
  }

  .concern-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid #d8dfe6;
    background: #fff;
    box-shadow:
      0 1px 2px rgba(8, 35, 68, .05),
      0 4px 14px rgba(8, 35, 68, .07);
  }
  .concern-card {
    flex-direction: row;
    align-items: center;
    min-height: 0;
    padding: 14px 14px;
    border: none;
    border-bottom: 1px solid #e8edf2;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    gap: 12px;
    background: #fff;
  }
  .concern-card:first-child {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  }
  .concern-card:last-child {
    border-bottom: none;
  }
  .concern-card::after {
    content: "›";
    font-size: 17px;
    line-height: 1;
    color: #8a939f;
    flex-shrink: 0;
    margin-left: auto;
    font-weight: 700;
  }
  .mini-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }
  .concern-card strong {
    flex: 1;
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    font-weight: var(--weight-bold);
    color: var(--navy-deep);
  }
  .concern-card strong br {
    display: none;
  }

  .desks { padding: 40px 0; }
  .desks-lead { margin-bottom: 20px; }
  .desk-list { grid-template-columns: 1fr; }
  .desk-row {
    padding: 18px 0;
    gap: 6px 12px;
  }
  .desk-row + .desk-row {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .desk-title { font-size: var(--text-base); }
  .desk-desc { font-size: 12px; }

  .eng-worries,
  .eng-founder { padding: 40px 0; }
  .eng-br { display: inline; }
  .eng-worries .section-title { margin-bottom: 18px; }
  .eng-worry-list li {
    padding: 12px 0;
    font-size: var(--text-sm);
  }
  .eng-founder-lead { font-size: 20px; }
  .eng-founder-body { font-size: var(--text-sm); }
  .diag-entry-meta { margin-bottom: 18px; }

  .founder-card {
    padding: 24px 20px 22px;
    gap: 18px;
  }
  .quote-mark {
    display: none;
  }
  .founder-quote { font-size: 19px; }
  .founder-body p { font-size: var(--text-sm); }
  .founder-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    border: 1px solid #d8dfe6;
    background: #fff;
    box-shadow:
      0 1px 2px rgba(8, 35, 68, .05),
      0 4px 14px rgba(8, 35, 68, .07);
  }
  .service-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: center;
    text-align: left;
    padding: 14px 14px;
    border: none;
    border-bottom: 1px solid #e8edf2;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }
  .service-card:first-child {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  }
  .service-card:last-child {
    border-bottom: none;
  }
  .service-card::after {
    content: "›";
    font-size: 17px;
    line-height: 1;
    color: #8a939f;
    font-weight: 700;
  }
  .service-icon {
    width: 32px;
    height: 32px;
    margin: 0;
  }
  .service-body { padding: 0; }
  .service-body h3 {
    font-size: var(--text-sm);
    margin: 0;
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
    color: var(--navy-deep);
  }
  .service-body p { display: none; }

  .mid-cta { padding: 36px 0 40px; }
  .mid-cta-br { display: inline; }
  .mid-cta-inner {
    align-items: center;
    gap: 20px;
  }
  .mid-cta-title {
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    line-height: var(--leading-normal);
  }
  .mid-cta-button {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    height: 50px;
    font-size: var(--text-sm);
  }

  .diag-entry { padding: 40px 0; }
  .diag-entry-br { display: inline; }
  .diag-entry-title {
    font-size: clamp(20px, 5.5vw, 24px);
  }
  .diag-entry-lead {
    font-size: var(--text-sm);
  }
  .diag-entry-button {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    height: 50px;
    font-size: var(--text-sm);
  }

  .articles { padding: 56px 0; }
  .articles-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
  }
  .articles-title {
    font-size: clamp(20px, 5.5vw, 22px);
    margin-bottom: 0;
  }
  .articles-title::after { margin-top: 12px; }
  .articles-all-link {
    font-size: var(--text-xs);
  }
  .article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .article-card {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0 0 16px;
    border: none;
    border-radius: 0;
  }
  .article-card:last-child {
    padding-bottom: 0;
  }
  .article-card-thumb {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    aspect-ratio: 1;
    min-height: 0;
    margin-bottom: 0;
    border-radius: 6px;
    align-self: center;
  }
  .article-card-thumb img {
    height: 100%;
  }
  .article-card-body {
    padding: 0;
    justify-content: center;
    gap: 6px;
    min-width: 0;
  }
  .article-card-cat {
    font-size: 9px;
    padding: 2px 8px;
  }
  .article-card-title {
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    -webkit-line-clamp: 3;
    font-weight: var(--weight-bold);
  }
  .article-card-date {
    margin-top: 2px;
    font-size: 10px;
  }
}

/* Keep keyboard focus visible and anchor headings below the sticky header. */
:where(a, button, summary):focus-visible { outline: 3px solid #b07816; outline-offset: 4px; }
[id] { scroll-margin-top: 96px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; background: #fff; color: #082344; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-body p { font-size: 15px; }
.service-body h3 { font-size: 16px; }
.service-body a, .specialist-link a { display: inline-block; padding: 12px 0; text-decoration: underline; text-underline-offset: 4px; }
.contact-guide { max-width: 640px; margin: 0; line-height: 1.85; }

.faq { background: var(--soft); }
.faq-inner { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 4px; cursor: pointer; font-weight: 700; }
.faq details p { margin: 0 4px 24px; line-height: 1.85; }
.loan-check-header .nav { display: flex; }
@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1081px) { .mobile-menu.is-open { display: none; } }
@media (max-width: 640px) {
  .hero:not(.eng-fv) .hero-visual { height: 180px; min-height: 180px; }
  .hero-lead, .hero-note, .desk-desc, .founder-body p, .diag-entry-lead { font-size: 15px; }
  .cta-kicker, .cta-foot { font-size: 12px; }
  .cta-main, .mid-cta-button, .diag-entry-button, .mobile-menu a { font-size: 15px; }
  .cta-sub { display: block; padding: 12px 0; font-size: 13px; }
  .concern-card strong, .service-body h3 { font-size: 15px; }
  .concern-card::after, .service-card::after { content: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 32px minmax(0, 1fr); align-items: start; padding: 20px 16px; }
  .service-body p { display: block; margin: 8px 0 0; font-size: 15px; line-height: 1.8; }
  .service-body a { font-size: 14px; }
  .loan-check-header .header-inner { gap: 12px; }
  .loan-check-header .nav { font-size: 12px; white-space: nowrap; }
}

@media (min-width: 1081px) { .service-card:nth-child(3n) { border-right: none; } }
.loan-check .lc-note a { text-decoration: underline; text-underline-offset: 3px; }
