/*
 Theme Name:   LX Career - 経理転職相談
 Theme URI:    http://lxcareer.com
 Description:  Twenty Twenty-Five 子テーマ｜経理転職のリード獲得に最適化
 Author:       LX Career
 Template:     twentytwentyfive
 Version:      1.0.0
 Text Domain:  lxcareer-child
*/

/* ==========================================================================
   1. CSS Variables - ブランドカラー定義
   ========================================================================== */
:root {
  --lx-primary: #1a56db;       /* メインブルー */
  --lx-primary-dark: #1242b0;  /* ホバー用ダークブルー */
  --lx-accent: #06c755;        /* LINE グリーン */
  --lx-accent-dark: #05a847;   /* LINE ホバー */
  --lx-text: #1f2937;          /* 本文テキスト */
  --lx-text-light: #6b7280;    /* サブテキスト */
  --lx-bg: #ffffff;
  --lx-bg-light: #f9fafb;
  --lx-bg-accent: #eff6ff;     /* 薄いブルー背景 */
  --lx-border: #e5e7eb;
  --lx-radius: 8px;
  --lx-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --lx-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* ==========================================================================
   2. グローバルリセット・ベーススタイル
   ========================================================================== */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--lx-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   3. ヘッダー
   ========================================================================== */
header.wp-block-template-part {
  background: var(--lx-bg);
  border-bottom: 1px solid var(--lx-border);
  box-shadow: var(--lx-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* サイトタイトル */
header .wp-block-site-title a {
  color: var(--lx-primary) !important;
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* ナビゲーションリンク */
header nav a {
  color: var(--lx-text) !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
header nav a:hover {
  color: var(--lx-primary) !important;
}

/* ==========================================================================
   4. ヘッダーCTAバナー（LINE誘導）
   ========================================================================== */
.lx-header-cta {
  background: linear-gradient(135deg, var(--lx-primary) 0%, #2563eb 100%);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  z-index: 99;
}
.lx-header-cta a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}
.lx-header-cta a:hover {
  text-decoration: none;
}

/* ==========================================================================
   5. メインコンテンツエリア
   ========================================================================== */
.wp-block-post-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 見出しスタイル */
.wp-block-post-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lx-text);
  border-left: 4px solid var(--lx-primary);
  padding-left: 16px;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.wp-block-post-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lx-text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lx-border);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

/* 段落の読みやすさ */
.wp-block-post-content p {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   6. 記事内CTAボックス
   ========================================================================== */
.lx-cta-box {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 2px solid var(--lx-primary);
  border-radius: 12px;
  padding: 28px 24px;
  margin: 2.5rem 0;
  text-align: center;
}
.lx-cta-box__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--lx-primary);
  margin-bottom: 10px;
}
.lx-cta-box__text {
  font-size: 0.92rem;
  color: var(--lx-text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}
.lx-cta-box__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lx-accent);
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
}
.lx-cta-box__btn:hover {
  background: var(--lx-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45);
}
.lx-cta-box__btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.lx-cta-box__note {
  font-size: 0.8rem;
  color: var(--lx-text-light);
  margin-top: 10px;
}

/* ==========================================================================
   7. 追従フローティングバナー（モバイル）
   ========================================================================== */
.lx-floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  border-top: 1px solid var(--lx-border);
}
.lx-floating-cta__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.lx-floating-cta__text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lx-text);
  flex: 1;
  line-height: 1.4;
}
.lx-floating-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lx-accent);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s;
}
.lx-floating-cta__btn:hover {
  background: var(--lx-accent-dark);
}
.lx-floating-cta__close {
  position: absolute;
  top: -12px;
  right: 12px;
  width: 26px;
  height: 26px;
  background: #fff;
  border: 1px solid var(--lx-border);
  border-radius: 50%;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  color: var(--lx-text-light);
  box-shadow: var(--lx-shadow);
}

@media (max-width: 768px) {
  .lx-floating-cta {
    display: block;
  }
  /* フローティングバナー分の余白 */
  body {
    padding-bottom: 72px;
  }
}

/* ==========================================================================
   8. サイドバー（PC表示時の2カラムレイアウト用）
   ========================================================================== */
.lx-layout-wrap {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 20px;
}
.lx-layout-main {
  flex: 1;
  min-width: 0;
}
.lx-layout-sidebar {
  width: 300px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .lx-layout-wrap {
    flex-direction: column;
  }
  .lx-layout-sidebar {
    width: 100%;
  }
}

