/* ============================================================
   一条工務店 コンテンツブリッジ
   記事下CTA / 関連表示 / データカード / 会員CTA / マイページ
   ============================================================ */
:root {
  --ichijo-cb-navy: #06315f;
  --ichijo-cb-navy-dark: #05284d;
  --ichijo-cb-blue: #1976b8;
  --ichijo-cb-teal: #0fa4a7;
  --ichijo-cb-teal-dark: #087f83;
  --ichijo-cb-orange: #ff861f;
  --ichijo-cb-orange-dark: #e96f0c;
  --ichijo-cb-text: #10294f;
  --ichijo-cb-muted: #52657d;
  --ichijo-cb-line: #dce8f2;
  --ichijo-cb-soft: #f4fbff;
  --ichijo-cb-shadow: 0 12px 28px rgba(12, 54, 94, 0.12);
  --ichijo-cb-shadow-soft: 0 8px 20px rgba(12, 54, 94, 0.08);
}

.ichijo-content-bridge-auto,
.ichijo-content-bridge-auto * ,
.ichijo-related-box,
.ichijo-related-box *,
.ichijo-data-card,
.ichijo-data-card *,
.ichijo-member-cta,
.ichijo-member-cta *,
.ichijo-member-dashboard,
.ichijo-member-dashboard * {
  box-sizing: border-box;
}

.ichijo-content-bridge-auto a,
.ichijo-related-box a,
.ichijo-data-card a,
.ichijo-member-cta a,
.ichijo-member-dashboard a {
  text-decoration: none;
}

/* ============================================================
   記事下CTA（既存 ichijo-article-cta 統合）
   ============================================================ */
.ichijo-article-cta {
  margin: 42px auto 34px;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 14%, rgba(15, 164, 167, .15), transparent 24%),
    radial-gradient(circle at 78% 84%, rgba(255, 134, 31, .13), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #eef9ff 56%, #e8f7fb 100%);
  border: 1px solid var(--ichijo-cb-line);
  box-shadow: var(--ichijo-cb-shadow);
  color: var(--ichijo-cb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.ichijo-article-cta * { box-sizing: border-box; }
.ichijo-article-cta a { text-decoration: none; }

.ichijo-article-cta-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.ichijo-article-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: var(--ichijo-cb-teal-dark);
  border: 1px solid rgba(15, 164, 167, .20);
  font-size: 13px;
  font-weight: 900;
}

.ichijo-article-cta .ichijo-article-cta-title {
  background: none !important;
  background-color: transparent !important;
  color: var(--ichijo-cb-navy-dark) !important;
  padding: 0 0 10px !important;
  margin: 0 0 10px !important;
  border: 0 !important;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  font-weight: 900;
}

.ichijo-article-cta-text {
  margin: 0 0 18px;
  color: var(--ichijo-cb-muted);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 700;
}

.ichijo-article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ichijo-article-cta-btn,
.ichijo-member-cta-btn,
.ichijo-data-card a,
.ichijo-dashboard-actions a,
.ichijo-dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(0,0,0,.13);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background .16s ease;
}

.ichijo-article-cta-btn:hover,
.ichijo-member-cta-btn:hover,
.ichijo-data-card a:hover,
.ichijo-dashboard-actions a:hover,
.ichijo-dashboard-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,.17);
  filter: brightness(1.02);
}

.ichijo-article-cta-btn-main,
.ichijo-member-cta-btn-main,
.ichijo-dashboard-actions a:first-child,
.ichijo-data-card a {
  background: linear-gradient(135deg, var(--ichijo-cb-teal), var(--ichijo-cb-teal-dark));
}

.ichijo-article-cta-btn-orange,
.ichijo-member-cta-btn-orange {
  background: linear-gradient(135deg, var(--ichijo-cb-orange), var(--ichijo-cb-orange-dark));
}

.ichijo-article-cta-btn-outline,
.ichijo-member-cta-btn-outline,
.ichijo-dashboard-actions a,
.ichijo-dashboard-link {
  background: #fff;
  color: var(--ichijo-cb-navy) !important;
  border: 1px solid var(--ichijo-cb-line);
}

.ichijo-article-cta-side {
  display: grid;
  gap: 12px;
}

