:root {
      --ink: #4a264c;
      --muted: #8c6d93;
      --pink: #ff4f9a;
      --pink-deep: #e83985;
      --pink-soft: #ffe7f3;
      --violet: #a66cff;
      --violet-soft: #f0e5ff;
      --paper: rgba(255, 255, 255, 0.9);
      --line: rgba(255, 95, 171, 0.24);
      --shadow: 0 30px 76px rgba(178, 76, 148, 0.2);
      --hand-font: "Yomogi", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
      font-family: "Zen Maru Gothic", system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      color: var(--ink);
      background:
        radial-gradient(circle at 18% 9%, rgba(255, 255, 255, 0.9) 0 72px, transparent 73px),
        radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.78) 0 52px, transparent 53px),
        radial-gradient(circle at 16% 78%, rgba(255, 255, 255, 0.52) 0 110px, transparent 112px),
        linear-gradient(135deg, #ffe3f3 0%, #ffd1e9 38%, #eee3ff 72%, #f7dcff 100%);
      min-height: 100vh;
      overflow-x: hidden;
    }

    body::selection {
      color: #fff;
      background: var(--pink);
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      inset: auto;
      border-radius: 999px;
      pointer-events: none;
      filter: blur(1px);
      opacity: 0.58;
      z-index: -1;
    }

    body::before {
      width: 420px;
      height: 420px;
      left: -120px;
      top: 90px;
      background:
        radial-gradient(circle, rgba(255,255,255,.72), transparent 58%),
        radial-gradient(circle at 40% 60%, rgba(255,82,165,.22), transparent 48%);
    }

    body::after {
      width: 520px;
      height: 520px;
      right: -170px;
      bottom: 80px;
      background:
        radial-gradient(circle, rgba(255,255,255,.54), transparent 58%),
        radial-gradient(circle at 60% 30%, rgba(151,94,255,.28), transparent 48%);
    }

    a { color: inherit; }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    main {
      width: min(1120px, calc(100% - 26px));
      margin: 0 auto;
      padding: 28px 0 56px;
    }

    .hero {
      display: block;
      min-height: auto;
      text-align: center;
    }

    .hero-copy {
      position: relative;
      z-index: 1;
      max-width: 1000px;
      margin: 0 auto 22px;
    }

    .hero-logo {
      display: block;
      width: min(820px, 98%);
      height: auto;
      margin: 0 auto;
      filter: drop-shadow(0 26px 34px rgba(159, 55, 136, .18));
    }

    .hero-lead {
      margin: 4px auto 0;
      max-width: 760px;
      color: #4e3152;
      font-size: clamp(18px, 2.3vw, 26px);
      line-height: 1.9;
      font-weight: 900;
      letter-spacing: .06em;
      text-shadow: 0 2px 0 rgba(255,255,255,.75);
      font-family: var(--hand-font);
    }

    .hero-lead strong {
      color: var(--pink-deep);
    }

    .start-card,
    .question-card,
    .result-card,
    .info-card {
      border: 1px solid rgba(255, 255, 255, 0.88);
      border-radius: 42px;
      background: var(--paper);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }

    .start-card {
      position: relative;
      width: min(980px, 100%);
      margin: 0 auto;
      padding: clamp(28px, 5vw, 58px);
      border: 4px solid rgba(255, 230, 246, 0.92);
      box-shadow:
        0 28px 75px rgba(171, 77, 150, .2),
        inset 0 0 0 1px rgba(255, 143, 202, .35);
    }

    .field-label {
      display: block;
      margin: 0 0 8px;
      color: #5f3461;
      font-size: clamp(20px, 3vw, 32px);
      font-weight: 900;
      letter-spacing: 0.12em;
      text-align: center;
      font-family: var(--hand-font);
    }

    .field-help {
      margin: 0 0 22px;
      color: #8d7293;
      font-size: 14px;
      font-weight: 800;
      line-height: 1.7;
      text-align: center;
    }

    .oshi-input {
      width: 100%;
      height: clamp(64px, 8vw, 92px);
      border: 3px solid rgba(255, 118, 185, 0.55);
      border-radius: 999px;
      padding: 0 clamp(20px, 4vw, 42px);
      color: var(--ink);
      background:
        linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.86)),
        radial-gradient(circle at 5% 50%, rgba(255, 207, 231, .6), transparent 18%);
      font: 900 clamp(26px, 4.4vw, 40px)/1.3 inherit;
      text-align: center;
      outline: none;
      box-shadow:
        inset 0 4px 10px rgba(255,255,255,.9),
        0 14px 28px rgba(232, 74, 154, .12);
    }

    .oshi-input::placeholder {
      color: rgba(165, 104, 135, .42);
    }

    .oshi-input:focus {
      border-color: rgba(255, 77, 153, 0.9);
      box-shadow:
        0 0 0 6px rgba(255, 108, 181, 0.13),
        0 18px 35px rgba(232, 74, 154, .16);
    }

    .divider {
      display: flex;
      align-items: center;
      gap: 16px;
      margin: 30px 0 24px;
      color: #f47ab4;
      font-weight: 900;
    }

    .divider::before,
    .divider::after {
      content: "";
      flex: 1;
      border-top: 3px dotted rgba(255, 151, 207, .52);
    }

    .fandom-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin: 18px 0 28px;
    }

    .fandom-button {
      position: relative;
      display: grid;
      grid-template-columns: 78px 1fr;
      gap: 18px;
      align-items: center;
      min-height: 124px;
      border: 2px solid rgba(195, 139, 227, 0.34);
      border-radius: 24px;
      padding: 18px;
      color: #67475d;
      background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 254, 0.92)),
        radial-gradient(circle at 12% 50%, rgba(236, 205, 255, 0.72), transparent 26%);
      cursor: pointer;
      text-align: left;
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .fandom-button.is-wide {
      grid-column: 1 / -1;
      max-width: 760px;
      justify-self: center;
      width: 100%;
    }

    .fandom-icon {
      display: grid;
      place-items: center;
      width: 72px;
      height: 72px;
      border-radius: 50%;
      color: #9a64dc;
      background: radial-gradient(circle at 35% 28%, #fff, #f2dfff 62%, #e8d3ff 100%);
      box-shadow: inset 0 2px 0 rgba(255,255,255,.9), 0 10px 18px rgba(159, 101, 207, .13);
      font-size: 30px;
      font-weight: 900;
    }

    .fandom-button:hover,
    .fandom-button[aria-pressed="true"] {
      transform: translateY(-2px);
      border-color: rgba(255, 69, 150, 0.82);
      box-shadow: 0 18px 36px rgba(203, 61, 142, 0.18);
    }

    .fandom-button[aria-pressed="true"] {
      background: linear-gradient(145deg, #fff, #fff3fa 46%, #ffe1f0 100%);
    }

    .fandom-button[aria-pressed="true"]::after {
      content: "✓";
      position: absolute;
      right: -12px;
      top: -12px;
      display: grid;
      place-items: center;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      color: #fff;
      background: linear-gradient(135deg, #ff65a8, #f33086);
      box-shadow: 0 8px 18px rgba(221, 47, 128, .26), 0 0 0 5px rgba(255,255,255,.8);
      font-size: 26px;
      font-weight: 1000;
    }

    .fandom-button b {
      display: block;
      margin: 0 0 6px;
      color: #4b2b50;
      font-size: clamp(22px, 3vw, 32px);
      line-height: 1.1;
    }

    .fandom-button span {
      display: block;
      color: #9c778d;
      font-size: clamp(13px, 1.8vw, 17px);
      font-weight: 800;
      line-height: 1.5;
    }

    .fandom-button .fandom-icon {
      display: grid;
      color: #9a64dc;
    }

    .primary-button,
    .ghost-button,
    .share-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 60px;
      border: 0;
      border-radius: 999px;
      padding: 14px 22px;
      font: 900 16px/1.2 inherit;
      text-decoration: none;
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    }

    .primary-button {
      width: 100%;
      color: #fff;
      min-height: clamp(66px, 8vw, 88px);
      border: 3px solid rgba(255,255,255,.62);
      background:
        linear-gradient(180deg, rgba(255,255,255,.24), transparent 42%),
        linear-gradient(135deg, #ff6ab1, #f3368b 62%, #d72587);
      box-shadow:
        0 14px 0 #c81f73,
        0 26px 42px rgba(206, 39, 128, 0.24);
      font-size: clamp(24px, 4vw, 40px);
      letter-spacing: .14em;
      text-shadow: 0 2px 0 rgba(176, 39, 111, .35);
    }

    .primary-button:disabled {
      cursor: not-allowed;
      opacity: 0.45;
      transform: none;
      box-shadow: none;
      background: #d7b7c8;
    }

    .primary-button:not(:disabled):hover,
    .share-button:hover,
    .ghost-button:hover {
      transform: translateY(-2px);
    }

    .mini-note {
      margin: 22px 0 0;
      color: #967487;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.7;
      text-align: center;
    }

    .screen { display: none; }
    .screen.is-active { display: block; }

    .question-wrap,
    .result-wrap,
    .info-wrap {
      width: min(780px, 100%);
      margin: 42px auto 0;
    }

    .question-card {
      padding: clamp(24px, 5vw, 48px);
      border: 4px solid rgba(255, 230, 246, 0.9);
    }

    .progress-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 26px;
      color: #9a5c83;
      font-size: 14px;
      font-weight: 900;
    }

    .progress-track {
      flex: 1;
      height: 11px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(255, 219, 238, 0.6);
    }

    .progress-bar {
      height: 100%;
      width: 0;
      border-radius: inherit;
      background: linear-gradient(90deg, #ff63aa, #c17cff);
      transition: width 0.35s ease;
    }

    .question-title {
      margin: 0 0 20px;
      font-size: clamp(26px, 5vw, 42px);
      line-height: 1.45;
      text-align: center;
      letter-spacing: -0.02em;
    }

    .options {
      display: grid;
      gap: 14px;
    }

    .option-button {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 14px;
      align-items: center;
      width: 100%;
      border: 2px solid rgba(255, 140, 194, 0.26);
      border-radius: 22px;
      padding: 16px;
      color: #4d3948;
      background: rgba(255, 255, 255, 0.88);
      text-align: left;
      font: 850 16px/1.75 inherit;
      cursor: pointer;
      box-shadow: 0 12px 24px rgba(130, 72, 113, 0.08);
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    }

    .option-button:hover,
    .option-button.is-picked {
      transform: translateY(-2px);
      border-color: rgba(255, 92, 167, 0.82);
      background: #fff;
    }

    .option-mark {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      color: #fff;
      background: linear-gradient(135deg, #ff61a8, #ff9acb);
      font-weight: 900;
      box-shadow: 0 8px 16px rgba(255, 92, 167, 0.24);
    }

    .result-card {
      overflow: hidden;
      padding: clamp(22px, 4vw, 38px);
      border: 4px solid rgba(255, 230, 246, 0.9);
    }

    .canvas-shell {
      border-radius: 28px;
      padding: 12px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 219, 237, 0.88), rgba(235, 222, 255, 0.86));
      border: 1px solid rgba(255, 255, 255, 0.7);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    canvas {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 22px;
      background: #fff;
    }

    .result-heading {
      margin: 28px 0 10px;
      text-align: center;
    }

    .result-heading .label {
      color: var(--pink-deep);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.18em;
    }

    .result-percent {
      margin: 8px 0 0;
      font-size: clamp(68px, 17vw, 138px);
      line-height: 0.9;
      font-weight: 1000;
      color: var(--pink);
      text-shadow: 0 5px 0 #fff, 0 16px 34px rgba(177, 58, 130, 0.22);
    }

    .result-title {
      margin: 12px 0 0;
      font-size: clamp(24px, 6vw, 42px);
      line-height: 1.35;
      letter-spacing: -0.03em;
    }

    .special-label {
      display: inline-flex;
      margin: 16px auto 0;
      padding: 9px 14px;
      border-radius: 999px;
      color: #8a3d68;
      background: rgba(255, 232, 242, 0.94);
      border: 1px solid rgba(255, 92, 167, 0.25);
      font-size: 13px;
      font-weight: 900;
    }

    .result-text {
      margin: 18px auto 0;
      max-width: 620px;
      color: #66505d;
      font-size: 16px;
      font-weight: 700;
      line-height: 2;
      text-align: center;
    }

    .tips-box {
      margin: 26px 0 0;
      padding: 18px;
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.78);
      border: 1px solid var(--line);
    }

    .tips-box h2 {
      margin: 0 0 14px;
      font-size: 18px;
    }

    .tips-list {
      display: grid;
      gap: 10px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .tips-list li {
      position: relative;
      padding: 12px 14px 12px 36px;
      border-radius: 16px;
      color: #58404f;
      background: rgba(255, 255, 255, 0.72);
      font-weight: 700;
      line-height: 1.75;
    }

    .tips-list li::before {
      content: "";
      position: absolute;
      left: 15px;
      top: 22px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--pink);
    }

    .share-area {
      margin: 28px 0 0;
      text-align: center;
    }

    .share-title {
      margin: 0 0 13px;
      color: #8e6079;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.09em;
    }

    .share-buttons,
    .result-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }

    .share-button {
      color: #fff;
      background: #111;
      min-width: 160px;
    }

    .share-button.threads {
      color: #2f2630;
      background: #fff;
      border: 1px solid rgba(95, 61, 81, 0.16);
    }

    .ghost-button {
      color: #604158;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(255, 92, 167, 0.22);
    }

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

    .info-wrap {
      display: grid;
      gap: 18px;
      margin-top: 48px;
    }

    .info-card {
      padding: clamp(20px, 4vw, 30px);
    }

    .info-card h2 {
      margin: 0 0 12px;
      font-size: clamp(22px, 4vw, 30px);
    }

    .info-card p,
    .info-card li {
      color: #655160;
      font-size: 15px;
      font-weight: 650;
      line-height: 1.9;
    }

    .info-card ul {
      margin: 0;
      padding-left: 1.3em;
    }

    .site-footer {
      padding: 34px 18px 46px;
      color: #826b7c;
      text-align: center;
      background: rgba(255, 255, 255, 0.48);
      border-top: 1px solid rgba(255, 255, 255, 0.7);
    }

    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
      margin: 0 0 16px;
      font-size: 13px;
      font-weight: 800;
    }

    .footer-nav a { text-decoration: none; }

    .disclaimer {
      max-width: 760px;
      margin: 0 auto 14px;
      font-size: 12px;
      line-height: 1.8;
    }

    @media (max-width: 780px) {
      html,
      body {
        max-width: 100%;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
      }

      .hero {
        min-height: auto;
      }

      .oshi-input {
        height: 62px;
        font-size: 16px;
        line-height: 1.3;
      }

      .fandom-grid {
        grid-template-columns: 1fr;
      }

      .fandom-button {
        min-height: 104px;
        grid-template-columns: 64px 1fr;
      }

      .fandom-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
      }

      .option-button {
        grid-template-columns: 38px 1fr;
        padding: 12px;
      }

      .option-mark {
        width: 38px;
        height: 38px;
      }

      .share-buttons,
      .result-actions {
        flex-direction: column;
      }

      .share-button,
      .ghost-button {
        width: 100%;
      }
    }

