/* ===================================
   Pivotalk Blog - Styles
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1B4F8A;
  --navy-deep: #0D2E52;
  --accent: #2D7DD2;
  --accent-dark: #1B6ABF;
  --teal: #2C7A7B;
  --bg: #F7F9FC;
  --bg-section: #EEF3F9;
  --card: #FFFFFF;
  --border: #D8E3EE;
  --text-dark: #2C3E50;
  --text-mid: #5A6A7A;
  --text-light: #8899AA;
  --orange-cta: #E67E22;
  --orange-hover: #D35400;
  --success: #059669;
  --font-heading: 'Noto Sans JP', 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Noto Sans JP', 'Zen Kaku Gothic New', sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ===== Container ===== */
.blog-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.blog-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.blog-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-logo {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.blog-logo span {
  color: var(--accent);
}
.blog-nav {
  display: flex;
  gap: 0.75rem;
}
.blog-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  background: transparent;
  transition: all 0.2s;
}
.blog-nav a:hover {
  background: var(--navy);
  color: #fff;
}

/* ===== Hero ===== */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1A5C9E 100%);
  padding: 60px 0 50px;
  color: #fff;
}
.blog-hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 12px;
}
.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.blog-hero-sub {
  font-size: 16px;
  opacity: 0.85;
  max-width: 600px;
}

/* ===== Blog Main ===== */
.blog-main {
  padding: 48px 20px 60px;
}

/* ===== Section ===== */
.blog-section {
  margin-bottom: 48px;
}
.blog-section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}

/* ===== Grid ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ===== Card ===== */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.blog-card-img {
  height: 160px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-eyecatch {
  margin: 0 0 24px;
  border-radius: 8px;
  overflow: hidden;
}
.article-eyecatch img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-card-tier {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.blog-card-body p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
}
.blog-card-meta {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-light);
}

/* ===== CTA ===== */
.blog-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1A5C9E 100%);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}
.blog-cta h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.6;
}
.blog-cta p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 28px;
}
.blog-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== Footer ===== */
.blog-footer {
  background: linear-gradient(180deg, #1B365D 0%, #091C38 100%);
  color: #CBD5E1;
  padding: 2.5rem 0;
}
.blog-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.blog-footer-logo {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.blog-footer-nav {
  display: flex;
  gap: 20px;
}
.blog-footer-nav a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.85rem;
}
.blog-footer-nav a:hover { color: #fff; }
.blog-footer-copy {
  font-size: 0.85rem;
  color: #94A3B8;
}
.blog-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-bottom: 12px;
}
.blog-footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.85rem;
}
.blog-footer-links a:hover { color: #fff; }

/* ===== Article Page ===== */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.article-date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.article-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.article-lead {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* Article Body */
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 32px 0 12px;
}
.article-body p {
  margin-bottom: 20px;
  line-height: 1.9;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  line-height: 1.9;
}
.article-body li {
  margin-bottom: 6px;
}
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: #F1F5F9;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: var(--text-mid);
}
.article-body strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* Talk Example Box */
.talk-box {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.talk-box-title {
  font-size: 13px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.talk-box p {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.8;
}
.talk-box p:last-child { margin-bottom: 0; }

/* Point Box */
.point-box {
  background: #E8F0FE;
  border: 1px solid #B8D4F0;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.point-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Article Table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
}
.article-body th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
}
.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.article-body tbody tr:nth-child(even) { background: var(--bg); }

/* Article CTA */
.article-cta {
  background: linear-gradient(135deg, #E8F0FE 0%, #D4E4F7 100%);
  border: 1px solid #B8D4F0;
  border-radius: 12px;
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.article-cta p {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.article-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.article-cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-articles h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list li {
  margin-bottom: 10px;
}
.related-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.related-list a:hover { text-decoration: underline; }

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: 12px;
  padding: 24px;
  margin: 40px 0;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.author-info p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== Scroll Animations ===== */
.scroll-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Blog card load animation */
.blog-card {
  animation: fadeInUp 0.5s ease-out both;
}

.blog-card:nth-child(1) { animation-delay: 0.05s; }
.blog-card:nth-child(2) { animation-delay: 0.15s; }
.blog-card:nth-child(3) { animation-delay: 0.25s; }

/* Hero entrance animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.blog-hero h1 {
  animation: fadeInUp 0.6s ease-out both;
}

.blog-hero-sub, .blog-hero-label {
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

/* Section title accent line */
.blog-section-title {
  position: relative;
  padding-left: 1rem;
  border-bottom: none;
  border-left: 4px solid var(--navy);
}

/* CTA button pulse */
.blog-cta-btn {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }
  50% { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(255, 255, 255, 0.15); }
}

/* Article CTA button pulse */
.article-cta-btn {
  animation: articleCtaPulse 2.5s ease-in-out infinite;
}

@keyframes articleCtaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(45, 125, 210, 0.2); }
  50% { box-shadow: 0 4px 24px rgba(45, 125, 210, 0.4), 0 0 0 4px rgba(45, 125, 210, 0.1); }
}

/* Article body fade-in on load */
.article-container {
  animation: fadeInUp 0.5s ease-out both;
}

/* Enhanced card shadows */
.blog-card:hover {
  box-shadow: 0 12px 32px rgba(27, 79, 138, 0.12), 0 0 0 1px rgba(45, 125, 210, 0.05);
}

/* Nav buttons - LP style */

/* Footer link hover */
.blog-footer-nav a,
.blog-footer-links a {
  position: relative;
  transition: color 0.2s;
}

.blog-footer-nav a:hover,
.blog-footer-links a:hover {
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .blog-header-inner { flex-direction: column; gap: 10px; }
  .blog-nav { gap: 16px; }
  .blog-hero { padding: 40px 0 32px; }
  .blog-hero h1 { font-size: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-cta h2 { font-size: 20px; }
  .article-title { font-size: 22px; }
  .article-body h2 { font-size: 19px; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .blog-footer-inner { flex-direction: column; text-align: center; }
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
