
:root {
  --navy: #0e2340;
  --navy-2: #16365f;
  --navy-3: #234d7c;
  --ink: #10233d;
  --muted: #667387;
  --line: #d9e0e8;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --accent: #b58a55;
  --accent-dark: #8f6838;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-ja { font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; }
.brand-en { font-size: .7rem; color: var(--muted); letter-spacing: .14em; margin-top: 5px; }
.nav { display: flex; gap: 26px; align-items: center; font-size: .92rem; }
.nav a:hover { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 15px;
  border-radius: 2px;
}

.hero {
  padding: 88px 0 74px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr);
  gap: 72px;
  align-items: center;
}
.eyebrow, .section-kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .78rem;
}
.hero h1 {
  margin: 16px 0 22px;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.22;
  letter-spacing: .02em;
}
.lead {
  max-width: 720px;
  color: #343d4d;
  font-size: 1.08rem;
}
.hero-name { margin-top: 28px; font-weight: 700; }
.hero-name span { margin-left: 10px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 14px; }
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  font-weight: 700;
  transition: .2s ease;
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.secondary:hover { background: var(--soft); }
.micro { font-size: .85rem; color: var(--muted); }
.hero-photo-wrap { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero-photo {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(23,32,51,.12);
}
.photo-note {
  max-width: 360px;
  margin: 10px 0 0 auto;
  font-size: .72rem;
  line-height: 1.5;
  color: var(--muted);
}

.section { padding: 86px 0; }
.section h2 {
  margin: 10px 0 26px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.35;
}
.intro p { font-size: 1.04rem; color: #384252; }

.services { background: var(--soft); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
}
.card-number { color: var(--accent); font-size: .8rem; letter-spacing: .12em; font-weight: 700; }
.card h3 { font-size: 1.4rem; line-height: 1.4; margin: 10px 0 16px; }
.card p { color: #4b5565; }
.card-sub { font-size: .92rem; }
.card a { margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--accent-dark); }

.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
}
.personal { border-bottom: 1px solid var(--line); }

.profile { background: #fff; }
.profile-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 90px;
}
.profile-name { font-size: 1.7rem; font-weight: 700; margin-bottom: 2px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item span { font-weight: 700; color: var(--accent-dark); }
.timeline-item p { margin: 0; }

.contact { background: var(--ink); color: #fff; }
.contact-box {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 60px;
  align-items: center;
}
.contact .section-kicker { color: #e7b17b; }
.contact p { color: #e2e6ee; }
.security-note { font-size: .9rem; }
.contact-actions { text-align: center; }
.contact-actions .btn.primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  width: 100%;
}
.contact-actions .btn.primary:hover { background: #f1f1f1; }
.hours { margin-top: 15px; font-size: .88rem; }

.access { background: var(--soft); }
.access-details p { margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.footer-links { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); }
.copyright { grid-column: 1 / -1; margin: 8px 0 0; font-size: .75rem; color: var(--muted); }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero { padding-top: 58px; }
  .hero-grid, .split, .profile-grid, .contact-box { grid-template-columns: 1fr; gap: 38px; }
  .hero-photo { margin: 0; max-width: 320px; }
  .photo-note { margin-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .timeline-item { grid-template-columns: 110px 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 66px; }
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 2.4rem; }
  .lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .section { padding: 62px 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
}


/* ===== Navy design revision ===== */
.site-header {
  background: rgba(14,35,64,.97);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-header .brand-ja,
.site-header .nav a {
  color: #fff;
}
.site-header .brand-en {
  color: #b8c5d6;
}
.site-header .nav a:hover {
  color: #d8b27d;
}
.site-header .nav-cta {
  border-color: rgba(255,255,255,.75);
  color: #fff;
}
.site-header .nav-cta:hover {
  background: #fff;
  color: var(--navy);
}

.hero {
  background:
    radial-gradient(circle at 82% 22%, rgba(255,255,255,.07), transparent 33%),
    linear-gradient(135deg, var(--navy) 0%, #102c50 58%, #173d67 100%);
  color: #fff;
  border-bottom: none;
}
.hero .eyebrow {
  color: #d8b27d;
}
.hero h1 {
  color: #fff;
  max-width: 800px;
  font-size: clamp(2.65rem, 4.8vw, 4.8rem);
}
.hero-line {
  display: block;
  white-space: nowrap;
}
.hero .lead {
  color: #e2e8f0;
}
.hero-name {
  color: #fff;
}
.hero-name span,
.hero .micro,
.hero .photo-note {
  color: #bdc9d7;
}
.hero .btn.primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.hero .btn.primary:hover {
  background: #e8edf3;
  border-color: #e8edf3;
}
.hero .btn.secondary {
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.hero .btn.secondary:hover {
  background: rgba(255,255,255,.08);
}
.hero-photo {
  border: 8px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

.section-kicker {
  color: var(--navy-3);
}
.intro h2,
.services h2,
.personal h2,
.profile h2,
.access h2 {
  color: var(--navy);
}
.services {
  background: #eef3f8;
}
.card {
  border-top: 4px solid var(--navy-2);
  box-shadow: 0 8px 24px rgba(14,35,64,.06);
}
.card-number {
  color: var(--accent-dark);
}
.card h3 {
  color: var(--navy);
}
.card a {
  color: var(--navy-2);
}
.personal {
  background: #fff;
}
.profile {
  background: #f9fbfd;
}
.profile-name {
  color: var(--navy);
}
.timeline-item span {
  color: var(--navy-2);
}

.contact {
  background: var(--navy);
}
.contact .section-kicker {
  color: #d8b27d;
}
.contact-actions .btn.primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.access {
  background: #eef3f8;
}
.site-footer {
  background: #091a30;
  color: #fff;
  border-top: none;
}
.site-footer .brand-en,
.site-footer .footer-links,
.site-footer .copyright {
  color: #aebccd;
}
.site-footer .footer-links a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .hero-line { white-space: normal; }
}


/* ===== Photo refinement for official portrait ===== */
.hero-photo {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  background: #eef2f6;
}


/* ===== Version 4: reduce "portrait frame" feeling ===== */
.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 48px;
}

.hero-photo-wrap {
  position: relative;
  min-height: 620px;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 30px 0 30px 60px;
  background:
    radial-gradient(circle at 70% 32%, rgba(255,255,255,.18), rgba(255,255,255,.04) 42%, transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-radius: 24px 0 0 24px;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  max-width: 470px;
  height: 620px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 14%;
  border: none;
  border-radius: 0;
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
  background: transparent;
  margin-right: -10px;
}

.hero .lead {
  max-width: 650px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-photo-wrap {
    min-height: auto;
    justify-content: center;
    overflow: visible;
  }

  .hero-photo-wrap::before {
    inset: 14px 16px 0 16px;
    border-radius: 18px;
  }

  .hero-photo {
    width: min(100%, 360px);
    max-width: 360px;
    height: auto;
    margin-right: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
  }
}

@media (max-width: 560px) {
  .hero-photo-wrap::before {
    inset: 10px 10px 0 10px;
  }
}


/* ===== Version 5: smaller hero portrait ===== */
.hero-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: 64px;
}

.hero-photo-wrap {
  min-height: 500px;
  align-items: center;
  justify-content: flex-end;
}

.hero-photo-wrap::before {
  inset: 46px 0 46px 34px;
  border-radius: 20px 0 0 20px;
}

.hero-photo {
  width: min(100%, 330px);
  max-width: 330px;
  height: 455px;
  object-fit: cover;
  object-position: center 12%;
  margin-right: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

@media (max-width: 900px) {
  .hero-photo-wrap {
    min-height: auto;
  }

  .hero-photo {
    width: min(100%, 290px);
    max-width: 290px;
    height: auto;
  }
}

@media (max-width: 560px) {
  .hero-photo {
    width: min(100%, 240px);
    max-width: 240px;
  }
}


/* ===== Privacy Policy page ===== */
.policy-hero {
  padding: 76px 0 54px;
  background: linear-gradient(135deg, var(--navy) 0%, #16365f 100%);
  color: #fff;
}
.policy-hero .section-kicker {
  color: #d8b27d;
}
.policy-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}
.policy-version {
  color: #c5d0dd;
  margin: 0;
}
.policy-body h2 {
  margin-top: 48px;
  padding-bottom: 10px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font-size: 1.45rem;
}
.policy-body h3 {
  margin-top: 26px;
  color: var(--navy-2);
  font-size: 1.05rem;
}
.policy-body p,
.policy-body li {
  color: #394759;
}
.policy-list {
  padding-left: 1.6rem;
}
.policy-list li {
  margin-bottom: 10px;
}
.policy-history table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}
.policy-history th,
.policy-history td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}
.policy-history th {
  background: #eef3f8;
  color: var(--navy);
}
.policy-back {
  margin-top: 48px;
  font-weight: 700;
}
.policy-back a {
  color: var(--navy-2);
}
.security-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ===== Version 7: contact form ===== */
.contact {
  background: var(--navy);
  color: #fff;
}
.contact-intro {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 38px;
}
.contact-intro > div:first-child > p:not(.section-kicker) {
  color: #e2e6ee;
}
.phone-card {
  padding: 22px 26px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}
.phone-label {
  margin: 0 0 4px;
  font-size: .86rem;
  color: #cbd6e3;
}
.phone-number {
  display: inline-block;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}
.phone-card .hours {
  margin: 8px 0 0;
  color: #cbd6e3;
}

.contact-form-wrap {
  padding: 38px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.form-heading {
  margin-bottom: 26px;
}
.form-heading h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.45rem;
}
.form-heading p {
  margin: 0;
  color: var(--muted);
}
.required-mark {
  display: inline-block;
  margin: 0 4px;
  padding: 1px 6px;
  background: var(--navy);
  color: #fff;
  font-size: .72rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field-wide {
  grid-column: 1 / -1;
}
.form-field > span {
  font-weight: 700;
  color: var(--navy);
}
.form-field em,
.consent-row em {
  margin-left: 5px;
  padding: 1px 6px;
  background: var(--navy);
  color: #fff;
  font-style: normal;
  font-size: .7rem;
}
.form-field small {
  margin-left: 5px;
  color: var(--muted);
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #bdc8d5;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  border-radius: 0;
  font: inherit;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(35,77,124,.18);
  border-color: var(--navy-3);
}
.form-field textarea {
  resize: vertical;
  min-height: 170px;
}
.form-notice {
  margin-top: 28px;
  padding: 22px 24px;
  background: #f2f5f8;
  border-left: 4px solid var(--navy-2);
}
.form-notice h4 {
  margin: 0 0 10px;
  color: var(--navy);
}
.form-notice ul {
  margin: 0 0 14px;
  padding-left: 1.4rem;
}
.form-notice li,
.form-notice p {
  color: #465569;
  font-size: .9rem;
}
.form-notice a {
  color: var(--navy-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.consent-row input {
  width: 19px;
  height: 19px;
  margin-top: 4px;
  accent-color: var(--navy);
  flex: 0 0 auto;
}
.consent-row span {
  color: #34445a;
}
.consent-row a {
  color: var(--navy-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.submit-row {
  margin-top: 24px;
  text-align: center;
}
.form-submit {
  min-width: 260px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
.form-submit:hover:not(:disabled) {
  background: var(--navy-2);
}
.form-submit:disabled {
  opacity: .38;
  cursor: not-allowed;
}
.prototype-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 900px) {
  .contact-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 700px) {
  .contact-form-wrap {
    padding: 26px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field-wide {
    grid-column: auto;
  }
  .form-submit {
    min-width: 0;
    width: 100%;
  }
}


/* ===== Version 8: office contact details ===== */
.access-details a {
  color: var(--navy-2);
  font-weight: 700;
  text-decoration: none;
}
.access-details a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ===== Version 9: career detail ===== */
.timeline-item strong {
  color: var(--navy);
  font-size: 1.03rem;
}


/* ===== Version 11: office photos ===== */
.access-header {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  margin-bottom: 34px;
  align-items: start;
}
.office-gallery {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  margin-top: 14px;
}
.office-gallery figure {
  margin: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(14,35,64,.08);
}
.office-gallery img {
  width: 100%;
  display: block;
}
.office-main img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.office-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.office-side figure img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.office-gallery figcaption {
  padding: 12px 14px 14px;
  color: var(--navy);
  font-size: .9rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .access-header,
  .office-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .office-side {
    grid-template-rows: auto;
  }
}


/* ===== Version 12: large exterior photo near top ===== */
.office-visual-band {
  background: var(--navy);
}
.office-visual-image {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
}
.office-visual-image img {
  width: 100%;
  height: clamp(360px, 48vw, 680px);
  object-fit: cover;
  object-position: center 44%;
  display: block;
}
.office-visual-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6,24,45,.72) 0%,
    rgba(6,24,45,.46) 34%,
    rgba(6,24,45,.10) 64%,
    rgba(6,24,45,0) 100%
  );
}
.office-visual-overlay {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100% - 1180px) / 2));
  bottom: clamp(32px, 6vw, 78px);
  max-width: 520px;
  color: #fff;
}
.office-visual-overlay p {
  margin: 0 0 6px;
  color: #d8b27d;
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .8rem;
}
.office-visual-overlay h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.25;
}
.office-visual-overlay span {
  color: #e5ebf2;
  font-size: .95rem;
}
@media (max-width: 700px) {
  .office-visual-image img {
    height: 390px;
    object-position: 60% center;
  }
  .office-visual-image::after {
    background: linear-gradient(
      0deg,
      rgba(6,24,45,.78) 0%,
      rgba(6,24,45,.18) 58%,
      rgba(6,24,45,0) 100%
    );
  }
  .office-visual-overlay {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }
}


/* ===== Version 14: exterior photo as hero background ===== */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(8,24,44,.86) 0%, rgba(10,29,53,.80) 32%, rgba(13,36,64,.68) 56%, rgba(14,35,64,.74) 100%),
    url("office_exterior.webp");
  background-size: cover;
  background-position: center 42%;
  color: #fff;
  border-bottom: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
  gap: 64px;
}

.hero .eyebrow {
  color: #e0b885;
}
.hero h1,
.hero .hero-name {
  color: #fff;
}
.hero .lead,
.hero .hero-name span,
.hero .micro {
  color: #e4ebf3;
}

.hero-copy {
  padding: 12px 0;
  max-width: 760px;
}

.hero-photo-wrap {
  min-height: 480px;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 28px -14px 18px 42px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border-radius: 20px 0 0 20px;
}

.hero-photo {
  width: min(100%, 300px);
  max-width: 300px;
  height: 410px;
  object-fit: cover;
  object-position: center 12%;
  border: none;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  background: transparent;
  margin-right: 0;
}

.hero-actions .btn.primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.hero-actions .btn.secondary {
  color: #fff;
  border-color: rgba(255,255,255,.75);
}

@media (max-width: 900px) {
  .hero {
    background-position: 58% center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-copy {
    max-width: none;
  }
  .hero-photo-wrap {
    min-height: auto;
    justify-content: center;
  }
  .hero-photo-wrap::before {
    inset: 14px 12px 0 12px;
    border-radius: 18px;
  }
  .hero-photo {
    width: min(100%, 260px);
    max-width: 260px;
    height: auto;
  }
}

/* Exterior band removed in v14 */
.office-visual-band {
  display: none !important;
}


/* ===== Version 15: office gallery order ===== */
.office-main img {
  object-position: center 48%;
}
.office-side figure:first-child img {
  object-position: center;
}
.office-side figure:last-child img {
  object-position: center;
}


/* ===== Version 17: top section fits in one screen without scrolling ===== */
@media (min-width: 901px) {
  .header-inner {
    min-height: 68px;
  }

  .site-header {
    height: 68px;
  }

  .hero {
    min-height: calc(100vh - 68px);
    height: calc(100vh - 68px);
    padding: 18px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .hero-grid {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
    align-items: center;
    gap: 44px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero .eyebrow {
    margin: 0 0 8px;
    font-size: .74rem;
  }

  .hero h1 {
    margin: 4px 0 14px;
    font-size: clamp(2.8rem, 4vw, 3.95rem);
    line-height: 1.14;
  }

  .hero .lead {
    margin: 0;
    max-width: 700px;
    font-size: .98rem;
    line-height: 1.68;
  }

  .hero-name {
    margin: 14px 0 0;
  }

  .hero-actions {
    margin: 16px 0 8px;
  }

  .hero .micro {
    margin: 0;
    font-size: .82rem;
  }

  .hero-photo-wrap {
    min-height: 0;
    height: auto;
    align-items: center;
    justify-content: flex-end;
  }

  .hero-photo-wrap::before {
    inset: 14px -8px 10px 28px;
  }

  .hero-photo {
    width: min(100%, 250px);
    max-width: 250px;
    height: 342px;
    object-fit: cover;
    object-position: center 12%;
  }
}

/* Further compression for common laptop-height screens */
@media (min-width: 901px) and (max-height: 760px) {
  .header-inner,
  .site-header {
    min-height: 62px;
    height: 62px;
  }

  .hero {
    min-height: calc(100vh - 62px);
    height: calc(100vh - 62px);
    padding: 12px 0;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 3.7vw, 3.55rem);
    margin: 2px 0 10px;
  }

  .hero .lead {
    font-size: .92rem;
    line-height: 1.58;
  }

  .hero-name {
    margin-top: 10px;
  }

  .hero-actions {
    margin: 12px 0 6px;
  }

  .hero-photo {
    width: min(100%, 230px);
    max-width: 230px;
    height: 315px;
  }
}


/* ===== Version 18: services section fits in one screen ===== */

/* Anchor targets should appear below the sticky header */
#services,
#strengths,
#profile,
#access,
#contact {
  scroll-margin-top: 68px;
}

@media (min-width: 901px) {
  #services.section {
    min-height: calc(100vh - 68px);
    height: calc(100vh - 68px);
    padding: 34px 0 26px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  #services .container {
    width: min(calc(100% - 40px), var(--max));
  }

  #services .section-kicker {
    margin: 0 0 4px;
    font-size: .72rem;
  }

  #services h2 {
    margin: 4px 0 20px;
    font-size: clamp(2rem, 3vw, 2.8rem);
  }

  #services .cards {
    margin-top: 0;
    gap: 18px;
    align-items: stretch;
  }

  #services .card {
    min-height: 0;
    height: auto;
    padding: 24px 26px 22px;
  }

  #services .card-number {
    font-size: .72rem;
  }

  #services .card h3 {
    margin: 8px 0 12px;
    font-size: 1.22rem;
    line-height: 1.35;
  }

  #services .card p {
    margin: 0 0 12px;
    font-size: .91rem;
    line-height: 1.7;
  }

  #services .card p:last-child {
    margin-bottom: 0;
  }

  #services .card-sub {
    font-size: .86rem;
    line-height: 1.65;
  }
}

