/* PV公式サイトの本文（ページ本文・お知らせ本文）用。見出しは旧テーマの h3・h4 の見た目を写したもの
   本文の見出しは移行時に 旧h1〜h3→h2、旧h4→h3、旧h5→h4 に変えている */
html { scroll-behavior: smooth; }
/* 帯の余白と行の高さは frame.css（旧の h2 と同じ値）。ここで消すと画像との間にすき間ができる（2026/10/25） */
.key-visual h1 { margin: 0; }

/* 上下の余白は枠（key-visual・l-main）の値だけにする。旧と同じく帯の下から本文まで110px（2026/10/25） */
.pv-body { padding-top: 0; padding-bottom: 0; }
.pv-body > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.pv-body strong, .pv-body b { font-weight: bold; }
.pv-body em, .pv-body i { font-style: italic; }
.pv-body p { margin-bottom: 1.4em; line-height: 2; }

.pv-body h2 {
  position: relative; margin-top: 70px; margin-bottom: 30px; padding: 12.5px;
  text-align: center; line-height: 1.4; font-size: 28px; font-weight: bold; letter-spacing: 0.1em;
}
.pv-body > h2:first-child { margin-top: 0; }
.pv-body h2::before, .pv-body h2::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1px;
  background: linear-gradient(to right, rgba(0, 164, 203, 0), #00A4CB, rgba(0, 164, 203, 0));
}
.pv-body h2::before { top: 0; }
.pv-body h2::after { bottom: 0; }

