/* DiSA Direction Tips — ハブページ追加スタイル */
.hub-body { background: #1a1a1a; }

.hub-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ── ヒーロー ── */
.hub-hero {
  text-align: center;
  padding: 20px 0 36px;
}
.hub-hero__logo { margin-bottom: 28px; }
.hub-hero__logo .tips-logo { display: inline-block; }

.hub-hero__title {
  margin: 0 0 14px;
}
.hub-hero__title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hub-hero__logo-img {
  max-width: 604px;
  width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.hub-hero__lead {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,0.5);
  margin: 0 0 28px;
}

/* ── 用語ツールチップ（Peatix説明） ── */
.hub-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted rgba(255,255,255,0.45);
  padding-bottom: 1px;
  cursor: help;
}
.hub-tooltip__bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 240px;
  background: #2a2a2a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  text-align: left;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.hub-tooltip__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2a2a2a;
}
.hub-tooltip:hover .hub-tooltip__bubble,
.hub-tooltip:focus .hub-tooltip__bubble,
.hub-tooltip.is-active .hub-tooltip__bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ── セクション ── */
.hub-section { margin-bottom: 56px; }
.hub-section__heading {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 20px 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ── グリッド（付箋カード） ── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  padding: 12px 4px 4px;
}

.hub-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 22px;
  background: #e2e1de;
  text-decoration: none;
  position: relative;
  box-shadow: 2px 4px 14px rgba(0,0,0,0.5);
  transform: rotate(-0.4deg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hub-item:nth-child(even) { transform: rotate(0.3deg); }
.hub-item:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 4px 8px 20px rgba(0,0,0,0.6);
}
.hub-item::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 16px;
  background: rgba(180,180,175,0.55);
  border-radius: 2px;
}

.hub-item__num {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.hub-item__cat {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #999;
}
.hub-item__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #111;
}

/* ── CTAボタン（Peatix） ── */
.hub-body .tips-cta { background: #2a9d5c; }
.hub-body .tips-cta:hover { opacity: 1; background: #238a50; }
.hub-body .tips-cta--worry {
  background: #f4c542;
  color: #111;
}
.hub-body .tips-cta--worry:hover {
  background: #ffd95d;
}

/* ── フッター ── */
.hub-footer {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-size: 11px;
}
.hub-footer a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.15s ease;
}
.hub-footer a:hover {
  color: rgba(255,255,255,0.6);
}
.hub-footer .tips-logo {
  align-items: center;
}
.hub-footer .tips-logo__sub {
  text-align: center;
}

/* ── 中間CTAストリップ ── */
.hub-cta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 8px 4px 56px;
  padding: 22px 24px;
  background: rgba(42, 157, 92, 0.08);
  border: 1px solid rgba(42, 157, 92, 0.25);
  border-radius: 8px;
}
.hub-cta-strip__text {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.hub-cta-strip__br { display: none; }
.hub-cta-strip .tips-cta { padding: 11px 22px; }

/* ── note / peatix 紹介バナー ── */
.hub-note-banners {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 56px;
  align-items: start;
}
/* Peatix（主役）を強調、note（従）は控えめに */
.hub-note-banner--primary {
  background: rgba(42, 157, 92, 0.10);
  border-color: rgba(42, 157, 92, 0.35);
}
.hub-note-banner--secondary {
  background: rgba(255, 255, 255, 0.02);
}
.hub-note-banner__cta {
  margin-top: 4px;
  padding: 11px 22px;
}
.hub-note-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.hub-note-banner__label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2a9d5c;
}
.hub-note-banner__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.hub-note-banner__description {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 8px;
}
.hub-note-banner__link {
  font-size: 13px;
  font-weight: 700;
  color: #2a9d5c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.hub-note-banner__link:hover {
  color: #3cb873;
}
.hub-note-banner__link svg {
  width: 16px;
  height: 16px;
}

/* ── スクロール追従CTA ── */
.hub-sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: #2a9d5c;
  color: #fff;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.hub-sticky-cta:hover { background: #238a50; }
.hub-sticky-cta--worry {
  background: #f4c542;
  color: #111;
}
.hub-sticky-cta--worry:hover { background: #ffd95d; }
.hub-sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hub-sticky-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 600px) {
  .hub-wrap { padding: 24px 16px 48px; }
  /* 中間CTA：縦並びに */
  .hub-cta-strip {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 20px;
  }
  .hub-cta-strip__br { display: inline; }
  /* バナーは1カラム（Peatixが先頭で主役） */
  .hub-note-banners { grid-template-columns: 1fr; }
  /* 追従CTAはスマホでは下部バー化 */
  .hub-sticky-cta {
    right: 16px;
    left: 16px;
    bottom: 16px;
    justify-content: center;
    padding: 15px 22px;
    border-radius: 10px;
  }
  .hub-hero__logo-img {
    max-width: 320px;
  }
  .hub-tooltip__bubble {
    width: 200px;
  }
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .hub-note-banners {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .hub-note-banner {
    padding: 24px 20px;
  }
  .hub-note-banner__title {
    font-size: 16px;
  }
  .hub-note-banner__description {
    font-size: 12px;
  }
}
