@charset "utf-8";
/* ==========================================================================
   個別テンプレート（page-facility.php / page-textbook.php / category.php など）を
   新デザインに合わせるための上書きCSS。

   これらのテンプレートは本文マークアップが旧 style.css 前提のまま。
   1本ずつ書き換えるとページ固有の記述まで壊すおそれがあるため、
   共通スケルトンとよく使う部品だけをここで上から整える方針にしている。

   読み込み順： style.css → header-footer.css → legacy.css
   （style.css の後に読むことで、同じ詳細度なら後勝ちで上書きされる）
   ========================================================================== */

:root {
  --wf-brand: #FBC600;
  --wf-brand-hi: #FFD83A;
  --wf-brand-dark: #C99700;
  --wf-page-bg: #fffbef;
  --wf-text: #1d1d1b;
  --wf-text-mute: #6b6b66;
  --wf-accent-soft: #fff5cc;
  --wf-card-border: #efe6c5;
  --wf-radius: 10px;
}

/* --- 共通スケルトン ---------------------------------------------------- */
.page-content {
  background: var(--wf-page-bg);
  color: var(--wf-text);
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* 旧 body の text-align:justify / font-size:17px を打ち消す */
  text-align: left;
  font-size: 16px;
  line-height: 1.9;
}

/* 固定1024pxはSPで横スクロールの原因になるため可変にする。
   左右の余白は .page-content 側に持たせ、内側の最大幅を 1200px にすることで
   ヘッダー・フッター・トップページと基準線を揃えている。 */
.page-content { padding-left: 40px; padding-right: 40px; }
.page-content-in {
  width: auto;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

/* 見出し帯：薄黄色のベタ塗りをやめ、白地＋黄色下線（新デザインの見出し）へ */
.page-content-headline {
  background: #fff;
  border-bottom: 1px solid var(--wf-card-border);
  padding: 48px 0 0;
}
.page-content-headline.no-bg { background: #fff; padding: 48px 0 0; }
.page-content-headline h2 {
  margin: 0;
  padding: 0 0 10px;
  display: inline-block;
  position: relative;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
}
.page-content-headline h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 4px;
  background: var(--wf-brand);
  border-radius: 2px;
}

/* パンくず：区切り文字が無く単語が続いて見えるので「／」を挟む */
/* 中央寄せコンテナの内側なので、白背景を付けると帯が途中で切れて浮いて見える。
   背景は付けず、白の見出し帯の下にそのまま置く。 */
.page-content-bread {
  padding: 16px 0 0;
  font-size: 12px;
  color: var(--wf-text-mute);
  background: transparent;
  overflow-x: auto;
  white-space: nowrap;
}
.page-content-bread a { color: var(--wf-text-mute); }
.page-content-bread a:hover { color: var(--wf-text); border-bottom: none; text-decoration: underline; }
/* 区切り文字は Breadcrumb NavXT が出力するものをそのまま使う。
   CSSで擬似要素を足すと二重に出てしまうため、ここでは追加しない。 */

.page-content-text { padding: 40px 0 80px; }
/* search.php は .page-content-text を持たず .search-list が直下に来るため、
   同じ余白をこちらにも当てる（無いと見出し帯に本文が張り付く） */
.search-list { padding: 40px 0 80px; }
.search-list ul { margin: 0; padding: 0; list-style: none; }
.search-list li { border-bottom: 1px solid var(--wf-card-border); }
.search-list li a {
  display: block;
  padding: 16px 4px;
  color: var(--wf-text);
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s;
}
.search-list li a:hover { background: var(--wf-accent-soft); color: var(--wf-brand-dark); }

/* 本文中の見出し */
.page-content-text h2 {
  margin: 2.4em 0 1em;
  padding: 12px 18px;
  background: var(--wf-accent-soft);
  border-left: 6px solid var(--wf-brand);
  border-radius: 0 var(--wf-radius) var(--wf-radius) 0;
  color: var(--wf-text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
}
.page-content-text > h2:first-child { margin-top: 0; }
.page-content-text h3 {
  margin: 2.2em 0 .9em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wf-card-border);
  font-size: 19px;
  font-weight: 800;
}
.page-content-text a { color: var(--wf-brand-dark); }

.headline {
  margin: 2.2em 0 .9em;
  padding-left: 14px;
  border-left: 4px solid var(--wf-brand);
  font-size: 18px;
  font-weight: 800;
}
.headline-sub { color: var(--wf-text-mute); font-size: 14px; }

.page-text { padding-left: 0; padding-right: 0; line-height: 1.9; }

/* --- 表 --------------------------------------------------------------- */
.page-content-text table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
  margin-bottom: 1.6em;
}
.page-content-text th,
.page-content-text td {
  padding: 12px 14px;
  border: 1px solid var(--wf-card-border);
  text-align: left;
  vertical-align: top;
}
.page-content-text th { background: var(--wf-accent-soft); font-weight: 800; }

