/*
Theme Name: とまり木（賢威8 子テーマ）
Template: keni80_wp_standard_all_201907091658
Description: 心理カウンセリング とまり木 リニューアル用の子テーマ。賢威8.0のデザインを残したまま、SEO・予約導線・フォームを改善。
Version: 1.0.0
Text Domain: keni
*/

/* =========================================================
   基本の色（既存サイトの深緑・生成りを踏襲）
   ========================================================= */
:root {
  --tmk-green: #02603a;
  --tmk-green-dark: #014a2c;
  --tmk-green-light: #e8f1ec;
  --tmk-cream: #faf6ec;
  --tmk-cream-dark: #f1e9d6;
  --tmk-line: #dcd6c8;
  --tmk-accent: #d9822b;
  --tmk-text-sub: #6b6b6b;
  --tmk-radius: 6px;
  --tmk-mincho: "Sawarabi Mincho", "Yu Mincho", "游明朝", serif;
}

/* ---------- ヘッダーの電話番号 ---------- */
.header_tel .telnumber a { color: inherit; text-decoration: none; }

/* ---------- メインビジュアルの見出し（h2→h1 に変更したため見た目を維持） ---------- */
.keni-mv_wrap .catch-area h1 {
  font-family: var(--tmk-mincho);
  font-weight: normal;
  font-size: 2em;
  margin: 0;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}