/* More compact layout for common laptop-height screens */
@media (min-width: 901px) and (max-height: 760px) {
  #services.section {
    min-height: calc(100vh - 62px);
    height: calc(100vh - 62px);
    padding: 22px 0 18px;
  }

  #services h2 {
    margin: 2px 0 14px;
    font-size: 2.2rem;
  }

  #services .cards {
    gap: 14px;
  }

  #services .card {
    padding: 18px 20px 17px;
  }

  #services .card h3 {
    font-size: 1.1rem;
    margin: 6px 0 9px;
  }

  #services .card p {
    font-size: .84rem;
    line-height: 1.55;
    margin-bottom: 9px;
  }

  #services .card-sub {
    font-size: .8rem;
    line-height: 1.5;
  }
}


/* ===== Version 19: profile section fits in one screen ===== */
@media (min-width: 901px) {
  #profile.section {
    min-height: calc(100vh - 68px);
    height: calc(100vh - 68px);
    padding: 28px 0 22px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  #profile .container {
    width: min(calc(100% - 40px), var(--max));
  }

  #profile .profile-grid {
    grid-template-columns: .72fr 1.28fr;
    gap: 54px;
    align-items: start;
  }

  #profile .section-kicker {
    margin: 0 0 4px;
    font-size: .72rem;
  }

  #profile h2 {
    margin: 4px 0 18px;
    font-size: clamp(2.1rem, 3vw, 2.9rem);
  }

  #profile .profile-name {
    margin: 0 0 8px;
    font-size: 1.5rem;
  }

  #profile .profile-heading > p:last-child {
    margin: 0;
    font-size: .94rem;
  }

  #profile .timeline {
    border-top: 1px solid var(--line);
  }

  #profile .timeline-item {
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 12px 0;
  }

  #profile .timeline-item span {
    font-size: .94rem;
    line-height: 1.45;
  }

  #profile .timeline-item p {
    font-size: .92rem;
    line-height: 1.55;
  }

  #profile .timeline-item strong {
    font-size: .98rem;
  }
}

