@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* =======================================
   記事周りのデザイン
   ======================================= */

/* サマリーボックス全体 */
.summary-box {
    margin: 40px 0;           /* 上下の余白 */
    padding: 0 0 20px 0;      /* 下の内側の余白 */
    border-bottom: 1.5px solid #233B6C; /* 一番下の太い線（色は画像のネイビーに合わせています） */
    width: 100%;
}

/* 「この記事のサマリー」タイトル部分 */
.summary-title {
    display: flex;            /* 横並びにする */
    align-items: center;      /* 上下中央揃え */
    justify-content: center;  /* 左右中央揃え */
    text-align: center;
    font-size: 1.1em;         /* 文字サイズ */
    color: #1a1a3d;           /* 文字色 */
    margin-bottom: 25px;      /* タイトルとリストの間の余白 */
}

/* タイトルの左右の線をつくる設定 */
.summary-title::before,
.summary-title::after {
    content: '';
    flex-grow: 1;             /* 余ったスペースを埋める */
    height: 1.5px;              /* 線の太さ */
    background-color: #233B6C;/* 線の色 */
}

/* 左側の線の位置調整 */
.summary-title::before {
    margin-right: 20px;       /* 文字との間隔 */
}

/* 右側の線の位置調整 */
.summary-title::after {
    margin-left: 20px;        /* 文字との間隔 */
}

/* リスト部分のデザイン */
.summary-box ul {
    list-style: none;         /* デフォルトの点を消す（下で再設定するため） */
    padding: 0 1em;           /* 左右の余白 */
    margin: 0;
}

.summary-box ul li {
    position: relative;
    padding-left: 1.5em;      /* 点のためのインデント */
    margin-bottom: 0.8em;     /* 行間 */
    line-height: 1.6;         /* 文章の行の高さ */
    color: #333;              /* 文字色 */
}

/* リストの黒丸（・）を自作して調整 */
.summary-box ul li::before {
    content: '●';             /* 黒丸 */
    position: absolute;
    left: 0;
    color: #233B6C;           /* 丸の色 */
    font-size: 0.5em;         /* 丸のサイズ */
    top: 0.5em;               /* 丸の上下位置調整 */
}


/* ============================
   トップページ用のH2見出しスタイル（中央寄せ版）
   ============================ */

/* トップページ用のH2見出しスタイル（中央寄せ版） */
.l-mainContent .post_content h2.top-section-title {
  display: inline-flex;           /* 棒＋文字を横並びにまとめる */
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 auto 24px;            /* 左右autoでブロック自体を中央に */
  padding: 0;                     /* 余分な左パディングを削除 */
  text-align: left;               /* 中のテキストは左寄せでOK */
}

/* 左のアクセントライン（丸い棒） */
.l-mainContent .post_content h2.top-section-title::before {
  content: "";
  display: inline-block;
  width: 24px !important;         /* SWELL側のwidth:100%を上書き */
  height: 6px !important;
  background-color: #2D7FF9;
  border-radius: 999px;
  margin-right: 12px;             /* 棒と文字の間の余白 */
  position: static;               /* 位置指定は使わない */
  transform: none;
}


@media (max-width: 599px) {
  .top-section-title::before {
    width: 24px;
    height: 6px;
  }
  .top-section-title {
    font-size: 1.2rem;
  }
}


/* =======================================
   Knowledge Hub：カード型ポストリスト 共通デザイン
   （トップ / アーカイブ / 検索結果 など共通）
   ======================================= */

/* カード自体 */
.p-postList.-type-card .p-postList__item {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}

/* ホバー時の軽いリフトアップ＆ズーム */
.p-postList.-type-card .p-postList__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.p-postList.-type-card .p-postList__item:hover .p-postList__thumb img {
  transform: scale(1.03);
}

/* リンク全体を縦方向Flexにしてカード全体をクリック領域に */
.p-postList.-type-card .p-postList__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* カードの内側余白（サムネイル含む全体） */
.p-postList.-type-card .p-postList__item > .p-postList__link {
  padding: 14px 9px 9px;
  box-sizing: border-box;
}