.pv-body h3 {
  position: relative; margin-top: 50px; margin-bottom: 20px; padding-left: 39px;
  line-height: 1.5; font-size: 24px; font-weight: bold; letter-spacing: 0.1em;
}
.pv-body h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 29px; height: 24px; background: url(/pv/theme/pool_volunteer/media/img/h4.png) no-repeat center/contain;
}
.pv-body h4 { margin-top: 36px; margin-bottom: 12px; font-size: 19px; font-weight: bold; color: #00A4CB; letter-spacing: 0.05em; }
.pv-body h5 { margin-top: 28px; margin-bottom: 8px; font-size: 17px; font-weight: bold; }

.pv-body ul, .pv-body ol { margin-bottom: 1.4em; padding-left: 1.6em; }
.pv-body ul > li { list-style-type: disc; }
.pv-body ol > li { list-style-type: decimal; }
.pv-body li { line-height: 1.8; margin-bottom: 0.4em; }
.pv-body li > ul, .pv-body li > ol { margin-top: 0.4em; margin-bottom: 0; }

.pv-body table { width: 100%; border-collapse: collapse; margin-bottom: 2em; font-size: 15px; }
.pv-body th, .pv-body td { border: 1px solid #d0d0d0; padding: 10px 14px; vertical-align: top; text-align: left; line-height: 1.7; }
.pv-body th { background: #f8f8f8; font-weight: bold; }

.pv-body img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.pv-body figure { margin: 0 auto 2em; text-align: center; }
/* EmDash の画像・埋め込みの部品は自分の CSS で左右の余白を 0 にするので、本文の幅（900px）の中央に戻す（2026/10/25） */
.pv-body > figure.emdash-image, .pv-body > figure.emdash-embed, .pv-body > div.emdash-gallery { margin-left: auto; margin-right: auto; }
/* EmDash の表の外枠は部品の CSS で幅いっぱい（1080px）になるので、本文と同じ幅に戻す（2026/10/25） */
.pv-body > div.emdash-table-wrapper { max-width: 900px; margin-left: auto; margin-right: auto; }
.pv-body figcaption { margin-top: 0.5em; font-size: 14px; color: #666; }
.pv-body iframe { max-width: 100%; }

/* 管理画面の「中央寄せ」など（Block.astro が has-text-align-* を付ける） */
.pv-body .has-text-align-center { text-align: center; }
.pv-body .has-text-align-right { text-align: right; }
.pv-body .has-text-align-justify { text-align: justify; }

/* 本文のボタン：中央寄せの段落にリンクが1つだけのときはボタンにする。色は末尾の「ボタンの色はリンク先で決める」で決まる（2026/10/25 MT） */
.pv-body p.has-text-align-center > a:only-child {
  display: inline-block; min-width: 260px; max-width: 100%; box-sizing: border-box;
  padding: 14px 40px; border-radius: 40px; background: #00A4CB; color: #fff;
  font-weight: bold; letter-spacing: 0.1em; line-height: 1.4; text-decoration: none; transition: opacity 0.2s;
}
.pv-body p.has-text-align-center > a:only-child:hover { opacity: 0.8; }
/* 会員専用入口の3つは、旧サイトの色と形のまま（リンク先で見分ける。2026/10/25 MT決定） */
.pv-body p.has-text-align-center > a:only-child[href*="pv1999.pool-npo.or.jp"],
.pv-body p.has-text-align-center > a:only-child[href*="pvcl.pool-npo.or.jp"],
.pv-body p.has-text-align-center > a:only-child[href*="pvap.pool-npo.or.jp"] {
  width: 300px; min-width: 0; padding: 8px 0; border-radius: 6px; letter-spacing: normal;
}
.pv-body p.has-text-align-center > a:only-child[href*="pv1999.pool-npo.or.jp"] { background: rgb(0, 106, 213); }
.pv-body p.has-text-align-center > a:only-child[href*="pvcl.pool-npo.or.jp"] { background: rgb(0, 170, 95); }
.pv-body p.has-text-align-center > a:only-child[href*="pvap.pool-npo.or.jp"] { background: rgb(255, 0, 255); }

/* トップのお知らせ枠（固定ページ「top-notice」の本文）。1段落目を旧サイトのオレンジの見出しにする */
.top-notice p { margin-bottom: 0.2em; }
.top-notice p:first-child { color: #ff6200; font-size: 20px; font-weight: bold; }
.top-notice strong, .top-notice b { font-weight: bold; }
.top-notice a { text-decoration: underline; }

@media only screen and (max-width: 768px) {
  .top-notice p:first-child { font-size: 17px; }
  .pv-body h2 { margin-top: 50px; margin-bottom: 20px; line-height: 1.8; font-size: 22px; }
  .pv-body h3 { padding-left: 30px; font-size: 18px; }
  .pv-body h3::before { width: 22px; height: 18px; }
  .pv-body h4 { font-size: 17px; }
  .pv-body table { font-size: 14px; }
  .pv-body th, .pv-body td { padding: 8px 10px; }
  .pv-body p.has-text-align-center > a:only-child { width: 100%; min-width: 0; padding: 12px 15px; }
}

/* ヘッダー画像の高さ。旧は 343px／スマホ 300px。2026/10/25 MT：PC 270px・スマホ 200px（PCはトップのスクロールの記号 244px が収まる高さ。最初は2/3の229px） */
.key-visual .key-bg, .key-visual .key-content { height: 270px; }
@media only screen and (max-width: 768px) {
  .key-visual .key-bg, .key-visual .key-content { height: 200px; }
}

/* ボタンの色はリンク先で決める（2026/10/25 MT）：寄附（Syncable）＝緑、お問い合わせ・申込フォーム・送信＝黄、それ以外のページ移動（もどる含む）＝青。
   大阪マラソンのページ内ジャンプは飛び先の中身で決める（#link16 寄附＝緑、#link09 相談＝黄）。会員専用入口の3つは例外で旧の色のまま。
   各ボタンの元の色・ホバーの反転は !important で上書きし、ホバーは薄くするだけにする */
.more-btn,
.toppage-btn,
.button02,
.pv-body .emdash-html-block .button01,
.common-parts .btn-row a,
.pv-body p.has-text-align-center > a:only-child:not([href*="pv1999."]):not([href*="pvcl."]):not([href*="pvap."]),
.ec-form-submit {
  background: #1D84DB !important; border-color: #1D84DB !important; color: #fff !important;
}
.more-btn[href*="/contact/"],
.more-btn[href$="form/"],
.more-btn[href="#link09"],
.toppage-btn[href*="/contact/"],
.toppage-btn[href$="form/"],
.toppage-btn[href="#link09"],
.button02[href*="/contact/"],
.button02[href$="form/"],
.button02[href="#link09"],
.pv-body .emdash-html-block .button01[href*="/contact/"],
.pv-body .emdash-html-block .button01[href$="form/"],
.pv-body .emdash-html-block .button01[href="#link09"],
.common-parts .btn-row a[href*="/contact/"],
.common-parts .btn-row a[href$="form/"],
.common-parts .btn-row a[href="#link09"],
.pv-body p.has-text-align-center > a:only-child:not([href*="pv1999."]):not([href*="pvcl."]):not([href*="pvap."])[href*="/contact/"],
.pv-body p.has-text-align-center > a:only-child:not([href*="pv1999."]):not([href*="pvcl."]):not([href*="pvap."])[href$="form/"],
.pv-body p.has-text-align-center > a:only-child:not([href*="pv1999."]):not([href*="pvcl."]):not([href*="pvap."])[href="#link09"],
.ec-form-submit {
  background: #FFD836 !important; border-color: #FFD836 !important; color: #333 !important;
}
.more-btn[href*="syncable.biz"],
.more-btn[href="#link16"],
.toppage-btn[href*="syncable.biz"],
.toppage-btn[href="#link16"],
.button02[href*="syncable.biz"],
.button02[href="#link16"],
.pv-body .emdash-html-block .button01[href*="syncable.biz"],
.pv-body .emdash-html-block .button01[href="#link16"],
.common-parts .btn-row a[href*="syncable.biz"],
.common-parts .btn-row a[href="#link16"],
.pv-body p.has-text-align-center > a:only-child:not([href*="pv1999."]):not([href*="pvcl."]):not([href*="pvap."])[href*="syncable.biz"],
.pv-body p.has-text-align-center > a:only-child:not([href*="pv1999."]):not([href*="pvcl."]):not([href*="pvap."])[href="#link16"] {
  background: #00AA5F !important; border-color: #00AA5F !important; color: #fff !important;
}
.more-btn:hover,
.toppage-btn:hover,
.button02:hover,
.pv-body .emdash-html-block .button01:hover,
.common-parts .btn-row a:hover,
.pv-body p.has-text-align-center > a:only-child:not([href*="pv1999."]):not([href*="pvcl."]):not([href*="pvap."]):hover,
.ec-form-submit:hover { opacity: 0.8; }
/* 寄附ページの「毎月1,000円」などは li 全体が色で、中のリンクは透明（hover-all）。li を緑にする */
.money-list > li:has(> a[href*="syncable.biz"]) { background: #00AA5F !important; border-color: #00AA5F !important; }
.money-list > li:has(> a[href*="syncable.biz"]), .money-list > li:has(> a[href*="syncable.biz"]) * { color: #fff !important; }
/* 大阪マラソンのヘッダー画像は文字入り（2560×686、文字は上から39〜77%）。中央のままだと270pxで下が切れるので、下寄りを見せる（2026/10/25 MT） */
.key-visual .key-bg[style*="/osakamarathon/"] { background-position: 50% 70%; }