/* Tighter layout for typical laptop-height screens */
@media (min-width: 901px) and (max-height: 760px) {
  #profile.section {
    min-height: calc(100vh - 62px);
    height: calc(100vh - 62px);
    padding: 20px 0 16px;
  }

  #profile .profile-grid {
    gap: 42px;
  }

  #profile h2 {
    margin: 2px 0 14px;
    font-size: 2.35rem;
  }

  #profile .profile-name {
    font-size: 1.36rem;
    margin-bottom: 6px;
  }

  #profile .profile-heading > p:last-child {
    font-size: .88rem;
  }

  #profile .timeline-item {
    grid-template-columns: 122px 1fr;
    gap: 16px;
    padding: 10px 0;
  }

  #profile .timeline-item span {
    font-size: .88rem;
  }

  #profile .timeline-item p {
    font-size: .84rem;
    line-height: 1.45;
  }

  #profile .timeline-item strong {
    font-size: .92rem;
  }
}


/* ===== Version 20: merge services + individuals into one screen ===== */
@media (min-width: 901px) {
  #services.section {
    min-height: calc(100vh - 68px);
    height: calc(100vh - 68px);
    padding: 24px 0 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  #services h2 {
    margin: 2px 0 14px;
    font-size: clamp(2rem, 2.8vw, 2.6rem);
  }

  #services .cards {
    gap: 14px;
  }

  #services .card {
    padding: 18px 20px 16px;
  }

  #services .card h3 {
    margin: 6px 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
  }

  #services .card p,
  #services .card-sub {
    font-size: .82rem;
    line-height: 1.5;
  }

  #services .card p {
    margin: 0 0 8px;
  }

  .individuals-mini {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 34px;
    align-items: start;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #cfd8e4;
  }

  .individuals-mini .section-kicker {
    margin: 0 0 4px;
    font-size: .72rem;
  }

  .individuals-mini h3 {
    margin: 0;
    color: var(--navy);
    font-size: 2rem;
    line-height: 1.2;
  }

  .individuals-mini-body p {
    margin: 0 0 10px;
    color: #4b5565;
    font-size: .92rem;
    line-height: 1.6;
  }

  .individuals-mini-body p:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  #services.section {
    min-height: calc(100vh - 62px);
    height: calc(100vh - 62px);
    padding: 18px 0 14px;
  }

  #services h2 {
    margin: 2px 0 10px;
    font-size: 2.1rem;
  }

  #services .cards {
    gap: 12px;
  }

  #services .card {
    padding: 16px 18px 14px;
  }

  #services .card h3 {
    font-size: 1rem;
    margin: 5px 0 7px;
  }

  #services .card p,
  #services .card-sub {
    font-size: .78rem;
    line-height: 1.42;
  }

  #services .card p {
    margin-bottom: 7px;
  }

  .individuals-mini {
    gap: 28px;
    margin-top: 14px;
    padding-top: 14px;
  }

  .individuals-mini h3 {
    font-size: 1.72rem;
  }

  .individuals-mini-body p {
    font-size: .84rem;
    line-height: 1.48;
    margin-bottom: 8px;
  }
}

