/* ── SWELL overrides — aggressive zero-gap reset ── */
.l-header { display: none !important; }
.l-footer { display: none !important; }
.l-sidebar { display: none !important; }
.l-mainContent { max-width: 100% !important; width: 100% !important; padding: 0 !important; margin-top: 0 !important; }
.l-main { padding-top: 0 !important; margin-top: 0 !important; }
.l-wrap { padding-top: 0 !important; margin-top: 0 !important; padding-bottom: 0 !important; }
.l-content, .l-article, .l-primary { margin-top: 0 !important; padding-top: 0 !important; }
.post_content { padding: 0 !important; margin: 0 !important; }
html, body { margin: 0 !important; padding: 0 !important; }
body > * { margin-top: 0 !important; }
/* WordPress block wrappers */
.wp-block-html { margin: 0 !important; padding: 0 !important; }
.entry-content > .wp-block-html { margin-top: 0 !important; margin-bottom: 0 !important; }
.entry-content > *:first-child { margin-top: 0 !important; }
/* SWELL header offset */
.l-header--fixed ~ .l-wrap { padding-top: 0 !important; }
/* SWELL page title / breadcrumb */
.c-pageTitle, .p-articleTitle, .entry-title, .post-title, .page-title,
.l-content .c-pageTitle, .l-mainContent h1:first-child { display: none !important; }
.c-breadcrumb, .p-breadcrumb, .wp-breadcrumbs { display: none !important; }