/* サムネイル */
.p-postList.-type-card .p-postList__thumb {
  overflow: hidden;
}
.p-postList.-type-card .p-postList__thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .3s ease;
}

/* テキスト側の余白 */
.p-postList.-type-card .p-postList__body {
  padding: 16px 18px 18px;
}

/* 投稿日・カテゴリの行 */
.p-postList.-type-card .p-postList__meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 8px;
}

/* タイトル */
.p-postList.-type-card .p-postList__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* 抜粋（2 行固定） */
.p-postList.-type-card .p-postList__excerpt {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* カード内タグ（style_normal.php で出力している ul.kh-post-tags） */
.p-postList.-type-card .kh-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 10px 0 8px;
  padding: 0;
  list-style: none !important;
}
.p-postList.-type-card .kh-post-tags li {
  margin: 0;
  padding: 0;
}
.p-postList.-type-card .kh-post-tags li span {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
  background-color: #F5F7FB;
  color: #555;
  white-space: nowrap;
}

/* SP 時の軽い調整（必要に応じて） */
@media (max-width: 599px) {
  .p-postList.-type-card .p-postList__body {
    padding: 14px 14px 16px;
  }
}



/* =======================================
   Knowledge Hub：トップページ「新着記事」ブロック専用
   （セクション全体のレイアウト・ボタンなど）
   ======================================= */

/* カード型ポストリスト 共通のカード間余白 */
.p-postList.-type-card {
  gap: 28px;
}

@media (max-width: 599px) {
  .p-postList.-type-card {
    gap: 20px;
  }
}


/* トップ新着カード専用：タグ行（※必要なら残す） */
.kh-post-list .kh-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 10px 0 8px;
  padding: 0;
  list-style: none !important;
}
.kh-post-list .kh-post-tags li {
  margin: 0;
  padding: 0;
}
.kh-post-list .kh-post-tags li span {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
  background-color: #F5F7FB;
  color: #555;
  white-space: nowrap;
}

/* トップ新着カード専用：もっと見るボタン（B案：フラット） */
.kh-post-list .is-style-more_btn,
.kh-post-list + .is-style-more_btn {
  background: transparent !important;
  text-align: center;
  padding-top: 32px;
}

.kh-post-list .is-style-more_btn .btn_text,
.kh-post-list + .is-style-more_btn .btn_text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid #e1e5eb;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  transition: 0.2s ease;
}

.kh-post-list .is-style-more_btn .btn_text::after,
.kh-post-list + .is-style-more_btn .btn_text::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.kh-post-list .is-style-more_btn .btn_text:hover,
.kh-post-list + .is-style-more_btn .btn_text:hover {
  background: #f7f9fc;
  border-color: #d6dbe3;
}

.kh-post-list .is-style-more_btn .btn_text:hover::after,
.kh-post-list + .is-style-more_btn .btn_text:hover::after {
  transform: translateX(4px);
}


/* ============================
   新着記事ブロックのカラムレイアウト
   PC:3列 / Tablet:2列 / SP:1列
   ============================ */

