/*
  Responsive: yes
 */
/* ============================================================
   なまけるのに飽きるまで (namakeru.com) デザイン v6.3「静かな読みもの型」
   -----------------------------------------------------------
   貼り付け場所: 管理画面 > デザイン > カスタマイズ(スパナ) > デザインCSS
   貼り方     : この欄に【全文を貼る。旧内容は全部消す】(先に旧内容をコピーして保存しておく)
                旧内容のバックアップ = design/backup/2026-12-02-blog_style.css
   テーマ     : 変更しない。本番では旧テーマ部+旧カスタム+v5 が blog_style 1本で
                読まれていたため、v6 はレイアウトの骨組みも自前で持つ(単体で成立する)。
                旧テーマのCSSが別に読まれていた場合にも崩れないよう、旧テーマの装飾
                (h2 の破線、記事ヘッダの左罫・日付リボン、ターコイズの帯など)は明示的に打ち消している。
   先頭の「Responsive: yes」コメントは旧 blog_style の先頭にあったもの。はてながこれを
   読んでレスポンシブ判定に使っている可能性を否定できないので残している。

   設計値(トークン) ※詳細は design/STRATEGY.md
     色    墨 #222 / 補助グレー #666c72 / 罫線 #e2e6ea / 淡背景 #f5f7f9 / 青 #1264c2(ホバー #0c4a94)
           v6.2 で緑とCTAのオレンジをやめ、色みは青の1色だけにした(リンク・見出しの印・ボタン)。
           例外: 旧記事の .yellow 系マーカーだけ #ffe89a
     書体  "Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic Medium",YuGothic,Meiryo
           見出しだけ palt + text-wrap:balance + word-break:auto-phrase
     本文  PC/タブレット 17px・行間1.85・行長 646px(38em, 1行約37字) / スマホ 16px・行間1.8・左右20px
     リンク 青+下線(太さ1px・色は青の60%・オフセット .22em)。ホバーで濃い青+下線も濃く
     見出し H2 1.35em 太字+淡背景の帯と左に青の4px罫 / H3 1.2em 太字+下に1px罫と青の短い印 / H4 1.05em 太字+青の短い横棒
     段落  1.5em  リスト 左1.5em・項目間.4em
     段組  PCも1段。ロゴ・ナビ・本文を中央の646px列に揃える。サイドバー(#box2)は記事の下に積む
           中の部品も横に2列以上並べない(関連記事・前後の記事は縦に積み、カテゴリの入口は小さな札を横に流す)
           (プロフィール・このブログについて・広告は残し、月別アーカイブは隠す。画像バナーは文字リンクに)
     図版  キャプション付き画像(figure)だけ、PC(960px以上)は本文の外へ左右57pxはみ出させ、スマホは画面の端まで広げる
   既存記事が使うクラス(nmk-*)は名前を維持し、見た目だけ静かにした。
   ============================================================ */

:root {
  --nmk-ink: #222;
  --nmk-sub: #666c72;
  --nmk-line: #e2e6ea;
  --nmk-soft: #f5f7f9;
  --nmk-accent: #1264c2;
  --nmk-accent-dark: #0c4a94;
  --nmk-accent-line: rgba(18, 100, 194, 0.6);   /* リンクの下線。文字より薄くして本文の中で騒がせない */
  --nmk-cta: var(--nmk-accent);   /* CTAボタンの地色。オレンジに戻すならここを #ff7a1a に */
  --nmk-marker: #ffe89a;
  --nmk-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", YuGothic, Meiryo, sans-serif;
  --nmk-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nmk-col: 646px;       /* 本文の列 = 17px の 38em(1行約37字) */
  --nmk-gutter: 20px;
  --nmk-bleed: 0px;       /* キャプション付き画像を本文の外へはみ出させる量 */
  /* 列の左端(ナビの段の左右余白に使う) */
  --nmk-edge: max(var(--nmk-gutter), calc((100% - var(--nmk-col)) / 2));
}
@media (min-width: 601px) {
  :root { --nmk-gutter: 32px; }
}
@media (min-width: 960px) {
  :root { --nmk-bleed: 57px; }
}

/* ---------- 土台 ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--nmk-ink);
  font-family: var(--nmk-font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}
a { color: var(--nmk-accent); opacity: 1; text-decoration: none; }
a:hover { color: var(--nmk-accent-dark); }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
iframe, embed, object, video { max-width: 100%; }
button, input, select, textarea { font: inherit; letter-spacing: normal; }
pre, code, kbd, samp { font-family: var(--nmk-mono); }

/* 旧テーマの見出し(ターコイズ・破線・帯)をページ全体で打ち消す */
h1, h2, h3, h4, h5, h6 {
  clear: both;
  color: var(--nmk-ink);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  line-height: 1.45;
  font-feature-settings: "palt";
}
h2 { font-size: 1.35em; margin: 1.6em 0 0.6em; }
h3 { font-size: 1.15em; margin: 1.4em 0 0.5em; }
h4, h5, h6 { font-size: 1em; margin: 1.2em 0 0.4em; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.5em; }
hr { height: 0; margin: 2.4em 0; border: 0; border-top: 1px solid var(--nmk-line); background: none; }

/* ---------- レイアウト(PCも1段組み。ロゴ・ナビ・タイトル・本文を中央の1本の列に揃える) ---------- */
#blog-title-inner,
#content-inner,
#footer-inner,
.breadcrumb-inner {
  box-sizing: border-box;
  max-width: calc(var(--nmk-col) + 2 * var(--nmk-gutter));
  margin: 0 auto;
  padding: 0 var(--nmk-gutter);
}
#container { position: relative; }
#top-box, #content {
  background: #fff;
  border-top: 0;
  padding: 32px 0 56px;
}
#content-inner { display: block; }
/* 旧テーマの clearfix 疑似要素を消す(旧テーマが残っていても段組みが崩れないように) */
#content-inner::before, #content-inner::after { content: none; display: none; }
/* 旧テーマの2段組み(float と負のマージン)を打ち消す */
#wrapper {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}
#main-inner { max-width: none; border: 0; padding: 0; }
#box1 { display: none; }
/* サイドバーは記事の下に積む。中身の並びは「広告→プロフィール→このブログについて→文字リンク」 */
#box2 {
  float: none;
  width: auto;
  margin: 64px 0 0;
  padding: 40px 0 0;
  border: 0;
  border-top: 1px solid var(--nmk-line);
}
#box2-inner { display: flex; flex-direction: column; border: 0; margin: 0; padding: 0; }

