/* ==========================================================================
   Japan M&A Gateway — Global stylesheet
   Deep Navy / White / Light Gray を基調とした institutional なデザイントークン
   ========================================================================== */

:root {
  /* Brand — Deep Navy / Midnight Blue */
  --navy-900: #04102a;
  --navy-800: #071c3d;
  --navy-700: #0b2a5b;
  --navy-600: #123a76;
  --navy-500: #1a4d94;
  --blue-500: #2563a8;
  --blue-400: #4b86c9;
  --blue-100: #dbe7f5;
  --gold-500: #b4924f;
  --gold-100: #f2ead9;

  /* Neutrals */
  --ink: #0a1730;
  --text: #38445c;
  --muted: #6b7890;
  --line: #e3e8f0;
  --line-strong: #cdd7e5;
  --white: #ffffff;
  --gray-50: #f7f9fc;
  --gray-100: #eef2f8;

  /* Surfaces */
  --bg: var(--white);
  --bg-soft: var(--gray-50);
  --bg-tint: #eff4fa;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans",
    "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    "Noto Sans SC", "Noto Sans TC", "PingFang SC", "PingFang TC", "Microsoft YaHei",
    "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
    "Noto Sans Thai", "Leelawadee UI", "Thonburi",
    Arial, sans-serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --step-0: clamp(0.9375rem, 0.91rem + 0.14vw, 1rem);
  --step-1: clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
  --step-2: clamp(1.25rem, 1.17rem + 0.4vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-4: clamp(1.875rem, 1.6rem + 1.35vw, 2.75rem);
  --step-5: clamp(2.25rem, 1.75rem + 2.5vw, 3.75rem);

  /* Layout */
  --container: 1320px;
  --container-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(7, 28, 61, 0.06), 0 1px 3px rgba(7, 28, 61, 0.05);
  --shadow-md: 0 4px 16px rgba(7, 28, 61, 0.08);
  --shadow-lg: 0 18px 50px rgba(7, 28, 61, 0.12);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--navy-600);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--blue-500);
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--navy-700);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--soft {
  background: var(--bg-soft);
}

.section--tint {
  background: var(--bg-tint);
}

.section--dark {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.82);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Typography blocks
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 1rem;
}

.section--dark .eyebrow {
  color: var(--blue-400);
}

.section-heading {
  font-size: var(--step-4);
  max-width: 22ch;
}

.section-heading--center {
  max-width: 26ch;
  margin-inline: auto;
  text-align: center;
}

.section-lead {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 62ch;
  margin-top: 1.25rem;
  line-height: 1.7;
}

.section--dark .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.section-lead--center {
  margin-inline: auto;
  text-align: center;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  text-align: center;
}

.rule {
  width: 56px;
  height: 3px;
  background: var(--navy-700);
  border: 0;
  margin: 1.25rem 0 0;
}

.section-head--center .rule {
  margin-inline: auto;
}

