/* ==========================================================================
   ZETA Alliance — Global site (zeta-alliance.org)
   japan.zeta-alliance.org と同じブランド（色・書体・ボタン・ヘッダー/フッター）
   ========================================================================== */

:root {
  --zeta-navy: #071a2b;
  --zeta-ink: #0b1f33;
  --zeta-cyan: #24b2dd;
  --zeta-cyan-light: #5fcae7;
  --zeta-cyan-deep: #1a91b1;
  --zeta-accent-grad: linear-gradient(135deg, var(--zeta-cyan-light) 0%, var(--zeta-cyan) 48%, var(--zeta-cyan-deep) 100%);
  --zeta-blue: #0b6e99;
  --zeta-mist: #f3f8fb;
  --zeta-line: rgba(11, 31, 51, 0.1);
  --header-h: 4.5rem;
  --font-display: Outfit, "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-body: Outfit, "Zen Kaku Gothic New", system-ui, sans-serif;
}

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

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

body.g-body {
  margin: 0;
  background: #fff;
  color: var(--zeta-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--zeta-blue);
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--zeta-ink);
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}

.g-wrap {
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.g-wrap-narrow {
  max-width: 52rem;
}
@media (min-width: 640px) {
  .g-wrap {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .g-wrap {
    padding: 0 2.5rem;
  }
}

/* ---------- Buttons ---------- */
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.g-btn:hover {
  transform: translateY(-2px);
}
.g-btn-primary {
  color: #fff;
  background: var(--zeta-accent-grad);
  box-shadow: 0 12px 28px rgba(11, 110, 153, 0.28);
}
.g-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(11, 110, 153, 0.36);
}
.g-btn-ghost {
  color: var(--zeta-ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(11, 31, 51, 0.14);
}
.g-btn-ghost:hover {
  background: #fff;
  border-color: rgba(36, 178, 221, 0.45);
}
.g-btn-ghost-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}
.g-btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(36, 178, 221, 0.6);
}

/* ---------- Header ---------- */
.g-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.g-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}
.g-logo {
  display: inline-flex;
  flex-shrink: 0;
}
.g-logo img {
  display: block;
  width: auto;
  height: 2rem;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}
.g-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.g-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.g-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.g-nav-region img {
  display: block;
  width: 20px;
  height: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.g-nav-sep {
  width: 1px;
  height: 1.25rem;
  margin: 0 0.4rem;
  background: rgba(255, 255, 255, 0.3);
}

.g-header.is-scrolled,
.is-sub .g-header {
  background: rgba(243, 248, 251, 0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 8px 30px rgba(7, 26, 43, 0.06);
}
.g-header.is-scrolled .g-logo img,
.is-sub .g-header .g-logo img {
  filter: none;
}
.g-header.is-scrolled .g-nav a,
.is-sub .g-header .g-nav a {
  color: var(--zeta-ink);
}
.g-header.is-scrolled .g-nav a:hover,
.is-sub .g-header .g-nav a:hover {
  color: var(--zeta-blue);
  background: rgba(36, 178, 221, 0.1);
}
.g-header.is-scrolled .g-nav-sep,
.is-sub .g-header .g-nav-sep {
  background: var(--zeta-line);
}

.g-menu-btn {
  display: none;
}

@media (max-width: 860px) {
  .g-menu-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0 0.7rem;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .g-menu-bar {
    display: block;
    height: 2px;
    background: #fff;
    transition: transform 0.25s ease, background 0.25s ease;
  }
  .g-header.is-scrolled .g-menu-bar,
  .is-sub .g-header .g-menu-bar,
  .g-header.is-open .g-menu-bar {
    background: var(--zeta-ink);
  }
  .g-header.is-open .g-menu-bar:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .g-header.is-open .g-menu-bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }
  .g-header.is-open {
    background: #fff;
  }
  .g-header.is-open .g-logo img {
    filter: none;
  }
  .g-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1.25rem;
    background: #fff;
    box-shadow: 0 18px 30px rgba(7, 26, 43, 0.12);
  }
  .g-header.is-open .g-nav {
    display: flex;
  }
  .g-nav a,
  .g-header.is-scrolled .g-nav a {
    padding: 0.9rem 0.25rem;
    color: var(--zeta-ink);
    border-bottom: 1px solid var(--zeta-line);
  }
  .g-nav-sep {
    display: none;
  }
}

