@charset "UTF-8";
 
/* =========================================================
   Blog page only
   - blog.html の .blog 配下にスコープして他ページへ影響させない
   ========================================================= */
 
:root{
  --blog-navy: #0b1220;
  --blog-text: #0f172a;
  --blog-muted: #475569;
  --blog-line: rgba(17, 24, 39, .10);
}
 
/* =========================
   Layout
   ========================= */
 
main.blog{
  padding-bottom: 70px;
}
 
/* Hero の後に本体を並べるため grid は既存に合わせる想定 */
.blog__grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin-top: 22px;
}
 
.blog__main{
  min-width: 0;
}
 
.blog__side{
  position: sticky;
  top: 18px;
  align-self: start;
}
 
/* スマホ：1カラム */
@media (max-width: 980px){
  .blog__grid{
    grid-template-columns: 1fr;
  }
 
  .blog__side{
    position: static;
    top: auto;
  }
}
 
/* =========================
   Container-width Hero Box (service-web.html 同思想)
   - “画像を全部見せたい” => object-fit: contain
   ========================= */
 
.blog__hero{
  margin-top: 40px;
  margin-bottom: 0;
}
 
.blog__heroMedia{
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 320px;
  max-height: 620px;
 
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  background: var(--blog-navy);
}
 
.blog__heroImg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
 
  /* 全体を表示（黒帯が出る可能性あり。黒帯は背景色で吸収） */
  object-fit:  cover;
  object-position: center;
  display: block;
  background: var(--blog-navy);
}
 
.blog__heroOverlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.22),
    rgba(0,0,0,0.45)
  );
}
 
.blog__heroInner{
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 18px 18px;
 
  display: grid;
  place-content: center;
  text-align: center;
 
  color: #fff;
}
 
.blog__heroTitle{
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.1;
  font-size: clamp(36px, 4.2vw, 64px);
  text-shadow: 0 12px 28px rgba(0,0,0,.35);
}
 
.blog__heroLead{
  margin: 0;
  max-width: 75ch;
  margin-inline: auto;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  line-height: 1.7;
  font-size: clamp(16px, 1.35vw, 20px);
  text-shadow: 0 10px 24px rgba(0,0,0,.30);
}
 
/* スマホ */
@media (max-width: 560px){
  .blog__hero{
    margin-top: 14px;
  }
 
  .blog__heroMedia{
    aspect-ratio: 4 / 3;
    min-height: 240px;
    max-height: 520px;
  }
}
 
/* =========================
   Sidebar widgets (最低限)
   ========================= */
 
.widget{
  border: 1px solid var(--blog-line);
  padding: 14px 14px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 10px 22px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  margin-bottom: 18px;
}
 
.widget__title{
  margin: 0 0 10px;
  font-weight: 900;
  color: var(--blog-text);
  letter-spacing: .02em;
}
 
.widget__list{
  margin: 0;
  padding: 0;
  list-style: none;
}
 
.widget__list--plain li + li{
  margin-top: 10px;
}
 
.widget__list a{
  color: var(--blog-text);
  text-decoration: none;
}
 
.widget__list a:hover{
  text-decoration: underline;
}
 
/* =========================
   Groups (details/summary)
   ========================= */
 
.widget__groups{
  display: grid;
  gap: 10px;
}
 
.group{
  border: 1px solid var(--blog-line);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}
 
.group__summary{
  cursor: pointer;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}
 
.group__name{
  font-weight: 800;
  color: var(--blog-text);
}
 
.group__count{
  color: var(--blog-muted);
  font-weight: 800;
}
 
.group__list{
  list-style: none;
  margin: 0;
  padding: 8px 12px 12px;
  border-top: 1px solid var(--blog-line);
}
 
.group__list li + li{
  margin-top: 10px;
}
 
.group__list a{
  display: grid;
  gap: 4px;
  color: var(--blog-text);
  text-decoration: none;
}
 
.group__postTitle{
  font-weight: 800;
}
 
.group__date{
  font-size: .9rem;
  color: var(--blog-muted);
}
 
/* =========================================================
   Post typography & spacing (本文の読みやすさ + 余白)
   - blog.html の .blog 配下にスコープして他ページへ影響させない
   ========================================================= */
 
/* =========================
   Post typography (本文の読みやすさ)
   ========================= */
 
/* 本文エリア全体 */
.blog .post__content{
  /* 読みやすさの核（基準値） */
  font-size: 17px;          /* 16〜18pxで調整 */
  line-height: 1.95;        /* 1.8〜2.1で調整 */
  letter-spacing: 0.03em;   /* 0.01〜0.03em推奨（空けすぎ注意） */
 
  /* 1行を短くして読みやすく（中央寄せはせず自然に） */
  max-width: 70ch;          /* 60〜75chくらいが快適 */
  /* 親がflex等のときに効かないケースがあるので保険 */
  width: 100%;
}
 
/* 段落：間隔を作る（最重要） */
.blog .post__content p{
  margin: 0 0 1.25em;
}
 
/* 最後の段落だけ余白を消す */
.blog .post__content p:last-child{
  margin-bottom: 0;
}
 
/* 見出し：詰まりを解消 */
.blog .post__content h2,
.blog .post__content h3{
  margin: 1.8em 0 0.6em;
  line-height: 1.35;
  letter-spacing: 0.03em;  /* 見出しは少し詰めると締まる */
}
 
/* リストも読みやすく */
.blog .post__content ul,
.blog .post__content ol{
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
 
.blog .post__content li + li{
  margin-top: 0.5em;
}
 
/* 長いURL等がはみ出すのを防ぐ */
.blog .post__content a{
  overflow-wrap: anywhere;
  word-break: break-word;
}
 
/* =========================
   Post spacing（記事ブロック間の余白）
   ※ .post__content を上で定義しているので「追記」で統一
   ========================= */
 
/* ヘッダー（タイトル + メタ）と本文の間 */
.blog .post__header{
  margin-bottom: 18px; /* 12〜28pxで調整 */
}
 
/* 本文とナビ（Blogトップに戻る）の間 */
.blog .post__content{
  margin-bottom: 28px; /* 20〜40pxで調整 */
}
 
/* 「Blogトップに戻る」エリア自体にも余白を持たせる */
.blog .post__nav{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--blog-line);
}
 
.blog__heroMedia{
  background: #e5e7eb; /* 薄いグレーなど */
}
 
/* =========================================================
   Post table (記事内の数値比較表)
   - review-what-2 等、時系列の数値比較を伴う記事で使用
   ========================================================= */
 
.blog .post__table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 70ch;
  margin: 0 0 0.6em;
}
 
.blog .post__table{
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
 
.blog .post__table caption{
  text-align: left;
  font-weight: 800;
  color: var(--blog-text);
  margin-bottom: 8px;
  font-size: 14px;
  white-space: normal;
}
 
.blog .post__table th,
.blog .post__table td{
  padding: 10px 12px;
  border: 1px solid var(--blog-line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
 
.blog .post__table thead th{
  background: var(--blog-navy);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}
 
.blog .post__table tbody tr:nth-child(even){
  background: rgba(17, 24, 39, .03);
}
 
/* =========================================================
   Post note (表の下などに添える出典・補足の小さい注記)
   ========================================================= */
 
.blog .post__note{
  font-size: 13px;
  line-height: 1.7;
  color: var(--blog-muted);
  margin: 0 0 1.6em;
}