/* =========================
   topicsページ専用CSS
========================= */

/* セクション全体（白背景カード） */
.text-section {
    background-color: rgba(255,255,255,0.7); /* 白半透明 */
    padding: 50px 30px 40px 30px; /* 上:50px（タイトル帯との距離）、左右:30px、下:40px */
    margin: 40px auto;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    text-align: center;
    box-sizing: border-box;
}

/* セクションタイトル帯 */
.section-title {
    display: block;
    width: 100%;
        background: linear-gradient(
        90deg,
        rgba(0, 20, 60, 0.98) 0%,
        rgba(0, 20, 60, 0.85) 40%,
        rgba(0, 20, 60, 0.6) 100%
    );  /* ここが左→右のグラデーション */
    color: #ffffff;
    text-align: center;
    padding: 14px 20px;       /* 上下:14px, 左右:20px */
    font-size: 1.6em;
    font-weight: 600;
    margin: 0 0 30px 0;       /* 上マージン0、下:30px */
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 本文内テキスト */
.text-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.text-inner p {
    margin: 0;
    padding: 28px 0;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    line-height: 1.9;
    color: #444;
    font-size: 0.98rem;
}

.text-inner p:first-of-type {
    border-top: 1px solid rgba(0,0,0,0.12);
}

.text-inner strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.08rem;
    color: #1f3c5a;
    font-weight: 600;
}

.text-inner a {
    display: inline-block;
    margin-top: 12px;
    color: #2d6aa6;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.text-inner a:hover {
    color: #17436b;
    transform: translateX(4px);
}

/* フェード無効化 */
body.fade-background .text-inner {
    opacity: 1;
    transform: none;
}

/* 背景固定 */
body.fade-background {
    background-image: url("../img/background/topics_bg.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 暗幕 */
body.fade-background::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: -1;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .hero {
        height: 45vh;
    }

    .center-logo {
        max-width: 80vw;
    }

    .text-section {
        padding: 40px 20px 30px 20px; /* 上:40px, 左右:20px, 下:30px */
        margin: 24px 16px;
    }

    .section-title {
        font-size: 1.4em;
        padding: 12px 15px;
        margin: 0 0 20px 0;
    }

    .text-inner {
        max-width: 100%;
    }

    .text-inner p {
        padding: 22px 0;
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .text-inner strong {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* hero */
.hero{
position:relative;
height:60vh;
margin:0;
padding:0;
}

/* 中央ロゴ */
.center-logo{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
max-width:60vw;
height:auto;
}