/* =============================================
   マタキテ・パス ブログ 共通CSS
   blog.css - 全記事・一覧ページで使用
   ============================================= */

:root {
  --blue: #4A90D9;
  --blue-dark: #2D6BAD;
  --bg: #F0F6FF;
  --bg-section: #E6EFF9;
  --white: #FFFFFF;
  --text: #1a1a2e;
  --text-sub: #4a5568;
  --text-muted: #6b7280;
  --border: rgba(74,144,217,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ロゴアニメーション */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== ヘッダー ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(240,246,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue);
}
.header-logo-text {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.header-logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-top: 1px;
}
.header-cta {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue) 40%, rgba(255,255,255,0.35) 50%, var(--blue) 60%, var(--blue) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-position 0.5s ease;
}
.header-cta:hover { background-position: 0% 0; }
.header-cta .cta-short { display: none; }

/* ===== ブログ一覧ページ ===== */
.blog-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}
.page-header {
  margin-bottom: 48px;
  text-align: center;
}
.page-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 12px;
}
.page-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
}
.page-desc {
  font-size: 15px;
  color: var(--text-muted);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(74,144,217,0.15);
}
.card-body { padding: 20px; }
.card-category {
  display: inline-block;
  background: rgba(74,144,217,0.1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text);
}
.card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 12px;
}

/* ===== 記事ページ ===== */
.article-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

/* パンくずリスト */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 記事ヘッダー */
.post-header { margin-bottom: 40px; }
.article-category {
  display: inline-block;
  background: rgba(74,144,217,0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.article-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 8px;
}

/* CTAボックス */
.cta-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-box-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}
.cta-box-text span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}
.cta-box-btn {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue) 40%, rgba(255,255,255,0.35) 50%, var(--blue) 60%, var(--blue) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-position 0.5s ease, box-shadow 0.2s;
}
.cta-box-btn:hover {
  background-position: 0% 0;
  box-shadow: 0 6px 20px rgba(74,144,217,0.4);
}

/* 記事本文 */
.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.article-body p { margin-bottom: 24px; }
.article-body h2 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 900;
  color: var(--text);
  margin: 48px 0 20px;
  padding-left: 16px;
  border-left: 4px solid var(--blue);
  line-height: 1.4;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 16px;
}

/* まとめリスト */
.summary-list {
  background: var(--bg-section);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
  list-style: none;
}
.summary-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}
.summary-list li:last-child { border-bottom: none; }
.summary-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  font-size: 14px;
}

/* 中間CTA */
.cta-mid {
  background: linear-gradient(135deg, rgba(74,144,217,0.08) 0%, rgba(74,144,217,0.15) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 40px 0;
  text-align: center;
}
.cta-mid p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 12px !important;
}
.cta-mid a {
  display: inline-block;
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue) 40%, rgba(255,255,255,0.35) 50%, var(--blue) 60%, var(--blue) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: background-position 0.5s ease, box-shadow 0.2s;
}
.cta-mid a:hover {
  background-position: 0% 0;
  box-shadow: 0 6px 20px rgba(74,144,217,0.4);
}

/* ハッシュタグ */
.hashtags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hashtag {
  background: rgba(74,144,217,0.08);
  color: var(--blue);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
}

/* 記事ナビゲーション */
.article-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.article-nav a {
  color: var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-nav a:hover { text-decoration: underline; }

/* ===== フッター ===== */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  margin-top: 80px;
}
footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin: 0 8px;
}
footer a:hover { color: white; }
.footer-copy { margin-top: 12px; font-size: 12px; }

/* ===== レスポンシブ ===== */
@media (max-width: 640px) {
  .cta-box { flex-direction: column; align-items: flex-start; }
  .article-nav { flex-direction: column; }
  .header-cta { padding: 8px 14px; font-size: 12px; }
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
}

@keyframes btn-shine {
  0%   { left: -80%; }
  100% { left: 130%; }
}