/* ---------- ヘッダ(ロゴ) ---------- */
#blog-title { text-align: left; padding: 16px 0 10px; background: #fff; }
/* ロゴ画像(954x102)は文字が左端から4px内側にある。左の基準線に文字頭を合わせる */
.header-image-only #blog-title #blog-title-inner {
  background-repeat: no-repeat !important;
  background-position: calc(var(--nmk-gutter) - 2px) 0 !important;
  background-size: 560px auto !important;
  height: 60px !important;
  padding-top: 0;
  padding-bottom: 0;
}
@media (min-width: 601px) {
  #blog-title { padding: 28px 0 14px; }
  .header-image-only #blog-title #blog-title-inner {
    background-position: calc(var(--nmk-gutter) - 3px) 0 !important;
    background-size: 700px auto !important;
    height: 75px !important;
  }
}
#title { line-height: 1.2; margin: 0; }
#title a, #title a:hover { color: var(--nmk-ink); }
#blog-description { color: var(--nmk-sub); font-size: 0.85em; font-weight: normal; margin: 0; }

/* ---------- タイトル下(検索・カテゴリナビ・トップのカード) ----------
   #top-editarea の中身: #top-search / .nmk-gnav / .nmk-hub-wrap(portal-top)。
   全幅の罫線で挟んだ1段にし、中身だけ左の基準線に揃える */
#top-editarea {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  height: auto;
  width: auto;
  margin: 0;
  padding: 0 var(--nmk-edge);
  background: none;
  text-align: left;
  border-top: 1px solid var(--nmk-line);
  border-bottom: 1px solid var(--nmk-line);
}
#top-editarea > * { grid-column: 1 / -1; min-width: 0; }
#top-editarea > .nmk-gnav { grid-row: 1; }
#top-editarea > #top-search { grid-row: 2; }
#top-editarea > .nmk-hub-wrap { grid-row: 3; }

/* 検索ボックス(旧テーマでは絶対配置でロゴに重なっていた) */
#top-search { position: static; top: auto; width: auto; margin: 0 0 10px; z-index: auto; }
#top-search-inner { position: static; max-width: none; width: auto; margin: 0; text-align: left; }
#top-search .search-form,
.search-form {
  position: relative;
  top: auto;
  right: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 34px;
  margin: 0;
  border: 1px solid var(--nmk-line);
  border-radius: 4px;
  background: #fff;
}
#top-search .search-module-input,
.search-form .search-module-input {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0 38px 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: var(--nmk-ink);
  font-size: 0.85em;
  outline: 0;
}
#top-search .search-module-input::placeholder,
.search-form .search-module-input::placeholder { color: var(--nmk-sub); font-size: 1em; }
#top-search .search-module-button,
.search-form .search-module-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent url("https://cdn.blog.st-hatena.com/images/theme/search.png") no-repeat center center;
  background-size: 16px auto;
  opacity: 0.55;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  cursor: pointer;
}
/* キーボードで移動したときに、どこにいるかを青で示す(入力欄は outline を消しているので、外枠を反応させる) */
.search-form:focus-within,
.search-result-form:focus-within { border-color: var(--nmk-accent); box-shadow: 0 0 0 2px var(--nmk-accent-line); }
.search-form .search-module-button:focus-visible,
.search-result-form .search-result-button:focus-visible,
.nmk-gnav a:focus-visible { outline: 2px solid var(--nmk-accent); outline-offset: 2px; opacity: 1; }
/* スマホの検索欄は文字16px・高さ44px。16px未満だと iOS でフォーカス時に画面が拡大されるため */
@media (max-width: 767px) {
  #top-search .search-form,
  .search-form { height: 44px; }
  #top-search .search-module-input,
  .search-form .search-module-input { padding-right: 48px; font-size: 16px; }
  #top-search .search-module-button,
  .search-form .search-module-button { width: 44px; height: 42px; }
}
/* 768px以上は、検索をロゴの段の右端に置く(ナビの段を本文の列の幅いっぱいに使うため) */
@media (min-width: 768px) {
  #top-search {
    position: absolute;
    top: 62px;
    right: var(--nmk-edge);
    left: auto;
    width: 200px;
    margin: 0;
    z-index: 2;
  }
}

/* カテゴリナビ(header-nav.html)。PCもスマホも1行。はみ出す分は横スクロール */
.nmk-gnav,
.nmk-gnav.nmk-gnav-wrap {
  max-width: none;
  margin: 0;
  border: 0;
  background: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scrollbar-width: none;
  text-align: left;
}
.nmk-gnav::-webkit-scrollbar { display: none; }
.nmk-gnav ul,
.nmk-gnav.nmk-gnav-wrap ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0 1.15em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nmk-gnav li { flex: 0 0 auto; margin: 0; }
.nmk-gnav a,
.nmk-gnav.nmk-gnav-wrap a {
  display: block;
  padding: 11px 0 9px;
  border-bottom: 2px solid transparent;
  color: var(--nmk-ink);
  font-size: 0.86em;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nmk-gnav a:hover { color: var(--nmk-accent); border-bottom-color: var(--nmk-accent); }
/* PC は8カテゴリを本文の列の幅にぴったり収め、両端を列の端に揃える */
@media (min-width: 768px) {
  .nmk-gnav ul,
  .nmk-gnav.nmk-gnav-wrap ul { justify-content: space-between; gap: 0 0.8em; }
  .nmk-gnav a,
  .nmk-gnav.nmk-gnav-wrap a { font-size: 0.84em; }
}
@media (max-width: 767px) {
  /* 右端に薄い影を出して「続きがある」ことを示す。影は枠に固定(scroll)、白い覆いは中身と一緒に動く(local)ので、
     最後までスクロールすると覆いが影に重なって消える。文字そのものは薄くしない */
  .nmk-gnav, .nmk-gnav.nmk-gnav-wrap {
    background:
      linear-gradient(to left, #fff 40%, rgba(255, 255, 255, 0)) right center / 36px 100% no-repeat local,
      linear-gradient(to left, rgba(34, 34, 34, 0.16), rgba(34, 34, 34, 0)) right center / 14px 100% no-repeat scroll;
  }
}

/* トップのカテゴリカード(portal-top.html)はトップページだけに出す */
body:not(.page-index) .nmk-hub-wrap { display: none; }
.nmk-hub-wrap { max-width: none; margin: 4px 0 16px; padding: 0; text-align: left; }

/* ---------- ブログ名の見せ方(案a): 手描きのロゴ画像を活かし、下に小さな欧文の札と青い印を添える。
   ヘッダの下の罫線だけ墨の2pxにして、題字の段を締める ---------- */
.header-image-only #blog-title #blog-title-inner { height: 84px !important; }
#blog-title-inner::before,
#blog-title-inner::after { position: absolute; bottom: 0; }
#blog-title-inner::before {
  content: "";
  left: var(--nmk-gutter);
  bottom: 6px;
  width: 20px;
  height: 2px;
  background: var(--nmk-accent);
}
#blog-title-inner::after {
  content: "NAMAKERU.COM";
  left: calc(var(--nmk-gutter) + 30px);
  color: var(--nmk-sub);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.3em;
}
#top-editarea { border-top: 3px solid var(--nmk-ink); }
@media (min-width: 601px) {
  .header-image-only #blog-title #blog-title-inner { height: 100px !important; }
  #blog-title-inner::after { font-size: 11px; }
}

