:root {
  --ofi-bg: #030811;
  --ofi-bg-2: #07111c;
  --ofi-card: rgba(16, 25, 35, 0.82);
  --ofi-card-strong: rgba(20, 31, 43, 0.92);
  --ofi-text: #F3F7FF;
  --ofi-muted: #9BA8B8;
  --ofi-muted-2: #6F7B8B;
  --ofi-line: rgba(184, 210, 238, 0.20);
  --ofi-line-strong: rgba(184, 210, 238, 0.34);
  --ofi-cyan: #35E7FF;
  --ofi-blue: #3E8CFF;
  --ofi-violet: #A879FF;
  --ofi-error: #FFB2A8;
  --ofi-error-bg: rgba(111, 34, 42, 0.34);
  --ofi-error-line: rgba(255, 144, 134, 0.38);
}

/* Page-level dark background guard.
   The shortcode is rendered inside the WordPress theme, so the theme body/footer
   can otherwise leave white bands at the top/bottom on mobile browsers. */
html,
body {
  background: #020712 !important;
}

body,
body #page,
body .site,
body .site-content,
body .content-area,
body .entry-content,
body .wp-site-blocks,
body main,
body article {
  background-color: #020712 !important;
}


.ofi-wrap {
  position: relative;
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: calc(44px + env(safe-area-inset-top)) 20px calc(96px + env(safe-area-inset-bottom));
  color: var(--ofi-text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 8%, rgba(49, 231, 255, 0.20), transparent 22rem),
    radial-gradient(circle at 50% 42%, rgba(88, 129, 255, 0.12), transparent 26rem),
    linear-gradient(180deg, #020712 0%, #06101B 48%, #020712 100%);
  overflow: hidden;
}

.ofi-wrap::before,
.ofi-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.ofi-wrap::before {
  top: 80px;
  width: min(460px, 78vw);
  height: min(460px, 78vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 217, 255, 0.18) 0%, rgba(47, 217, 255, 0.08) 34%, transparent 68%);
  filter: blur(18px);
}

.ofi-wrap::after {
  top: 12px;
  width: 1px;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(63, 226, 255, .48), transparent);
  opacity: .55;
}

.ofi-wrap * { box-sizing: border-box; }

.ofi-app,
.ofi-wrap > .ofi-card,
.ofi-wrap > .ofi-error {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.ofi-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 231, 255, 0.10), transparent 17rem),
    linear-gradient(180deg, rgba(22, 34, 47, 0.92), rgba(10, 18, 28, 0.86));
  border: 1px solid var(--ofi-line);
  border-radius: 34px;
  padding: 34px;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.04);
  margin-bottom: 22px;
  backdrop-filter: blur(12px);
}

.ofi-step { display: none; }
.ofi-step.is-active { display: block; }

.ofi-eyebrow {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(223, 231, 242, 0.52);
  margin-bottom: 18px;
  font-weight: 600;
}

.ofi-title {
  font-size: clamp(38px, 9.6vw, 64px);
  line-height: 1.06;
  margin: 0 0 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: #FFFFFF;
  text-shadow: 0 0 28px rgba(53, 231, 255, 0.18);
}

.ofi-subtitle {
  margin: 0 0 30px;
  color: rgba(245, 249, 255, 0.72);
  font-size: 17px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.ofi-orb {
  width: 84px;
  height: 84px;
  margin: 8px auto 34px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, rgba(53, 231, 255, 0.20), transparent 58%);
  filter: drop-shadow(0 0 30px rgba(53, 231, 255, 0.25));
}
.ofi-orb::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px solid rgba(53, 231, 255, 0.72);
  border-top-color: rgba(168, 121, 255, 0.82);
  box-shadow: 0 0 18px rgba(53, 231, 255, 0.28);
}
.ofi-orb span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #E9FBFF;
  box-shadow: 0 0 16px rgba(53, 231, 255, 0.9), 0 0 40px rgba(168,121,255,.45);
}

.ofi-copy p,
.ofi-note p,
.ofi-result-section p,
.ofi-cta p {
  line-height: 1.95;
  margin: 0 0 18px;
}

.ofi-copy {
  font-size: 16.5px;
  color: rgba(247, 250, 255, 0.90);
}

.ofi-note {
  margin: 30px 0;
  padding: 22px;
  border: 1px solid var(--ofi-line);
  border-radius: 24px;
  color: var(--ofi-muted);
  background: rgba(255,255,255,0.035);
}

.ofi-section-title {
  font-size: 25px;
  line-height: 1.55;
  margin: 0 0 16px;
  letter-spacing: 0.03em;
  color: #FFFFFF;
}

.ofi-muted,
.ofi-help {
  color: var(--ofi-muted);
  line-height: 1.8;
}

