/* ============================================================
   Lien Nexus — Community ページ専用スタイル
   ファイル名: community.css
   依存: lnx-style.css / lnx-pages.css（共通システム）
   ============================================================

   CSS変数は lnx-style.css 側で定義済みのものを使用。
   プレビュー用にフォールバック値を :root に定義しています。
   本番 WP 環境では lnx-style.css の変数が優先されます。
   ============================================================ */

/* ---------- フォールバック変数（プレビュー用） ---------- */
:root {
  --lnx-navy:       #0D1B2A;
  --lnx-navy-mid:   #152540;
  --lnx-gold:       #C9A84C;
  --lnx-gold-light: #e2c47a;
  --lnx-white:      #FAFAF6;
  --lnx-off-white:  #F2EDE4;
  --lnx-text:       #1a1a2e;
  --lnx-text-light: rgba(255,255,255,0.55);
  --lnx-border:     rgba(201,168,76,0.25);
  --lnx-font-en:    'DM Sans', sans-serif;
  --lnx-font-jp:    'Noto Sans JP', sans-serif;
  --lnx-transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   HERO
   ============================================================ */
.lnx-comm-hero {
  text-align: center;
}

.lnx-comm-hero__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lnx-comm-eyebrow {
  color: var(--lnx-gold);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.3em;
  font-family: var(--lnx-font-en);
  font-size: 12px;
  font-weight: 500;
}

.lnx-comm-hero__title {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 700;
  color: var(--lnx-white) !important;
  margin-bottom: 16px;
  line-height: 1.4;
}

.lnx-comm-hero__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.9;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   活動概要（About）
   ============================================================ */
.lnx-comm-about {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.lnx-eyebrow--dark {
  color: var(--lnx-gold);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.25em;
  font-family: var(--lnx-font-en);
  font-size: 12px;
  font-weight: 500;
}

.lnx-comm-section-title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--lnx-navy) !important;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.lnx-comm-body {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 0.75rem;
}

/* Stat card */
.lnx-comm-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--lnx-gold);
  position: relative;
  min-width: 110px;
}

.lnx-comm-stat-card::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  pointer-events: none;
}

.lnx-comm-stat-card__num {
  font-family: var(--lnx-font-en);
  font-size: 3rem;
  font-weight: 600;
  color: var(--lnx-gold);
  line-height: 1;
}

.lnx-comm-stat-card__rule {
  width: 1px;
  height: 1.25rem;
  background: var(--lnx-gold);
}

.lnx-comm-stat-card__label {
  font-family: var(--lnx-font-jp);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #777;
  white-space: nowrap;
}

/* ============================================================
   セクションヘッダー
   ============================================================ */
.lnx-comm-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ============================================================
   活動カードグリッド
   ============================================================ */
.lnx-comm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* カード */
.lnx-comm-card {
  background: var(--lnx-white);
  border: 1px solid rgba(13, 27, 42, 0.1);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: transform var(--lnx-transition), box-shadow var(--lnx-transition);
}

.lnx-comm-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lnx-gold), #9e7d2e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--lnx-transition);
}

.lnx-comm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(13, 27, 42, 0.1);
}

.lnx-comm-card:hover::after {
  transform: scaleX(1);
}

/* Featured カード */
.lnx-comm-card--featured {
  background: var(--lnx-navy);
  border: 1px solid var(--lnx-gold);
}

.lnx-comm-card--featured::after {
  transform: scaleX(1);
}

.lnx-comm-card--featured .lnx-comm-card__cat {
  color: var(--lnx-gold) !important;
}

.lnx-comm-card--featured .lnx-comm-card__name {
  color: var(--lnx-white) !important;
}

.lnx-comm-card--featured .lnx-comm-card__desc {
  color: rgba(255, 255, 255, 0.55) !important;
}

.lnx-comm-card--featured .lnx-comm-card__icon {
  color: var(--lnx-gold) !important;
}