/* ---------- 記事ヘッダ ---------- */
.entry,
.page-archive .archive-entry { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.entry-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.9em;
  border-left: 0;
  padding: 0;
}
/* min-width:0 は、スマホの全幅広告(AdSense)が記事上の枠を押し広げないようにするため */
.entry-header > * { flex: 0 0 100%; min-width: 0; }
.entry-title {
  order: -1;
  margin: 0 0 0.35em;
  color: var(--nmk-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  text-wrap: balance;
  word-break: auto-phrase;
}
@media (min-width: 601px) {
  .entry-title { font-size: 1.75em; }
}
.entry-title a { color: var(--nmk-ink); text-decoration: none; }
.entry-title a:hover { color: var(--nmk-accent-dark); }
.entry-header .date,
.archive-entry-header .date { flex: 0 0 auto; margin: 0; color: var(--nmk-sub); font-size: 0.8em; }
/* 旧テーマの日付リボンを消す */
.entry-date a,
.archive-entry-header .date a {
  position: static;
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--nmk-sub);
  font-size: inherit;
}
.entry-date a::after,
.archive-entry-header .date a::after { content: none; display: none; }
.entry-header .entry-categories { flex: 1 1 auto; }
.entry-categories,
.categories { font-size: 0.75em; line-height: 1.6; }
/* カテゴリは小さな札にして、日付(ただの文字)と見分ける */
.entry-categories .entry-category-link,
.categories a {
  display: inline-block;
  margin: 0 0.5em 0.3em 0;
  padding: 0.1em 0.7em;
  background: var(--nmk-soft);
  border: 0;
  border-radius: 3px;
  color: var(--nmk-sub);
  font-size: inherit;
  text-decoration: none;
}
.categories a::before { content: none; }
/* 旧テーマの clearfix 疑似要素(display:table)が日付とカテゴリの横並びを崩すので消す */
.entry-categories::before, .entry-categories::after,
.categories::before, .categories::after { content: none; display: none; }
.entry-categories .entry-category-link:hover,
.categories a:hover { color: var(--nmk-accent); }
.entry-header-menu {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 100%;
  flex: none;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 0.75em;
  line-height: 1.6;
}
.entry-header-menu a { color: var(--nmk-sub); font-size: inherit; }
.entry-header-menu a::before { content: none; }
.entry-header .social-buttons { margin: 0.6em 0 0; font-size: 0; line-height: 1; }
.customized-header { margin-top: 1.2em; }
.entry-header-html { color: var(--nmk-sub); font-size: 0.8em; line-height: 1.6; }

/* ---------- 本文 ---------- */
.entry-content {
  margin-top: 1.6em;
  color: var(--nmk-ink);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  line-break: strict;
  hanging-punctuation: allow-end;
}
@media (min-width: 601px) {
  .entry-content { font-size: 17px; line-height: 1.85; }
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 1.5em; }
/* 過去記事(はてな記法)は <p><h2> の入れ子から空の p が生まれ、見出しの前後がばらつく */
.entry-content p:empty { display: none; }
/* 同じく段落と段落の間に置かれた <br>(はてな記法の空行)が1行ぶんの空白を作るので消す。
   直前の要素がブロックのときだけに限り、文中の改行には触れない */
.entry-content > p + br,
.entry-content > p + br + br,
.entry-content > p + br + br + br,
.entry-content > blockquote + br,
.entry-content > ul + br,
.entry-content > ol + br,
.entry-content > table + br,
.entry-content > div + br,
.entry-content > figure + br { display: none; }
/* 同じ理由で本文直下にはみ出た写真(span)にも段落と同じ下余白を付ける */
.entry-content > span[itemscope] { display: block; margin: 0 0 1.5em; }

.entry-content a {
  color: var(--nmk-accent);
  text-decoration: underline;
  text-decoration-color: var(--nmk-accent-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.entry-content a:hover { color: var(--nmk-accent-dark); text-decoration-color: currentColor; }
/* 画像だけのリンクには下線を出さない */
.entry-content a:has(> img) { text-decoration: none; }
.entry-content strong,
.entry-content b { font-weight: 700; background: none; }
/* 黄色のマーカーは、旧記事の専用クラス(class="yellow" 58か所)と、書き手が選んで付ける <mark> だけ。
   太字には自動で付けない(長い記事で、いちばん言いたい1〜2文にだけ引く) */
.entry-content .yellow,
.entry-content .yellowred,
.entry-content mark {
  background: linear-gradient(transparent 62%, var(--nmk-marker) 62%);
  color: inherit;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 見出し: H2=淡い帯+左の青い罫 / H3=下の細い罫+青の短い印 / H4=青の短い横棒。
   3段とも形が違うので、色を増やさなくても階層が見分けられる */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  position: static;
  color: var(--nmk-ink);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  line-height: 1.45;
  letter-spacing: 0.02em;
  font-weight: 700;
  font-feature-settings: "palt";
  text-wrap: balance;
  word-break: auto-phrase;
}
.entry-content h2::before, .entry-content h2::after,
.entry-content h3::before,
.entry-content h4::after { content: none; }
/* H2: 上 2.8em(本文17pxで約64px) 下 1.1em。帯の左端(青い罫)を本文の左端に揃える */
.entry-content h2 {
  margin: 2.8em 0 1.1em;
  padding: 0.62em 0.9em 0.62em 0.85em;
  border-left: 4px solid var(--nmk-accent);
  border-radius: 0 4px 4px 0;
  background: var(--nmk-soft);
  font-size: 1.25em;
  line-height: 1.5;
}
@media (min-width: 601px) {
  .entry-content h2 { font-size: 1.35em; }
}
/* H3: 下に細い罫線、その左端に青の短い印を重ねる */
.entry-content h3 {
  position: relative;
  margin: 2.3em 0 0.9em;
  padding-bottom: 0.42em;
  border-bottom: 1px solid var(--nmk-line);
  font-size: 1.2em;
}
.entry-content h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3em;
  height: 2px;
  background: var(--nmk-accent);
}
/* 見出しが続くとき(間に本文がない)は、節の間と同じ大きな余白を付けない */
.entry-content h2 + h3,
.entry-content h2 + h4,
.entry-content h3 + h4 { margin-top: 1.1em; }
/* H4: 文字の前に青の短い横棒 */
.entry-content h4 { margin: 1.9em 0 0.6em; font-size: 1.05em; }
.entry-content h4::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 3px;
  margin-right: 0.5em;
  vertical-align: 0.3em;
  background: var(--nmk-accent);
}
.entry-content h5,
.entry-content h6 { margin: 1.6em 0 0.4em; font-size: 1em; }
.entry-content h1 { margin: 1.7em 0 0.75em; font-size: 1.5em; }

