/* HARU — "金の輪から、サービスを選ぶ" orbit map (home, ja / en) */
.om-section { position: relative; overflow: hidden; background: radial-gradient(ellipse 55% 60% at 30% 50%, rgba(246, 234, 204, .55), transparent 70%), #fff; }
.om-section::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1200px, 100%); height: 1px; transform: translateX(-50%); background: var(--hair); }
.om-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(24px, 4vw, 48px); }
.om-head h2 { font-size: clamp(28px, 4vw, 50px); }
.om-head p { color: var(--muted); font-size: 14px; }
.om-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }

/* stage */
.om-stage { position: relative; width: min(100%, 600px); aspect-ratio: 1; justify-self: center; isolation: isolate; --r: 40%; }
.om-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.om-svg .orbit { fill: none; }
.om-svg .o-outer { stroke: url(#om-gold); stroke-width: 1.4; }
.om-svg .o-mid { stroke: #d9c08a; stroke-width: .9; stroke-dasharray: 1.5 7; }
.om-svg .o-inner { stroke: url(#om-gold); stroke-width: 1; }
.om-svg .comet { fill: none; stroke: url(#om-comet); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 9 91; stroke-dashoffset: 0; opacity: 0; animation: om-comet 11s 1.6s cubic-bezier(.45, .05, .35, 1) infinite; filter: drop-shadow(0 0 4px rgba(233, 200, 120, .9)); }
@keyframes om-comet { 0% { stroke-dashoffset: 0; opacity: 0; } 4% { opacity: 1; } 40% { opacity: 1; } 46% { stroke-dashoffset: -100; opacity: 0; } 100% { stroke-dashoffset: -100; opacity: 0; } }
.om-svg .spoke { stroke: #e2d0a6; stroke-width: .9; }
.om-svg .spoke-lit { stroke: url(#om-gold); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.om-svg .spoke-lit.on { opacity: 1; animation: om-draw .7s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes om-draw { to { stroke-dashoffset: 0; } }
.om-svg .beads { transform-origin: 300px 300px; animation: om-spin 90s linear infinite; }
.om-svg .beads circle { fill: url(#om-bead); }
@keyframes om-spin { to { transform: rotate(360deg); } }
.om-svg .pointer { transform-origin: 300px 300px; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.om-svg .pointer path { fill: none; stroke: url(#om-gold); stroke-width: 3; stroke-linecap: round; }

/* core */
.om-core { position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 50%; background: radial-gradient(circle at 38% 28%, #fff 45%, #fbf2dc 100%); box-shadow: 0 0 0 1px rgba(184, 137, 58, .55), 0 0 0 6px #fff, 0 0 0 7px rgba(201, 162, 78, .35), 0 18px 40px -18px rgba(138, 100, 32, .55); z-index: 1; }
.om-core img { width: 74%; height: auto; filter: drop-shadow(0 4px 8px rgba(138, 100, 32, .3)); }
.om-core span { font: 600 clamp(6px, .75vw, 8px)/1 var(--sans); letter-spacing: .18em; color: var(--gold-text); }
.om-core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%); background-size: 260% 100%; animation: frame-sheen 6s 2s ease-in-out infinite; mix-blend-mode: overlay; pointer-events: none; }

/* nodes */
.om-node { position: absolute; left: calc(50% + var(--r) * var(--x)); top: calc(50% + var(--r) * var(--y)); transform: translate(-50%, -50%); z-index: 2; display: grid; justify-items: center; gap: 8px; width: 112px; padding: 4px; border: 0; background: none; cursor: pointer; color: var(--ink); font: inherit; -webkit-tap-highlight-color: transparent; }
.om-medal { position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 28%, #fff 50%, #faf1dc 100%); box-shadow: 0 0 0 1px rgba(184, 137, 58, .55), 0 0 0 5px #fff, 0 0 0 6px rgba(201, 162, 78, .28), 0 12px 24px -14px rgba(138, 100, 32, .6); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.om-medal img { width: 62%; height: auto; }
.om-label { display: block; max-width: 112px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid rgba(201, 162, 78, .5); font-size: 12px; font-weight: 600; line-height: 1.45; letter-spacing: .02em; text-align: center; color: #3d372d; transition: background .3s, color .3s, border-color .3s; }
.om-node:hover .om-medal { transform: translateY(-3px) scale(1.05); }
.om-node[aria-pressed="true"] .om-medal { transform: scale(1.1); box-shadow: 0 0 0 1.5px #b8893a, 0 0 0 5px #fff, 0 0 0 6.5px #c9a24e, 0 0 26px 2px rgba(233, 200, 120, .7), 0 14px 28px -14px rgba(138, 100, 32, .7); }
.om-node[aria-pressed="true"] .om-label { background: var(--foil-soft); border-color: #b8893a; color: #241c10; }
.om-node:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 16px; }
.om-node .ripple { position: absolute; left: 50%; top: 37px; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; border: 1.5px solid #c9a24e; opacity: 0; pointer-events: none; }
.om-node.ping .ripple { animation: om-ripple .9s cubic-bezier(.2, .7, .2, 1); }
@keyframes om-ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

.om-replay { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border: 1px solid rgba(168, 130, 63, .5); border-radius: 999px; background: rgba(255, 255, 255, .92); color: #3d372d; font: 600 12px/1 var(--sans); letter-spacing: .06em; cursor: pointer; white-space: nowrap; }
.om-replay:hover { border-color: var(--gold-text); }
.om-replay span { color: var(--gold-text); font-size: 15px; }
.om-replay[hidden] { display: none; }

/* panel */
.om-panel { position: relative; padding: clamp(26px, 3.4vw, 44px); border-radius: 26px; background: linear-gradient(160deg, #fff 60%, #fdf7ea); box-shadow: inset 0 0 0 1px rgba(201, 162, 78, .55), inset 0 0 0 7px #fff, inset 0 0 0 8px rgba(201, 162, 78, .25), 0 30px 70px -42px rgba(138, 100, 32, .55); }
.om-panel .kicker { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--gold-text); }
.om-panel h3 { margin: 16px 0 14px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.5; }
.om-panel h3 span { display: inline-block; }
.om-panel > p { color: var(--text); font-size: 15px; }
.om-panel ol { list-style: none; margin: 20px 0 24px; padding: 0; counter-reset: om; }
.om-panel li { counter-increment: om; position: relative; padding: 12px 0 12px 40px; border-top: 1px solid rgba(201, 162, 78, .3); font-size: 14px; color: var(--ink-soft); }
.om-panel li::before { content: "0" counter(om); position: absolute; left: 0; top: 11px; font: 500 15px/1.6 var(--serif); color: var(--gold-text); }
.om-panel .actions { display: grid; gap: 12px; }
.om-panel .actions .button { width: 100%; }
.om-panel .actions .arrow-link { justify-content: space-between; min-height: 48px; padding: 0 4px; border-bottom: 1px solid rgba(201, 162, 78, .4); }
.om-panel.swap { animation: om-swap .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes om-swap { from { opacity: .55; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.om-fallback { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.om-fallback a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }

@media (max-width: 960px) {
  .om-layout { grid-template-columns: 1fr; }
  .om-panel { max-width: 640px; justify-self: center; width: 100%; }
}
@media (max-width: 600px) {
  .om-stage { --r: 36%; width: min(100%, 420px); margin-bottom: 18px; }
  .om-node { width: 92px; gap: 6px; }
  .om-medal { width: 56px; height: 56px; }
  .om-node .ripple { top: 28px; width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .om-label { max-width: 92px; padding: 3px 7px; font-size: 11px; }
  .om-core { width: 30%; }
  .om-replay { bottom: -26px; }
}
@media (max-width: 360px) {
  .om-node { width: 82px; }
  .om-medal { width: 50px; height: 50px; }
  .om-label { max-width: 82px; font-size: 10.5px; padding: 3px 6px; }
}

.fx-paused .om-svg .comet, .fx-paused .om-svg .beads, .fx-paused .om-core::after, .om-offscreen .om-svg .comet, .om-offscreen .om-svg .beads { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .om-svg .comet { display: none; }
  .om-svg .beads, .om-core::after { animation: none; }
  .om-svg .pointer, .om-medal, .om-label { transition: none; }
  .om-node.ping .ripple, .om-panel.swap { animation: none; }
  .om-svg .spoke-lit.on { animation: none; stroke-dashoffset: 0; }
}
/* replay sits below the orbit, never on top of a service label */
.om-stage { margin-bottom: 64px; }
.om-replay { bottom: -60px; }
.om-label { width: max-content; white-space: nowrap; }
:lang(en) .om-label { white-space: normal; width: auto; }
@media (max-width: 600px) {
  .om-stage { --r: 37%; margin-bottom: 70px; }
  .om-core { width: 25%; }
  .om-replay { bottom: -64px; }
  .om-label { max-width: 108px; font-size: 11px; letter-spacing: 0; }
}
@media (max-width: 360px) {
  .om-label { font-size: 10.5px; padding: 3px 6px; max-width: 100px; }
}