/* --- ファイル／リンクのボタン ------------------------------------------
   旧 style.css には page-link / page-link-2 / page-link-wide /
   textbook-link / textbooksystem-link と5種類あり、それぞれ枠線や背景が
   微妙に違っていた。同じ役割のボタンなので見た目を1つに揃える。 */
.textbook-link a,
.textbooksystem-link a,
.page-link a,
.page-link-2 a,
.page-link-wide a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 64px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--wf-card-border);
  border-radius: var(--wf-radius);
  color: var(--wf-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transition: all .2s;
}
.textbook-link a:hover,
.textbooksystem-link a:hover,
.page-link a:hover,
.page-link-2 a:hover,
.page-link-wide a:hover {
  border-color: var(--wf-brand);
  background: var(--wf-accent-soft);
}

/* ボタンは通常時もホバー時も下線を出さない。
   page.css の `.toprp-content a:hover { text-decoration: underline }` と
   詳細度が並ぶため、.toprp を足して確実に打ち消している。 */
.toprp .textbook-link a,
.toprp .textbooksystem-link a,
.toprp .page-link a,
.toprp .page-link-2 a,
.toprp .page-link-wide a,
.toprp .textbook-link a:hover,
.toprp .textbooksystem-link a:hover,
.toprp .page-link a:hover,
.toprp .page-link-2 a:hover,
.toprp .page-link-wide a:hover {
  text-decoration: none;
}

/* --- 記事一覧（category / archive / search） ---------------------------- */
.post-list,
.search-list { background: transparent; }
.article-list a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--wf-card-border);
  color: var(--wf-text);
  transition: transform .2s;
}
.article-list a:hover { background: var(--wf-accent-soft); }
.article-list .list-date,
.article-list .list-cate { display: block; }
.article-list .list-date {
  font-size: 13px;
  font-weight: 800;
  color: var(--wf-brand-dark);
  letter-spacing: .05em;
}
.article-list .list-title {
  display: block;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

/* --- アーカイブの説明文・記事なしの表示 -------------------------------- */
.archive-lead {
  margin: 0 0 24px;
  color: var(--wf-text-mute);
  font-size: 15px;
  line-height: 1.9;
}
.no-post {
  margin: 0;
  padding: 32px 0;
  color: var(--wf-text-mute);
  font-size: 15px;
}

/* --- お問い合わせフォーム（Contact Form 7） -----------------------------
   旧 style.css は幅800px固定・ラベル列に薄黄色の地・角ばった必須バッジ、
   という組み方だった。本文幅1200pxに対して左に寄って見えるため、
   新デザインに合わせて組み直す。 */
.welfare-contact-form { width: auto; padding: 8px 0 0; }
.welfare-contact-form ul,
.welfare-contact-form li { list-style: none; margin: 0; padding: 0; }

/* 1行＝ラベル + 入力。ラベル幅を固定して縦のラインを揃える */
.welfare-contact-form li {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--wf-card-border);
  margin: 0;
}
.welfare-contact-form li:first-child { border-top: 1px solid var(--wf-card-border); }

