/* ========================================
   FX Salaryman - Global CSS
   ※このファイルは整理済みのクリーン版
======================================== */

/* ---- SWELLのレイアウト上書き ---- */
.home .l-article,
.archive .l-article {
  max-width: 100%;
}

.home .l-mainContent__inner {
  max-width: 100%;
  padding: 0;
}

/* ---- 旧サブ見出しスタイル（既存記事用） ---- */
.sub-heading {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #0f77ff;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #0f77ff;
  display: inline-block;
  font-family: 'Arial', sans-serif;
  line-height: 1;
}

/* ========================================
   Front Content Design
======================================== */

/* ---- 基本 ---- */
.fc-wrap {
  font-family: -apple-system, 'Helvetica Neue', Arial, 'Hiragino Sans', sans-serif;
}

.fc-section {
  padding: 80px 60px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.fc-section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.fc-accent { color: #0f77ff; }
.fc-thin { font-weight: 300; }

/* ---- SWELLのh2スタイルリセット ---- */
body .l-article .fc-wrap h2.fc-h2,
body .l-mainContent .fc-wrap h2.fc-h2 {
  font-size: 36px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.2 !important;
  color: #111 !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif !important;
}

body .l-article .fc-wrap h2.fc-h2::before,
body .l-article .fc-wrap h2.fc-h2::after {
  display: none !important;
  content: none !important;
}

/* ---- サブラベル ---- */
.fc-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: #0f77ff;
  border-bottom: 1.5px solid #0f77ff;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 8px;
}

/* ---- 本文テキスト ---- */
.fc-wrap .fc-body {
  font-size: 18px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 16px;
}

.fc-wrap .fc-body strong { color: #111; }

.fc-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: #0f77ff;
  margin-bottom: 16px;
}

.fc-catch {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

.fc-callout {
  font-size: 15px;
  font-weight: 700;
  color: #0f77ff;
  text-align: center;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin: 20px 0;
}

.fc-pullquote {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  border-left: 4px solid #0f77ff;
  padding: 14px 24px;
  background: #f5f8ff;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: normal;
}

/* ---- ボタン・リンク ---- */
.fc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  background: #0f77ff;
  padding: 14px 32px;
  border-radius: 980px;
  text-decoration: none;
  margin-top: 8px;
}

.fc-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #0f77ff !important;
  border-bottom: 1.5px solid #0f77ff;
  padding-bottom: 3px;
  text-decoration: none;
  margin-top: 16px;
}

/* ---- HERO ---- */
.fc-hero { padding: 96px 60px 80px; }

body .l-article .fc-wrap .fc-hero-title {
  font-size: 60px !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
  color: #111 !important;
  margin-bottom: 28px !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.fc-hero-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}

/* ---- 2カラムレイアウト ---- */
.fc-two-col {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 48px;
}

.fc-label { padding-top: 0; }

/* ---- スプリットレイアウト（STORY・MINDSET） ---- */
.fc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.fc-split-img { border-radius: 12px; overflow: hidden; }
.fc-split-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* ---- フィーチャーロー ---- */
.fc-rows { margin-top: 16px; }

.fc-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 28px 0;
  border-top: 1px solid #f0f0f0;
  align-items: start;
}

.fc-row:last-child { border-bottom: 1px solid #f0f0f0; }

.fc-row-label {
  font-size: 14px;
  font-weight: 700;
  color: #0f77ff;
  letter-spacing: 0.02em;
  padding-top: 2px;
}

.fc-row-title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.fc-row-text {
  font-size: 15px;
  color: #777;
  line-height: 1.8;
  margin: 0;
}

/* ---- 3カードグリッド ---- */
.fc-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid #f0f0f0;
  margin: 24px 0;
}

.fc-card {
  padding: 28px 28px 28px 0;
  border-right: 1px solid #f0f0f0;
}

.fc-card:nth-child(2) { padding-left: 28px; }
.fc-card:last-child { border-right: none; padding-left: 28px; padding-right: 0; }

