/* Photographic globe, geographic city labels and direct photo transitions. */
.hm-hero__earth-shell {
  --earth-panel: var(--color-earth-panel);
  --earth-rule: var(--color-earth-rule);
  --earth-ink: var(--color-earth-ink);
  --earth-muted: var(--color-earth-muted);
  --earth-focus: var(--color-earth-focus);
  --earth-callout-bg: rgba(7, 20, 34, 0.94);
  --earth-callout-border: rgba(152, 191, 214, 0.28);
  --earth-callout-title: #edf5fa;
  --earth-callout-copy: #b5cbd9;
  --earth-callout-marker: #a5e0e6;
  --earth-callout-marker-ring: rgba(130, 209, 222, 0.3);
  --earth-callout-radius: 7px;
  --earth-callout-width: 192px;
  --earth-callout-height: 52px;
  --earth-callout-x: -13px;
  --earth-callout-y: -25px;
  --earth-callout-marker-radius: 3px;
  --earth-callout-text-x: 19px;
  --earth-callout-title-y: -4px;
  --earth-callout-copy-y: 13px;
  --earth-callout-title-size: 12px;
  --earth-callout-copy-size: 13px;
  --earth-callout-shadow: color-mix(in srgb, var(--hm-dark) 28%, transparent);
  --earth-callout-stroke-width: 1;
  --earth-callout-shadow-filter: drop-shadow(0 4px 8px var(--earth-callout-shadow));
  --earth-callout-marker-stroke-width: 2;
  --earth-callout-marker-shadow-filter: drop-shadow(0 0 6px var(--earth-callout-marker));
  animation: none;
  isolation: isolate;
  background: var(--hm-dark-footer);
  transition: background-color 120ms linear;
}

.hm-hero__earth-fallback,
.hm-hero__earth-canvas,
.hm-hero__globe-nav {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hm-hero__earth-fallback {
  z-index: 0;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.45s var(--hm-ease);
}

.hm-hero__earth-canvas {
  z-index: 1;
  display: block;
  opacity: 0;
  cursor: default;
  touch-action: auto;
  transition: opacity 0.45s var(--hm-ease);
}

.hm-hero__city-photo {
  position: absolute;
  inset: -1%;
  z-index: 1;
  width: 102%;
  height: 102%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  filter: saturate(0.96) contrast(1.04);
  will-change: opacity, transform;
}

.hm-hero__city-photo.is-drifting {
  animation: hm-earth-city-drift 30s ease-out forwards;
}

@keyframes hm-earth-city-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(0, -0.4%, 0); }
}

.hm-hero__earth-shell.is-loaded .hm-hero__earth-canvas { opacity: 1; }
.hm-hero__earth-shell.is-loaded .hm-hero__earth-fallback { opacity: 0; }

.hm-hero__earth-shell.is-fallback .hm-hero__earth-canvas,
.hm-hero__earth-shell.is-fallback .hm-hero__globe-nav {
  display: none;
}

.hm-hero__static-nav {
  position: absolute;
  top: 50%;
  right: clamp(18px, 4vw, 56px);
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(360px, calc(100% - 36px));
  transform: translateY(-50%);
}

.hm-hero__static-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: #fff;
  background: rgba(3, 15, 28, 0.9);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.hm-hero__static-link:hover,
.hm-hero__static-link:focus-visible {
  border-color: #ff8a50;
  background: rgba(24, 37, 53, 0.96);
}

.hm-hero__reduced-nav {
  display: none;
  right: 82px;
  width: min(360px, calc(100% - 100px));
}

