/* ===================================
   記事ページ専用CSS（trouble構造活用版）
   既存のCSSに追加してください
   =================================== */

/* レイアウト */
.article-layout {
    display: grid;
    gap: clamp(40px, 6.7708333333vw, 64px);
}

@media screen and (min-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 280px;
        gap: clamp(32px, 5.2083333333vw, 48px);
    }
}

.article-layout__sidebar {
    order: 2;
}

@media screen and (min-width: 1024px) {
    .article-layout__sidebar {
        order: 2;
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
}

.article-layout__main {
    order: 1;
}

@media screen and (min-width: 1024px) {
    .article-layout__main {
        order: 1;
    }
}

.article-fv{
    padding: 0;
}

/* FVスライダー */
.article-fv__item {
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.article-fv__item img {
    width: 100%;
    height: clamp(300px, 46.875vw, 450px);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-fv__item:hover img {
    transform: scale(1.05);
}

.article-fv__item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(20px, 3.125vw, 30px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.article-fv__item-title {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2.34375vw, 24px);
    font-weight: 700;
    text-align: left !important;
    line-height: 1.4;
}

/* trouble__listを記事用に拡張 */
.trouble__item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trouble__item:has(.trouble__item-link) {
    background-color: #fff;
    box-shadow: 2px 4px 4px rgba(51, 51, 51, 0.25);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* margin-top: 0 !; */
    padding-top: 0 !important;
}

.trouble__item:has(.trouble__item-link):hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(51, 51, 51, 0.3);
}

.trouble__item-figure {
    width: 100%;
    /* height: 200px; */
    overflow: hidden;
    margin: 0;
}

.trouble__item-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trouble__item:has(.trouble__item-link):hover .trouble__item-figure img {
    transform: scale(1.05);
}

.trouble__item-content {
    padding: clamp(16px, 2.6041666667vw, 20px);
}

.trouble__item-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #c32440;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 2px;
    margin-bottom: 8px;
}

/* trouble__item-titleを記事用に調整 */
.trouble__item:has(.trouble__item-link) .trouble__item-title {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: clamp(16px, 2.2135416667vw, 18px);
    line-height: 1.5;
    text-align: left;
}

/* trouble__item-descriptionを記事用に調整 */
.trouble__item:has(.trouble__item-link) .trouble__item-description {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trouble__item-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ebebeb;
    font-size: 12px;
    color: #999;
}

/* サイドバーウィジェット */
.article-sidebar-widget {
    padding: clamp(20px, 3.125vw, 24px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.article-sidebar-widget__title {
    margin: 0 0 clamp(16px, 2.34375vw, 20px);
    padding-bottom: 12px;
    border-bottom: 2px solid #c32440;
    color: #003b90;
    font-size: clamp(16px, 2.2135416667vw, 18px);
    font-weight: 700;
}

/* サイドバー記事リスト */
.article-sidebar-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.article-sidebar-item:not(:last-child) {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ebebeb;
}

.article-sidebar-item__link {
    display: grid;
    grid-template-columns: 28px 70px 1fr;
    gap: 10px;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s ease;
    align-items: start;
}

.article-sidebar-item__link:hover {
    opacity: 0.7;
}

.article-sidebar-item__rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #c32440;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
}

.article-sidebar-item__figure {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
}

.article-sidebar-item__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-sidebar-item__content {
    flex: 1;
    min-width: 0;
}

.article-sidebar-item__title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-sidebar-item__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: #999;
}

.article-sidebar-item__views {
    color: #c32440;
    font-weight: 500;
}

/* カテゴリーリスト */
.article-category-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.article-category-list__item:not(:last-child) {
    margin-bottom: 8px;
}

.article-category-list__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.article-category-list__link:hover {
    background-color: #edf6ff;
}

.article-category-list__name {
    font-weight: 500;
    font-size: 14px;
}

.article-category-list__count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background-color: #c32440;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 14px;
}

/* セクション調整 */
.article-new,
.article-category {
    background-color: #fff;
}

.article-category:nth-child(even) {
    background-color: #edf6ff;
}

/* Splideスライダーのカスタマイズ */
#article-slider .splide__arrow {
    width: 48px;
    height: 48px;
    background-color: #c32440;
}