/* サイドバーウィジェット共通 */
.lx-sidebar-widget {
  background: var(--lx-bg);
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: var(--lx-shadow);
}
.lx-sidebar-widget__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--lx-text);
  border-bottom: 2px solid var(--lx-primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* プロフィールウィジェット */
.lx-profile {
  text-align: center;
}
.lx-profile__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid var(--lx-bg-accent);
}
.lx-profile__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.lx-profile__role {
  font-size: 0.82rem;
  color: var(--lx-text-light);
  margin-bottom: 12px;
}
.lx-profile__bio {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--lx-text);
  text-align: left;
}

/* サイドバーCTA */
.lx-sidebar-cta {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid var(--lx-primary);
  text-align: center;
}
.lx-sidebar-cta__text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lx-text);
  margin-bottom: 14px;
  line-height: 1.6;
}
.lx-sidebar-cta .lx-cta-box__btn {
  font-size: 0.92rem;
  padding: 12px 24px;
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   9. LP風トップページ
   ========================================================================== */
/* ヒーローセクション */
.lx-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 50%, #2563eb 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
}
.lx-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
  background-size: 40px 40px;
}
.lx-hero__inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.lx-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.lx-hero__title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .lx-hero__title { font-size: 2.5rem; }
}
.lx-hero__subtitle {
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 30px;
}
.lx-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lx-accent);
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
}
.lx-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 199, 85, 0.5);
}
.lx-hero__note {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 12px;
}

/* 特徴セクション */
.lx-features {
  padding: 60px 20px;
  background: var(--lx-bg-light);
}
.lx-features__inner {
  max-width: 900px;
  margin: 0 auto;
}
.lx-section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lx-text);
  margin-bottom: 40px;
}
.lx-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .lx-features__grid {
    grid-template-columns: 1fr;
  }
}
.lx-feature-card {
  background: var(--lx-bg);
  border: 1px solid var(--lx-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--lx-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.lx-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lx-shadow-lg);
}
.lx-feature-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.lx-feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.lx-feature-card__text {
  font-size: 0.88rem;
  color: var(--lx-text-light);
  line-height: 1.7;
}

/* 記事一覧セクション */
.lx-articles {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.lx-article-card {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--lx-border);
  text-decoration: none;
  color: var(--lx-text);
  transition: opacity 0.2s;
}
.lx-article-card:hover {
  opacity: 0.8;
}
.lx-article-card__thumb {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--lx-radius);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .lx-article-card {
    flex-direction: column;
    gap: 12px;
  }
  .lx-article-card__thumb {
    width: 100%;
    height: 180px;
  }
}
.lx-article-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.5;
}
.lx-article-card__excerpt {
  font-size: 0.85rem;
  color: var(--lx-text-light);
  line-height: 1.6;
}

/* ボトムCTA */
.lx-bottom-cta {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.lx-bottom-cta__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.lx-bottom-cta__text {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ==========================================================================
   10. フッター
   ========================================================================== */
footer.wp-block-template-part {
  background: #111827;
  color: #d1d5db;
}
footer a {
  color: #9ca3af !important;
  transition: color 0.2s;
}
footer a:hover {
  color: #fff !important;
}

/* ==========================================================================
   11. 記事カード（一覧ページ）
   ========================================================================== */
.wp-block-post {
  border-bottom: 1px solid var(--lx-border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   12. 引用ボックス（この記事でわかること）
   ========================================================================== */
.wp-block-quote {
  background: var(--lx-bg-accent);
  border-left: 4px solid var(--lx-primary);
  border-radius: 0 var(--lx-radius) var(--lx-radius) 0;
  padding: 24px 28px;
  margin: 2rem 0;
}

/* ==========================================================================
   13. テーブルスタイル
   ========================================================================== */
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}
.wp-block-table th {
  background: var(--lx-primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
}
.wp-block-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--lx-border);
}
.wp-block-table tr:nth-child(even) td {
  background: var(--lx-bg-light);
}

/* ==========================================================================
   14. WordPress管理バー調整
   ========================================================================== */
body.admin-bar .lx-floating-cta {
  /* 管理バー表示時の位置調整 */
}
body.admin-bar header.wp-block-template-part {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar header.wp-block-template-part {
    top: 46px;
  }
}
