@charset "utf-8";

/* =========================================================
  Blog Common
  - Blog Top / Blog Detail 共通
========================================================= */

.blogMain {
  padding: 0 0 60px;
}

.blogMain .contentsWrapper {
  /* 既存サイトのcontentsWrapper幅に合わせる想定 */
}

/* =========================================================
  Page Title Hero (背景画像＋暗幕) : サービス一覧と同系の見え方
  - HTML側: <div class="pageTitleWrap bgHero" style="--bg:url('...')">
========================================================= */

.pageTitleWrap.bgHero {
  position: relative;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.pageTitleWrap.bgHero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* 暗幕 */
}

.pageTitleWrap.bgHero .contentsWrapper {
  position: relative;
  z-index: 1;
}

.pageTitleWrap.bgHero .pageTitle {
  color: #fff;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* =========================================================
  Breadcrumb ( / ズレない版 )
  - HTML側で / を書かず、CSSで区切りを挿入
========================================================= */

.topicPath {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 12px;
  line-height: 1.6;
  color: #5b6770;
  margin: 18px 0 16px;
}

.topicPath a {
  color: inherit;
  text-decoration: none;
}

.topicPath a:hover {
  text-decoration: underline;
}

.topicPath > * {
  position: relative;
}

.topicPath > * + *::before {
  content: "/";
  display: inline-block;
  margin-right: 10px;
  color: #9aa6af;
}

/* current */
.topicPath span[aria-current="page"] {
  color: #2b2f33;
  font-weight: 600;
}

/* =========================================================
  Layout (Article + Sidebar)
========================================================= */

.blogLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px) {
  .blogLayout {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
  Article Card Container (白背景の箱)
========================================================= */

.blogArticle {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 28px 28px 22px;
}

@media (max-width: 680px) {
  .blogArticle {
    padding: 20px 16px 18px;
    border-radius: 12px;
  }
}

/* =========================================================
  Article Header
========================================================= */

.blogHeader {
  margin-bottom: 14px;
}

.blogMetaTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.blogCat {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf2f7;
  color: #1f2d3d;
  font-size: 12px;
  font-weight: 700;
}

.blogDate {
  font-size: 12px;
  color: #6b7780;
}

.blogTitle {
  margin: 8px 0 10px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111;
}

.blogLead {
  margin: 0 0 14px;
  color: #2f3a43;
  line-height: 1.9;
  font-size: 14px;
}

/* Eyecatch */
.blogEyecatch {
  margin: 14px 0 0;
}

.blogEyecatch img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* =========================================================
  Table of Contents
========================================================= */

.blogToc {
  margin: 18px 0 26px;
  background: #f5f7f9;
  border-radius: 12px;
  padding: 16px 18px;
}

.tocTitle {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
  color: #111;
}

.tocList {
  margin: 0;
  padding-left: 18px;
}

.tocList li {
  margin: 6px 0;
  line-height: 1.7;
  font-size: 13px;
}

.tocList a {
  color: #1a2a3a;
  text-decoration: none;
}

.tocList a:hover {
  text-decoration: underline;
}

/* =========================================================
  Article Body (見出し・本文・強調はBoldのみ)
========================================================= */

.blogBody {
  color: #1f2d3d;
  line-height: 2.0;
  font-size: 15px;
}

.blogBody p {
  margin: 0 0 16px;
}

.blogBody strong {
  font-weight: 800;
}

.blogBody h3 {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  color: #111;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.blogBody h4 {
  margin: 20px 0 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  color: #111;
}

.blogBody ul,
.blogBody ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.blogBody li {
  margin: 6px 0;
}

.blogBody a {
  color: #0f3b7a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blogBody a:hover {
  opacity: .85;
}

/* 引用・注意（使いたい場合） */
.blogBody .noteBox {
  background: #f5f7f9;
  border-left: 4px solid rgba(15,59,122,.35);
  padding: 14px 16px;
  border-radius: 10px;
  margin: 18px 0;
}

/* =========================================================
  ✅ Blog Detail ONLY：箇条書きを「・」表示に統一
  - 対象：#blogDetail 配下の本文のみ
  - 既存の marker を無効化し、疑似要素で「・」を出す（ズレ/二重防止）
========================================================= */

#blogDetail .blogBody ul {
  list-style: none;              /* 既存の丸(•)等を消す */
  padding-left: 0;               /* 自前でインデント管理 */
  margin: 0 0 16px;
}

#blogDetail .blogBody ul > li {
  position: relative;
  padding-left: 1.2em;           /* 「・」分のスペース */
  margin: 6px 0;
}

#blogDetail .blogBody ul > li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  line-height: inherit;          /* 行頭に自然に揃う */
  color: inherit;
}

/* ネスト（2階層目以降）も自然に */
#blogDetail .blogBody ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

#blogDetail .blogBody ul ul > li {
  padding-left: 1.2em;
}

/* =========================================================
  ✅ Blog Detail ONLY：ol の数字を必ず表示
========================================================= */

#blogDetail .blogBody ol {
  list-style: decimal !important;        /* 1. 2. 3. を強制 */
  list-style-position: outside;          /* 行頭の外側に番号 */
  padding-left: 1.4em;                   /* 既存値維持 */
  margin: 0 0 16px;                      /* ulと揃えるなら */
}

/* 念のため：ol配下だけ li::before を無効化（他CSSの干渉対策） */
#blogDetail .blogBody ol > li::before {
  content: none !important;
}

/* ネストした ol（1.1 のような階層）も表示したい場合 */
#blogDetail .blogBody ol ol {
  list-style-type: decimal !important;   /* a, i にしたいなら変更 */
  margin-top: 8px;
  margin-bottom: 8px;
  padding-left: 1.4em;
}


