/* Happiter Blog Stylesheet
   LP (index.html) と同じカラーパレットを継承するが、長文記事用に最適化
   読み物として読みやすい行間・字間・行幅を優先 */

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

:root {
  --c-green-deep: #1a5d4a;
  --c-green: #2d8a6b;
  --c-green-soft: #5fb89a;
  --c-green-mist: #e8f4ee;
  --c-blue-deep: #1d4e89;
  --c-blue: #2a78b8;
  --c-cream: #fdf9f3;
  --c-warm: #fff8ec;
  --c-text: #2c3e2e;
  --c-text-soft: #5a6b5d;
  --c-cta: #ff6b35;
  --c-cta-deep: #e54d20;
  --c-cta-glow: rgba(255,107,53,0.5);
  --c-border: #e3ddd0;
  --c-bg-quote: #fdf6ed;
  --shadow-sm: 0 2px 10px rgba(31,95,74,0.08);
  --shadow-md: 0 6px 24px rgba(31,95,74,0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Meiryo", system-ui, -apple-system, sans-serif;
  color: var(--c-text);
  line-height: 1.95;
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

img { max-width: 100%; display: block; }
a { color: var(--c-blue-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--c-cta-deep); opacity: 0.9; }
ul, ol { padding-left: 1.5em; }

/* ========== Site Header ========== */
.site-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31,95,74,0.08);
  position: sticky; top: 0; z-index: 100;
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1100px; margin: 0 auto;
}
.site-header-inner .logo {
  font-weight: 700; font-size: 18px;
  color: var(--c-green-deep);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  display: inline-block; width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-green) 0%, var(--c-blue) 100%);
  position: relative;
}
.logo-mark::after {
  content: "H"; position: absolute; inset: 0;
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 16px;
}
.header-cta {
  display: inline-block; padding: 10px 22px;
  background: linear-gradient(135deg, var(--c-cta) 0%, var(--c-cta-deep) 100%);
  color: white !important;
  font-weight: 700; border-radius: 999px; font-size: 13px;
  box-shadow: 0 4px 14px var(--c-cta-glow);
  text-decoration: none;
  transition: transform 0.2s;
}
.header-cta:hover { transform: translateY(-2px); opacity: 1; color: white; }

/* ========== Article ========== */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 24px;
}

.article-breadcrumb {
  font-size: 13px;
  color: var(--c-text-soft);
  margin-bottom: 28px;
}
.article-breadcrumb a { color: var(--c-text-soft); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--c-blue-deep); text-decoration: underline; }

.article-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--c-green-mist);
  color: var(--c-green-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.article-title {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.45;
  color: var(--c-green-deep);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--c-text-soft);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
}

.article-body {
  font-size: 16px;
  color: var(--c-text);
}

.article-body > blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  background: var(--c-bg-quote);
  border-left: 4px solid var(--c-cta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.9;
}
.article-body > blockquote p { margin: 0 0 8px; }
.article-body > blockquote p:last-child { margin-bottom: 0; }

.article-body h2 {
  font-size: 24px;
  color: var(--c-green-deep);
  margin: 56px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-green-soft);
  line-height: 1.4;
}

