/* ══════════════════════════════════════════
   専門職ツール共通CSS
   memo / checklist / simulator / tasting / compare
══════════════════════════════════════════ */

:root {
  --t-primary: #1A6B5A;
  --t-primary-dark: #144F42;
  --t-primary-light: #E8F4F1;
  --t-primary-pale: #F0F8F6;
  --t-navy: #144F42;
  --t-cream: #F8FAFC;
  --t-border: #E5E7EB;
  --t-text: #111827;
  --t-text-light: #666;
  --t-danger: #C0533A;
  --t-warn: #92400E;
  --t-warn-bg: #FEF3C7;
}

/* ── ヒーローコンパクト ── */
.tool-hero {
  background: linear-gradient(150deg, #fff, var(--t-primary-light), #fef0e6);
  padding: 32px 20px 28px;
  text-align: center;
  border-bottom: 1px solid var(--t-border);
}
.tool-hero h1 {
  font-weight: 700;
  font-size: clamp(1.1rem, 3.5vw, 1.55rem);
  color: var(--t-navy);
  line-height: 1.6;
  margin-bottom: 8px;
}
.tool-hero p {
  font-size: 0.95rem;
  color: var(--t-text-light);
  max-width: 540px;
  margin: 0 auto;
}

/* ── メインコンテンツ領域 ── */
.tool-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

/* ── カード / フォーム ── */
.tool-card {
  background: white;
  border: 1.5px solid var(--t-border);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 20px;
}
.tool-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--t-navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-card-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--t-primary);
  border-radius: 2px;
}

/* ── フォーム要素 ── */
.tool-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--t-navy);
  margin-bottom: 6px;
}
.tool-input,
.tool-select,
.tool-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--t-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  color: var(--t-text);
  transition: border-color 0.15s;
}
.tool-input:focus,
.tool-select:focus,
.tool-textarea:focus {
  outline: none;
  border-color: var(--t-primary);
  box-shadow: 0 0 0 3px rgba(26, 107, 90, 0.12);
}
.tool-textarea { resize: vertical; min-height: 60px; }

/* ── ボタン ── */
.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
  white-space: nowrap;
}
.tool-btn--primary {
  background: var(--t-primary);
  color: white;
}
.tool-btn--primary:hover {
  background: var(--t-primary-dark);
  transform: translateY(-1px);
}
.tool-btn--secondary {
  background: white;
  color: var(--t-primary);
  border: 1.5px solid var(--t-primary);
}
.tool-btn--secondary:hover {
  background: var(--t-primary-light);
}
.tool-btn--danger {
  background: white;
  color: var(--t-danger);
  border: 1.5px solid var(--t-danger);
}
.tool-btn--danger:hover {
  background: #FEF2F2;
}
.tool-btn--small {
  padding: 8px 16px;
  font-size: 0.82rem;
}
.tool-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ── ステップ表示 ── */
.tool-step {
  display: inline-block;
  background: var(--t-primary);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* ── 結果カード ── */
.tool-result {
  background: white;
  border: 2px solid var(--t-primary);
  border-radius: 16px;
  overflow: hidden;
}
.tool-result-header {
  background: var(--t-primary-light);
  padding: 16px 24px;
  border-bottom: 1px solid var(--t-border);
}
.tool-result-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--t-navy);
}
.tool-result-body {
  padding: 20px 24px;
}

/* ── テーブル ── */
.tool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tool-table th {
  background: var(--t-primary-light);
  color: var(--t-navy);
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--t-primary);
}
.tool-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--t-border);
}

/* ── ポイントボックス ── */
.tool-point {
  background: var(--t-primary-light);
  border-left: 4px solid var(--t-primary);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--t-text);
}

/* ── 注記 ── */
.tool-note {
  font-size: 0.82rem;
  color: var(--t-text-light);
  line-height: 1.7;
  padding: 12px 16px;
  background: #F9FAFB;
  border-radius: 8px;
  margin-top: 16px;
}

/* ── ツール間リンク ── */
.tool-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tool-links a {
  font-size: 0.88rem;
  color: var(--t-primary);
  background: var(--t-primary-light);
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.15s;
}
.tool-links a:hover {
  background: #D1EBE5;
}

/* ── ラジオグループ ── */
.tool-radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--t-text);
  padding: 8px 16px;
  border: 1.5px solid var(--t-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.tool-radio-group label:has(input:checked) {
  border-color: var(--t-primary);
  background: var(--t-primary-light);
  color: var(--t-primary-dark);
}
.tool-radio-group input[type="radio"] {
  accent-color: var(--t-primary);
  width: 16px;
  height: 16px;
}

/* ── レスポンシブ ── */
@media (max-width: 520px) {
  .tool-hero { padding: 24px 16px 20px; }
  .tool-wrap { padding: 20px 16px 36px; }
  .tool-card { padding: 20px 16px; }
}

/* ── 印刷 ── */
@media print {
  .tool-hero, .no-print, .tool-btn, .tool-links { display: none !important; }
  .tool-card { border: 1px solid #ddd; box-shadow: none; }
}
