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

:root {
  --ink: #232333;
  --muted: #696779;
  --pink: #f45f94;
  --pink-soft: #ffedf3;
  --violet: #8075e9;
  --mint: #4acdaf;
  --line: #ebe7ec;
  --wash: #fff9fb;
  --white: #fff;
  --shadow: 0 18px 50px rgba(45, 32, 54, 0.07);
}

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

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #f4cbd8 transparent; }

body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; }

.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- Header (corporate site と統一) ---------- */
.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 20;
  border-bottom: 1px solid rgba(235, 231, 236, 0.72);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 700; }
.brand-mark {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; color: var(--white); background: var(--pink);
  font-size: 0.63rem; font-weight: 800; letter-spacing: -0.04em;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.87rem; font-weight: 500; transition: color 0.2s ease; }
.nav a:hover { color: var(--ink); }
.nav .contact-link { padding: 12px 21px; border-radius: 99px; color: var(--white); background: var(--ink); }
.nav .contact-link:hover { color: var(--white); background: #3a394b; }

.menu-button {
  display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer;
}
.menu-button span { width: 19px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-button.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button.active span:nth-child(2) { opacity: 0; }
.menu-button.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 72px 0 0; z-index: 19; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  background: rgba(255, 252, 253, 0.97); opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
}
.mobile-nav.active { opacity: 1; pointer-events: auto; }
.mobile-nav a { color: var(--ink); text-decoration: none; font-size: 1.35rem; font-weight: 600; }

/* ---------- Buttons ---------- */
.button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 27px; border-radius: 999px; text-decoration: none; font-size: 0.89rem; font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--pink); box-shadow: 0 12px 24px rgba(244, 95, 148, 0.22); }
.button-secondary { border: 1px solid var(--line); background: var(--white); color: var(--ink); }

/* ---------- Article layout ---------- */
.article-main { padding-top: 72px; }

.article {
  width: min(740px, calc(100% - 44px));
  margin: 0 auto;
  padding: 50px 0 90px;
}

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin-bottom: 30px; color: var(--muted); font-size: 0.74rem; font-weight: 500;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb span[aria-current] { color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  padding: 5px 13px; border-radius: 99px; background: var(--pink-soft); color: #d34b7b;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
}

