.hero h1 {
  font-size: clamp(38px, 4.2vw, 64px);
}

.hero-line {
  display: inline-block;
  white-space: nowrap;
}

.mobile-break {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-switcher {
  display: block;
  font-size: 14px;
}

.language-switcher select {
  min-height: 36px;
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--gold);
  border-radius: 0;
  color: var(--deep);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.language-switcher select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.en-page .hero h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.16;
}

.en-page .hero h1 em {
  white-space: normal;
}

.vi-page .hero h1 em:after {
  display: none;
}

.visa-guide {
  background: #fff;
}

.guide-page {
  background: var(--paper);
}

.guide-page .visa-guide {
  padding-top: 64px;
}

.guide-back {
  display: inline-block;
  margin: 0 0 34px;
  color: var(--blue);
  border-bottom: 1px solid var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.profile-teaser .text-link {
  display: inline-block;
  margin-top: 14px;
}

.profile-detail-page {
  background: #fff;
}

.profile-page-main > .guide-back {
  margin: 48px clamp(28px, 8vw, 128px) 0;
}

.profile-page-main .profile {
  padding-top: 54px;
}

.profile-page-main .profile-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  grid-column: 1 / -1;
  margin-top: 42px;
}

.profile-page-main .profile-story article {
  padding: 30px;
  background: var(--paper);
  border-top: 2px solid var(--gold);
}

.profile-page-main .profile-story article:last-child {
  grid-column: 1 / -1;
}

.profile-page-main .profile-story h3 {
  margin: 0 0 12px;
  color: var(--deep);
  font-family: "Noto Serif JP", serif;
  font-size: 21px;
}

.profile-page-main .profile-story p {
  margin: 0;
  color: #3d5058;
}

.profile-page-main .profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  grid-column: 1 / -1;
  margin-top: 20px;
  padding: 26px 30px;
  background: var(--navy);
  color: #fff;
}

.profile-page-main .profile-facts b {
  display: block;
  margin-bottom: 5px;
  color: #d9bd86;
  font-size: 13px;
}

.profile-page-main .profile-facts span {
  font-size: 14px;
}

.en-page .profile-page-main .profile-story h3 {
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
}

.site-header nav a[aria-current="page"]::after {
  right: 0;
}

.page-return {
  padding: 0 clamp(28px, 8vw, 128px) 80px;
  text-align: center;
}

.home-return-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: #fff;
  font-weight: 700;
  transition: background .2s, color .2s;
}

.home-return-button:hover {
  color: #fff;
  background: var(--navy);
}

.page-top-return {
  padding-top: 36px;
  background: #e7edef;
}

