/*================================================
  ブログ詳細ページ専用CSS
================================================*/

/*---------- 記事タイトル ----------*/
.page_title_section {
    padding: 60px 0 40px;
    background: #FFFCF2;
}

.page_main_title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.article_title_section {
    padding: 40px 0 0;
    margin-bottom: 30px;  
}

.article_meta {
    border-bottom: solid 2px #FFD93D;
}

/*---------- 記事本文 ----------*/
.article_content_section {
    padding: 0 0 80px;
    background: #fff;
}
.article_body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.article_text {
    width: 100%;
}

.blog-slider-wrap{
    width: 50%;
    max-width: 500px;
}

.blogSwiperMain{
  width: 100%;
  margin-bottom: 14px;
}

.blogSwiperMain .swiper-slide img{
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: contain;
}

.blog-slider-wrap + .article_text {
    max-width: calc(100% - 500px);
    width: 50%;
    padding-left: 10px;    
}

.blogSwiperThumbs{
  width: 100%;
}

.blogSwiperThumbs .swiper-slide{
  opacity: .5;
  cursor: pointer;
}

.blogSwiperThumbs .swiper-slide-thumb-active{
  opacity: 1;
}

.blogSwiperThumbs img{
  width: 100%;
  height: auto;
  display: block;
}

.swiper-button-next:after, .swiper-button-prev:after {
  color: #FFD93D;
}

/*---------- カテゴリー別関連記事 ----------*/
.blog_related_section {
    background-color: #FFFCF2;
}

.blog_category_block {
    margin-bottom: 60px;
}

.blog_category_block:last-child {
    margin-bottom: 0;
}

.blog_category_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.blog_category_name {
    font-size: 2.4rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.blog_view_all {
    font-size: 1.4rem;
    color: #FFD93D;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.blog_view_all:hover {
    opacity: 0.7;
}

.blog_category_posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog_category_post {
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 25px;
}

.blog_category_post:last-child {
    border-bottom: none;
}

.blog_category_link {
    display: flex;
    gap: 20px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.blog_category_link:hover {
    opacity: 0.7;
}

.blog_category_date {
    flex: 0 0 60px;
    font-size: 1.4rem;
    color: #999;
    padding-top: 3px;
}

.blog_category_content {
    flex: 1;
}

.blog_category_title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.blog_category_excerpt {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.8;
}

.blog_category_title{
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/*---------- レスポンシブ対応 ----------*/
@media screen and (max-width: 768px) {
    .page_title_section {
        padding: 40px 0 30px;
    }

    .page_main_title {
        font-size: 2.4rem;
    }

    .article_body {
        display: block;
    }

    .blog-slider-wrap {
        width: 100%;
        margin: 0 auto;
    }

    .article_text,
    .blog-slider-wrap + .article_text {
        max-width: initial;
        width: 100%;
        padding: 20px 0 0;
    }

    .blog_related_section {
        padding: 60px 0;
    }

    .blog_category_block {
        margin-bottom: 50px;
    }

    .blog_category_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .blog_category_name {
        font-size: 2rem;
    }

    .blog_view_all {
        font-size: 1.3rem;
    }

    .blog_category_posts {
        gap: 20px;
    }

    .blog_category_post {
        padding-bottom: 20px;
    }

    .blog_category_link {
        flex-direction: column;
        gap: 10px;
    }

    .blog_category_date {
        flex: none;
    }

    .blog_category_title {
        font-size: 1.5rem;
    }

    .blog_category_excerpt {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .page_title_section {
        padding: 30px 0 20px;
    }

    .page_main_title {
        font-size: 2rem;
    }

    .blog_related_section {
        padding: 40px 0;
    }

    .blog_category_block {
        margin-bottom: 40px;
    }

    .blog_category_name {
        font-size: 1.8rem;
    }

    .blog_view_all {
        font-size: 1.2rem;
    }

    .blog_category_posts {
        gap: 15px;
    }

    .blog_category_post {
        padding-bottom: 15px;
    }

    .blog_category_date {
        font-size: 1.3rem;
    }

    .blog_category_title {
        font-size: 1.4rem;
    }

    .blog_category_excerpt {
        font-size: 1.2rem;
    }
}