/* ---------- Hero (world map) ---------- */
.g-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 75% 35%, rgba(95, 202, 231, 0.45), transparent 62%),
    radial-gradient(900px 560px at 15% 80%, rgba(36, 178, 221, 0.35), transparent 60%),
    linear-gradient(160deg, #12577d 0%, #1b7aa3 50%, #11506f 100%);
  color: #fff;
}
.g-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.g-hero-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}
.g-mesh-lines path {
  fill: none;
  stroke: rgba(95, 202, 231, 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 6 10;
  animation: g-dash 14s linear infinite;
}
.g-mesh-nodes circle {
  fill: #5fcae7;
  filter: drop-shadow(0 0 6px rgba(36, 178, 221, 0.9));
  animation: g-pulse 3.2s ease-in-out infinite;
}
.g-mesh-nodes circle:nth-child(odd) {
  fill: #fff;
  animation-delay: 1.4s;
}
@keyframes g-dash {
  to {
    stroke-dashoffset: -320;
  }
}
@keyframes g-pulse {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .g-mesh-lines path,
  .g-mesh-nodes circle {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.g-hero-copy {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
}
.g-map {
  position: relative;
  max-width: 1101px;
  margin: 0 auto;
}
.g-map img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.35));
}
/* 地図上のリンク位置（元画像 1101×594 のイメージマップ座標を%換算） */
.g-map-spot {
  position: absolute;
  top: 26.9%;
  width: 16.3%;
  height: 23.6%;
  border-radius: 6px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.g-map-spot-japan {
  left: 83.6%;
}
.g-map-spot-china {
  left: 67.2%;
}
.g-map-spot:hover,
.g-map-spot:focus-visible {
  background: rgba(36, 178, 221, 0.16);
  box-shadow: 0 0 0 1px rgba(95, 202, 231, 0.6), 0 0 30px rgba(36, 178, 221, 0.35);
  outline: none;
}
.g-map-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.g-map-links .g-btn {
  min-width: 9.5rem;
}
.g-map-links img {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
}

/* ---------- Sections ---------- */
.g-section {
  padding: 5rem 0;
}
.g-section-mist {
  background: var(--zeta-mist);
}
@media (min-width: 1024px) {
  .g-section {
    padding: 7rem 0;
  }
}
.g-kicker {
  margin: 0;
  color: var(--zeta-cyan-deep);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}
.g-title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.005em;
}
.g-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1.1rem;
  background: var(--zeta-accent-grad);
}
.g-lead {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  color: rgba(11, 31, 51, 0.82);
}

/* ---------- Contact form ---------- */
.g-req {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.15em 0.55em;
  background: var(--zeta-cyan-deep);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  vertical-align: 0.12em;
}
.g-form {
  margin-top: 2.5rem;
  border-top: 1px solid var(--zeta-line);
}
.g-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--zeta-line);
}
@media (min-width: 720px) {
  .g-field {
    grid-template-columns: 13rem 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}
.g-label {
  margin: 0;
  padding-top: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
}
.g-control {
  min-width: 0;
}
.g-control-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.g-control-stack {
  display: grid;
  gap: 0.75rem;
}
.g-input-short {
  max-width: 14rem;
}
.g-form input[type="text"],
.g-form input[type="email"],
.g-form input[type="tel"],
.g-form textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(11, 31, 51, 0.18);
  border-radius: 0;
  background: #fff;
  color: var(--zeta-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.g-form textarea {
  min-height: 10rem;
  resize: vertical;
}
.g-form input:focus,
.g-form textarea:focus {
  outline: none;
  border-color: var(--zeta-cyan);
  box-shadow: 0 0 0 3px rgba(36, 178, 221, 0.18);
}
.g-form ::placeholder {
  color: rgba(11, 31, 51, 0.4);
}
.g-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 1.25rem 1.25rem;
  background: var(--zeta-mist);
  font-size: 0.98rem;
}
.g-agree input {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.35rem;
  accent-color: var(--zeta-cyan-deep);
}

/* 規約類のポップアップ（japan の .legal-modal と同じ見た目） */
body.g-modal-open {
  overflow: hidden;
}
.g-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.g-modal[hidden] {
  display: none;
}
.g-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 43, 0.55);
}
.g-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 48rem);
  max-height: min(88vh, 44rem);
  background: #fff;
  border: 1px solid rgba(7, 26, 43, 0.12);
  box-shadow: 0 18px 48px rgba(7, 26, 43, 0.22);
  outline: none;
}
.g-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  border-bottom: 1px solid var(--zeta-line);
}
.g-modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--zeta-navy);
}
.g-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--zeta-navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.g-modal-close:hover,
.g-modal-close:focus-visible {
  color: var(--zeta-cyan);
}
.g-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.1rem 1.15rem 1.4rem;
  font-size: 0.98rem;
  line-height: 1.85;
}
.g-modal-body h2,
.g-modal-body h4 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--zeta-navy);
}
.g-modal-body p,
.g-modal-body ol,
.g-modal-body ul {
  margin: 0 0 0.85rem;
}
.g-modal-body .sr-only + * {
  margin-top: 0;
}
.g-modal-body .g-modal-note {
  color: rgba(11, 31, 51, 0.6);
  font-size: 0.9rem;
}