.section--dark .rule {
  background: var(--blue-400);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn svg {
  flex: none;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}

.btn--primary:hover {
  background: var(--navy-600);
  border-color: var(--navy-600);
  color: #fff;
}

.btn--secondary {
  background: #fff;
  color: var(--navy-800);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  border-color: var(--navy-700);
  color: var(--navy-700);
  background: #fff;
}

.btn--accent {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
}

.btn--accent:hover {
  background: var(--navy-600);
  border-color: var(--navy-600);
  color: #fff;
}

.btn--on-dark {
  background: #fff;
  color: var(--navy-800);
  border-color: #fff;
}

.btn--on-dark:hover {
  background: var(--blue-100);
  border-color: var(--blue-100);
  color: var(--navy-800);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn--sm {
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  font-size: var(--step--1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--navy-600);
}

.link-arrow svg {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Grid utilities
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--wide-left {
    grid-template-columns: 1.15fr 1fr;
  }

  .split--wide-right {
    grid-template-columns: 1fr 1.15fr;
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

a.card:hover,
.card--interactive:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__title {
  font-size: var(--step-2);
  margin-bottom: 0.75rem;
}

.card__body {
  color: var(--muted);
  font-size: var(--step-0);
  line-height: 1.7;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--navy-700);
  margin-bottom: 1.25rem;
  flex: none;
}

.section--dark .icon-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */

.check-list {
  display: grid;
  gap: 0.875rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.75rem;
  align-items: start;
  line-height: 1.65;
}

.check-list svg {
  margin-top: 0.45em;
  color: var(--blue-500);
  flex: none;
}

.section--dark .check-list svg {
  color: var(--blue-400);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: var(--step--1);
  color: var(--text);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Tables (definition style)
   -------------------------------------------------------------------------- */

.definition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-0);
}

.definition-table th,
.definition-table td {
  text-align: left;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.definition-table th {
  width: 38%;
  min-width: 140px;
  font-weight: 600;
  color: var(--ink);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   Prose (legal / article)
   -------------------------------------------------------------------------- */

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.75rem;
  margin-bottom: 0.875rem;
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: 2rem;
  margin-bottom: 0.625rem;
}

.prose p,
.prose li {
  color: var(--text);
  line-height: 1.85;
}

.prose p + p {
  margin-top: 1.25rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.notice {
  border-left: 3px solid var(--gold-500);
  background: var(--gold-100);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step--1);
  color: #6b5626;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

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

[hidden] {
  display: none !important;
}

/* ==========================================================================
   Brand lockup
   ========================================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  flex: 0 1 auto;
  min-width: 0;
}

.brand--light {
  color: #fff;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand--sm .brand__name {
  font-size: 1rem;
}

.brand__by {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand--light .brand__by {
  color: rgba(255, 255, 255, 0.6);
}

.brand:hover .brand__name {
  color: var(--navy-600);
}

.brand--light:hover .brand__name {
  color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(7, 28, 61, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.header__nav {
  display: none;
  flex: 1;
  justify-content: center;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.9vw, 0.9375rem);
}

.header__link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0;
  white-space: nowrap;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 2px;
  background: var(--navy-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.header__link:hover,
.header__link.is-current {
  color: var(--navy-700);
}

.header__link:hover::after,
.header__link.is-current::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.header__cta {
  display: none;
  padding-inline: 0.9rem;
  font-size: 0.8125rem;
}

.header__burger {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: var(--ink);
}

.header__burger:hover {
  background: var(--gray-100);
}

.header__burger [data-icon-close],
.header__burger[aria-expanded='true'] [data-icon-open] {
  display: none;
}

.header__burger[aria-expanded='true'] [data-icon-close] {
  display: block;
}

/* 狭い画面ではヘッダー要素を詰めて、横スクロールが出ないようにする */
@media (max-width: 479px) {
  .header__inner {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand--md .brand__name {
    font-size: 0.9375rem;
  }

  .brand__by {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
  }

  .lang__button {
    padding: 0.5rem 0.4rem;
    gap: 0.25rem;
  }

  .header__burger {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 359px) {
  .lang__chevron {
    display: none;
  }
}

@media (min-width: 1280px) {
  .header__nav {
    display: flex;
  }

  .brand--md .brand__name {
    font-size: 1rem;
  }

  .lang__button {
    padding-inline: 0.5rem;
  }

  .header__cta {
    display: inline-flex;
    margin-left: 0.25rem;
  }

  .header__burger {
    display: none;
  }
}

/* ==========================================================================
   Language switcher
   ========================================================================== */

.lang {
  position: relative;
}

.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--text);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.lang__button:hover {
  background: var(--gray-100);
}

.lang__button[aria-expanded='true'] {
  background: var(--gray-100);
  border-color: var(--line);
}

.lang__chevron {
  transition: transform 0.2s var(--ease);
}

.lang__button[aria-expanded='true'] .lang__chevron {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 90;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

.lang__group + .lang__group {
  margin-top: 0.375rem;
  padding-top: 0.375rem;
  border-top: 1px solid var(--line);
}

.lang__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: var(--step--1);
  line-height: 1.4;
  white-space: nowrap;
}

.lang__item:hover {
  background: var(--bg-tint);
  color: var(--navy-700);
}

.lang__item.is-current {
  color: var(--navy-700);
  font-weight: 600;
}

.lang--inline .lang__menu {
  position: static;
  box-shadow: none;
  border: 0;
  padding: 0;
  min-width: 0;
  max-height: none;
  margin-top: 0.5rem;
}

.lang--inline .lang__button {
  width: 100%;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
}

.lang--inline .lang__item {
  padding: 0.625rem 1rem;
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 80;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: menu-in 0.22s var(--ease);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.mobile-menu__inner {
  padding: 1.5rem var(--gutter) 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mobile-menu__nav {
  display: grid;
}

.mobile-menu__link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.mobile-menu__link.is-current {
  color: var(--blue-500);
}

.mobile-menu__cta {
  width: 100%;
}

.mobile-menu__lang-title {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

@media (min-width: 1280px) {
  .mobile-menu {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f7fc 0%, #ffffff 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(18, 58, 118, 0.09) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.5), transparent 62%);
  -webkit-mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.5), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6rem);
}

.hero__title {
  font-size: var(--step-5);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero__title span {
  display: block;
}

.hero__title-accent {
  color: var(--navy-600);
}

.hero__lead {
  font-size: var(--step-2);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  max-width: 30ch;
}

.hero__body {
  margin-top: 1.125rem;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.8;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--text);
  font-weight: 500;
}

.hero__badges svg {
  color: var(--blue-500);
  flex: none;
}

.hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-800);
  aspect-ratio: 5 / 4;
}

.hero__frame img,
.hero__frame .hero__svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__visual {
  order: -1;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.02fr 0.98fr;
  }

  .hero__visual {
    order: 0;
  }

  .hero__frame {
    aspect-ratio: 4 / 3.4;
  }
}

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust {
  position: relative;
  margin-top: calc(-1 * clamp(1.5rem, 3vw, 2.5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.trust__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.trust__item {
  min-width: 0;
}

.trust__title {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}

.trust__body {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.7;
}

.trust .icon-badge {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Opportunities
   ========================================================================== */

.section-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.7;
}

.opp-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.opp-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr));
}

.opp-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.opp-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.opp-grid > li {
  min-width: 0;
  display: flex;
}

.opp-grid > li > * {
  width: 100%;
}

.opp-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 1.875rem);
  color: var(--text);
  height: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.opp-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text);
}

.opp-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
}

