/* ==========================================
   Base Layout & Container
   ========================================== */
.blog-detail-section {
  padding: 40px 0;
  background-color: #f4f4f4;
}

.blog-detail-card {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ==========================================
   Header Area
   ========================================== */
.blog-post-head-area {
  margin-bottom: 60px;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.blog-date {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  color: #888;
}

.blog-category {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: #1a1a1a;
  padding: 4px 15px;
  text-transform: uppercase;
}

.blog-post-title {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
}

/* アイキャッチ画像 */
.blog-eye-catch {
  margin-top: 20px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.blog-eye-catch img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================
   WordPress Content Expressions
   ========================================== */
.entry-content {
  color: #1a1a1a;
}

.entry-content p {
  margin-bottom: 1.6em !important;
  font-size: 1.6rem !important;
  line-height: 2;
}

.entry-content h2 {
  font-size: 2.4rem !important;
  font-weight: 800 !important;
  padding-bottom: 15px;
  border-bottom: 4px solid #1a1a1a;
}

.entry-content h3 {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  margin: 10px 0 30px !important;
  padding-left: 15px;
  border-left: 6px solid #007aff;
}

.entry-content ul, .entry-content ol {
  margin-bottom: 3em !important;
  padding-left: 1.5em !important;
}

.entry-content li {
  font-size: 1.5rem !important;
  margin-bottom: 0.8em !important;
}

.entry-content li:last-child {
  margin-bottom: 0;
}

.wp-block-table {
  overflow-x: auto;
  margin-bottom: 3em;
}

.entry-content table {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 1.4rem !important;
}

.entry-content th, .entry-content td {
  padding: 20px !important;
  border: 1px solid #eee;
}

.entry-content th {
  background: #f8f9fa;
  font-weight: 700;
}

.entry-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.entry-content blockquote {
  margin: 4em 0;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 8px solid #007aff;
}

.entry-content pre {
  background: #2d2d2d;
  color: #ccc;
  padding: 30px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 1.4rem !important;
  line-height: 1.5;
  margin-bottom: 3em;
  }
.fei-lead-box {
  background:#f8fafc;
  border:1px solid #e2e8f0;
  padding:30px;
  border-radius:12px;
  margin-bottom:40px;
}

.fei-point-box {
  border-top:4px solid #10b981;
  background:#ffffff;
  box-shadow:0 10px 15px -3px rgba(0,0,0,0.1);
  padding:25px;
  margin:30px 0;
}

.share-btn {
  display: inline-block; padding: 8px 15px; color: #fff; border-radius: 4px; text-decoration: none; font-size: 14px;
}

.LinkedIn-btn {
  background: #0A66C2;
}
.x-btn {
  background: #000;
}
.fb-btn {
  background: #1877f2;
}
.line-btn {
  background: #06c755;
}
  /* ==========================================
   Post Navigation (Prev/Next)
   ========================================== */
.post-navigation {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.post-nav-link {
  flex: 1;
  text-decoration: none;
  color: #1a1a1a;
  transition: opacity 0.3s;
}

.post-nav-link:hover {
  opacity: 0.7;
}

.nav-next {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 1.4rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: 700;
}

.nav-title {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.4;
}

/* ==========================================
   Recommend Posts Section
   ========================================== */
.recommend-section {
  margin-top: 120px;
}

.recommend-head {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 0.1em;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.recommend-item {
  text-decoration: none;
  color: #1a1a1a;
  display: block;
}

/* 画像サイズ分の幅と高さをキープ (16:9) */
.recommend-thumb-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eee;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.recommend-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recommend-item:hover .recommend-thumb {
  transform: scale(1.05);
}

/* No Image 表示用のスタイル */
.recommend-thumb-wrapper.is-no-image {
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
}

.no-image-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.recommend-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .recommend-grid {
    grid-template-columns: 1fr;
  }
}

/* 一覧へ戻るボタン周り */
.blog-footer-actions {
  margin-top: 100px;
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 60px;
}

.btn-back-list {
  display: inline-block;
  padding: 22px 60px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 10px;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-back-list:hover {
  background: #333;
  transform: translateY(-2px);
}

/* 全体のフォント最小値強制 */
.blog-detail-card * {
  font-size: 1.5rem;
}
h1 { font-size: 3.5rem !important; }
h2 { font-size: 2.4rem !important; }

.blog-views {
  font-size: 1.4rem;
  color: #888;
  margin-left: auto; /* 右端に寄せる場合 */
  font-weight: 500;
}

/* カスタム装飾BOX内の不要余白除去 */
.fei-lead-box p:last-child,
.fei-point-box p:last-child,
.fei-lead-box ul:last-child,
.fei-point-box ul:last-child,
.fei-lead-box ol:last-child,
.fei-point-box ol:last-child,
.entry-content div p:last-child,
.entry-content div ul:last-child,
.entry-content div ol:last-child {
  margin-bottom: 0 !important;
}

/* =========================
   吹き出し
========================= */

.fei-talk{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin:32px 0;
}

.fei-talk.right{
  flex-direction:row-reverse;
}

/* =========================
   アイコン画像
========================= */

.fei-talk-icon{
  width:96px !important;
  height:96px !important;

  min-width:96px;
  max-width:96px;

  border-radius:100%;
  object-fit:cover;

  display:block;
  flex-shrink:0;

  border:3px solid #fff;
  box-shadow:0 4px 14px rgba(0,0,0,0.08);
}

/* imgタグ全体に効きすぎてるCSS対策 */
.fei-talk img{
  width:96px !important;
  height:96px !important;
  max-width:none !important;
}

/* =========================
   吹き出し本体
========================= */

.fei-talk-balloon{
  position:relative;
  background:#fff;
  border-radius:18px;
  padding:18px 20px;
  line-height:1.9;
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
  border:1px solid #e5e7eb;
  max-width:720px;
}

.fei-talk-balloon::before{
  content:"";
  position:absolute;
  top:22px;
  left:-10px;

  border-width:10px 12px 10px 0;
  border-style:solid;
  border-color:transparent #fff transparent transparent;
}

.fei-talk.right .fei-talk-balloon::before{
  left:auto;
  right:-10px;

  border-width:10px 0 10px 12px;
  border-color:transparent transparent transparent #fff;
}

/* =========================
   色違い
========================= */

.fei-talk.success .fei-talk-balloon{
  background:#f0fdf4;
  border-color:#86efac;
}
.fei-talk.success .fei-talk-balloon::before{
  border-color:transparent #f0fdf4 transparent transparent;
}
.fei-talk.success.right .fei-talk-balloon::before{
  border-color:transparent transparent transparent #f0fdf4;
}

.fei-talk.danger .fei-talk-balloon{
  background:#fff7ed;
  border-color:#fdba74;
}
.fei-talk.danger .fei-talk-balloon::before{
  border-color:transparent #fff7ed transparent transparent;
}
.fei-talk.danger.right .fei-talk-balloon::before{
  border-color:transparent transparent transparent #fff7ed;
}

/* =========================
   SP
========================= */

@media(max-width:768px){

  .fei-talk{
    gap:10px;
  }

  .fei-talk-icon,
  .fei-talk img{
    width:54px !important;
    height:54px !important;
    min-width:54px;
    max-width:54px;
  }

  .fei-talk-balloon{
    padding:14px 16px;
    font-size:14px;
    line-height:1.8;
  }

}