@media (max-width: 900px) {
  .individuals-mini {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #cfd8e4;
  }

  .individuals-mini h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 1.8rem;
  }

  .individuals-mini-body p {
    margin: 0 0 12px;
  }
}


/* ===== Version 21: fix placement of individual consultation block ===== */
@media (min-width: 901px) {
  #services.section {
    min-height: calc(100vh - 68px);
    height: calc(100vh - 68px);
    padding: 18px 0 14px;
  }

  #services h2 {
    margin: 0 0 10px;
    font-size: 2.15rem;
  }

  #services .cards {
    gap: 12px;
  }

  #services .card {
    padding: 15px 18px 13px;
  }

  #services .card h3 {
    font-size: 1rem;
    margin: 4px 0 6px;
  }

  #services .card p,
  #services .card-sub {
    font-size: .77rem;
    line-height: 1.42;
  }

  #services .card p {
    margin-bottom: 6px;
  }

  #services .individuals-mini {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 28px;
    align-items: center;
    margin-top: 12px;
    padding: 12px 16px;
    border-top: 1px solid #cfd8e4;
    background: rgba(255,255,255,.55);
  }

  #services .individuals-mini .section-kicker {
    margin: 0 0 2px;
    font-size: .68rem;
  }

  #services .individuals-mini h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.55rem;
    line-height: 1.2;
  }

  #services .individuals-mini-body p {
    margin: 0 0 5px;
    color: #4b5565;
    font-size: .8rem;
    line-height: 1.45;
  }

  #services .individuals-mini-body p:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  #services.section {
    min-height: calc(100vh - 62px);
    height: calc(100vh - 62px);
    padding: 12px 0 10px;
  }

  #services h2 {
    font-size: 1.95rem;
    margin-bottom: 8px;
  }

  #services .card {
    padding: 12px 15px 11px;
  }

  #services .card h3 {
    font-size: .94rem;
  }

  #services .card p,
  #services .card-sub {
    font-size: .72rem;
    line-height: 1.35;
  }

  #services .individuals-mini {
    margin-top: 9px;
    padding: 9px 14px;
  }

  #services .individuals-mini h3 {
    font-size: 1.35rem;
  }

  #services .individuals-mini-body p {
    font-size: .74rem;
    line-height: 1.35;
  }
}


