/*
 * hachi-log.jp/media の見た目（Cocoon の上に重ねる）。
 *
 * **トンマナは LP（2026-10-26 公開版の renew.css の .hachiRenew）に合わせる**（2026-10-27 小池の指示）。
 * LP は凍結中なので、LP の CSS は読むだけ。値だけをここに写す（LP 側には触らない）。
 *
 * LP はウェブフォントを読み込んでいない。フォント名を並べているだけで、
 * Noto が入っていない端末では Yu Gothic・Meiryo になる。ここも同じ並びにする（同じ見え方になる）。
 *
 * 区切りは余白と罫1本。枠を重ねない。
 */
:root {
  --hl-paper: #f4f1ea;
  --hl-green: #2f4a3a;
  --hl-green-deep: #193124;
  --hl-green-hover: #41634d;
  --hl-light: #e1eadf;
  --hl-ink: #27352c;
  --hl-line: #d6dcd1;
  --hl-yellow: #e9d88f;
  --hl-card: #fffdf8;
  --hl-focus: #b87827;
  --hl-muted: rgba(39, 53, 44, 0.72);
  --hl-sans: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --hl-serif: "Noto Serif JP", "Yu Mincho", serif;
}

body,
.body,
#container,
.wrap,
.content,
.main,
.sidebar,
.header,
.header-container,
.footer,
.footer-bottom,
.navi,
.mobile-footer-menu-buttons {
  background-color: var(--hl-paper);
  color: var(--hl-ink);
}
body {
  font-family: var(--hl-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-tap-highlight-color: var(--hl-light);
}

a {
  color: var(--hl-green);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--hl-focus);
  outline-offset: 4px;
}

/* 枠と影を外し、余白で区切る */
.main,
.sidebar,
.widget,
.entry-card-wrap,
.related-entry-card-wrap,
.pager-post-navi a {
  border: 0;
  box-shadow: none;
  background: transparent;
}