/* リスト */
.entry-content ul,
.entry-content ol { margin: 0 0 1.5em; padding-left: 1.5em; }
.entry-content li { margin: 0; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content li > ul,
.entry-content li > ol { margin: 0.4em 0 0; }
/* 箇条書きの点は青、番号は補助グレーの太字 */
.entry-content ul > li::marker { color: var(--nmk-accent); }
.entry-content ol > li::marker { color: var(--nmk-sub); font-weight: 700; }
.entry-content dl { margin: 0 0 1.2em; }
.entry-content dt { font-weight: 700; }
.entry-content dd { margin: 0 0 0.6em 1.5em; }

/* 引用: 細い枠の箱+左上に引用符(旧テーマのアイコンフォントは使わず、文字で出す) */
.entry-content blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: 1.1em 1.3em 1.1em 3.1em;
  border: 1px solid var(--nmk-line);
  border-radius: 8px;
  background: #fff;
  color: var(--nmk-sub);
  font-size: 0.93em;
  line-height: 1.8;
}
.entry-content blockquote::before {
  content: "\201C";
  display: block;
  position: absolute;
  top: 0.22em;
  left: 0.3em;
  width: auto;
  height: auto;
  background: none;
  color: var(--nmk-sub);
  opacity: 0.35;
  font: 700 3em/1 Georgia, "Times New Roman", serif;
}
.entry-content blockquote::after { content: none; }
@media (max-width: 600px) {
  .entry-content blockquote { padding: 1em 1em 1em 2.1em; }
  .entry-content blockquote::before { left: 0.2em; font-size: 2.3em; }
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 0.4em; font-size: 0.85em; font-style: normal; }

/* コード */
.entry-content code {
  padding: 0.1em 0.35em;
  border: 0;
  border-radius: 3px;
  background: var(--nmk-soft);
  color: inherit;
  font-size: 0.88em;
}
.entry-content pre {
  margin: 1.6em 0;
  padding: 1em 1.2em;
  border: 1px solid var(--nmk-line);
  border-radius: 6px;
  background: var(--nmk-soft);
  font-size: 0.85em;
  line-height: 1.6;
  overflow-x: auto;
  word-wrap: normal;
}
.entry-content pre > code { padding: 0; background: none; font-size: 1em; }

/* 画像・図 */
.entry-content img { max-width: 100%; height: auto; border-radius: 0; box-shadow: none; }
.entry-content figure,
.entry-content .figure-image { margin: 2em 0; text-align: center; }
/* キャプション付き画像だけ本文の列より広く見せる(PC: 左右にはみ出す / スマホ: 画面の端まで)。
   本文直下のものに限る。引用や箱の中の figure は、箱からはみ出さないよう通常の幅のまま */