.tcs-static{position:relative;z-index:2;max-width:680px;margin:26px auto;padding:0 16px}
  .tcs-card{background:rgba(255,255,255,.94);border:1px solid #b05fc944;border-radius:18px;padding:20px 18px;margin:18px 0;box-shadow:0 8px 22px rgba(60,40,110,.10)}
  .tcs-card h2{margin:0 0 10px;color:#2b2735;font-size:1.25rem}
  .tcs-card h3{color:#b05fc9;border-bottom:1px solid #b05fc944;padding-bottom:6px;margin:24px 0 8px;font-size:1.05rem}
  .tcs-card p,.tcs-card li,.tcs-card dd{line-height:1.92;font-size:.94rem;color:#2b2735;margin:6px 0}
  .tcs-axes{display:grid;gap:12px;margin:14px 0}
  .tcs-axes dt{font-weight:800;color:#b05fc9;margin-bottom:2px}
  .tcs-axes dd{margin:0;color:#6f687e}
  .tcs-item{border:1px solid #b05fc944;border-radius:14px;padding:14px 16px;margin:12px 0;background:rgba(255,255,255,.75)}
  .tcs-item h4{margin:0 0 4px;font-size:1.03rem;color:#2b2735;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
  .tcs-sub{font-size:.72rem;font-weight:700;color:#6f687e;letter-spacing:.05em}
  .tcs-catch{font-weight:700;color:#b05fc9;margin:2px 0 8px}
  .tcs-label{font-weight:700;margin:8px 0 2px;color:#2b2735}
  .tcs-item ul{margin:0;padding-left:1.2em;color:#6f687e}
  .tcs-tags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;padding:0;list-style:none}
  .tcs-tags li,.tcs-tag{font-size:.74rem;font-weight:700;color:#b05fc9;border:1px solid currentColor;border-radius:999px;padding:2px 10px}
  .tcs-note{color:#6f687e;font-size:.86rem;border-top:1px dashed #b05fc944;padding-top:8px;margin-top:10px}
  .tcs-column p{line-height:2}
.tc-diagnosis-shell{position:relative;z-index:2;width:min(680px,calc(100% - 32px));margin:32px auto 64px}
.tc-diagnosis-card{background:#fff;border:1px solid rgba(20,20,40,.12);border-radius:20px;padding:24px 20px;box-shadow:0 16px 40px rgba(20,20,40,.12)}
.tc-diagnosis-progress{height:10px;border-radius:999px;background:rgba(120,120,140,.18);overflow:hidden}.tc-diagnosis-progress>i{display:block;height:100%;width:0;background:var(--accent,#765bd8);transition:width .2s ease}
.tc-diagnosis-count{text-align:right;margin:8px 0 18px;font-weight:700}.tc-diagnosis-question{font-size:clamp(19px,5vw,26px);line-height:1.6;margin:0 0 20px;white-space:pre-line}
.tc-diagnosis-image{display:none;width:100%;max-height:300px;object-fit:cover;border-radius:12px;margin:0 0 18px}.tc-diagnosis-image[src]{display:block}
.tc-diagnosis-answer{display:flex;width:100%;min-height:52px;align-items:center;text-align:left;padding:14px 16px;margin:10px 0;border:1px solid rgba(20,20,40,.16);border-radius:12px;background:#fff;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.tc-diagnosis-answer:hover,.tc-diagnosis-answer:focus-visible{border-color:var(--accent,#765bd8);outline:3px solid color-mix(in srgb,var(--accent,#765bd8) 22%,transparent)}
.tc-diagnosis-back{min-height:44px;margin-top:12px;border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer}
.tc-result-card h1{font-size:clamp(25px,7vw,38px);line-height:1.45;margin:8px 0}.tc-result-catch{font-size:18px;font-weight:700}.tc-result-section{margin:20px 0;padding-top:18px;border-top:1px solid rgba(20,20,40,.12)}
.tc-result-section h2{font-size:18px;margin:0 0 8px}.tc-result-section p{white-space:pre-line}.tc-result-section ul{padding-left:1.3em}.tc-result-section li+li{margin-top:6px}
.tc-result-visual{display:block;width:min(220px,70%);height:auto;margin:0 auto 14px}.tc-result-number{display:grid;place-items:center;width:130px;aspect-ratio:1;margin:0 auto 14px;border-radius:50%;background:var(--accent,#765bd8);color:#fff;font-size:44px;font-weight:900}
.tc-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.tc-result-actions a,.tc-result-actions button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;padding:10px 16px;border:1px solid rgba(20,20,40,.18);border-radius:999px;background:#fff;color:inherit;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}.tc-result-actions .primary{background:#17171d;color:#fff}
@media(max-width:480px){.tc-diagnosis-shell{width:min(100% - 20px,680px);margin-top:20px}.tc-diagnosis-card{padding:20px 16px;border-radius:16px}}
@media(prefers-reduced-motion:reduce){.tc-diagnosis-progress>i{transition:none}}

.tc-compat-start{display:flex;width:min(420px,calc(100% - 32px));min-height:52px;align-items:center;justify-content:center;margin:24px auto;padding:12px 20px;border-radius:999px;background:#17171d;color:#fff;font-weight:700;text-decoration:none;position:relative;z-index:10}