/* ラベル：地色をやめ、バッジを絶対配置から通常の並びに戻す */
.welfare-contact-form-item {
  background: transparent;
  width: auto;
  padding: 10px 0 0;
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* page.css の `.toprp-content p { margin: 0 0 1.6em }` と詳細度が並ぶため、
   .toprp を足して確実に打ち消す（余白が残るとバッジが縦に膨らむ）。 */
.toprp .welfare-contact-form-item p { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.5; }

.welfare-contact-form-desc { width: auto; margin: 0; padding: 0; }
.toprp .welfare-contact-form-desc p { margin: 0; }

/* 必須／任意バッジ */
.form-badge {
  position: static;
  display: inline-block;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.toprp .form-badge p { margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; }
.b-hissu { background: #c8372c; color: #fff; }
.b-nini  { background: #fff; color: var(--wf-text-mute); border: 1px solid var(--wf-card-border); }

/* 入力欄 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--wf-card-border);
  border-radius: var(--wf-radius);
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--wf-text);
}
.wpcf7 textarea { min-height: 180px; resize: vertical; }
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  outline: 2px solid var(--wf-brand);
  outline-offset: 1px;
  border-color: var(--wf-brand);
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: #b3aea1; }

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  display: block;
  margin: 32px auto 0;
  width: auto;
  min-width: 280px;
  padding: 16px 40px;
  background: var(--wf-brand);
  color: var(--wf-text);
  border: none;
  border-radius: 999px;
  box-shadow: none;
  text-shadow: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s;
}
.wpcf7 input[type="submit"]:hover { background: var(--wf-brand-hi); box-shadow: none; }
.wpcf7 input[type="submit"]:disabled { opacity: .5; cursor: default; }

/* 入力エラー・送信結果の表示 */
.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #c8372c;
  font-size: 13px;
  font-weight: 700;
}
.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid { border-color: #c8372c; }
.wpcf7 .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: var(--wf-radius);
  border: 1px solid var(--wf-card-border);
  background: #fff;
  font-size: 14px;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { border-color: #c8372c; color: #c8372c; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--wf-brand); background: var(--wf-accent-soft); }

/* 電話番号 */
.contact-tel { margin-bottom: 14px; }
.contact-tel a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 800;
  color: var(--wf-text);
  letter-spacing: .02em;
  line-height: 1.3;
}
.contact-tel .dashicons {
  font-size: 26px;
  width: 26px;
  height: 26px;
  color: var(--wf-brand-dark);
}
.page-text-box { margin: 0; }

/* --- ページャー -------------------------------------------------------- */
.pagination { margin-top: 40px; }
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--wf-card-border);
  border-radius: 999px;
  color: var(--wf-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}
.pagination .page-numbers:hover { border-color: var(--wf-brand); background: var(--wf-accent-soft); }
.pagination .page-numbers.current {
  background: var(--wf-brand);
  border-color: var(--wf-brand);
  color: var(--wf-text);
}

/* --- 画像 -------------------------------------------------------------- */
.page-content-text img { max-width: 100%; height: auto; }

/* ==========================================================================
   SP（新デザインと同じ 760px で切り替え）
   ========================================================================== */
@media screen and (max-width: 759px) {
  .page-content { font-size: 15px; }
  .page-content { padding-left: 16px; padding-right: 16px; }
  .page-content-headline { padding: 28px 0 0; }
  .page-content-headline h2 { font-size: 22px; }
  .page-content-bread { font-size: 11px; padding-top: 12px; }
  .page-content-text { padding: 28px 0 48px; }
  .search-list { padding: 28px 0 48px; }
  .page-content-text h2 { font-size: 18px; padding: 10px 14px; }
  .page-content-text h3 { font-size: 16px; }

  /* 旧グリッドは固定％で横並びのままSPに出るため、1〜2列に落とす */
  .col-flex { flex-wrap: wrap; }
  .col-flex > .col-3,
  .col-flex > .col-33 { width: calc(50% - 8px); margin: 0 4px 12px; padding: 0; }
  .col-flex > .col-5,
  .col-flex > .col-10,
  .col-flex > .col-12,
  .col-flex > .page-link,
  .col-flex > .page-link-2,
  .col-flex > .page-link-wide { width: 100%; padding: 0; margin-bottom: 12px; }

  .page-content-text table { font-size: 14px; }
  .page-content-text th,
  .page-content-text td { padding: 10px 12px; }

  .article-list a { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }

  /* フォームは1カラムに積む */
  .welfare-contact-form li { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .welfare-contact-form-item { padding: 0; }
  .wpcf7 input[type="submit"] { width: 100%; min-width: 0; padding: 15px 20px; }
  .contact-tel a { font-size: 24px; }
  .contact-tel .dashicons { font-size: 22px; width: 22px; height: 22px; }
  .article-list .list-title { font-size: 14px; }
}
