/* ツール下層ページ専用（ヘッダー／フッターは yt-header.css / yt-footer.css）
 * ブレイクポイントは 1024 / 768 のみ。セレクタは1定義。
 */

body.yt-tool-body {
  --yt-page-max: 1200px;
  background: #f8fcff;
}

/* 個別ツールページ（診断・計算・生成）は全ツール共通で広め。正本の幅 = /generator/css-slider/ */
body.yt-tool-body.yt-tool-single {
  --yt-page-max: 1480px;
}

body.yt-tool-body .inbody {
  max-width: none;
  width: min(calc(100% - 44px), var(--yt-page-max));
  margin-inline: auto;
  padding: 0 0 48px;
  background: transparent;
}

body.yt-tool-body .right_content,
body.yt-tool-body .left_content,
body.yt-tool-body .one_content {
  width: 100%;
  max-width: none;
  float: none;
}

body.yt-tool-body #sidebar {
  display: none;
}

.yt-tool-page {
  max-width: var(--yt-page-max, 1200px);
  margin: 0 auto;
  padding: 8px 0 24px;
  color: var(--ink, #0b1b3b);
}

/* :where で specificity 0 → 本文リンクは content.css が勝つ（ボタン系は除外） */
.yt-tool-page :where(a:not(.yt-articles-all):not(.yt-text-link):not(.yt-tool-pill):not(.button):not(.yt-btn)) {
  color: inherit;
}

.yt-tool-page a.button,
.yt-tool-page a.yt-btn,
.yt-tool-page .button,
.yt-tool-page .yt-btn {
  color: #fff;
}

/* —— Hero —— */
.yt-tool-hero {
  margin: 0 0 22px;
  padding: 8px 0 4px;
}

.yt-tool-hero-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
}

.yt-tool-hero-icon {
  flex: none;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.yt-tool-hero-icon img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.yt-tool-hero-text {
  min-width: 0;
}

.yt-tool-hero h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #0b1b3b);
  line-height: 1.35;
}

.yt-tool-hero-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #35536e;
}

.yt-tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yt-tool-pill {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  color: #17618b;
  border: 1px solid #cfe3f1;
  text-decoration: none;
  line-height: 1.3;
}

a.yt-tool-pill:hover,
a.yt-tool-pill:focus-visible {
  filter: brightness(1.06);
}

.yt-tool-pill.is-kind {
  background: #087bbd;
  color: #fff;
  border-color: #087bbd;
}

.yt-tool-pill.is-topic {
  background: #eef6fb;
  color: #1d527c;
  border-color: #cfe3f1;
}

.yt-tool-pill.is-pr {
  background: #eef1f4;
  color: #7a8a99;
  border-color: #d5dde5;
  cursor: default;
  font-weight: 650;
  letter-spacing: 0.04em;
}

/* —— Two columns —— */
.yt-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  position: relative;
}

.yt-tool-guide,
.yt-tool-details {
  min-width: 0;
  background: #fff;
  border: 1px solid #cfe3f1;
  border-radius: 17px;
  box-shadow: 0 6px 18px #1b70a01c;
  padding: 24px;
}

.yt-tool-details {
  padding: 40px;
}

/* ツール本体パネル：薄い青グレー＋黒文字 */
.yt-tool-panel {
  min-width: 0;
  background: #e8eef4;
  border: 1px solid #c5d4e2;
  border-radius: 17px;
  box-shadow: 0 6px 18px #1b70a014;
  padding: 24px;
  color: #000;
}

.yt-tool-panel .yt-tool-heading {
  color: #000;
  border-bottom-color: #c5d4e2;
}

.yt-tool-panel-body .yt-calc,
.yt-tool-panel-body .yt-diag,
.yt-tool-panel-body .yt-tool {
  background: transparent;
  color: inherit;
  padding: 0;
  box-shadow: none;
}

/* ---- 入力フォーム書式（FORM.md） ---- */
/* ラジオ／チェックの横並び余白（calc-tools 未読込の brief 等でも効くよう tool.css に置く） */
.yt-tool-panel .oc-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 1.2em;
  margin: 0.35em 0 0.35em 1em;
}

.yt-tool-panel .oc-opts label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 400;
}

.yt-tool-panel .oc-opts input {
  width: 1.1em;
  height: 1.1em;
  margin: 0;
  flex: none;
}

.yt-tool-panel .dm-field {
  margin: 0 0 2em;
}

.yt-tool-panel .dm-field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25em;
  color: #000;
}