.article-header h1 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(1.75rem, 4.4vw, 2.5rem); font-weight: 900; line-height: 1.42;
  letter-spacing: -0.03em; margin-bottom: 18px;
}
.article-meta { color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.article-meta .dot { margin: 0 8px; color: #cdc6d2; }

/* ---------- Table of contents ---------- */
.toc {
  margin: 38px 0; padding: 24px 26px; border: 1px solid var(--line);
  border-radius: 18px; background: var(--wash);
}
.toc-title { margin-bottom: 12px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; color: #a099aa; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 9px; }
.toc li { counter-increment: toc; position: relative; padding-left: 30px; }
.toc li::before {
  content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  color: var(--pink); font-size: 0.72rem; font-weight: 800; font-family: 'Outfit', sans-serif;
}
.toc a { color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 500; line-height: 1.5; }
.toc a:hover { color: var(--pink); }

/* ---------- Article body typography ---------- */
.article-body { font-family: 'Zen Kaku Gothic New', sans-serif; }
.article-body h2 {
  position: relative; margin: 58px 0 22px; padding-left: 17px;
  font-size: clamp(1.32rem, 3vw, 1.62rem); font-weight: 900; line-height: 1.5; letter-spacing: -0.02em;
}
.article-body h2::before {
  content: ''; position: absolute; left: 0; top: 0.18em; bottom: 0.18em; width: 6px;
  border-radius: 99px; background: linear-gradient(180deg, var(--pink), var(--violet));
}
.article-body h3 {
  margin: 40px 0 16px; font-size: clamp(1.1rem, 2.4vw, 1.28rem); font-weight: 700;
  line-height: 1.55; letter-spacing: -0.01em; color: var(--ink);
}
.article-body h4 { margin: 30px 0 12px; font-size: 1.03rem; font-weight: 700; }
.article-body p { margin: 0 0 22px; font-size: 1.0rem; line-height: 1.96; color: #383747; }
.article-body strong { font-weight: 700; color: var(--ink); background: linear-gradient(transparent 62%, rgba(244,95,148,0.18) 62%); }
.article-body a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: #d34b7b; }

.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 4px; }
.article-body li { list-style: none; position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 1.0rem; line-height: 1.85; color: #383747; }
.article-body ul li::before {
  content: ''; position: absolute; left: 6px; top: 0.72em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--mint);
}
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before {
  content: counter(li); position: absolute; left: 0; top: 0.1em;
  color: var(--pink); font-weight: 800; font-family: 'Outfit', sans-serif; font-size: 0.92rem;
}

.article-body blockquote {
  margin: 28px 0; padding: 18px 22px; border-left: 4px solid #d9d4e4;
  background: #faf9fc; border-radius: 0 14px 14px 0; color: var(--muted);
  font-size: 0.95rem; line-height: 1.85;
}
.article-body blockquote.callout {
  border-left: 4px solid var(--pink); background: var(--pink-soft); color: #6c4453;
}
.article-body blockquote.callout strong { background: none; color: #c33c6e; }

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

.article-body pre {
  margin: 26px 0; padding: 20px 22px; overflow-x: auto; border-radius: 14px;
  background: #2a2838; color: #f3eef7; font-size: 0.85rem; line-height: 1.7;
}
.article-body pre code { font-family: 'SFMono-Regular', Menlo, Consolas, monospace; }
.article-body :not(pre) > code {
  padding: 2px 7px; border-radius: 6px; background: #f1eef4; color: #b8417a;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.88em;
}

.table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.article-body th, .article-body td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); line-height: 1.6; }
.article-body thead th { background: var(--wash); font-weight: 700; color: var(--ink); white-space: nowrap; }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body td:first-child { font-weight: 600; }

.article-body img { margin: 28px 0; border-radius: 16px; box-shadow: var(--shadow); }

/* ---------- CTA ---------- */
.article-cta {
  margin: 60px 0 0; padding: 40px 34px; border-radius: 26px; text-align: center;
  background: radial-gradient(circle at 80% 12%, #fff1f5 0, transparent 42%), linear-gradient(160deg, #fffdfe 0%, var(--wash) 100%);
  border: 1px solid var(--line);
}
.cta-eyebrow { color: #d34b7b; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.2em; margin-bottom: 12px; }
.article-cta h2 { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 1.4rem; font-weight: 900; margin-bottom: 14px; }
.article-cta p { color: var(--muted); font-size: 0.92rem; line-height: 1.85; max-width: 480px; margin: 0 auto 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.back-link { margin-top: 38px; text-align: center; }
.back-link a { color: var(--muted); text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.back-link a:hover { color: var(--pink); }

/* ---------- Blog index ---------- */
.blog-index { padding: 56px 0 90px; }
.blog-index-header { text-align: center; margin-bottom: 46px; }
.blog-index-header .cta-eyebrow { margin-bottom: 14px; }
.blog-index-header h1 { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 16px; }
.blog-index-header p { color: var(--muted); font-size: 0.96rem; line-height: 1.9; max-width: 540px; margin: 0 auto; }

.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
  border-radius: 22px; background: var(--white); text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-thumb { aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--pink-soft); }
.post-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.post-card-body .article-tags { margin-bottom: 0; }
.post-card-body h2 { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 1.12rem; font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; }
.post-card-body p { color: var(--muted); font-size: 0.86rem; line-height: 1.75; }
.post-card-meta { margin-top: 4px; color: #a099aa; font-size: 0.74rem; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--wash); }
.footer-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 18px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 0.8rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 500; }
.footer-links a:hover { color: var(--pink); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-button { display: flex; }
  .article { padding: 34px 0 70px; }
  .article-body h2 { margin-top: 46px; }
  .article-cta { padding: 34px 22px; }
  .cta-actions .button { width: 100%; }
}