.ichijo-article-cta-mini {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(220,232,242,.96);
  box-shadow: var(--ichijo-cb-shadow-soft);
}

.ichijo-article-cta-mini span {
  display: block;
  margin-bottom: 5px;
  color: var(--ichijo-cb-muted);
  font-size: 12px;
  font-weight: 900;
}

.ichijo-article-cta-mini strong {
  display: block;
  color: var(--ichijo-cb-navy-dark);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.ichijo-article-cta-mini small {
  font-size: 13px;
  color: var(--ichijo-cb-muted);
}

.ichijo-article-cta-note {
  margin: 0;
  padding: 12px 28px 18px;
  color: var(--ichijo-cb-muted);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 700;
  background: rgba(255,255,255,.46);
}

/* ============================================================
   関連アンケート / 関連記事
   ============================================================ */
.ichijo-related-box {
  margin: 34px auto;
  padding: 22px;
  border: 1px solid var(--ichijo-cb-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ichijo-cb-shadow-soft);
  color: var(--ichijo-cb-text);
}

.ichijo-related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.ichijo-related-eyebrow,
.ichijo-data-card-label,
.ichijo-member-cta-label,
.ichijo-dashboard-label {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f8f8;
  color: var(--ichijo-cb-teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.ichijo-related-head h2,
.ichijo-related-box h2,
.ichijo-member-cta h2,
.ichijo-data-card h2,
.ichijo-member-dashboard h2,
.ichijo-profile-completion h2 {
  margin: 0;
  color: var(--ichijo-cb-navy-dark) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.35;
  font-weight: 900;
}

.ichijo-related-list {
  display: grid;
  gap: 12px;
}

.ichijo-related-card {
  display: block;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--ichijo-cb-line);
  background: linear-gradient(135deg, #f8fcff, #ffffff);
  color: var(--ichijo-cb-text) !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ichijo-related-card:hover,
.ichijo-related-post-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 164, 167, .35);
  box-shadow: var(--ichijo-cb-shadow-soft);
}

.ichijo-related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.ichijo-related-meta b,
.ichijo-related-meta em {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.ichijo-related-meta b {
  background: #e8f8f8;
  color: var(--ichijo-cb-teal-dark);
}

.ichijo-related-meta em {
  background: #fff0dc;
  color: var(--ichijo-cb-orange-dark);
}

.ichijo-related-card strong,
.ichijo-related-post-card strong,
.ichijo-dashboard-list strong {
  display: block;
  color: var(--ichijo-cb-navy-dark);
  font-size: 15px;
  line-height: 1.55;
}

.ichijo-related-card small,
.ichijo-related-post-card small,
.ichijo-dashboard-list small {
  display: block;
  margin-top: 6px;
  color: var(--ichijo-cb-muted);
  font-size: 12px;
  font-weight: 700;
}

.ichijo-related-more {
  margin: 14px 0 0;
  text-align: right;
  font-size: 13px;
  font-weight: 900;
}

.ichijo-related-more a {
  color: var(--ichijo-cb-blue) !important;
}

.ichijo-related-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ichijo-related-post-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--ichijo-cb-line);
  border-radius: 14px;
  background: #fff;
  color: var(--ichijo-cb-text) !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ichijo-related-post-card strong,
.ichijo-related-post-card small {
  padding-inline: 14px;
}

.ichijo-related-post-card strong {
  padding-top: 12px;
}

.ichijo-related-post-card small {
  padding-bottom: 14px;
}

.ichijo-related-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--ichijo-cb-soft);
  overflow: hidden;
}

.ichijo-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   記事内データカード
   ============================================================ */
.ichijo-data-card {
  margin: 28px auto;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--ichijo-cb-line);
  background:
    radial-gradient(circle at 90% 10%, rgba(15, 164, 167, .12), transparent 28%),
    linear-gradient(135deg, #fff, #f4fbff);
  box-shadow: var(--ichijo-cb-shadow-soft);
  color: var(--ichijo-cb-text);
}

.ichijo-data-card p {
  margin: 10px 0 16px;
  color: var(--ichijo-cb-muted);
  font-weight: 700;
  line-height: 1.75;
}