.yt-tool-panel .dm-field .dm-control,
.yt-tool-panel .dm-field input[type="text"],
.yt-tool-panel .dm-field input[type="date"],
.yt-tool-panel .dm-field input[type="number"],
.yt-tool-panel .dm-field textarea,
.yt-tool-panel .dm-field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55em;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: #000;
  transition: background 0.15s, border-color 0.15s;
}

.yt-tool-panel .dm-field:not(.is-required) .dm-control.is-empty {
  background: #f1f5f9;
  border-color: #d5dee8;
}

.yt-tool-panel .dm-field.is-required .dm-control.is-empty,
.yt-tool-panel .dm-field.is-required input[type="date"].is-empty,
.yt-tool-panel .dm-field.is-required select.is-empty {
  background: #ffe8ee;
  border-color: #f0b6c2;
}

.yt-tool-panel .dm-field .dm-control.is-filled,
.yt-tool-panel .dm-field input[type="date"].is-filled,
.yt-tool-panel .dm-field select.is-filled {
  background: #fff;
  border-color: #cbd5e0;
}

.yt-tool-panel .dm-req-badge {
  display: inline-block;
  margin-left: 0.45em;
  padding: 0.12em 0.5em;
  border-radius: 999px;
  background: #e53e3e;
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}

/* 任意の項目のバッジはグレー（必須だけ赤） */
.yt-tool-panel .dm-field:not(.is-required) .dm-req-badge {
  background: #64748b;
}

/* 設問枠はラジオ／チェック時のみ（選択肢の個別囲みは付けない） */
.yt-tool-panel .yt-q {
  background: transparent;
  border: 1px solid #c5d4e2;
  border-radius: 8px;
  color: #000;
  margin: 0 0 2em;
  padding: 0.8em 1em;
  transition: background 0.15s, border-color 0.15s;
}

.yt-tool-panel .yt-q.is-required.is-empty,
.yt-tool-panel .dm-field.is-required.is-empty > .yt-q {
  background: #ffe8ee;
  border-color: #f0b6c2;
}

.yt-tool-panel .yt-q.is-required.is-filled,
.yt-tool-panel .dm-field.is-required.is-filled > .yt-q {
  background: transparent;
  border-color: #c5d4e2;
}

.yt-tool-panel .yt-q:last-of-type {
  margin-bottom: 2em;
}

.yt-tool-panel .calc-res,
.yt-tool-panel .oc-card {
  background: #fff;
  border-color: #c5d4e2;
  color: #000;
}

.yt-tool-panel .yt-q legend,
.yt-tool-panel .section-title,
.yt-tool-panel .calc-big,
.yt-tool-panel label,
.yt-tool-panel .note,
.yt-tool-panel .calc-mode-hint,
.yt-tool-panel .calc-help,
.yt-tool-panel p:not(.yt-err),
.yt-tool-panel .yt-step,
.yt-tool-panel .yt-h,
.yt-tool-panel .yt-why,
.yt-tool-panel .yt-note,
.yt-tool-panel .yt-small,
.yt-tool-panel .yt-progress-label {
  color: #000;
}

.yt-tool-panel .yt-err {
  color: #c53030;
  font-weight: 700;
  text-align: center;
  margin: 0.4em 0 0.2em;
}

.yt-tool-panel .calc-help {
  color: #456;
}

.yt-tool-panel .oc-opts label,
.yt-tool-panel .answer {
  background: transparent;
  border: 0;
  color: #000;
  padding: 0.25em 0;
}

.yt-tool-panel .oc-opts label:has(input:checked),
.yt-tool-panel .answer:has(input:checked) {
  background: transparent;
  border: 0;
}

.yt-tool-panel .calc-mode-hint,
.yt-tool-panel .calc-pick {
  background: #f4f7fa;
  border-color: #c5d4e2;
  color: #000;
}

.yt-tool-panel .yt-card,
.yt-tool-panel .yt-fee,
.yt-tool-panel .yt-camp {
  color: #000;
}

.yt-tool-guide {
  background: linear-gradient(150deg, #fff, #f9fcff);
}

.yt-tool-layout .yt-is-sticky {
  position: sticky;
  top: var(--yt-sticky-top, 94px);
  align-self: start;
}

.yt-tool-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #d3e9f8;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink, #0b1b3b);
  line-height: 1.3;
}

.yt-tool-heading-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #078bd1;
  background: linear-gradient(145deg, #effaff, #d4efff);
  border: 1px solid #a9d9f2;
  border-radius: 11px;
  box-shadow: inset 0 1px #fff, 0 3px 0 #d5ebf8;
}

.yt-tool-heading-icon svg,
.yt-tool-heading-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.yt-tool-panel-body > :first-child {
  margin-top: 0;
}