.g-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.g-form-actions .g-btn {
  min-width: 10rem;
}
/* mailformpro のエラー表示をブランドに合わせる */
.g-form .mfp_err {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}
/* mailformpro の確認画面のボタン（送信・戻る）を .g-btn と同じ見た目に */
.mfp_buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.mfp_buttons button#mfp_button_send,
.mfp_buttons button#mfp_button_cancel {
  min-width: 10rem;
  margin: 0;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.mfp_buttons button#mfp_button_send {
  border: 1px solid transparent;
  color: #fff;
  background: var(--zeta-accent-grad);
  box-shadow: 0 12px 28px rgba(11, 110, 153, 0.28);
}
.mfp_buttons button#mfp_button_send:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(11, 110, 153, 0.36);
}
.mfp_buttons button#mfp_button_cancel {
  border: 1px solid rgba(11, 31, 51, 0.14);
  color: var(--zeta-ink);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}
.mfp_buttons button#mfp_button_cancel:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 178, 221, 0.45);
  background: #fff;
}

/* ---------- Sub page / Thanks ---------- */
.g-page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 3.25rem;
  background: var(--zeta-navy);
  color: #fff;
}
.g-page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--zeta-accent-grad);
}
.g-page-hero .g-kicker {
  color: var(--zeta-cyan);
}
.g-page-hero h1 {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
}
.g-thanks {
  text-align: center;
}
.g-thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--zeta-accent-grad);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 110, 153, 0.28);
}
.g-thanks-title {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}
.g-thanks p {
  margin-left: auto;
  margin-right: auto;
  max-width: 34rem;
}
.g-thanks-note {
  color: rgba(11, 31, 51, 0.65);
  font-size: 0.95rem;
}
.g-thanks-no {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--zeta-mist);
  font-family: var(--font-display);
}
.g-thanks-no strong {
  color: var(--zeta-cyan-deep);
  letter-spacing: 0.04em;
}
.g-thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}


/* ---------- Footer ---------- */
.g-footer {
  background: var(--zeta-navy);
  color: rgba(255, 255, 255, 0.78);
  border-top: 3px solid var(--zeta-cyan);
}
.g-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 3.25rem;
  padding-bottom: 2.75rem;
}
.g-footer-logo {
  display: block;
  width: auto;
  height: 2.1rem;
  filter: brightness(0) invert(1);
}
.g-footer-brand p {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
}
.g-footer-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.g-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.g-footer a:hover {
  color: var(--zeta-cyan);
}
.g-footer-regions a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-display);
  font-weight: 600;
}
.g-footer-regions a:hover {
  border-color: rgba(36, 178, 221, 0.6);
}
.g-footer-regions img {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
}
.g-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}
.g-footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}
.g-footer-bar p {
  margin: 0;
}
.g-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.g-footer-legal a {
  color: rgba(255, 255, 255, 0.62);
}
