@charset "utf-8";
/*----------------------------------------------------
    PCサイトcss
----------------------------------------------------*/
@media screen and (min-width: 768px) {
/*/////////////PC用のCSSをここに作成してください。/////////////*/
/*/////////////必ず中括弧の中に作成してください。/////////////*/


}



/*----------------------------------------------------
    SPサイトcss
----------------------------------------------------*/
@media screen and (max-width: 767px) {
/*/////////////SP用のCSSをここに作成してください。/////////////*/
/*/////////////必ず中括弧の中に作成してください。/////////////*/


}

/* ---------- 1. 基本設定（色・文字・幅） ---------- */
#tb-top {
  --ink: #2c2c2b;
  --muted: #625f5b;
  --bg: #ffffff;
  --soft: #f9f8f7;
  --surface: #f0efed;
  --line: #d4d2ce;
  --blue: #1768b7;
  --on-blue: #ffffff;
  --tb-mv-image: url("https://www.cleanroom-order-guide.com/wp/wp-content/uploads/cleen_MV.jpg");

  container-type: inline-size; /* 画面幅ではなく本文エリアの幅でレイアウトを切り替える */
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color-scheme: light;
}

#tb-top *,
#tb-top *::before,
#tb-top *::after {
  box-sizing: border-box;
}

/* ---------- 2. テーマ由来の装飾をリセット ---------- */
#tb-top header,
#tb-top section,
#tb-top article,
#tb-top div,
#tb-top ol,
#tb-top li,
#tb-top dl,
#tb-top table,
#tb-top caption,
#tb-top th,
#tb-top td {
  margin: 0;
  border: 0;
  box-shadow: none;
}

#tb-top h1,
#tb-top h2,
#tb-top h3,
#tb-top p {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
}

#tb-top h1::before, #tb-top h1::after,
#tb-top h2::before, #tb-top h2::after,
#tb-top h3::before, #tb-top h3::after {
  content: none;
  display: none;
}

#tb-top h1 { font-size: 42px; line-height: 1.45; letter-spacing: .02em; font-weight: 700; }
#tb-top h2 { font-size: 30px; line-height: 1.5; margin-bottom: 24px; font-weight: 700; text-wrap: balance; }
#tb-top h3 { font-size: 19px; line-height: 1.6; font-weight: 700; }

/* ---------- 3. リンク・ボタン ---------- */
#tb-top a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  box-shadow: none;
  overflow-wrap: anywhere;
}
#tb-top a:hover { text-decoration-thickness: 2px; }
#tb-top a:focus-visible,
#tb-top .scroll:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

#tb-top .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

#tb-top a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--bg);
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
#tb-top a.btn:hover { background: var(--soft); }
#tb-top a.btn.primary { background: var(--blue); color: var(--on-blue); }
#tb-top a.btn.primary:hover { opacity: .9; }

/* ---------- 4. セクション共通 ---------- */
#tb-top section {
  padding: 64px 48px;
  scroll-margin-top: 80px; /* 固定ヘッダーがあるテーマでも見出しが隠れにくいよう余白を確保 */
}
#tb-top section > p:not(.eyebrow) { max-width: 820px; }

#tb-top .eyebrow {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

#tb-top .source {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#tb-top .source a { display: inline-block; padding: 10px 2px; }

/* ---------- 5. ヘッダー ---------- */
#tb-top .brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 48px;
  border-bottom: 1px solid var(--line);
}
#tb-top .brand p { margin: 0; font-weight: 700; }
#tb-top .brand span { color: var(--muted); font-size: 14px; }

/* ---------- 6. メインビジュアル ---------- */
#tb-top .mv {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: var(--soft);
}
#tb-top .mv .ph {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--surface);          /* 画像未設定・読み込み失敗時の下地 */
  background-image: var(--tb-mv-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--muted);
}
/* 画像URLを設定したら「MV画像」の仮文字を消す場合は、次の行の先頭と末尾のコメント記号を外す */
 #tb-top .mv .ph > span { display: none; } 

/* ---------- 7. コンセプト ---------- */
#tb-top .concept > *,
#tb-top section.concept > p:not(.eyebrow) { max-width: 850px; margin-left: auto; margin-right: auto; }

