.site-header {
  gap: 16px;
}

.brand {
  flex: 0 0 auto;
  min-width: 210px;
}

.site-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  gap: clamp(10px, 1.25vw, 18px);
}

.site-nav a {
  white-space: nowrap;
  text-align: center;
  line-height: 1.15;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.language-switch button {
  min-width: 42px;
  min-height: 28px;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
}

.language-switch button.is-active {
  color: var(--blue);
  background: var(--white);
}

.portal-button {
  flex: 0 0 auto;
  min-width: auto;
  padding: 0 12px;
  white-space: nowrap;
  overflow-wrap: normal;
  line-height: 1.1;
}

.auth-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px !important;
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.92) !important;
  font-weight: 900;
}

.auth-link:hover {
  border-color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.16);
}

.auth-link::after {
  display: none;
}

.portal-button span {
  color: inherit;
  font-size: inherit;
}

.line-contact {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.line-contact strong {
  color: var(--white);
  font-size: 1.04rem;
}

.line-contact small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.55;
}

.line-float {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 42;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.line-float a {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(7,23,40,.74);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  overflow: visible;
}

.line-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
}

.line-float a:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.34);
  background: rgba(7,23,40,.9);
  box-shadow: 0 18px 40px rgba(0,0,0,.26);
}

.portal-note {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.portal-form input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.brief-strip {
  padding-top: 76px;
  background: #ffffff;
}

.brief-grid,
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.brief-grid article,
.room-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.brief-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue-3);
  font-weight: 900;
}

.brief-grid p,
.room-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.brief-grid article {
  min-height: 300px;
}

.room-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.meter p {
  line-height: 1.55;
}

.meter .bar + p {
  font-weight: 700;
}

.fund-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fund-total span,
.fund-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fund-total strong {
  color: var(--blue);
  font-size: clamp(1.4rem, 2.4vw, 2.05rem);
  line-height: 1;
}

.fund-row {
  margin-bottom: 20px;
}

.fund-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.fund-meta strong {
  color: var(--blue-3);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.bar.is-locked i {
  background: var(--blue-3);
}

@media (max-width: 1080px) {
  .brand {
    min-width: 0;
  }

  .site-nav {
    justify-content: center;
  }

  .language-switch {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
  }

  .brief-grid,
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .brief-grid,
  .room-grid {
    grid-template-columns: 1fr;
  }
}

.hero-subline {
  max-width: 820px;
  margin: -10px 0 24px;
  color: rgba(255,255,255,.92);
  font-size: clamp(1.35rem, 2.35vw, 2.15rem);
  font-weight: 900;
}

.hero-copy {
  max-width: 880px;
}

.hero-redline {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.96);
  font-size: clamp(1.28rem, 2vw, 1.76rem);
  font-weight: 900;
}
.modal-panel.is-compact-scroll { max-height: min(720px, calc(100vh - 32px)); overflow-y: auto; }
.modal-panel.is-compact-scroll .portal-form { gap: 12px; }
.modal-panel.is-compact-scroll h2 { font-size: clamp(2rem, 4vw, 3rem); }


.doc-live-section .section-heading p {
  max-width: 900px;
}

.doc-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.doc-live-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doc-live-grid.single {
  grid-template-columns: 1fr;
}

.doc-live-card,
.doc-live-note {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
}

.dark .doc-live-card,
.dark .doc-live-note {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.doc-live-card span,
.doc-live-note span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-3);
  font-size: .74rem;
  font-weight: 900;
}

.dark .doc-live-card span,
.dark .doc-live-note span {
  color: rgba(255,255,255,.62);
}

.doc-live-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  line-height: 1.55;
}

.dark .doc-live-card h3 {
  color: var(--white);
}

.doc-live-card p,
.doc-live-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  white-space: normal;
}

.dark .doc-live-card p,
.dark .doc-live-note p {
  color: rgba(255,255,255,.78);
}

.doc-live-card.is-heading {
  background: #eef2f4;
}

.dark .doc-live-card.is-heading {
  background: rgba(255,255,255,.14);
}

.doc-live-note {
  min-height: auto;
  border-style: dashed;
  background: #f6f8f9;
}

.dark .doc-live-note {
  background: rgba(255,255,255,.05);
}

.doc-mechanism {
  align-items: start;
}

