/* ==========================================================================
   即日資金調達のススメ - 完全スマホファースト & 実在No.1サイトTTP専用スタイルシート
   幅375px実機完全最適化・縮小表示ゼロ・ヘッダー衝突ゼロ・横はみ出し完全防止
   ========================================================================== */

:root {
  --primary-navy: #0f2b48;
  --primary-blue: #1a4473;
  --primary-light: #f0f4f9;
  --accent-orange: #e65100;
  --accent-orange-hover: #bf360c;
  --accent-gold: #f59e0b;
  --success-green: #059669;
  --success-light: #ecfdf5;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 4px 12px rgba(230, 81, 0, 0.35);
  --max-content-width: 960px;
}

/* リセット & 横スクロール揺れ防止 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  color: var(--text-dark);
  background-color: var(--bg-page);
  overflow-x: hidden;
  width: 100%;
  word-break: break-word;
}

/* 景品表示法対応 PR表記バー */
.pr-disclosure-bar {
  background-color: #f1f5f9;
  color: #475569;
  font-size: 11px;
  padding: 5px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.4;
}

/* サイトヘッダー (スマホ幅375pxで衝突・折り返し崩れゼロ設計) */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.site-logo .site-tagline {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-blue);
  letter-spacing: 0.02em;
}

.site-logo .site-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-logo .site-title::before {
  content: '⚡';
  font-size: 16px;
}

/* クイックナビゲーションバー（スマホ横スクロールピルタグ） */
.quick-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.quick-nav-inner {
  display: flex;
  gap: 8px;
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: var(--primary-light);
  color: var(--primary-navy);
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid #dbeafe;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-pill:hover, .nav-pill.active {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

/* メインコンテナ */
.main-wrapper {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ファーストビュー / ヒーローエリア */
.hero-box {
  background: linear-gradient(135deg, #0f2b48 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-badge {
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.hero-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 14px;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 16px;
}

/* ヒーロー内の3大即答サマリー */
.hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.feature-icon {
  background: #ff9100;
  color: #0f2b48;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 1. 資金調達プロ固有アーキテクチャ: 今週金曜の資金ショート回避タイムライン */
.shortage-timeline-box {
  background: #fffbeb;
  border: 2px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin: 24px 0;
}

.module-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.module-tag {
  background: #b45309;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.module-title {
  font-size: 17px;
  font-weight: 800;
  color: #78350f;
  line-height: 1.35;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.step-card {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-time-badge {
  background: #f59e0b;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  text-align: center;
  min-width: 60px;
}

.step-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

/* 2. 資金調達プロ固有アーキテクチャ: 2社間取引先非通知判定シールド */
.privacy-shield-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin: 24px 0;
}

.privacy-shield-box .module-tag {
  background: #15803d;
}

.privacy-shield-box .module-title {
  color: #14532d;
}

.shield-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.shield-item {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.shield-check {
  color: #16a34a;
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.shield-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.shield-text p {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

/* 3. 資金調達プロ固有アーキテクチャ: 赤字決算でも通る必要書類3点チェック */
.doc-check-box {
  background: #eff6ff;
  border: 2px solid #93c5fd;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin: 24px 0;
}

.doc-check-box .module-tag {
  background: #1d4ed8;
}

.doc-check-box .module-title {
  color: #1e3a8a;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.doc-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.doc-num {
  background: #2563eb;
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.doc-desc h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.doc-desc p {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

/* 記事コンテンツ共通見出し */
.content-section {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.section-h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy);
  border-left: 4px solid var(--accent-orange);
  padding-left: 10px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 20px 0 10px;
  line-height: 1.45;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 6px;
}

.content-p {
  font-size: 14.5px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 16px;
}

/* レスポンシブ表・カード型自動変換 (幅375pxで縮小せず読める完全設計) */
.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.table-scroll-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 4px;
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px; /* スマホでは横スクロールで文字縮小を完全防止 */
  font-size: 13px;
}

.spec-table th, .spec-table td {
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  text-align: left;
  line-height: 1.5;
}

.spec-table th {
  background-color: var(--primary-light);
  color: var(--primary-navy);
  font-weight: 700;
  white-space: nowrap;
}

.spec-table tr:nth-child(even) td {
  background-color: #fafbfd;
}

.spec-table .highlight-cell {
  background-color: #fff7ed !important;
  color: var(--accent-orange);
  font-weight: 700;
}

/* CTA成約バナー・ボタン設計 (親指タップ領域 48px以上・マイクロコピー・A8タグ完全格納) */
.cta-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  color: #ffffff;
  text-align: center;
  margin: 28px 0;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-tag {
  display: inline-block;
  background: #f59e0b;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.cta-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 8px;
}

.cta-desc {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 18px;
  line-height: 1.55;
}

.cta-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  background: linear-gradient(135deg, #ff6d00 0%, #e65100 100%);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none !important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding: 12px 20px;
  text-align: center;
  border: none;
  cursor: pointer;
}

.cta-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 81, 0, 0.45);
}

.cta-microcopy {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 10px;
  line-height: 1.4;
}

/* 公式一次条件明示ボックス */
.official-terms-card {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 18px;
  text-align: left;
}

.terms-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.terms-content {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.5;
}

/* 関連記事カードグリッド */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.article-nav-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
}

.article-nav-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.card-category-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-orange);
  background: #fff7ed;
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.card-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.4;
}

.card-summary {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* フッター */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 30px 16px 20px;
  border-top: 1px solid #1e293b;
  font-size: 12px;
  line-height: 1.6;
}

.footer-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy {
  color: #64748b;
  font-size: 11px;
}

/* ==========================================================================
   メディアクエリ: タブレット・PC向け拡張 (幅640px以上)
   ========================================================================== */
@media (min-width: 640px) {
  .hero-box {
    padding: 32px 28px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-features {
    grid-template-columns: repeat(3, 1fr);
  }
  .shield-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .doc-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-box {
    padding: 36px 32px;
  }
  .cta-title {
    font-size: 22px;
  }
  .cta-action-btn {
    max-width: 440px;
    margin: 0 auto;
  }
}
