/* PV京都：旧サイト（WordPress・TCD skin_tcd046）の見た目に合わせる。寸法は旧のテーマ、色は旧のテーマ設定（#145BFF）に揃えた（2026/11/8） */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-y: scroll; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, sans-serif; color: #666; font-size: 14px; line-height: 1; background: #fff; }
h1, h2, h3, h4, h5, h6, p, ul, ol { margin: 0; padding: 0; }
a { color: #666; text-decoration: none; transition: color .2s, background-color .2s; }
a:hover { color: #145BFF; text-decoration: underline; }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ヘッダー */
#header { width: 100%; border-top: 7px solid rgba(20, 91, 255, .8); background: #fff; position: relative; }
.header_inner { width: 89.84375%; max-width: 1150px; min-height: 120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
#header_logo .logo { margin: 0; font-size: 24px; font-weight: 700; }
#header_logo a { color: #666; text-decoration: none; }
#header_logo img { display: block; max-height: 80px; width: auto; }
#global_menu { margin: 0 -28px 0 0; }
#global_menu ul { list-style: none; display: flex; }
#global_menu a { display: block; font-size: 14px; height: 120px; line-height: 120px; padding: 0 28px; color: #666; text-decoration: none; }
#global_menu a:hover { color: #145BFF; }
.menu_button { display: none; }

/* 中身の枠 */
#header_slider { width: 89.84375%; max-width: 1150px; margin: 0 auto; }
#header_slider img { display: block; width: 100%; height: auto; }
#main_col { width: 89.84375%; max-width: 1150px; margin: 10px auto 100px; }
.home #main_col { margin-top: 0; margin-bottom: 70px; }

/* トップ：入口の画像（3つ横並び） */
#index_content1 { margin: 20px 0 60px; display: flex; justify-content: space-between; }
#index_content1 .box { width: 32.17%; overflow: hidden; position: relative; }
#index_content1.columns-2 .box { width: 49.13%; }
#index_content1 .image { display: block; overflow: hidden; }
#index_content1 .image img { display: block; width: 100%; height: auto; transition: transform .35s; backface-visibility: hidden; }
#index_content1 a.image:hover img { transform: scale(1.2); }

/* トップ：中央寄せの見出しと文 */
#index_content2 { margin: 50px 0 55px; text-align: center; }
#index_content2 h2 { margin: 0 0 16px; font-size: 38px; font-weight: 400; line-height: 1.4; color: #FF3617; font-family: "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif; }
#index_content2 p { font-size: 20px; line-height: 2.2; margin: 0 0 2.2em; }

/* パンくず */
#bread_crumb { margin: 0 0 10px; height: 60px; line-height: 60px; overflow: hidden; }
#bread_crumb ol { width: 89.84375%; max-width: 1150px; margin: 0 auto; list-style: none; }
#bread_crumb li { display: inline; font-size: 14px; }
#bread_crumb li + li::before { content: "›"; color: #666; padding: 0 .5em 0 1em; }
#bread_crumb a { color: #145BFF; }

/* 固定ページの本文 */
#article { margin: 0 0 56px; }
.post_content { font-size: 14px; display: flow-root; } /* 旧の clearfix と同じく、最後の余白を枠の中に収める */
.post_content p { line-height: 2.4; margin: 0 0 2em; word-wrap: break-word; }
.post_content a { color: #42FFEC; }
.post_content h1, .post_content h2, .post_content h3, .post_content h4, .post_content h5, .post_content h6 { clear: both; line-height: 1.2; font-weight: 400; margin: 0 0 10px; padding: 10px 0 0; }
.post_content h1 { font-size: 150%; }
.post_content h2 { font-size: 140%; }
.post_content h3 { font-size: 130%; padding-top: 20px; }
.post_content h4 { font-size: 120%; }
.post_content ul { list-style: circle outside; margin: 0 0 24px 1.3em; }
.post_content ol { list-style: decimal outside; margin: 0 0 24px 1.5em; }
.post_content li { line-height: 2.2; }
.post_content table { margin: 0 0 24px; border-collapse: collapse; }
.post_content td, .post_content th { border: 1px solid #bbb; padding: 10px 15px; line-height: 2.2; }
.post_content th { background: #ddd; font-weight: normal; }

/* 画像＋文の段組みがあるページ（旧のページビルダー。client・volunteer）。値は旧の表示値（11/8） */
.post_content:has(.pb_row) h2 { clear: both; margin: 0 0 60px; padding: 0; font-size: 20px; line-height: 1.2; color: #333; text-align: center; font-weight: 400; }
.post_content:has(.pb_row) h2:has(+ .emdash-table-wrapper) { margin-bottom: 30px; }
.post_content:has(.pb_row) h3 { margin: 66px 0 60px; padding: 20px 0 0; font-size: 22px; line-height: 1.6; font-weight: 600; text-align: center; }
.post_content:has(.pb_row) h4 { font-size: 20px; line-height: 1.6; font-weight: 600; padding: 10px 0 0; margin: 46px 0 20px; }
#article .post_content:has(.pb_row) .emdash-table-wrapper { margin-bottom: 116px; } /* 旧は表の後に空の段落があった分も空く */
.pb_row { display: flex; margin: 0 -15px 60px; }
.pb_image, .pb_text { width: 50%; padding: 0 15px; }
.pb_image { text-align: center; }
.pb_image img { display: inline-block; width: 300px; max-width: 100%; height: auto; }
.page-client { max-width: 800px; }
.page-client .pb_image img { width: 225px; height: 225px; object-fit: cover; border-radius: 50%; }
.pb_text ul { margin: 0 0 24px 1.3em; }
.pb_text ul:last-child, .pb_text p:last-child { margin-bottom: 0; }
.q_button_wrap { margin: 0; padding: 28px 0 60px; text-align: center; line-height: 1; } /* 余白を padding にして前後の margin と重ならないようにする */
.post_content a.q_button { display: inline-block; width: 350px; max-width: 100%; padding: 12px 23px 11px; font-size: 15.4px; line-height: 1; color: #fff; background: #535353; text-decoration: none; }
.page-client a.q_button { border-radius: 6px; }
.post_content a.q_button:hover { background: #145BFF; color: #fff; }
/* 表（EmDash の表ブロック。旧と同じ枠線と余白にし、縞模様と太字の見出し色は付けない） */
#article .emdash-table-wrapper { margin: 0 0 24px; }
#article .emdash-table { font-size: 14px; }
#article .emdash-table td, #article .emdash-table th { border: 1px solid #bbb; padding: 10px 15px; line-height: 2.2; vertical-align: baseline; }
#article .emdash-table tr, #article .emdash-table tr:hover { background: none; }
#article .emdash-table td:first-child { width: 17.8%; }
#article .emdash-table th { background: #ddd; font-weight: 400; text-align: center; } /* 見出し欄（団体概要の左列）。旧と同じ灰色・中央寄せ */
/* 団体概要（旧は見出しが中央寄せ、見出しと表の下が60px） */
.page-organization .post_content h3 { margin-bottom: 60px; text-align: center; }
#article.page-organization .emdash-table-wrapper { margin: 0 0 60px; }
#article.page-organization .emdash-table { margin: 0; }
#article.page-organization .emdash-table p { line-height: 2.2; }
#article.page-organization .emdash-table-wrapper ~ .emdash-table-wrapper th { width: 182px; } /* 2つ目以降の表の見出し欄は旧も182px指定（1つ目は指定なし） */

/* フォーム（@emdash-cms/plugin-forms の .ec-form。旧の Contact Form 7 の表示値に合わせる 11/8） */
.page-oubo, .page-kaiinoubo { max-width: 800px; } /* 応募の2つは旧も幅800px。お問い合わせは全幅 */
.ec-form { margin: 0 0 35px; padding: 21px; border: 1px solid #ddd; background: #fafafa; font-size: 12px; color: #666; }
.ec-form-page { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.ec-form-field { display: block; margin: 0 0 12px; }
.ec-form-field[hidden] { display: none; }
.ec-form-field:has(.ec-form-help):has(+ .ec-form-field .ec-form-help) { margin-bottom: 0; } /* 補足の付いた欄が続くとき（面談候補日時1〜3）は、旧と同じく間を空けない */
.ec-form-nav { margin: 18px 0 25px; } /* 旧の送信ボタンの前後の空き */
.ec-form-label { display: block; font-size: 12px; line-height: 2.4; font-weight: 400; }
.ec-form-required { font-size: 0; } /* 旧と同じく、項目名の後ろに「※必須」と書く */
.ec-form-required::after { content: "※必須"; margin-left: .3em; font-size: 12px; }
.page-inquiry .ec-form-required { display: none; }
.ec-form-field:has(input[name="zip"]) .ec-form-label::after { content: "〒"; display: block; } /* 旧は郵便番号の欄の前に「〒」の行がある */ /* 旧のお問い合わせは「※必須」を書いていない */
.ec-form .ec-form-input { display: block; width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 0; background: #fff; font: inherit; font-size: 12px; line-height: 1.2; color: #000; }
.ec-form select.ec-form-input { display: inline-block; width: auto; font-size: 14px; }
.ec-form textarea.ec-form-input { height: 300px; resize: vertical; }
.ec-form-field:has(textarea) { padding-bottom: 11px; } /* 旧は複数行の欄の下が11px広い（margin だと欄の余白と重なって消える） */
.ec-form-help { display: block; font-size: 12px; line-height: 2.4; }
.ec-form-error { display: block; font-size: 12px; line-height: 2; color: #dc3232; }
.ec-form-error:empty { display: none; }
.ec-form-checkbox-label { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; line-height: 2.4; cursor: pointer; }
.ec-form-submit { width: 225px; height: 48px; padding: 8px; border: 0; border-radius: 0; background: #333; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.ec-form-submit:disabled { opacity: .5; cursor: not-allowed; }
.ec-form-status { margin: 12px 0 0; padding: 4px 8px; border: 2px solid #46b450; line-height: 2; white-space: pre-line; } /* 送信後のメッセージ。Contact Form 7 の既定と同じ緑の枠、失敗は赤の枠（旧の送信後の表示は未確認） */
.ec-form-status:empty { display: none; }
.ec-form-status--error { border-color: #dc3232; }
/* 確認画面（FormJa.astro が「送信」の後に入力内容の表を出す。旧には無く、11/8 MT の依頼で足した） */
.ec-form.pv-confirming .ec-form-page { display: none; }
.pv-confirm-lead { margin: 0 0 12px; font-size: 12px; line-height: 2.4; }
.ec-form .pv-confirm-list { width: 100%; margin: 0; border-collapse: collapse; table-layout: fixed; }
.ec-form .pv-confirm-list th, .ec-form .pv-confirm-list td { padding: 8px 12px; border: 1px solid #ccc; font-size: 12px; line-height: 2; text-align: left; vertical-align: top; }
.ec-form .pv-confirm-list th { width: 35%; background: #eee; font-weight: 400; }
.ec-form .pv-confirm-list td { background: #fff; color: #000; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-confirm-back { width: 225px; height: 48px; margin-right: 12px; padding: 8px; border: 1px solid #333; border-radius: 0; background: #fff; color: #333; font: inherit; font-size: 14px; cursor: pointer; }

/* フッター */
#footer_widget { width: 100%; background: rgba(20, 91, 255, .15); }
#footer_widget .footer_inner { width: 89.84375%; max-width: 1050px; margin: 0 auto; padding: 60px 0 8px; font-size: 0; text-align: center; }
.footer_widget { display: inline-block; vertical-align: top; font-size: 12px; line-height: 1.6; text-align: left; width: 150px; margin: 0 10px 38.4px 0; }
.footer_widget ul { list-style: none; }
.footer_widget li { margin: 0 0 10px; }
.footer_widget a:hover { color: #145BFF; text-decoration: none; }
#footer_top { display: none; background: #145BFF; color: #fff; } /* 旧も法人名の帯は非表示（表示値で確認 11/8） */
#footer_top .footer_inner { width: 89.84375%; max-width: 1150px; margin: 0 auto; padding: 30px 0 10px; text-align: center; }
#footer_top a { color: #fff; }
#footer_logo { margin: 0 0 15px; }
#footer_logo .logo { display: inline-block; font-size: 24px; margin: 0; }
#footer_bottom { background: #145BFF; }
#copyright { padding: 16px 10px; font-size: 12px; line-height: 1.5; color: #fff; text-align: center; }
#copyright a { color: #fff; }
#return_top { display: none; position: fixed; bottom: 0; right: 0; z-index: 990; }
#return_top.show { display: block; }
#return_top a { display: block; width: 50px; height: 50px; line-height: 50px; text-align: center; font-size: 16px; color: #fff; background: rgba(0, 0, 0, .3); text-decoration: none; }

/* 幅991px以下（旧と同じ区切り） */
@media (max-width: 991px) {
	#header { border-top: 0; }
	.header_inner { width: auto; height: 60px; min-height: 60px; padding: 0 22px; }
	#header_logo img { max-height: 50px; }
	.menu_button { display: block; position: absolute; top: 0; right: 0; width: 60px; height: 60px; border: 0; background: none; font-size: 20px; color: #000; cursor: pointer; }
	.menu_button.active { background: rgba(20, 91, 255, .8); color: #fff; }
	#global_menu { display: none; position: absolute; top: 60px; left: 0; width: 100%; margin: 0; z-index: 9; background: #145BFF; box-shadow: 1px 2px 1.5px rgba(0, 0, 0, .1); }
	#global_menu.open { display: block; }
	#global_menu ul { display: block; }
	#global_menu li { border-bottom: 1px solid rgba(255, 255, 255, .5); }
	#global_menu li:last-child { border-bottom: 0; }
	#global_menu a { height: 50px; line-height: 50px; padding: 0 14px; font-size: 13px; color: #fff; }
	#global_menu a:hover { color: #fff; }
	#header_slider { width: 100%; }
	#main_col { width: auto; padding: 0 22px; margin-bottom: 50px; }
	#bread_crumb { margin: 10px 0 15px; height: auto; line-height: 1.6; }
	#bread_crumb ol { width: auto; padding: 0 22px; }
	#bread_crumb li { font-size: 11px; }
	#footer_top .footer_inner { width: 100%; }
	#footer_widget .footer_inner { width: auto; padding: 30px 22px 1px; text-align: left; }
	.footer_widget { width: 23%; margin: 0 0 30px 2%; }
	#copyright { padding: 15px 10px; font-size: 10px; }
	#copyright .cr { display: none; }
	#return_top a { width: 45px; height: 45px; line-height: 45px; font-size: 14px; }
}

/* 幅767px以下 */
@media (max-width: 767px) {
	#main_col, .home #main_col { margin-bottom: 0; }
	#index_content1 { margin: 30px 0; display: block; }
	#index_content1 .box, #index_content1.columns-2 .box { width: 100%; margin-bottom: 20px; }
	#index_content2 { margin: 30px 0; }
	#index_content2 h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.5; }
	#index_content2 p { font-size: 14px; line-height: 2; margin: 0 0 2.2em; }
	#article { margin: 0 0 30px; }
	.post_content p { line-height: 2; }
	.footer_widget { width: 49%; margin: 0 0 30px 1%; }
	.pb_row { display: block; margin: 0 0 30px; }
	.pb_image, .pb_text { width: 100%; padding: 0; }
	.pb_image { margin-bottom: 30px; }
	.post_content:has(.pb_row) h2 { margin-bottom: 30px; }
	.q_button_wrap { padding: 20px 0 40px; }
	#article .post_content:has(.pb_row) .emdash-table-wrapper { margin-bottom: 60px; }
	#article.page-organization .emdash-table-wrapper { margin-bottom: 28px; } /* 旧は表を横スクロールにし、折り返さない */
	.page-organization .emdash-table th, .page-organization .emdash-table td { white-space: nowrap; }
	.ec-form.pv-confirming .ec-form-submit, .pv-confirm-back { display: block; width: 100%; margin: 0 0 8px; } /* 確認画面の2つのボタンは縦に並べる */
	.ec-form .pv-confirm-list th { width: 40%; }
}
