body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafafa;
  color: #111827;
  overflow-x: hidden;
}

/* ロゴ */
.logo {
  text-align: center;
}

.logo img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}

main {
  max-width: 480px;
  margin: 24px auto;
  padding: 20px;
  overflow-x: hidden;
}


h1 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.sub {
  color: #6b7280;
  margin-bottom: 24px;
}

.label {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #374151;
}

/* ラジオカード */
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.radio-card {
  position: relative;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  font-weight: 600;
}

.radio-card:hover {
  border-color: #93c5fd;
}

/* ボタン */
button {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

/* 結果 */
#result-area {
  margin-top: 32px;
}

pre {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  white-space: pre-wrap;
  font-size: 0.95rem;
}

/* コピー */
#copy {
  margin-top: 12px;
  background: #f3f4f6;
  color: #111827;
}

#copied {
  margin-top: 8px;
  color: #16a34a;
  font-size: 0.85rem;
}

/* 有料 */
#paid-area {
  margin-top: 36px;
}

.paid-lead {
  font-weight: 600;
}

.paid-btn {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

.hidden {
  display: none;
}


    h1 {
      font-size: 1.4rem;
      margin-bottom: 12px;
    }

    .section {
      margin-bottom: 24px;
    }

    .label {
      font-size: 0.9rem;
      font-weight: 600;
      margin-bottom: 8px;
      display: block;
    }

    .radio-group {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 10px;
    }

    .radio-card {
      border: 1px solid #d1d5db;
      border-radius: 10px;
      padding: 10px;
      text-align: center;
      cursor: pointer;
      background: #fff;
      position: relative;
      transition: all 0.15s ease;
    }

    .radio-card:hover {
      border-color: #6366f1;
    }

    .radio-card input {
      display: none;
    }

    .radio-card span {
      font-size: 0.9rem;
    }

    .radio-card input:checked + span {
      font-weight: 700;
      color: #4f46e5;
    }

    /* 有料限定（非活性） */
    .premium {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .premium::after {
      content: "有料";
      position: absolute;
      top: 6px;
      right: 8px;
      font-size: 0.7rem;
      background: #111827;
      color: #fff;
      padding: 2px 6px;
      border-radius: 8px;
    }

    /* 有料ユーザーは有効化 */
    .paid .premium {
      opacity: 1;
      cursor: pointer;
    }

    .paid .premium::after {
      content: "";
    }

    button {
      width: 100%;
      padding: 12px;
      border-radius: 12px;
      border: none;
      font-size: 1rem;
      font-weight: 600;
      background: #4f46e5;
      color: #fff;
      cursor: pointer;
    }

    button:hover {
      background: #4338ca;
    }

    #result-area {
      margin-top: 24px;
      padding: 16px;
      border-radius: 12px;
      background: #fff;
      border: 1px solid #e5e7eb;
    }

    #result {
      white-space: pre-wrap;
      line-height: 1.6;
    }

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

    .actions button {
      flex: 1;
      background: #e5e7eb;
      color: #111827;
    }

    .actions button:hover {
      background: #d1d5db;
    }

    #copied {
      margin-top: 8px;
      font-size: 0.8rem;
      color: #16a34a;
    }

    .hidden {
      display: none;
    }

    .site-footer {
  margin-top: 48px;
  padding: 24px 16px;
  background: #f7f7f7;
  color: #555;
  font-size: 12px;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
}

.footer-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.footer-text {
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer-copy {
  margin-top: 12px;
  color: #888;
  font-size: 11px;
}