.ichijo-data-card-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 4px;
}

.ichijo-data-card-metric strong {
  color: var(--ichijo-cb-navy-dark);
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1;
  font-weight: 900;
}

.ichijo-data-card-metric span,
.ichijo-data-card small {
  color: var(--ichijo-cb-muted);
  font-size: 13px;
  font-weight: 900;
}

.ichijo-data-card a {
  margin-top: 16px;
}

/* ============================================================
   会員CTA
   ============================================================ */
.ichijo-member-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin: 34px auto;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #ffd9b2;
  background: linear-gradient(135deg, #fff9f3, #ffffff);
  box-shadow: var(--ichijo-cb-shadow-soft);
  color: var(--ichijo-cb-text);
}

.ichijo-member-cta p {
  margin: 10px 0 0;
  color: var(--ichijo-cb-muted);
  line-height: 1.75;
  font-weight: 700;
}

.ichijo-member-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

/* ============================================================
   マイページ統合
   ============================================================ */
.ichijo-member-dashboard {
  max-width: 980px;
  margin: 24px auto 48px;
  color: var(--ichijo-cb-text);
}

.ichijo-dashboard-hero,
.ichijo-dashboard-card,
.ichijo-profile-completion {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--ichijo-cb-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ichijo-cb-shadow-soft);
}

.ichijo-dashboard-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(15, 164, 167, .14), transparent 28%),
    linear-gradient(135deg, #fff, #eef9ff);
}

.ichijo-dashboard-hero p,
.ichijo-dashboard-card p,
.ichijo-profile-completion p {
  margin: 10px 0 0;
  color: var(--ichijo-cb-muted);
  line-height: 1.75;
  font-weight: 700;
}

.ichijo-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ichijo-dashboard-actions.small a {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 13px;
}

.ichijo-dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

.ichijo-dashboard-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ichijo-dashboard-list a {
  display: block;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--ichijo-cb-line);
  background: #f8fcff;
  color: var(--ichijo-cb-text) !important;
}

.ichijo-dashboard-muted {
  color: var(--ichijo-cb-muted);
}

.ichijo-dashboard-big-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 8px;
}

.ichijo-dashboard-big-number strong {
  font-size: 44px;
  line-height: 1;
  color: var(--ichijo-cb-navy-dark);
  font-weight: 900;
}

.ichijo-dashboard-big-number span {
  color: var(--ichijo-cb-muted);
  font-weight: 900;
}

.ichijo-profile-completion {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #f3fbf6, #ffffff);
  border-color: #bfe7cc;
}

.ichijo-profile-completion a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  color: #087f83 !important;
  background: #fff;
  border: 1px solid #bfe7cc;
  font-weight: 900;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .ichijo-article-cta-inner,
  .ichijo-member-cta,
  .ichijo-dashboard-grid,
  .ichijo-profile-completion {
    grid-template-columns: 1fr;
  }

  .ichijo-article-cta-side {
    grid-template-columns: 1fr 1fr;
  }

  .ichijo-member-cta-actions {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .ichijo-article-cta,
  .ichijo-related-box,
  .ichijo-data-card,
  .ichijo-member-cta,
  .ichijo-dashboard-hero,
  .ichijo-dashboard-card,
  .ichijo-profile-completion {
    margin-left: 0;
    margin-right: 0;
    border-radius: 16px;
  }

  .ichijo-article-cta-inner,
  .ichijo-related-box,
  .ichijo-data-card,
  .ichijo-member-cta,
  .ichijo-dashboard-hero,
  .ichijo-dashboard-card,
  .ichijo-profile-completion {
    padding: 18px 16px;
  }

  .ichijo-article-cta-actions,
  .ichijo-member-cta-actions,
  .ichijo-dashboard-actions {
    display: grid;
  }

  .ichijo-article-cta-btn,
  .ichijo-member-cta-btn,
  .ichijo-data-card a,
  .ichijo-dashboard-actions a,
  .ichijo-dashboard-link {
    width: 100%;
  }

  .ichijo-article-cta-side,
  .ichijo-related-post-grid {
    grid-template-columns: 1fr;
  }

  .ichijo-article-cta-note {
    padding: 10px 16px 16px;
  }
}
