/* アメコミラバーズ『あっせん部る』— 方向「映画館の夜」（2026-10-21 林さん決定）
   濃い紺の頭とフッター・赤と金の差し色。読む所は白。画像は使わず、記事の顔は文字と色で作る */
:root {
  --night: #0f1424;       /* 頭・大きな記事・フッター */
  --night-2: #1a2138;     /* 紺の上の面 */
  --night-line: #2b3350;
  --red: #e23b3b;         /* 紺の上の赤・帯 */
  --red-deep: #c92a2f;    /* ボタン（白い字が読める濃さ） */
  --red-ink: #b4232b;     /* 白の上の赤い字 */
  --gold: #f2c14e;        /* 紺の上の金（ロゴの点・番号） */
  --gold-ink: #9a6f0c;    /* 白の上の金の番号 */
  --paper: #ffffff;
  --bg: #f1f2f5;
  --soft: #f5f6f8;
  --ink: #1a1d24;
  --muted: #5e6573;
  --line: #e2e5eb;
  --link: #1f5fa8;
  --marker: #ffe58a;
  --on-night: #e9ecf3;
  --on-night-muted: #a3abbe;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-logo: "Dela Gothic One", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-label: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere;
}
a { color: var(--link); }
a:hover { text-decoration: none; }
.hero-title, .post-title, .sec-title, .side-feature-title, .entry-content h2 { word-break: auto-phrase; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 頭（ロゴ・検索・メニュー） ---- */
.site-header { background: var(--night); color: var(--on-night); }
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 16px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: inline-flex; flex-direction: column; color: #fff; text-decoration: none; line-height: 1.1; }
.logo-sub { font-size: .68rem; letter-spacing: .18em; color: var(--on-night-muted); font-weight: 700; }
.logo-main { font-family: var(--font-logo); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; }
.logo-main::after {
  content: ""; display: inline-block; width: .32em; height: .32em; margin-left: .12em;
  border-radius: 50%; background: var(--gold); vertical-align: .05em;
}
.search { display: flex; align-items: center; min-width: 0; }
.search input {
  width: 15em; max-width: 42vw; height: 36px; padding: 0 10px; border: 1px solid var(--night-line); border-right: 0;
  border-radius: 6px 0 0 6px; background: var(--night-2); color: #fff; font: inherit; font-size: .85rem;
}
.search input::placeholder { color: var(--on-night-muted); }
.search button {
  height: 36px; width: 40px; display: grid; place-items: center; border: 1px solid var(--night-line);
  border-radius: 0 6px 6px 0; background: var(--night-2); color: #fff; cursor: pointer;
}
@media (max-width: 559px) { .search input { width: 9.5em; } }
.global-nav { border-top: 1px solid var(--night-line); }
.global-nav ul {
  max-width: var(--wrap); margin: 0 auto; padding: 0 8px; list-style: none;
  display: flex; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.global-nav ul::-webkit-scrollbar { display: none; }
.global-nav a {
  display: block; padding: 10px 10px 9px; color: var(--on-night); text-decoration: none;
  font-size: .82rem; font-weight: 700; border-bottom: 3px solid transparent;
}
.global-nav a:hover, .global-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.global-nav li:not(.nav-feature) a { font-family: var(--font-label); font-weight: 600; letter-spacing: .06em; font-size: .86rem; }

/* ---- 共通の見出し（英字の小さな札＋日本語） ---- */
.sec-title { margin: 0 0 .8em; font-size: 1.25rem; line-height: 1.45; font-weight: 800; }
.sec-label {
  display: block; margin-bottom: 2px; color: var(--red-ink);
  font-family: var(--font-label); font-weight: 600; font-size: .78rem; letter-spacing: .14em;
}
.sec-title::after { content: ""; display: block; width: 2.4em; height: 3px; margin-top: .35em; background: var(--red); }
.list-page { margin-left: .4em; color: var(--muted); font-size: .8em; font-weight: 600; }
.list-lead { margin: -.2em 0 1em; color: var(--muted); font-size: .86rem; }

/* ---- 大きな記事（トップの頭・映画のスクリーン） ---- */
.hero { background: var(--night); color: #fff; }
.hero::before, .hero::after {
  content: ""; display: block; height: 14px; background-color: #0a0e1a;
  background-image: linear-gradient(90deg, rgba(242, 193, 78, .55) 0 9px, transparent 9px 22px);
  background-size: 22px 6px; background-repeat: repeat-x; background-position: 4px center;
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 22px 16px 26px;
  display: grid; gap: 18px;
  background: radial-gradient(120% 140% at 85% 20%, rgba(226, 59, 59, .18), transparent 55%);
}
.hero-label { margin: 0; color: var(--gold); font-family: var(--font-label); font-weight: 600; letter-spacing: .16em; font-size: .85rem; }
.hero-cat {
  display: inline-block; margin: 8px 0 6px; padding: 0 8px; border-radius: 3px;
  background: var(--red-deep); color: #fff; font-size: .72rem; font-weight: 700;
}
.hero-title { margin: 0; font-size: 1.35rem; line-height: 1.5; font-weight: 800; text-wrap: balance; }
.hero-title a { color: #fff; text-decoration: none; }
.hero-title a:hover { text-decoration: underline; }
.hero-excerpt { margin: 8px 0 14px; color: var(--on-night-muted); font-size: .86rem; line-height: 1.7; }
.hero-btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .6em 1.3em; border-radius: 6px;
  background: var(--red-deep); color: #fff; font-weight: 800; text-decoration: none;
}
.hero-btn::after { content: "›"; font-size: 1.2em; line-height: 1; }
.hero-btn:hover { background: var(--red); }
.hero-art {
  display: grid; place-items: center; min-height: 120px; border-radius: 8px; text-decoration: none;
  background: var(--night-2) repeating-linear-gradient(120deg, transparent 0 22px, rgba(226, 59, 59, .1) 22px 30px);
  border: 1px solid var(--night-line);
}
.hero-art .cover--img { width: 100%; margin: 0; border-radius: 8px; }
.hero-art:has(.cover--img) { min-height: 0; padding: 0; background: none; border: 0; }
.hero-dots { display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px; padding: 16px; }
.hero-dots .dot { width: 34px; height: 34px; flex: none; border-radius: 50%; box-shadow: inset -4px -5px 0 rgba(0, 0, 0, .18); }
@media (min-width: 760px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 32px; padding: 34px 24px 38px; }
  .hero-title { font-size: 2rem; line-height: 1.4; }
  .hero-excerpt { font-size: .92rem; }
  .hero-art { min-height: 220px; }
  .hero-dots { gap: 12px; }
  .hero-dots .dot { width: 52px; height: 52px; box-shadow: inset -6px -7px 0 rgba(0, 0, 0, .18); }
}
@media (min-width: 1100px) {
  .hero-dots .dot { width: 60px; height: 60px; }
}

/* ---- 枠組み（本文と横の欄） ---- */
.layout { max-width: var(--wrap); margin: 0 auto; padding: 0 0 36px; }
.site-main { min-width: 0; }
.breadcrumb { padding: 10px 16px 0; font-size: .78rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: nowrap; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.breadcrumb li { white-space: nowrap; }
.breadcrumb li + li::before { content: "›"; margin: 0 .5em; }
.breadcrumb li:last-child { overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { color: var(--muted); }
.post, .post-list, .related, .ranking { background: var(--paper); margin-top: 12px; padding: 22px 16px 26px; }
@media (min-width: 760px) {
  .layout { padding: 0 24px 56px; }
  .breadcrumb { padding-left: 0; padding-right: 0; }
  .post, .post-list, .related, .ranking { border-radius: 10px; padding: 30px 36px 34px; border: 1px solid var(--line); }
  body { font-size: 17px; }
}
@media (min-width: 1040px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .site-side { position: sticky; top: 16px; }
}
.home .ranking { margin-top: 20px; }

/* ---- 記事の顔（画像の代わり：短い言葉と色） ---- */
.cover {
  position: relative; display: grid; place-items: center; overflow: hidden; flex: none;
  aspect-ratio: 16 / 9; border-radius: 6px; color: #fff; text-align: center;
  background-color: var(--night); container-type: inline-size;
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.6px);
  background-size: 7px 7px; mask-image: linear-gradient(135deg, #000 0 30%, transparent 65%);
  -webkit-mask-image: linear-gradient(135deg, #000 0 30%, transparent 65%);
}
.cover::after {
  content: ""; position: absolute; right: -12%; bottom: -30%; width: 70%; height: 80%;
  background: repeating-linear-gradient(120deg, rgba(226, 59, 59, .55) 0 6px, transparent 6px 14px);
  transform: skewX(-12deg); opacity: .55;
}
.cover-word {
  position: relative; z-index: 1; padding: 0 .3em; font-weight: 900; line-height: 1.15;
  letter-spacing: -.01em; transform: rotate(-4deg); text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  white-space: nowrap; font-size: 1.1rem;
  /* 枠の幅 ÷ 文字数 で、長い言葉も1行に収める（大きすぎる時は --max で止める） */
  font-size: min(var(--max, 1.6rem), calc(84cqi / var(--n, 6)));
}
.cover--t1 { background-color: var(--red-deep); }
.cover--t1::after { background: repeating-linear-gradient(120deg, rgba(15, 20, 36, .5) 0 6px, transparent 6px 14px); }
.cover--t2 { background-color: #22262f; }
.cover--t2 .cover-word { color: var(--gold); }
.cover--t3 { background-color: #1c2a55; }
.cover--t3::after { background: repeating-linear-gradient(120deg, rgba(242, 193, 78, .45) 0 5px, transparent 5px 14px); }
.cover--wide { aspect-ratio: 16 / 6; border-radius: 8px; margin: 14px 0 0; --max: 2.2rem; }
/* サムネの画像がある記事 */
.cover--img { aspect-ratio: 16 / 9; background: var(--night); }
.cover--img::before, .cover--img::after { content: none; }
.cover--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover--img.cover--wide { aspect-ratio: 16 / 9; }
@media (min-width: 760px) { .cover--wide { --max: 3rem; } }

/* ---- よく読まれている記事（ランキング） ---- */
.rank-list { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.rank + .rank { border-top: 1px solid var(--line); }
.rank-link {
  position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 12px 0; color: var(--ink); text-decoration: none;
}
/* スマホ：順位は顔の左上の札。パソコン：顔の左に大きく */
.rank-num {
  position: absolute; left: -4px; top: 6px; z-index: 2; padding: 0 6px; border-radius: 4px;
  background: var(--paper); font-family: var(--font-label); font-weight: 600; font-size: 1.15rem; line-height: 1.3;
  color: var(--gold-ink); text-align: center; box-shadow: 0 1px 0 var(--line);
}
.rank:nth-child(-n+3) .rank-num { color: var(--red-ink); }
.rank-link .cover { --max: 1.15rem; }
.rank-body { display: block; min-width: 0; }
.rank-title { display: block; margin-top: 2px; font-weight: 800; line-height: 1.5; font-size: .98rem; }
.rank-link:hover .rank-title { color: var(--link); text-decoration: underline; }
@media (min-width: 760px) {
  .rank-link { grid-template-columns: 3em 168px minmax(0, 1fr); gap: 18px; }
  .rank-num { position: static; padding: 0; background: none; box-shadow: none; font-size: 2.6rem; line-height: 1; }
  .rank-link .cover { --max: 1.6rem; }
  .rank-title { font-size: 1.08rem; }
}

/* ---- 記事の一覧（カード） ---- */
.cards { margin: 0; padding: 0; list-style: none; }
.card + .card { border-top: 1px solid var(--line); }
.card-link {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px 0; color: var(--ink); text-decoration: none;
}
.card-link .cover { --max: 1.2rem; }
.card-body { display: block; min-width: 0; }
.card-link:hover .card-title { color: var(--link); text-decoration: underline; }
.card-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .74rem; }
.card-cat { color: var(--red-ink); font-weight: 800; font-size: .74rem; letter-spacing: .04em; }
.card-title { display: block; margin: 2px 0 4px; font-size: 1rem; font-weight: 800; line-height: 1.55; }
.card-excerpt { display: none; color: var(--muted); font-size: .84rem; line-height: 1.7; }
@media (min-width: 760px) {
  .card-link { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 18px 0; }
  .card-link .cover { --max: 1.7rem; }
  .card-title { font-size: 1.08rem; }
  .card-excerpt { display: block; }
}
/* 記事の下の「同じ分類の新しい記事」は横に並べる */
.related .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.related .card + .card { border-top: 0; }
.related .card-link { grid-template-columns: 1fr; gap: 8px; padding: 0; }
.related .card-excerpt { display: none; }
.related .card-title { font-size: .9rem; }
@media (min-width: 760px) { .related .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; } }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.pager a, .pager span {
  min-width: 2.4em; padding: .35em .7em; text-align: center;
  border: 1px solid var(--line); border-radius: 6px; font-size: .9rem; text-decoration: none; color: var(--ink);
}
.pager a:hover { border-color: var(--red); }
.pager [aria-current="page"] { background: var(--night); border-color: var(--night); color: #fff; font-weight: 700; }
.pager .pager-gap { border-color: transparent; color: var(--muted); }

/* ---- 記事の頭 ---- */
/* PR 表記は記事の冒頭に、本文と同じ大きさ以上で（運営の決まり・10/21） */
.ad-notice { display: inline-block; margin: 0 0 14px; padding: .3em .8em; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--ink); font-size: 1em; line-height: 1.6; }
.post-title { margin: 0 0 12px; font-size: 1.42rem; line-height: 1.5; font-weight: 800; text-wrap: pretty; }
@media (min-width: 760px) { .post-title { font-size: 1.85rem; line-height: 1.45; } }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: .8rem; }
.post-cats a {
  display: inline-block; margin-right: 4px; padding: 0 8px; border-radius: 3px;
  background: var(--red-deep); color: #fff; font-weight: 700; font-size: .74rem; text-decoration: none;
}
.post-dates span + span { margin-left: 10px; }
.post-cover { margin-bottom: 4px; }

/* ---- 本文 ---- */
.entry-content { margin-top: 22px; line-height: 1.9; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content h2 {
  position: relative; margin: 2.6em 0 1em; padding: .6em .9em .6em 1.1em;
  font-size: 1.25rem; line-height: 1.5; color: #fff; background: var(--night); border-radius: 6px;
}
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .55em; bottom: .55em; width: 5px; background: var(--red); border-radius: 0 3px 3px 0; }
.entry-content h2 a { color: #fff; }
.entry-content h3 {
  position: relative; margin: 2.2em 0 .9em; padding: 0 0 .35em;
  font-size: 1.14rem; line-height: 1.55; border-bottom: 2px solid var(--line);
}
.entry-content h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 4em; height: 2px; background: var(--red); }
.entry-content h4 { margin: 1.8em 0 .7em; font-size: 1.04rem; line-height: 1.6; color: var(--red-ink); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.entry-content li { margin: .2em 0; }
.entry-content del { color: var(--muted); }
.entry-content iframe { max-width: 100%; }
.entry-content iframe[src*="youtube.com/embed"], .entry-content iframe[src*="youtube-nocookie.com/embed"] {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0;
}
.entry-content blockquote:not(.instagram-media):not(.twitter-tweet) {
  margin: 1.5em 0; padding: 1em 1.1em; background: var(--soft);
  border-left: 4px solid #cfd2d9; color: #3d4148; font-size: .95em;
}
.entry-content blockquote > :last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .92em; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .5em .7em; }
.entry-content th { background: var(--soft); }

/* 前のテーマの飾り */
/* 前の記事の真っ赤な文字（#ff0000）は白の上で薄いので、読める濃さの赤にそろえる（PageSpeed の見やすさ・10/21） */
.entry-content [style*="#ff0000"], .entry-content [style*="#FF0000"] { color: var(--red-ink) !important; }
.keikou { background: linear-gradient(transparent 58%, var(--marker) 58%); }
.topic-box { margin: 1.8em 0; padding: 1em 1.1em .3em; border: 2px solid #e8c4c4; border-radius: 8px; background: var(--paper); }
.topic-title {
  display: inline-block; margin: -.2em 0 .8em; padding: .1em .8em;
  background: var(--red-deep); color: #fff; font-weight: 700; border-radius: 4px; font-size: .95em;
}
.enclose { margin: 1.5em 0; padding: 1em 1.1em .2em; border: 1px solid #d6d9df; border-radius: 6px; background: var(--soft); }
.surround { margin: 1.5em 0; padding: 1em 1.1em .2em; border-radius: 6px; border: 2px solid #d6d9df; background: var(--soft); }
.surround.yellow { border-color: #ecd36a; background: #fffbe8; }

/* 本文に入っている目次 */
#toc_container {
  margin: 1.8em 0; padding: 1em 1.2em 1.1em; display: block;
  background: var(--soft); border: 1px solid var(--line); border-top: 4px solid var(--night); border-radius: 8px; font-size: .94em;
}
#toc_container .toc_title { margin: 0 0 .6em; font-weight: 800; font-size: 1.05em; }
#toc_container .toc_title::after { content: ""; display: block; width: 2em; height: 3px; margin-top: .25em; background: var(--red); }
#toc_container ul { list-style: none; margin: 0; padding: 0; }
#toc_container ul ul { padding-left: 1.4em; font-size: .95em; }
#toc_container li { margin: .3em 0; line-height: 1.6; }
#toc_container a { display: block; padding-left: 2.1em; text-indent: -2.1em; color: var(--ink); text-decoration: none; }
#toc_container a:hover { color: var(--link); text-decoration: underline; }
#toc_container .toc_number { display: inline-block; min-width: 1.8em; margin-right: .3em; text-indent: 0; color: var(--red-ink); font-weight: 800; }
#toc_container .toc_depth_2 { color: var(--muted); font-weight: 600; }

/* インスタ・X の埋め込み（スマホの狭い画面でもはみ出さない） */
.entry-content .instagram-media { min-width: 0 !important; max-width: 540px !important; width: 100% !important; margin: 1.5em auto !important; }
.entry-content iframe.instagram-media { min-width: 0 !important; }
.entry-content blockquote.twitter-tweet { margin: 1.5em 0; padding: 1em; border: 1px solid var(--line); border-radius: 10px; font-size: .9em; }
.entry-content .twitter-tweet-rendered { margin-left: auto; margin-right: auto; }

/* もしもアフィリエイトの商品リンク */
.entry-content [id^="msmaflink-"] { margin: 1em 0 1.5em; }

/* ---- 記事の下 ---- */
.post-footer { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.post-tags a {
  display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .8rem; text-decoration: none; background: var(--soft);
}
.post-tags a::before { content: "#"; margin-right: 1px; }
.post-tags a:hover { color: var(--ink); border-color: #c5c9d1; }
.related-title { margin: 0 0 1em; font-size: 1.12rem; line-height: 1.5; font-weight: 800; }
.related-title::after { content: ""; display: block; width: 2.4em; height: 3px; margin-top: .35em; background: var(--red); }

/* ---- 横の欄（スマホでは本文の下） ---- */
.site-side { display: grid; gap: 12px; margin-top: 12px; }
.side-box { background: var(--paper); padding: 20px 16px; }
.side-title { margin: 0 0 .8em; font-size: 1.05rem; line-height: 1.45; font-weight: 800; }
.side-tags { margin: 0; padding: 0; list-style: none; }
.side-tags li + li { border-top: 1px solid var(--line); }
.side-tags a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 2px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.side-tags a::after { content: "›"; color: var(--muted); }
.side-tags .count { margin-left: auto; color: var(--muted); font-weight: 600; font-size: .8rem; font-variant-numeric: tabular-nums; }
.side-tags a:hover { color: var(--link); }
.side-feature { background: var(--night); color: var(--on-night); padding: 18px 16px 16px; }
.side-feature-label { margin: 0 0 8px; color: var(--gold); font-family: var(--font-label); font-weight: 600; letter-spacing: .16em; font-size: .78rem; }
.side-feature-main {
  display: block; padding: 14px 14px 12px; border-radius: 8px; text-decoration: none; color: #fff;
  background: var(--night-2) repeating-linear-gradient(120deg, transparent 0 18px, rgba(226, 59, 59, .14) 18px 24px);
  border: 1px solid var(--night-line);
}
.side-feature-kicker { display: block; color: var(--gold); font-size: .74rem; font-weight: 700; }
.side-feature-title { display: block; margin: 2px 0 8px; font-size: 1.1rem; font-weight: 900; line-height: 1.4; }
.side-feature-more { display: inline-block; padding: .25em .8em; border-radius: 4px; background: var(--red-deep); font-size: .78rem; font-weight: 700; }
.side-feature-main:hover .side-feature-more { background: var(--red); }
.side-feature-list { margin: 10px 0 0; padding: 0; list-style: none; }
.side-feature-list a { display: block; padding: 7px 2px; color: var(--on-night); font-size: .88rem; font-weight: 700; text-decoration: none; border-top: 1px solid var(--night-line); }
.side-feature-list a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 760px) {
  .site-side { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
  .side-box, .side-feature { border-radius: 10px; }
  .side-box { border: 1px solid var(--line); }
}
@media (min-width: 1040px) { .site-side { grid-template-columns: 1fr; margin-top: 12px; } }

/* ---- 固定ページ ---- */
.page .entry-content h2 { font-size: 1.15rem; margin-top: 2em; }

/* ---- フッター ---- */
.site-footer { background: var(--night); color: var(--on-night-muted); font-size: .85rem; }
.site-footer::before {
  content: ""; display: block; height: 10px; background-color: #0a0e1a;
  background-image: linear-gradient(90deg, rgba(242, 193, 78, .4) 0 9px, transparent 9px 22px);
  background-size: 22px 5px; background-repeat: repeat-x; background-position: 4px center;
}
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 26px 16px 30px; }
.logo--footer { margin-bottom: 16px; }
.logo--footer .logo-main { font-size: 1.3rem; }
.footer-feature { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--night-line); }
.footer-heading { margin: 0 0 4px; color: var(--gold); font-family: var(--font-label); font-weight: 600; font-size: .74rem; letter-spacing: .16em; }
.footer-feature ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.footer-feature a, .footer-links a { color: var(--on-night); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 12px; padding: 0; list-style: none; }
.copyright { margin: 0; font-size: .78rem; }

/* AdSense の広告の枠（記事の目次の前と本文の終わりの2か所。先に高さを取って画面がずれないように）2026-10-21 */
.ad-slot { margin: 28px 0; min-height: 300px; }
.ad-slot .ad-label { margin: 0 0 4px; color: var(--muted); font-size: .75em; text-align: center; letter-spacing: .1em; }

/* ---- 記事の部品（2026-10-27 林さん：画面の飾り方の判断シート「全部推奨」。インスタの写真に頼らず、消えない・軽い自前の部品で区切る）---- */
/* 作品情報の箱：<div class="work-info"><div class="work-info-head"><small>作品情報</small>題名</div><dl><dt>公開日</dt><dd>…</dd>…</dl></div> */
.entry-content .work-info { margin: 1.8em 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.entry-content .work-info-head { position: relative; padding: .9em 1em 1.3em 1.1em; background: var(--night); color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1.5; }
.entry-content .work-info-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--night) repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); }
.entry-content .work-info-head small { display: block; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.entry-content .work-info dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; font-size: .94em; }
.entry-content .work-info dt, .entry-content .work-info dd { margin: 0; padding: .55em .9em; border-top: 1px solid var(--line); }
.entry-content .work-info dt { background: var(--soft); color: var(--muted); font-weight: 700; white-space: nowrap; }
.entry-content .work-info dd { line-height: 1.7; }
/* 年表・見る順番：<ol class="timeline"><li><span class="tl-year">2008</span><span class="tl-title">『題』</span><span class="tl-note">一言</span></li>…（本題の作品は li class="tl-key"）</ol> */
.entry-content ol.timeline { list-style: none; margin: 1.8em 0; padding: 0 0 0 1.4em; border-left: 3px solid var(--red); }
.entry-content ol.timeline li { position: relative; margin: 0 0 1.1em; padding-left: .4em; }
.entry-content ol.timeline li::before { content: ""; position: absolute; left: calc(-1.4em - 9px); top: .45em; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 2px solid var(--night); }
.entry-content ol.timeline li.tl-key::before { background: var(--red); }
.entry-content .timeline .tl-year { display: inline-block; margin-right: .5em; padding: 0 .5em; border-radius: 3px; background: var(--night); color: var(--gold); font-size: .8rem; font-weight: 800; }
.entry-content .timeline .tl-title { font-weight: 800; }
.entry-content .timeline .tl-note { display: block; color: var(--muted); font-size: .88em; line-height: 1.7; }
/* ネタバレのたたみ：<details class="spoiler"><summary>ここから結末に触れます（押すと開く）<small>まだ見ていない人は次の見出しへ</small></summary><div>…</div></details> */
.entry-content details.spoiler { margin: 1.8em 0; border: 2px solid var(--red-ink); border-radius: 8px; background: var(--paper); }
.entry-content details.spoiler > summary { cursor: pointer; list-style: none; padding: .8em 1em; font-weight: 800; color: var(--red-ink); }
.entry-content details.spoiler > summary::-webkit-details-marker { display: none; }
.entry-content details.spoiler > summary::before { content: "▶ "; }
.entry-content details.spoiler[open] > summary::before { content: "▼ "; }
.entry-content details.spoiler > summary small { display: block; color: var(--muted); font-weight: 400; font-size: .8em; }
.entry-content details.spoiler > div { padding: .2em 1em .4em; border-top: 1px dashed var(--line); }
/* 名ぜりふの箱：<blockquote class="line-quote"><p lang="en">"I am Iron Man."</p><p>「私がアイアンマンだ」</p><cite>『作品』（年）人物</cite></blockquote>（元の言葉＋自分の訳＋作品名。自分の文が主になるよう、前後で書き手の言葉で論じる） */
.entry-content blockquote.line-quote:not(.instagram-media):not(.twitter-tweet) { position: relative; margin: 1.6em 0; padding: 1.1em 1.2em 1em 3em; border: 0; border-radius: 8px; background: var(--night); color: var(--on-night); font-size: 1em; }
.entry-content blockquote.line-quote::before { content: "\201C"; position: absolute; left: .35em; top: -.05em; font-size: 3.2em; line-height: 1; color: var(--gold); font-family: Georgia, serif; }
.entry-content blockquote.line-quote p { margin: 0 0 .3em; font-weight: 700; }
.entry-content blockquote.line-quote p[lang="en"] { color: var(--on-night-muted); font-weight: 400; font-size: .9em; }
.entry-content blockquote.line-quote cite { display: block; margin-top: .4em; color: var(--gold); font-style: normal; font-size: .82em; }
/* YouTube は押すまで読み込まない（組み立てで iframe を置き換える）*/
.entry-content .yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 1.5em 0; border-radius: 8px; overflow: hidden; background: var(--night) center / cover no-repeat; color: #fff; text-decoration: none; }
.entry-content .yt::before { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: var(--red); }
.entry-content .yt::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -6px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.entry-content .yt .yt-title { position: absolute; left: 0; right: 0; bottom: 0; padding: .6em .9em; background: linear-gradient(transparent, rgba(15, 20, 36, .85)); font-size: .85em; font-weight: 700; }
.entry-content .yt:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* 商品カード（もしもの「かんたんリンク」）をスマホで低くする（2026-10-28 林さん：もしもに聞かずに進める。並びと大きさだけ変え、
   リンク・ボタン・商品名・広告の表示は消さない。崩れたらこの塊を消せば元に戻る）。カードの見た目は後から読み込まれるので、頭に body を付けて勝たせる */
@media screen and (max-width: 480px) {
  body .entry-content div.easyLink-box { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; align-items: start; margin: 1em 0 0; padding: 12px; max-width: none; }
  body .entry-content div.easyLink-box div.easyLink-info { display: contents; }
  body .entry-content div.easyLink-box div.easyLink-img { grid-column: 1; grid-row: 1 / span 3; width: 96px; height: 96px; margin: 0; }
  body .entry-content div.easyLink-box div.easyLink-img p.easyLink-img-box span > img { width: auto; height: auto; max-width: 96px; max-height: 96px; }
  body .entry-content div.easyLink-box div.easyLink-img a.easyLink-arrow-left img, body .entry-content div.easyLink-box div.easyLink-img a.easyLink-arrow-right img { width: 20px; height: 20px; }
  body .entry-content div.easyLink-box div.easyLink-info p.easyLink-info-maker { grid-column: 2; grid-row: 1; margin: 0; font-size: 11px; line-height: 1.4; }
  body .entry-content div.easyLink-box div.easyLink-info p.easyLink-info-name { grid-column: 2; grid-row: 2; margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
  body .entry-content div.easyLink-box div.easyLink-info p.easyLink-info-model { grid-column: 2; grid-row: 3; margin: 2px 0 0; font-size: 11px; line-height: 1.4; }
  body .entry-content div.easyLink-box div.easyLink-info p.easyLink-info-btn { grid-column: 1 / -1; grid-row: 4; position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
  body .entry-content div.easyLink-box div.easyLink-info p.easyLink-info-btn > img { position: absolute; left: 0; top: 0; }
  body .entry-content div.easyLink-box div.easyLink-info p.easyLink-info-btn a { flex: 1 1 0; min-width: 0; height: auto; min-height: 38px; margin: 0; padding: 4px; font-size: 12px; line-height: 1.25; }
}
