/* Love or Lies（/tantei/）のスタイル。旧サイトのグレー基調の見た目を、この HTML 用に書き直したもの */
:root {
  --text: #535252;
  --sub: #778893;
  --accent: #aac2d2;
  --line: #e6edf2;
  --pale: #f7f9fb;
  --gray: #e4e4e3;
  --widget: #f5f6f7;
  --label: #556169;
  --header-h: 56px;
  --latin: "Montserrat", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .16em;
  color: var(--text);
  background: #fff;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ヘッダー（記事・固定ページ・一覧） */
.site-header {
  position: sticky; top: 0; z-index: 10;
  height: var(--header-h);
  background: rgba(228, 228, 227, .9);
  backdrop-filter: blur(6px);
}
.site-header__in { max-width: 1256px; height: 100%; margin: 0 auto; padding: 0 12px; display: flex; align-items: center; }
.site-logo { font-family: var(--latin); font-weight: 200; font-size: 1.56rem; letter-spacing: .4rem; line-height: var(--header-h); }

/* トップの全画面メインビジュアル */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 480px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: url(/tantei/assets/images/2025/08/top-image.png) center / cover no-repeat;
  text-align: center;
}
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; }
.hero::before { background: #fff; opacity: .5; }
.hero::after { background: radial-gradient(#fff 1px, transparent 1.2px) 0 0 / 4px 4px; opacity: .7; }
.hero > * { position: relative; z-index: 1; }
.hero__tagline { margin: 0 0 1.5rem; font-size: 14px; }
.hero__logo { margin: 0; font-family: var(--latin); font-weight: 200; font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: .1em; line-height: 1.4; }
.hero__scroll { position: absolute; bottom: 40px; left: 0; right: 0; font-family: var(--latin); font-size: 12px; }
.hero__scroll::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 40px; margin: auto;
  width: 20px; height: 20px; border: solid currentColor; border-width: 0 0 1px 1px; rotate: -45deg;
  animation: hero-scroll 2.5s infinite;
}
@keyframes hero-scroll {
  0% { transform: translate(0, 0); opacity: 0; }
  40% { opacity: 1; }
  80% { transform: translate(-10px, 10px); opacity: 0; }
  100% { opacity: 0; }
}

/* パンくず */
.breadcrumb { max-width: 1256px; margin: 12px auto 0; padding: 6px 32px; font-size: 10px; line-height: 1.8; color: var(--sub); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0 .6em; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: flex; align-items: center; gap: .4em; }
.breadcrumb li + li::before { content: ""; width: .5em; height: .5em; margin-right: .4em; border: solid currentColor; border-width: 1px 1px 0 0; rotate: 45deg; }

/* 本文と右サイドバー */
.layout { max-width: 1256px; margin: 0 auto; display: flex; gap: 0; }
.main { flex: 1; min-width: 0; padding: 36px 28px; }
.sidebar { width: 340px; flex: none; padding: 19px 20px; }
.t-front .main { padding-top: 20px; }

/* 記事 */
.entry-title { margin: 16px 0; font-size: 26px; line-height: 1.6; letter-spacing: .14em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0 1.2em; margin: 0 0 .6em; font-size: 10px; line-height: 1.6; color: var(--sub); }
.entry-meta span { display: inline-flex; align-items: center; gap: .3em; }
.eyecatch { margin: 0 0 2em; }
.eyecatch .cat-label { position: static; display: inline-block; margin-bottom: 6px; padding: 2px 8px; font-size: 14px; }
.eyecatch img { display: block; width: 100%; }
.cat-label { display: inline-block; padding: 2px 6px; font-size: 11px; line-height: 1.8; color: #fff; background: var(--label); white-space: nowrap; }

.content > * { margin: 0 0 1.8em; }
.content h2 { position: relative; margin: 96px 0 1.62em; padding: 16px 8px; font-size: 24px; line-height: 1.6; letter-spacing: .14em; border-bottom: 4px solid var(--gray); }
.content h2::before { content: ""; position: absolute; left: 0; bottom: -4px; width: 30%; border-bottom: 4px solid var(--accent); }
.content h3 { position: relative; margin: 66px 0 1.62em; padding: 12px 14px; font-size: 22px; line-height: 1.6; letter-spacing: .14em; background: var(--pale); }
.content h3::before { content: ""; position: absolute; inset: 4px -4px -4px 4px; border: 1px solid var(--accent); pointer-events: none; }
.content h4 { position: relative; margin: 40px 0 1.62em; padding: 12px 28px; font-size: 20px; line-height: 1.6; }
.content h4::before { content: ""; position: absolute; left: 2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 1px solid var(--accent); rotate: 45deg; }
.content ul, .content ol { padding: 0 .9em; font-size: .9em; }
.content ul { list-style: none; }
.content ul > li { position: relative; margin: .18em .18em 0; padding: .9em 0 .9em 1.2em; font-weight: 700; color: var(--sub); border-bottom: 1px solid var(--line); }
.content ul > li::before { content: ""; position: absolute; left: 0; top: 1.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.content > ol > li { padding: .4em 0; font-weight: 700; color: var(--sub); }
.content li strong, .content li a { color: var(--text); }
.content a:not(.button) { color: #1967d2; text-decoration: underline; }
.content figure { margin-left: 0; margin-right: 0; text-align: center; }
.content figure img { display: inline-block; }
.content table { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.6; }
.content .table-wrap { overflow-x: auto; }
.content th, .content td { padding: .6em .8em; border: 1px solid var(--line); text-align: left; }
.content th, .content thead td { background: var(--pale); }
.content tr:nth-child(even) td { background: #fbfcfd; }
.button-wrap { text-align: center; }
.button { display: inline-block; width: 75%; padding: 1em 2em; border-radius: 99px; color: #fff; background: #ff9900; font-size: 1.1em; font-weight: 700; text-align: center; }

/* 目次 */
.content .toc { margin: 14.4px 0 26px; border-top: 1px solid var(--sub); border-bottom: 1px solid var(--sub); font-size: .9em; }
.content .toc summary {
  padding: 10px 0; list-style: none; cursor: pointer; text-align: center; color: var(--sub); font-size: 1.1em;
  background: repeating-linear-gradient(-45deg, #fff 0 4px, var(--pale) 4px 8px);
}
.content .toc summary::-webkit-details-marker { display: none; }
.content .toc summary::after { content: " [開く]"; font-size: .8em; }
.content .toc[open] summary::after { content: " [閉じる]"; }
.content .toc ol { margin: 0; padding: .5em 0 1em 1.4em; font-size: 1em; list-style: none; }
.content .toc ol ol { padding: 0 0 .6em 1.6em; border-bottom: 1px solid var(--line); }
.content .toc a { position: relative; display: inline-block; padding: 3px 3px 3px 1.4em; font-weight: 700; letter-spacing: .04em; color: var(--sub); text-decoration: none; }
.content .toc a::before { content: ""; position: absolute; left: 0; top: .95em; width: .45em; height: .7em; border: solid var(--accent); border-width: 0 2px 2px 0; rotate: 45deg; }
.content .toc ol ol a { font-weight: 400; }
.content .toc ol ol a::before { width: 5px; height: 5px; top: 1.1em; border: 0; border-radius: 50%; background: var(--accent); rotate: 0deg; }

/* 記事下：執筆者・カテゴリ・関連記事・前後の記事 */
.author { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 0 32px; align-items: start; margin: 3em 0 1.8em; padding: 32px; line-height: 1.4; }
.author::before, .author::after { content: ""; position: absolute; width: 40px; height: 40px; border: 1px solid #c0bfbf; }
.author::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.author::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.author img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.author__label { margin: 0 0 .4em; font-size: 12px; color: var(--sub); }
.author__name { margin: 0 0 .8em; font-family: var(--latin); font-size: 16px; }
.author__text p { margin: 0 0 .8em; font-size: 14px; line-height: 1.8; }
.entry-cats { margin: 0 0 1em; }
.entry-cats a { display: inline-flex; align-items: center; gap: .3em; padding: 2px 6px; font-size: 12px; color: #fff; background: var(--label); }
.entry-by { margin: 0; font-size: 12.8px; text-align: right; }
.entry-by span { display: inline-flex; align-items: center; gap: .3em; }

.section-heading { margin: 22px 0; padding: 4px 0; font-family: var(--latin); font-size: 24px; font-weight: 400; letter-spacing: .1em; border-bottom: 1px solid var(--accent); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 12px; margin: 0 0 32px; }
.related .card__title { font-size: 14px; }
.related .card__snippet { font-size: 10px; line-height: 1.3; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 2em; }
.pager a { display: flex; align-items: center; gap: 10px; padding: 8px; font-size: 13px; line-height: 1.6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pager .next { flex-direction: row-reverse; text-align: right; grid-column: 2; }
.pager img { width: 120px; flex: none; }

/* 記事カード（トップ・一覧・関連記事） */
.archive-title { display: flex; align-items: center; gap: .4em; margin: 0 0 24px; font-size: 24px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
.card { display: flex; flex-direction: column; }
.card__thumb { position: relative; margin: 0 0 .4em; aspect-ratio: 16 / 9; overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__thumb .cat-label { position: absolute; left: 0; bottom: 0; }
.card__title { margin: 5px 0; font-size: 16px; font-weight: 400; line-height: 1.6; }
.card__snippet { margin: 0 0 5px; font-size: 12px; line-height: 1.6; }
.card__date { margin-top: auto; display: flex; align-items: center; justify-content: flex-end; gap: .3em; font-size: 10px; color: var(--sub); }

/* サイドバー */
.widget { margin: 0 0 2.5em; }
.widget h2 { margin: 0 0 16px; padding: 12px; font-size: 20px; line-height: 1.8; background: var(--widget); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li a { display: block; padding: 10px 4px; font-size: 14px; line-height: 1.8; }
.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 16px); }

/* フッター */
.site-footer { margin-top: 40px; padding: 24px 16px 32px; background: var(--gray); text-align: center; }
.site-footer__logo { display: inline-block; font-family: var(--latin); font-size: 18px; letter-spacing: .4rem; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2em; margin: 12px 0 0; padding: 0; list-style: none; }
.site-footer li a { position: relative; font-family: var(--latin); font-size: 14px; letter-spacing: .1em; }
.site-footer li a::before { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); }
.copyright { margin: 24px 0 0; font-size: 14px; opacity: .7; }

/* 上へ戻る（PC） */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 9;
  display: grid; place-items: center; width: 56px; height: 56px;
  border: 1px solid var(--accent); border-radius: 50%; background: rgba(255, 255, 255, .5); color: #333; font-size: 22px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.is-scrolled .to-top { opacity: 1; visibility: visible; }

/* スマートフォンの下部ボタン（ホーム・シェア・目次・トップ・サイドバー） */
.mobile-bar, .drawer-toggle, .drawer { display: none; }

/* 404 */
.not-found { display: block; margin: 0 auto 1.8em; }

@media (max-width: 1023px) {
  .layout { display: block; }
  .main { padding: 16px; }
  .sidebar { display: none; }
  .breadcrumb { padding: 6px 16px; font-size: 12px; }
  .to-top { display: none; }
  body { padding-bottom: 56px; }
  .site-header { background: rgba(255, 255, 255, .92); }
  .site-header__in { justify-content: center; }
  .site-logo { font-size: 1.1rem; font-weight: 400; letter-spacing: .1rem; }
  .entry-title { font-size: 24px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; height: 56px; margin: 0; padding: 0 0 env(safe-area-inset-bottom); list-style: none;
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(4px);
  }
  .mobile-bar > li { flex: 1; }
  .mobile-bar a, .mobile-bar label {
    display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%;
    font-size: 10px; line-height: 1.4; letter-spacing: 0; cursor: pointer; color: #535252;
  }
  .mobile-bar .icon { width: 22px; height: 22px; margin-bottom: 2px; }
  /* シェア・サイドバーのパネル（CSS だけで開閉） */
  .drawer { position: fixed; inset: 0; z-index: 30; display: block; visibility: hidden; }
  .drawer__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .3s; }
  .drawer__panel {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow-y: auto; padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
    background: #fff; transform: translateY(100%); transition: transform .3s;
  }
  .drawer--side .drawer__panel { top: 0; left: auto; width: min(340px, 86vw); max-height: none; transform: translateX(100%); }
  .drawer-toggle:checked + .drawer { visibility: visible; }
  .drawer-toggle:checked + .drawer .drawer__shade { opacity: 1; }
  .drawer-toggle:checked + .drawer .drawer__panel { transform: none; }
  .share { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
  .share a, .share button {
    display: block; width: 100%; padding: 10px 4px; border: 0; font: inherit; font-size: 12px; letter-spacing: 0; text-align: center; color: #fff; cursor: pointer;
  }
  .share .x { background: #000; } .share .bluesky { background: #1185fe; } .share .facebook { background: #1877f2; }
  .share .hatebu { background: #00a4de; } .share .line { background: #06c755; } .share .pinterest { background: #e60023; }
  .share .linkedin { background: #0a66c2; } .share .mastodon { background: #6364ff; } .share .copy { background: var(--label); }
}
@media (max-width: 834px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; gap: 28px; }
  .card__title { font-size: 18px; }
  .card__snippet { display: none; }
  .related { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .related .card__title { font-size: 12px; }
  .related .card__snippet { display: none; }
  .content h2 { margin-top: 64px; font-size: 20px; }
  .content h3 { margin-top: 48px; font-size: 18px; }
  .content h4 { font-size: 17px; }
  .author { grid-template-columns: 1fr; justify-items: center; padding: 24px 16px; text-align: center; }
  .author__text { text-align: left; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; }
  .pager img { width: 96px; }
  .hero__tagline { font-size: 12px; margin-bottom: .5rem; }
  .hero__scroll { bottom: 1rem; font-size: 10px; }
  .hero__scroll::before { width: 12px; height: 12px; bottom: 3.5rem; }
}
