/*
Theme Name: FeelCalm
Theme URI: https://sr.feel-calm.com/
Description: FeelCalm（フィールカーム）社会保険労務士事務所と、フィールカーム障害年金相談所（/shogai-nenkin/）のテーマ。デモの静的サイト（demo/feelcalm, demo/feelcalm-nenkin）から _theme.py で書き出したもの。直接編集しないこと。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: feelcalm
*/

/* 意匠の本体は assets/style.css（本体）と assets/nenkin/style.css（障害年金）。
   どちらも静的サイトと同じもの。ここには WordPress で表示するときだけ必要な調整を置く。
   色はすべてトークン経由なので、両区画で同じ記述のまま差し色が変わる。 */

/* ログイン中の管理バーの下にヘッダを付ける */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---- お問い合わせ（Contact Form 7）。デモのフォームと同じ見た目にする ---- */
.contact-form { margin-top: 20px; }
.wpcf7 form { display: grid; gap: 22px; }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7 form label { display: grid; gap: 8px; font-size: 14px; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%; box-sizing: border-box;
  padding: 13px; border: 1px solid var(--line); border-radius: 3px;
  font-family: inherit; font-size: 15px; background: var(--card); color: var(--ink);
}
.wpcf7 textarea { line-height: 1.9; resize: vertical; height: auto; }
/* 障害年金の区画は本文が一段大きい（17.5px）。フォームもデモに合わせて一段上げる */
.fc-nenkin .contact-form { margin-top: 22px; }
.fc-nenkin .wpcf7 form label { font-size: 15px; }
.fc-nenkin .wpcf7 input[type="text"],
.fc-nenkin .wpcf7 input[type="email"],
.fc-nenkin .wpcf7 input[type="tel"],
.fc-nenkin .wpcf7 textarea { padding: 14px; font-size: 16.5px; }

.wpcf7 .wpcf7-submit { border: none; cursor: pointer; font-family: inherit; }
.wpcf7 .wpcf7-submit:disabled { opacity: .6; cursor: default; }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
.wpcf7 .wpcf7-not-valid-tip {
  color: var(--accent-dp); font-weight: 600; font-size: .92em; margin-top: 6px;
}
.wpcf7 .wpcf7-not-valid { border-color: var(--accent-dp); }
.wpcf7 form .wpcf7-response-output {
  margin: 0; padding: 14px 16px;
  border: 0; border-left: 3px solid var(--accent);
  background: var(--card); color: var(--ink);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  border-left-color: var(--accent-dp); font-weight: 600;
}
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }
.form-msg {
  margin: 0; padding: 14px 16px;
  border-left: 3px solid var(--accent-dp); background: var(--card); font-weight: 600;
}

/* ---- コラム一覧のページ送り ---- */
.col-pager { margin-top: 24px; }
.col-pager .nav-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14.5px; }
.col-pager .page-numbers.current { color: var(--accent); }
.col-pager .screen-reader-text { position: absolute; left: -9999px; }

/* ---- 記事本文（ブロックエディタの出力） ---- */
.article img { height: auto; }
.article figure { margin: 1.6em 0; }
.article figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
