/*****************************************************/
/* 有償サービス切替え案内 */
/*****************************************************/
.trial-notice-bar {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    text-align: center;
    margin: 0;
    margin-top: 40px; /* パンくずリストの上に配置 */
    margin-left: 0px;
    position: relative;
    z-index: 1001;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #e3ebed; /* パンくずリストと同じ境界線 */
}
/* 有償サービス切替え案内が表示される時の#content調整 */
.trial-notice-bar + #content {
    margin-top: 40px; /* 有償サービス切替え案内の直後の#contentのみmargin-topを40pxに */
}

/* 有償サービス切替え案内テキスト */
.trial-notice-bar span {
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

/* 有償サービス切替え案内リンク */
.trial-notice-bar a {
    color: #0056b3;
    text-decoration: underline;
    font-weight: 500;
}
.trial-notice-bar a:hover {
    color: #003d82;
    text-decoration: none;
}

/*****************************************************/
/* メディアクエリ */
/*****************************************************/
/* メディアクエリ: タブレットサイズ (481px - 970px) */
@media (min-width: 481px) and (max-width: 970px) {
    .trial-notice-bar {
        margin-top: 0px; /* パンくずリストの上に配置 */
        margin-left: 43px; /* #contentと同じmargin-left */
        width: calc(100% - 43px); /* サイドバーの幅を引いた幅 */
    }
    /* トライアルメッセージが表示される時の#content調整 */
    .trial-notice-bar + #content {
        margin-top: 40px; /* トライアルメッセージの直後の#contentのみmargin-topを40pxに */
    }
}
/* メディアクエリ: モバイルサイズ (480px以下) */
@media (max-width: 480px) {
    .trial-notice-bar {
        margin-top: -30px; /* パンくずリストの上に配置 */
        margin-left: 0px;
        width: 100%;
        padding: 8px 10px; /* モバイルではパディングを少し調整 */
    }
    .trial-notice-bar span {
        font-size: 13px; /* モバイルではフォントサイズを少し小さく */
        line-height: 1.3;
    }
    /* 有償サービス切替え案内が表示される時の#content調整 */
    .trial-notice-bar + #content {
        margin-top: 0px; /* 有償サービス切替え案内の直後の#contentのみmargin-topを0pxに */
    }
}