/* =========================================================
  Article Footer (著者)
========================================================= */

.blogFooter {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.blogAuthor .authorName {
  font-weight: 800;
  margin-bottom: 6px;
  color: #111;
}

.blogAuthor .authorText {
  margin: 0;
  color: #3b4650;
  font-size: 13px;
  line-height: 1.8;
}

/* =========================================================
  Sidebar
========================================================= */

.blogSidebar {
  position: sticky;
  top: 18px; /* header固定がある場合はここを調整（例: 90px） */
}

@media (max-width: 980px) {
  .blogSidebar {
    position: static;
  }
}

.sideBox {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 16px 16px;
  margin-bottom: 16px;
}

.sideTitle {
  font-weight: 800;
  color: #111;
  margin-bottom: 10px;
  font-size: 14px;
}

.sideList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sideList li {
  margin: 8px 0;
  line-height: 1.6;
  font-size: 13px;
}

.sideList a {
  color: #1a2a3a;
  text-decoration: none;
}

.sideList a:hover {
  text-decoration: underline;
}

/* Search */
.sideSearch {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 8px;
}

.sideSearch input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.sideSearch input:focus {
  border-color: rgba(15,59,122,.35);
  box-shadow: 0 0 0 3px rgba(15,59,122,.12);
}

.sideSearch button {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #0f3b7a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1; /* ボタン内の文字ズレ対策 */
}

.sideSearch button:hover {
  opacity: .9;
}

/* CTA */
.sideCta {
  display: flex;
}

.sideCtaBtn {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: #0f3b7a;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.sideCtaBtn:hover {
  opacity: .9;
}

/* =========================================================
  Blog Top (カード一覧) でも使える汎用カード
  - 既にブログトップ側で使っている場合も崩れにくい
========================================================= */

.blogCardGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px) {
  .blogCardGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .blogCardGrid {
    grid-template-columns: 1fr;
  }
}

.blogCard {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.blogCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
}

.blogCard a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.blogCardImg img {
  width: 100%;
  height: auto;
  display: block;
}

.blogCardBody {
  padding: 14px 14px 16px;
}

.blogCardMeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.blogCardTitle {
  font-weight: 800;
  line-height: 1.5;
  font-size: 14px;
  margin: 0 0 8px;
}

.blogCardDesc {
  margin: 0;
  font-size: 13px;
  color: #3b4650;
  line-height: 1.8;
}

/* =========================================================
  Utility
========================================================= */

.blogMain img {
  max-width: 100%;
}
/* =========================================================
  Article Footer (著者) - 最も自然な版
  - 濃紺帯を廃止し、白カード内に馴染む薄グレーボックスへ
========================================================= */

body#blogDetail .blogFooter{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: transparent;
  border-radius: 0;
}

/* 著者ボックス（自然に馴染む） */
body#blogDetail .blogAuthor{
  margin-top: 14px;
  background: #f5f7f9;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 16px 18px;
}

/* タイトル（著者名） */
body#blogDetail .blogAuthor .authorName{
  margin: 0 0 6px;
  color: #111;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .02em;
}

/* 説明文 */
body#blogDetail .blogAuthor .authorText{
  margin: 0;
  color: #3b4650;
  font-size: 13px;
  line-height: 1.85;
}

/* 文字が詰まって見える場合の保険 */
body#blogDetail .blogAuthor *{
  word-break: break-word;
}

/* モバイル微調整 */
@media (max-width: 680px){
  body#blogDetail .blogAuthor{
    padding: 14px 14px;
    border-radius: 10px;
  }
}

@media (max-width: 640px){
  body#blogDetail .blogMain .contentsWrapper{
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}
/* ブログ一覧：リード文の不自然な改行を防ぐ */
#blogTop p.contentsText.blogLead{
  white-space: normal !important;     /* pre-line / pre-wrap を殺す */
  width: 100%;
  max-width: 100%;
  display: block;                    /* inline-block 等を上書き */
  line-height: 1.9;
  overflow-wrap: anywhere;           /* 長い語で溢れないように */
}
/* ブログ一覧：サムネを 3:2（1200×800）で統一 */
#blogTop .blogCardThumb{
  aspect-ratio: 3 / 2;      /* ★ここがポイント */
  overflow: hidden;
  border-radius: 14px;      /* 既存に合わせて調整 */
  background: #fff;         /* 余白が出るケースの保険（基本は出ません） */
}

#blogTop .blogCardThumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 枠にフィット。必要ならトリミング */
  display: block;
}
/* =========================================================
  ✅ ブログ一覧カード：説明文と「詳細はこちら」を離して視認性UP
  - 対象：ブログ一覧（#blogTop）内のカードだけ
========================================================= */

/* カード本文を縦flexにして、最後の要素を下へ */
#blogTop .blogCardBody{
  display: flex;
  flex-direction: column;
}

/* 説明文の下に余白を作る（詰まり解消） */
#blogTop .blogCardExcerpt{
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.6;
}

/* 「詳細はこちら」をカード下部に寄せ、区切りを作る */
#blogTop .blogCardMore{
  margin-top: auto;              /* ここが重要：下に押し下げ */
  padding-top: 10px;             /* 説明文との距離 */
  border-top: 1px solid #e9eef6; /* 視線の区切り（不要なら削除） */
  font-weight: 400;
}

/* クリック誘導を少し強める（任意） */
#blogTop .blogCardLink:hover .blogCardMore{
  text-decoration: underline;
}
#blogTop .blogCardExcerpt{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
