@charset "UTF-8";
/* =========================================================
   WordPress 用の足し（assets-wp/wp.css）
   ・どのページでも最後に読む（kyotaku.css → sub.css → ページの CSS → このファイル）
   ・新しい見た目は作らない。変数・線・色は kyotaku.css のものを使う
   ・書くこと: 管理バーと固定ヘッダー／投稿・固定ページの本文（.siawase-entry の中だけ）／ページ送り／
     .screen-reader-text／見出し部の添え書きが無いページの余白／送信中のボタン
   ========================================================= */

/* ---------------------------------------------------------
   管理バー（ログイン中）が出ているとき、固定ヘッダーとスマホメニューが隠れないように
   --------------------------------------------------------- */
body.admin-bar .hd,
body.admin-bar .spmenu{ top:32px; }
@media screen and (max-width:782px){
  body.admin-bar .hd,
  body.admin-bar .spmenu{ top:46px; }
}

/* ---------------------------------------------------------
   読み上げ用の文字（WordPress が出す .screen-reader-text。見た目は .sr-only と同じ）
   --------------------------------------------------------- */
.screen-reader-text{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0;
  word-wrap:normal !important;
}
.screen-reader-text:focus{
  clip:auto !important; clip-path:none;
  width:auto; height:auto; margin:0; padding:10px 18px;
  left:12px; top:12px; z-index:600;
  background:var(--ink); color:var(--paper);
  border-radius:10px; text-decoration:none; white-space:normal;
}

/* ---------------------------------------------------------
   見出し部に添え書き（.sub-head__kicker）が無いページ（page.php・404.php・index.php）
   パンくずと題のあいだを、添え書きがあるページと同じくらい空ける
   --------------------------------------------------------- */
.siawase-page .sub-crumb + .sub-head__title,
.siawase-404 .sub-crumb + .sub-head__title{ margin-top:34px; }
@media (min-width:768px){
  .siawase-page .sub-crumb + .sub-head__title,
  .siawase-404 .sub-crumb + .sub-head__title{ margin-top:54px; }
}
@media (min-width:1024px){
  .siawase-page .sub-crumb + .sub-head__title,
  .siawase-404 .sub-crumb + .sub-head__title{ margin-top:70px; }
}

/* ---------------------------------------------------------
   投稿・固定ページの本文（the_content を入れる入れ物 .siawase-entry の中だけ）
   ・記事は便箋（.nws-lines）の中。段落の間・行の高さは罫線（--rule）にそろえる
   ・固定ページは .sub-prose（.doc-policy の見出し・リンクの体裁）の中
   ・古い投稿のブロック（段落・画像・見出し・リスト・figure）や Snow Monkey Blocks が崩れない程度に
   --------------------------------------------------------- */
.siawase-entry{ overflow-wrap:anywhere; }
.siawase-entry::after{ content:""; display:table; clear:both; } /* 回り込みの画像を入れ物の中に収める */
.siawase-entry > :first-child{ margin-top:0; }
.siawase-entry > * + *{ margin-top:1.3em; }
.nws-lines.siawase-entry > * + *{ margin-top:var(--rule); }

/* 見出し（h1〜h3 の書体・余白0 は kyotaku.css。固定ページの h2・h3 は .doc-policy の体裁をそのまま使う）
   h4〜h6 は下の余白だけ消す（上の余白は > * + * で付く） */
.siawase-entry h4,
.siawase-entry h5,
.siawase-entry h6{ margin-bottom:0; font-size:1em; font-weight:700; line-height:inherit; letter-spacing:.06em; }
/* 記事（便箋）の見出しは罫線の高さにそろえ、前に2行ぶん空ける */
.nws-lines.siawase-entry h2{ font-size:1.25em; }
.nws-lines.siawase-entry h3{ font-size:1.12em; }
.nws-lines.siawase-entry :is(h1, h2, h3, h4, h5, h6){ line-height:var(--rule); }
.nws-lines.siawase-entry > * + :is(h1, h2, h3, h4){ margin-top:calc(var(--rule) * 2); }