.opp-card__code {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue-500);
}

.opp-card__status {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--muted);
  white-space: nowrap;
}

.opp-card__title {
  font-size: var(--step-1);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.opp-card__region {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.opp-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.875rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.opp-card__meta dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.opp-card__meta dd {
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.opp-card__link {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: var(--step--1);
}

.opp-card:hover .opp-card__link svg {
  transform: translateX(3px);
}

.opp-intro {
  max-width: 72ch;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.opp-empty {
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.75;
}

.opp-disclaimer {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 80ch;
}

/* Filters */

.filters {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.filters__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.filters__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.filters__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.filters__field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.filters__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.filters__count {
  font-size: var(--step--1);
  color: var(--muted);
  font-weight: 500;
}

.filters__reset {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--navy-600);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Select control (shared by filters and form) */

.select {
  position: relative;
  display: flex;
}

.select select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  font-size: var(--step--1);
  color: var(--ink);
  cursor: pointer;
}

.select select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.14);
}

.select svg {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}

/* ==========================================================================
   Opportunity detail
   ========================================================================== */

.detail {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 960px) {
  .detail {
    grid-template-columns: 1.5fr 1fr;
  }

  .detail__aside {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.detail__heading {
  font-size: var(--step-2);
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
}

.detail__heading:first-child {
  margin-top: 0;
}

.detail__text {
  line-height: 1.85;
  color: var(--text);
}

.detail__nda {
  margin-top: 2.5rem;
}

.detail__facts {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.detail__facts .definition-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: var(--step--1);
}

.detail__facts .definition-table td {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--step--1);
}

.detail__facts tr:last-child th,
.detail__facts tr:last-child td {
  border-bottom: 0;
}

.detail__cta {
  margin-top: 1.5rem;
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.detail__cta h2 {
  color: #fff;
  font-size: var(--step-1);
  margin-bottom: 0.625rem;
}

.detail__cta p {
  font-size: var(--step--1);
  line-height: 1.7;
}

.detail__cta-btn {
  margin-top: 1.5rem;
  width: 100%;
  background: #fff;
  color: var(--navy-800);
  border-color: #fff;
}

.detail__cta-btn:hover {
  background: var(--blue-100);
  border-color: var(--blue-100);
  color: var(--navy-800);
}

.detail__related {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.detail__related-grid {
  margin-top: 2rem;
}

/* ==========================================================================
   Why Japan / Buyers / Sellers
   ========================================================================== */

.why-japan__list {
  margin-top: 2rem;
}

.why-japan__list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.why-japan__desc {
  display: block;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.65;
  margin-top: 0.125rem;
}

.why-japan__grid {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.why-japan__visual {
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

.japan-map {
  position: relative;
}

.japan-map svg {
  width: 100%;
  height: auto;
}

.japan-map__caption {
  position: absolute;
  right: 2%;
  bottom: 10%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.875rem 1.125rem;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink);
  max-width: 15rem;
}

@media (max-width: 640px) {
  .japan-map__caption {
    position: static;
    margin-top: 1rem;
    max-width: none;
    box-shadow: none;
  }
}

.service-list,
.seller-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.service-list {
  background: var(--bg-soft);
}

.seller-list {
  background: #fff;
  border: 1px solid var(--line);
}

.service-list li,
.seller-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.625rem;
  align-items: start;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--text);
}

.service-list svg,
.seller-list svg {
  margin-top: 0.35em;
  color: var(--blue-500);
}

@media (max-width: 899px) {
  .seller-list {
    order: 2;
  }
}

/* ==========================================================================
   Services / Industries
   ========================================================================== */

.service-card {
  position: relative;
}

.service-card__index {
  position: absolute;
  top: clamp(1.5rem, 2.5vw, 2rem);
  right: clamp(1.5rem, 2.5vw, 2rem);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--line-strong);
  letter-spacing: 0.02em;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.industry {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2rem) 0.75rem;
  min-height: 130px;
  transition: background-color 0.2s var(--ease);
}

.industry:hover {
  background: var(--bg-tint);
}

.industry__icon {
  color: var(--navy-600);
}

.industry__label {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* ==========================================================================
   Process timeline
   ========================================================================== */

.timeline {
  display: grid;
  gap: 2rem;
}

.timeline__step {
  position: relative;
  padding-left: 4rem;
}

.timeline__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  z-index: 1;
}

.timeline__num {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-700);
  letter-spacing: 0.02em;
}

.timeline__step::before {
  content: '';
  position: absolute;
  left: 23.5px;
  top: 48px;
  bottom: -2rem;
  width: 1px;
  background: var(--line);
}

.timeline__step:last-child::before {
  display: none;
}

.timeline__title {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
  padding-top: 0.625rem;
}

.timeline__body {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.7;
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }

  .timeline__step {
    padding-left: 0;
    padding-top: 4.25rem;
  }

  .timeline__step::before {
    left: 48px;
    right: -1.5rem;
    top: 24px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .timeline__title {
    padding-top: 0;
    font-size: var(--step-0);
  }

  .timeline__body {
    font-size: 0.8125rem;
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.5rem;
  }

  .timeline__step:nth-child(3)::before {
    display: none;
  }
}

/* ==========================================================================
   Cross-border
   ========================================================================== */

.cross-border__heading span {
  display: block;
}

.cross-border__accent {
  color: var(--blue-400);
}

.cross-border__layout {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 1000px) {
  .cross-border__layout {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

.cross-border__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cross-border__item {
  background: var(--navy-800);
  padding: 1.5rem;
}

/* 8 項目を 3 列に並べると最終行が 1 つ空くため、最後の項目を 2 列分に広げる */
.cross-border__item:last-child {
  grid-column: span 2;
}

@media (max-width: 700px) {
  .cross-border__item:last-child {
    grid-column: auto;
  }
}

.cross-border__item h3 {
  font-size: var(--step-0);
  margin-bottom: 0.375rem;
}

.cross-border__item p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.bridge {
  display: grid;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.bridge__node {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
}

.bridge__node--center {
  background: #fff;
  color: var(--navy-800);
  box-shadow: var(--shadow-md);
}

.bridge__label {
  display: block;
  font-weight: 700;
  color: #fff;
  font-size: var(--step-0);
  line-height: 1.4;
}

.bridge__node--center .bridge__label {
  color: var(--navy-800);
}

.bridge__note {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.bridge__node--center .bridge__note {
  color: var(--muted);
}

.bridge__arrow {
  display: grid;
  place-items: center;
  color: var(--blue-400);
}

/* ==========================================================================
   Why Gateway / CTA band
   ========================================================================== */

.why-gateway__grid {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.why-gateway__item h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}

.why-gateway__item p {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.7;
}

.cta-band {
  background: var(--navy-800);
  background-image: radial-gradient(circle at 88% 12%, rgba(75, 134, 201, 0.28), transparent 55%),
    radial-gradient(circle at 8% 92%, rgba(180, 146, 79, 0.14), transparent 48%);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  color: rgba(255, 255, 255, 0.78);
}

.cta-band__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1.35fr auto;
  }
}

.cta-band__heading {
  color: #fff;
  font-size: var(--step-4);
  max-width: 20ch;
}

.cta-band__body {
  margin-top: 1rem;
  max-width: 56ch;
  line-height: 1.75;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.66);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--step--1);
}

.footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .footer__top {
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  }
}

.footer__desc {
  margin-top: 1.25rem;
  max-width: 34ch;
  line-height: 1.75;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer__heading {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.125rem;
}

.footer__list {
  display: grid;
  gap: 0.75rem;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.66);
}

.footer__list a:hover {
  color: #fff;
}

.footer__list--plain li {
  line-height: 1.6;
}

.footer__placeholder {
  color: rgba(255, 255, 255, 0.45);
  word-break: break-all;
}

.footer__cta {
  margin-top: 1.5rem;
}

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Breadcrumb / Page hero
   ========================================================================== */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--navy-600);
}