/* ===== Version 22: strengthen individuals block / update NDK year ===== */
@media (min-width: 901px) {
  #services .individuals-mini {
    grid-template-columns: .78fr 1.22fr;
    gap: 30px;
    align-items: start;
    margin-top: 14px;
    padding: 16px 18px;
    border-top: 2px solid var(--navy);
    border-left: 6px solid var(--navy);
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 18px rgba(14,35,64,.06);
  }

  #services .individuals-mini h3 {
    font-size: 1.72rem;
    font-weight: 700;
  }

  #services .individuals-mini-body p {
    font-size: .83rem;
    line-height: 1.5;
    margin: 0 0 7px;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  #services .individuals-mini {
    margin-top: 10px;
    padding: 12px 14px;
    gap: 24px;
    border-left-width: 5px;
  }

  #services .individuals-mini h3 {
    font-size: 1.5rem;
  }

  #services .individuals-mini-body p {
    font-size: .75rem;
    line-height: 1.4;
    margin-bottom: 6px;
  }
}

/* ===== Version 23: services split into business / individuals, larger type ===== */
.service-groups {
  display: grid;
  gap: 18px;
}

.service-group {
  margin: 0;
}

.service-group-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 9px;
}

.service-group-label {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.service-group-title {
  margin: 0;
  color: var(--navy);
  font-size: 1.42rem;
  line-height: 1.3;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#services .service-cards .card {
  min-height: 0;
  padding: 18px 20px 17px;
  border-top-width: 3px;
}

#services .service-card-title {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.35;
}

#services .service-cards .card p,
#services .service-cards .card-sub {
  margin: 0 0 8px;
  color: #4b5565;
  font-size: .96rem;
  line-height: 1.58;
}

#services .service-cards .card p:last-child {
  margin-bottom: 0;
}

@media (min-width: 901px) {
  #services.section {
    min-height: calc(100vh - 68px);
    height: calc(100vh - 68px);
    padding: 20px 0 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  #services .section-kicker {
    margin: 0 0 2px;
    font-size: .74rem;
  }

  #services h2 {
    margin: 0 0 12px;
    font-size: 2.35rem;
    line-height: 1.2;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  #services.section {
    min-height: calc(100vh - 62px);
    height: calc(100vh - 62px);
    padding: 10px 0 8px;
  }

  #services h2 {
    margin-bottom: 8px;
    font-size: 2.05rem;
  }

  .service-groups {
    gap: 11px;
  }

  .service-group-heading {
    margin-bottom: 6px;
  }

  .service-group-title {
    font-size: 1.18rem;
  }

  .service-group-label {
    font-size: .64rem;
  }

  .service-cards {
    gap: 11px;
  }

  #services .service-cards .card {
    padding: 13px 15px 12px;
  }

  #services .service-card-title {
    margin-bottom: 6px;
    font-size: 1.05rem;
  }

  #services .service-cards .card p,
  #services .service-cards .card-sub {
    font-size: .82rem;
    line-height: 1.43;
    margin-bottom: 5px;
  }
}

@media (max-width: 900px) {
  .service-groups {
    gap: 30px;
  }

  .service-group-heading {
    display: block;
    margin-bottom: 13px;
  }

  .service-group-label {
    display: block;
    margin-bottom: 4px;
  }

  .service-group-title {
    font-size: 1.45rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #services .service-cards .card {
    padding: 22px 20px;
  }

  #services .service-card-title {
    font-size: 1.2rem;
  }

  #services .service-cards .card p,
  #services .service-cards .card-sub {
    font-size: .98rem;
    line-height: 1.7;
  }
}