.hm-hero__globe-nav {
  z-index: 2;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.hm-hero__globe-map {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hm-earth-spot {
  color: var(--hm-on-dark);
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transition: opacity 0.16s linear;
}

/* JavaScript updates these transforms alongside the globe render. Do not add
   transform transitions: the nameplate must never trail its geographic point. */
.hm-earth-spot > g { transition: none; }
.hm-earth-spot[aria-hidden="false"] { pointer-events: auto; }
.hm-earth-spot circle:not(.hm-earth-spot__hit) { pointer-events: none; }
.hm-earth-spot rect { pointer-events: none; }
.hm-earth-spot.is-active rect,
.hm-earth-spot:hover rect,
.hm-earth-spot:focus-visible rect { pointer-events: auto; }

.hm-earth-spot rect {
  width: var(--earth-callout-width);
  height: var(--earth-callout-height);
  x: var(--earth-callout-x);
  y: var(--earth-callout-y);
  fill: var(--earth-callout-bg);
  stroke: var(--earth-callout-border);
  stroke-width: var(--earth-callout-stroke-width);
  rx: var(--earth-callout-radius);
  filter: var(--earth-callout-shadow-filter);
}

.hm-earth-spot circle {
  r: var(--earth-callout-marker-radius);
  fill: var(--earth-callout-marker);
  stroke: var(--earth-callout-marker-ring);
  stroke-width: var(--earth-callout-marker-stroke-width);
  filter: var(--earth-callout-marker-shadow-filter);
}

.hm-earth-spot text {
  transform: translate(var(--earth-callout-text-x), var(--earth-callout-title-y));
  fill: var(--earth-callout-title);
  font-family: var(--hm-latin);
  font-size: var(--earth-callout-title-size);
  font-weight: 800;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.hm-earth-spot text.hm-earth-spot__jp {
  transform: translate(var(--earth-callout-text-x), var(--earth-callout-copy-y));
  fill: var(--earth-callout-copy);
  font-family: var(--hm-font);
  font-size: var(--earth-callout-copy-size);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hm-earth-spot:not(.is-active):not(:hover):not(:focus-visible) .hm-earth-spot__leader,
.hm-earth-spot:not(.is-active):not(:hover):not(:focus-visible) rect,
.hm-earth-spot:not(.is-active):not(:hover):not(:focus-visible) text,
.hm-hero__globe-map:has(.hm-earth-spot:hover) .hm-earth-spot.is-active:not(:hover) rect,
.hm-hero__globe-map:has(.hm-earth-spot:hover) .hm-earth-spot.is-active:not(:hover) text,
.hm-hero__globe-map:has(.hm-earth-spot:focus-visible) .hm-earth-spot.is-active:not(:focus-visible) rect,
.hm-hero__globe-map:has(.hm-earth-spot:focus-visible) .hm-earth-spot.is-active:not(:focus-visible) text {
  visibility: hidden;
  opacity: 0;
}

.hm-earth-spot:not(.is-active):not(:hover):not(:focus-visible) circle {
  transform: scale(0.72);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.72;
}

.hm-earth-spot.is-active rect,
.hm-earth-spot:hover rect,
.hm-earth-spot:focus-visible rect {
  fill: var(--earth-callout-bg);
  stroke: var(--earth-callout-border);
  stroke-width: 1;
}

.hm-earth-spot__leader {
  fill: none;
  stroke: var(--earth-callout-border);
  stroke-width: 1;
  pointer-events: none;
}

.hm-earth-spot:focus { outline: none; }

.hm-hero__earth-status {
  position: absolute;
  z-index: 3;
  top: clamp(18px, 2vw, 32px);
  right: clamp(18px, 2.5vw, 42px);
  padding: 7px 10px;
  border-left: 2px solid #45ceff;
  color: rgba(222, 244, 255, 0.72);
  font-family: var(--hm-latin);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  pointer-events: none;
}

@media (max-width: 1280px) {
  /* height 系は #hm-hero-earth の id 規則が持つ。ここの max-height だけが生きて
     768-960 の実効高 clamp(320px, 38vw, 430px)（min-height 320px との合成）を作る。
     home.css の ≤1280px .hm-hero__photo にも同値の max-height があり、
     こちらが後読みで同値上書きしている。変えるときは両方揃えること */
  .hm-hero__earth-shell {
    max-height: clamp(240px, 38vw, 430px);
  }
  .hm-earth-spot text.hm-earth-spot__jp { font-size: 13px; }
}


@media (max-width: 960px) {
  .hm-hero__earth-shell,
  .hm-hero__cut { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-hero__earth-fallback,
  .hm-hero__earth-canvas,
  .hm-earth-spot,
  .hm-earth-spot g { transition: none; }
  .hm-hero__city-photo { animation: none; }
  .hm-hero__globe-nav { display: none; }
  .hm-hero__reduced-nav { display: grid; }
}
#hm-hero-earth .hm-hero__earth-fallback {
  pointer-events: none;
}

.hm-hero__earth-dive {
  --earth-atmosphere-pass: 0;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--earth-atmosphere-pass);
  background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.16), rgba(99, 160, 205, 0.3) 42%, rgba(16, 42, 66, 0.38) 100%);
  backdrop-filter: blur(1.5px);
  transition: opacity 80ms linear;
}

.hm-hero__network-grid {
  display: none;
}

.hm-hero__earth-detail {
  position: absolute;
  right: 28px;
  bottom: 86px;
  z-index: 3;
  width: min(328px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(201, 220, 235, 0.3);
  border-radius: 14px;
  color: #f4f9ff;
  background: rgba(3, 15, 28, 0.96);
  box-shadow: 0 24px 70px rgba(0, 7, 20, 0.58), inset 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hm-hero__earth-detail::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 78px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5f1f, #ffac78);
  box-shadow: 0 0 18px rgba(255, 95, 31, 0.72);
}

.hm-hero__earth-shell.is-inspecting .hm-hero__earth-detail {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hm-hero__earth-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #91abc5;
  font: 700 10px/1 "Space Mono", monospace;
  letter-spacing: 0.16em;
}

.hm-hero__earth-detail-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(116, 220, 255, 0.5);
  border-radius: 50%;
  color: #7de1ff;
  letter-spacing: 0;
}

.hm-hero__earth-detail-city {
  display: block;
  margin-bottom: 7px;
  color: #73d8ff;
  font: 700 11px/1.2 "Space Mono", monospace;
  letter-spacing: 0.18em;
}

.hm-hero__earth-detail-title {
  display: block;
  margin-bottom: 10px;
  padding-right: 24px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.hm-hero__earth-detail-description {
  margin: 0 0 18px;
  color: #c7d6e6;
  font-size: 13px;
  line-height: 1.75;
}

.hm-hero__earth-detail-source {
  margin: -4px 0 14px;
  color: #8396a8;
  font: 500 11px/1.5 "Space Mono", monospace;
  letter-spacing: 0.03em;
}

.hm-hero__earth-detail-source a {
  color: #b7dff2;
  text-underline-offset: 2px;
}

.hm-hero__earth-detail-source a:hover {
  color: #fff;
}

.hm-hero__earth-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid rgba(122, 190, 225, 0.2);
  border-radius: 12px;
  background: rgba(107, 183, 221, 0.18);
}

.hm-hero__earth-detail-meta div {
  padding: 10px 11px;
  background: rgba(2, 17, 36, 0.88);
}

.hm-hero__earth-detail-meta dt {
  margin-bottom: 5px;
  color: #6f8da8;
  font: 700 9px/1 "Space Mono", monospace;
  letter-spacing: 0.12em;
}

.hm-hero__earth-detail-meta dd {
  margin: 0;
  color: #e9f6ff;
  font: 700 11px/1.2 "Space Mono", monospace;
  letter-spacing: 0.04em;
}

.hm-hero__earth-detail-enter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 17px;
  border: 0;
  border-radius: 999px;
  color: var(--hm-on-dark);
  background: #ff5f1f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 79, 20, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.hm-hero__earth-detail-enter:hover {
  transform: translateY(-2px);
  background: #ff7136;
}