/* 既存ショートコード内の余白を殻に合わせる */
.yt-tool-panel .yt-calc,
.yt-tool-panel .yt-diag,
.yt-tool-panel .yt-tool {
  margin-top: 0;
}

.yt-tool-panel .contents {
  max-width: none;
  margin: 0;
}

/* —— Guide —— */
.yt-tool-steps {
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
  counter-reset: yt-tool-steps;
}

.yt-tool-steps li {
  position: relative;
  margin: 0 0 18px;
  line-height: 1.65;
  counter-increment: yt-tool-steps;
}

.yt-tool-steps li:last-child {
  margin-bottom: 0;
}

.yt-tool-steps li::before {
  content: counter(yt-tool-steps);
  position: absolute;
  left: -30px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1689c5;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.yt-tool-tip {
  margin-top: 22px;
  border: 1px solid #f4dd98;
  border-radius: 12px;
  overflow: hidden;
}

.yt-tool-tip-title {
  margin: 0;
  padding: 11px 14px;
  background: #fff5d6;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #0b1b3b);
}

.yt-tool-tip ul {
  margin: 0;
  padding: 8px 16px 12px 32px;
  line-height: 1.75;
  font-size: 13px;
}

.yt-tool-privacy {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #e8f5ff;
}

.yt-tool-privacy strong {
  display: block;
  color: var(--ink, #0b1b3b);
  font-size: 14px;
}

.yt-tool-privacy p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: #35536e;
}

/* —— Related tools（見出しは関連記事と同型） —— */
.yt-related-tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.yt-related-tools-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120px;
  height: 100%;
  padding: 18px 45px 20px 17px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid #e4edf4;
  box-shadow: 0 5px 10px #15324a1a;
  text-decoration: none;
  color: inherit;
}

.yt-related-tools-link:hover,
.yt-related-tools-link:focus-visible {
  border-color: #b8d4e8;
}

@media (prefers-reduced-motion: no-preference) {
  a.yt-related-tools-link {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  }

  a.yt-related-tools-link:hover,
  a.yt-related-tools-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 9px 16px #15324a21;
  }
}

.yt-related-tools-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.yt-related-tools-title .yt-wrench {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: #193c5b;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yt-related-tools-name {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
  color: var(--ink, #0b1b3b);
  overflow-wrap: anywhere;
}

.yt-related-tools-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.6;
  color: #46576b;
}

.yt-related-tools-link .yt-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #2a638c;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

/* —— Details / related —— */
.yt-tool-details {
  margin-top: 24px;
}

.yt-tool-details .post-content > :first-child {
  margin-top: 0;
}

.yt-tool-details .section {
  margin: 0;
}

/* 小見出し。結果の主見出しは .yt-tool-heading（アイコンは ytSectionTitle / yt_section_title_html） */
.yt-tool-details h3.section-title,
.yt-tool-result h3.section-title,
.yt-tool-result h2.section-title {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin: 3em 0 0.75em;
  padding: 0 0 0.4em;
  font-size: 1.12em;
  font-weight: 700;
  color: var(--ink, #0b1b3b);
  line-height: 1.4;
  border-bottom: 2px solid #1689c5;
}

.yt-tool-details .section-title-icon,
.yt-tool-result .section-title-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  color: #1689c5;
}

.yt-tool-details .section-title-icon svg,
.yt-tool-result .section-title-icon svg {
  width: 1.1em;
  height: 1.1em;
  display: block;
}

.yt-tool-details .section-title.is-icon-check .section-title-icon,
.yt-tool-result .section-title.is-icon-check .section-title-icon {
  color: #2f855a;
}

.yt-tool-details .section-title.is-icon-info .section-title-icon,
.yt-tool-result .section-title.is-icon-info .section-title-icon {
  color: #c05621;
}

.yt-tool-details .section-title.is-icon-next .section-title-icon,
.yt-tool-result .section-title.is-icon-next .section-title-icon {
  color: #1689c5;
}

.yt-tool-details .section-title.is-icon-qa .section-title-icon,
.yt-tool-result .section-title.is-icon-qa .section-title-icon {
  color: #6b46c1;
}

.yt-tool-result > .yt-tool-heading,
.yt-tool-result .yt-tool-heading:first-child {
  margin-top: 0;
}

.yt-tool-details .yt-qa {
  margin: 0;
  display: grid;
  gap: 0.65em;
}