#article-slider .splide__arrow svg {
    fill: #fff;
}

#article-slider .splide__pagination__page {
    background-color: rgba(255, 255, 255, 0.5);
}

#article-slider .splide__pagination__page.is-active {
    background-color: #c32440;
}

/* レスポンシブ調整 */
@media screen and (max-width: 767.9px) {
    .trouble__item-figure {
        /* height: 180px; */
    }
    
    .article-sidebar-item__link {
        grid-template-columns: 24px 60px 1fr;
        gap: 8px;
    }
    
    .article-sidebar-item__rank {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .article-sidebar-item__figure {
        width: 60px;
        height: 60px;
    }
    
    .article-sidebar-item__title {
        font-size: 12px;
    }
}


#article-slider {
    position: relative;
    overflow: visible; /* 矢印が外にはみ出せるように */
}

#article-slider .splide__arrow--prev {
    left: 40px; /* スライダー外に出す */
}

#article-slider .splide__arrow--next {
    right: 40px;
}

#article-slider .splide__arrow {
    width: 48px;
    height: 48px;
    background-color: #c32440;
    border-radius: 50%;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

#article-slider .splide__arrow:hover {
    opacity: 1;
}

#article-slider .splide__arrow svg {
    fill: #fff;
}

/* ============================
   記事スライダー用 9:16比率調整
   ============================ */

/* スライド本体（li.splide__slide）にアスペクト比を設定 */
#article-slider .splide__slide {
    position: relative;
    /* aspect-ratio: 9 / 16; */
    overflow: hidden;
    border-radius: 8px;
    background: #000; /* 画像読み込み中の背景 */
}

/* スライド内のリンク(aタグ)を親要素(li)いっぱいに広げる */
#article-slider .article-fv__item {
    display: block; /* aタグをブロック要素化 */
    position: relative;
    width: 100%;
    height: 100%; /* 親(splide__slide)の高さに合わせる */
    overflow: hidden; /* ホバーエフェクトのため */
        aspect-ratio: 16 / 9;


}

/* 画像を中央トリミングで比率維持 */
#article-slider .article-fv__item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 中央トリミング */
    transition: transform 0.3s ease;
}

#article-slider .article-fv__item:hover img {
    transform: scale(1.05);
}


.article-section {
    padding: 40px 0 !important;
    margin-bottom: 40px !important;
}

.article-section__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC: 3カラム */
  gap: 20px; /* カード間の余白 */
}

.article-section__list .trouble__item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.article-section__list .trouble__item-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  /* height: 100%; */
}

.article-section__list .trouble__item-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-section__list .trouble__item-content {
  padding: 12px 10px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .article-section__list {
    grid-template-columns: repeat(3, 1fr); /* タブレットでも3カラム維持 */
  }
}

@media (max-width: 768px) {
  .article-section__list {
    grid-template-columns: repeat(2, 1fr); /* SP: 2カラム */
  }
}

.background__base{
    background-color: #fff;

}
/* ページネーション */
.pagination {
  text-align: center;
  margin-top: 40px;
  width: 100%;
}

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

.pagination li {
  margin: 0;
}

.pagination li a,
.pagination li span {
  display: block;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
}

.pagination li a:hover {
  background-color: #c32440;
  color: #fff;
  border-color: #c32440;
}

.pagination li .current {
  background-color: #c32440;
  color: #fff;
  font-weight: bold;
  border-color: #c32440;
  cursor: default;
}

/* 前へ・次へボタンのスタイル */
.pagination li .prev,
.pagination li .next {
  font-weight: 500;
}

/* ドット（...）のスタイル */
.pagination li .dots {
  border: none;
  padding: 10px 8px;
  color: #999;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .pagination ul {
    gap: 4px;
  }
  
  .pagination li a,
  .pagination li span {
    padding: 8px 12px;
    min-width: 36px;
    font-size: 14px;
  }
}

/* コンテンツヘッダー - モダンアクセント（縦線なし版） */
.content-header {
    margin-bottom: 40px;
    position: relative;
}

.content-header__title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: left;
    margin: 0;
    position: relative;
    line-height: 1.3;
    letter-spacing: 0.5px;
    padding-bottom: 15px;
}