.hm-hero__earth-detail-enter:focus-visible,
.hm-hero__earth-detail-close:focus-visible {
  outline: 2px solid #83e4ff;
  outline-offset: 3px;
}

.hm-earth-spot.is-active circle {
  stroke: var(--earth-callout-marker-ring);
  transform: scale(1.12);
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes hm-earth-pin-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

.hm-hero__earth-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #e9f7ff;
  background: rgba(3, 15, 28, 0.82);
  font-size: 20px;
  cursor: pointer;
}

.hm-hero__cut,
.hm-hero__inner {
  pointer-events: none;
}

.hm-hero__inner :is(a, button, input, select, textarea) {
  pointer-events: auto;
}

@media (max-width: 900px) and (max-height: 540px) {
  .hm-hero__earth-detail {
    right: 12px;
    bottom: 12px;
    left: auto;
    width: min(300px, 42vw);
    max-height: calc(100% - 24px);
  }

  .hm-hero__earth-detail-description,
  .hm-hero__earth-detail-meta {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 960px) {
  #hm-hero-earth:is(.is-traveling, .is-city) {
    z-index: 3;
  }

  .hm-hero__earth-detail {
    inset: 12px;
    box-sizing: border-box;
    width: auto;
    max-height: calc(100% - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
  }
}

/* Full-bleed globe hero */
@media (min-width: 961px) {
  .hm-hero {
    /* 82px はこのデザイン導入時の実測固定値。--hm-header-h（100px/84px）とは
       一致していないが、置換すると高さが変わるので値はこのまま */
    --hm3d-header-offset: 82px;
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(680px, calc(100svh - var(--hm3d-header-offset)), 860px);
    overflow: hidden;
    color: #f5f9ff;
    background: var(--hm-dark-footer);
  }

  /* ::before の背景は後方の無条件規則（Premium finish）が全帯域で持つ */
  .hm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
  }

  #hm-hero-earth {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  #hm-hero-earth .hm-hero__earth-fallback,
  #hm-hero-earth .hm-hero__earth-canvas,
  #hm-hero-earth .hm-hero__globe-nav,
  #hm-hero-earth .hm-hero__earth-dive {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hm-hero__cut {
    display: none;
  }

  /* background: transparent が home.css の ≤1280 淡グラデを 961-1280 で打ち消す。
     これがないと白文字が淡い青の面に乗って読めない（>1280 では元々指定なしで無害） */
  .hm-hero__inner {
    z-index: 4;
    min-height: 0;
    color: #f5f9ff;
    background: transparent;
  }

  /* オファー注記の文字色。lead は後方のタイポグラフィ規則が持つ */
  .hm-hero__inner p {
    color: #b8c9db;
  }

  .hm-hero__actions,
  .hm-hero__inner a,
  .hm-hero__inner button {
    pointer-events: auto;
  }

  .hm-hero__inner a {
    color: var(--hm-on-dark);
  }

  .hm-hero__earth-status {
    display: none;
  }
}