.fc-card-num { font-size: 36px; font-weight: 800; color: #0f77ff; line-height: 1; margin-bottom: 10px; }
.fc-card-title { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 8px; }
.fc-card-body { font-size: 13px; color: #777; line-height: 1.7; margin: 0; }

/* ---- 統計グリッド（RESULT） ---- */
.fc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #f0f0f0;
  margin-top: 32px;
}

.fc-stat { padding: 40px 40px 40px 0; border-right: 1px solid #f0f0f0; }
.fc-stat:nth-child(2) { padding: 40px; }
.fc-stat:last-child { border-right: none; padding-left: 40px; padding-right: 0; }

.fc-stat-num { font-size: 48px; font-weight: 800; color: #0f77ff; line-height: 1; margin-bottom: 12px; letter-spacing: -0.03em; }
.fc-stat-title { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 8px; }
.fc-stat-body { font-size: 13px; color: #999; line-height: 1.8; margin: 0; }

/* ---- チェックリスト（番号付きカードグリッド） ---- */
.fc-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  counter-reset: checklist-counter;
}

.fc-checklist li {
  background: #f9fafb;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  counter-increment: checklist-counter;
}

.fc-checklist li::before {
  content: counter(checklist-counter, decimal-leading-zero);
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0f77ff;
  margin-bottom: 8px;
}

.fc-checklist li::after { display: none; }

/* ---- ブログカード ---- */
.fc-blog-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.fc-blog-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.fc-blog-card:hover { border-color: #0f77ff; }
.fc-blog-card-label { font-size: 10px; color: #999; white-space: nowrap; flex-shrink: 0; }
.fc-blog-card-title { font-size: 15px; font-weight: 600; color: #111; flex: 1; }
.fc-blog-card-arrow { color: #0f77ff; font-size: 16px; flex-shrink: 0; }

/* ---- MINDSETグリッド ---- */
.fc-mindset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* ---- MINDSETインタラクティブチェック ---- */
.fc-mindset-counter {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.fc-mindset-counter #mindset-count {
  font-size: 28px;
  font-weight: 800;
  color: #0f77ff;
  letter-spacing: -0.02em;
}

.fc-mindset-count-label { font-size: 13px; color: #999; }

.fc-mindset-check {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
}

.fc-mindset-check li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  transition: background 0.15s;
}

.fc-mindset-check li::before { display: none; }
.fc-mindset-check li::after { display: none; }
.fc-mindset-check li:hover { background: #f5f8ff; }
.fc-mindset-check li.checked { background: #e8f0fe; color: #0f77ff; }

.fc-check-box {
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  background: #fff;
}

.fc-mindset-check li.checked .fc-check-box {
  background: #0f77ff;
  border-color: #0f77ff;
}

.fc-mindset-check li.checked .fc-check-box::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: block;
}

.fc-check-text { flex: 1; }

.fc-mindset-result {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  margin-top: 8px;
  display: none;
}

.fc-mindset-result.fc-result-low { display: block; background: #f9fafb; color: #777; border: 1px solid #f0f0f0; }
.fc-mindset-result.fc-result-mid { display: block; background: #e8f0fe; color: #0f77ff; border: 1px solid #c7d9f8; }
.fc-mindset-result.fc-result-high { display: block; background: #0f77ff; color: #fff; }

/* ---- VIDEO B案 ---- */
.fc-video-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}

.fc-video-stats {
  display: flex;
  border-top: 1px solid #f0f0f0;
  margin-top: 24px;
}

.fc-video-stat { padding: 16px 20px 16px 0; border-right: 1px solid #f0f0f0; margin-right: 20px; }
.fc-video-stat-last { border-right: none; margin-right: 0; padding-right: 0; }
.fc-video-stat-num { font-size: 22px; font-weight: 800; color: #0f77ff; letter-spacing: -0.02em; }
.fc-video-stat-label { font-size: 11px; color: #999; margin-top: 2px; }

.fc-video-player {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  position: relative;
  aspect-ratio: 16 / 9;
}
.fc-video-player iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- TRADING RESULTSカード ---- */
.fc-results-card {
  background: #0a1628;
  border-radius: 16px;
  padding: 28px;
  color: #fff;
}

.fc-results-title {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.fc-results-stats { display: flex; flex-direction: column; }

.fc-results-stat {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fc-results-stat:last-child { border: none; padding-bottom: 0; }

.fc-results-label { font-size: 12px; color: rgba(255,255,255,0.5); padding-top: 4px; flex-shrink: 0; max-width: 50%; }
.fc-results-value { font-size: 18px; font-weight: 800; color: #0f77ff; letter-spacing: -0.02em; text-align: right; }
.fc-results-sub { font-size: 10px; color: rgba(255,255,255,0.25); text-align: right; margin-top: 3px; line-height: 1.4; }

/* ---- CTAセクション ---- */
.fc-cta { background: #fff; }
.fc-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }

body .l-article .fc-wrap .fc-cta-title {
  font-size: 44px !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  color: #111 !important;
  line-height: 1.1 !important;
  margin-bottom: 16px !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.fc-btn-white {
  flex-shrink: 0;
  display: inline-block;
  padding: 16px 44px;
  background: #0f77ff;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 980px;
  text-decoration: none;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ========================================
   アーカイブ ヘッダーオーバーレイ
======================================== */

/* l-content上余白を除去 */
.post-type-archive .l-content,
.has-archive-header-img .l-content {
  padding-top: 0 !important;
}

.fc-archive-header {
  position: relative;
  height: 320px;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.fc-archive-header-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.fc-archive-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px calc(var(--swl-pad_container, 48px) + 40px);
}

.fc-archive-header-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.fc-archive-header-title {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ========================================
   アーカイブ 番号付きリスト
======================================== */

.fc-fb-numlist {
  display: flex;
  flex-direction: column;
  margin-top: 2.5em;
}

.fc-fb-numitem {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 15px 40px;
  text-decoration: none;
  transition: background 0.2s;
}

.fc-fb-numitem:hover { background: #f5f8ff; }

.fc-fb-num {
  font-size: 56px;
  font-weight: 800;
  color: #e8e8e8;
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}

.fc-fb-numitem:hover .fc-fb-num { color: #0f77ff; }

.fc-fb-numitem-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-fb-cat-dark {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #0f77ff;
  text-transform: uppercase;
}

.fc-fb-numitem-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1.5;
}

.fc-fb-numitem-date {
  font-size: 11px;
  color: #999;
}

.fc-fb-numitem-thumb {
  width: 280px;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.fc-fb-pagination {
  padding: 40px 60px;
  text-align: center;
}

/* ========================================
   SWELL p-homeContent スタイル上書き
======================================== */

/* カード hover */
.p-homeContent .p-postList__link {
  border: 1px solid transparent;
  border-radius: 10px !important;
  transition: border-color 0.2s, background 0.2s;
}

.p-homeContent .p-postList__link:hover {
  border-color: #ccc;
  background: #f5f8ff;
}

/* サムネイル */
.p-homeContent .p-postList__thumb {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none !important;
}

.p-homeContent .c-postThumb__figure {
  border-radius: 10px;
  overflow: hidden;
}

/* タイトル */
.p-homeContent .p-postList__title {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.5;
  margin-bottom: 6px;
}

/* 日付 */
.p-homeContent .c-postTimes {
  font-size: 11px;
  color: #999;
}

/* 抜粋文を非表示 */
.p-homeContent .p-postList__excerpt {
  display: none;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  .fc-section { padding: 48px 24px; }
  .fc-hero { padding: 64px 24px 48px; }

  body .l-article .fc-wrap .fc-hero-title { font-size: 40px !important; }
  body .l-article .fc-wrap h2.fc-h2 { font-size: 28px !important; }
  body .l-article .fc-wrap .fc-cta-title { font-size: 32px !important; }

  .fc-hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .fc-two-col { grid-template-columns: 1fr; gap: 8px; }
  .fc-split { grid-template-columns: 1fr; gap: 32px; }
  .fc-mindset-grid { grid-template-columns: 1fr; gap: 32px; }
  .fc-cards-3 { grid-template-columns: 1fr; }
  .fc-card { padding: 24px 0 !important; border-right: none !important; border-bottom: 1px solid #f0f0f0; }
  .fc-card:last-child { border-bottom: none !important; }
  .fc-row { grid-template-columns: 1fr; gap: 8px; }
  .fc-checklist { grid-template-columns: 1fr; }

  .fc-video-layout { grid-template-columns: 1fr; }
  /* fc-two-col内のfc-video-layoutは列リセット済みだが、
     fc-two-colのgap:8pxだとfc-sub(VIDEO)とコンテンツの間が詰まりすぎるため調整 */
  .fc-two-col:has(.fc-video-layout) { gap: 16px; }
  .fc-cta-inner { flex-direction: column; align-items: flex-start; }

  .fc-stats { grid-template-columns: 1fr; }
  .fc-stat,
  .fc-stat:nth-child(2),
  .fc-stat:last-child {
    padding: 24px 0;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }
  .fc-stat:last-child { border-bottom: none; }

  .fc-archive-header { height: 220px; }
  .fc-archive-header-overlay { padding: 24px 16px; }
  .fc-archive-header-title { font-size: 28px; }
  .fc-fb-numitem { padding: 20px 0; gap: 12px; flex-direction: column; align-items: flex-start; }
  .fc-fb-numitem-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; }
  .fc-fb-num { font-size: 32px; width: 48px; }
  .fc-fb-numitem-title { font-size: 14px; }
  .fc-fb-pagination { padding: 32px 16px; }
}

@media (min-width: 600px) {
  .c-ttl404 { padding-top: 0 !important; }
}
