/* ============================================================
   ULESEE Blog styles (記事ページ・一覧ページ共通)
   既存サイトと同じデザイントークンを使用。
   ============================================================ */
:root {
  --bg: #fafaf8;
  --bg-dark: #0a0a0a;
  --bg-mid: #f0efeb;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #fafaf8;
  --line: #e0ddd5;
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
  line-height: 1.9;
  letter-spacing: 0.02em;
}
::selection { background: #1a1a1a; color: #fff; }
img { max-width: 100%; display: block; }

/* ---- Header ---- */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo img { display: block; height: 26px; width: auto; }
.nav { display: flex; gap: 40px; }
.nav a { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em; color: var(--text); text-decoration: none; }
.hamburger { display: none; background: none; border: none; width: 40px; height: 40px; cursor: pointer; position: relative; color: var(--text); }
.hamburger span { display: block; position: absolute; left: 8px; width: 24px; height: 1px; background: currentColor; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 24px; }
.hamburger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; background: var(--bg-dark); color: var(--text-light); z-index: 99; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-nav { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.mobile-nav a { font-family: var(--font-en); font-size: 24px; color: #fff; text-decoration: none; letter-spacing: 0.1em; }

/* ---- Blog index (一覧) ---- */
.blog-head { padding: 150px 40px 56px; max-width: 1100px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.blog-head .eyebrow { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 18px; }
.blog-head h1 { font-family: var(--font-jp); font-weight: 500; font-size: clamp(28px,4vw,42px); letter-spacing: 0.04em; }
.blog-head p { margin-top: 16px; color: var(--text-muted); font-size: 15px; }

.post-list { max-width: 1100px; margin: 0 auto; padding: 56px 40px 140px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 48px; }
.post-card { display: block; text-decoration: none; color: inherit; }
.post-card .thumb { width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-mid); margin-bottom: 20px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(0.16,1,0.3,1); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .cat { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.post-card h2 { font-family: var(--font-jp); font-weight: 500; font-size: 19px; line-height: 1.6; letter-spacing: 0.03em; margin: 10px 0 10px; }
.post-card .excerpt { font-size: 14px; line-height: 1.9; color: var(--text-muted); margin-bottom: 12px; }
.post-card time { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.08em; color: var(--text-muted); }

/* ---- Article (記事本体) ---- */
.article { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.article-head { padding: 150px 0 0; }
.breadcrumb { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 32px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }
.eyebrow { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 20px; }
.article-title { font-family: var(--font-jp); font-weight: 500; font-size: clamp(26px,4vw,40px); line-height: 1.5; letter-spacing: 0.04em; margin-bottom: 28px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.08em; color: var(--text-muted); padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.article-meta time { color: var(--text); }
.article-hero { margin: 48px 0 8px; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-mid); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-body { padding: 56px 0 0; }
.article-body > *:first-child { margin-top: 0; }
/* 目次ジャンプ時に見出しが固定ヘッダーへ隠れないようオフセット */
.article-body h2, .article-body h3 { scroll-margin-top: 90px; }

/* ---- 目次（この記事の内容）自動生成 ---- */
.toc {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 36px;
  margin: 0 0 48px;
  background: #fcfcfb;
}
.toc-title { font-weight: 500; font-size: 16px; letter-spacing: 0.04em; margin-bottom: 18px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; }
.toc li { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.toc a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.toc a:hover { border-color: var(--text); }
@media (max-width: 768px) {
  .toc { padding: 24px 24px; }
}
.article-body .lead { font-size: 18px; line-height: 2.0; letter-spacing: 0.04em; margin-bottom: 48px; }
.article-body h2 { font-family: var(--font-jp); font-weight: 500; font-size: clamp(20px,2.6vw,26px); line-height: 1.6; letter-spacing: 0.04em; margin: 64px 0 20px; padding-top: 36px; border-top: 1px solid var(--line); }
.article-body h3 { font-family: var(--font-jp); font-weight: 500; font-size: 17px; letter-spacing: 0.04em; margin: 40px 0 14px; }
.article-body p { font-size: 16px; line-height: 2.05; letter-spacing: 0.03em; margin-bottom: 28px; }
.article-body a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--text-muted); transition: opacity 0.3s; }
.article-body a:hover { opacity: 0.6; }
.article-body ul, .article-body ol { margin: 0 0 28px 1.4em; }
.article-body li { font-size: 16px; line-height: 1.95; margin-bottom: 10px; }
.article-body blockquote { margin: 36px 0; padding: 8px 0 8px 28px; border-left: 2px solid var(--text); font-size: 18px; line-height: 1.95; }
.article-body img { margin: 44px 0; width: 100%; height: auto; background: var(--bg-mid); }
.article-body figure { margin: 44px 0; }
.article-body figure img { margin: 0; }
.article-body figcaption { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 56px 0; }

/* FAQ（本文末に表示 ＋ 構造化データはJSON-LDで別途出力） */
.faq { max-width: 720px; margin: 88px auto 0; padding: 0 24px; }
.faq h2 { font-family: var(--font-jp); font-weight: 500; font-size: 22px; letter-spacing: 0.04em; margin-bottom: 24px; }
.faq-item { border-top: 1px solid var(--line); padding: 24px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { font-weight: 500; font-size: 16px; margin-bottom: 10px; }
.faq-q::before { content: "Q. "; color: var(--text-muted); }
.faq-a { font-size: 15px; line-height: 1.95; color: var(--text); }
.faq-a::before { content: "A. "; color: var(--text-muted); }

/* CTA */
.article-cta { max-width: 720px; margin: 88px auto 0; padding: 48px; background: var(--bg-mid); text-align: center; }
.article-cta h2 { font-family: var(--font-jp); font-weight: 500; font-size: 20px; letter-spacing: 0.04em; margin-bottom: 12px; }
.article-cta p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.article-cta a { display: inline-block; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--text); padding: 16px 36px; transition: opacity 0.3s; }
.article-cta a:hover { opacity: 0.82; }
.back-link { display: inline-block; margin: 56px 0 0; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.12em; color: var(--text-muted); text-decoration: none; }

/* ---- Footer ---- */
.footer { background: var(--bg-dark); color: var(--text-light); padding: 80px 40px 40px; margin-top: 120px; }
.footer-inner { max-width: 1200px; margin: 0 auto 64px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-logo img { display: block; height: 24px; width: auto; }
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em; color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: inherit; text-decoration: none; }

@media (max-width: 768px) {
  .header { padding: 18px 24px; }
  .nav { display: none; }
  .hamburger { display: block; }
  .blog-head { padding: 120px 24px 40px; }
  .post-list { grid-template-columns: 1fr; gap: 44px; padding: 40px 24px 100px; }
  .article-head { padding-top: 120px; }
  .article-cta { padding: 36px 24px; }
  .footer { padding: 64px 24px 32px; }
}