/* ===== Version 24: access section fits in one screen, using exterior photo whitespace ===== */
@media (min-width: 901px) {
  #access.section {
    min-height: calc(100vh - 68px);
    height: calc(100vh - 68px);
    padding: 22px 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
  }

  #access .access-oneview {
    width: min(calc(100% - 40px), var(--max));
    height: 100%;
  }

  #access .access-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 18px;
    height: 100%;
    min-height: 0;
  }

  #access figure {
    margin: 0;
  }

  #access .access-exterior-panel {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: var(--navy);
    box-shadow: 0 12px 30px rgba(14,35,64,.10);
  }

  #access .access-exterior-panel > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% 50%;
  }

  #access .access-exterior-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(7,26,48,.91) 0%,
      rgba(8,30,56,.84) 31%,
      rgba(10,34,62,.43) 52%,
      rgba(10,34,62,.05) 72%,
      rgba(10,34,62,0) 100%
    );
  }

  #access .access-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 47%;
    min-width: 390px;
    padding: 30px 34px;
    color: #fff;
  }

  #access .access-overlay .section-kicker {
    margin: 0 0 2px;
    color: #d8b27d;
    font-size: .74rem;
  }

  #access .access-overlay h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.15rem, 3vw, 3rem);
    line-height: 1.15;
  }

  #access .access-overlay .access-details p {
    margin: 0 0 11px;
    color: #eef3f8;
    font-size: .96rem;
    line-height: 1.62;
  }

  #access .access-overlay .access-details strong {
    color: #fff;
    font-size: 1.08rem;
  }

  #access .access-overlay .access-details a {
    color: #fff;
    font-weight: 700;
  }

  #access .access-note {
    margin-top: 4px !important;
    font-size: .88rem !important;
    color: #dce5ef !important;
  }

  #access .access-photo-label {
    position: absolute;
    left: 34px;
    bottom: 24px;
    color: rgba(255,255,255,.8);
    font-size: .76rem;
    letter-spacing: .03em;
  }

  #access .access-side-photos {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-height: 0;
  }

  #access .access-side-photos figure {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 30px rgba(14,35,64,.10);
  }

  #access .access-side-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #access .access-side-photos figure:first-child img {
    object-position: center 50%;
  }

  #access .access-side-photos figure:last-child img {
    object-position: center 52%;
  }

  #access .access-side-photos figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 16px 12px;
    color: #fff;
    background: linear-gradient(0deg, rgba(7,26,48,.82), rgba(7,26,48,0));
    font-size: .84rem;
    line-height: 1.4;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  #access.section {
    min-height: calc(100vh - 62px);
    height: calc(100vh - 62px);
    padding: 14px 0;
  }

  #access .access-visual-grid {
    gap: 14px;
  }

  #access .access-overlay {
    width: 49%;
    min-width: 370px;
    padding: 22px 28px;
  }

  #access .access-overlay h2 {
    margin-bottom: 12px;
    font-size: 2.25rem;
  }

  #access .access-overlay .access-details p {
    margin-bottom: 8px;
    font-size: .86rem;
    line-height: 1.48;
  }

  #access .access-note {
    font-size: .8rem !important;
  }

  #access .access-photo-label {
    left: 28px;
    bottom: 18px;
    font-size: .7rem;
  }

  #access .access-side-photos {
    gap: 14px;
  }
}

@media (max-width: 900px) {
  #access .access-visual-grid {
    display: grid;
    gap: 20px;
  }

  #access .access-exterior-panel,
  #access .access-side-photos figure {
    position: relative;
    margin: 0;
    overflow: hidden;
  }

  #access .access-exterior-panel > img {
    width: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: 58% center;
  }

  #access .access-exterior-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7,26,48,.90) 0%, rgba(7,26,48,.66) 52%, rgba(7,26,48,.16) 100%);
  }

  #access .access-overlay {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 22px;
    color: #fff;
  }

  #access .access-overlay .section-kicker { color: #d8b27d; }
  #access .access-overlay h2 { color: #fff; margin: 3px 0 12px; }
  #access .access-overlay .access-details p { color: #edf2f7; margin: 0 0 9px; }
  #access .access-overlay .access-details a { color: #fff; }
  #access .access-photo-label { display: none; }

  #access .access-side-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  #access .access-side-photos img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  #access .access-side-photos figcaption {
    padding: 10px 12px 12px;
    color: var(--navy);
    background: #fff;
    font-size: .84rem;
  }
}

@media (max-width: 560px) {
  #access .access-exterior-panel > img { min-height: 610px; }
  #access .access-side-photos { grid-template-columns: 1fr; }
}

/* ===== Version 25: compact contact section for desktop one-screen view ===== */
@media (min-width: 901px) {
  #contact.section {
    min-height: calc(100vh - 68px);
    height: calc(100vh - 68px);
    padding: 14px 0 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  #contact > .container {
    width: min(calc(100% - 40px), var(--max));
  }

  #contact .contact-intro {
    grid-template-columns: 1.45fr .55fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 12px;
  }

  #contact .contact-intro .section-kicker {
    margin: 0 0 2px;
    font-size: .7rem;
  }

  #contact .contact-intro h2 {
    margin: 0 0 4px;
    font-size: 2.35rem;
    line-height: 1.12;
  }

  #contact .contact-intro > div:first-child > p:not(.section-kicker) {
    margin: 0;
    font-size: .88rem;
    line-height: 1.5;
  }

  #contact .phone-card {
    padding: 12px 18px;
  }

  #contact .phone-label {
    margin-bottom: 0;
    font-size: .76rem;
  }

  #contact .phone-number {
    font-size: 1.9rem;
  }

  #contact .phone-card .hours {
    margin: 2px 0 0;
    font-size: .76rem;
  }

  #contact .contact-form-wrap {
    padding: 16px 22px 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
  }

  #contact .form-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
  }

  #contact .form-heading h3 {
    margin: 0;
    font-size: 1.22rem;
    white-space: nowrap;
  }

  #contact .form-heading p {
    font-size: .78rem;
    line-height: 1.4;
  }

  #contact .required-mark {
    font-size: .65rem;
    padding: 0 5px;
  }

  #contact .form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 14px;
  }

  #contact .form-field {
    gap: 3px;
  }

  #contact .form-field-wide {
    grid-column: span 2;
  }

  #contact .form-field > span {
    font-size: .82rem;
    line-height: 1.3;
  }

  #contact .form-field em,
  #contact .consent-row em {
    font-size: .61rem;
    padding: 0 5px;
  }

  #contact .form-field small {
    font-size: .72rem;
  }

  #contact .form-field input,
  #contact .form-field select,
  #contact .form-field textarea {
    padding: 7px 9px;
    font-size: .82rem;
    line-height: 1.35;
  }

  #contact .form-field input,
  #contact .form-field select {
    min-height: 36px;
  }

  #contact .form-field textarea {
    min-height: 74px;
    height: 74px;
  }

  #contact .form-notice {
    margin-top: 10px;
    padding: 9px 12px;
    border-left-width: 3px;
  }

  #contact .form-notice h4 {
    margin: 0 0 4px;
    font-size: .8rem;
  }

  #contact .form-notice ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0 0 5px;
    padding-left: 1.1rem;
  }

  #contact .form-notice li,
  #contact .form-notice p {
    margin: 0;
    font-size: .68rem;
    line-height: 1.35;
  }

  #contact .consent-row {
    gap: 8px;
    margin: 8px 0 0;
    padding: 8px 10px;
    align-items: center;
  }

  #contact .consent-row input {
    width: 16px;
    height: 16px;
    margin-top: 0;
  }

  #contact .consent-row span {
    font-size: .72rem;
    line-height: 1.35;
  }

  #contact .submit-row {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
  }

  #contact .form-submit {
    min-width: 230px;
    min-height: 38px;
    padding: 0 18px;
    font-size: .82rem;
  }

  #contact .prototype-note {
    margin: 0;
    font-size: .66rem;
    line-height: 1.3;
    text-align: left;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  #contact.section {
    min-height: calc(100vh - 62px);
    height: calc(100vh - 62px);
    padding: 8px 0;
  }

  #contact .contact-intro {
    margin-bottom: 8px;
  }

  #contact .contact-intro h2 {
    font-size: 2rem;
  }

  #contact .phone-card {
    padding: 8px 14px;
  }

  #contact .phone-number {
    font-size: 1.65rem;
  }

  #contact .contact-form-wrap {
    padding: 12px 18px 10px;
  }

  #contact .form-heading {
    margin-bottom: 7px;
  }

  #contact .form-grid {
    gap: 7px 12px;
  }

  #contact .form-field input,
  #contact .form-field select {
    min-height: 32px;
    padding: 5px 8px;
  }

  #contact .form-field textarea {
    min-height: 58px;
    height: 58px;
    padding: 6px 8px;
  }

  #contact .form-notice {
    margin-top: 7px;
    padding: 7px 10px;
  }

  #contact .consent-row {
    margin-top: 6px;
    padding: 6px 9px;
  }

  #contact .submit-row {
    margin-top: 6px;
  }
}


