/* ============================================================
   TOOLBOX PAGE — assets/css/toolbox.css  v28
   すべてのルールを .toolbox-page 配下にスコープ済み
   既存ヘッダー・ナビ・フッターには一切影響しない
   ============================================================ */

/* ── CSS変数（toolbox専用、既存変数と衝突しない名前） ── */
.toolbox-page {
  --tb-paper:  #f5efe5;
  --tb-paper2: #ece4d6;
  --tb-ink:    #141612;
  --tb-muted:  #696359;
  --tb-deep:   #12231e;
  --tb-green:  #355649;
  --tb-accent: #b69355;
  --tb-line:   rgba(20, 22, 18, .12);
  --tb-line2:  rgba(245, 239, 229, .16);
  --tb-max:    1120px;
}

/* ── ヘッダー（article.css / archive.css と同パターンで .toolbox-page にスコープ） ── */
.toolbox-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 246, 236, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 36, 33, .1);
}
.toolbox-page .nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.toolbox-page .nav .brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.toolbox-page .nav .brand strong {
  font-size: 14px;
  letter-spacing: .08em;
  font-weight: 700;
}
.toolbox-page .nav .brand span {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted);
}
.toolbox-page .nav-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(23, 36, 33, .74);
}
.toolbox-page .nav-links a {
  position: relative;
  padding: 6px 0;
}
.toolbox-page .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.toolbox-page .nav-links a:hover::after {
  transform: scaleX(1);
}

/* ── Mobile nav（道具箱ページ専用） ── */
.toolbox-page .toolbox-mobile-nav {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--tb-paper);
  border-bottom: 1px solid var(--tb-line);
  padding: 0 20px;
  -webkit-overflow-scrolling: touch;
}
.toolbox-page .toolbox-mobile-nav a {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--tb-ink);
  padding: 14px 12px;
  text-decoration: none;
}
@media (max-width: 700px) {
  .toolbox-page .toolbox-mobile-nav { display: block; }
  .toolbox-page .nav-links { display: none; }
}

/* ── Hero ── */
.toolbox-page .tb-hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  background:
    radial-gradient(circle at 74% 18%, rgba(182, 147, 85, .11), transparent 36%),
    linear-gradient(110deg, rgba(18, 35, 30, .98) 0%, rgba(18, 35, 30, .97) 48%, rgba(18, 35, 30, .82) 100%);
  color: var(--tb-paper);
  border-bottom: 1px solid rgba(20, 22, 18, .18);
}
.toolbox-page .tb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .20;
  background-image:
    linear-gradient(rgba(245, 239, 229, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 239, 229, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
  pointer-events: none;
}
.toolbox-page .tb-hero-inner {
  max-width: var(--tb-max);
  margin: 0 auto;
  min-height: 580px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
  padding: 76px 28px 86px;
  position: relative;
  z-index: 2;
}
.toolbox-page .tb-eyebrow {
  margin-bottom: 26px;
  color: var(--tb-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.toolbox-page .tb-hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(72px, 8.8vw, 116px);
  line-height: .92;
  letter-spacing: -.05em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tb-paper);
}
.toolbox-page .tb-hero-copy {
  max-width: 520px;
  margin: 32px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.85;
  color: rgba(245, 239, 229, .88);
}
.toolbox-page .tb-hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── ボタン ── */
.toolbox-page .tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  border: 1px solid var(--tb-line2);
  transition: opacity .18s ease;
}
.toolbox-page .tb-btn:hover { opacity: .78; }
.toolbox-page .tb-btn--primary {
  background: var(--tb-paper);
  color: var(--tb-deep);
  border-color: var(--tb-paper);
}
.toolbox-page .tb-btn--ghost {
  color: var(--tb-paper);
  background: transparent;
}
.toolbox-page .tb-btn--border {
  background: transparent;
  color: var(--tb-ink);
  border: 1px solid var(--tb-line);
}

/* ── ヒーロー ビジュアル ── */
.toolbox-page .tb-hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.toolbox-page .tb-hero-frame {
  width: 100%;
  max-width: 510px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(182, 147, 85, .18);
  padding: 14px;
}
.toolbox-page .tb-hero-frame img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 1px solid rgba(245, 239, 229, .08);
}

@media (max-width: 860px) {
  .toolbox-page .tb-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 24px 64px;
    gap: 36px;
  }
  .toolbox-page .tb-hero-visual { justify-content: flex-start; }
  .toolbox-page .tb-hero-frame { max-width: 100%; }
  .toolbox-page .tb-hero-frame img { height: 220px; }
  .toolbox-page .tb-hero-title { font-size: clamp(56px, 14vw, 80px); }
}