@media (max-width: 1080px) {
  .doc-live-grid,
  .doc-live-grid.three {
    grid-template-columns: 1fr;
  }
}


.clean-section .section-heading p {
  max-width: 880px;
  font-size: clamp(1.18rem, 1.65vw, 1.46rem);
  line-height: 1.75;
}

#mandate.clean-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: #eef2f4;
}

#mandate.clean-section::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(180deg, rgba(247,249,250,.64) 0%, rgba(247,249,250,.50) 42%, rgba(247,249,250,.70) 100%),
    url("./assets/mandate-background.png") center / cover no-repeat;
  opacity: 1;
  filter: grayscale(.12) saturate(1.02) contrast(1.22) brightness(1.12);
  pointer-events: none;
}

#mandate.clean-section > .container {
  position: relative;
  z-index: 1;
}

#mandate .section-heading {
  position: static;
  max-width: 880px;
  margin-bottom: 34px;
  padding-top: 0;
}

#mandate .section-heading .eyebrow {
  color: var(--gold);
  font-size: clamp(.95rem, 1.15vw, 1.15rem);
  letter-spacing: 0;
  text-shadow: none;
}

#mandate .section-heading h2 {
  color: #101820;
  text-shadow: none;
}

#mandate .section-heading p:not(.eyebrow) {
  max-width: 920px;
  color: #13263a;
  font-size: clamp(1.18rem, 1.45vw, 1.38rem);
  line-height: 1.78;
  text-shadow: none;
}

#mandate .copy-stack {
  display: grid;
  gap: 14px;
}

#mandate .copy-stack > p:empty {
  display: none;
}

#mandate .copy-stack > p:not(:empty) {
  max-width: 980px;
  margin: 0;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
  color: #25384a;
  box-shadow: none;
  font-size: clamp(1.14rem, 1.28vw, 1.26rem);
  line-height: 1.82;
  text-shadow: 0 1px 0 rgba(255,255,255,.42);
}

#mandate .clean-grid.single {
  gap: 12px;
  margin-top: 18px;
}

#mandate .content-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(255,255,255,.84);
  box-shadow: none;
}

.clean-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.clean-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clean-grid.single {
  grid-template-columns: 1fr;
}

.content-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
}

.dark .content-card {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.content-card h3,
.access-card h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: clamp(1.16rem, 1.7vw, 1.42rem);
  line-height: 1.45;
}

.dark .content-card h3,
.dark .access-card h3 {
  color: var(--white);
}

.content-card p,
.access-card p,
.accordion-copy p,
.lead-copy {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.85;
}

.dark .content-card p,
.dark .access-card p,
.dark .lead-copy {
  color: rgba(255,255,255,.78);
}

.clean-assets article span {
  line-height: 1.75;
}

.accordion-copy {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.accordion-copy details {
  border: 1px solid var(--line);
  background: var(--white);
}

.accordion-copy summary {
  position: relative;
  list-style: none;
  padding: 15px 18px;
  padding-right: 44px;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.accordion-copy summary::-webkit-details-marker {
  display: none;
}

.accordion-copy summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-3);
  font-weight: 900;
}

.accordion-copy details[open] summary::after {
  content: "-";
}

.accordion-copy details p {
  padding: 0 18px 16px;
}

.returns-copy .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(31,92,134,.28);
  background: rgba(31,92,134,.08);
  color: var(--blue);
  font-weight: 900;
}

.returns-copy .text-link:hover {
  border-color: rgba(31,92,134,.5);
  background: rgba(31,92,134,.13);
}

.lead-copy {
  max-width: 980px;
  margin-bottom: 26px;
}

.clean-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.clean-access .access-card {
  display: block;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.clean-access .access-card p.label-line {
  display: block;
  margin-top: 18px;
  margin-bottom: 10px;
  color: rgba(255,255,255,.96);
  font-weight: 400;
  line-height: 1.55;
}

.clean-access .access-card p.label-line strong {
  font-weight: 900;
}

.clean-access .access-card p.label-line:first-of-type {
  margin-top: 0;
}

.clean-access .access-card p:last-child,
.content-card p:last-child,
.accordion-copy details p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  #mandate .section-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #mandate .section-heading {
    padding-top: 0;
  }

  .clean-grid,
  .clean-grid.three,
  .clean-access {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #mandate.clean-section {
    padding: 78px 0;
  }

  #mandate .copy-stack > p:not(:empty),
  #mandate .content-card {
    padding: 22px;
  }

  #credentials .section-heading.narrow {
    margin-bottom: 30px;
  }

  #credentials .section-heading h2 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
    line-height: 1.08;
  }

  #credentials .section-heading p:not(.eyebrow) {
    padding: 18px;
    font-size: 1rem;
    line-height: 1.82;
  }

  .line-float {
    right: 12px;
    top: auto;
    bottom: 18px;
    gap: 8px;
    transform: none;
  }

  .line-float a {
    width: 50px;
    height: 50px;
    font-size: .66rem;
  }

}


