* {
  box-sizing: border-box;
}

:root {
  --oshi-bg-a: #f6fbff;
  --oshi-bg-b: #fff7f0;
  --oshi-card: #ffffff;
  --oshi-text: #243044;
  --oshi-soft: #627085;
  --oshi-border: #dfe7f2;
  --oshi-accent: #5f74e8;
  --oshi-accent-strong: #4459c8;
  --oshi-coral: #f07a6a;
  --oshi-mint: #13a895;
  --oshi-shadow: 0 10px 30px rgba(70, 91, 150, 0.1);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--oshi-text);
  background: radial-gradient(circle at 15% 8%, #e7f4ff 0, transparent 32%), radial-gradient(circle at 90% 4%, #ffe9dd 0, transparent 30%), linear-gradient(150deg, var(--oshi-bg-a), var(--oshi-bg-b));
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.75;
}

.oshi-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 30px 16px 54px;
}

.oshi-hero {
  margin-bottom: 20px;
  text-align: center;
}

.oshi-hero-label {
  margin: 0 0 4px;
  color: var(--oshi-accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oshi-hero h1 {
  margin: 0;
  font-size: clamp(29px, 7vw, 42px);
  line-height: 1.22;
  letter-spacing: 0;
}

.oshi-hero-copy {
  margin: 10px auto 6px;
  color: #334f86;
  font-size: 16px;
  font-weight: 800;
}

.oshi-hero-note {
  margin: 0;
  color: var(--oshi-soft);
  font-size: 13px;
}

.oshi-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--oshi-border);
  border-radius: 14px;
  box-shadow: var(--oshi-shadow);
}

.oshi-start {
  text-align: center;
}

.oshi-start h2,
.oshi-question-card h2,
.oshi-result-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.oshi-start h2 {
  font-size: 20px;
}

.oshi-start p {
  margin: 8px 0 16px;
  color: var(--oshi-soft);
  font-size: 14px;
}

.oshi-quiz,
.oshi-result {
  display: grid;
  gap: 14px;
}

.oshi-progress {
  display: grid;
  gap: 8px;
  color: var(--oshi-accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.oshi-progress-bar {
  display: block;
  height: 9px;
  overflow: hidden;
  background: #e8edf8;
  border-radius: 999px;
}

.oshi-progress-bar span {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--oshi-accent), var(--oshi-coral));
  border-radius: inherit;
  transition: width 0.2s ease;
}

.oshi-question-kicker {
  margin: 0 0 6px;
  color: var(--oshi-accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.oshi-question-card h2 {
  font-size: 22px;
  line-height: 1.45;
}

.oshi-options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.oshi-option {
  position: relative;
  display: block;
}

.oshi-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.oshi-option span {
  display: block;
  min-height: 56px;
  padding: 13px 14px;
  color: #2c3a52;
  background: #fbfcff;
  border: 1px solid #dce5f2;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  cursor: pointer;
}

.oshi-option input:checked + span {
  color: #23336d;
  background: #eef2ff;
  border-color: #9aa8f3;
  box-shadow: inset 0 0 0 1px #9aa8f3;
}

.oshi-option input:focus-visible + span {
  outline: 2px solid var(--oshi-accent);
  outline-offset: 3px;
}

.oshi-nav-actions,
.oshi-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.oshi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.oshi-button:hover,
.oshi-button:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.oshi-button:focus-visible {
  outline: 2px solid var(--oshi-accent);
  outline-offset: 3px;
}

.oshi-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.oshi-button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--oshi-accent), #9b77e4);
}

.oshi-button-primary:hover,
.oshi-button-primary:focus-visible,
.oshi-button-x:hover,
.oshi-button-x:focus-visible {
  color: #fff;
}

.oshi-button-soft {
  color: #225a82;
  background: #edf8ff;
  border-color: #cfe7f8;
}

.oshi-button-ghost {
  color: #384a66;
  background: #fff;
  border-color: #dbe4f0;
}

.oshi-button-x {
  color: #fff;
  background: #111827;
}

.oshi-result-card {
  text-align: center;
}

.oshi-result-label {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 10px;
  color: var(--oshi-accent-strong);
  background: #eef2ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.oshi-result-card h2 {
  font-size: clamp(25px, 6vw, 34px);
  line-height: 1.35;
}

.oshi-result-description {
  margin: 12px auto 0;
  max-width: 600px;
  color: #40506a;
  font-size: 15px;
  text-align: left;
}

.oshi-tags-block {
  margin-top: 18px;
  padding: 14px;
  background: #fbfcff;
  border: 1px solid #e2e9f4;
  border-radius: 12px;
  text-align: left;
}

.oshi-tags-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.oshi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oshi-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  color: #26445f;
  background: #fff;
  border: 1px solid #dfe7f2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.oshi-tags a:hover,
.oshi-tags a:focus-visible {
  color: var(--oshi-accent-strong);
  text-decoration: none;
}

.oshi-result-actions {
  margin-top: 16px;
}

.oshi-share-guide {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  background: #fff9fd;
  border: 1px solid #f0ddea;
  border-radius: 12px;
  text-align: center;
}

.oshi-share-guide p {
  margin: 0;
  color: #40506a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.oshi-share-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oshi-share-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: #4459c8;
  background: #fff;
  border: 1px solid #e2e9f4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.oshi-share-search {
  justify-self: center;
  width: min(100%, 280px);
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .oshi-page {
    padding: 24px 12px 42px;
  }

  .oshi-card {
    padding: 16px;
  }

  .oshi-question-card h2 {
    font-size: 20px;
  }

  .oshi-nav-actions,
  .oshi-result-actions {
    grid-template-columns: 1fr;
  }

  .oshi-result-description {
    font-size: 14px;
  }
}