/* 画像・埋め込み */
.siawase-entry img{ max-width:100%; height:auto; }
.siawase-entry :is(iframe, video, embed, object){ max-width:100%; }
.siawase-entry figure{ max-width:100%; }
.siawase-entry .wp-caption{ max-width:100%; } /* 旧エディタのキャプションは width が style で付く */
.siawase-entry :is(figcaption, .wp-caption-text, .wp-element-caption){
  margin-top:8px;
  font-size:14px;
  line-height:1.8;
  letter-spacing:.04em;
  color:var(--ink-sub);
}
.siawase-entry .aligncenter{ margin-inline:auto; }
.siawase-entry img.aligncenter{ display:block; }
@media (min-width:768px){
  .siawase-entry .alignleft{ float:left; max-width:50%; margin:.4em 1.5em 1em 0; }
  .siawase-entry .alignright{ float:right; max-width:50%; margin:.4em 0 1em 1.5em; }
}

/* リスト（kyotaku.css で padding を 0 にしているので戻す） */
.siawase-entry ul,
.siawase-entry ol{ padding-left:1.5em; }
.siawase-entry ul{ list-style:disc; }
.siawase-entry ol{ list-style:decimal; }
.siawase-entry li > :is(ul, ol){ margin-top:0; }

/* リンク（ボタン・.tlink 以外） */
.siawase-entry a:not([class]){
  color:var(--peach-text);
  text-decoration:underline;
  text-decoration-color:var(--peach);
  text-underline-offset:4px;
}
.siawase-entry a:not([class]):hover{ text-decoration-thickness:2px; }

/* 引用・区切り線・表 */
.siawase-entry blockquote{
  margin-inline:0;
  padding-left:16px;
  border-left:3px solid var(--peach-pale);
}
.siawase-entry hr{ border:0; border-top:1px solid rgba(107,82,68,.18); }
.siawase-entry table{ width:100%; border-collapse:collapse; line-height:1.8; }
.siawase-entry :is(th, td){ padding:8px 10px; border:1px solid rgba(107,82,68,.18); text-align:left; vertical-align:top; }

/* 旧テーマ時代の記事（Snow Monkey Blocks のセクション）: セクションの余白と、題を外して空になった見出し枠で冒頭が空かないように */
.siawase-entry .smb-section{ padding-block:0; }
.siawase-entry .smb-section__header:empty{ display:none; }
.siawase-entry .smb-section .c-container{ max-width:none; padding-inline:0; }
.siawase-entry .smb-section :is(.smb-section__contents-wrapper, .smb-section__body){ margin-block:0; padding-block:0; }
.siawase-entry .smb-section__body > :first-child{ margin-top:0; }
/* 同じく旧記事の囲み（スタッフ紹介のカード）: 便箋の罫線が中を通らないよう紙で覆い、行間はふつうに */
.nws-lines.siawase-entry .smb-box{ background:var(--paper-light); line-height:1.9; }
.nws-lines.siawase-entry .smb-box .smb-box__body > * + *{ margin-top:.9em; }

/* ---------------------------------------------------------
   ページ送り（the_posts_pagination。前後の記事 .nws-pager__link と同じ紙の札で、控えめに）
   --------------------------------------------------------- */
.navigation.pagination{ max-width:880px; margin-top:40px; }
.pagination .nav-links{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:44px; min-height:44px;
  padding:0 12px;
  background:var(--paper-light);
  border:1px solid rgba(107,82,68,.2);
  border-radius:3px;
  font-weight:500;
  line-height:1;
  letter-spacing:.04em;
  text-decoration:none;
  transition:border-color .4s, color .4s;
}
.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible{ border-color:var(--peach); color:var(--peach-text); }
.pagination .page-numbers.current{ border-color:var(--line-soft); font-weight:700; }
.pagination .page-numbers.dots{ min-width:auto; padding:0 4px; background:none; border:0; }
@media (min-width:1024px){
  .navigation.pagination{ margin-top:56px; }
}

/* ---------------------------------------------------------
   お問い合わせ: 送信中のボタン（押せないことが分かるように）
   --------------------------------------------------------- */
.cnt-submit:disabled{ cursor:progress; opacity:.7; }
