/* ===================================
   確定申告チェッカー v1.0
   hukugyo-guide.com
   =================================== */

#tax-check-app {
  --tc-primary: #059669;
  --tc-primary-dark: #047857;
  --tc-gradient: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  --tc-bg: #f0fdf4;
  --tc-card: #ffffff;
  --tc-text: #1e293b;
  --tc-text-sub: #64748b;
  --tc-border: #e2e8f0;
  --tc-radius: 16px;
  --tc-radius-sm: 10px;
  --tc-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --tc-warn: #dc2626;
  --tc-safe: #16a34a;
}

#tax-check-app {
  max-width: 560px;
  margin: 32px auto;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--tc-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
#tax-check-app *, #tax-check-app *::before, #tax-check-app *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#tax-check-app .tc-header {
  background: var(--tc-gradient);
  color: #fff;
  text-align: center;
  padding: 28px 20px 24px;
  border-radius: var(--tc-radius) var(--tc-radius) 0 0;
}
#tax-check-app .tc-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
#tax-check-app .tc-header-sub {
  font-size: 0.85rem;
  opacity: 0.85;
}

#tax-check-app .tc-body {
  background: var(--tc-card);
  border-radius: 0 0 var(--tc-radius) var(--tc-radius);
  box-shadow: var(--tc-shadow);
  padding: 28px 24px 32px;
}

/* Form */
#tax-check-app .tc-form-group {
  margin-bottom: 22px;
}
#tax-check-app .tc-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tc-text);
  margin-bottom: 6px;
}
#tax-check-app .tc-label-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--tc-text-sub);
}
#tax-check-app .tc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
#tax-check-app .tc-input {
  width: 100%;
  padding: 12px 50px 12px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid var(--tc-border);
  border-radius: var(--tc-radius-sm);
  outline: none;
  transition: border-color 0.2s;
  color: var(--tc-text);
  font-family: inherit;
  -moz-appearance: textfield;
}
#tax-check-app .tc-input::-webkit-outer-spin-button,
#tax-check-app .tc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#tax-check-app .tc-input:focus {
  border-color: var(--tc-primary);
}
#tax-check-app .tc-input-unit {
  position: absolute;
  right: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tc-text-sub);
}

/* Radio group */
#tax-check-app .tc-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#tax-check-app .tc-radio-item {
  flex: 1;
  min-width: 100px;
}
#tax-check-app .tc-radio-item input {
  display: none;
}
#tax-check-app .tc-radio-label {
  display: block;
  text-align: center;
  padding: 10px 14px;
  border: 2px solid var(--tc-border);
  border-radius: var(--tc-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  color: var(--tc-text);
}
#tax-check-app .tc-radio-item input:checked + .tc-radio-label {
  border-color: var(--tc-primary);
  background: #ecfdf5;
  color: var(--tc-primary-dark);
}

/* Submit */
#tax-check-app .tc-submit-btn {
  display: block;
  width: 100%;
  background: var(--tc-gradient);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: var(--tc-radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
#tax-check-app .tc-submit-btn:hover {
  opacity: 0.9;
}

/* Result */
#tax-check-app .tc-result {
  animation: tcFadeUp 0.5s ease;
}
@keyframes tcFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

#tax-check-app .tc-result-badge {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--tc-radius);
  margin-bottom: 20px;
}
#tax-check-app .tc-result-badge.required {
  background: #fef2f2;
  border: 2px solid #fecaca;
}
#tax-check-app .tc-result-badge.not-required {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
}
#tax-check-app .tc-result-badge.maybe {
  background: #fffbeb;
  border: 2px solid #fde68a;
}
#tax-check-app .tc-result-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
#tax-check-app .tc-result-verdict {
  font-size: 1.3rem;
  font-weight: 800;
}
#tax-check-app .tc-result-badge.required .tc-result-verdict { color: var(--tc-warn); }
#tax-check-app .tc-result-badge.not-required .tc-result-verdict { color: var(--tc-safe); }
#tax-check-app .tc-result-badge.maybe .tc-result-verdict { color: #d97706; }

/* Detail card */
#tax-check-app .tc-detail-card {
  background: var(--tc-bg);
  border-radius: var(--tc-radius-sm);
  padding: 18px;
  margin-bottom: 16px;
}
#tax-check-app .tc-detail-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tc-primary-dark);
  margin-bottom: 10px;
}
#tax-check-app .tc-detail-list {
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.7;
}
#tax-check-app .tc-detail-list li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
}
#tax-check-app .tc-detail-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--tc-primary);
  font-weight: 700;
}

/* Summary table */
#tax-check-app .tc-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
#tax-check-app .tc-summary-table th, #tax-check-app .tc-summary-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--tc-border);
}
#tax-check-app .tc-summary-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--tc-text-sub);
  width: 140px;
}
#tax-check-app .tc-summary-table td {
  font-weight: 600;
}

/* CTA */
#tax-check-app .tc-cta-box {
  background: var(--tc-gradient);
  border-radius: var(--tc-radius-sm);
  padding: 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 16px;
}
#tax-check-app .tc-cta-text {
  font-size: 0.92rem;
  margin-bottom: 12px;
  line-height: 1.6;
}
#tax-check-app .tc-cta-link {
  display: inline-block;
  background: #fff;
  color: var(--tc-primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--tc-radius-sm);
  text-decoration: none;
  transition: opacity 0.18s;
}
#tax-check-app .tc-cta-link:hover {
  opacity: 0.9;
  color: var(--tc-primary-dark);
}

/* Disclaimer */
#tax-check-app .tc-disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--tc-radius-sm);
  padding: 14px;
  font-size: 0.78rem;
  color: #92400e;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Retry */
#tax-check-app .tc-retry-btn {
  display: block;
  width: 100%;
  background: none;
  border: 2px solid var(--tc-border);
  color: var(--tc-text-sub);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--tc-radius-sm);
  cursor: pointer;
  transition: all 0.18s;
}
#tax-check-app .tc-retry-btn:hover {
  border-color: var(--tc-primary);
  color: var(--tc-primary);
}

/* Source link */
#tax-check-app .tc-source {
  text-align: center;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--tc-text-sub);
}
#tax-check-app .tc-source a {
  color: var(--tc-primary);
}

@media (max-width: 600px) {
  #tax-check-app { margin: 16px 8px; }
  #tax-check-app .tc-body { padding: 20px 16px 24px; }
  #tax-check-app .tc-radio-group { flex-direction: column; }
}
