@charset "utf-8";

/**
 * News Single Page Style
 * ------------------------------------------------------------
 */

/* --- Background Area / 背景エリア --- */
.news_single_bg  {
    background-color: #F3F8FB;
    background-image: 
        linear-gradient(to right, var(--grid_40_line_blue) 0.1rem, transparent 1px), 
        linear-gradient(to bottom, var(--grid_40_line_blue) 0.1rem, transparent 1px);
    background-size: var(--grid_40_size) var(--grid_40_size);
    background-position: 0 0;
    
    padding-top: 16rem; 
}

/* --- 下部エリア（バナー・パンくず） --- */
.news_bottom_area {
    padding-top: 12.5rem;
}

/* --- White Container / 白コンテナ --- */
.news_single_white_box {
    background-color: #FFF;
    border-radius: 40px;
    max-width: 1440px;
    margin: 0 auto;
    /* #4A4A4A 10% (B10) のドロップシャドウ */
    box-shadow: 0 0 10px rgba(74, 74, 74, 0.1); 
    
    /* 上8rem、左右下12rem (1440px幅から左右120px引くことで、コンテンツ幅が実質1200pxになります) */
    padding: 8rem 12rem 11.5rem;
}

/* --- Header / 記事見出し周り --- */
.news_single_meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.news_single_date {
    font-size: 1.6rem;
    font-family: "Noto Sans CJK JP", sans-serif;
    font-weight: 500;
}

.news_single_cat {
    font-size: 1.4rem;
    padding: 0px 3.2rem;
    border: 1px solid #3583C6;
    color: #3583C6;
    border-radius: 8px;
    font-family: "Saira", sans-serif;
    line-height: 2;
}

.news_single_title {
    font-size: 3.2rem;
    font-weight: bold;
    line-height: 1.5;
    padding-bottom:4rem;
    margin-bottom: 4rem;
        border-bottom: 1px dashed #D6E4F5;

}

/* --- Eye Catch / アイキャッチ (1200/800想定) --- */
.news_single_eyecatch {
    margin-bottom: 8rem;
    aspect-ratio: 1200 / 800;
    overflow: hidden;
    border-radius: 20px;
}

.news_single_eyecatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Post Content / 本文エリアのスタイリング --- */
.post_content {
    line-height: 2;
    font-size: 1.6rem;
    color: #4A4A4A;
}

/* 全般的な要素の間隔（4rem） */
.post_content > * + * {
    margin-top: 4rem;
}

/* 見出しの装飾（8rem余白 + 共通コンポーネント c_ttl-5 準拠） */
.post_content h2 {
    font-size: 2.4rem;
    font-weight: bold;
    padding-left: 1.4rem;
    position: relative;
    margin-top: 8rem;
    line-height: 1.5;
}

.post_content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0.4rem;
    height: 100%;
    background-color: #3583C6;
    border-radius: 2px;
}

.post_content h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #EDEDED;
}

/* Link Style / テキストリンク */
.post_content a {
    color: #3583C6;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

/* Emphasis / 強調（ボールド + 背景色） */
.post_content strong, 
.post_content b {
    font-weight: bold;
    background-color: #F3F8FB;
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

/* --- Footer / 戻るボタン --- */
/* --- Footer / 戻るボタン --- */
.news_single_footer {
    margin-top: 12rem;
    padding-top: 8rem;
    border-top: 1px dashed #D6E4F5;
}

.news_back_btn_wrap {
    display: flex;
    justify-content: center;
}

.news_back_btn {
    display: inline-flex;
    align-items: center;
    justify-content: left;
    min-width: 28rem;
    height: 6rem;
    border: 1px solid #3583C6;
    border-radius: 8px;
    color: #3583C6;
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
    gap: 2.4rem;
    padding: 1.6rem 2.4rem;
    position: relative; /* ::beforeの基準点 */
    z-index: 0;         /* 背景を後ろに回すため */
}

.news_back_btn .c_btn_arrow_sep {
    margin-right: 1.6rem;
}

/* c_btn_arrow と全く同じ手法（-0.4rem外側に配置し、0.97倍から1倍へ拡大） */
.news_back_btn::before {
    content: "";
    position: absolute;
    inset: -0.4rem;
    background-color: #3583C6;
    border-radius: 1.2rem; /* 8px + 4px */
    transform: scale(0.97);
    opacity: 0; /* 最初は透明（元の白抜きデザインを維持するため） */
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: -1;
}

.news_back_btn_arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* ============================================================
  HOVER EFFECT (PC Only)
============================================================ */
@media (hover: hover) and (pointer: fine) {
    /* ホバー時に 1倍 に拡大しながら表示 */
    .news_back_btn:hover::before {
        transform: scale(1);
        opacity: 1;
    }

    /* テキスト色を白に変更し、枠線を消す */
    .news_back_btn:hover {
        color: #FFF;
        border-color: transparent;
    }

    /* 矢印を動かす（維持） */
    .news_back_btn:hover .news_back_btn_arrow {
        transform: translateX(-4px);
    }

    /* SVGアイコンの色を白に（維持） */
    .news_back_btn:hover .news_back_btn_arrow svg path,
    .news_back_btn:hover .news_back_btn_arrow svg line {
        stroke: #FFF; 
        transition: stroke 0.3s ease;
    }
}

/* ============================================================
  RESPONSIVE OPTIMIZATION
============================================================ */
@media (max-width: 1279px) {
    .news_single_white_box {
        /* PCより少し狭い画面では左右のpaddingを減らす */
        padding: 6rem 6rem 8rem;
    }
}

@media (max-width: 1024px) {
    .max_container_1800 {
        padding:  0 4rem;
    }
    .news_single_bg {
        padding-top:10rem;
        padding-bottom: 8rem;
    }
    .news_single_white_box {
        border-radius: 32px;
        padding: 4rem 4rem 6rem;
    }
    .post_content > * + * {
        margin-top: 3.2rem;
    }
    .news_single_title {
        font-size: 2.6rem;
    }
    .post_content h2 {
        font-size: 2rem;
        margin-top: 6rem;
    }
     .post_content h3 {
        font-size: 1.8rem;
        margin-top: 4rem;
    }
    .news_bottom_area {
        padding-top: 6rem;
    }
    .news_single_footer {
        margin-top: 6rem;
        padding-top: 6rem;
    }
    .breadcrumb {
        padding-bottom: 6rem;
    }
}

@media (max-width: 767px) {
    .max_container_1800 {
        padding: 0 1.5rem;
    }
    .news_single_bg {
        padding-top: 8rem;
        padding-bottom: 6rem;
    }
    
    .news_single_white_box {
        padding: 4rem 2rem 5rem;
        border-radius: 20px;
    }
    .news_single_meta {
        margin-bottom: 1.2rem;
    }

    .news_single_title {
        font-size: 2.2rem;
        padding-bottom: 3rem;
        margin-bottom: 3rem;
        
    }
    
    .news_single_eyecatch {
        margin-bottom: 4rem;
        border-radius: 12px;
    }
    
    .post_content h2 {
        font-size: 1.8rem;
        margin-top: 4rem;
    }
    
    .post_content > * + * {
        margin-top: 2.4rem;
    }
    .post_content {
        p , a {
            font-size: 1.4rem;
        }
    }
     .post_content h3 {
        font-size: 1.6rem;
        margin-top: 3rem;
    }
    
    .news_single_footer {
        margin-top: 4rem;
        padding-top: 4rem;
    }
    
    .news_back_btn {
        width: 100%;
        min-width: 0;
    }
    .news_bottom_area {
        padding-top: 4rem;
    }
}