/* ---------- 8. 背景色の切り替え ---------- */
#tb-top .pain,
#tb-top .compare,
#tb-top .know { background: var(--soft); }
#tb-top .about { border-top: 1px solid var(--line); }

/* ---------- 9. カード（悩み別・会社一覧） ---------- */
#tb-top .grid { display: grid; gap: 20px; }
#tb-top .pain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#tb-top .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#tb-top .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
#tb-top .card > a { margin-top: auto; padding-top: 8px; min-height: 44px; }

/* 会社カード：固定高さを使わず、同じ行のカード高さと下部ボタン位置をそろえる */
#tb-top .company h3 { min-height: 3.2em; }
#tb-top .company .intro { font-size: 16px; }
#tb-top .company .source { margin-top: auto; }
#tb-top .company-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 12px;
}

/* ---------- 10. 確認ポイント ---------- */
#tb-top .point-list {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: point;
}
#tb-top .point-list li {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
  list-style: none;
  counter-increment: point;
}
#tb-top .point-list li::before {
  content: counter(point, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 40px;
  color: var(--blue);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
}
#tb-top .point-list li > div { min-width: 0; }
#tb-top .point-list li p { max-width: 760px; }

/* ---------- 11. 比較表 ---------- */
#tb-top .scroll-note { color: var(--muted); font-size: 14px; }
#tb-top .scroll {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
#tb-top table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.7;
  table-layout: auto;
}
#tb-top caption {
  padding: 16px;
  color: var(--muted);
  text-align: left;
  caption-side: top;
}
#tb-top th,
#tb-top td {
  min-width: 160px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  vertical-align: top;
}
#tb-top tr > :last-child { border-right: 0; }
#tb-top tbody tr:last-child > * { border-bottom: 0; }
#tb-top thead th { background: var(--surface); font-weight: 700; }
#tb-top tbody th { position: sticky; left: 0; z-index: 1; width: 170px; font-weight: 700; }
#tb-top thead th:first-child { position: sticky; left: 0; z-index: 2; }
#tb-top td a { display: inline-block; padding: 10px 0; }

/* ---------- 12. 計画と発注の進め方 ---------- */
#tb-top .hub-note {
  margin: 32px 0;
  padding: 24px;
  border-left: 4px solid var(--blue);
  background: var(--bg);
}
#tb-top .hub-note a { display: inline-block; padding: 8px 0; }

#tb-top .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
#tb-top .steps li {
  margin: 0;
  padding: 16px;
  border-top: 2px solid var(--blue);
  background: var(--bg);
  list-style: none;
  counter-increment: step;
}
#tb-top .steps strong { display: block; margin-bottom: 12px; }
#tb-top .steps strong::before { content: counter(step) ". "; color: var(--blue); }
#tb-top .steps a { display: block; min-height: 44px; }

/* ---------- 13. 運営会社・掲載基準 ---------- */
#tb-top dl {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px 24px;
  padding: 0;
}
#tb-top dt { font-weight: 700; }
#tb-top dd { margin: 0; padding: 0; }

/* ---------- 14. タブレット（本文エリア幅 800px 以下） ---------- */
@container (max-width: 800px) {
  #tb-top section { padding: 40px 24px; }
  #tb-top .brand { padding: 20px 24px; }
  #tb-top .brand span { display: none; }
  #tb-top h1 { font-size: 34px; }
  #tb-top .mv { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #tb-top .pain-grid,
  #tb-top .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tb-top .company-grid { grid-template-columns: minmax(0, 1fr); }
  #tb-top .company h3 { min-height: 0; }
  #tb-top dl { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #tb-top dd { margin-bottom: 16px; }
}

/* ---------- 15. スマートフォン（本文エリア幅 480px 以下） ---------- */
@container (max-width: 480px) {
  #tb-top section { padding: 36px 20px; }
  #tb-top .brand { padding: 20px; }
  #tb-top h1 { font-size: 30px; }
  #tb-top h2 { font-size: 25px; }
  #tb-top .pain-grid,
  #tb-top .steps { grid-template-columns: minmax(0, 1fr); }
  #tb-top .card { padding: 20px; }
  #tb-top .actions,
  #tb-top .company-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  #tb-top .point-list li { gap: 12px; }
  #tb-top .point-list li::before { min-width: 34px; font-size: 23px; }
}