.credential-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(184,164,111,.48);
  box-shadow: inset 0 18px 0 rgba(255,255,255,.025);
}

.credential-section > .container {
  position: relative;
  z-index: 1;
}

#credentials .section-heading.narrow {
  max-width: 1040px;
  margin-bottom: 42px;
}

#credentials .section-heading .eyebrow {
  margin-bottom: 20px;
  color: var(--gold);
  letter-spacing: 0;
}

#credentials .section-heading h2 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 4vw, 4.1rem);
  line-height: 1.1;
  font-weight: 720;
}

#credentials .section-heading p:not(.eyebrow) {
  max-width: 980px;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-left: 4px solid rgba(184,164,111,.82);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 1.18vw, 1.15rem);
  line-height: 1.95;
}

.credential-marquee {
  position: absolute;
  inset: 0;
  opacity: .06;
  filter: saturate(.45) hue-rotate(165deg) contrast(1.02) brightness(.48);
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 72%, transparent 100%);
}

.credential-marquee::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 18, 34, .66);
}

.credential-track {
  display: flex;
  width: max-content;
  min-height: 100%;
  align-items: center;
  gap: 18px;
  animation: credentialMarquee 86s linear infinite;
}

.credential-track figure {
  width: min(340px, 46vw);
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}

.credential-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes credentialMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.credential-card {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.credential-card > span {
  display: none;
}

.credential-card h3,
.verification-gateway h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.45;
}

.credential-card p,
.verification-gateway p {
  margin: 0 0 12px;
  color: rgba(255,255,255,.76);
  line-height: 1.75;
}

.credential-thumb {
  position: relative;
  height: clamp(220px, 23vw, 360px);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
  filter: saturate(.64) hue-rotate(155deg) contrast(1.05);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.credential-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.credential-thumb::after {
  content: "VMIC Presentation Document";
  position: absolute;
  inset: -28%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.34);
  font-size: clamp(1.45rem, 3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-18deg);
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(45deg, rgba(5,20,35,.18) 0 1px, transparent 1px 12px);
  text-shadow: 0 2px 14px rgba(0,0,0,.38);
  pointer-events: none;
  mix-blend-mode: screen;
}

.verification-gateway {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.gateway-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gateway-links a {
  display: inline-flex;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .credential-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .credential-grid { grid-template-columns: 1fr; }
}

html[lang="ja"] body {
  font-family: "Yu Gothic", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
}

html[lang="ja"] .hero h1 {
  max-width: 980px;
  font-size: clamp(3.4rem, 6vw, 5.85rem);
  line-height: 1.08;
  word-break: keep-all;
  overflow-wrap: normal;
}

html[lang="en"] body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.site-nav .language-switch {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, .26);
}

.site-nav .language-switch button {
  cursor: pointer;
}

.content-card h3,
.access-card h3,
.credential-card h3,
.accordion-copy summary,
.gateway-links a,
.button,
.portal-button {
  overflow-wrap: anywhere;
}

.credential-thumb img,
.credential-track img {
  pointer-events: none;
}

@media (max-width: 1080px) {
  .site-nav .language-switch {
    width: auto;
    margin: 8px auto 0;
  }

  .auth-link {
    width: min(260px, 100%);
    margin: 8px auto 0;
  }
}

@media (min-width: 1081px) and (max-width: 1240px) {
  .brand {
    min-width: 180px;
  }

  .brand-mark {
    width: 42px;
  }

  .site-nav {
    gap: 9px;
    font-size: 0.72rem;
  }

  .language-switch button {
    min-width: 34px;
  }

  .portal-button {
    padding: 0 10px;
  }

  .auth-link {
    padding: 0 10px !important;
  }
}