footer > div:nth-child(2) {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.info-page {
  padding: 64px clamp(28px, 8vw, 128px) 0;
  background: var(--paper);
}

.info-document {
  max-width: 980px;
  margin: 0 auto 56px;
  padding: clamp(30px, 5vw, 64px);
  background: #fff;
  box-shadow: var(--shadow);
}

.info-document h1 {
  margin: 0 0 28px;
  color: var(--deep);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.4;
}

.en-page .info-document h1 {
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
}

.info-lead {
  margin: 0 0 36px;
  color: #3d5058;
  font-size: 18px;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 46px 22px 0;
  color: var(--deep);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 38px 24px 0; color: #465961; }

.office-list { margin: 0; border-top: 2px solid var(--navy); }
.office-list div { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.office-list dt { font-weight: 700; color: var(--deep); }
.office-list dd { margin: 0; }
.office-note, .translation-note, .form-guidance { color: var(--muted); font-size: 14px; }
.office-note { margin: 28px 0 0; padding: 16px 18px; background: #f1f5f5; border-left: 3px solid var(--gold); }
.info-cta { margin-top: 36px; text-align: center; }
.policy-sections section { margin-top: 34px; }
.policy-sections h2 { margin: 0 0 10px; color: var(--deep); font-family: "Noto Serif JP", serif; font-size: 21px; }
.en-page .policy-sections h2 { font-family: "Noto Sans", "Noto Sans JP", sans-serif; }
.policy-sections p { margin: 0; }
.translation-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-form .form-guidance { margin: 14px 0 0; }

.visa-guide .section-heading {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.visa-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-audience-title {
  max-width: 1200px;
  margin: 56px auto 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  color: var(--deep);
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
}

.services-page .visa-guide-card {
  min-height: 100%;
}

.visa-guide-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.visa-guide-card > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.visa-guide-body {
  padding: 30px;
}

.visa-guide-body h3 {
  margin: 0 0 12px;
  color: var(--deep);
  font-family: "Noto Serif JP", serif;
  font-size: 25px;
  line-height: 1.45;
}

.visa-guide-body > p {
  margin: 0;
  color: #3d5058;
}

.visa-guide-card details {
  margin-top: 22px;
  border-top: 1px solid #ccd5d7;
}

.visa-guide-card summary {
  padding: 16px 30px 16px 0;
  position: relative;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.visa-guide-card summary::-webkit-details-marker {
  display: none;
}

.visa-guide-card summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 23px;
  font-weight: 400;
}

.visa-guide-card details[open] summary::after {
  content: "−";
}

.visa-guide-card details ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.visa-guide-card details li {
  margin: 8px 0;
}

.visa-caution {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: #fff;
  color: #465b63;
  font-size: 13px;
}

.visa-guide-note {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 18px 20px;
  background: #eef3f3;
  color: var(--muted);
  font-size: 13px;
}

.en-page .visa-guide-body h3 {
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
}

@media (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
    background: linear-gradient(110deg, #f7f6f2 0 60%, #d9e2e4 60%);
  }
}

.contact-form .privacy a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-page {
  background: var(--paper);
  padding: 72px clamp(24px, 8vw, 128px) 110px;
}

.privacy-document {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px);
  background: #fff;
  box-shadow: var(--shadow);
}

.privacy-document h1 {
  margin: 0 0 16px;
  color: var(--deep);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.4;
}

.privacy-document .privacy-intro {
  margin: 0 0 44px;
  color: var(--muted);
}

.services-more {
  margin: 34px 0 0;
  text-align: center;
}

.section-heading h1,
.profile-copy h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.45;
  color: var(--deep);
  margin: 0;
}

.profile-copy h1 {
  margin-bottom: 20px;
}

.mail-fallback {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.contact-response {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.55);
  color: var(--deep);
  font-weight: 600;
}

.service-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
  background: #fff;
}

.service-area-copy h2 { margin-bottom: 20px; }

.service-area-copy > p:last-child {
  margin: 0;
  color: #3d5058;
  font-size: 18px;
  line-height: 2;
}

.service-area-list { border-top: 2px solid var(--navy); }

.service-area-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
}

.service-area-list b { color: var(--navy); }
.service-area-list span { color: var(--muted); }

.contact-area {
  margin-top: 28px;
  color: var(--deep);
  font-weight: 600;
}

@media (max-width: 980px) {
  .service-area { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 640px) {
  .service-area-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 10px;
  }
}

footer .footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 760px;
}

.fee-details-link {
  margin: 30px 0 0;
  text-align: center;
}

.home-page #fees .fee-row {
  display: none;
}

.home-page #fees .fee-row:nth-child(1),
.home-page #fees .fee-row:nth-child(2),
.home-page #fees .fee-row:nth-child(3),
.home-page #fees .fee-row:nth-child(6),
.home-page #fees .fee-row:nth-child(11) {
  display: grid;
}

.home-page-ja #fees .fee-row {
  display: grid;
}

.fee-row.accent {
  background: #fff;
}

/* SureForms inherits the existing contact-card layout after it is enabled. */
.sureforms-contact {
  display: block;
}

.sureforms-contact .srfm-form-container,
.sureforms-contact form {
  width: 100%;
}

.sureforms-contact .srfm-submit-button,
.sureforms-contact button[type="submit"] {
  min-height: 58px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

/* Prevent the legacy required-badge style from colouring SureForms labels. */
.sureforms-contact .srfm-required {
  margin-left: 3px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #c43b32 !important;
  font-size: inherit !important;
}

.sureforms-contact .srfm-cbx > .srfm-block-label {
  margin-left: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 16px !important;
}

/* Keep browser autofill visually consistent with the other form fields. */
.sureforms-contact input.srfm-input-common:-webkit-autofill,
.sureforms-contact input.srfm-input-common:-webkit-autofill:hover,
.sureforms-contact input.srfm-input-common:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink) !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 9999s ease-out 0s;
}

.fee-guidance { max-width: 1000px; margin: 0 auto 46px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.fee-guidance article { padding: 28px 30px; background: var(--paper); }
.fee-guidance h2 { margin: 0 0 14px; font-size: 22px; }
.fee-guidance ul { margin: 0; padding-left: 20px; }
.fee-guidance-note { grid-column: 1/-1; margin: 0; padding: 18px 22px; border-left: 3px solid var(--gold); background: #fff; }
@media(max-width:700px){.fee-guidance{grid-template-columns:1fr}.fee-guidance-note{grid-column:auto}}

.privacy-document section + section {
  margin-top: 38px;
}

.privacy-document h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--deep);
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
}