.entry-content > figure.figure-image {
  margin-left: calc(-1 * var(--nmk-bleed));
  margin-right: calc(-1 * var(--nmk-bleed));
}
@media (max-width: 600px) {
  .entry-content > figure.figure-image {
    margin-left: calc(-1 * var(--nmk-gutter));
    margin-right: calc(-1 * var(--nmk-gutter));
  }
  .entry-content > figure.figure-image figcaption { padding: 0 var(--nmk-gutter); }
}
.entry-content figure p { margin: 0; }
.entry-content figcaption {
  margin-top: 0.5em;
  color: var(--nmk-sub);
  font-size: 0.8em;
  line-height: 1.6;
  text-align: center;
}
.entry-content .hatena-image-right { margin: 0 0 1.2em 1.2em; }
.entry-content .hatena-image-left { margin: 0 1.2em 1.2em 0; }
.entry-content iframe[src*="youtube.com/embed"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* 表: 本文幅に収めて折り返す。600px以下だけ横スクロール(列が潰れないよう最小幅) */
.entry-content table {
  display: table;
  width: 100%;
  margin: 1.6em 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.9em;
  line-height: 1.65;
  white-space: normal;
  overflow: visible;
}
/* 縦の罫線も引いて格子にする(列の多い比較表で、どの列の値かを追いやすくするため) */
.entry-content th,
.entry-content td {
  padding: 0.65em 0.8em;
  border: 1px solid var(--nmk-line);
  background: #fff;
  text-align: left;
  vertical-align: top;
  /* 文節の区切りで折る(未対応のブラウザでは通常の改行に戻る)。
     anywhere は列幅の計算(min-content)まで細くして語の途中で折れやすくなるので、
     本当にはみ出す長い文字列だけを折る break-word にする */
  word-break: auto-phrase;
  overflow-wrap: break-word;
}
.entry-content th { background: var(--nmk-soft); color: var(--nmk-ink); font-weight: 700; position: static; }
.entry-content thead th { text-align: center; vertical-align: middle; }
.entry-content td:first-child { font-weight: 700; }
@media (max-width: 600px) {
  .entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .entry-content th,
  .entry-content td { min-width: 6em; word-break: normal; }  /* 7emや文節単位の改行だと3列の表が390px幅ではみ出すため */
}

/* 目次 */
.entry-content .table-of-contents {
  margin: 1.6em 0 2.2em;
  padding: 1.1em 1.3em 1.2em 2.5em;
  border: 1px solid var(--nmk-line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.88em;
  line-height: 1.7;
  list-style: disc;
}
.entry-content .table-of-contents::before {
  content: "目次";
  display: block;
  margin: 0 0 0.7em -1.2em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--nmk-line);
  color: var(--nmk-ink);
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.entry-content .table-of-contents ul { list-style: circle; }
.entry-content .table-of-contents li,
.entry-content .table-of-contents li + li { margin: 0.25em 0 0; }
.entry-content .table-of-contents ul { margin: 0.2em 0 0; padding-left: 1.2em; }
.entry-content .table-of-contents a { color: var(--nmk-ink); text-decoration: none; word-break: auto-phrase; }
.entry-content .table-of-contents a:hover { color: var(--nmk-accent); text-decoration: underline; }

/* 脚注・はてな標準の埋め込み */
.entry-content .footnote { color: var(--nmk-sub); font-size: 0.85em; line-height: 1.6; }
.entry-content .footnote p.footnote { margin: 0 0 0.5em; font-size: 1em; }
.hatena-asin-detail,
.itunes-embed {
  position: relative;
  overflow: hidden;
  margin: 1.6em 0;
  padding: 1em;
  border: 1px solid var(--nmk-line);
  border-radius: 6px;
  font-size: 0.88em;
  line-height: 1.6;
}
.hatena-asin-detail::before,
.itunes-embed::before { content: none; }
/* 写真は左、題と説明は右の列に揃える(説明が写真の下へ回り込まないよう、情報欄を独立した塊にする) */
.hatena-asin-detail-image,
.itunes-embed-image { float: left; max-width: 100px; height: auto; margin: 0 1em 0.5em 0; }
.hatena-asin-detail-info,
.itunes-embed-info { display: flow-root; min-width: 0; }
.hatena-asin-detail-title,
.itunes-embed-title { margin: 0 0 0.5em; font-weight: 700; line-height: 1.5; }
.hatena-asin-detail-info ul,
.itunes-embed-info ul { margin: 0.4em 0 0; padding: 0; list-style: none; }
.hatena-asin-detail-info li,
.itunes-embed-info li { margin: 0; }
@media (max-width: 600px) {
  .hatena-asin-detail,
  .itunes-embed { padding: 0.85em; }
  .hatena-asin-detail-image,
  .itunes-embed-image { max-width: 60px; margin-right: 0.8em; }
}

/* ---------- 記事内の部品(クラス名は v2〜v5 から維持) ---------- */
/* PR表記 */
.entry-content .nmk-pr {
  display: inline-block;
  margin: 0 0 1.2em;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--nmk-soft);
  color: var(--nmk-sub);
  font-size: 0.76em;
  letter-spacing: 0.04em;
}
/* 要点・注意 */
/* H2 が「淡い帯+左の罫」になったので、箱は角丸の枠にして見出しと見分ける */
.entry-content .nmk-point,
.entry-content .nmk-warn {
  margin: 1.8em 0;
  padding: 1em 1.25em 1.05em;
  border: 1px solid var(--nmk-line);
  border-radius: 8px;
  font-size: 0.95em;
}
.entry-content .nmk-point { background: #fff; border-color: var(--nmk-accent-line); }
.entry-content .nmk-warn { background: var(--nmk-soft); }
.entry-content .nmk-point::before,
.entry-content .nmk-warn::before {
  display: block;
  margin-bottom: 0.25em;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.entry-content .nmk-point::before { content: "ポイント"; color: var(--nmk-accent); }
.entry-content .nmk-warn::before { content: "注意"; color: var(--nmk-ink); }
.entry-content .nmk-point > :last-child,
.entry-content .nmk-warn > :last-child { margin-bottom: 0; }
.entry-content .nmk-point ul,
.entry-content .nmk-warn ul { margin: 0.4em 0 0; }
/* 要点の箇条書きは、項目の間を点線で区切る(1項目が2行になっても境目が分かる) */
.entry-content .nmk-point li + li { margin-top: 0.55em; padding-top: 0.55em; border-top: 1px dotted var(--nmk-accent-line); }
/* 記事の頭の案内文(この記事で何を書くか)。本文より小さく、破線の枠で本文と分ける。使うかは記事ごとに決める */
.entry-content .nmk-lead {
  margin: 0 0 1.8em;
  padding: 1em 1.25em;
  border: 1px dashed var(--nmk-accent-line);
  border-radius: 6px;
  color: var(--nmk-sub);
  font-size: 0.9em;
  line-height: 1.8;
}
.entry-content .nmk-lead > :last-child { margin-bottom: 0; }
.entry-content .nmk-lead strong { color: var(--nmk-ink); }

/* ランキングカード */
.entry-content .nmk-rank {
  margin: 1.8em 0;
  padding: 1.1em 1.2em 0.9em;
  border: 1px solid var(--nmk-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.entry-content .nmk-rank:first-of-type { border-color: var(--nmk-accent); }
.entry-content .nmk-rank-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 0.5em; }
.entry-content .nmk-rank-no {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--nmk-accent);
  color: #fff;
  font-weight: 700;
}
.entry-content .nmk-rank:first-of-type .nmk-rank-no { background: var(--nmk-accent); }
.entry-content .nmk-rank-name { font-size: 1.12em; font-weight: 700; }
.entry-content .nmk-stars { color: var(--nmk-accent); letter-spacing: 1px; }
.entry-content .nmk-rank-copy { margin: 0 0 0.8em; color: var(--nmk-sub); font-size: 0.95em; }

/* メリット/デメリット */
.entry-content ul.nmk-merit,
.entry-content ul.nmk-demerit { margin: 0.8em 0 1.2em; padding: 0; list-style: none; }
.entry-content ul.nmk-merit li,
.entry-content ul.nmk-demerit li { position: relative; margin: 0.4em 0; padding-left: 1.6em; }
.entry-content ul.nmk-merit li::before,
.entry-content ul.nmk-demerit li::before { position: absolute; left: 0.15em; font-weight: 700; }
.entry-content ul.nmk-merit li::before { content: "✓"; color: var(--nmk-accent); }
.entry-content ul.nmk-demerit li::before { content: "✕"; color: var(--nmk-sub); }

/* CTAボタン(地色は --nmk-cta。v6.2 でリンクと同じ青に揃えた) */
.entry-content .nmk-btn { margin: 1.8em 0; text-align: center; }
.entry-content .nmk-btn a {
  display: inline-block;
  box-sizing: border-box;
  min-width: min(72%, 24em);
  padding: 1em 1.8em;
  border: 0;
  border-radius: 8px;
  background: var(--nmk-cta);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  color: #fff;
  font-size: 1.04em;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.entry-content .nmk-btn a:hover { color: #fff; opacity: 0.92; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16); }
.entry-content .nmk-btn a::after { content: "→"; margin-left: 0.5em; }
.entry-content .nmk-btn-sub a { background: #fff; border: 1px solid var(--nmk-accent); box-shadow: none; color: var(--nmk-accent); }
.entry-content .nmk-btn-sub a:hover { color: var(--nmk-accent-dark); }
.entry-content .nmk-btn-note {
  display: block;
  margin: -1.2em 0 1.6em;
  color: var(--nmk-sub);
  font-size: 0.78em;
  text-align: center;
}

/* FAQ */
.entry-content details.nmk-faq { margin: 0.8em 0; border: 1px solid var(--nmk-line); border-radius: 6px; background: #fff; }
.entry-content details.nmk-faq summary { padding: 0.8em 1em; font-weight: 700; cursor: pointer; list-style: none; }
.entry-content details.nmk-faq summary::-webkit-details-marker { display: none; }
.entry-content details.nmk-faq summary::before { content: "Q. "; color: var(--nmk-accent); }
.entry-content details.nmk-faq[open] summary { border-bottom: 1px solid var(--nmk-line); }
.entry-content details.nmk-faq p { margin: 0; padding: 0.8em 1em; }

/* 著者ボックス */
.entry-content .nmk-author {
  margin: 2em 0;
  padding: 1em 1.2em;
  border: 1px solid var(--nmk-line);
  border-radius: 6px;
  background: var(--nmk-soft);
  font-size: 0.9em;
}

/* ---------- 記事フッタ ---------- */
.entry-footer { margin-top: 2.4em; }
.entry-footer-section { color: var(--nmk-sub); font-size: 0.8em; margin-bottom: 1.6em; }
.entry-footer-section a { color: var(--nmk-sub); }
.entry-footer .social-buttons { margin-bottom: 1.6em; font-size: 0; line-height: 1; }
.entry-footer .social-button-item { display: inline-block; margin: 0 8px 8px 0; }
.customized-footer { margin-bottom: 2em; }
.entry-footer-html { color: var(--nmk-ink); font-size: 0.9em; line-height: 1.7; }
/* 記事下に貼られた旧バナーの見出し(<font size="5">)だけ大きさを抑える */
.entry-footer-html font[size="5"] { font-size: 1.05em; font-weight: 700; }
/* 旧シェアボタン(記事下HTML)。数を数えるAPIは止まっているので数字は出さない */
.share-buttons { margin: 1.6em 0; text-align: left; }
.share-buttons .inner a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  width: auto;
  height: auto;
  margin: 0 0.4em 0.4em 0;
  padding: 0.4em 0.9em;
  border: 1px solid var(--nmk-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  color: var(--nmk-sub);
  font-size: 0.8em;
  line-height: 1.4;
  text-decoration: none;
}
.share-buttons .inner a:hover { border-color: var(--nmk-accent); color: var(--nmk-accent); }
.share-buttons .inner a br,
.share-buttons .hatena-bookmark-count,
.share-buttons .facebook-count { display: none; }
.share-buttons .inner .share-text,
.share-buttons .inner .small-text { font-size: 1em; }

/* 記事下の回遊「次はどうする？」(article-bottom.html) */
.nmk-next { margin: 2.4em 0 1em; padding-top: 1.2em; border-top: 1px solid var(--nmk-line); text-align: left; }
.nmk-next-title { margin: 0 0 0.7em; color: var(--nmk-sub); font-size: 0.82em; font-weight: 700; letter-spacing: 0.08em; }
.nmk-next .nmk-cat-sub { margin-top: 10px; }

/* カテゴリの入口(portal-top / article-bottom 共用)。
   カードを格子に並べると段組みに見えるので、小さな札を横に流すだけにする(説明文は出さない) */
.nmk-hub,
.nmk-hub.nmk-cat { display: flex; flex-wrap: wrap; gap: 8px; text-align: left; }
.nmk-hub-card {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 11px;
  border: 1px solid var(--nmk-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: var(--nmk-ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.nmk-hub-card:hover { border-color: var(--nmk-accent); color: var(--nmk-ink); transform: none; }
.nmk-hub-emoji { font-size: 1em; line-height: 1; }
.nmk-hub-title { color: var(--nmk-ink); font-size: 0.86em; font-weight: 700; line-height: 1.7; }
.nmk-hub-desc { display: none; }
.nmk-hub-card::after { content: "\203A"; margin-left: 2px; color: var(--nmk-sub); font-size: 1em; line-height: 1; }
.nmk-cat-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 8px 0 0;
  font-size: 0.82em;
  line-height: 1.6;
  text-align: left;
}
.nmk-cat-sub-label {
  flex: 0 0 auto;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--nmk-soft);
  color: var(--nmk-sub);
  font-size: 0.9em;
  font-weight: 700;
}
.nmk-cat-sub a { color: var(--nmk-ink); text-decoration: none; border-bottom: 1px solid var(--nmk-line); }
.nmk-cat-sub a:hover { color: var(--nmk-accent); border-bottom-color: var(--nmk-accent); }

/* サイト単位のPR表記(記事上) */
.nmk-sitewide-pr { margin: 0 0 4px; color: var(--nmk-sub); font-size: 0.9em; letter-spacing: 0.04em; }

/* 関連記事(はてな標準モジュール)。見出しは本文の H3 と同じ形。1段組みの徹底のため、PC でも1列の一覧にする */
.entry-footer-modules .hatena-module { margin: 0 0 2em; }
.entry-footer-modules .hatena-module-title {
  position: relative;
  margin: 0 0 0.4em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--nmk-line);
  color: var(--nmk-ink);
  font-size: 1.1em;
  letter-spacing: 0.04em;
}
.entry-footer-modules .hatena-module-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3em;
  height: 2px;
  background: var(--nmk-accent);
}
.urllist-with-thumbnails { margin: 0; padding: 0; list-style: none; }
/* 下の .hatena-urllist li:first-child(サイドバー用)に負けないよう、ul のクラスを重ねて指定する */
.hatena-urllist.urllist-with-thumbnails li,
.hatena-urllist.urllist-with-thumbnails li:first-child { padding: 0.95em 0; border: 0; border-bottom: 1px solid var(--nmk-line); overflow: hidden; }
.urllist-with-thumbnails li::before { content: none; }
.urllist-with-thumbnails li .urllist-image-link { float: left; margin: 0.15em 14px 0 0; }
/* 写真があるときは、日付・題・要約を写真の右の列に揃える(要約が写真の下へ回り込まないように) */
.urllist-with-thumbnails li .urllist-image-link ~ * { margin-left: 98px; }
.urllist-with-thumbnails li .urllist-image { float: none; display: block; width: 84px; height: 84px; margin: 0; border-radius: 4px; object-fit: cover; }
.urllist-date-link { color: var(--nmk-sub); font-size: 0.8em; padding-bottom: 2px; }
.urllist-date-link a { color: var(--nmk-sub); }
.urllist-title-link { display: block; color: var(--nmk-ink); font-size: 1em; font-weight: 700; line-height: 1.55; }
.urllist-title-link:hover { color: var(--nmk-accent); }
.urllist-entry-body { color: var(--nmk-sub); font-size: 0.82em; line-height: 1.6; padding-top: 2px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.urllist-categories { font-size: 0.8em; padding-top: 2px; }
.urllist-category-link { margin-right: 6px; color: var(--nmk-sub); font-size: 1em; }

/* コメント */
.comment-box { font-size: 0.9em; text-align: right; }
.comment-box .comment { margin: 0; padding: 0; list-style: none; }
.entry-comment { position: relative; padding: 1.2em 0 1.2em 56px; border-top: 1px solid var(--nmk-line); text-align: left; }
.entry-comment:first-child { margin-top: 1em; padding-top: 0; border-top: 0; }
.entry-comment .comment-user-name { display: block; margin-bottom: 4px; color: var(--nmk-ink); font-weight: 700; }
.entry-comment .comment-user-name img { position: absolute; top: 1.2em; left: 0; width: 40px !important; height: 40px !important; border-radius: 50%; }
.entry-comment:first-child .comment-user-name img { top: 0; }
.comment-content { margin-bottom: 8px; }
.comment-content > p:last-child { margin-bottom: 0; }
.comment-metadata { margin: 0; color: var(--nmk-sub); font-size: 0.85em; }
.leave-comment-title {
  display: inline-block;
  box-sizing: border-box;
  min-width: 160px;
  padding: 0 1.2em;
  border: 1px solid var(--nmk-line);
  border-radius: 6px;
  color: var(--nmk-sub);
  font-size: 0.85em;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
}
.leave-comment-title:hover { border-color: var(--nmk-accent); color: var(--nmk-accent); }

/* ページ送り */
.pager { margin: 2.4em 0 0; padding: 0; border: 0; font-size: 0.88em; }
.pager::before, .pager::after { content: ""; display: table; }
.pager::after { clear: both; }
.pager-arrow { display: none; }
.pager a { color: var(--nmk-ink); text-decoration: none; }
/* 前後の記事も横に並べず、縦に積む(1段組みの徹底) */
.pager-permalink { display: flex; flex-direction: column; gap: 10px; }
.pager-permalink::before, .pager-permalink::after { content: none; }
.pager-permalink .pager-prev,
.pager-permalink .pager-next { float: none; width: auto; flex: 1 1 0; min-width: 0; }
.pager-permalink a {
  display: block;
  height: 100%;
  box-sizing: border-box;
  padding: 0.7em 1em;
  border: 1px solid var(--nmk-line);
  border-radius: 6px;
  line-height: 1.6;
}
.pager-permalink a:hover { border-color: var(--nmk-accent); color: var(--nmk-accent); }
.pager-permalink .pager-prev a::before,
.pager-permalink .pager-next a::before {
  display: block;
  margin-bottom: 2px;
  color: var(--nmk-sub);
  font-size: 0.82em;
}
.pager-permalink .pager-prev a::before { content: "新しい記事"; }
.pager-permalink .pager-next a::before { content: "古い記事"; }
.pager-prev::before, .pager-next::before { content: none; }
.pager:not(.pager-permalink) .pager-prev { float: left; }
.pager:not(.pager-permalink) .pager-next { float: right; }
.pager:not(.pager-permalink) a {
  display: inline-block;
  padding: 0.6em 1.2em;
  border: 1px solid var(--nmk-line);
  border-radius: 6px;
}

/* ---------- 一覧ページ(トップ・カテゴリ・アーカイブ) ---------- */
.page-archive .archive-entry { padding: 1.4em 0; border-top: 1px solid var(--nmk-line); }
.page-archive .archive-entry:first-child { padding-top: 0; border-top: 0; }
.archive-entry-header { border-left: 0; padding: 0; }
.archive-entry .entry-title { margin: 0.15em 0 0.25em; font-size: 1.2em; }
.page-archive .archive-entry-body { margin-top: 0.5em; color: var(--nmk-sub); font-size: 0.9em; line-height: 1.7; }
.page-archive .entry-description {
  display: -webkit-box;
  margin: 0 0 0.4em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
/* 一覧の写真は出さない。要約の右に写真が並ぶと2段に見え、写真のない記事と揃わないため(1段組みの徹底)。
   戻すなら display:none を float:right; margin:.3em 0 .6em 1em に */
.page-archive .entry-thumb { display: none; }
.page-archive .social-buttons { display: block; clear: both; }
.entry-content .entry-see-more {
  display: inline-block;
  padding: 0.5em 1.2em;
  border: 1px solid var(--nmk-line);
  border-radius: 6px;
  background: #fff;
  color: var(--nmk-ink);
  font-size: 0.85em;
  text-decoration: none;
}
.page-archive span.highlight { background: var(--nmk-soft); color: var(--nmk-ink); font-weight: 700; }
.breadcrumb { color: var(--nmk-sub); font-size: 0.8em; }
.breadcrumb-gt { margin: 0 4px; }

/* ---------- サイドバー ---------- */
.hatena-module { margin-bottom: 2.6em; color: var(--nmk-ink); font-size: 0.88em; line-height: 1.7; }
.hatena-module-title {
  margin: 0 0 0.9em;
  padding: 0;
  border: 0;
  background: none;
  color: var(--nmk-sub);
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.hatena-module-title::before, .hatena-module-title::after { content: none; }
.hatena-module-title a { color: inherit; text-decoration: none; }
.hatena-urllist { margin: 0; padding: 0; list-style: none; }
.hatena-urllist li { position: relative; padding: 0.6em 0; border-top: 1px solid var(--nmk-line); }
.hatena-urllist li:first-child { padding-top: 0; border-top: 0; }
.hatena-module a { color: var(--nmk-ink); }
.hatena-module a:hover { color: var(--nmk-accent); }
/* プロフィール */
.hatena-module-profile .id { display: block; margin-bottom: 6px; font-weight: 700; }
.hatena-module-profile .profile-icon { display: block; float: none; width: auto; margin: 0 0 10px; }
.profile-description { color: var(--nmk-sub); }
.profile-description > p:last-child { margin-bottom: 0; }
.hatena-follow-button-box { margin-top: 16px; }
.hatena-follow-button-box + .hatena-follow-button-box { margin-top: 8px; }
/* 月別アーカイブ(開閉の印はフォントアイコンに頼らず文字で出す) */
.hatena-urllist .archive-module-year { padding-left: 1.4em; }
.hatena-urllist .archive-module-year .archive-module-months { margin: 2px 0 -2px; padding: 0; list-style: none; }
.hatena-urllist .archive-module-year .archive-module-month { margin: 0; padding: 2px 0 2px 1em; border: 0; }
.hatena-urllist .archive-module-year .archive-module-button {
  position: absolute;
  top: 0.6em;
  left: 0;
  display: inline-block;
  font-size: 0;
  line-height: 1.7;
  opacity: 1;
}
.hatena-urllist .archive-module-year:first-child .archive-module-button { top: 0; }
.hatena-urllist .archive-module-year .archive-module-show-button::before,
.hatena-urllist .archive-module-year .archive-module-hide-button::before {
  display: inline-block;
  color: var(--nmk-sub);
  font: normal 12px/1.7 var(--nmk-font);
}
.hatena-urllist .archive-module-year .archive-module-show-button::before { content: "▸"; }
.hatena-urllist .archive-module-year .archive-module-hide-button::before { content: "▾"; }
/* カテゴリ一覧モジュール */
.hatena-module-category .hatena-urllist li { display: inline-block; margin: 0 6px 6px 0; padding: 0; border: 0; }
.hatena-module-category .hatena-urllist li a {
  display: block;
  padding: 0 10px;
  border: 1px solid var(--nmk-line);
  border-radius: 4px;
  font-size: 0.9em;
  line-height: 30px;
}
/* 記事の下に積んだサイドバーの整理(1段組み) */
#box2 .hatena-module { margin: 0 0 2.4em; }
#box2 .hatena-module-html:has(.bnrLinks) { margin-bottom: 0; }  /* 並べ替えで最後に来るので */
.hatena-module-archive { display: none; }   /* 月別アーカイブは隠す(情報量が少ない) */
/* サイドバーの広告(300x600)は位置を変えずに中央寄せで残す */
/* 300px幅の広告と「スポンサーリンク」の文字が同じ行に並ばないよう、縦に積んで中央に置く */
#box2 .hatena-module-html:has(ins.adsbygoogle) .hatena-module-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--nmk-sub);
  font-size: 0.8em;
}
/* プロフィール: アイコン・名前・読者になるボタンだけの1段に。古い自己紹介文は「このブログについて」と重なるので隠す */
#box2 .hatena-module-profile .hatena-module-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}
#box2 .hatena-module-profile .hatena-module-body > * { grid-column: 2; min-width: 0; }
#box2 .hatena-module-profile .profile-icon-link { grid-column: 1; grid-row: 1 / span 3; }
#box2 .hatena-module-profile .profile-icon { width: 56px; height: 56px; margin: 0; border-radius: 50%; }
#box2 .hatena-module-profile .id { margin: 0; }
#box2 .hatena-module-profile .profile-description,
#box2 .hatena-module-profile .profile-activities,
#box2 .hatena-module-profile .profile-about { display: none; }
#box2 .hatena-module-profile .hatena-follow-button-box { margin-top: 6px; }
/* 画像バナー(お問合せ・広告掲載)は、画像を隠して文字リンクにし、いちばん下に置く */
#box2 .hatena-module-html:has(.bnrLinks) { order: 2; padding-top: 1.2em; border-top: 1px solid var(--nmk-line); }
#box2 .bnrLinks { display: flex; flex-wrap: wrap; gap: 0.4em 1.4em; }
#box2 .bnrLinks a { display: inline-block; margin: 0; color: var(--nmk-sub); font-size: 0.95em; text-decoration: none; }
#box2 .bnrLinks a:hover { color: var(--nmk-accent); opacity: 1; }
#box2 .bnrLinks a[href*="/entry/contact"] img,
#box2 .bnrLinks a[href$="/entry/ad"] img { display: none; }
#box2 .bnrLinks a[href*="/entry/contact"]::after { content: "お問い合わせ・ご相談"; }
#box2 .bnrLinks a[href$="/entry/ad"]::after { content: "広告掲載について"; }

/* 検索結果ページ。検索し直すためのフォームは、ヘッダの検索欄と同じ作り(枠の中に入力欄、右端に虫めがね) */
.search-result { margin-bottom: 2em; }
.search-result-form {
  position: relative;
  box-sizing: border-box;
  max-width: 336px;
  height: 44px;
  margin: 0 0 1.2em;
  border: 1px solid var(--nmk-line);
  border-radius: 4px;
  background: #fff;
}
.search-result-form .search-result-input {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0 48px 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: var(--nmk-ink);
  font-size: 16px;
  outline: 0;
}
.search-result-form .search-result-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent url("https://cdn.blog.st-hatena.com/images/theme/search.png") no-repeat center center;
  background-size: 16px auto;
  opacity: 0.55;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  cursor: pointer;
}
.search-result-form .search-result-button:hover { opacity: 1; }
.search-result + p { color: var(--nmk-sub); font-size: 0.9em; }
/* サイドバーのプロフィール(sidebar-profile.html) */
.nmk-side-profile { font-size: 1em; line-height: 1.7; text-align: left; }
.nmk-side-profile .nmk-side-note {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--nmk-soft);
  color: var(--nmk-sub);
  font-size: 0.85em;
}
.nmk-side-profile .nmk-side-more { margin: 8px 0 0; font-size: 0.9em; }
.nmk-side-profile .nmk-side-more a { color: var(--nmk-accent); }

/* ---------- 広告枠(位置は変えない。余白だけ整える) ---------- */
.google-afc-image,
.google-afc-text { margin: 0 0 2em; font-family: inherit; font-size: inherit; }

/* ---------- フッタ ---------- */
#footer {
  padding: 28px 0;
  border-top: 1px solid var(--nmk-line);
  background: #fff;
  color: var(--nmk-sub);
  font-size: 0.8em;
  text-align: left;
}
#footer a { color: var(--nmk-sub); }
#footer a:hover { color: var(--nmk-accent); }
#footer address, #footer p { margin: 0; color: var(--nmk-sub); }
#footer address img { display: none; }