/* FEATUREDバッジ */
.lnx-comm-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--lnx-font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  background: var(--lnx-gold);
  color: var(--lnx-navy);
  padding: 3px 8px;
}

/* アイコン */
.lnx-comm-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--lnx-gold);
  flex-shrink: 0;
}

.lnx-comm-card__icon svg {
  width: 100%;
  height: 100%;
}

/* カード本文 */
.lnx-comm-card__cat {
  font-family: var(--lnx-font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--lnx-gold);
}

.lnx-comm-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--lnx-navy) !important;
  line-height: 1.5;
  margin: 0;
}

.lnx-comm-card__desc {
  font-size: 13px;
  color: #555;
  line-height: 1.85;
}

.lnx-comm-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* featured カード内のnavyバッジは枠線スタイルに変更 */
.lnx-comm-card--featured .lnx-badge--navy {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* featured カード内リンク */
.lnx-comm-card__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--lnx-gold-light);
  text-decoration: none;
  transition: color var(--lnx-transition), letter-spacing var(--lnx-transition);
}

.lnx-comm-card__link:hover {
  color: var(--lnx-gold);
  letter-spacing: 0.03em;
}

/* ============================================================
   おしごと体験 スポットライト
   ============================================================ */
.lnx-comm-spotlight__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.lnx-comm-spotlight__title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  color: var(--lnx-white) !important;
  line-height: 1.45;
  margin: 12px 0 16px;
}

.lnx-comm-spotlight__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.95;
  margin-bottom: 1.25rem;
}

.lnx-comm-spotlight__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lnx-comm-spotlight__list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.7;
}

.lnx-comm-spotlight__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--lnx-gold);
  font-size: 11px;
  top: 3px;
}

/* CTA ボックス */
.lnx-comm-cta-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.35);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.lnx-comm-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lnx-gold), #9e7d2e);
}

.lnx-comm-cta-box__label {
  font-family: var(--lnx-font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--lnx-gold);
}

.lnx-comm-cta-box__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--lnx-white) !important;
  line-height: 1.6;
  margin: 0;
}

.lnx-comm-cta-box__rule {
  width: 2rem;
  height: 1px;
  background: var(--lnx-gold);
  margin: 4px 0;
}

/* ボックス内ボタン：プライマリ */
.lnx-comm-cta-btn {
  text-align: center;
}

/* ゴーストボタン（スポットライト内） */
.lnx-comm-btn--ghost {
  display: block;
  text-align: center;
  padding: 0.75rem 1.25rem;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: transparent;
  text-decoration: none !important;
  transition: color var(--lnx-transition), border-color var(--lnx-transition), background var(--lnx-transition);
}

.lnx-comm-btn--ghost:hover {
  color: var(--lnx-gold) !important;
  border-color: var(--lnx-gold);
  background: rgba(201, 168, 76, 0.08);
}

/* ============================================================
   注記
   ============================================================ */
.lnx-comm-note-section {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.lnx-comm-note {
  font-size: 12px;
  color: #888;
  line-height: 1.8;
  text-align: center;
}

/* ============================================================
   Nav：現在ページマーカー
   ============================================================ */
.lnx-nav__current {
  color: var(--lnx-gold) !important;
  position: relative;
}

.lnx-nav__current::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--lnx-gold);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {

  /* About グリッド */
  .lnx-comm-about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lnx-comm-about__stat {
    display: none;
  }

  /* 活動カード */
  .lnx-comm-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lnx-comm-card {
    padding: 1.5rem 1.25rem;
  }

  /* スポットライト */
  .lnx-comm-spotlight__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lnx-comm-cta-box {
    padding: 1.75rem 1.25rem;
  }

  /* Hero */
  .lnx-comm-hero__desc br {
    display: none;
  }
}

@media (max-width: 480px) {
  .lnx-comm-hero__title {
    font-size: 24px;
  }
}