.privacy-document p,
.privacy-document li {
  color: #3d5058;
}

.privacy-document ol,
.privacy-document ul {
  padding-left: 1.5em;
}

.privacy-document .privacy-contact {
  padding: 24px;
  background: #eef3f3;
}

.privacy-document .back-link {
  display: inline-block;
  margin-top: 44px;
  border-bottom: 1px solid var(--gold);
  font-weight: 700;
}

@media (min-width: 981px) and (max-width: 1199px) {
  .site-header nav {
    gap: 14px;
  }

  .hero-copy {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .hero h1 {
    font-size: clamp(38px, 3.7vw, 44px);
  }
}

@media (max-width: 1180px) {
  .site-header {
    height: 72px;
  }

  .menu-button {
    display: block;
  }

  .site-header nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav a {
    padding: 7px;
  }
}

@media (min-width: 641px) and (max-width: 820px) {
  .service-grid,
  .visa-guide-grid,
  .profile-story,
  .profile-facts,
  .profile-page-main .profile-story,
  .profile-page-main .profile-facts {
    grid-template-columns: 1fr;
  }

  .profile-story article:last-child,
  .profile-page-main .profile-story article:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .language-switcher {
    margin-bottom: 8px;
  }

  .language-switcher select {
    width: 100%;
  }

  .en-page .hero h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.18;
  }

  .hero-copy {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero h1 {
    font-size: clamp(30px, 9vw, 35px);
    line-height: 1.42;
  }

  .hero h1 em:after {
    bottom: 0;
    height: 3px;
  }

  .hero-line {
    display: inline;
    white-space: normal;
  }

  .mobile-break {
    display: inline;
  }

  .privacy-page {
    padding: 36px 16px 64px;
  }

  .privacy-document {
    padding: 28px 20px;
  }

  .privacy-document h1 {
    font-size: 30px;
  }

  .privacy-document h2 {
    font-size: 20px;
  }

  .visa-guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .visa-guide-card > img {
    height: 168px;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .visa-guide-body {
    padding: 24px 20px;
  }

  .visa-guide-body h3 {
    font-size: 22px;
  }

  .guide-page .visa-guide {
    padding-top: 40px;
  }

  .profile-page-main > .guide-back {
    margin-top: 34px;
  }

  .profile-page-main .profile {
    padding-top: 38px;
  }

  .profile-page-main .profile-story,
  .profile-page-main .profile-facts {
    grid-template-columns: 1fr;
  }

  .profile-page-main .profile-story article:last-child {
    grid-column: auto;
  }

  .page-return {
    padding: 0 24px 56px;
  }

  .page-top-return {
    padding-top: 28px;
  }

  .info-page { padding: 32px 16px 0; }
  .info-document { margin-bottom: 40px; padding: 28px 20px; }
  .info-lead { font-size: 16px; }
  .office-list div { grid-template-columns: 1fr; gap: 4px; padding: 16px 8px; }
  .faq-list summary { font-size: 16px; }

  .home-return-button {
    width: 100%;
  }

  .simple-header .brand-mark {
    width: 36px;
    height: 36px;
  }

  .simple-header .nav-cta {
    padding: 8px 12px;
    font-size: 13px;
  }
}
.note-posts { display: grid; gap: 12px; min-width: 0; }
.note-post { display: flex; align-items: center; gap: 16px; min-height: 94px; padding: 12px; background: #fff; border: 1px solid #e2e3df; box-shadow: 0 8px 20px rgba(15,53,72,.08); transition: transform .2s; }
.note-post:hover { transform: translateY(-2px); }
.note-post img { width: 104px; height: 68px; flex: 0 0 104px; object-fit: cover; }
.note-post-body { display: grid; gap: 3px; min-width: 0; }
.note-post-body strong { font-size: 15px; line-height: 1.5; }
.note-post-body time { color: var(--muted); font-size: 12px; }
.note-more { justify-self: start; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 580px) { .note-post { gap: 12px; } .note-post img { width: 86px; height: 60px; flex-basis: 86px; } }

/* Grouped fee schedule */
.fee-group + .fee-group {
  margin-top: 48px;
}

.fee-group-title {
  max-width: 1000px;
  margin: 0 auto 14px;
  color: var(--deep);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.45;
}

.en-page .fee-group-title {
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
}

.fee-group .fee-table {
  margin-top: 0;
}

@media (max-width: 700px) {
  .fee-group + .fee-group {
    margin-top: 36px;
  }

  .fee-group-title {
    font-size: 20px;
  }
}