.breadcrumb span {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumb svg {
  color: var(--line-strong);
  flex: none;
}

.breadcrumb--dark a,
.breadcrumb--dark svg {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb--dark a:hover {
  color: #fff;
}

.breadcrumb--dark span {
  color: #fff;
}

.page-hero {
  background: linear-gradient(180deg, #f4f7fc 0%, #ffffff 100%);
  padding-block: clamp(1.5rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-hero--dark {
  background: var(--navy-800);
  border-bottom-color: transparent;
}

.page-hero__content {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 46rem;
}

.page-hero__title {
  font-size: var(--step-4);
}

.page-hero--dark .page-hero__title {
  color: #fff;
}

.page-hero__lead {
  margin-top: 1.125rem;
  font-size: var(--step-1);
  color: var(--muted);
  line-height: 1.75;
}

.page-hero--dark .page-hero__lead {
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 1000px) {
  .contact-layout {
    grid-template-columns: 1.55fr 1fr;
  }
}

.contact-aside {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.contact-aside h2 {
  font-size: var(--step-1);
  margin-bottom: 0.625rem;
}

.contact-aside p {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.7;
}

.contact-aside__list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.25rem;
}

.contact-aside__list dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
}

.contact-aside__list dd {
  font-size: var(--step-0);
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}

.contact-aside__placeholder {
  color: var(--muted);
}

.contact-aside__points {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-aside__points li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.625rem;
  align-items: start;
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.6;
}

.contact-aside__points svg {
  margin-top: 0.35em;
  color: var(--blue-500);
}

.contact-aside__points strong {
  display: block;
  color: var(--ink);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.contact-form__alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #fdf2f2;
  border: 1px solid #f3c9c9;
  color: #9b2c2c;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: var(--step--1);
  line-height: 1.6;
}

.contact-form__alert svg {
  flex: none;
  margin-top: 0.15em;
}

.form__note {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.form__grid {
  display: grid;
  gap: 1.25rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.field label span {
  color: #c0392b;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.75rem 0.875rem;
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field .select select {
  padding: 0.75rem 2.5rem 0.75rem 0.875rem;
  font-size: var(--step-0);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a4afc0;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.14);
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: #c0392b;
}

.field__error {
  font-size: 0.8125rem;
  color: #c0392b;
  line-height: 1.5;
}

.form__privacy {
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
}

.form__submit {
  margin-top: 1.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .form__submit {
    width: auto;
    min-width: 15rem;
  }
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Insights / Article / Legal / Thanks / 404
   ========================================================================== */

.insights__topics-heading {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.insights__grid {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.insights__empty {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 1.875rem);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.article-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.article-card__category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.75rem;
}

.article-card__title {
  font-size: var(--step-1);
  line-height: 1.4;
  margin-bottom: 0.625rem;
}

.article-card__desc {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.7;
}

.article-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.article__date {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 2rem;
}

.article__back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.article__back .link-arrow svg {
  transition: transform 0.2s var(--ease);
}

.article__back .link-arrow:hover svg {
  transform: translateX(-3px);
}

.about__table-heading {
  font-size: var(--step-2);
  margin-top: clamp(3rem, 6vw, 4rem);
  margin-bottom: 1.25rem;
}

.legal__updated {
  font-size: var(--step--1);
  color: var(--muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal__notice {
  margin-top: 3rem;
}

.thanks,
.not-found {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.thanks__icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--navy-700);
  margin-bottom: 2rem;
}

.thanks__heading,
.not-found__heading {
  font-size: var(--step-4);
}

.thanks__body {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  color: var(--text);
  line-height: 1.75;
}

.thanks__note,
.not-found__body {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.thanks__actions,
.not-found__actions {
  justify-content: center;
}

.not-found__code {
  font-size: var(--step-5);
  font-weight: 700;
  color: var(--line-strong);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ==========================================================================
   写真ビジュアル（画像が配置されている場合のみ適用）
   ========================================================================== */

/* 「なぜ日本か」セクションの写真 */
.japan-map--photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.japan-map--photo .japan-map__caption {
  right: 4%;
  bottom: 8%;
}

/* クロスボーダー支援セクションの背景写真 */
.cross-border--photo {
  background-color: var(--navy-900);
  background-image: linear-gradient(
      105deg,
      rgba(4, 16, 42, 0.96) 0%,
      rgba(4, 16, 42, 0.9) 45%,
      rgba(7, 28, 61, 0.74) 100%
    ),
    var(--section-photo);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.cross-border--photo .cross-border__item {
  background: rgba(4, 16, 42, 0.86);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cross-border--photo .bridge {
  background: rgba(4, 16, 42, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* 大型 CTA 帯の背景写真 */
.cta-band--photo {
  background-color: var(--navy-900);
  background-image: linear-gradient(
      100deg,
      rgba(4, 16, 42, 0.95) 0%,
      rgba(4, 16, 42, 0.86) 40%,
      rgba(7, 28, 61, 0.68) 100%
    ),
    var(--section-photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ロゴマーク */
.brand__mark {
  flex: none;
  display: block;
}

@media (max-width: 640px) {
  .cross-border--photo,
  .cta-band--photo {
    background-position: center;
  }
}

/* 濃色背景ではロゴをわずかに明るくして視認性を確保 */
.brand--light .brand__mark {
  filter: brightness(1.28) saturate(1.05);
}

/* フッターの管轄限定に関する注記 */
.footer__jurisdiction {
  max-width: 78ch;
  margin-inline: auto;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.42);
}

.footer__bottom {
  flex-direction: column;
  gap: 0.75rem;
}