.article-body h3 {
  font-size: 19px;
  color: var(--c-blue-deep);
  margin: 36px 0 14px;
  line-height: 1.5;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body strong {
  font-weight: 800;
  background: linear-gradient(transparent 60%, rgba(255,107,53,0.18) 60%);
  padding: 0 2px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 0;
  padding-left: 1.5em;
}
.article-body li { margin-bottom: 8px; }

.article-body hr {
  border: 0;
  height: 1px;
  background: var(--c-border);
  margin: 50px 0;
}

/* CTA カード (記事中 + 末尾) */
.article-cta {
  margin: 50px 0;
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--c-warm) 0%, var(--c-green-mist) 100%);
  border-radius: var(--radius-md);
  border: 2px solid var(--c-green-soft);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.article-cta h3 {
  color: var(--c-green-deep);
  font-size: 20px;
  margin-bottom: 12px;
  border: none;
  padding: 0;
}
.article-cta p {
  font-size: 14px;
  color: var(--c-text-soft);
  margin-bottom: 22px;
}
.article-cta-btn {
  display: inline-block;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--c-cta) 0%, var(--c-cta-deep) 100%);
  color: white !important;
  font-weight: 800;
  border-radius: 999px;
  font-size: 16px;
  box-shadow: 0 8px 24px var(--c-cta-glow);
  text-decoration: none;
  transition: transform 0.2s;
}
.article-cta-btn:hover { transform: translateY(-2px); opacity: 1; color: white; }
.article-cta-note {
  font-size: 12px;
  color: var(--c-text-soft);
  margin-top: 14px;
}

/* 関連記事 */
.related-articles {
  margin: 50px 0 0;
  padding: 28px 24px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.related-articles h3 {
  font-size: 17px;
  color: var(--c-green-deep);
  margin-bottom: 16px;
  border: none;
  padding: 0;
}
.related-articles ul {
  list-style: none;
  padding: 0;
}
.related-articles li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-border);
  font-size: 14px;
}
.related-articles li:last-child { border-bottom: 0; }
.related-articles li a {
  color: var(--c-blue-deep);
  text-decoration: none;
}
.related-articles li.coming-soon {
  color: var(--c-text-soft);
  font-style: italic;
}
.related-articles li.coming-soon::before { content: "📝 (準備中) "; font-style: normal; }

/* footer */
.site-footer {
  margin-top: 70px;
  padding: 30px 24px;
  background: var(--c-green-deep);
  color: white;
  text-align: center;
  font-size: 13px;
}
.site-footer a { color: white; text-decoration: underline; }

/* ========== Blog Index ========== */
.blog-hero {
  background:
    radial-gradient(ellipse at top left, rgba(95,184,154,0.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--c-warm) 0%, var(--c-green-mist) 100%);
  padding: 60px 24px 50px;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--c-green-deep);
  line-height: 1.4;
  margin-bottom: 14px;
  font-weight: 900;
}
.blog-hero p {
  font-size: 15px;
  color: var(--c-text-soft);
  max-width: 600px;
  margin: 0 auto;
}

.blog-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px;
  display: grid;
  gap: 24px;
}

.blog-card {
  padding: 28px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.blog-card.is-published a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card.is-coming-soon {
  background: #f6f3eb;
  opacity: 0.7;
}

.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--c-green-mist);
  color: var(--c-green-deep);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.blog-card-tag.tag-empathy { background: #fdebd6; color: #8a3b00; }
.blog-card-tag.tag-numbers { background: #e0eaff; color: #1d4e89; }
.blog-card-tag.tag-case { background: var(--c-green-mist); color: var(--c-green-deep); }

.blog-card h2 {
  font-size: 19px;
  color: var(--c-green-deep);
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 800;
}
.blog-card.is-coming-soon h2 {
  color: var(--c-text-soft);
}
.blog-card-desc {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.75;
}
.blog-card-readmore {
  display: inline-block;
  margin-top: 12px;
  color: var(--c-cta-deep);
  font-weight: 700;
  font-size: 13px;
}

/* ========== Mobile ========== */
@media (max-width: 720px) {
  .article-container { padding: 30px 18px; }
  .article-title { font-size: 22px; }
  .article-body { font-size: 15px; }
  .article-body h2 { font-size: 20px; margin: 40px 0 16px; }
  .article-body h3 { font-size: 17px; margin: 28px 0 12px; }
  .article-cta { padding: 24px 18px; }
  .article-cta-btn { padding: 14px 28px; font-size: 15px; }
  .blog-list { padding: 30px 16px; gap: 18px; }
  .blog-card { padding: 22px 18px; }
}
