@charset "UTF-8";

/* ベース設定 */
/* style.cssが先に読み込まれているため、競合しないよう固有クラスで指定します */

/* --- ページ全体のラッパー（ここだけに背景色を適用） --- */
.pr-page-wrapper {
    /* JIHS本来の青グラデーション (style.cssの.format-colorより引用) */
    background: linear-gradient(0deg, #cae1f6 40%, #e4f0fb 68%, #fcfdff 90%);
    
    padding: 40px 20px 80px; /* 上下の余白 */
    display: flex;
    justify-content: center;
    min-height: 60vh; /* コンテンツが少なくても背景がある程度表示されるように */
}

/* --- 記事カード（白背景部分） --- */
.pr-content-card {
    background-color: #ffffff;
    
    /* 横幅を広げました（960px → 1100px） */
    max-width: 1100px; 
    
    width: 100%;
    padding: 40px 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    box-sizing: border-box; /* paddingを含めた幅計算にする */
}

/* --- タイトルエリア --- */
.format-heading {
    margin-bottom: 20px;
}

.format-heading h1 {
    font-size: 3.0rem;
    font-weight: 700;
    color: #003366;
    line-height: 1.3;
    padding-left: 15px;
    border-left: 8px solid #003366;
    margin: 0;
}

/* --- 本文エリア（format-textarea）の調整 --- */
.format-textarea {
    font-size: 1.8rem;
    color: #333;
    font-family: 'Zen Kaku Gothic Antique', sans-serif; /* フォント指定を確実にする */
}

/* --- 余白の極小化設定 --- */
.format-textarea h2 {
    font-size: 2.4rem;
    color: #003366;
    padding-bottom: 5px;
    border-bottom: 2px solid #003366;
    margin-top: 10px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.format-textarea h3 {
    font-size: 2.0rem;
    color: #003366;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.format-textarea h3::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #003366;
    margin-right: 10px;
    flex-shrink: 0;
}

/* <br>タグによる余白拡大を防ぐためマージンを0に */
.format-textarea p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.8;
}

.format-textarea ul {
    margin-top: 5px;
    margin-bottom: 10px;
    padding-left: 20px;
}

.format-textarea li {
    margin-bottom: 5px;
    list-style-type: disc;
}

/* 右寄せの組織名部分 */
.format-textarea p[align="right"] {
    margin-bottom: 10px;
    font-size: 1.6rem;
}

/* --- リンクの修正（青字＋下線） --- */
.format-textarea a {
    color: #0056b3 !important;
    text-decoration: underline !important;
    font-weight: 700;
}

.format-textarea a:hover {
    color: #003366 !important;
    text-decoration: none !important;
}

/* 画像 */
.format-textarea img {
    margin: 10px auto !important;
    border: 1px solid #ddd;
    max-width: 100%;
    display: block; /* 中央寄せを確実にするため */
}

/* 図のキャプション */
.format-textarea p[style*="text-align: center"] {
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #666;
}

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
    .pr-content-card { padding: 30px 20px; }
    .format-heading h1 { font-size: 2.2rem; }
    .format-textarea { font-size: 1.6rem; }
}