/* ===== Version 26: slimmer phone contact / urgency notice revision ===== */
@media (min-width: 901px) {
  #contact .contact-intro {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
  }

  #contact .phone-card {
    display: flex;
    align-items: center;
    gap: 11px;
    width: auto;
    padding: 7px 12px;
    white-space: nowrap;
  }

  #contact .phone-label {
    margin: 0;
    font-size: .69rem;
    line-height: 1.2;
    color: #cbd6e3;
  }

  #contact .phone-number {
    margin: 0;
    font-size: 1.52rem;
    line-height: 1.05;
    letter-spacing: .025em;
  }

  #contact .phone-card .hours {
    margin: 0;
    padding-left: 11px;
    border-left: 1px solid rgba(255,255,255,.22);
    font-size: .68rem;
    line-height: 1.2;
    color: #cbd6e3;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  #contact .phone-card {
    gap: 9px;
    padding: 6px 10px;
  }

  #contact .phone-number {
    font-size: 1.42rem;
  }

  #contact .phone-card .hours {
    padding-left: 9px;
    font-size: .65rem;
  }
}

@media (max-width: 900px) {
  #contact .phone-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 12px;
  }

  #contact .phone-label,
  #contact .phone-card .hours {
    margin: 0;
  }
}


/* ===== Version 27: clearer confirmation notice / privacy text integrated into consent ===== */
@media (min-width: 901px) {
  #contact .form-notice {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 12px 18px;
    align-items: start;
    padding: 10px 13px;
  }

  #contact .form-notice h4 {
    margin: 1px 0 0;
    font-size: .78rem;
    line-height: 1.45;
  }

  #contact .form-notice ul {
    display: block;
    margin: 0;
    padding-left: 1.15rem;
  }

  #contact .form-notice li {
    margin: 0 0 3px;
    font-size: .69rem;
    line-height: 1.42;
  }

  #contact .form-notice li:last-child {
    margin-bottom: 0;
  }

  #contact .consent-row {
    align-items: flex-start;
    padding: 9px 11px;
  }

  #contact .consent-row input {
    margin-top: 2px;
  }

  #contact .consent-copy {
    display: block;
    min-width: 0;
  }

  #contact .consent-title {
    display: block;
    color: var(--navy);
    font-weight: 700;
    font-size: .74rem;
    line-height: 1.35;
  }

  #contact .consent-note {
    display: block;
    margin-top: 3px;
    color: #536173;
    font-size: .66rem;
    line-height: 1.38;
    font-weight: 400;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  #contact .form-notice {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 7px 10px;
  }

  #contact .form-notice h4 {
    font-size: .72rem;
  }

  #contact .form-notice li {
    font-size: .64rem;
    line-height: 1.34;
    margin-bottom: 2px;
  }

  #contact .consent-row {
    padding: 6px 9px;
  }

  #contact .consent-title {
    font-size: .69rem;
  }

  #contact .consent-note {
    margin-top: 2px;
    font-size: .61rem;
    line-height: 1.3;
  }
}

@media (max-width: 900px) {
  #contact .form-notice ul {
    display: block;
  }

  #contact .form-notice li {
    margin-bottom: 7px;
  }

  #contact .consent-copy,
  #contact .consent-title,
  #contact .consent-note {
    display: block;
  }

  #contact .consent-title {
    color: var(--navy);
    font-weight: 700;
  }

  #contact .consent-note {
    margin-top: 5px;
    color: #536173;
    font-size: .82rem;
    line-height: 1.55;
    font-weight: 400;
  }
}


/* ===== Version 29: compact confirmation screen ===== */
#contact .inquiry-hint {
  display: block;
  margin: 2px 0 0;
  color: #687487;
  font-size: .72rem;
  line-height: 1.45;
  font-weight: 500;
}

#contact .inquiry-confirmation[hidden],
#contact .inquiry-form[hidden] {
  display: none !important;
}

#contact .inquiry-confirmation {
  color: var(--ink);
}

#contact .confirmation-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

#contact .confirmation-heading h3,
#contact .confirmation-heading p {
  margin: 0;
}

#contact .confirmation-heading p {
  color: var(--muted);
  font-size: .78rem;
}

#contact .confirmation-list {
  display: block;
  margin: 0;
  border-top: 1px solid var(--line);
}

#contact .confirmation-list > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

#contact .confirmation-list dt,
#contact .confirmation-list dd {
  margin: 0;
  padding: 7px 10px;
  font-size: .78rem;
  line-height: 1.45;
}

#contact .confirmation-list dt {
  color: var(--navy);
  font-weight: 700;
  background: #f4f7fa;
}

#contact .confirmation-list dd {
  color: #394759;
  overflow-wrap: anywhere;
}

#contact .confirm-message {
  white-space: pre-wrap;
}

#contact .confirmation-notice {
  margin-top: 10px;
  padding: 9px 12px;
  background: #f2f5f8;
  border-left: 4px solid var(--navy-2);
}