.content-header__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c32440 0%, rgba(195, 36, 64, 0.2) 100%);
    border-radius: 2px;
}

.content-header__description {
    margin-top: 20px;
    font-size: 15px;
    color: #666;
    line-height: 1.9;
    text-align: left;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .content-header {
        margin-bottom: 30px;
    }

    .content-header__title {
        font-size: 24px;
        letter-spacing: 0.3px;
        padding-bottom: 12px;
    }

    .content-header__title::after {
        width: 60px;
        height: 3px;
    }

    .content-header__description {
        font-size: 14px;
        margin-top: 15px;
    }
}


/* 執筆者・監修者セクション */
.author-supervisor-section {
    margin: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-supervisor-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* 監修者カードの特別なスタイル */
.supervisor-card {
    border-top: 4px solid #c32440;
}

.supervisor-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(195, 36, 64, 0.05) 0%, rgba(195, 36, 64, 0) 70%);
    border-radius: 50%;
}

/* 執筆者カードのスタイル */
.author-card {
    border-top: 4px solid #4a90e2;
}

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.05) 0%, rgba(74, 144, 226, 0) 70%);
    border-radius: 50%;
}

.author-supervisor-card__label {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.supervisor-card .author-supervisor-card__label {
    background: #c32440;
    color: #fff;
}

.author-card .author-supervisor-card__label {
    background: #4a90e2;
    color: #fff;
}

.author-supervisor-card__content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.author-supervisor-card__photo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.author-supervisor-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-supervisor-card__info {
    flex: 1;
}

.author-supervisor-card__name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.author-supervisor-card__title {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.author-supervisor-card__bio {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .author-supervisor-section {
        margin: 40px 0;
        gap: 15px;
    }

    .author-supervisor-card {
        padding: 20px;
    }

    .author-supervisor-card__content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .author-supervisor-card__photo {
        width: 80px;
        height: 80px;
    }

    .author-supervisor-card__name {
        font-size: 18px;
    }

    .author-supervisor-card__title {
        font-size: 13px;
    }

    .author-supervisor-card__bio {
        font-size: 13px;
    }
}

/* 記事ナビゲーション */
.article-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
    padding: 30px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

/* 前へ・次へボタン */
.article-navigation__prev,
.article-navigation__next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #c32440;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #c32440 !important;
    text-decoration: none !important;
    background-color: #fff;
}

.article-navigation__prev:hover,
.article-navigation__next:hover {
    background-color: #c32440 !important;
    color: #fff !important;
    transform: scale(1.1);
}

.article-navigation__prev .icon-arrow {
    transform: rotate(180deg) !important;
    color: inherit;
}

.article-navigation__next .icon-arrow {
    color: inherit;
}

/* 一覧に戻るボタン */
.article-navigation__list-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background-color: #c32440;
    color: #fff !important;
    border: 2px solid #c32440;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.article-navigation__list-back::before {
    content: '←';
    margin-right: 8px;
    font-size: 18px;
}

.article-navigation__list-back:hover {
    background-color: #a01d35;
    border-color: #a01d35;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(195, 36, 64, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .article-navigation {
        gap: 15px;
        margin: 40px 0;
        padding: 20px 0;
    }

    .article-navigation__prev,
    .article-navigation__next {
        width: 45px;
        height: 45px;
    }

    .article-navigation__list-back {
        padding: 12px 30px;
        font-size: 14px;
    }

    .article-navigation__list-back::before {
        font-size: 16px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .article-navigation {
        flex-wrap: wrap;
        gap: 12px;
    }

    .article-navigation__list-back {
        order: -1;
        width: 100%;
    }

    .article-navigation__prev,
    .article-navigation__next {
        width: 40px;
        height: 40px;
        flex: 1;
    }
}

