/* ===== NEWS DETAIL PAGE ===== */

/* パンくずリスト全体の文字色を白にする */
.news-breadcrumb,
.news-breadcrumb a,
.news-breadcrumb span {
    color: #ffffff !important; /* 強制的に白にする */
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

/* 矢印アイコンの間隔を調整 */
.news-breadcrumb span i {
    margin: 0 8px;
    font-size: 0.8rem;
    opacity: 0.7; /* 矢印だけ少し薄くする */
}

/* ホバー時に少し明るくする */
.news-breadcrumb a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* --- Article Hero --- */
.detail-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.detail-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.detail-hero:hover .detail-hero-img {
  transform: scale(1.0);
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 20, 40, 0.2) 0%,
    rgba(5, 20, 40, 0.75) 100%
  );
}

.detail-hero-inner {
  position: relative;
  padding-bottom: 40px;
  width: 100%;
}

.detail-hero-inner .news-breadcrumb {
  margin-bottom: 16px;
}

.detail-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.detail-pickup {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

.detail-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-date {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* タグひとつひとつのスタイル */
.detail-tags a {
    display: inline-block;
    margin-right: 15px; /* タグ同士の間隔 */
    color: #333; /* 文字色 */
    text-decoration: none;
    font-size: 0.9rem;
}

/* 各タグの前に「#」を自動でつける */
.detail-tags a::before {
    content: "#";
    margin-right: 2px;
}

/* ホバー時に色を変える */
.detail-tags a:hover {
    color: #007bff; /* 青色など */
    text-decoration: underline;
}

/* Share buttons (header) */
.detail-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.85;
}
.share-btn:hover { transform: scale(1.15); opacity: 1; }
.share-btn.share-x    { background: #000; }
.share-btn.share-line { background: #06C755; }
.share-btn.share-fb   { background: #1877F2; }

/* --- Body Layout --- */
.detail-body-wrap {
  padding-top: 40px;
  padding-bottom: 60px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* --- Info Box --- */
.detail-info-box {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f4fb 100%);
  border: 1px solid rgba(0,170,221,0.2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 36px;
}

.detail-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.detail-info-table tr {
  border-bottom: 1px solid rgba(0,170,221,0.12);
}
.detail-info-table tr:last-child { border-bottom: none; }

.detail-info-table th {
  width: 130px;
  padding: 10px 12px 10px 0;
  color: var(--primary-dark);
  font-weight: 700;
  vertical-align: top;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-info-table td {
  padding: 10px 0;
  color: var(--dark);
  line-height: 1.6;
  vertical-align: top;
}

/* --- Article Content --- */
.detail-content {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--dark);
  margin-bottom: 36px;
}

.detail-content p {
  margin-bottom: 1.2em;
}

.detail-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  border-left: 4px solid var(--primary);
  padding: 4px 0 4px 14px;
  margin: 32px 0 14px;
}

.detail-content ul {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

.detail-content ul li {
  margin-bottom: 0.6em;
  line-height: 1.7;
}

.detail-content strong {
  color: var(--primary-dark);
}

/* --- Tags --- */
.detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 36px;
}

.detail-tags-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mid);
  margin-right: 4px;
}

/* --- Share Bottom --- */
.detail-share-bottom {
  text-align: center;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 32px;
}

.detail-share-lead {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mid);
  margin-bottom: 14px;
}

.detail-share-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-share-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.detail-share-big:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  color: #fff;
}

.detail-share-big.share-x    { background: #000; }
.detail-share-big.share-line { background: #06C755; }
.detail-share-big.share-fb   { background: #1877F2; }

/* --- Article Nav --- */
.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  border: 2px solid rgba(0,170,221,0.3);
  background: var(--white);
  transition: all 0.22s;
}

.detail-nav-btn:hover:not(.disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,170,221,0.3);
}

.detail-nav-btn.list {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: transparent;
}

.detail-nav-btn.list:hover {
  background: var(--primary-dark);
  color: #fff;
}

.detail-nav-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* --- Sidebar Widgets General --- */
.news-widget {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.news-widget-title {
    background: linear-gradient(135deg, #00aadd 0%, #0077bb 100%);
    color: #fff;
    margin: 0;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-widget-content {
    padding: 15px;
}

/* --- Category List (WordPress specific) --- */
.news-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-cat-list li {
    border-bottom: 1px solid #f0f0f0;
}

.news-cat-list li:last-child {
    border-bottom: none;
}

/* 親のli自体をフレックスボックスにして、中身を横並びにする */
.news-cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

/* リンク自体のパディングは解除して、位置を整える */
.news-cat-list li a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    flex-grow: 1; /* テキスト部分を広げる */
}

.news-cat-list li a:hover {
    color: #00aadd;
}

/* 記事数のカウント部分 (WordPressが自動生成する.children) */
.news-cat-list li .count {
    background: #f0f0f0;
    color: #666;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: var(--font-en);
}

/* --- Pickup List (Related & Sticky) --- */
.news-pickup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-pickup-list li {
    margin-bottom: 15px;
    padding: 16px;
}

.news-pickup-list li:last-child {
    margin-bottom: 0;
}

.news-pickup-list li a {
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.pickup-img {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
}

.pickup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pickup-body time {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 4px;
}

.pickup-body h4 {
    margin: 0;
    font-size: 0.85rem;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 以前からの設定 */
    line-clamp: 2;         /* これを追記して標準プロパティに対応 */
    overflow: hidden;
}

/* リスト全体に少し動きの準備 */
.news-pickup-list li {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; 
}

/* ホバーした時のリスト項目の動き */
.news-pickup-list li:hover {
    background-color: #f9fbfd; /* ほんのり青みがかった背景色 */
    transform: translateY(-3px); /* 3pxだけ上に浮かす */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* 影を少し強くして浮遊感を出す */
}

/* ホバー時の画像の演出 */
.news-pickup-list li:hover .pickup-img img {
    opacity: 0.8; /* 少し明るく（透過）させる */
    transform: scale(1.05); /* 画像を少しだけ大きくする */
}

/* 画像の動きを滑らかにするための設定 */
.pickup-img {
    overflow: hidden; /* 拡大した時にはみ出さないように */
}

.pickup-img img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ホバー時にタイトル色を変える */
.news-pickup-list li:hover h4 {
    color: #00aadd; /* タイトルバーのグラデーションに合わせた色 */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .detail-layout {
    grid-template-columns: 1fr 260px;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .detail-hero { height: 320px; }
  .detail-title { font-size: 1.5rem; }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .news-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .detail-hero { height: 260px; }
  .detail-title { font-size: 1.2rem; }

  .detail-info-table th {
    display: block;
    width: auto;
    padding-bottom: 4px;
  }
  .detail-info-table td {
    display: block;
    padding-top: 0;
    padding-bottom: 10px;
  }

  .detail-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .news-side {
    grid-template-columns: 1fr;
  }
}