/* PC（1020px以上）: 3列 */
@media (min-width: 1020px) {
  .kh-post-list .p-postList.-type-card {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;  /* ← カード間の横の余白。広いと思ったら 24px くらいに */
    row-gap: 24px;     /* ← 縦の余白 */
  }

  .kh-post-list .p-postList.-type-card > .p-postList__item {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
}

/* Tablet（768〜1019px）: 2列 */
@media (min-width: 768px) and (max-width: 1019px) {
  .kh-post-list .p-postList.-type-card {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;  /* 2列なので少し狭めでもOK */
    row-gap: 24px;
  }

  .kh-post-list .p-postList.-type-card > .p-postList__item {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
}


/* SP（〜767px）：関連記事だけ右の余白を解消して1列に揃える */
@media (max-width: 767px) {
  .p-relationPosts .p-postList.-type-card {
    display: block !important;
  }

  .p-relationPosts .p-postList.-type-card > .p-postList__item {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
}



/* SP（〜767px）は SWELL の1列指定をそのまま使うのでCSS不要 */

/* =========================
   フッター直前の Tags セクション
   ========================= */
.kh-tagsBar {
  
  padding: 40px 0 32px;
  margin-top: 0px;
  margin-bottom:40px;
}

.kh-tagsBar__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}



/* タイトル（青いライン + 文字） */
.kh-tagsBar__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.kh-tagsBar__line {
  display: inline-block;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: #3b82ff;
}

.kh-tagsBar__label {
  font-size: 20px;
  font-weight: 700;
}

/* tagcloud をチップ状に */
.kh-tagsBar .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
}

.kh-tagsBar .tagcloud a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 999px;
  background: #f3f6ff;
  color: #333;
  text-decoration: none;
  border: 1px solid #e0e5ff;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
              transform 0.1s ease;
  white-space: nowrap;
}

.kh-tagsBar .tagcloud a:hover {
  background: #4a6bff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(74, 107, 255, 0.25);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .kh-tagsBar {
    padding: 32px 0 28px;
  }

  .kh-tagsBar__inner {
    padding: 0 16px;
  }
}

/* Tags セクションの横幅をフッターと揃える（センタリング解除） */
.kh-tagsBar__inner {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 18px;
  padding-right: 18px;
}

/* タイトルもタグも左寄せに固定 */
.kh-tagsBar,
.kh-tagsBar__inner,
.kh-tagsBar__title {
  text-align: left !important;
}

/* タグチップを左詰めで並べる */
.kh-tagsBar .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: flex-start !important;
}




/* =========================
   フッター　内
   ========================= */

/* ==== フッター左カラム全体 ==== */
.hk-footer-left {
  padding-right: 20px;
}

/* ==== ロゴ ==== */
.hk-footer-logo {
  width: 240px;
  margin-bottom: 10px;
  display: block;
}

/* ==== タイトル ==== */
.hk-footer-title {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 4px;
}

/* ==== キャッチコピー ==== */
.hk-footer-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* ==== メニューリスト ==== */
.hk-footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hk-footer-nav li {
  margin-bottom: 8px;
}

.hk-footer-nav a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
}

.hk-footer-nav a:hover {
  opacity: 0.7;
}

/* =======フッター左カラムのリンク装飾====== */

/* ベース */
.hk-footer-nav a {
  position: relative;
  font-size: 15px;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  padding-left: 18px;   /* アイコン分の余白 */
  transition: opacity .2s, transform .1s;
}

/* アイコン（左側） */
.hk-footer-nav a::before {
  content: "↗";  /* お好みで "›" や "●" などに変更可 */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #4a6bff;
}

/* ホバー時のちょい演出 */
.hk-footer-nav a:hover {
  opacity: 0.8;
  transform: translateX(1px);
}

/* =========================
   フッター内カテゴリーリスト
========================= */

/* フッター内のカテゴリーウィジェットを対象にする */
#footer .widget_categories {
  margin-top: 8px;
}

/* デフォルトのリストスタイルをリセット */
#footer .widget_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 各カテゴリー行のスタイル */
#footer .widget_categories li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #e3e6f0;
  font-size: 14px;
}

/* 先頭のマーカー（アイコン風） */
#footer .widget_categories li::before {
  content: "▸";
  margin-right: 6px;
  color: #4a6bff;
  font-size: 11px;
}

/* a要素を横いっぱい取りたいので inline → flex に */
#footer .widget_categories a {
  flex: 1;
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ホバー時の軽い演出 */
#footer .widget_categories a:hover {
  opacity: 0.8;
}

/* 件数部分のスタイル（テーマのクラス名に合わせて調整） */
#footer .widget_categories .count,
#footer .widget_categories .cat-item-count,
#footer .widget_categories span {
  font-size: 12px;
  color: #888;
}