#contact .confirmation-notice h4 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: .78rem;
}

#contact .confirmation-notice ul {
  margin: 0;
  padding-left: 1.2rem;
}

#contact .confirmation-notice li {
  margin: 0 0 3px;
  color: #465569;
  font-size: .72rem;
  line-height: 1.45;
}

#contact .confirmation-notice li:last-child {
  margin-bottom: 0;
}

#contact .confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

#contact .confirmation-actions .btn {
  min-width: 190px;
  min-height: 40px;
}

#contact .confirmation-back {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}

#contact .confirmation-send {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

@media (min-width: 901px) and (max-height: 760px) {
  #contact .inquiry-hint {
    font-size: .64rem;
    line-height: 1.3;
  }

  #contact .confirmation-heading {
    margin-bottom: 6px;
  }

  #contact .confirmation-heading p {
    font-size: .68rem;
  }

  #contact .confirmation-list > div {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  #contact .confirmation-list dt,
  #contact .confirmation-list dd {
    padding: 5px 8px;
    font-size: .7rem;
    line-height: 1.3;
  }

  #contact .confirmation-notice {
    margin-top: 7px;
    padding: 6px 9px;
  }

  #contact .confirmation-notice h4 {
    font-size: .7rem;
  }

  #contact .confirmation-notice li {
    font-size: .65rem;
    line-height: 1.3;
  }

  #contact .confirmation-actions {
    margin-top: 7px;
  }

  #contact .confirmation-actions .btn {
    min-height: 34px;
  }
}

@media (max-width: 700px) {
  #contact .confirmation-heading {
    display: block;
  }

  #contact .confirmation-heading p {
    margin-top: 4px;
  }

  #contact .confirmation-list > div {
    grid-template-columns: 1fr;
  }

  #contact .confirmation-list dt {
    padding-bottom: 3px;
  }

  #contact .confirmation-list dd {
    padding-top: 4px;
  }

  #contact .confirmation-actions {
    flex-direction: column;
  }

  #contact .confirmation-actions .btn {
    width: 100%;
    min-width: 0;
  }
}


/* ===== Version 30: independent full-screen confirmation view ===== */
body.confirmation-mode {
  overflow: hidden;
}

#contact .inquiry-confirmation[hidden] {
  display: none !important;
}

#contact .inquiry-confirmation {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  background: #eef3f8;
  color: var(--ink);
}

#contact .confirmation-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#contact .confirmation-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

#contact .confirmation-topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#contact .confirmation-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

#contact .confirmation-brand .brand-ja {
  color: #fff;
  font-size: 1.05rem;
}

#contact .confirmation-brand .brand-en {
  color: #b8c5d6;
  font-size: .66rem;
  margin-top: 4px;
}

#contact .confirmation-step {
  color: #dce5ef;
  font-size: .86rem;
  letter-spacing: .03em;
}

#contact .confirmation-screen-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 24px 0 28px;
}

#contact .confirmation-panel {
  width: min(calc(100% - 40px), 1080px);
  margin-inline: auto;
  padding: 24px 28px 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(14,35,64,.10);
}

#contact .confirmation-panel .confirmation-heading {
  margin-bottom: 12px;
}

#contact .confirmation-panel .confirmation-list > div {
  grid-template-columns: 165px minmax(0,1fr);
}

#contact .confirmation-panel .confirmation-list dt,
#contact .confirmation-panel .confirmation-list dd {
  padding: 8px 11px;
  font-size: .82rem;
}

#contact .confirmation-panel .confirmation-notice {
  margin-top: 14px;
}

#contact .confirmation-panel .confirmation-actions {
  margin-top: 16px;
}

#contact .confirmation-panel .confirmation-prototype-note {
  margin-top: 8px;
  text-align: center;
}

@media (min-width: 901px) and (max-height: 760px) {
  #contact .confirmation-topbar-inner {
    min-height: 58px;
  }

  #contact .confirmation-screen-main {
    padding: 12px 0 16px;
  }

  #contact .confirmation-panel {
    padding: 14px 20px 12px;
  }

  #contact .confirmation-panel .confirmation-heading {
    margin-bottom: 7px;
  }

  #contact .confirmation-panel .confirmation-list > div {
    grid-template-columns: 145px minmax(0,1fr);
  }

  #contact .confirmation-panel .confirmation-list dt,
  #contact .confirmation-panel .confirmation-list dd {
    padding: 5px 8px;
    font-size: .72rem;
    line-height: 1.3;
  }

  #contact .confirmation-panel .confirmation-notice {
    margin-top: 8px;
  }

  #contact .confirmation-panel .confirmation-actions {
    margin-top: 9px;
  }
}

@media (max-width: 700px) {
  #contact .confirmation-topbar-inner {
    min-height: 62px;
  }

  #contact .confirmation-step {
    display: none;
  }

  #contact .confirmation-screen-main {
    padding: 14px 0 18px;
  }

  #contact .confirmation-panel {
    width: min(calc(100% - 24px), 1080px);
    padding: 18px 14px 16px;
  }
}


/* ===== Version 31: privacy policy opens separately above consent ===== */
.privacy-policy-guide {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px 14px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #f7f9fb;
}
.privacy-policy-guide-label {
  color: var(--navy);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}
.privacy-policy-open {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy-2);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: left;
}
.privacy-policy-open:hover { color: var(--accent-dark); }
.privacy-policy-guide p {
  margin: 0;
  color: #5a6676;
  font-size: .78rem;
  line-height: 1.45;
}
#contact .consent-row {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .privacy-policy-guide {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* ===== Version 34: iPhone contact-form keyboard visibility fix ===== */
@media (max-width: 700px) {
  /* Prevent iOS from zooming a focused form control and make the textarea easier to read. */
  #contact .form-field input,
  #contact .form-field select,
  #contact .form-field textarea {
    font-size: 16px;
  }

  /*
   * Extra scroll room is added only while the inquiry textarea has focus.
   * This lets iOS move the field above the on-screen keyboard without
   * permanently creating a large blank area below the form.
   */
  body.iphone-message-editing #contact .inquiry-form {
    padding-bottom: max(46vh, 280px);
  }

  #contact textarea[name="message"] {
    min-height: 220px;
    scroll-margin-top: 86px;
    scroll-margin-bottom: 46vh;
  }
}

