@charset "UTF-8";

.header_nav_title.business::after {
  width: 100%;
}

.crm--header {
  background-color: #fff;
}

/* mv
====================================== */
.kv {
  position: relative;
  margin-top: 100px;
}
.kv_wrap {
  width: calc(100% - 60px);
  max-width: 1600px;
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
}
.kv_title {
  font-family: "EB Garamond", serif;
  font-size: 48px;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #fff;
  text-shadow:
    0px 0px 10px rgba(0, 0, 0, 0.3),
    0px 0px 10px rgba(0, 0, 0, 0.3),
    0px 0px 10px rgba(0, 0, 0, 0.3),
    0px 0px 10px rgba(0, 0, 0, 0.3),
    0px 0px 10px rgba(0, 0, 0, 0.3);
}
.kv_text {
  font-size: 24px;
  letter-spacing: 0.05em;
  margin-top: 10px;
  color: #fff;
  text-shadow:
    0px 0px 10px rgba(0, 0, 0, 0.3),
    0px 0px 10px rgba(0, 0, 0, 0.3),
    0px 0px 10px rgba(0, 0, 0, 0.3),
    0px 0px 10px rgba(0, 0, 0, 0.3),
    0px 0px 10px rgba(0, 0, 0, 0.3);
}

@media only screen and (max-width: 768px) {
  .kv {
    margin-top: 73px;
  }
  .kv_wrap {
    width: calc(100% - 40px);
    top: 40%;
  }
  .kv_title {
    font-family: "EB Garamond", serif;
    font-size: 22px;
  }
  .kv_text {
    font-size: 16px;
    margin-top: 10px;
  }
}

/* contents_area
=========================== */
.contents_area {
  position: relative;
  padding-top: 100px;
  padding-bottom: 100px;
  border-top: 3px solid #213495;
}
.contents_area .inner {
  max-width: 1200px;
}
.contents_head {
  margin-bottom: 100px;
}
.head-border {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 36px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #213495;
}
.head-border:before,
.head-border:after {
  content: "";
  height: 1px;
  flex-grow: 1;
  background-color: #213495;
}
.head-border:before {
  margin-right: 30px;
}
.head-border:after {
  margin-left: 30px;
}
.contents_head_lead {
  margin-top: 20px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

@media only screen and (max-width: 768px) {
  .contents_area {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .contents_head {
    margin-bottom: 40px;
  }
  .head-border {
    font-size: 20px;
  }
  .head-border:before {
    margin-right: 10px;
  }
  .head-border:after {
    margin-left: 10px;
  }
  .contents_head_lead {
    margin-top: 14px;
    font-size: 16px;
  }
}

/* ============================================
     全体レイアウト
  ============================================ */
.blog-wrap {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  color: #333;
  line-height: 1.7;
}

@media only screen and (max-width: 768px) {
  .blog-wrap {
    flex-direction: column;
    gap: 40px;
  }
}

/* ============================================
     メイン（左カラム）
  ============================================ */
.blog-main {
  flex: 1;
  min-width: 0;
}

/* --- 記事リスト --- */
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-item {
  display: flex;
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid #e8e8e8;
}

.blog-item:first-child {
  border-top: 1px solid #e8e8e8;
}

.blog-thumb {
  flex-shrink: 0;
  width: 230px;
  aspect-ratio: 16/11;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.blog-item:hover .blog-thumb img {
  transform: scale(1.04);
}

.blog-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.blog-date {
  font-size: 13px;
  color: #888;
  letter-spacing: 0.03em;
}

/* --- カテゴリーバッジ --- */
.badge {
  display: inline-block;
  box-sizing: border-box;
  font-size: 13px;
  text-align: center;
  padding: 5px 6px;
  min-width: 90px;
  border-radius: 100px;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.badge--president {
  background: #c0504d;
}
.badge--diary {
  background: #604a7b;
}
.badge--column {
  background: #e46c0b;
}
.badge--construction {
  background: #215968;
}
.badge--sales {
  background: #604a7b;
}
.badge--other {
  background: #4bacc6;
}
.badge--staff {
  background: #77933c;
}

.blog-title {
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.5;
  color: #000;
}

.blog-title a {
  color: #222;
  text-decoration: none;
}

.blog-title a:hover {
  color: #c0392b;
  text-decoration: underline;
}

.blog-excerpt {
  font-size: 15px;
  color: #545454;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-more {
  font-size: 12px;
  text-decoration: underline;
  font-weight: bold;
  color: #000;
  transition: 0.4s;
}

.blog-more:hover {
  opacity: 0.7;
}

@media only screen and (max-width: 768px) {
  .blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .blog-item {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }
  .blog-thumb {
    flex-shrink: 0;
    width: 100%;
    margin-inline: auto;
  }
  .badge {
    font-size: 12px;
    padding: 3px 6px;
    min-width: 60px;
  }
  .blog-title {
    font-size: 16px;
  }

  .blog-excerpt {
    font-size: 14px;
  }
}

/* ============================================
     ページネーション
  ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 2px;
  color: #555;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.pagination a:hover {
  background: #f5f5f5;
  border-color: #aaa;
}

.pagination .current {
  background: #213495;
  color: #fff;
  border-color: #213495;
  font-weight: bold;
}

.pagination .arrow {
  font-size: 11px;
  color: #aaa;
  border-color: #ddd;
}

.pagination .arrow:hover {
  color: #555;
  background: #f5f5f5;
}

@media only screen and (max-width: 768px) {
  .pagination {
    margin-top: 30px;
  }
  .pagination a,
  .pagination span {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}

/* ============================================
     サイドバー（右カラム）
  ============================================ */
.blog-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 160px; /* 上部に固定 */
}

.sidebar-block {
  background: #fff;
  border: 1px solid #e2e2e2;
  margin-bottom: 20px;
  padding: 18px 16px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #213495;
  letter-spacing: 0.05em;
}

/* --- 最近の投稿 --- */
.sidebar-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-posts li {
  border-bottom: 1px dotted #ddd;
  padding: 7px 0;
}

.sidebar-posts li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-posts a {
  font-size: 14px;
  color: #444;
  margin-left: 14px;
  text-indent: -14px;
  text-decoration: none;
  line-height: 1.5;
  display: block;
}

.sidebar-posts a::before {
  content: "・";
  color: #213495;
}

.sidebar-posts a:hover {
  color: #213495;
  text-decoration: underline;
}

/* --- アーカイブ --- */
.sidebar-archive {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-archive li {
  border-bottom: 1px dotted #ddd;
  padding: 6px 0;
}

.sidebar-archive li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-archive a {
  font-size: 14px;
  color: #444;
  text-decoration: none;
  display: block;
}

.sidebar-archive a::before {
  content: "・";
  color: #888;
}

.sidebar-archive a:hover {
  color: #213495;
  text-decoration: underline;
}

/* --- カテゴリー --- */
.sidebar-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar-cats li {
  width: calc(50% - 5px);
}
.sidebar-cats a {
  /* display: inline-block; */
  text-decoration: none;
}

.sidebar-cats .badge {
  width: 100%;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.sidebar-cats .badge:hover {
  opacity: 1;
}

@media only screen and (max-width: 768px) {
  .blog-sidebar {
    width: 100%;
    position: static;
  }
  /* --- カテゴリー --- */
  .sidebar-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .sidebar-cats li {
    width: 100%;
  }
}