/* ヘッダー：ロゴ（読み物のトップ /media へ。2026-10-28 から文字リンクは置かない） */
.header .site-name-text {
  color: var(--hl-ink);
  font-family: var(--hl-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hl-records-link {
  margin: 0.25em 0 0;
  text-align: center;
  font-size: 0.875rem;
}
.hl-records-link a,
.hl-index-intro a {
  color: var(--hl-green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* ロゴの上の一言（Cocoon のキャッチフレーズ）は出さない。サイトの名前がロゴと重なって2回出るため */
.tagline {
  display: none;
}

/* 大見出しは LP と同じ明朝（LP はヒーローの h1 だけ明朝で、ほかはゴシック） */
.entry-title,
.hl-index-intro h1 {
  font-family: var(--hl-serif);
  color: var(--hl-ink);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* 一覧の前書き */
.hl-index-intro {
  margin: 0 0 2em;
}
.hl-index-intro h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 0.5em;
}
.hl-index-intro p {
  font-size: 0.9375rem;
  color: var(--hl-muted);
}

/* 本文 */
.entry-content {
  font-size: 16px;
  line-height: 1.9;
}
.entry-content h2 {
  background: none;
  border: 0;
  border-top: 1px solid var(--hl-line);
  padding: 1.25em 0 0;
  color: var(--hl-ink);
  font-size: 1.25rem;
}
.entry-content h3 {
  border: 0;
  padding: 0;
  font-size: 1rem;
  color: var(--hl-ink);
}
.entry-content p.hl-lead {
  font-size: 1.0625rem;
}
.hl-byline {
  font-size: 0.8125rem;
  color: var(--hl-muted);
  margin-bottom: 1em;
}

/* 写真は主役を切らない。表示する幅に合わせて縮めるだけ */
.eye-catch img,
.entry-content .hl-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.entry-content .hl-figure figcaption {
  font-size: 0.75rem;
  color: var(--hl-muted);
  margin-top: 0.25em;
}

/* 要点と数字。LP のカードと同じ（生成りの白・罫1px・角丸10px） */
.hl-keypoints,
.hl-figures {
  background: var(--hl-card);
  border: 1px solid var(--hl-line);
  border-radius: 10px;
  padding: 0.75em 1em;
}
.hl-keypoints h2 {
  border-top: 0;
  padding-top: 0;
  font-size: 1rem;
}
.hl-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75em;
  text-align: center;
}
.hl-figures dt {
  font-size: 0.75rem;
  color: var(--hl-muted);
  font-weight: 400;
}
.hl-figures dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 使ってみる（文頭・文中・文末）。LP のボタンと同じ（深緑・下に濃い影・押すと明るく） */
.hl-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.25em;
  border-radius: 10px;
  background: var(--hl-green);
  box-shadow: 0 4px 0 var(--hl-green-deep);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.hl-cta a:hover {
  background: var(--hl-green-hover);
  color: #fff;
}
.hl-cta-lead,
.hl-lp {
  font-size: 0.875rem;
  color: var(--hl-muted);
}

/* 品種・出典のリスト */
.hl-species ul,
.hl-sources ul {
  padding-left: 1.25em;
}
.hl-species a,
.hl-sources a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hl-sources li {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

/* アイキャッチ上のカテゴリ札は出さない（全部同じ「未分類」になるため） */
.eye-catch .cat-label,
.cat-label {
  display: none;
}

/*
 * 表紙の無い記事に「NO IMAGE」を出さない。
 * Next 版の一覧も、表紙が無い記事は写真の枠ごと出していなかった（MediaList.tsx の post.cover &&）。
 */
.entry-card-thumb:has(img[src*="no-image"]),
.related-entry-card-thumb:has(img[src*="no-image"]),
.widget-entry-card-thumb:has(img[src*="no-image"]) {
  display: none;
}
.entry-card:has(.entry-card-thumb img[src*="no-image"]) .entry-card-content,
.related-entry-card:has(.related-entry-card-thumb img[src*="no-image"]) .related-entry-card-content {
  margin-left: 0;
}

/* 一覧のカード */
.entry-card-title,
.related-entry-card-title {
  color: var(--hl-ink);
  font-weight: 700;
}
.entry-card-thumb img,
.related-entry-card-thumb img {
  border-radius: 10px;
}

/* サイドバー見出し：灰色の帯をやめて、罫1本 */
.sidebar h2,
.sidebar h3,
.widget-sidebar-title {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hl-line);
  color: var(--hl-ink);
  padding: 0 0 0.4em;
  font-size: 0.9375rem;
}

/* スマホ下の固定メニュー */
.mobile-footer-menu-buttons {
  border-top: 1px solid var(--hl-line);
}
.mobile-footer-menu-buttons .menu-button,
.mobile-footer-menu-buttons .menu-button a {
  color: var(--hl-green);
}

/* 375px で横スクロールを出さない */
.entry-content,
.entry-content * {
  max-width: 100%;
}
.entry-content a {
  overflow-wrap: anywhere;
}

/* ===== 回遊（2026-10-27） ===== */

.hl-figures-more a,
.hl-figures-rain a,
.hl-exit-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--hl-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* 数字の直後：品種ページと /rain への一歩 */
.hl-figures-more,
.hl-figures-rain {
  font-size: 0.875rem;
  color: var(--hl-muted);
  margin: 0.5em 0 0;
}
/* 記事末：カードと数字の出どころ */
.hl-exit {
  margin: 2.5em 0 1.5em;
}
.hl-exit-source {
  margin: 1em 0 0;
  font-size: 0.875rem;
  color: var(--hl-muted);
}

/* 404 の「新しい記録」の並び */
.hl-exit-list {
  list-style: none;
  margin: 0.75em 0 0;
  padding: 0;
  display: grid;
  gap: 0.75em;
}
.hl-exit-list li {
  margin: 0;
  padding: 0.75em 1em;
  background: var(--hl-card);
  border: 1px solid var(--hl-line);
  border-radius: 10px;
}
.entry-content ul.hl-exit-list {
  padding-left: 0;
  margin-left: 0;
}

/* 無料で始める入口（文中は短い版、記事末は完全版。2026-11-02） */
.hl-convert {
  margin: 30px 0;
  padding: 28px;
  background: #fffdf8;
  border: 1px solid #ddd8cc;
  border-top: 4px solid #2f4a3a;
  border-radius: 14px;
  box-sizing: border-box;
  color: #26392d;
}
.hl-exit .hl-convert {
  margin: 0;
}
.hl-convert p {
  margin: 0;
}
.hl-convert .hl-convert-kicker {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #526653;
}
.hl-convert p {
  word-break: auto-phrase;
  text-wrap: pretty;
}
.hl-convert .hl-convert-title {
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.55;
  color: #26392d;
}
.hl-convert .hl-convert-body {
  font-size: 16px;
  line-height: 1.8;
}
.entry-content .hl-convert ul.hl-convert-benefits {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.7;
}
.entry-content .hl-convert-benefits li {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.5em;
}
.hl-convert-benefits li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #2f4a3a;
}
.hl-convert .hl-convert-main {
  margin-top: 22px;
}
.entry-content .hl-convert-main a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px;
  border-radius: 8px;
  background: #2f4a3a;
  box-sizing: border-box;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s;
}
.entry-content .hl-convert-main a:hover {
  background: #223a2b;
  color: #fff;
}
.entry-content .hl-convert-main a span {
  margin-left: 0.5em;
}
.hl-convert .hl-convert-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  color: #566053;
}
.hl-convert .hl-convert-main + .hl-convert-note {
  margin-top: 12px;
}
.hl-convert .hl-convert-detail {
  margin-top: 8px;
  text-align: center;
}
.entry-content .hl-convert-detail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #2f4a3a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.entry-content .hl-convert a:focus-visible {
  outline: 3px solid #9d6b12;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .hl-convert {
    padding: 20px 18px;
  }
  .hl-convert .hl-convert-title {
    font-size: 21px;
  }
  .hl-convert .hl-convert-body {
    font-size: 15px;
  }
  .entry-content .hl-convert ul.hl-convert-benefits {
    font-size: 14px;
  }
  .entry-content .hl-convert-main a {
    font-size: 17px;
  }
}

