/*
 * Hontoko Blog UI: Generic article content only.
 *
 * Header, footer, grid, metadata, TOC, sidebar cards, references and tags are
 * canonical shared components defined in shared.css. Keeping those rules out
 * of this file prevents future posts from drifting away from post 18.
 */
body.hontoko-blog-generic .hontoko-blog-main{padding-bottom:0}
body.hontoko-blog-generic .hontoko-blog-excerpt{margin:0 0 48px}
body.hontoko-blog-generic .hontoko-blog-excerpt p{margin:0}
body.hontoko-blog-generic .hontoko-blog-featured-image{margin:0 0 53px}
body.hontoko-blog-generic .hontoko-blog-featured-image img{display:block;width:100%;height:auto;border:0}

body.hontoko-blog-generic .hontoko-blog-content{color:#53534d;font-size:14px;line-height:2.15}
body.hontoko-blog-generic .hontoko-blog-content>*:first-child{margin-top:0}
body.hontoko-blog-generic .hontoko-blog-content p,
body.hontoko-blog-generic .hontoko-blog-content ul,
body.hontoko-blog-generic .hontoko-blog-content ol,
body.hontoko-blog-generic .hontoko-blog-content blockquote,
body.hontoko-blog-generic .hontoko-blog-content figure,
body.hontoko-blog-generic .hontoko-blog-content table{margin:0}
body.hontoko-blog-generic .hontoko-blog-content p+*{margin-top:1.5em}
body.hontoko-blog-generic .hontoko-blog-content h2{margin:58px 0 22px;padding:13px 18px;background:#f5c400;color:#171714;font-size:21px;font-weight:800;line-height:1.5;letter-spacing:.03em}
body.hontoko-blog-generic .hontoko-blog-content h3{margin:40px 0 18px;padding-left:13px;border-left:3px solid #f5c400;color:#171714;font-size:16px;font-weight:800;line-height:1.5;letter-spacing:.02em}
body.hontoko-blog-generic .hontoko-blog-content ul,
body.hontoko-blog-generic .hontoko-blog-content ol{padding-left:1.5em}
body.hontoko-blog-generic .hontoko-blog-content li+li{margin-top:.55em}
/* Canonical editorial-link treatment for every Generic Mode article. */
body.hontoko-blog-generic .hontoko-blog-content :is(p,li) a{font-weight:700;text-decoration-line:underline;text-decoration-style:solid;text-decoration-color:#f5c400;text-decoration-thickness:2px;text-underline-offset:3px}
/* CTA and button links are controls, not editorial text links. */
body.hontoko-blog-generic .hontoko-blog-content :is(.hontoko-article-cta,.wp-block-button) a,
body.hontoko-blog-generic .hontoko-blog-content :is(a.wp-block-button__link,a[role="button"]){text-decoration:none}

body.hontoko-blog-generic .hontoko-blog-content figure,
body.hontoko-blog-generic .hontoko-article-figure{width:100%;max-width:640px;margin:34px auto 48px;border:0;overflow:visible}
body.hontoko-blog-generic .hontoko-blog-content figure img,
body.hontoko-blog-generic .hontoko-article-figure img{display:block;width:100%;height:auto;aspect-ratio:16/9;border:1px solid #d7d7d0;object-fit:cover}
body.hontoko-blog-generic .hontoko-blog-content figcaption,
body.hontoko-blog-generic .hontoko-article-figure figcaption{margin:10px 0 0;padding:0;color:#777;font-size:12px;line-height:1.7}
body.hontoko-blog-generic .hontoko-article-figure--excel{overflow:visible}
body.hontoko-blog-generic .hontoko-article-figure--excel img{width:100%;max-width:100%;transform:none;cursor:zoom-in}

body.hontoko-blog-generic .hontoko-blog-content table,
body.hontoko-blog-generic .hontoko-article-table{width:100%;margin:30px 0;border:1px solid #deded7;border-collapse:collapse;table-layout:fixed;background:#fff;color:#53534d;font-size:12px}
body.hontoko-blog-generic .hontoko-blog-content th,
body.hontoko-blog-generic .hontoko-blog-content td,
body.hontoko-blog-generic .hontoko-article-table th,
body.hontoko-blog-generic .hontoko-article-table td{padding:16px;border:1px solid #eee;font-size:12px;line-height:1.7;text-align:left;vertical-align:top}
body.hontoko-blog-generic .hontoko-blog-content th,
body.hontoko-blog-generic .hontoko-article-table th{background:#30302c;color:#fff;font-family:"DM Sans","Noto Sans JP",sans-serif;font-weight:700;letter-spacing:.1em}
body.hontoko-blog-generic .hontoko-blog-content :is(th,td):first-child,
body.hontoko-blog-generic .hontoko-article-table :is(th,td):first-child{width:160px;font-weight:700}

body.hontoko-blog-generic .hontoko-article-point,
body.hontoko-blog-generic .hontoko-article-note,
body.hontoko-blog-generic .hontoko-article-caution,
body.hontoko-blog-generic .hontoko-blog-content blockquote{display:flex;align-items:flex-start;gap:16px;margin:30px 0;padding:22px 24px;border-left:4px solid #f5c400;background:#fff6ce;color:#171714}
body.hontoko-blog-generic .hontoko-article-caution{border-left-color:#d95b5b;background:#fff0f0}
body.hontoko-blog-generic .hontoko-article-point p,
body.hontoko-blog-generic .hontoko-article-note p,
body.hontoko-blog-generic .hontoko-article-caution p{margin:0;color:#171714;font-size:13px;font-weight:700;line-height:1.8}

body.hontoko-blog-generic .hontoko-article-cta{margin:28px 0;padding:0;background:transparent;color:#53534d}
body.hontoko-blog-generic .hontoko-article-cta p{margin:0 0 20px}
body.hontoko-blog-generic .hontoko-article-cta a{display:flex;width:fit-content;min-width:236px;align-items:center;justify-content:center;gap:14px;margin-inline:auto;padding:18px 34px;border-radius:999px;background:#171714;color:#f5c400;font-size:15px;font-weight:700;line-height:1.5;text-decoration:none;transition:transform .2s,box-shadow .2s,background .2s}
body.hontoko-blog-generic .hontoko-article-cta a:hover{transform:translateY(-2px);box-shadow:0 12px 28px #17171430;background:#2a2a25}

body.hontoko-blog-generic .hontoko-image-lightbox{width:min(96vw,1500px);max-width:96vw;max-height:94vh;margin:auto;padding:0;border:0;background:transparent;overflow:visible}
body.hontoko-blog-generic .hontoko-image-lightbox::backdrop{background:rgba(23,23,20,.82)}
body.hontoko-blog-generic .hontoko-image-lightbox__image{display:block;max-width:96vw;max-height:88vh;width:auto;height:auto;background:#fff;box-shadow:0 18px 48px rgba(0,0,0,.35)}
body.hontoko-blog-generic .hontoko-image-lightbox__close{position:absolute;top:-42px;right:0;display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:#171714;color:#fff;font-size:22px;line-height:1}

.hontoko-blog-mobile-toc{display:none}
@media(max-width:850px){
  .hontoko-blog-mobile-toc{display:block;margin:32px 0}
  body.hontoko-blog-generic .hontoko-blog-content table{display:block;overflow-x:auto;white-space:nowrap;table-layout:auto}
  body.hontoko-blog-generic .hontoko-blog-content :is(th,td):first-child{width:auto}
}
@media(max-width:480px){
  body.hontoko-blog-generic .hontoko-blog-content h2{font-size:17px}
  body.hontoko-blog-generic .hontoko-blog-content h3{font-size:15px}
  body.hontoko-blog-generic .hontoko-blog-content figure,
  body.hontoko-blog-generic .hontoko-article-figure{margin-top:26px;margin-bottom:38px}
  body.hontoko-blog-generic .hontoko-article-point,
  body.hontoko-blog-generic .hontoko-article-note,
  body.hontoko-blog-generic .hontoko-article-caution{gap:12px;padding:18px}
  body.hontoko-blog-generic .hontoko-article-cta a{gap:10px;padding:15px 26px;font-size:13px}
}