.keni-mv_wrap .catch-area .tmk-mv-sub {
  display: block;
  font-size: 15px;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ---------- 本文の強調：下線の多用をマーカーに ---------- */
.article-body .marker,
.article-body strong.marker { background: linear-gradient(transparent 62%, #f6e7b9 62%); font-weight: 600; }

/* チェックリスト（ul class="tmk-check"） */
.article-body ul.tmk-check { list-style: none; margin: 0 0 1.5em; padding: 18px 22px; background: var(--tmk-green-light); border-radius: var(--tmk-radius); }
.article-body ul.tmk-check li { position: relative; padding: 6px 0 6px 30px; border-bottom: 1px dashed rgba(2,96,58,.2); list-style: none; }
.article-body ul.tmk-check li:last-child { border-bottom: 0; }
.article-body ul.tmk-check li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 13px; height: 7px; border-left: 3px solid var(--tmk-green); border-bottom: 3px solid var(--tmk-green); transform: rotate(-45deg); }

/* ---------- 共通ボタン ---------- */
.tmk-btn, .article-body a.tmk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: var(--tmk-radius); border: 2px solid var(--tmk-green);
  background: var(--tmk-green); color: #fff !important; text-decoration: none !important; font-weight: 600; line-height: 1.4;
}
.tmk-btn:hover { background: var(--tmk-green-dark); }
.tmk-btn--outline, .article-body a.tmk-btn--outline { background: #fff; color: var(--tmk-green) !important; }
.tmk-btn--outline:hover { background: var(--tmk-green-light); }

/* ---------- 記事中の相談案内（自動挿入） ---------- */
.tmk-inline-cta { border: 1px solid var(--tmk-green); background: var(--tmk-green-light); border-radius: 10px; padding: 20px 22px; margin: 36px 0; text-align: center; }
.tmk-inline-cta p { margin: 0 0 12px; }
.tmk-inline-cta .tmk-inline-cta__lead { font-family: var(--tmk-mincho); font-size: 1.15em; color: var(--tmk-green-dark); margin-bottom: 6px; }
.tmk-inline-cta .tmk-inline-cta__text { font-size: .9em; }
.tmk-inline-cta__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tmk-inline-cta__btns .tmk-btn { min-width: 220px; }

/* ---------- 「あわせて読みたい」 [tmk_read id="123"] ---------- */
.tmk-read { display: flex !important; gap: 14px; align-items: center; border: 1px solid var(--tmk-line); border-radius: var(--tmk-radius); padding: 14px 12px 12px; margin: 28px 0; text-decoration: none !important; color: inherit !important; background: #fff; position: relative; }
.tmk-read:hover { border-color: var(--tmk-green); }
.tmk-read__label { position: absolute; top: -11px; left: 12px; background: var(--tmk-accent); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 3px; line-height: 1.6; }
.tmk-read img { width: 110px; height: 74px; object-fit: cover; border-radius: 4px; flex-shrink: 0; margin: 0 !important; }
.tmk-read strong { display: block; color: var(--tmk-green-dark); line-height: 1.5; }
.tmk-read span.tmk-read__desc { display: block; font-size: .85em; color: var(--tmk-text-sub); line-height: 1.6; margin-top: 2px; }

/* ---------- 執筆者（自動挿入） ---------- */
.tmk-author { display: grid; grid-template-columns: 96px 1fr; gap: 18px; background: var(--tmk-cream); border-radius: 10px; padding: 20px; margin: 32px 0; }
.tmk-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin: 0 !important; }
.tmk-author p { margin: 0 0 6px; font-size: .9em; }
.tmk-author .tmk-author__label { font-size: 12px; color: var(--tmk-text-sub); }
.tmk-author .tmk-author__name { font-family: var(--tmk-mincho); font-size: 1.3em; color: #333; }
.tmk-author .tmk-author__creds { font-size: 13px; color: var(--tmk-green-dark); }

/* ---------- 記事末の予約帯（自動挿入） ---------- */
.tmk-cta-band { background: var(--tmk-cream); border: 1px solid var(--tmk-cream-dark); border-radius: 10px; padding: 28px 20px; text-align: center; margin: 32px 0; }
.tmk-cta-band p { margin: 0 0 10px; }
.tmk-cta-band .tmk-cta-band__title { font-family: var(--tmk-mincho); font-size: 1.3em; color: var(--tmk-green-dark); }
.tmk-cta-band__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.tmk-cta-band__tel { text-decoration: none !important; color: var(--tmk-green-dark) !important; line-height: 1.3; }
.tmk-cta-band__tel strong { font-size: 1.8em; display: block; }
.tmk-cta-band__tel small { font-size: 12px; color: var(--tmk-text-sub); }

/* ---------- 記事の最終更新日 ---------- */
.tmk-updated { font-size: 13px; color: var(--tmk-text-sub); margin: -4px 0 16px; }

/* ---------- いやしの場：日程 [iyashi_schedule] ---------- */
.tmk-next { background: var(--tmk-green); color: #fff; border-radius: 10px; padding: 20px 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.tmk-next__label { font-size: 13px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 2px 12px; display: inline-block; }
.tmk-next__date { font-family: var(--tmk-mincho); font-size: 1.7em; line-height: 1.3; }
.tmk-next__meta { font-size: .85em; opacity: .9; }
.tmk-next .tmk-btn { margin-left: auto; background: #fff; color: var(--tmk-green) !important; border-color: #fff; }
.tmk-schedule { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; list-style: none !important; padding: 0 !important; margin: 12px 0 20px !important; }
.tmk-schedule li { list-style: none !important; background: #fff; border: 1px solid var(--tmk-line); border-radius: var(--tmk-radius); text-align: center; padding: 8px 4px; font-size: 14px; line-height: 1.5; margin: 0 !important; }
.tmk-schedule li::before { display: none !important; }
.tmk-schedule li small { display: block; font-size: 11px; color: var(--tmk-text-sub); }
.tmk-schedule li.is-past { background: #f2f0eb; color: #aaa; }
.tmk-schedule li.is-next { border: 2px solid var(--tmk-green); background: var(--tmk-green-light); font-weight: 600; color: var(--tmk-green-dark); }

/* ---------- いやしの場：最新レポート [iyashi_reports] / 関連事例 ---------- */
.tmk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none !important; padding: 0 !important; margin: 16px 0 !important; }
.tmk-cards li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.tmk-cards li::before { display: none !important; }
.tmk-cards a { display: block; text-decoration: none !important; color: inherit !important; border: 1px solid var(--tmk-line); border-radius: var(--tmk-radius); overflow: hidden; background: #fff; height: 100%; }
.tmk-cards a:hover { border-color: var(--tmk-green); }
.tmk-cards img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin: 0 !important; display: block; }
.tmk-cards .tmk-cards__body { display: block; padding: 10px 12px 12px; }
.tmk-cards time { font-size: 12px; color: var(--tmk-text-sub); display: block; }
.tmk-cards strong { display: block; font-size: 14px; line-height: 1.55; color: var(--tmk-green-dark); }

/* ---------- シェアボタン：サービス終了した Pocket を非表示 ---------- */
.sns-btn_pocket, li[class*="pocket"], a[href*="getpocket.com"] { display: none !important; }

/* ---------- スマホ下部の固定パネル（賢威の既存機能の色） ---------- */
.keni-footer-panel_wrap { background: #faebd7; }

/* =========================================================
   予約フォーム（Contact Form 7）
   ========================================================= */
.tmk-form { background: var(--tmk-cream); border-radius: 10px; padding: 32px 36px; margin: 20px 0; }
.tmk-form .tmk-field { margin: 0 0 24px; }
.tmk-form .tmk-label { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0 0 8px; font-size: 15px; color: #333; line-height: 1.5; }
.tmk-form .tmk-tag { font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 3px; font-weight: 600; letter-spacing: .05em; }
.tmk-form .tmk-tag--req { background: var(--tmk-accent); color: #fff; }
.tmk-form .tmk-tag--opt { background: #fff; color: #888; border: 1px solid #ccc; }
.tmk-form .tmk-hint { font-size: 13px; color: var(--tmk-text-sub); margin: 6px 0 0; line-height: 1.6; }
.tmk-form p { margin: 0; }
.tmk-form br { display: none; }

.tmk-form input[type="text"], .tmk-form input[type="email"], .tmk-form input[type="tel"],
.tmk-form input[type="date"], .tmk-form select, .tmk-form textarea {
  width: 100%; max-width: 100%; box-sizing: border-box; font-size: 16px; color: #333; background: #fff;
  border: 1px solid #cfc8b8; border-radius: var(--tmk-radius); padding: 12px 14px; line-height: 1.5; height: auto;
}
.tmk-form textarea { min-height: 170px; resize: vertical; }
.tmk-form input:focus, .tmk-form select:focus, .tmk-form textarea:focus { outline: none; border-color: var(--tmk-green); box-shadow: 0 0 0 3px rgba(2,96,58,.15); }
.tmk-form ::placeholder { color: #aaa; }

/* ご希望のカウンセリング：カード型 */
.tmk-form .tmk-cards-radio .wpcf7-radio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tmk-form .tmk-cards-radio .wpcf7-list-item { margin: 0; display: block; }
.tmk-form .tmk-cards-radio .wpcf7-list-item label { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #cfc8b8; border-radius: var(--tmk-radius); padding: 12px 14px; cursor: pointer; line-height: 1.5; height: 100%; box-sizing: border-box; }
.tmk-form .tmk-cards-radio .wpcf7-list-item label:has(input:checked) { border-color: var(--tmk-green); background: var(--tmk-green-light); }
.tmk-form .tmk-cards-radio input[type="radio"] { width: 18px; height: 18px; accent-color: var(--tmk-green); margin: 0; flex-shrink: 0; }

/* 性別：ピル型 */
.tmk-form .tmk-pills .wpcf7-list-item { margin: 0 8px 8px 0; display: inline-block; }
.tmk-form .tmk-pills .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border: 1px solid #cfc8b8; border-radius: 999px; background: #fff; cursor: pointer; }
.tmk-form .tmk-pills .wpcf7-list-item label:has(input:checked) { background: var(--tmk-green); border-color: var(--tmk-green); color: #fff; }
.tmk-form .tmk-pills input[type="radio"] { accent-color: var(--tmk-green); margin: 0; }

/* 希望日時 */
.tmk-form .tmk-datetime { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.tmk-form .tmk-datetime__no { font-size: 13px; color: var(--tmk-text-sub); }

/* 同意 */
.tmk-form .tmk-agree { background: #fff; border: 1px solid var(--tmk-line); border-radius: var(--tmk-radius); padding: 14px 16px; font-size: 14px; }
.tmk-form .tmk-agree .wpcf7-list-item { margin: 0; }
.tmk-form .tmk-agree input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--tmk-green); vertical-align: -3px; margin-right: 6px; }

/* Turnstile と送信ボタン */
.tmk-form .CF7_turnstile, .tmk-form .tmk-turnstile { display: flex; justify-content: center; margin: 24px 0 6px; }
.tmk-form .tmk-turnstile-note { text-align: center; font-size: 12px; color: var(--tmk-text-sub); margin: 0 0 20px; }
.tmk-form .CF7_btn, .tmk-form .tmk-submit { text-align: center; margin: 0; }
.wpcf7 .tmk-form input.wpcf7-submit {
  background: var(--tmk-green); color: #fff; border: 2px solid var(--tmk-green); border-radius: var(--tmk-radius);
  font-size: 17px; font-weight: 600; padding: 15px 40px; min-width: 280px; cursor: pointer; margin: 0 auto;
}
.wpcf7 .tmk-form input.wpcf7-submit:hover { background: var(--tmk-green-dark); }
.wpcf7 .tmk-form input.wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7-spinner { width: 0; margin: 0; }

/* エラー表示 */
.tmk-form .wpcf7-not-valid { border-color: #c0392b !important; background: #fff8f7 !important; }
.tmk-form .wpcf7-not-valid-tip { font-size: 13px; color: #c0392b; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { border-radius: var(--tmk-radius); margin: 16px 0 0; padding: 12px 16px; }

/* 旧フォーム（表組み）用：切り替えまでの互換。旧「追加CSS」の内容 */
table.CF7_table { width: 80%; margin: 0 auto; border: 3px solid #e5e5e5; }
table.CF7_table tr { border-top: 1px solid #e5e5e5; }
.CF7_table input, .CF7_table textarea { border: 1px solid #d8d8d8; font-size: 16px; }
.CF7_table ::placeholder { color: #797979; }
.CF7_req { font-size: .9em; padding: 5px; background: #f79034; color: #fff; border-radius: 3px; margin-right: 1em; }
.CF7_unreq { font-size: .9em; padding: 5px; background: #bdbdbd; color: #fff; border-radius: 3px; margin-right: 1em; }
@media screen and (min-width: 768px) { .CF7_table th { width: 30%; text-align: left; background-color: #ebedf5; } }
@media screen and (max-width: 768px) {
  table.CF7_table { width: 95%; }
  .CF7_table tr, .CF7_table td, .CF7_table th { display: block; width: 100%; line-height: 2.5em; text-align: left; }
  .CF7_table th { background-color: #ebedf5; }
}
.wpcf7 input.wpcf7-submit { background-color: #f79034; border: 0; color: #fff; font-size: 1.2em; font-weight: bold; margin: 0 auto; }
.CF7_btn { text-align: center; margin-top: 20px; }

/* =========================================================
   スマホ
   ========================================================= */
@media (max-width: 767px) {
  .keni-mv_wrap .catch-area h1 { font-size: 1.5em; }
  .tmk-schedule { grid-template-columns: repeat(3, 1fr); }
  .tmk-cards { grid-template-columns: 1fr 1fr; }
  .tmk-next .tmk-btn { margin-left: 0; width: 100%; }
  .tmk-author { grid-template-columns: 1fr; text-align: center; }
  .tmk-author img { margin: 0 auto !important; }
  .tmk-inline-cta__btns .tmk-btn { min-width: 0; width: 100%; }
  .tmk-read img { width: 84px; height: 64px; }
  .tmk-form { padding: 22px 14px; }
  .tmk-form .tmk-cards-radio .wpcf7-radio { grid-template-columns: 1fr; }
  .tmk-form .tmk-datetime { grid-template-columns: 1fr 1fr; }
  .tmk-form .tmk-datetime__no { grid-column: 1 / -1; margin-bottom: -4px; }
  .wpcf7 .tmk-form input.wpcf7-submit { min-width: 0; width: 100%; }
}

/* v1.0.1 フォームの細かな調整 */
.tmk-form .tmk-pills .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.tmk-form .tmk-pills .wpcf7-list-item { margin: 0; }
.tmk-form .tmk-field > p:empty { display: none; }
.tmk-form .tmk-hint { margin-top: 4px; }

/* v1.1.0 サービスページ（来談・電話・いやしの場） */
.article-body .tmk-lead { font-size: 1.05em; background: var(--tmk-cream); border-radius: var(--tmk-radius); padding: 16px 20px; }
.article-body ol.tmk-points { list-style: none !important; counter-reset: tmkpt; padding: 0 !important; margin: 16px 0 24px !important; }
.article-body ol.tmk-points > li { counter-increment: tmkpt; list-style: none !important; background: var(--tmk-cream); border-radius: var(--tmk-radius); padding: 14px 16px 14px 60px; position: relative; margin: 0 0 10px !important; }
.article-body ol.tmk-points > li::before { content: "0" counter(tmkpt); position: absolute; left: 14px; top: 10px; font-family: var(--tmk-mincho); font-size: 26px; color: var(--tmk-green); line-height: 1.2; background: none; width: auto; height: auto; border: 0; }
.article-body ol.tmk-points strong { display: block; color: var(--tmk-green-dark); }
.article-body table.tmk-price { width: 100%; border-collapse: collapse; margin: 12px 0; }
.article-body table.tmk-price th, .article-body table.tmk-price td { border: 1px solid var(--tmk-line); padding: 10px 12px; text-align: left; }
.article-body table.tmk-price thead th { background: var(--tmk-green); color: #fff; }
.article-body table.tmk-price td.num { text-align: right; font-weight: 600; color: var(--tmk-green-dark); white-space: nowrap; }
.article-body ol.tmk-flow { list-style: none !important; counter-reset: tmkflow; padding: 0 !important; margin: 16px 0 !important; }
.article-body ol.tmk-flow > li { counter-increment: tmkflow; list-style: none !important; position: relative; padding: 0 0 20px 52px; margin: 0 !important; }
.article-body ol.tmk-flow > li::before { content: counter(tmkflow); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--tmk-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.article-body ol.tmk-flow > li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: var(--tmk-green-light); }
.article-body ol.tmk-flow strong { display: block; color: var(--tmk-green-dark); }
.article-body .tmk-faq details { border: 1px solid var(--tmk-line); border-radius: var(--tmk-radius); margin: 0 0 10px; background: #fff; }
.article-body .tmk-faq summary { cursor: pointer; padding: 12px 40px 12px 44px; position: relative; font-weight: 600; list-style: none; }
.article-body .tmk-faq summary::-webkit-details-marker { display: none; }
.article-body .tmk-faq summary::before { content: "Q"; position: absolute; left: 14px; top: 9px; font-family: var(--tmk-mincho); font-size: 20px; color: var(--tmk-green); }
.article-body .tmk-faq summary::after { content: "+"; position: absolute; right: 16px; top: 9px; font-size: 20px; color: var(--tmk-green); }
.article-body .tmk-faq details[open] summary::after { content: "−"; }
.article-body .tmk-faq .tmk-faq__a { padding: 0 16px 12px 44px; }
.article-body .tmk-faq .tmk-faq__a p { margin: 0 0 .5em; }
.article-body .tmk-access { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.article-body .tmk-access iframe { width: 100%; height: 260px; border: 0; border-radius: var(--tmk-radius); }
.article-body .tmk-access dl { margin: 0; }
.article-body .tmk-access dt { font-weight: 600; color: var(--tmk-green-dark); margin-top: 8px; }
.article-body .tmk-access dd { margin: 0; }
.article-body ul.tmk-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none !important; padding: 0 !important; margin: 16px 0 !important; }
.article-body ul.tmk-links li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.article-body ul.tmk-links li::before { display: none !important; }
.article-body ul.tmk-links a { display: block; border: 1px solid var(--tmk-line); border-radius: var(--tmk-radius); padding: 12px 14px; text-decoration: none; color: inherit; background: #fff; height: 100%; }
.article-body ul.tmk-links a:hover { border-color: var(--tmk-green); }
.article-body ul.tmk-links strong { display: block; color: var(--tmk-green); font-family: var(--tmk-mincho); font-weight: normal; font-size: 1.1em; }
.article-body ul.tmk-links span { font-size: .85em; color: var(--tmk-text-sub); }
@media (max-width: 767px) {
  .article-body .tmk-access, .article-body ul.tmk-links { grid-template-columns: 1fr; }
}

/* v1.2.0 ケーススタディ冒頭（相談の概要・ポイント） */
.article-body table.tmk-case { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.article-body table.tmk-case th, .article-body table.tmk-case td { border: 1px solid var(--tmk-line); padding: 10px 14px; text-align: left; }
.article-body table.tmk-case th { background: var(--tmk-cream); width: 8em; color: var(--tmk-green-dark); white-space: nowrap; }
.article-body .tmk-summary { border: 2px solid var(--tmk-green); border-radius: var(--tmk-radius); padding: 0 18px 12px; margin: 0 0 28px; background: #fff; }
.article-body .tmk-summary .tmk-summary__title { margin: 0 -18px 10px; background: var(--tmk-green); color: #fff; padding: 6px 18px; font-weight: 600; }
.article-body .tmk-summary ul { margin: 0; padding-left: 1.3em; }
.article-body .tmk-summary li { margin: 0 0 4px; }

/* v1.3.0 デザイン調整（見出しセンター・ボタン間隔・スマホのヘッダー/下部バー・フォーム） */

/* 見出しはセンター寄せ */
.article-body h2, .article-body h3 { text-align: center; }

/* ボタンが2つ並ぶ段落：くっつかないように間隔をとる */
.article-body p:has(> a.tmk-btn) { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* いやしの場：レポート4件を2列で */
@media (min-width: 768px) { .tmk-cards { grid-template-columns: repeat(4, 1fr); } }

/* ---------- フォーム：余白の詰め・日時の見出し ---------- */
.article-body .tmk-form p { margin: 0 !important; padding: 0 !important; }
.article-body .tmk-form p:empty { display: none; }
.tmk-form .tmk-field { margin: 0 0 22px; }
.tmk-form .wpcf7-form-control-wrap { display: block; }
.tmk-form .tmk-hint, .article-body .tmk-form p.tmk-hint { margin: 6px 0 0 !important; font-size: 13px; line-height: 1.6; color: var(--tmk-text-sub); }
.tmk-form .tmk-datetime { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-items: end; margin: 0 0 14px; }
.tmk-form .tmk-datetime__no { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--tmk-green-dark); margin: 0; }
.tmk-form .tmk-dt { display: block; margin: 0; }
.tmk-form .tmk-dt > .tmk-dt__label { display: block; font-size: 12px; color: var(--tmk-text-sub); margin: 0 0 4px; }
.tmk-form input[type="date"], .tmk-form select {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 50px; box-sizing: border-box;
  font-size: 16px; padding: 12px 14px; background-color: #fff;
}
.tmk-form select { background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }

@media (max-width: 767px) {
  /* ---------- ヘッダー：トップ画像の上に重ねる（透過） ---------- */
  body:has(.keni-mv_wrap) .keni-header_wrap,
  body:has(.main_title) .keni-header_wrap {
    position: absolute; top: 0; left: 0; right: 0; z-index: 20;
    background: linear-gradient(to bottom, rgba(255,255,255,.72), rgba(255,255,255,0));
  }
  .admin-bar:has(.keni-mv_wrap) .keni-header_wrap,
  .admin-bar:has(.main_title) .keni-header_wrap { top: 46px; }
  body:has(.keni-mv_wrap) .keni-mv_outer { padding-top: 56px; }
  .main_title { padding-top: 56px; height: 240px !important; box-sizing: border-box; }

  /* ハンバーガー：角丸の半透明 */
  .keni-gnav_btn {
    top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 12px;
    background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.75); box-shadow: 0 4px 14px rgba(0,0,0,.15);
  }
  .admin-bar .keni-gnav_btn { top: 58px; }
  .admin-bar .keni-gnav_btn.fixed { top: 12px; }
  .keni-gnav_btn_icon-open { left: 13px; background-color: var(--tmk-green-dark); }
  .keni-gnav_btn_icon-open::before, .keni-gnav_btn_icon-open::after { background-color: var(--tmk-green-dark); }

  /* ---------- 下部の電話・メール：浮いた半透明のバー ---------- */
  .keni-footer-panel_wrap, .keni-footer-panel_wrap.fn-footer-panel {
    left: 12px; right: 12px; width: auto; bottom: -140px;
    background: rgba(255,255,255,.62) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(255,255,255,.7); border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
  }
  .fn-footer-panel.is-active { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .keni-footer-panel { min-height: 0; padding: 8px; }
  .keni-footer-panel ul.utility-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; margin: 0; }
  .keni-footer-panel li.utility-menu_item { display: block; border: 0; font-size: 15px; }
  .keni-footer-panel li.utility-menu_item a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 6px 10px;
    border-radius: 12px; font-weight: 600; letter-spacing: .04em; text-decoration: none;
  }
  .keni-footer-panel li.utility-menu_item a span { display: inline-flex !important; align-items: center; gap: 6px; color: inherit !important; }
  .keni-footer-panel li.utility-menu_item:first-child a { background: rgba(255,255,255,.85); color: var(--tmk-green-dark); border: 1px solid rgba(2,96,58,.25); }
  .keni-footer-panel li.utility-menu_item:last-child a { background: rgba(2,96,58,.9); color: #fff; }
  .keni-footer-panel li span::before { font-size: 18px; }
  .fn-keni-container { padding-bottom: 96px !important; }
  .page-top { display: none !important; }
}

/* v1.3.1 スマホのハンバーガー・トップ見出しの微調整 */
@media (max-width: 767px) {
  .keni-gnav_btn { top: 12px !important; right: 12px !important; width: 46px !important; height: 46px !important; line-height: 46px !important; background: rgba(255,255,255,.5) !important; border-radius: 12px !important; }
  .admin-bar .keni-gnav_btn { top: 58px !important; }
  .admin-bar .keni-gnav_btn.fixed, .keni-gnav_btn.fixed { top: 12px !important; }
  .keni-mv_wrap .catch-area .tmk-mv-sub { font-size: 12px; letter-spacing: .04em; }
}

/* v1.3.2 スマホ：スクロール中はヘッダーを隠して本文優先／下部バーの位置を確実に */
@media (max-width: 767px) {
  html body .keni-header_wrap.fixed { transform: translateY(-110%); transition: transform .25s ease; box-shadow: none; }
  html body:has(.keni-mv_wrap) .keni-container, html body:has(.main_title) .keni-container { padding-top: 0 !important; }
  html body .keni-footer-panel_wrap.fn-footer-panel {
    left: 12px; right: 12px; width: auto; bottom: -140px; border-radius: 18px;
    background: rgba(255,255,255,.62) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(255,255,255,.7); box-shadow: 0 8px 28px rgba(0,0,0,.18);
  }
  html body .keni-footer-panel_wrap.fn-footer-panel.is-active { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* v1.3.3 希望日時：日付・時間を横幅いっぱいで縦に並べる */
html body .tmk-form .tmk-datetime { display: block; background: #fff; border: 1px solid var(--tmk-line); border-radius: var(--tmk-radius); padding: 12px 14px; margin: 0 0 12px; }
html body .tmk-form .tmk-datetime > p, html body .tmk-form .tmk-datetime br { display: contents; }
html body .tmk-form .tmk-datetime__no { display: block; margin: 0 0 8px; }
html body .tmk-form .tmk-dt { display: block; width: 100%; margin: 0 0 10px; }
html body .tmk-form .tmk-dt:last-child { margin-bottom: 0; }
html body .tmk-form .tmk-dt input[type="date"], html body .tmk-form .tmk-dt select { width: 100% !important; max-width: none; }
@media (min-width: 768px) {
  html body .tmk-form .tmk-datetime { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  html body .tmk-form .tmk-datetime__no { grid-column: 1 / -1; }
  html body .tmk-form .tmk-dt { margin: 0; }
}

/* v1.4.0 トップ・カウンセラー紹介 */
.article-body .tmk-profile { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; background: var(--tmk-cream); border-radius: 12px; padding: 24px; margin: 0 0 28px; }
.article-body .tmk-profile img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); margin: 0 !important; }
.article-body .tmk-profile p { margin: 0 0 6px; }
.article-body .tmk-profile .tmk-profile__role { font-size: 13px; color: var(--tmk-green); font-weight: 600; }
.article-body .tmk-profile .tmk-profile__name { font-family: var(--tmk-mincho); font-size: 1.7em; color: #333; line-height: 1.3; }
.article-body ul.tmk-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none !important; padding: 0 !important; margin: 8px 0 12px !important; }
.article-body ul.tmk-tags li { list-style: none !important; margin: 0 !important; font-size: 13px; background: #fff; border: 1px solid var(--tmk-green); color: var(--tmk-green-dark); border-radius: 999px; padding: 2px 12px; }
.article-body ul.tmk-tags li::before { display: none !important; }
.article-body dl.tmk-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.article-body dl.tmk-facts div { background: #fff; border-radius: var(--tmk-radius); padding: 8px; text-align: center; }
.article-body dl.tmk-facts dt { font-size: 12px; color: var(--tmk-text-sub); font-weight: normal; margin: 0; }
.article-body dl.tmk-facts dd { margin: 0; font-family: var(--tmk-mincho); font-size: 1.3em; color: var(--tmk-green-dark); }
.article-body dl.tmk-facts dd small { font-size: 12px; }
.article-body ol.tmk-timeline { list-style: none !important; margin: 0 0 24px !important; padding: 0 0 0 4px !important; border-left: 2px solid var(--tmk-green-light); }
.article-body ol.tmk-timeline li { list-style: none !important; position: relative; padding: 0 0 14px 22px !important; margin: 0 !important; }
.article-body ol.tmk-timeline li::before { content: ""; position: absolute; left: -8px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--tmk-green); }
.article-body ol.tmk-timeline b { display: inline-block; min-width: 5.5em; color: var(--tmk-green-dark); }
.article-body .tmk-certs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; margin: 16px 0 24px; }
.article-body .tmk-certs figure { margin: 0; text-align: center; background: #fff; border: 1px solid var(--tmk-line); border-radius: var(--tmk-radius); padding: 12px; }
.article-body .tmk-certs img { margin: 0 auto !important; }
.article-body .tmk-certs figcaption { font-size: 13px; color: var(--tmk-text-sub); margin-top: 6px; }
.article-body .tmk-quote { position: relative; background: #fff; border: 1px solid var(--tmk-line); border-radius: 12px; padding: 22px 22px 8px; margin: 24px 0; }
.article-body .tmk-quote::before { content: "“"; position: absolute; top: -20px; left: 16px; font-family: var(--tmk-mincho); font-size: 56px; color: var(--tmk-green); line-height: 1; background: #fff; padding: 0 6px; }
.article-body .tmk-quote .tmk-quote__sign { text-align: right; font-family: var(--tmk-mincho); color: var(--tmk-green-dark); }
.article-body .tmk-emphasis { font-family: var(--tmk-mincho); font-size: 1.3em; text-align: center; color: var(--tmk-green-dark); margin: 28px 0; }
.article-body .tmk-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none !important; padding: 0 !important; margin: 20px 0 !important; }
.article-body .tmk-courses li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.article-body .tmk-courses li::before { display: none !important; }
.article-body .tmk-courses a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--tmk-line); border-radius: 10px; padding: 18px 16px; text-decoration: none !important; color: inherit !important; background: #fff; text-align: center; }
.article-body .tmk-courses a:hover { border-color: var(--tmk-green); box-shadow: 0 4px 14px rgba(2,96,58,.1); }
.article-body .tmk-courses .tmk-courses__icon { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.article-body .tmk-courses strong { display: block; font-family: var(--tmk-mincho); font-weight: normal; font-size: 1.15em; color: var(--tmk-green); margin-bottom: 6px; }
.article-body .tmk-courses .tmk-courses__text { display: block; font-size: 13px; text-align: left; flex: 1; line-height: 1.7; }
.article-body .tmk-courses .tmk-courses__more { display: block; margin-top: 10px; font-size: 13px; color: var(--tmk-green); font-weight: 600; }
@media (max-width: 767px) {
  .article-body .tmk-profile { grid-template-columns: 1fr; text-align: center; padding: 20px 14px; }
  .article-body .tmk-profile img { width: 140px; height: 140px; margin: 0 auto !important; }
  .article-body ul.tmk-tags { justify-content: center; }
  .article-body .tmk-certs, .article-body .tmk-courses { grid-template-columns: 1fr; }
}

/* v1.5.0 スマホ：下部バー（電話番号／メールでご予約）・ハンバーガー・白抜きロゴ */
@media (max-width: 767px) {
  /* 下部バー：画面幅いっぱい・左右2色 */
  html body .keni-footer-panel_wrap.fn-footer-panel {
    left: 0; right: 0; width: 100%; bottom: -120px; border: 0; border-radius: 0;
    background: transparent !important; box-shadow: 0 -4px 18px rgba(0,0,0,.15);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  html body .keni-footer-panel_wrap.fn-footer-panel.is-active { bottom: 0; }
  html body .keni-footer-panel { padding: 0; }
  html body .keni-footer-panel ul.utility-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border: 0; }
  html body .keni-footer-panel li.utility-menu_item { display: block; border: 0; }
  html body .keni-footer-panel li.utility-menu_item a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 68px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    border-radius: 0; border: 0; color: #fff !important; text-decoration: none;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  html body .keni-footer-panel li.tmk-sp-tel a, html body .keni-footer-panel li.utility-menu_item:first-child a { background: rgba(2,96,58,.92); }
  html body .keni-footer-panel li.tmk-sp-mail a, html body .keni-footer-panel li.utility-menu_item:last-child a { background: rgba(207,122,52,.94); }
  html body .keni-footer-panel .tmk-sp-ico {
    display: inline-flex !important; align-items: center; justify-content: center; flex-shrink: 0;
    width: 38px; height: 38px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%;
  }
  html body .keni-footer-panel .tmk-sp-ico span::before, html body .keni-footer-panel .tmk-sp-ico .icon_tel::before, html body .keni-footer-panel .tmk-sp-ico .icon_mail::before { font-size: 18px; color: #fff; margin: 0; }
  html body .keni-footer-panel .tmk-sp-txt { display: inline-block !important; font-family: var(--tmk-mincho); font-weight: 600; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; }
  html body .keni-footer-panel li.tmk-sp-tel .tmk-sp-txt { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 19px; font-weight: 700; letter-spacing: .01em; }
  html body .keni-footer-panel li.tmk-sp-mail .tmk-sp-txt { font-size: 16px; }
  html body .fn-keni-container { padding-bottom: 76px !important; }

  /* ハンバーガー：深緑×金の細枠、三本線は中央 */
  html body .keni-gnav_btn {
    background: rgba(1,74,44,.85) !important; border: 1.5px solid rgba(214,190,130,.95) !important;
    border-radius: 12px !important; box-shadow: 0 4px 16px rgba(0,0,0,.28) !important;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  html body .keni-gnav_btn .keni-gnav_btn_icon-open { left: 50% !important; width: 22px; margin-left: -11px; background-color: #f5ecd7 !important; }
  html body .keni-gnav_btn .keni-gnav_btn_icon-open::before, html body .keni-gnav_btn .keni-gnav_btn_icon-open::after { width: 22px; background-color: #f5ecd7 !important; }
  html body .keni-gnav_btn .keni-gnav_btn_icon-close { width: 100%; color: #f5ecd7; }
  html body .keni-gnav_btn .keni-gnav_btn_icon-close::before { width: 100%; left: 0; }

  /* ロゴ：トップ画像の上では白抜き＋影で見やすく */
  html body:has(.keni-mv_wrap) .keni-header_wrap, html body:has(.main_title) .keni-header_wrap {
    background: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,0)) !important;
  }
  html body:has(.keni-mv_wrap) .keni-header_wrap .site-title img, html body:has(.main_title) .keni-header_wrap .site-title img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,.55));
  }
}

/* v1.5.1 スマホ下部バー：半透明＋すりガラス＋光沢のデザイン */
@media (max-width: 767px) {
  html body .keni-footer-panel_wrap.fn-footer-panel {
    background: transparent !important;
    box-shadow: 0 -6px 24px rgba(0,0,0,.12);
    border-top: 1px solid rgba(255,255,255,.55);
  }
  html body .keni-footer-panel li.utility-menu_item a {
    position: relative; overflow: hidden;
    -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
  }
  /* 上部にうっすら光沢 */
  html body .keni-footer-panel li.utility-menu_item a::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,.22), rgba(255,255,255,0)); pointer-events: none;
  }
  html body .keni-footer-panel li.tmk-sp-tel a, html body .keni-footer-panel li.utility-menu_item:first-child a {
    background: linear-gradient(135deg, rgba(2,96,58,.78), rgba(1,74,44,.70));
  }
  html body .keni-footer-panel li.tmk-sp-mail a, html body .keni-footer-panel li.utility-menu_item:last-child a {
    background: linear-gradient(135deg, rgba(222,140,66,.80), rgba(196,110,42,.72));
    border-left: 1px solid rgba(255,255,255,.35);
  }
  html body .keni-footer-panel .tmk-sp-ico { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.85); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
  html body .keni-footer-panel li.utility-menu_item a:active { filter: brightness(1.08); }
}

/* v1.5.2 スマホ下部バー：「お電話はこちら」（明朝）と暗めの透過グラデーション */
@media (max-width: 767px) {
  html body .keni-footer-panel li.tmk-sp-tel .tmk-sp-txt { text-align: left; }
  html body .keni-footer-panel li.tmk-sp-tel .tmk-sp-txt::before {
    content: "お電話はこちら"; display: block; margin: 0 0 2px;
    font-family: var(--tmk-mincho); font-size: 11px; font-weight: normal; letter-spacing: .12em; opacity: .92;
  }
  html body .keni-footer-panel li.tmk-sp-tel a, html body .keni-footer-panel li.utility-menu_item:first-child a {
    background: linear-gradient(120deg, rgba(1,74,44,.82) 0%, rgba(2,96,58,.66) 55%, rgba(0,42,25,.80) 100%);
  }
  html body .keni-footer-panel li.tmk-sp-mail a, html body .keni-footer-panel li.utility-menu_item:last-child a {
    background: linear-gradient(120deg, rgba(150,82,28,.82) 0%, rgba(196,112,46,.66) 55%, rgba(118,60,18,.80) 100%);
  }
  html body .keni-footer-panel li.utility-menu_item a::before { background: linear-gradient(to bottom, rgba(255,255,255,.14), rgba(255,255,255,0)); }
}

/* v1.5.3 「お電話はこちら」を番号の上に・横はみ出し防止 */
@media (max-width: 767px) {
  html body .keni-footer-panel ul.utility-menu { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; }
  html body .keni-footer-panel li.tmk-sp-tel .tmk-sp-txt { display: flex !important; flex-direction: column; align-items: flex-start; gap: 0; }
  html body .keni-footer-panel li.tmk-sp-tel .tmk-sp-txt::before { margin: 0 0 1px; }
  html body .keni-footer-panel li.tmk-sp-tel .tmk-sp-txt { font-size: 18px; }
  html body .keni-footer-panel li.utility-menu_item a { gap: 8px; padding-left: 6px; padding-right: 6px; }
  html body .keni-footer-panel .tmk-sp-ico { width: 34px; height: 34px; }
}

/* v1.5.4 予約ページ：電話・メールの案内ブロック */
.article-body .tmk-contact { border: 1px solid var(--tmk-line); border-radius: 12px; padding: 20px 18px; text-align: center; background: #fff; }
.article-body .tmk-contact p { margin: 0; }
.article-body .tmk-contact .tmk-contact__title { font-family: var(--tmk-mincho); font-size: 1.15em; color: var(--tmk-green-dark); font-weight: 600; margin-bottom: 8px; }
.article-body .tmk-contact--tel { background: var(--tmk-cream); margin: 24px 0 40px; }
.article-body .tmk-contact .tmk-contact__num a { display: inline-block; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 2em; font-weight: 700; color: var(--tmk-green-dark); text-decoration: none; letter-spacing: .02em; line-height: 1.3; }
.article-body .tmk-contact .tmk-contact__num a::before { content: "☎ "; font-size: .7em; }
.article-body .tmk-contact .tmk-contact__note { font-size: 13px; color: var(--tmk-text-sub); margin-top: 6px; line-height: 1.6; }
.article-body .tmk-contact--mail { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; margin: 0; }
.article-body .tmk-contact--mail + .wpcf7 .tmk-form, .article-body .tmk-contact--mail + p + .wpcf7 .tmk-form { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.article-body .tmk-note-red { color: #b3261e; font-size: .95em; }

/* v1.5.5 本文の写真が縦に伸びないように（自動サイズ指定の画像も含めて縦横比を固定） */
.article-body img[class*="wp-image-"], .article-body img[sizes^="auto"] { height: auto !important; contain-intrinsic-size: auto none; }
