/* v-hub-003 : match front-page.php */

body.template-hub-body {
  margin: 0;
  background: #eef1f4;
  color: #1f2937;
  font-family: "Segoe UI", "Yu Gothic UI", sans-serif;
}

.hub-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hub-header {
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #d9dfe6;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.hub-brand-text {
  line-height: 1.2;
}

.hub-title {
  font-size: 15px;
  font-weight: 700;
}

.hub-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.hub-main {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.hub-hero {
  margin-bottom: 34px;
}

.hub-heading {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
}

.hub-description {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.template-card {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.template-card.is-active:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  border-color: #c7d2e0;
}

.template-card.is-disabled {
  opacity: 0.82;
}

.template-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.template-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  flex: 0 0 auto;
}

.template-icon.word { background: #2b579a; }
.template-icon.excel { background: #217346; }
.template-icon.note { background: #6b7280; }
.template-icon.mail { background: #c97b30; }

.template-status {
  font-size: 12px;
  color: #215d2d;
  background: #e8f7ec;
  border-radius: 999px;
  padding: 5px 10px;
  line-height: 1;
}

.template-status.muted {
  color: #6b7280;
  background: #eef1f4;
}

.template-name {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.4;
  color: #111827;
  font-weight: 700;
}

.template-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
}

.hub-sponsor-box {
  margin-top: 34px;
}

.hub-sponsor-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}

.hub-sponsor-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
}

/* リリース記事バナー */
.hub-release-banner {
  margin-bottom: 32px;
}

.hub-release-banner-link {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #7c3aed;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.hub-release-banner-link:hover {
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.18);
  transform: translateY(-2px);
}

.hub-release-banner-img {
  width: 220px;
  height: 124px;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
}

.hub-release-banner-body {
  padding: 20px 24px;
  flex: 1 1 auto;
}

.hub-release-banner-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: #7c3aed;
  color: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.hub-release-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.4;
}

.hub-release-banner-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .hub-release-banner-img {
    width: 120px;
    height: 80px;
  }

  .hub-release-banner-title {
    font-size: 15px;
  }

  .hub-release-banner-body {
    padding: 14px 16px;
  }
}

/* Midjourneyプロンプトメーカー バナー */
.hub-tool-banner {
  margin-top: 34px;
}

.hub-tool-banner-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  border-radius: 16px;
  text-decoration: none;
  color: #e0e0e0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.hub-tool-banner-link:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.hub-tool-banner-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}

.hub-tool-banner-body {
  flex: 1 1 auto;
  min-width: 0;
}

.hub-tool-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-tool-banner-badge {
  font-size: 11px;
  font-weight: 700;
  background: #7c3aed;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.05em;
}

.hub-tool-banner-desc {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
}

.hub-tool-banner-arrow {
  flex: 0 0 auto;
  font-size: 20px;
  color: #9ca3af;
}

/* X フォローボックス */
.hub-x-box {
  margin-top: 34px;
}

.hub-x-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.hub-x-link:hover {
  background: #1a1a1a;
}

.hub-x-icon {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex: 0 0 auto;
}

.hub-x-handle {
  color: #d1d5db;
  font-weight: 400;
  font-size: 14px;
}

.hub-x-cta {
  margin-left: 4px;
}

/* 新着記事 */
.hub-posts {
  margin-top: 48px;
}

.hub-posts-heading {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.hub-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  overflow: hidden;
}

.hub-posts-item {
  border-bottom: 1px solid #eef1f4;
}

.hub-posts-item:last-child {
  border-bottom: none;
}

.hub-posts-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 20px;
  text-decoration: none;
  color: #1f2937;
  transition: background 0.12s ease;
}

.hub-posts-link:hover {
  background: #f8fafc;
}

.hub-posts-date {
  flex: 0 0 auto;
  font-size: 13px;
  color: #6b7280;
}

.hub-posts-title {
  font-size: 15px;
  line-height: 1.6;
}

/* 記事一覧リンク */
.hub-posts-more {
  margin-top: 12px;
  text-align: right;
}

.hub-posts-more-link {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
}

.hub-posts-more-link:hover {
  text-decoration: underline;
}

/* フッター */
.hub-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid #d9dfe6;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hub-footer-nav {
  display: flex;
  gap: 20px;
}

.hub-footer-link {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
}

.hub-footer-link:hover {
  color: #374151;
  text-decoration: underline;
}

.hub-footer-copy {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .hub-main {
    width: calc(100vw - 24px);
    padding-top: 28px;
  }

  .hub-heading {
    font-size: 24px;
  }

  .hub-description {
    font-size: 15px;
  }
}