/* 一覧：連載で選ぶ入口と、アプリへの1行 */
.hl-chips {
  margin: 1em 0 0;
}
.hl-chips-title {
  font-size: 0.8125rem;
  color: var(--hl-muted);
  margin: 0 0 0.4em;
}
.hl-chips ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.hl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0 0.9em;
  border: 1px solid var(--hl-line);
  border-radius: 999px;
  background: var(--hl-card);
  color: var(--hl-ink) !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}
.hl-chip:hover {
  border-color: var(--hl-green);
}
.hl-chip-count {
  font-size: 0.75rem;
  color: var(--hl-muted);
}
/* 種類で選ぶ：いま開いている種類と、まだ記事の無い種類（消さずに押せない形で出す） */
/* カテゴリの一覧では、下の記事カードとの間をあける（スマホで札とカードが接していた） */
#archive-title ~ .hl-chips {
  margin-bottom: 1.5em;
}
.hl-chip.is-current {
  border-color: var(--hl-green);
  font-weight: 600;
}
.hl-chip.is-empty {
  color: var(--hl-muted) !important;
  background: transparent;
  border-style: dashed;
  cursor: default;
}
.hl-index-app {
  margin: 1em 0 0;
  font-size: 0.875rem;
}

/* サイドバー先頭：書いている人の棚の一行（数字の信頼の出どころと、アプリの存在を同時に言う） */
.hl-author {
  background: var(--hl-card);
  border: 1px solid var(--hl-line);
  border-radius: 10px;
  padding: 0.9em 1em;
  font-size: 0.875rem;
}
.hl-author p {
  margin: 0 0 0.4em;
}
.hl-author .hl-author-name {
  font-weight: 700;
  color: var(--hl-ink);
  margin: 0;
}
.hl-author-hd {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 0.6em;
}
.hl-author-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hl-line);
  flex: none;
}
.hl-author .hl-author-role {
  margin: 0;
  font-size: 0.75rem;
  color: var(--hl-muted);
}
.hl-author .hl-author-disc {
  font-size: 0.75rem;
  color: var(--hl-muted);
}
.hl-author a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--hl-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/*
 * 目次は大見出しまで（2026-10-27）。スマホで FAQ の質問5つまで並び、本文が画面2つぶん下がっていた。
 * 小見出しは本文の中で読めるので、目次からは外す。
 */