@media (max-width: 960px) {
  .hm-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    color: #f5f9ff;
    background: linear-gradient(180deg, #04162d 0%, #031226 48%, #06182e 100%);
  }

  .hm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
  }

  .hm-hero__cut {
    display: none;
  }

  #hm-hero-earth {
    position: relative;
    inset: auto;
    z-index: 1;
    order: 0;
    flex: 0 0 auto;
    width: 100%;
    height: clamp(320px, 52vw, 430px);
    min-height: 320px;
    overflow: hidden;
  }

  /* background: transparent が home.css の ≤1280 淡グラデを 768-960 で打ち消す
     （961-1280 には home のグラデが残る。既存表示の忠実再現） */
  .hm-hero__inner {
    z-index: 4;
    order: 1;
    min-height: 0;
    color: #f5f9ff;
    background: transparent;
  }

  .hm-hero__inner p {
    color: #b7c8da;
  }

  .hm-hero__inner a {
    color: var(--hm-on-dark);
  }
}

/* Hero cleanup: copy, globe and city points only */
.hm-hero__network-hud,
.hm-hero__globe-hint {
  display: none;
}

.hm-hero__network-grid {
  display: none;
}

@media (min-width: 961px) {
  /* 幅・左右 padding は後方のタイポグラフィ規則群が最終値を持つ */
  .hm-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    height: 100%;
    margin: 0;
    padding: 64px 0 66px clamp(48px, 6.5vw, 112px);
  }

  .hm-hero__title {
    margin: 0 0 28px;
  }

  .hm-hero__lead {
    margin: 0 0 34px;
  }

  /* margin-top 0 で home.css 基本形の clamp(26px, 3.4vw, 58px) を打ち消す */
  .hm-hero__actions {
    margin: 0;
  }

  /* 1281px 以上では home.css の境界ガード（max-width）が .hm-hero__actions を
     写真との境界まで細めるため、width: min(340px/210px, 100%) だけだと
     ボタンが痩せすぎる。この min-width が下限を支えている。消さないこと */
  .hm-hero__actions .hm-btn--pill {
    min-width: 288px;
  }

  .hm-hero__actions .hm-btn--pill-sub {
    min-width: 194px;
  }

  /* ボタン2つと同じ行に並ぶと折り返しで列が崩れるため、
     flex-basis: 100% でテキストリンクを独立した行に落とす */
  .hm-hero__actions .hm-hero__textlink {
    flex-basis: 100%;
    width: max-content;
  }

  #hm-hero-earth .hm-hero__earth-fallback,
  #hm-hero-earth .hm-hero__earth-canvas,
  #hm-hero-earth .hm-hero__globe-nav,
  #hm-hero-earth .hm-hero__earth-dive {
    transform: translateX(0);
  }
}