.ofi-field { margin: 28px 0; }
.ofi-field label,
.ofi-field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(245, 249, 255, 0.92);
}

.ofi-field input[type="text"] {
  width: 100%;
  height: 54px;
  border: 1px solid var(--ofi-line-strong);
  border-radius: 18px;
  padding: 0 16px;
  font-size: 16px;
  background: rgba(3, 8, 17, 0.60);
  color: var(--ofi-text);
}

.ofi-field input[type="text"]::placeholder { color: rgba(155, 168, 184, 0.55); }

.ofi-field input[type="text"]:focus {
  outline: none;
  border-color: rgba(53, 231, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(53, 231, 255, 0.12), 0 0 22px rgba(53, 231, 255, 0.10);
}

.ofi-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ofi-status-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ofi-line);
  border-radius: 999px;
  padding: 14px 16px;
  cursor: pointer;
  background: rgba(255,255,255,0.035);
  color: rgba(245,249,255,0.86);
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ofi-status-option input { accent-color: var(--ofi-cyan); }

.ofi-status-option:hover { border-color: rgba(53, 231, 255, 0.45); }

.ofi-status-option:has(input:checked) {
  border-color: rgba(53, 231, 255, 0.85);
  background: rgba(53, 231, 255, 0.095);
  box-shadow: 0 0 22px rgba(53, 231, 255, 0.08);
}

.ofi-progress-head {
  display: flex;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: rgba(223, 231, 242, 0.46);
  margin-bottom: 16px;
}

.ofi-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 22px;
}
.ofi-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ofi-cyan), var(--ofi-violet));
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(53, 231, 255, 0.56);
}

.ofi-questions { margin-top: 22px; }
.ofi-question {
  border: 1px solid var(--ofi-line);
  border-radius: 28px;
  padding: 24px 20px 20px;
  margin: 0 0 18px;
  background: rgba(255,255,255,0.035);
}

.ofi-question legend {
  float: left;
  width: 100%;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 800;
  padding: 0;
  margin: 0 0 16px;
  color: rgba(255,255,255,0.94);
}
.ofi-question legend + * { clear: both; }

.ofi-scale-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  color: rgba(155, 168, 184, 0.78);
  font-size: 11px;
  margin: 6px 0 10px;
}
.ofi-scale-labels span:nth-child(2) { text-align: center; }
.ofi-scale-labels span:nth-child(3) { text-align: right; }

.ofi-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}

