/* ============================================================
   融資のアイラボ sogyo.jp — 事例一覧ページ専用デザインポリッシュCSS
   design_polish_voice.css

   対象: 事例一覧ページ（/voice/）のみ
   使用方法: Lightning テーマ「外観 > カスタマイズ > 追加CSS」に
             design_polish_css_final.css の後に追加で貼り付ける
   作成日: 2026-05-18
   ============================================================ */

/* ========== 0. 追加トークン ========== */
:root {
  --voice-hero-gradient-start: #063d6e;
  --voice-hero-gradient-end:   #0b5faa;
  --voice-section-spacing:     80px;
  --voice-card-border:         #dde8f5;
  --voice-tag-sogyo-bg:        #e8f2ff;
  --voice-tag-sogyo-color:     #0b5faa;
  --voice-tag-bank-bg:         #fff3e0;
  --voice-tag-bank-color:      #b45309;
  --voice-tag-default-bg:      #f0f4f8;
  --voice-tag-default-color:   #475569;
}

/* ========== 1. 全体の余白 ========== */
body.page-voice .entry-body,
body.page-voice .main-section,
body.page-voice .site-body-container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

body.page-voice section {
  padding: var(--voice-section-spacing) 0;
}

body.page-voice section + section {
  border-top: none;
}

/* ========== 2. ヒーローセクション ========== */
body.page-voice .hero-common {
  position: relative;
  text-align: center;
  padding: 72px 32px 48px;
  background: linear-gradient(
    160deg,
    var(--voice-hero-gradient-start) 0%,
    var(--voice-hero-gradient-end) 100%
  );
  color: #fff;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  margin-bottom: 48px;
}

body.page-voice .hero-common::before {
  content: '';
  position: absolute;
  top: -35%;
  left: -15%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

body.page-voice .hero-common h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ヒーロー画像 */
body.page-voice .hero-common img {
  max-height: 300px;
  width: 100%;
  max-width: 720px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

body.page-voice .hero-common .lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 24px;
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

/* ヒーロー内の免責ミニ（重要：融資保証しない旨） */
body.page-voice .hero-common .disclaimer-mini {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 14px 20px;
  max-width: 680px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

body.page-voice .hero-common .disclaimer-mini p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
  line-height: 1.7;
  text-align: left;
}

/* ========== 3. カテゴリナビゲーション ========== */
body.page-voice .category-nav {
  background: var(--color-bg-light);
  border-radius: 20px;
  padding: 48px 40px;
  margin-bottom: 0;
}

body.page-voice .category-nav h2 {
  text-align: center;
  margin-bottom: 32px;
}

body.page-voice .category-nav h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--voice-hero-gradient-end);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  margin-top: 28px;
  border-left: 3px solid var(--voice-hero-gradient-end);
  padding-left: 12px;
}

body.page-voice .category-nav h3:first-of-type {
  margin-top: 0;
}

/* 融資種別ナビリスト */
body.page-voice .cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

body.page-voice .cat-list li {
  margin: 0;
}

body.page-voice .cat-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #fff;
  color: var(--voice-hero-gradient-end) !important;
  border: 2px solid var(--voice-card-border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

body.page-voice .cat-list a::before {
  content: '→';
  font-size: 0.8rem;
}

body.page-voice .cat-list a:hover {
  background: var(--voice-hero-gradient-end);
  color: #fff !important;
  border-color: var(--voice-hero-gradient-end);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11,95,170,0.18);
}

/* 業種別ナビリスト */
body.page-voice .cat-list-industry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

body.page-voice .cat-list-industry li {
  margin: 0;
}

body.page-voice .cat-list-industry a {
  display: inline-block;
  padding: 8px 18px;
  background: var(--voice-tag-default-bg);
  color: var(--voice-tag-default-color) !important;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

body.page-voice .cat-list-industry a:hover {
  background: var(--voice-hero-gradient-end);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ========== 4. 事例カードセクション ========== */
body.page-voice .case-list-placeholder {
  padding-top: 64px;
}

body.page-voice .case-list-placeholder h2 {
  text-align: center;
  margin-bottom: 16px;
}

body.page-voice .case-list-placeholder > p {
  text-align: center;
  color: var(--color-text-light);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 48px;
  line-height: 1.9;
}

/* 事例カード */
body.page-voice .case-card {
  background: #fff;
  border: 1px solid var(--voice-card-border);
  border-radius: 16px;
  padding: 32px 32px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  border-left: 4px solid var(--voice-hero-gradient-end);
}

body.page-voice .case-card:hover {
  box-shadow: 0 8px 24px rgba(11,95,170,0.1);
  transform: translateY(-3px);
}

/* 事例カードのメタ（タグ）エリア */
body.page-voice .case-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* タグ共通スタイル */
body.page-voice .tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--voice-tag-default-bg);
  color: var(--voice-tag-default-color);
  letter-spacing: 0.02em;
}