/* ── Unified Header ── */
.uc-hdr { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid #e5dfd7; }
.uc-hdr-top { display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 60px; }
.uc-hdr-logo { display: flex; align-items: center; gap: 8px; font-family: 'Noto Serif JP', 'Yu Mincho', Georgia, serif; font-size: 1.15rem; font-weight: 500; letter-spacing: .1em; color: #1a1a1a; text-decoration: none; }
.uc-hdr-logo-icon { flex-shrink: 0; color: #b5763a; }
.uc-hdr-ham { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 6px 0; font-size: .75rem; color: #555; letter-spacing: .06em; }
.uc-hdr-ham-bars { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.uc-hdr-ham-bar { display: block; height: 1.5px; background: #1a1a1a; border-radius: 1px; transition: all .25s; }
.uc-hdr-ham.open .uc-hdr-ham-bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.uc-hdr-ham.open .uc-hdr-ham-bar:nth-child(2) { opacity: 0; }
.uc-hdr-ham.open .uc-hdr-ham-bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.uc-hdr-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .3s; }
.uc-hdr-overlay.open { opacity: 1; pointer-events: auto; }
.uc-hdr-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px,88vw); background: #fff; z-index: 400; transform: translateX(100%); transition: transform .32s cubic-bezier(.25,.46,.45,.94); display: flex; flex-direction: column; overflow-y: auto; }
.uc-hdr-drawer.open { transform: translateX(0); }
.uc-hdr-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 1px solid #e5dfd7; }
.uc-hdr-drawer-logo { font-family: 'Noto Serif JP', Georgia, serif; font-size: 1.05rem; font-weight: 500; letter-spacing: .1em; color: #1a1a1a; }
.uc-hdr-drawer-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: #888; padding: 4px; transition: color .2s; }
.uc-hdr-drawer-close:hover { color: #b5763a; }
.uc-hdr-nav-list { list-style: none; padding: 20px 0; }
.uc-hdr-nav-link { display: block; padding: 14px 28px; font-family: 'Noto Serif JP', Georgia, serif; font-size: 1rem; letter-spacing: .04em; color: #1a1a1a; border-bottom: 1px solid #e5dfd7; transition: color .2s, background .2s; }
.uc-hdr-nav-link:hover { color: #b5763a; background: #f7f0e8; }
@media (max-width: 600px) { .uc-hdr-top { padding: 0 20px; height: 54px; } }

/* ── Scroll fade-up ── */
.fu { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.fu.on { opacity: 1; transform: translateY(0); }

/* ── 投稿記事 レイアウト ── */
.uc-single body { background: #f4f3ee; }

/* SWELL の全不要要素を強制非表示 */
.uc-single .l-header,
.uc-single .l-footer,
.uc-single .l-sidebar,
.uc-single .p-authorBox,
.uc-single .c-authorBox,
.uc-single [class*="authorBox"],
.uc-single [class*="author-box"],
.uc-single [class*="author_box"],
.uc-single .p-share,
.uc-single [class*="shareBtn"],
.uc-single [class*="share-btn"],
.uc-single [class*="share_btn"],
.uc-single .wp-swell-toc,
.uc-single [class*="swell-toc"],
.uc-single [class*="swellToc"],
.uc-single .p-related,
.uc-single [class*="relatedPost"],
.uc-single [class*="related-post"],
.uc-single .comment-area,
.uc-single #comments,
.uc-single .c-breadcrumb,
.uc-single .p-breadcrumb,
.uc-single .entry-title,
.uc-single .p-articleTitle,
.uc-single [class*="copyUrl"],
.uc-single [class*="copy-url"],
.uc-single [class*="fixedBtn"],
.uc-single .c-fixedBtn { display: none !important; }

/* SWELL の wrap/main は完全フラット化 */
.uc-single .l-wrap,
.uc-single .l-main,
.uc-single .l-mainContent,
.uc-single .l-content,
.uc-single .l-article,
.uc-single .l-primary,
.uc-single .post_content,
.uc-single .entry-content { all: unset; display: block; }

/* 記事レイアウト */
.uc-article {
  max-width: 720px; margin: 0 auto; padding: 0 24px;
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
}

.uc-article-header { padding: 48px 0 32px; text-align: center; }
.uc-article-title {
  font-family: 'Noto Serif JP', 'Yu Mincho', Georgia, serif;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 500;
  letter-spacing: .04em; line-height: 1.5; color: #1a1a1a; margin-bottom: 12px;
}
.uc-article-date { font-size: .8rem; color: #999; letter-spacing: .06em; }

.uc-article-thumb { margin: 0 0 48px; }
.uc-article-thumb img { width: 100%; height: auto; border-radius: 6px; display: block; }

/* 本文 */
.uc-article-content {
  font-size: 17px; line-height: 1.95; color: #1a1a1a;
}
.uc-article-content p { margin: 0 0 1.5em; }
.uc-article-content h2 {
  font-family: 'Noto Serif JP', 'Yu Mincho', Georgia, serif;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem); font-weight: 500;
  letter-spacing: .04em; line-height: 1.5; color: #1a1a1a;
  margin: 3em 0 1em; padding-bottom: .5em; border-bottom: 1px solid #e5dfd7;
}
.uc-article-content h3 {
  font-family: 'Noto Serif JP', 'Yu Mincho', Georgia, serif;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem); font-weight: 500;
  letter-spacing: .04em; color: #1a1a1a; margin: 2.2em 0 .8em;
}
.uc-article-content ul, .uc-article-content ol {
  padding-left: 1.6em; margin: 0 0 1.5em;
}
.uc-article-content li { margin-bottom: .6em; line-height: 1.8; }
.uc-article-content figure { margin: 2em 0; }
.uc-article-content figure img {
  width: 100%; max-width: 560px; height: auto; border-radius: 6px;
  display: block; margin: 0 auto;
}
.uc-article-content blockquote {
  background: #faf3eb; border-left: 4px solid #b5763a;
  padding: 1em 1.4em; margin: 1.8em 0; border-radius: 0 4px 4px 0;
  font-size: .95rem; color: #555;
}
.uc-article-content blockquote p { margin-bottom: 0; }
.uc-article-content a { color: #b5763a; text-decoration: underline; text-underline-offset: 3px; }
.uc-article-content a:hover { color: #9c6430; }
.uc-article-content strong { color: #1a1a1a; font-weight: 700; }
.uc-article-content hr { border: none; border-top: 1px solid #e5dfd7; margin: 2.5em 0; }
.uc-article-content table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .92rem; }
.uc-article-content th { background: #f4f3ee; padding: .7em 1em; border: 1px solid #e5dfd7; font-weight: 500; text-align: left; }
.uc-article-content td { padding: .7em 1em; border: 1px solid #e5dfd7; line-height: 1.7; }
.uc-article-content details {
  background: #f4f3ee; border: 1px solid #e5dfd7; border-radius: 4px;
  padding: 1em 1.4em; margin: 1.8em 0; font-size: .88rem; color: #555;
}
.uc-article-content details summary { cursor: pointer; font-weight: 500; color: #1a1a1a; margin-bottom: .6em; }
.uc-article-content ol { list-style: decimal; }
.uc-article-content ul { list-style: disc; }

/* タグ */
.uc-article-tags { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid #e5dfd7; }
.uc-article-tags a {
  display: inline-block; margin: 4px; padding: 4px 12px;
  background: #f4f3ee; color: #888; font-size: .8rem;
  border-radius: 20px; text-decoration: none;
}
.uc-article-tags a:hover { background: #e5dfd7; }

/* フッター */
.uc-art-footer {
  background: #1c1b18; color: #7a7268;
  padding: 40px 0; margin-top: 80px; text-align: center;
}
.uc-art-footer-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.uc-art-footer-logo { font-family: 'Noto Serif JP', Georgia, serif; font-size: 1.1rem; color: #f0ede8; letter-spacing: .12em; }
.uc-art-footer-copy { font-size: .62rem; color: #504c46; letter-spacing: .1em; }

/* wp:html ブロック wrapper をフラット化 */
.uc-single .wp-block-html { all: unset; display: block; }

@media (max-width: 600px) {
  .uc-article { padding: 0 16px; }
  .uc-article-content { font-size: 16px; }
  .uc-article-header { padding: 32px 0 24px; }
  .uc-article-thumb { margin-bottom: 32px; }
}
