@charset "utf-8";
/* ------------------------------------------------------------------
 * ブログ一覧・記事ページの枠組みと、トップの「お役立ちブログ」案内
 *   本文の中身は css/blog-content.css。
 *   ルール：枠線はボタンだけ。グラデーションは使わない。
 *   このサイトは span に黄色マーカーが付くので、ここでは span を使わない（b を使う）。
 * ------------------------------------------------------------------ */

.nk-blog,
.nk-blogent {
  --nk-navy: #2A3C59;
  --nk-red: #C03C18;
  --nk-gray: #ECEEF2;
  --nk-gray2: #F4F5F7;
  --nk-text: #2b3340;
  --nk-sub: #6b7585;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
.nk-blog b,
.nk-blogent b { font-weight: inherit; }
.nk-blog .nb,
.nk-blogent .nb { display: inline-block; }
.nk-blog a,
.nk-blogent a { text-decoration: none; }
.nk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
br.nk-pc-only { display: inline; }
/* 最後の行に1〜2文字だけ残らないようにする（記事タイトルは毎回長さが違うため） */
.nk-bcard-ttl, .nk-pick-ttl, .nk-pick-ex, main h1.nk-post-ttl, .nk-author-desc, .nk-pn-ttl, .nk-bhead-lead {
  word-break: auto-phrase;
  text-wrap: pretty;
}
.nk-bcat a, .nk-chip, .nk-abtn, .nk-back-btn { white-space: nowrap; }

/* ---------- パンくず ---------- */
.nk-crumb ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nk-crumb li { color: var(--nk-sub); font-size: 13px; line-height: 1.6; }
.nk-crumb li + li::before { content: "›"; margin: 0 .55em; color: #aeb6c4; }
.nk-crumb a { color: var(--nk-navy); }
.nk-crumb a:hover { text-decoration: underline; }
.nk-crumb li:last-child { max-width: 32em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 一覧の見出し帯 ---------- */
.nk-bhead { padding: 22px 0 6px; text-align: center; }
.nk-bhead .nk-crumb ol { justify-content: flex-start; }
.nk-blog .nk-bhead-en {
  margin: 34px 0 6px;
  color: var(--nk-red);
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .35em;
}
main h1.nk-bhead-ttl {
  margin: 0;
  border: 0;
  color: var(--nk-navy);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .06em;
}
.nk-blog .nk-bhead-lead { margin: 14px 0 0; color: #4a5566; font-size: 16px; line-height: 1.9; }

.nk-blog-in { max-width: 1100px; margin: 0 auto 72px; }

/* ---------- カテゴリーのボタン ---------- */
.nk-bcat { margin: 30px 0 36px; }
.nk-bcat ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* サイト全体の「nav ul（高さ89px）」「nav ul li（左右の余白）」「スマホでは nav ul を隠す」を打ち消す */
.nk-blog nav ul { display: flex; height: auto; text-align: left; }
.nk-blog nav ul li { margin: 0; padding: 0; font-size: inherit; text-align: left; }
.nk-bcat a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .6em 1.25em;
  border: 1px solid #aeb6c4;
  border-radius: 999px;
  background: #fff;
  color: var(--nk-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: background .2s, color .2s, border-color .2s;
}
.nk-bcat a:hover { border-color: var(--nk-navy); }
.nk-bcat .is-current a { border-color: var(--nk-navy); background: var(--nk-navy); color: #fff; }
.nk-bcat-n { color: var(--nk-sub); font-family: Roboto, Arial, sans-serif; font-size: 12px; }
.nk-bcat .is-current .nk-bcat-n { color: #c9d1de; }

/* ---------- カテゴリーの色ラベル ---------- */
.nk-chip {
  display: inline-block;
  padding: .3em .85em;
  border-radius: 999px;
  background: var(--nk-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.nk-chip-works { background: #C03C18; }
.nk-chip-tips { background: #2A3C59; }
.nk-chip-subsidy { background: #2F7D5B; }
.nk-chip-news { background: #6b7585; }

.nk-bcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.nk-bcard-meta time { color: var(--nk-sub); font-family: Roboto, Arial, sans-serif; font-size: 13px; letter-spacing: .04em; }
.nk-bcard-meta time i { margin-right: .35em; font-size: .9em; }

.nk-new {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: .25em .7em;
  border-radius: 4px;
  background: var(--nk-red);
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
}

/* アイキャッチが無いとき */
.nk-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--nk-gray); }
.nk-noimg img { position: static !important; width: 46% !important; height: auto !important; object-fit: contain !important; opacity: .55; transform: none !important; mix-blend-mode: multiply; }
.nk-pick-thumb .nk-noimg { position: absolute; inset: 0; }
.nk-pick-thumb .nk-noimg img { width: 34% !important; }

/* ---------- いちばん上の大きいカード ---------- */
.nk-pick > a {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--nk-gray);
  color: var(--nk-text);
}
.nk-pick-thumb { position: relative; height: 100%; min-height: 300px; overflow: hidden; }
.nk-pick-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nk-pick > a:hover .nk-pick-thumb img { transform: scale(1.04); }
.nk-pick-body { padding: 34px 40px; }
.nk-blog .nk-pick-ttl { margin: 14px 0 0; color: var(--nk-navy); font-size: 24px; font-weight: 800; line-height: 1.55; }
.nk-blog .nk-pick-ex { margin: 14px 0 0; color: #4a5566; font-size: 15px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nk-blog .nk-pick-more { margin: 20px 0 0; color: var(--nk-red); font-size: 15px; font-weight: 700; }
.nk-pick-more i { margin-left: .5em; transition: transform .2s; }
.nk-pick > a:hover .nk-pick-more i { transform: translateX(4px); }

/* ---------- 3列のカード ---------- */
.nk-bcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.nk-bcard { margin: 0; list-style: none; }
.nk-bcard > a { display: block; color: var(--nk-text); }
.nk-bcard-thumb { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: var(--nk-gray); }
.nk-bcard-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nk-bcard > a:hover .nk-bcard-thumb img { transform: scale(1.05); }
.nk-bcard-body { padding: 14px 2px 0; }
.nk-blog .nk-bcard-ttl,
.nk-blogent .nk-bcard-ttl {
  margin: 10px 0 0;
  color: var(--nk-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nk-bcard > a:hover .nk-bcard-ttl { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- ページ送り ---------- */
.nk-bpager { margin: 56px 0 0; }
.nk-bpager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nk-bpager a,
.nk-bpager .current,
.nk-bpager .dots,
.nk-bpager .is-off {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 .6em;
  border-radius: 999px;
  color: var(--nk-navy);
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  box-sizing: border-box;
  background: none;
}
.nk-bpager a { border: 1px solid #aeb6c4; background: #fff; }
.nk-bpager a:hover { border-color: var(--nk-navy); }
.nk-bpager .current { background: var(--nk-navy); color: #fff; }
/* まだ無いページ：薄くして押せなくする */
.nk-bpager .is-off { border: 1px solid #aeb6c4; background: #fff; opacity: .35; cursor: default; pointer-events: none; }

/* ---------- 記事が無いとき ---------- */
.nk-blog .nk-bempty { margin: 0; padding: 56px 20px; border-radius: 16px; background: var(--nk-gray2); color: #4a5566; font-size: 16px; line-height: 1.9; text-align: center; }

/* ------------------------------------------------------------------
 * 記事ページ
 * ------------------------------------------------------------------ */
.nk-post-wrap { max-width: 840px; margin: 0 auto 72px; padding-top: 22px; }
.nk-post-head { margin: 34px 0 26px; }
main h1.nk-post-ttl {
  margin: 16px 0 0;
  border: 0;
  color: #1f2d44;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.55;
  text-align: left;
  letter-spacing: .03em;
}
.nk-post-mod { opacity: .85; }
/* 記事の一番上の写真：PCは横幅90％で中央に。上下を切らずに全体を見せる（縦長の写真は高さ760pxまで） */
.nk-post-hero { width: 90%; margin: 0 auto 40px; }
.nk-post-hero img { display: block; width: 100%; height: auto; max-height: 760px; object-fit: contain; border-radius: 16px; }

/* この記事を書いた人 */
.nk-author { display: flex; gap: 26px; align-items: flex-start; margin: 56px 0 0; padding: 28px 30px; border-radius: 18px; background: var(--nk-gray); }
.nk-author-logo { flex: 0 0 96px; height: 96px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; }
/* 横長ロゴの左にあるマーク（NISHIDA）だけを見せる */
.nk-author-logo img { width: 70px; height: 56px; max-width: none; object-fit: cover; object-position: 0 50%; }
.nk-blog .nk-author-lbl { margin: 0; color: var(--nk-red); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.nk-blog .nk-author-name { margin: 2px 0 0; color: var(--nk-navy); font-size: 19px; font-weight: 800; }
.nk-blog .nk-author-desc { margin: 10px 0 0; color: #4a5566; font-size: 15px; line-height: 1.85; }
.nk-blog .nk-author-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.nk-abtn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .7em 1.4em;
  border: 1px solid var(--nk-navy);
  border-radius: 999px;
  background: #fff;
  color: var(--nk-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.nk-abtn:hover { background: var(--nk-navy); color: #fff; }
.nk-abtn-mail { border-color: var(--nk-red); background: var(--nk-red); color: #fff; }
.nk-abtn-mail:hover { border-color: #a8330f; background: #a8330f; }

/* 前後の記事 */
.nk-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 44px 0 0; }
.nk-pn > a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--nk-gray2); color: var(--nk-text); transition: background .2s; }
.nk-pn > a:hover { background: var(--nk-gray); }
.nk-pn-next { flex-direction: row-reverse; text-align: right; }
.nk-pn-thumb { flex: 0 0 76px; width: 76px; height: 76px; overflow: hidden; border-radius: 10px; }
.nk-pn-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nk-pn-txt { min-width: 0; }
.nk-blog .nk-pn-lbl { display: block; color: var(--nk-sub); font-size: 12px; font-weight: 700; }
.nk-pn-prev .nk-pn-lbl::before { content: "‹ "; }
.nk-pn-next .nk-pn-lbl::after { content: " ›"; }
.nk-blog .nk-pn-ttl { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; color: var(--nk-navy); font-size: 14px; font-weight: 700; line-height: 1.6; }

/* あわせて読みたい記事 */
.nk-rel { margin: 64px 0 0; }
.nk-blog .nk-rel-ttl { margin: 0; color: var(--nk-navy); font-size: 22px; font-weight: 800; text-align: center; }
.nk-rel-en { display: block; margin-bottom: 4px; color: var(--nk-red); font-family: Roboto, Arial, sans-serif; font-size: 13px; letter-spacing: .35em; }
.nk-rel .nk-bcards { margin-top: 26px; gap: 26px 22px; }
.nk-rel .nk-bcard-ttl { font-size: 15px; }

/* 一覧へ戻る */
.nk-blog .nk-back { margin: 56px 0 0; text-align: center; }
.nk-back-btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .85em 2.4em;
  border: 1px solid var(--nk-navy);
  border-radius: 999px;
  background: #fff;
  color: var(--nk-navy);
  font-size: 16px;
  font-weight: 700;
}
.nk-back-btn:hover { background: var(--nk-navy); color: #fff; }

/* ------------------------------------------------------------------
 * トップページの「お役立ちブログ」案内
 * ------------------------------------------------------------------ */
.nk-blogent { max-width: 1100px; margin: 0 auto; padding: 70px 0 80px; text-align: center; }
.nk-blogent .nk-blogent-en {
  margin: 0;
  color: var(--nk-red);
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .35em;
}
.nk-blogent .nk-blogent-ttl {
  margin: 6px 0 0;
  color: var(--nk-navy);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .06em;
}
.nk-blogent .nk-blogent-sub { margin: 16px 0 0; color: var(--nk-navy); font-size: 17px; font-weight: 500; line-height: 1.85; }
.nk-blogent .nk-blogent-list { margin-top: 40px; text-align: left; }
.nk-blogent .nk-blogent-go { margin: 40px 0 0; }
.nk-blogent-btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .85em 2.6em;
  border-radius: 999px;
  background: var(--nk-navy);
  box-shadow: 0 4px 0 #17233a;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.4;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.nk-blogent-btn:hover { background: #22324c; color: #fff; transform: translateY(2px); box-shadow: 0 2px 0 #17233a; }
.nk-blogent-btn i { color: #fff; }
.nk-blogent-arw { font-size: .8em; margin-left: .2em; }

/* ------------------------------------------------------------------
 * スマホ
 * ------------------------------------------------------------------ */
@media screen and (max-width: 800px) {
  br.nk-pc-only { display: none; }

  .nk-bhead { padding-top: 14px; }
  .nk-blog .nk-bhead-en { margin-top: 22px; font-size: 12px; }
  main h1.nk-bhead-ttl { font-size: 28px; }
  .nk-blog .nk-bhead-lead { margin-top: 10px; font-size: 14px; line-height: 1.8; text-align: left; }
  .nk-crumb li { font-size: 12px; }
  .nk-crumb li:last-child { max-width: 14em; }

  /* カテゴリーは横にスクロール */
  .nk-bcat { margin: 20px -2em 22px; }
  .nk-bcat ul { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; padding: 0 2em 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nk-bcat ul::-webkit-scrollbar { display: none; }
  .nk-bcat li { flex: 0 0 auto; }
  .nk-bcat a { padding: .5em 1em; font-size: 13px; }

  .nk-pick > a { display: block; border-radius: 14px; }
  .nk-pick-thumb { min-height: 0; aspect-ratio: 16 / 10; }
  .nk-pick-body { padding: 16px 18px 20px; }
  .nk-blog .nk-pick-ttl { margin-top: 10px; font-size: 18px; }
  .nk-blog .nk-pick-ex { margin-top: 8px; font-size: 13.5px; -webkit-line-clamp: 2; }
  .nk-blog .nk-pick-more { margin-top: 12px; font-size: 14px; }

  /* 小さいカードは横長の1列（写真が左） */
  .nk-bcards { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .nk-bcard > a { display: grid; grid-template-columns: 124px 1fr; gap: 14px; align-items: start; }
  .nk-bcard-thumb { border-radius: 8px; aspect-ratio: 4 / 3; }
  .nk-bcard-body { padding: 0; }
  .nk-blog .nk-bcard-ttl,
  .nk-blogent .nk-bcard-ttl { margin-top: 6px; font-size: 14.5px; line-height: 1.55; }
  .nk-chip { font-size: 11px; padding: .25em .75em; }
  .nk-bcard-meta { gap: 4px 8px; }
  .nk-bcard-meta time { font-size: 12px; }
  .nk-new { left: 6px; top: 6px; font-size: 10px; padding: .15em .5em; }

  .nk-bpager { margin-top: 36px; }
  .nk-bpager a,
  .nk-bpager .current,
  .nk-bpager .dots,
  .nk-bpager .is-off { min-width: 40px; height: 40px; font-size: 14px; }
  .nk-blog-in { margin-bottom: 48px; }

  .nk-post-wrap { padding-top: 14px; margin-bottom: 48px; }
  .nk-post-head { margin: 20px 0 18px; }
  main h1.nk-post-ttl { margin-top: 12px; font-size: 22px; line-height: 1.55; }
  .nk-post-hero { width: 90%; margin: 0 auto 28px; }
  .nk-post-hero img { width: 100%; max-height: 80vw; object-fit: cover; border-radius: 10px; }

  .nk-author { flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; padding: 22px 18px; text-align: center; }
  .nk-author-logo { flex-basis: auto; width: 80px; height: 80px; }
  .nk-author-logo img { width: 58px; height: 46px; }
  .nk-blog .nk-author-name { font-size: 17px; }
  .nk-blog .nk-author-desc { font-size: 14px; text-align: left; }
  .nk-blog .nk-author-btns { flex-direction: column; align-items: center; }
  .nk-abtn { justify-content: center; width: 80%; }

  .nk-pn { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .nk-pn-empty { display: none; }
  .nk-pn-thumb { flex-basis: 64px; width: 64px; height: 64px; }
  .nk-blog .nk-pn-ttl { font-size: 13.5px; }

  .nk-rel { margin-top: 48px; }
  .nk-blog .nk-rel-ttl { font-size: 19px; }
  .nk-rel .nk-bcard-ttl { font-size: 14px; }
  .nk-blog .nk-back { margin-top: 40px; }
  .nk-back-btn { font-size: 15px; }

  .nk-blogent { padding: 48px 0 56px; }
  .nk-blogent .nk-blogent-en { font-size: 12px; }
  .nk-blogent .nk-blogent-ttl { font-size: 28px; }
  .nk-blogent .nk-blogent-sub { margin-top: 10px; font-size: 14.5px; }
  .nk-blogent .nk-blogent-list { margin-top: 26px; }
  .nk-blogent .nk-blogent-go { margin-top: 28px; }
  .nk-blogent-btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; padding: .85em 1em; font-size: 18px; }
}