.toc-content ol ol,
.toc-content ul ul {
  display: none;
}

/*
 * SNS のボタン（2026-10-27）。本文の上のシェアは読む前の雑音なので出さない（Next 版にも無かった）。
 * フォローは SNS のアカウントを設定していないので RSS 等だけが並ぶ。出さない。
 * 本文の下のシェアだけ残し、各社の色ではなく LP の色にそろえる。
 */
.sns-share.ss-top,
.sns-follow {
  display: none;
}
.sns-share.ss-bottom .sns-buttons a {
  background: var(--hl-card) !important;
  color: var(--hl-green) !important;
  border: 1px solid var(--hl-line);
  border-radius: 10px;
  min-height: 44px;
}
.sns-share.ss-bottom .sns-buttons a:hover {
  border-color: var(--hl-green);
}
.sns-share-message {
  color: var(--hl-muted);
  font-size: 0.875rem;
}

/* タグ・月別の見出しは、一覧の見出しと同じ明朝。Cocoon の札のアイコンは外す */
.archive-title {
  font-family: var(--hl-serif);
  color: var(--hl-ink);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.5;
}
.archive-title .fa,
.archive-title .fas,
.archive-title [class^="fa-"] {
  display: none;
}

/* 404：行き止まりにしない（新しい記録と一覧への道） */
.hl-404-lead {
  color: var(--hl-muted);
}
.hl-404-title {
  font-size: 1rem;
  margin: 1.5em 0 0.5em;
  color: var(--hl-ink);
}
.entry-content ul.hl-404-list,
ul.hl-404-list {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}
.hl-404-more {
  margin-top: 1.25em;
}
.hl-404-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 1em;
  color: var(--hl-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 記事末の「書いている人」。サイドバーが隠れる幅（Cocoon の 1023px 以下）でだけ出す */
.hl-author-foot {
  display: none;
  margin: 2em 0 0;
}
@media screen and (max-width: 1023px) {
  .hl-author-foot {
    display: block;
  }
}

/* 一覧の頭の一言（連載の説明） */
.hl-archive-lead {
  margin: 0.25em 0 1.5em;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--hl-muted);
}

/* 本文の下の1行（出典の一覧の直前。2026-10-28） */
.hl-verified {
  margin: 2em 0 0.5em;
  font-size: 0.875rem;
  color: var(--hl-muted);
}

/* 一覧の前書きの書き手（2026-10-28。サイドバーの「書いている人」と同じ絵） */
.hl-intro-hd {
  margin: 0.75em 0 0.5em;
}
.hl-intro-hd .hl-author-av {
  width: 56px;
  height: 56px;
}
.hl-index-intro .hl-intro-name {
  margin: 0;
  font-weight: 700;
  color: var(--hl-ink);
}
.hl-index-intro .hl-intro-role {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--hl-muted);
}
/* PC幅（1024px 以上）はサイドバーに同じ「書いている人」が出るので、一覧の側は出さない（2026-10-28 小池の指摘。Cocoon は 1023px 以下でサイドバーを隠す） */
@media (min-width: 1024px) {
  .hl-intro-hd {
    display: none;
  }
}