/* ── Section 共通 ── */
.toolbox-page .tb-section {
  padding: 92px 28px;
}
.toolbox-page .tb-section-inner {
  max-width: var(--tb-max);
  margin: 0 auto;
}
.toolbox-page .tb-kicker {
  color: var(--tb-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.toolbox-page .tb-section-title {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.24;
  letter-spacing: -.025em;
  font-weight: 800;
  color: var(--tb-ink);
}
.toolbox-page .tb-section-lead {
  margin: 26px 0 0;
  max-width: 560px;
  color: var(--tb-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.85;
}

/* ── コンセプトセクション ── */
.toolbox-page .tb-concept-section {
  background: var(--tb-paper);
}
.toolbox-page .tb-concept-grid {
  display: grid;
  grid-template-columns: .9fr 1.25fr;
  gap: 64px;
  align-items: center;
}
.toolbox-page .tb-compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.toolbox-page .tb-compare-card {
  min-height: 245px;
  padding: 32px;
  border: 1px solid var(--tb-line);
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 14px 38px rgba(18, 35, 30, .06);
}
.toolbox-page .tb-compare-card--dark {
  background: var(--tb-deep);
  color: var(--tb-paper);
  border-color: rgba(182, 147, 85, .24);
}
.toolbox-page .tb-card-number {
  color: var(--tb-accent);
  font-size: 48px;
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.toolbox-page .tb-compare-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: .02em;
  font-weight: 800;
}
.toolbox-page .tb-compare-card p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}
.toolbox-page .tb-compare-card--dark p {
  color: rgba(245, 239, 229, .74);
}

@media (max-width: 860px) {
  .toolbox-page .tb-section { padding: 64px 24px; }
  .toolbox-page .tb-concept-grid { grid-template-columns: 1fr; gap: 42px; }
}
@media (max-width: 560px) {
  .toolbox-page .tb-compare-cards { grid-template-columns: 1fr; }
  .toolbox-page .tb-compare-card { min-height: auto; }
}

/* ── ツールセクション ── */
.toolbox-page .tb-tools-section {
  background: var(--tb-paper2);
  border-top: 1px solid var(--tb-line);
  border-bottom: 1px solid var(--tb-line);
}
.toolbox-page .tb-tools-head {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: 54px;
  align-items: end;
  margin-bottom: 42px;
}
.toolbox-page .tb-tools-note {
  color: var(--tb-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.85;
  border-left: 2px solid var(--tb-accent);
  padding-left: 22px;
  margin: 0;
}
.toolbox-page .tb-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.toolbox-page .tb-tool-card {
  min-height: 460px;
  padding: 18px 18px 24px;
  border: 1px solid rgba(20, 22, 18, .12);
  background: rgba(245, 239, 229, .86);
  box-shadow: 0 18px 44px rgba(18, 35, 30, .07);
  display: flex;
  flex-direction: column;
}
.toolbox-page .tb-tool-image {
  margin-bottom: 20px;
  border: 1px solid rgba(182, 147, 85, .22);
  overflow: hidden;
  background: #e5ddcf;
  flex-shrink: 0;
}
.toolbox-page .tb-tool-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.toolbox-page .tb-card-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--tb-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.toolbox-page .tb-tool-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: .01em;
  font-weight: 800;
  color: var(--tb-ink);
}
.toolbox-page .tb-tool-card p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  flex: 1;
}

@media (max-width: 860px) {
  .toolbox-page .tb-tools-head { grid-template-columns: 1fr; gap: 28px; }
  .toolbox-page .tb-tool-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .toolbox-page .tb-tool-grid { grid-template-columns: 1fr; }
  .toolbox-page .tb-tool-card { min-height: auto; }
}

/* ── ガイダンスセクション ── */
.toolbox-page .tb-guidance {
  padding: 68px 28px;
  background: var(--tb-paper);
}
.toolbox-page .tb-guidance-box {
  max-width: var(--tb-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .46fr 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 34px 36px;
  border: 1px solid var(--tb-line);
  background: rgba(255, 255, 255, .18);
}
.toolbox-page .tb-guidance-box h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.35;
  letter-spacing: -.015em;
  font-weight: 800;
  color: var(--tb-ink);
}
.toolbox-page .tb-guidance-box p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

@media (max-width: 860px) {
  .toolbox-page .tb-guidance { padding: 56px 24px; }
  .toolbox-page .tb-guidance-box {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }
}
