@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /* 必要ならここに追加 */
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /* 必要ならここに追加 */
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /* 必要ならここに追加 */
}

/* ========================================
   front-page.php 用ベース
======================================== */
.home #main.main {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.home .front-recommend-section,
.home .front-latest-section {
  margin: 0 0 32px !important;
  padding: 32px !important;
  background: #fff !important;
  border: 1px solid #e9e9e9 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

.home .front-section-title {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

/* ========================================
   まず読む3本
======================================== */
.home .front-recommend-grid {
  display: flex;
  gap: 24px;
  margin-bottom: 0;
}

.home .front-recommend-card {
  width: calc((100% - 48px) / 3);
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home .front-recommend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.home .front-recommend-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home .front-recommend-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.home .front-recommend-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home .front-recommend-body {
  padding: 18px 18px 22px;
}

.home .front-recommend-cat {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
}

.home .front-recommend-title,
.home .front-recommend-card h2.front-recommend-title {
  margin: 0 0 12px;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.5 !important;
  color: #222;
}

.home .front-recommend-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.home .front-recommend-meta {
  margin-bottom: 18px;
  font-size: 13px;
  color: #777;
}

.home .front-recommend-button {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  background: #fff;
}

/* ========================================
   新着記事一覧
======================================== */
.home .front-latest-section .list {
  margin: 0 0 24px;
}

.home .front-latest-section .entry-card-wrap,
.home .front-latest-section .a-wrap {
  margin-bottom: 20px;
}

/* ページャー */
.home .front-latest-section .pagination {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.home .front-latest-section .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 10px 14px;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  white-space: nowrap;
}

.home .front-latest-section .next,
.home .front-latest-section .prev {
  min-width: 42px;
  white-space: nowrap;
}

.home .front-latest-section .next::before,
.home .front-latest-section .next::after,
.home .front-latest-section .prev::before,
.home .front-latest-section .prev::after {
  display: none !important;
  content: none !important;
}

/* ========================================
   記事下「まず読むまとめ」
======================================== */
.josys-read-first-box {
  margin-top: 32px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.josys-read-first-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.josys-read-first-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

.josys-read-first-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.josys-read-first-item {
  margin: 0 0 14px;
}

.josys-read-first-item:last-child {
  margin-bottom: 0;
}

.josys-read-first-link {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.josys-read-first-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.josys-read-first-rank {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
}

.josys-read-first-item-title {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: #222;
}

.josys-read-first-desc {
  display: block;
  font-size: 13px;
  line-height: 1.8;
  color: #777;
}

.josys-read-first-item.is-no1 .josys-read-first-link {
  border-color: #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.josys-read-first-item.is-no1 .josys-read-first-rank {
  color: #1d4ed8;
  background: #dbeafe;
}

/* ========================================
   サイト導入文
======================================== */
.site-lead-box {
  background: rgba(255, 255, 255, 0.78);
  border-left: 4px solid #9fb9cc;
  border-radius: 6px;
  padding: 16px 22px;
  margin: 0 0 22px;
  max-width: 920px;
}

.site-lead-title {
  margin: 0 0 8px;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #2f3b46;
}

.site-lead-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.9;
  color: #66727d;
}

/* ========================================
   下段2セクション：プレビュー寄せ版
======================================== */
.home .front-preview-section {
  margin: 0 0 20px !important;
  padding: 18px 22px 24px !important;
  background: #fff !important;
  border: 1px solid #e9e9e9 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

.home .front-preview-section .front-section-title {
  margin: 0 0 14px !important;
  font-size: 24px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.home .front-preview-list {
  margin: 0 !important;
}

.home .front-preview-item {
  margin: 0 !important;
  padding: 10px 0 !important;
  border-top: 1px solid #edf2f7 !important;
}

.home .front-preview-item:first-child {
  padding-top: 0 !important;
  border-top: none !important;
}

.home .front-preview-item:last-child {
  padding-bottom: 0 !important;
}

.home .front-preview-link {
  display: grid !important;
  grid-template-columns: 160px 1fr !important;
  gap: 14px !important;
  align-items: center !important;
  color: inherit !important;
  text-decoration: none !important;
}

.home .front-preview-thumb-wrap {
  width: 160px !important;
  min-width: 160px !important;
}

.home .front-preview-thumb,
.home .front-preview-thumb-placeholder,
.home .front-preview-thumb-wrap img,
.home .front-preview-thumb-wrap .no-image {
  display: block !important;
  width: 160px !important;
  height: 90px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
}

.home .front-preview-thumb-placeholder {
  background: linear-gradient(135deg, #d8e6f5, #bfd8ec) !important;
  border: 1px solid #dde7f0 !important;
}

.home .front-preview-body {
  min-width: 0 !important;
}

.home .front-preview-meta {
  display: inline-block !important;
  margin: 0 0 6px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.home .front-preview-title {
  margin: 0 0 4px !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  color: #222 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.home .front-preview-desc {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: #66727d !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* ========================================
   レスポンシブ調整
======================================== */
@media screen and (max-width: 1023px) {
  .home .front-recommend-grid {
    flex-wrap: wrap;
    gap: 16px;
  }

  .home .front-recommend-card {
    width: 100%;
  }

  .home .front-section-title {
    font-size: 24px;
  }

  .home .front-recommend-title {
    font-size: 18px !important;
  }

  .home .front-recommend-section,
  .home .front-latest-section {
    padding: 20px !important;
  }
}

@media screen and (max-width: 834px) {
  .josys-read-first-box {
    margin-top: 28px;
    padding: 20px;
  }

  .josys-read-first-title {
    font-size: 22px;
  }

  .josys-read-first-link {
    padding: 14px 16px;
  }

  .josys-read-first-item-title {
    font-size: 16px;
  }

  .home .front-preview-section {
    padding: 14px 14px 8px !important;
  }

  .home .front-preview-section .front-section-title {
    font-size: 22px !important;
  }

  .home .front-preview-link {
    grid-template-columns: 110px 1fr !important;
    gap: 10px !important;
  }

  .home .front-preview-thumb-wrap {
    width: 110px !important;
    min-width: 110px !important;
  }

  .home .front-preview-thumb,
  .home .front-preview-thumb-placeholder,
  .home .front-preview-thumb-wrap img,
  .home .front-preview-thumb-wrap .no-image {
    width: 110px !important;
    height: 70px !important;
  }

  .home .front-preview-title {
    font-size: 15px !important;
  }

  .home .front-preview-desc {
    font-size: 12px !important;
  }
}

@media screen and (max-width: 480px) {
  .home .front-recommend-desc {
    font-size: 13px;
    line-height: 1.65;
  }

  .josys-read-first-box {
    margin-top: 24px;
    padding: 16px;
  }

  .josys-read-first-title {
    font-size: 20px;
  }

  .josys-read-first-lead {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .josys-read-first-link {
    padding: 13px 14px;
  }

  .josys-read-first-item-title {
    font-size: 15px;
  }

  .josys-read-first-desc {
    font-size: 12px;
  }
}

/*記事一覧を見るボタン*/
.front-more-posts-section {
  margin: 28px 0 40px;
  text-align: center;
}

.front-more-posts-button {
  display: inline-block;
  min-width: 320px;
  padding: 16px 28px;
  background: #fff;
  color: #1e293b;
  border: 1px solid #dbe4ea;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.front-more-posts-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
  color: #0f172a;
}

@media (max-width: 640px) {
  .front-more-posts-button {
    min-width: 100%;
    padding: 14px 20px;
    font-size: 0.96rem;
  }
}

.top-section-lead {
  margin: -6px 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #5f6b7a;
}

/* 20260515追加 */
/* 実務テーマ別まとめ */
.front-theme-summary-section {
  margin: 34px 0 36px;
  padding: 0 4px;
}

.front-theme-summary-inner {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  padding: 30px 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.front-theme-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #f1f5f9;
}

.front-theme-summary-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.front-theme-summary-title {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.front-theme-summary-desc {
  max-width: 680px;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.9;
}

.front-theme-summary-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #334155;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.front-theme-summary-more:hover {
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
}

.front-theme-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.front-theme-summary-card {
  display: flex;
  flex-direction: column;
  min-height: 165px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
  transition: 0.2s ease;
}

.front-theme-summary-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.front-theme-summary-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.front-theme-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #f1f5f9;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  font-family: Arial, sans-serif;
}

.front-theme-summary-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.front-theme-summary-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.65;
}

.front-theme-summary-card p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

/* タブレット */
@media screen and (max-width: 1023px) {
  .front-theme-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ */
@media screen and (max-width: 767px) {
  .front-theme-summary-section {
    margin: 26px 0 30px;
    padding: 0;
  }

  .front-theme-summary-inner {
    border-radius: 22px;
    padding: 22px 16px;
  }

  .front-theme-summary-head {
    display: block;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .front-theme-summary-title {
    font-size: 21px;
  }

  .front-theme-summary-desc {
    font-size: 14px;
  }

  .front-theme-summary-more {
    margin-top: 16px;
  }

  .front-theme-summary-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .front-theme-summary-card {
    min-height: auto;
    padding: 18px;
    border-radius: 20px;
  }

  .front-theme-summary-card h3 {
    font-size: 15px;
  }

  .front-theme-summary-card p {
    font-size: 13.5px;
  }
}

/* ==================================================
   トップページ以外：独自ヘッダー
   ================================================== */

/* トップページ以外ではCocoon標準ヘッダー・ナビを非表示 */
body:not(.home) #header-container,
body:not(.home) .header-container,
body:not(.home) #header,
body:not(.home) .header,
body:not(.home) #navi,
body:not(.home) .navi {
  display: none !important;
}

/* 独自ヘッダー */
body:not(.home) .josys-sub-header {
  width: 100%;
  background: linear-gradient(135deg, #eef7ff 0%, #f8fbff 60%, #eefcf8 100%);
  border-bottom: 1px solid rgba(203, 213, 225, 0.75);
}

/* 中身 */
body:not(.home) .josys-sub-header-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 左：サイト名 */
body:not(.home) .josys-sub-logo {
  color: #1f2937;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

body:not(.home) .josys-sub-logo span {
  color: #2563eb;
}

/* 右：メニュー */
body:not(.home) .josys-sub-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  flex-wrap: nowrap;
}

body:not(.home) .josys-sub-nav a {
  color: #334155;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

body:not(.home) .josys-sub-nav a:hover {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* モバイル */
@media (max-width: 860px) {
  body:not(.home) .josys-sub-header-inner {
    min-height: auto;
    padding: 18px 0 14px;
    display: block;
    text-align: center;
  }

  body:not(.home) .josys-sub-logo {
    display: inline-block;
    font-size: 24px;
    margin-bottom: 12px;
  }

  body:not(.home) .josys-sub-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  body:not(.home) .josys-sub-nav a {
    font-size: 13px;
  }
}

/* ==================================================
   独自ヘッダー：カテゴリ・便利ツールのドロップダウン
   ================================================== */

body:not(.home) .josys-sub-nav {
  position: relative;
  z-index: 100;
}

body:not(.home) .josys-sub-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body:not(.home) .josys-sub-nav-parent::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #64748b;
  transform: translateY(-1px);
}

body:not(.home) .josys-sub-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  display: none;
  z-index: 9999;
}

body:not(.home) .josys-sub-nav-item:hover .josys-sub-dropdown {
  display: block;
}

body:not(.home) .josys-sub-dropdown a {
  display: block;
  padding: 9px 11px;
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

body:not(.home) .josys-sub-dropdown a:hover {
  background: #eff6ff;
  color: #2563eb;
  text-decoration: none;
}

body:not(.home) .josys-sub-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

body:not(.home) .josys-sub-header,
body:not(.home) .josys-sub-header-inner {
  overflow: visible;
}

/* 独自ヘッダー：メニュー文字サイズを統一 */
body:not(.home) .josys-sub-nav a,
body:not(.home) .josys-sub-nav-parent {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

/* 最新の記事一覧ページ */
.articles-list-section {
  padding: 28px 0 48px;
}

.articles-list-header {
  margin-bottom: 28px;
  padding: 24px 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e6edf3;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.articles-list-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3b82f6;
}

.articles-list-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.35;
}

.articles-list-desc {
  margin: 0;
  color: #52616f;
  line-height: 1.8;
}

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

.articles-list-card {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.articles-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.articles-list-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.articles-list-thumb {
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
}

.articles-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.articles-list-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.articles-list-body {
  padding: 16px 18px 18px;
}

.articles-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #64748b;
}

.articles-list-card-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.55;
}

.articles-list-excerpt {
  margin: 0;
  color: #52616f;
  font-size: 14px;
  line-height: 1.8;
}

.articles-list-pagination {
  margin-top: 34px;
  text-align: center;
}

.articles-list-pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.articles-list-pagination li {
  margin: 0;
}

.articles-list-pagination a,
.articles-list-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe5ee;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
}

.articles-list-pagination .current {
  background: #1e73be;
  border-color: #1e73be;
  color: #fff;
}

.articles-list-empty {
  padding: 24px;
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 14px;
}

@media screen and (max-width: 834px) {
  .articles-list-header {
    padding: 20px;
  }

  .articles-list-title {
    font-size: 24px;
  }

  .articles-list-grid {
    grid-template-columns: 1fr;
  }
}

.articles-page-content {
  margin-top: 0 !important;
  padding-top: 24px !important;
}

.articles-page-content-in {
  padding-top: 0 !important;
}

.articles-page-main {
  margin-top: 0 !important;
  padding-top: 24px !important;
}

.articles-page-main .articles-list-section {
  padding-top: 0 !important;
}

.articles-page-main .articles-list-header {
  margin-top: 0 !important;
  margin-bottom: 28px;
}

/* ==================================================
   /articles/ 最新の記事一覧ページ 背景調整
================================================== */

/* Cocoonの外側白背景を消す */
.page-template-page-articles #content,
.page-template-page-articles #content-in,
.page-template-page-articles #main,
.page-template-page-articles .main {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* メインカラムの白い箱感を消す */
.page-template-page-articles #main.main {
  padding: 0 !important;
}

/* 記事一覧ページ全体の幅と余白 */
.page-template-page-articles .articles-list-section {
  background: transparent !important;
  padding: 32px 0 48px !important;
}

/* 見出しボックスだけ白くする */
.page-template-page-articles .articles-list-header {
  background: #fff !important;
  border: 1px solid #e5edf5 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  margin: 0 0 28px !important;
}

/* 記事カードだけ白くする */
.page-template-page-articles .articles-list-card {
  background: #fff !important;
}

/* /articles/ は1カラム表示にする */
.page-template-page-articles #main,
.page-template-page-articles .main {
  width: 100% !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-template-page-articles #sidebar,
.page-template-page-articles .sidebar {
  display: none !important;
}

/* /articles/ 余白の最終調整 */
.page-template-page-articles #content,
.page-template-page-articles .content {
  margin-top: 0 !important;
  padding-top: 12px !important;
}

.page-template-page-articles #content-in,
.page-template-page-articles .content-in {
  padding-top: 0 !important;
}

.page-template-page-articles #main.main,
.page-template-page-articles .articles-page-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-template-page-articles .articles-list-section {
  padding-top: 12px !important;
  padding-bottom: 48px !important;
}

.page-template-page-articles .articles-list-header {
  padding: 28px 32px !important;
  margin-bottom: 22px !important;
}

/* ==================================================
   /articles/ 横長リスト型デザイン
================================================== */

/* 見出しボックスとリスト全体の幅 */
.page-template-page-articles .articles-list-section {
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 12px 16px 48px !important;
}

/* 既存のグリッドを使わない */
.page-template-page-articles .articles-list-grid {
  display: block !important;
}

/* 大きな白い一覧ボックス */
.page-template-page-articles .articles-list-panel {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(219, 228, 240, 0.9);
}

/* 1記事ごとの行 */
.page-template-page-articles .articles-list-row {
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 行リンク全体 */
.page-template-page-articles .articles-list-row-link {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 22px 28px !important;
}

.page-template-page-articles .articles-list-row:last-child .articles-list-row-link {
  border-bottom: none;
}

.page-template-page-articles .articles-list-row-link:hover {
  background: #f8fbff;
}

/* 左側カテゴリラベル */
.page-template-page-articles .articles-list-row-cat {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-template-page-articles .articles-list-row-cat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-height: 74px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dff5fb 0%, #e2faee 100%);
  color: #0f3f8c;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

/* 中央本文 */
.page-template-page-articles .articles-list-row-body {
  min-width: 0;
}

.page-template-page-articles .articles-list-row-title {
  margin: 0 0 8px !important;
  font-size: 20px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.page-template-page-articles .articles-list-row-desc {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

/* 右端カテゴリタグ */
.page-template-page-articles .articles-list-row-tag {
  display: flex;
  justify-content: flex-end;
}

.page-template-page-articles .articles-list-row-tag span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #f1f4ff;
  color: #1e1b8f;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* 既存カード系の影響を消す */
.page-template-page-articles .articles-list-card,
.page-template-page-articles .articles-list-card-link,
.page-template-page-articles .articles-list-thumb,
.page-template-page-articles .articles-list-body {
  all: unset;
}

/* ページネーションの位置 */
.page-template-page-articles .articles-list-pagination {
  margin-top: 28px !important;
}

@media screen and (max-width: 834px) {
  .page-template-page-articles .articles-list-section {
    padding: 10px 12px 40px !important;
  }

  .page-template-page-articles .articles-list-row-link {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .page-template-page-articles .articles-list-row-cat {
    justify-content: flex-start;
  }

  .page-template-page-articles .articles-list-row-cat-label {
    width: auto;
    min-height: auto;
    padding: 7px 14px;
    border-radius: 999px;
  }

  .page-template-page-articles .articles-list-row-title {
    font-size: 18px !important;
  }

  .page-template-page-articles .articles-list-row-tag {
    justify-content: flex-start;
  }
}

.page-template-page-articles .articles-list-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: 100%;
  margin: 32px auto 48px !important;
}

.page-template-page-articles .articles-list-pagination .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid #dbe5ee !important;
  background: #fff !important;
  color: #334155 !important;
  text-decoration: none !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

.page-template-page-articles .articles-list-pagination .page-numbers.current {
  background: #1e73be !important;
  border-color: #1e73be !important;
  color: #fff !important;
}

.page-template-page-articles .articles-list-pagination .page-numbers:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}

/* /articles/ 投稿日・更新日 */
.page-template-page-articles .articles-list-row-date {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.page-template-page-articles .articles-list-row-date-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.page-template-page-articles .articles-list-row-date-item::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: #93c5fd;
}

@media screen and (max-width: 834px) {
  .page-template-page-articles .articles-list-row-date {
    font-size: 12px;
    gap: 6px 10px;
  }
}

/* /articles/ 記事一覧リンクの下線を消す */
.page-template-page-articles .articles-list-row-link,
.page-template-page-articles .articles-list-row-link:hover,
.page-template-page-articles .articles-list-row-link:visited,
.page-template-page-articles .articles-list-row-link:focus {
  text-decoration: none !important;
}

/* 中のタイトル・本文・日付にも下線が出ないようにする */
.page-template-page-articles .articles-list-row-link *,
.page-template-page-articles .articles-list-row-link *:hover {
  text-decoration: none !important;
}

/* タイトル色を通常表示に固定 */
.page-template-page-articles .articles-list-row-title,
.page-template-page-articles .articles-list-row-title:hover {
  color: #0f172a !important;
  text-decoration: none !important;
}

/* 説明文・日付もリンクっぽい下線を消す */
.page-template-page-articles .articles-list-row-desc,
.page-template-page-articles .articles-list-row-date,
.page-template-page-articles .articles-list-row-date-item {
  color: #64748b !important;
  text-decoration: none !important;
}

/* ===== スマホ：トップページ独自のPCヘッダーを非表示 ===== */
@media screen and (max-width: 834px) {
  .josys-front-pc-header {
    display: none !important;
  }
}

/* ===== スマホ：トップページ以外の独自PCヘッダーを非表示 ===== */
@media screen and (max-width: 834px) {
  .josys-sub-header {
    display: none !important;
  }

  body:not(.home) #content {
    padding-top: 10px !important;
  }
}

