/* ==========================================================================
   home Components CSS — SSOT Design Tokens + Shared Components
   Version: 1.0.0
   Last updated: 2026-06-09
   正本: wp-content/uploads/home-shared/home-components.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --home-primary: #064A5C;
  --home-cta: #E5A93C;
  --home-success: #059669;

  /* Text Colors */
  --home-text: #0f2942;
  --home-text-sub: #475569;
  --home-text-light: #94a3b8;
  --home-text-white: #ffffff;

  /* Background Colors */
  --home-bg: #ffffff;
  --home-bg-light: #f8fafc;
  --home-bg-dark: #064A5C;

  /* Category Colors (7 categories) */
  --home-cat-keiri: #0B8A63;
  --home-cat-eigyo: #1A5B8C;
  --home-cat-backoffice: #6B4C9A;
  --home-cat-dx: #C74B16;
  --home-cat-jinji: #B8860B;
  --home-cat-marketing: #2D6B4F;
  --home-cat-it: #3B5998;

  /* Spacing */
  --home-space-xs: 4px;
  --home-space-sm: 8px;
  --home-space-md: 16px;
  --home-space-lg: 24px;
  --home-space-xl: 32px;
  --home-space-2xl: 48px;
  --home-space-3xl: 64px;

  /* Border Radius */
  --home-radius-sm: 4px;
  --home-radius-md: 8px;
  --home-radius-lg: 12px;
  --home-radius-full: 50px;

  /* Font */
  --home-font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', Meiryo, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Footer Component
   -------------------------------------------------------------------------- */
.home-footer {
  font-family: var(--home-font);
  color: var(--home-text-white);
  line-height: 1.7;
  box-sizing: border-box;
}

.home-footer *,
.home-footer *::before,
.home-footer *::after {
  box-sizing: border-box;
}

/* --- CTA Band --- */
.home-cta-band {
  background: linear-gradient(135deg, var(--home-primary) 0%, #0a6a82 100%);
  text-align: center;
  padding: 48px 20px;
}

.home-cta-band__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--home-text-white);
  margin-bottom: 8px;
  line-height: 1.5;
}

.home-cta-band__sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.home-cta-band__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- CTA Buttons --- */
.home-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--home-radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.4;
}

.home-btn-cta--primary {
  background: var(--home-cta);
  color: var(--home-text);
  border-color: var(--home-cta);
}

.home-btn-cta--primary:hover {
  background: #d4982e;
  border-color: #d4982e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.4);
}

.home-btn-cta--outline {
  background: transparent;
  color: var(--home-text-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.home-btn-cta--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--home-text-white);
}

/* --- Footer Body --- */
.home-footer__body {
  background: #042d3a;
  padding: 48px 20px 24px;
}

.home-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}

/* Brand Column */
.home-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-footer__logo {
  height: 40px;
  width: auto;
}

.home-footer__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.home-footer__contact {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-top: 8px;
}

.home-footer__contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.home-footer__contact a:hover {
  color: var(--home-cta);
}

.home-footer__phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--home-text-white);
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}

.home-footer__phone:hover {
  color: var(--home-cta);
}

/* Navigation Columns */
.home-footer__nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--home-text-white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.home-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-footer__nav-list li {
  margin-bottom: 10px;
}

.home-footer__nav-list a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.home-footer__nav-list a:hover {
  color: var(--home-cta);
}

/* --- Copyright Bar --- */
.home-footer__copyright {
  background: #031e28;
  text-align: center;
  padding: 16px 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   3. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .home-cta-band {
    padding: 36px 16px;
  }

  .home-cta-band__title {
    font-size: 18px;
  }

  .home-cta-band__sub {
    font-size: 14px;
  }

  .home-cta-band__buttons {
    flex-direction: column;
    align-items: center;
  }

  .home-btn-cta {
    width: 100%;
    max-width: 320px;
    padding: 12px 24px;
    font-size: 15px;
  }

  .home-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }

  .home-footer__body {
    padding: 32px 16px 20px;
  }

  .home-footer__nav-title {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .home-cta-band__title {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   4. Owned-Media Header Tagline (ブログ/メディアページのロゴ横タグライン)
   対象: 記事(single-post) / アーカイブ / カテゴリ / ブログTOP(page-id-1212)
   コーポレートページには表示しない
   -------------------------------------------------------------------------- */
body.single-post .logo-header,
body.archive .logo-header,
body.blog .logo-header,
body.page-id-1212 .logo-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

body.single-post .logo-header::after,
body.archive .logo-header::after,
body.blog .logo-header::after,
body.page-id-1212 .logo-header::after {
  content: "中小企業向けのAI導入メディア";
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid #d8dee6;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.02em;
  white-space: nowrap;
  align-self: center;
  line-height: 1.3;
}

@media (max-width: 768px) {
  body.single-post .logo-header::after,
  body.archive .logo-header::after,
  body.blog .logo-header::after,
  body.page-id-1212 .logo-header::after {
    display: block;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 2px;
    font-size: 10px;
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   5. ブログTOP（DK-BLOG-01 / [hmblog_sections]）UI調整
   snippet 2015 のインラインCSSを !important で上書き（snippet非破壊・可逆）
   -------------------------------------------------------------------------- */
/* #1 カテゴリ別パンクず（ホーム > 〇〇）を非表示 */
.hmblog-crumb { display: none !important; }

/* #2 h2の縦バー(｜)と見出しテキストの間隔を広げる / #6 セクション間マージンを詰める */
.hmblog-h2 { gap: 16px !important; margin: 20px 0 14px !important; }
.hmblog-section { margin: 0 0 22px !important; }

/* #4 ヘッダーのカテゴリナビ文字を拡大（12px→14px） */
.hmblog-cat { font-size: 14px !important; }

/* #9 記事カードの「home株式会社 編集部 」著者表示を非表示（ブログTOP） */
body.page-id-1212 .display-name,
body.page-id-1212 .author-name,
body.page-id-1212 .a-wrap .author,
.hmblog-card .display-name,
.hmblog-card .author-name { display: none !important; }

/* #11 フッター文字色を白系に　/ #10 サブフッターのマージン調整 */
.hmblog-footer__brand p,
.hmblog-footer__col .ct,
.hmblog-footer__copy,
.hmblog-footer__logo .l2 { color: #e2e8f0 !important; }
.hmblog-footer__col a { color: #f1f5f9 !important; }
.hmblog-footer__col a:hover { color: #fff !important; }
.hmblog-subfooter { margin-top: 28px !important; margin-bottom: 28px !important; }