.yt-tool-details .yt-qa-item {
  margin: 0;
  border: 1px solid #d5e3ef;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.yt-tool-details .yt-qa-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85em 2.5em 0.85em 1em;
  position: relative;
  font-weight: 700;
  color: var(--ink, #0b1b3b);
  line-height: 1.55;
  background: #f3f7fb;
}

.yt-tool-details .yt-qa-item summary::-webkit-details-marker {
  display: none;
}

.yt-tool-details .yt-qa-item summary::after {
  content: "";
  position: absolute;
  right: 1em;
  top: 50%;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid #1689c5;
  border-bottom: 2px solid #1689c5;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.15s;
}

.yt-tool-details .yt-qa-item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.yt-tool-details .yt-qa-item[open] summary {
  border-bottom: 1px solid #d5e3ef;
}

.yt-tool-details .yt-qa-a {
  margin: 0;
  padding: 0.9em 1em 1em;
  line-height: 1.75;
  color: #35536e;
}

.yt-tool-result {
  margin: 24px 0 0;
  padding: 40px;
  background: #f1f8e6;
  border: 1px solid #c5dba0;
  border-radius: 17px;
  box-shadow: 0 6px 18px #6f8f3014;
  color: var(--ink, #0b1b3b);
}

/* クラウドソーシング診断: 結果レイアウト */
.yt-diag-result-head {
  margin: 0 0 1.15em;
}

.yt-diag-result-title {
  margin: 0 0 0.35em;
  border-bottom: 2px solid #c5dba0;
}

.yt-diag-result-sub {
  margin: 0;
  font-size: 0.95em;
  font-weight: 700;
  color: #4a5d3a;
}

.yt-tool-panel .yt-actions,
.yt-tool-result .yt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.8em;
  margin: 1.25em 0 0;
}

.yt-tool-panel .yt-actions .yt-btn,
.yt-tool-panel .yt-actions .button,
.yt-tool-result .yt-actions .yt-btn,
.yt-tool-result .yt-actions .button,
.yt-tool-result .actions .button,
.yt-tool-result .actions .yt-btn {
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  min-width: min(320px, 100%);
}

/* 2ボタン並び（前へ／次へ）は横並び優先 */
.yt-tool-panel .yt-actions:has(.yt-btn + .yt-btn) .yt-btn,
.yt-tool-result .yt-actions:has(.yt-btn + .yt-btn) .yt-btn,
.yt-tool-panel .yt-actions:has(.yt-btn + .yt-btn) .button,
.yt-tool-result .yt-actions:has(.yt-btn + .yt-btn) .button {
  flex: 1 1 148px;
  min-width: 0;
  max-width: 320px;
}

.yt-tool-result .actions {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

.yt-tool-result .yt-card {
  background: #fff;
  border: 1px solid #d5e3c8;
  border-radius: 12px;
  padding: 1em 1.15em 1.15em;
  margin: 0.9em 0;
  box-shadow: 0 2px 8px #6f8f3010;
  overflow: hidden;
}

.yt-tool-result .yt-diag-card-title {
  margin: 0 0 0.75em;
  font-size: 1.12em;
  color: var(--ink, #0b1b3b);
}

.yt-tool-result .yt-diag-card-main {
  display: grid;
  gap: 0.9em;
}

.yt-tool-result .yt-diag-shot {
  display: grid;
  place-items: center;
  background: #e8efe0;
  border: 1px solid #d5e3c8;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  min-height: 120px;
}

.yt-tool-result .yt-diag-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.yt-tool-result .yt-diag-shot.is-missing {
  padding: 1em;
}

.yt-tool-result .yt-diag-shot-fallback {
  font-size: 0.85em;
  color: #6a7b5c;
  text-align: center;
}

.yt-tool-result .yt-diag-card-body {
  min-width: 0;
}

.yt-tool-result .yt-diag-card-body > :first-child {
  margin-top: 0;
}

.yt-tool-result .yt-fee {
  background: #edf2e8;
  border-radius: 6px;
  padding: 0.45em 0.7em;
  font-size: 0.9em;
}

.yt-tool-result .yt-diag-confirmed {
  margin: 0.55em 0 0;
  text-align: right;
  font-size: 0.82em;
  color: #5a7084;
}

.yt-tool-result .yt-card-detail {
  margin-top: 1.35em;
  padding: 1.15em 1.2em 1.25em;
  background: #dce9c4;
  border: 1px solid #8fb24a;
  border-radius: 12px;
  box-shadow: 0 2px 8px #6f8f3018;
}

.yt-tool-result .yt-diag-detail-cta-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 0.55em;
  font-size: 1.08em;
  font-weight: 700;
  color: #243418;
  line-height: 1.35;
}

.yt-tool-result .yt-diag-detail-cta-title .yt-tool-heading-icon {
  width: 36px;
  height: 36px;
  color: #2f5210;
  background: linear-gradient(145deg, #eef6d4, #c6db8e);
  border-color: #8fb24a;
  box-shadow: inset 0 1px #f7fbe8, 0 2px 0 #b4c98a;
}

.yt-tool-result .yt-diag-detail-cta-title .yt-tool-heading-icon svg {
  width: 20px;
  height: 20px;
}

.yt-tool-result .yt-card-detail > p {
  margin: 0;
  color: #2c3d1e;
}

.yt-tool-result .yt-card-detail .yt-actions {
  margin-top: 0.95em;
}

.yt-tool-result .yt-diag-runner {
  margin: 0.85em 0 0.2em;
  padding: 0.15em 0.1em;
  font-size: 0.92em;
  line-height: 1.55;
  color: #5a6b4c;
}

.yt-tool-result .yt-diag-runner-link {
  color: #2f6f9e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yt-tool-result .yt-diag-runner-link:hover,
.yt-tool-result .yt-diag-runner-link:focus-visible {
  color: #1a5270;
}

@media (min-width: 769px) {
  .yt-tool-result .yt-diag-card-main {
    grid-template-columns: minmax(160px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 1.1em;
  }

  .yt-tool-result .yt-diag-shot img {
    aspect-ratio: 4 / 3;
  }
}

.yt-tool-result[hidden] {
  display: none !important;
}

/* 内側の calc-res / dm-res は二重枠にしない（.calc-res の旧結果枠スタイルを打ち消す） */
.yt-tool-result .calc-res,
.yt-tool-result .dm-res {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* 空のエラー／ステータス行は余白を取らない */
.yt-tool-result .yt-err:empty {
  display: none;
}

.yt-tool-result .calc-big,
.yt-tool-result .oc-card,
.yt-tool-result .note,
.yt-tool-result label,
.yt-tool-result p,
.yt-tool-result li {
  color: inherit;
}

.yt-tool-result .section-title {
  color: var(--ink, #0b1b3b);
}

.yt-tool-result .oc-card {
  background: #fafdf4;
  border-color: #d0e0b0;
}

.yt-tool-result .calc-big {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 12px;
}

.yt-tool-page > .yt-tool-article > .yt-related-tools,
.yt-tool-page > .yt-tool-article > .yt-articles {
  margin-top: 80px;
  max-width: none;
}

/* —— 親ハブ（/shindan/ /keisan/ /generator/） —— */
.yt-hub-tools {
  margin-top: 28px;
}

.yt-hub-tools-list .yt-related-tools-link {
  min-height: 148px;
  padding-bottom: 28px;
}

.yt-hub-tools-list .yt-created {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.4;
  color: #64788b;
}

.yt-related-tools-link.is-coming {
  opacity: 0.72;
  box-shadow: none;
  background: #f7fbfe;
}

.yt-hub-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  vertical-align: middle;
  background: #e8f0f6;
  color: #5a7084;
}

.yt-hub-empty {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #35536e;
}

/* —— 1024 —— */
@media (max-width: 1024px) {
  body.yt-tool-body .inbody {
    width: min(calc(100% - 32px), var(--yt-page-max));
  }

  .yt-tool-heading {
    font-size: 20px;
  }

  .yt-tool-panel,
  .yt-tool-guide,
  .yt-tool-details,
  .yt-tool-result {
    padding: 20px;
  }

  .yt-related-tools-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— 768 —— */
@media (max-width: 768px) {
  body.yt-tool-body .inbody {
    width: min(calc(100% - 24px), var(--yt-page-max));
    padding-bottom: 36px;
  }

  .yt-related-tools-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .yt-tool-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .yt-tool-layout .yt-is-sticky {
    position: static;
  }

  .yt-tool-hero {
    margin-bottom: 18px;
  }

  .yt-tool-hero-title-row {
    gap: 10px;
    margin-bottom: 8px;
  }

  .yt-tool-hero-icon,
  .yt-tool-hero-icon img {
    width: 48px;
    height: 48px;
  }

  .yt-tool-hero h1 {
    font-size: 22px;
  }

  .yt-tool-panel,
  .yt-tool-guide,
  .yt-tool-details,
  .yt-tool-result {
    padding: 16px;
    border-radius: 14px;
  }

  .yt-tool-heading {
    font-size: 18px;
    gap: 10px;
  }

  .yt-tool-heading-icon {
    width: 34px;
    height: 34px;
  }

  .yt-tool-heading-icon svg {
    width: 18px;
    height: 18px;
  }
}