.top_dis{
    text-align: center;
    line-height: 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    padding: 3rem;
    border-radius: 1rem;
        background-image: linear-gradient(-45deg, #B9293E 0%, #003B90 80%);

}

@media (max-width: 480px) {
    .top_dis{
    line-height: 1.7rem;
    font-size: 1rem;
    padding: 1.5rem;
    border-radius: 0.5rem;

}

}


/* =====================================================
   WordPress Single Page Styles
   Main Color: #003B90
   Accent Color: #B42940
   ===================================================== */

/* ===== Base Styles ===== */
.post-content {
  margin: 0 auto;
  padding: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* ===== Typography ===== */
.post-content h1 {
  font-size: 2.5rem;
  color: #003B90;
  margin: 40px 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid #B42940;
  font-weight: 700;
}

.post-content h2 {
  font-size: 2rem;
  color: #003B90;
  margin: 35px 0 15px 0;
  padding-bottom: 10px;
  border-left: 5px solid #B42940;
  padding-left: 15px;
  font-weight: 700;
}

.post-content h3 {
  font-size: 1.5rem;
  color: #003B90;
  margin: 25px 0 12px 0;
  font-weight: 600;
}

.post-content h4 {
  font-size: 1.25rem;
  color: #003B90;
  margin: 20px 0 10px 0;
  font-weight: 600;
}

.post-content h5,
.post-content h6 {
  font-size: 1.1rem;
  color: #003B90;
  margin: 15px 0 8px 0;
  font-weight: 600;
}

.post-content p {
  margin-bottom: 20px;
}

/* ===== List Styles ===== */
.post-content ul,
.post-content ol {
  margin: 20px 0;
  padding-left: 40px;
}

.post-content ul {
  list-style-type: disc;
}

.post-content ul li {
  margin-bottom: 10px;
  color: #333;
}

.post-content ul li:before {
  color: #B42940;
  font-weight: bold;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content ol li {
  margin-bottom: 10px;
  color: #333;
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
  margin: 10px 0 10px 20px;
}

.post-content li {
  line-height: 1.8;
}

/* ===== Links ===== */
.post-content a {
  color: #003B90;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.post-content a:hover {
  color: #B42940;
  border-bottom: 1px solid #B42940;
}

/* ===== Emphasis ===== */
.post-content strong,
.post-content b {
  color: #003B90;
  font-weight: 700;
}

.post-content em,
.post-content i {
  color: #B42940;
}

/* ===== Code ===== */
.post-content code {
  background-color: #f5f5f5;
  color: #003B90;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
}

.post-content pre {
  background-color: #003B90;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 20px 0;
}

.post-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* ===== Blockquote ===== */
.post-content blockquote {
  border-left: 4px solid #B42940;
  padding: 15px 20px;
  margin: 20px 0;
  background-color: #f9f9f9;
  font-style: italic;
  color: #555;
}

/* ===== Images ===== */
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 5px;
}

/* ===== Horizontal Rule ===== */
.post-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #003B90, #B42940, #003B90);
  margin: 40px 0;
}

/* ===== Table ===== */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.post-content table th {
  background-color: #003B90;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 700;
}

.post-content table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.post-content table tr:hover {
  background-color: #f5f5f5;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .post-content {
    padding: 15px;
    font-size: 15px;
  }

  .post-content h1 {
    font-size: 2rem;
    margin: 30px 0 15px 0;
  }

  .post-content h2 {
    font-size: 1.5rem;
    margin: 25px 0 12px 0;
  }

  .post-content h3 {
    font-size: 1.25rem;
    margin: 20px 0 10px 0;
  }

  .post-content h4 {
    font-size: 1.1rem;
  }

  .post-content ul,
  .post-content ol {
    padding-left: 30px;
  }

  .post-content ul ul,
  .post-content ol ol,
  .post-content ul ol,
  .post-content ol ul {
    margin: 8px 0 8px 15px;
  }

  .post-content table {
    font-size: 14px;
  }

  .post-content table th,
  .post-content table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .post-content {
    padding: 10px;
    font-size: 14px;
  }

  .post-content h1 {
    font-size: 1.5rem;
    margin: 20px 0 10px 0;
  }

  .post-content h2 {
    font-size: 1.25rem;
    margin: 15px 0 8px 0;
  }

  .post-content h3 {
    font-size: 1.1rem;
  }

  .post-content ul,
  .post-content ol {
    padding-left: 20px;
  }

  .post-content pre {
    padding: 10px;
    font-size: 12px;
  }

  .post-content blockquote {
    padding: 10px 15px;
  }
}