/* 「創業融資」タグ */
body.page-voice .tag:first-child {
  background: var(--voice-tag-sogyo-bg);
  color: var(--voice-tag-sogyo-color);
}

/* 「銀行融資」タグ — 2枚目のカードに自動適用 */
body.page-voice .case-card:nth-of-type(2) .tag:first-child {
  background: var(--voice-tag-bank-bg);
  color: var(--voice-tag-bank-color);
}

/* 銀行融資カードの左ボーダー変更 */
body.page-voice .case-card:nth-of-type(2) {
  border-left-color: #b45309;
}

/* 事例カードの見出し */
body.page-voice .case-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.6;
  border-left: none;
  padding-left: 0;
}

body.page-voice .case-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 0;
}

/* ========== 5. 「順次掲載予定」補足ボックス ========== */
body.page-voice .case-placeholder-note {
  background: #f0f5fb;
  border: 1px dashed var(--voice-card-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  margin-top: 32px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

body.page-voice .case-placeholder-note p {
  margin-bottom: 0;
}

/* ========== 6. 注意書き・免責文ボックス ========== */
body.page-voice .voice-notice,
body.page-voice .disclaimer-mini:not(.hero-common .disclaimer-mini) {
  max-width: 800px;
  margin-inline: auto;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 16px 24px;
  background: var(--color-bg-light);
  border-left: 3px solid var(--color-text-muted);
  border-radius: 0 8px 8px 0;
  line-height: 1.8;
}

/* ========== 7. グローバルCTA ========== */
body.page-voice .global-cta {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(
    160deg,
    var(--voice-hero-gradient-start) 0%,
    var(--voice-hero-gradient-end) 100%
  );
  border-radius: 24px;
  margin: 48px auto 40px;
  max-width: 1080px;
  color: #fff;
}

body.page-voice .global-cta h2 {
  color: #fff;
  border-bottom: none;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 16px;
  margin-top: 0;
}

body.page-voice .global-cta h2::after {
  display: none;
}

body.page-voice .global-cta .cta-box {
  background: transparent;
  padding: 24px 0 0;
  margin-top: 0;
  border-radius: 0;
}

body.page-voice .global-cta .cta-box p {
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.9;
}

body.page-voice .global-cta .cta-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

body.page-voice .global-cta .cta-list li {
  margin: 0;
}

body.page-voice .global-cta .btn-form {
  display: inline-block;
  padding: 16px 48px;
  background: #fff;
  color: var(--voice-hero-gradient-end) !important;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

body.page-voice .global-cta .btn-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

body.page-voice .global-cta .btn-phone {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.page-voice .global-cta .btn-phone:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

body.page-voice .global-cta .btn-phone::before {
  content: '📞';
}

body.page-voice .global-cta .btn-line {
  background: #06c755;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.page-voice .global-cta .btn-line:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}

/* ========== 8. スマホ対応 ========== */
@media (max-width: 768px) {
  :root {
    --voice-section-spacing: 56px;
  }

  body.page-voice .hero-common {
    padding: 48px 20px 40px;
    border-radius: 0 0 20px 20px;
  }

  body.page-voice .hero-common h1 {
    font-size: 1.5rem;
  }

  body.page-voice .hero-common img {
    max-height: 200px;
    border-radius: 12px;
  }

  body.page-voice .hero-common .lead {
    font-size: 0.95rem;
  }

  body.page-voice .hero-common .disclaimer-mini {
    padding: 12px 16px;
    text-align: left;
  }

  /* カテゴリナビ */
  body.page-voice .category-nav {
    padding: 36px 20px;
  }

  body.page-voice .cat-list,
  body.page-voice .cat-list-industry {
    gap: 8px;
  }

  body.page-voice .cat-list a {
    padding: 8px 16px;
    font-size: 0.88rem;
  }

  /* 事例カード */
  body.page-voice .case-card {
    padding: 24px 20px 20px;
  }

  body.page-voice .case-card h3 {
    font-size: 1rem;
  }

  /* CTA */
  body.page-voice .global-cta {
    padding: 48px 20px;
    border-radius: 16px;
    margin: 32px 12px;
  }

  body.page-voice .global-cta .cta-list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  body.page-voice .global-cta .btn-form,
  body.page-voice .global-cta .btn-phone,
  body.page-voice .global-cta .btn-line {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  body.page-voice .global-cta .btn-form {
    padding: 14px 36px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  body.page-voice .hero-common h1 {
    font-size: 1.3rem;
  }

  body.page-voice .hero-common img {
    max-height: 160px;
  }

  body.page-voice .case-card {
    padding: 20px 16px;
  }
}

/* ========== 9. Lightningテーマ上書き ========== */
body.page-voice .entry-body > h2 {
  border-bottom-color: var(--color-primary);
}