/* =========================
   サイドバー共通スタイル
========================= */

.hk-sidebar-block {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

/* ブロックタイトル */
.hk-sidebar-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  position: relative;
  padding-left: 16px;
}

.hk-sidebar-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #3b82ff;
  transform: translateY(-50%);
}


/*資料ダウンロード*/
.hk-sidebar-ctaBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: #3b82ff;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  gap: 6px;
  transition: background .2s, box-shadow .2s, transform .1s;
}

.hk-sidebar-ctaBtn::after {
  content: "→";
  font-size: 13px;
}

.hk-sidebar-ctaBtn:hover {
  background: #295ed6;
  box-shadow: 0 6px 16px rgba(59, 130, 255, .35);
  transform: translateY(-1px);
}


/* ================================
   サイドバー専用：カテゴリー & タグクラウド
   （フッターのウィジェットには効かない）
   ================================ */

/* 共通のカード枠 */
.l-sidebar .widget_categories,
.l-sidebar .widget_tag_cloud {
  background: #fff;
  border-radius: 14px;
  padding: 24px 22px;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  border: 1px solid #f2f2f2;
}

/* 見出し */
.l-sidebar .widget_categories .widget-title,
.l-sidebar .widget_tag_cloud .widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #3f7dfc;
}

/* -------- カテゴリー用 -------- */

.l-sidebar .widget_categories ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.l-sidebar .widget_categories ul li {
  padding: 6px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.l-sidebar .widget_categories ul li::before {
  content: "›";
  color: #3f7dfc;
  margin-right: 6px;
  font-weight: 700;
}

/* -------- タグクラウド用 -------- */

.l-sidebar .widget_tag_cloud .tagcloud a {
  background: #f6f8ff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px !important;
  margin: 4px;
  display: inline-block;
  color: #333;
  text-decoration: none;
}

.l-sidebar .widget_tag_cloud .tagcloud a:hover {
  background: #3f7dfc;
  color: #fff !important;
}


/* ================================
   アーカイブページ
  の整理整頓 ================================ */

/* アーカイブページのタイトル共通 */
.archive .c-pageTitle,
.blog .c-pageTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* 左の青いライン */
.archive .c-pageTitle::before,
.blog .c-pageTitle::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: #3b82ff;
}

/* アーカイブ一覧：SP1列 / TAB2列 / PC3列 */
.p-postList.-type-card.-pc-col3.-sp-col1 {
  display: grid !important;
  grid-template-columns: 1fr; /* SP:1列 */
  column-gap: 24px;
  row-gap: 24px;
}

@media (min-width: 600px) and (max-width: 959px) {
  .p-postList.-type-card.-pc-col3.-sp-col1 {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* TAB:2列 */
  }
}

@media (min-width: 960px) {
  .p-postList.-type-card.-pc-col3.-sp-col1 {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* PC:3列 */
  }
}

/* li の幅指定・余白リセット（アーカイブだけ） */
.p-postList.-type-card.-pc-col3.-sp-col1 > li {
  width: auto !important;
  max-width: none !important;
  margin-right: 0 !important;
}
/* ================================
   関連記事
  の整理整頓 ================================ */

/* 関連記事：SP1列 / TAB2列 / PC3列（右の空白ナシ） */
ul.p-postList.p-relatedPosts.-type-card {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: 1fr; /* SP: 1列 */
  column-gap: 28px;           /* ここは今つけている gap と同じ値でOK */
  row-gap: 28px;
  margin: 0;
  padding: 0;
}

/* タブレット 2列 */
@media (min-width: 600px) and (max-width: 959px) {
  ul.p-postList.p-relatedPosts.-type-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* PC 3列（4列にしたければ 4 に変更） */
@media (min-width: 960px) {
  ul.p-postList.p-relatedPosts.-type-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* li 側の幅・余白をリセットして grid に任せる */
ul.p-postList.p-relatedPosts.-type-card > li {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}