.ofi-scale-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-width: 28px;
  min-height: 36px;
}
.ofi-scale-option input { position: absolute; opacity: 0; pointer-events: none; }
.ofi-scale-option span {
  display: block;
  border-radius: 50%;
  border: 2px solid rgba(203, 213, 225, 0.40);
  background: rgba(3, 8, 17, 0.42);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.ofi-scale-7 span, .ofi-scale-1 span { width: 30px; height: 30px; }
.ofi-scale-6 span, .ofi-scale-2 span { width: 26px; height: 26px; }
.ofi-scale-5 span, .ofi-scale-3 span { width: 22px; height: 22px; }
.ofi-scale-4 span { width: 20px; height: 20px; }
.ofi-scale-option input:checked + span {
  background: radial-gradient(circle, #F1FEFF 0%, var(--ofi-cyan) 42%, var(--ofi-violet) 100%);
  border-color: rgba(241, 254, 255, 0.90);
  transform: scale(1.10);
  box-shadow: 0 0 18px rgba(53, 231, 255, 0.52), 0 0 34px rgba(168, 121, 255, 0.22);
}

.ofi-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.ofi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none !important;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  flex: 1;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

.ofi-button:hover { transform: translateY(-1px); }

.ofi-primary {
  background: linear-gradient(90deg, #F5FBFF 0%, #DFFBFF 100%);
  color: #07111C !important;
  border-color: rgba(255,255,255,0.65);
  box-shadow: 0 0 28px rgba(53, 231, 255, 0.18);
}
.ofi-secondary {
  background: rgba(255,255,255,0.025);
  color: rgba(245,249,255,0.88) !important;
  border-color: var(--ofi-line-strong);
}

.ofi-error {
  display: none;
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: 18px;
  color: var(--ofi-error);
  background: var(--ofi-error-bg);
  border: 1px solid var(--ofi-error-line);
  line-height: 1.7;
}
.ofi-error.is-visible,
.ofi-server-error { display: block; }

.ofi-loading { text-align: center; padding-top: 54px; padding-bottom: 54px; }

.ofi-result-hero { text-align: left; }
.ofi-result-code {
  font-size: clamp(54px, 16vw, 92px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 20px 0 28px;
  color: #FFFFFF;
  text-shadow: 0 0 28px rgba(53, 231, 255, 0.25), 0 0 60px rgba(168,121,255,0.12);
}

.ofi-result-hero p {
  font-size: 18px;
  line-height: 2;
  margin: 0 0 18px;
  color: rgba(245,249,255,0.92);
}

.ofi-result-section h2 {
  font-size: 18px;
  margin: 0 0 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--ofi-line);
  color: #FFFFFF;
  letter-spacing: 0.06em;
}

.ofi-result-section p { color: rgba(245,249,255,0.84); }

.ofi-tagline {
  font-size: 23px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  text-shadow: 0 0 24px rgba(53, 231, 255, 0.20);
}
.ofi-cta .ofi-button { margin-top: 12px; width: 100%; }
.ofi-cta .ofi-button + .ofi-button { margin-top: 12px; }

@media (max-width: 520px) {
  .ofi-wrap { padding: calc(34px + env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom)); }
  .ofi-card { padding: 28px 20px; border-radius: 30px; }
  .ofi-title { letter-spacing: 0.035em; }
  .ofi-actions { gap: 10px; }
  .ofi-button { padding-left: 14px; padding-right: 14px; }
  .ofi-scale { gap: 4px; }
  .ofi-scale-7 span, .ofi-scale-1 span { width: 28px; height: 28px; }
  .ofi-scale-6 span, .ofi-scale-2 span { width: 24px; height: 24px; }
  .ofi-scale-5 span, .ofi-scale-3 span { width: 21px; height: 21px; }
  .ofi-scale-labels { font-size: 10.5px; }
}


.ofi-share h2 {
  font-size: 18px;
  margin: 0 0 14px;
  color: #FFFFFF;
  letter-spacing: 0.08em;
}

.ofi-share p {
  color: rgba(245,249,255,0.78);
  line-height: 1.85;
}

.ofi-share-card {
  margin: 20px 0 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(53, 231, 255, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 231, 255, 0.14), transparent 13rem),
    rgba(255,255,255,0.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 30px rgba(53,231,255,0.08);
}

.ofi-share-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(53, 231, 255, 0.88);
  margin-bottom: 12px;
  font-weight: 700;
}

.ofi-share-card strong {
  display: block;
  font-size: clamp(38px, 12vw, 64px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 14px;
  text-shadow: 0 0 24px rgba(53, 231, 255, 0.22), 0 0 54px rgba(168,121,255,0.10);
}

.ofi-share-card span:last-child {
  display: block;
  color: rgba(245,249,255,0.82);
  line-height: 1.7;
}

.ofi-share-text {
  width: 100%;
  min-height: 128px;
  margin: 0 0 14px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid var(--ofi-line);
  background: rgba(255,255,255,0.035);
  color: rgba(245,249,255,0.82);
  line-height: 1.65;
  font: inherit;
  resize: vertical;
}

.ofi-share .ofi-button {
  width: 100%;
  margin-top: 12px;
}

.ofi-share-status {
  min-height: 1.6em;
  margin: 14px 0 0 !important;
  color: rgba(53, 231, 255, 0.90) !important;
  font-size: 13px;
  line-height: 1.6 !important;
}


.ofi-ghost {
  width: 100%;
  margin-top: 12px;
  background: transparent;
  color: rgba(245,249,255,0.82);
  border: 1px solid rgba(184, 210, 238, 0.22);
  box-shadow: none;
}

.ofi-ghost:hover {
  border-color: rgba(53, 231, 255, 0.42);
  color: #FFFFFF;
  box-shadow: 0 0 22px rgba(53,231,255,0.08);
}

.ofi-all-types[hidden] { display: none !important; }

.ofi-all-types h2 {
  font-size: 20px;
  margin: 0 0 14px;
  color: #FFFFFF;
  letter-spacing: 0.06em;
}

.ofi-all-types-lead {
  color: rgba(245,249,255,0.76);
  line-height: 1.85;
  margin: 0 0 20px;
}

.ofi-type-list {
  display: grid;
  gap: 10px;
}

.ofi-type-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid rgba(184, 210, 238, 0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.032);
}

.ofi-type-code {
  font-size: 20px;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 0 18px rgba(53, 231, 255, 0.18);
}

.ofi-type-name {
  font-size: 12px;
  letter-spacing: 0.10em;
  color: rgba(53, 231, 255, 0.88);
  margin-bottom: 5px;
  font-weight: 700;
}

.ofi-type-ja {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245,249,255,0.80);
}

@media (max-width: 520px) {
  .ofi-type-item {
    grid-template-columns: 66px 1fr;
    gap: 11px;
    padding: 13px 13px;
  }
  .ofi-type-code { font-size: 18px; }
  .ofi-type-name { font-size: 11px; }
  .ofi-type-ja { font-size: 12.5px; }
}