@media (max-width: 960px) {
  .hm-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
  }

  #hm-hero-earth .hm-hero__earth-fallback,
  #hm-hero-earth .hm-hero__earth-canvas,
  #hm-hero-earth .hm-hero__globe-nav,
  #hm-hero-earth .hm-hero__earth-dive {
    transform: translateX(0);
  }
}

.hm-hero__earth-shell:is(.is-city, .is-traveling) .hm-hero__globe-nav {
  opacity: 0;
  pointer-events: none;
}

.hm-hero__earth-shell:is(.is-city, .is-traveling) .hm-hero__reduced-nav {
  opacity: 0;
  pointer-events: none;
}


.hm-hero__earth-shell.is-traveling .hm-hero__globe-nav .hm-earth-spot {
  pointer-events: none;
}

.hm-hero__earth-shell.is-city .hm-hero__earth-canvas {
  cursor: default;
}

@media (min-width: 961px) {
  .hm-hero .hm-hero__inner {
    padding-left: clamp(48px, 7.2vw, 110px);
    padding-right: 0;
  }

  .hm-hero .hm-hero__actions {
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .hm-hero .hm-hero__inner {
    width: 100%;
    padding: 54px clamp(24px, 6vw, 48px) 72px;
  }
}

/* Enterprise typography and controlled hero rhythm. */
.hm-hero {
  --hm-display-font: "Avenir Next", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --hm-body-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --hm-hero-copy-width: 520px;
}

.hm-hero .hm-hero__title {
  width: auto;
  font-family: var(--hm-display-font);
  font-feature-settings: "palt" 1, "kern" 1;
  text-rendering: geometricPrecision;
  white-space: normal;
}

.hm-hero__title-line {
  display: block;
  width: max-content;
  white-space: nowrap;
}

.hm-hero__title-latin {
  letter-spacing: -0.05em;
}

.hm-hero .hm-hero__lead {
  width: min(540px, 100%);
  font-family: var(--hm-body-font);
  font-weight: 400;
  font-feature-settings: "palt" 1;
  text-wrap: pretty;
}

.hm-hero .hm-btn,
.hm-hero .hm-hero__textlink {
  font-family: var(--hm-body-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (min-width: 961px) {
  .hm-hero .hm-hero__inner {
    width: min(740px, 62vw);
  }

  .hm-hero .hm-hero__lockup,
  .hm-hero .hm-hero__title,
  .hm-hero .hm-hero__lead,
  .hm-hero .hm-hero__actions,
  .hm-hero .hm-hero__offer-note {
    max-width: var(--hm-hero-copy-width);
  }
}

@media (max-width: 960px) {
  .hm-hero .hm-hero__title {
    width: 100%;
  }
}

/* Premium enterprise finish: restraint on the copy side, energy on the globe. */
.hm-hero::before {
  background:
    linear-gradient(90deg, #020914 0%, rgba(2, 9, 20, 0.97) 29%, rgba(2, 9, 20, 0.60) 43%, rgba(2, 9, 20, 0.12) 57%, transparent 70%);
}

.hm-hero .hm-hero__inner {
  align-items: flex-start;
}

.hm-hero .hm-hero__lockup {
  position: static;
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0 0 24px;
  color: #d9e4f2;
  font-family: var(--hm-display-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hm-hero .hm-hero__lockup::before {
  width: 28px;
  height: 2px;
  margin-right: 12px;
  background: linear-gradient(90deg, #ff5f1f, #ff9a62);
  content: "";
  box-shadow: 0 0 16px rgba(255, 95, 31, 0.42);
}

.hm-hero .hm-hero__lockup > :first-child {
  display: none;
}

.hm-hero .hm-hero__lockup-name {
  color: #f4f7fb;
}

.hm-hero .hm-hero__lockup-tag {
  display: inline-flex;
  align-items: center;
  color: #8193aa;
}

.hm-hero .hm-hero__lockup-tag::before {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.24);
  content: "/";
}

.hm-hero .hm-hero__title {
  max-width: 590px;
  margin-bottom: 30px;
  /* --hm-soft と偶然同値だが、あちらはライト面の背景トークンなので結線しない */
  color: #f7f9fc;
  font-size: clamp(46px, 4.15vw, 57px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.042em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.hm-hero .hm-hero__title-latin {
  font-weight: 650;
}

.hm-hero .hm-hero__title-line:last-child {
  color: #e9eff7;
}

.hm-hero .hm-hero__lead {
  max-width: 520px;
  margin-bottom: 30px;
  color: #aebed1;
  font-size: 17px;
  line-height: 1.88;
  letter-spacing: 0.012em;
}

.hm-hero .hm-hero__actions {
  width: min(520px, 100%);
  gap: 14px;
}

.hm-hero .hm-btn--pill {
  min-height: 60px;
  border-radius: 12px;
  padding: 0 26px;
  white-space: nowrap;
}

.hm-hero .hm-hero__actions > .hm-btn--pill:not(.hm-btn--pill-sub) {
  width: min(340px, 100%);
  border: 1px solid rgba(255, 158, 102, 0.54);
  background: linear-gradient(135deg, #ff6a1a 0%, #ff4f00 100%);
  box-shadow:
    0 16px 34px rgba(255, 78, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hm-hero .hm-hero__actions > .hm-btn--pill-sub {
  width: min(210px, 100%);
  border: 1px solid rgba(196, 216, 239, 0.24);
  background: rgba(6, 20, 39, 0.62);
  color: #e7edf5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.hm-hero .hm-btn--pill:hover {
  transform: translateY(-2px);
}

.hm-hero .hm-hero__textlink {
  margin-top: 6px;
  color: #d7e1ed;
  font-size: 15px;
  font-weight: 600;
  text-decoration-color: rgba(255, 95, 31, 0.72);
  text-underline-offset: 8px;
}

@media (min-width: 961px) and (max-width: 1200px) {
  .hm-hero .hm-hero__title {
    font-size: clamp(44px, 4.2vw, 50px);
  }
}

@media (max-width: 960px) {
  .hm-hero .hm-hero__lockup {
    margin-bottom: 20px;
  }

  .hm-hero .hm-hero__title {
    font-size: clamp(30px, 7vw, 43px);
  }

  .hm-hero .hm-hero__lead {
    max-width: 600px;
    font-size: 16px;
  }
}

#hm-hero-earth {
  cursor: default;
  touch-action: auto;
  overscroll-behavior: auto;
}

/* 静止画は携帯専用。パソコン（961px以上）では現行の3D地球を使う */
.hm-hero__photo--sp { display: none; }

/* 携帯: 以前の青い地球の静止画バンド + 淡い本文面 */
@media (max-width: 960px) {
  .hm-hero__photo--sp {
    position: static;
    z-index: 0;
    order: -1;
    display: block;
    width: 100%;
    height: min(60vw, 280px);
    max-height: none;
    object-fit: cover;
    object-position: center 30%;
    animation: none;
  }
}

/* Mobile: light copy panel under the restored still Earth. */
@media (max-width: 960px) {
  .hm-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    color: var(--hm-text);
    background: var(--hm-navy-deep);
  }

  /* 地球と本文を縦に並べるため、デスクトップ用の覆いは消す。 */
  .hm-hero::before { display: none; }

  .hm-hero .hm-hero__inner {
    position: relative;
    z-index: 1;
    order: 1;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    padding: clamp(30px, 7vw, 44px) 0 clamp(34px, 8vw, 48px);
    color: var(--hm-text);
    background: var(--hm-hero-sky);
    align-items: flex-start;
  }

  /* --- ロックアップ（オレンジの雲マーク + Cloudflare OS / 導入支援） --- */
  .hm-hero .hm-hero__lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 40px);
    margin: 0 auto clamp(18px, 4.5vw, 26px);
    color: var(--hm-text);
    font-family: var(--hm-font);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
  }

  /* 参考デザインの雲マークを出すので、代わりに置かれていたオレンジの線は消す */
  .hm-hero .hm-hero__lockup::before { display: none; content: none; }
  .hm-hero .hm-hero__lockup > :first-child { display: block; }
  .hm-hero .hm-hero__lockup-mark svg { width: 46px; height: auto; }
  .hm-hero .hm-hero__lockup-name { color: var(--hm-text); font-size: 21px; }

  .hm-hero .hm-hero__lockup-tag {
    color: var(--hm-text-3);
    font-size: 12px;
    font-weight: 600;
  }

  html:lang(en) .hm-hero .hm-hero__lockup {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 0;
  }
  html:lang(en) .hm-hero .hm-hero__lockup-mark {
    grid-row: 1 / span 2;
    align-self: center;
  }
  html:lang(en) .hm-hero .hm-hero__lockup-name,
  html:lang(en) .hm-hero .hm-hero__lockup-tag { grid-column: 2; }

  /* 「/」の区切りは暗い面用。淡い面では雲マークで十分なので出さない */
  .hm-hero .hm-hero__lockup-tag::before { display: none; content: none; }

  /* --- 見出し・リード --- */
  .hm-hero .hm-hero__title {
    width: calc(100% - 40px);
    max-width: none;
    margin: 0 auto clamp(16px, 4vw, 22px);
    color: var(--hm-text);
    font-family: var(--hm-font);
    font-size: clamp(25px, 7vw, 32px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-shadow: none;
    white-space: normal;
  }

  .hm-hero .hm-hero__title-line { width: auto; white-space: normal; }
  .hm-hero .hm-hero__title-line:last-child { color: var(--hm-text); }

  .hm-hero .hm-hero__lead {
    width: calc(100% - 40px);
    max-width: none;
    margin: 0 auto;
    color: var(--hm-text-2);
    font-family: var(--hm-font);
    font-size: 14.5px;
    line-height: 1.95;
  }

  .hm-hero .hm-hero__lead .hm-term {
    color: var(--hm-orange-ink);
  }

  /* --- ボタン列 --- */
  .hm-hero .hm-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: calc(100% - 40px);
    margin: 26px auto 0;
  }

  .hm-hero .hm-hero__actions > .hm-btn--pill,
  .hm-hero .hm-hero__actions > .hm-btn--pill-sub { width: 100%; }

  .hm-hero .hm-hero__actions > .hm-btn--pill:not(.hm-btn--pill-sub) {
    width: 100%;
    border: 0;
    background: var(--hm-orange);
    color: var(--hm-white);
    box-shadow: none;
  }

  /* 淡い面の上なので、枠線ボタンは暗い面用のガラス調ではなくオレンジの枠に戻す */
  .hm-hero .hm-hero__actions > .hm-btn--pill-sub {
    border: 2px solid var(--hm-orange);
    background: transparent;
    color: var(--hm-orange-ink);
    box-shadow: none;
    backdrop-filter: none;
  }

  .hm-hero .hm-hero__textlink {
    margin-top: 10px;
    color: var(--hm-text);
  }

  .hm-hero .hm-hero__inner .hm-hero__offer-note {
    width: calc(100% - 40px);
    margin: 24px auto 0;
    color: var(--hm-text-lead);
  }
}

/* Globe controls stay above the visual scrim and outside the copy column. */
.hm-hero__earth-controls {
  position: absolute;
  z-index: 4;
  top: 26px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--earth-callout-border);
  border-radius: 8px;
  background: var(--earth-callout-bg);
}
.hm-hero__earth-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: var(--earth-callout-copy);
  background: transparent;
  font: 20px/1 monospace;
  cursor: pointer;
}
.hm-hero__earth-controls button:hover,
.hm-hero__earth-controls button[aria-pressed="true"] { background: #193044; color: var(--earth-callout-title); }
.hm-hero__earth-controls button:focus-visible { outline: 2px solid var(--earth-callout-marker); outline-offset: -4px; }
.hm-hero__earth-shell:is(.is-city, .is-traveling, .is-fallback) .hm-hero__earth-controls { display: none; }
.hm-hero__earth-shell.is-fallback .hm-hero__earth-fallback { opacity: 1; }
.hm-hero__earth-canvas { cursor: grab; touch-action: pan-y; }
.hm-hero__earth-canvas.is-dragging { cursor: grabbing; }
@media (max-width: 960px) {
  .hm-hero::before { background: none; }
}
@media (max-width: 960px) {
  #hm-hero-earth {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hm-hero__earth-canvas,
  .hm-hero__earth-fallback { transition: none; }
}

.hm-earth-spot circle.hm-earth-spot__hit {
  r: 28px;
  fill: transparent;
  stroke: none;
  filter: none;
  transform: none;
}
.hm-hero__earth-status { display: none; }
.hm-hero__earth-shell.is-fallback .hm-hero__reduced-nav { display: none; }
@media (min-width: 961px) and (max-width: 1200px) {
  .hm-hero::before {
    background: linear-gradient(90deg, #020914 0%, rgba(2, 9, 20, 0.97) 38%, rgba(2, 9, 20, 0.70) 51%, rgba(2, 9, 20, 0.10) 68%, transparent 80%);
  }
}
@media (max-width: 960px) {
  #hm-hero-earth { max-height: none; }
}
@media (max-width: 767px) {
  .hm-hero__earth-controls button { width: 44px; height: 44px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  #hm-hero-earth .hm-hero__globe-nav { display: none; }
}

#hm-hero-earth.is-fallback .hm-hero__globe-nav { display: none; }
