/*
Theme Name: 日本伝統療法普及保存会
Theme URI:
Description: 日本伝統療法普及保存会 活動者ディレクトリ用 WordPress テーマ
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
Author: 日本伝統療法普及保存会
Text Domain: nihon-dento-hozonkai
*/

/* ─── 変数 ─────────────────────────────────────── */
:root {
  --c-washi:    #fdfaf4;   /* 和紙白 */
  --c-ivory:    #f5f0e6;   /* アイボリー */
  --c-kinari:   #ede5d0;   /* 生成り */
  --c-wakakusa: #8fa96a;   /* 若草 */
  --c-sakura:   #f2e4e4;   /* 淡い桜 */
  --c-kincha:   #c8a96e;   /* 薄い金茶 */
  --c-sumi:     #292722;   /* 墨色 */
  --c-muted:    #77746d;
  --c-line:     #e5dfd2;

  --ff-serif: "游明朝", "Yu Mincho", "YuMincho", "HiraMinProN-W3", "Hiragino Mincho ProN", Georgia, serif;
  --ff-sans:  "游ゴシック", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;

  --max-w: 900px;
  --space: clamp(1rem, 4vw, 2rem);
}

/* ─── リセット ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--c-washi);
  color: var(--c-sumi);
  font-family: var(--ff-sans);
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ─── スキップリンク ──────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: .75rem 1.25rem;
  background: var(--c-sumi);
  color: var(--c-washi);
  font-size: 1rem;
  text-decoration: none;
  overflow: visible;
}

/* ─── フォーカス ──────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--c-wakakusa);
  outline-offset: 3px;
}

/* ─── ヘッダー・メニュー・パンくず ─────────────────
   トップページと同じ見た目。assets/site-header.css（正本は index.html）で定義している。 */

/* ─── メインコンテンツ ────────────────────────── */
.site-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space);
}

/* ─── ページ見出し ───────────────────────────── */
.page-heading {
  margin: 0 0 1.5rem;
  font-family: var(--ff-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: normal;
  line-height: 1.5;
  border-bottom: 2px solid var(--c-kincha);
  padding-bottom: .5rem;
}

/* ─── 本文 ────────────────────────────────────── */
.entry-content {
  margin-bottom: 2rem;
}
.entry-content h2 {
  font-family: var(--ff-serif);
  font-weight: normal;
  font-size: 1.3rem;
}
.entry-content a {
  color: var(--c-sumi);
}

/* ─── プラグイン未インストール時のフォールバック ─ */
.tdp-fallback {
  padding: 1.25rem 1.5rem;
  background: var(--c-ivory);
  border: 1px solid var(--c-line);
  border-radius: .75rem;
  color: var(--c-muted);
  font-size: .95rem;
}

/* ─── フッター ────────────────────────────────── */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--c-line);
  background: var(--c-kinari);
  padding: 1.5rem var(--space);
  text-align: center;
  font-size: .85rem;
  color: var(--c-muted);
}

/* ─── 静的サイトへの戻りリンク ───────────────── */
.back-to-static {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: .6rem;
  color: var(--c-sumi);
  text-decoration: none;
  font-size: .9rem;
  min-height: 44px;
  line-height: 1.6;
}
.back-to-static:hover {
  background: var(--c-ivory);
}

/* ─── 管理ログイン（フッター下部・控えめ） ─────── */
.site-footer__admin {
  margin: .25rem 0 0;
}
.site-footer__admin a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .6rem;
  border-radius: .4rem;
  color: var(--c-muted);
  font-size: .78rem;
  letter-spacing: .06em;
  text-decoration: none;
}
.site-footer__admin a:hover {
  color: var(--c-sumi);
  text-decoration: underline;
}

