/* 旧サイト(Twenty Twelve)の見た目を保ちつつ、Hugo移行で必要な微調整のみ */

/* ヘッダーの文字色：旧サイトの WordPress カスタマイザー設定（header text color = #0a3dc9）を再現。
   style.css のデフォルト(#515151)を上書きし、タイトル・タグラインを旧サイトと同じ青に揃える。 */
.site-header h1 a,
.site-header h2 {
  color: #0a3dc9;
}

/* 和文の折り返し・読みやすさ */
body { word-wrap: break-word; overflow-wrap: anywhere; }

/* 本文中の画像・表がカラムをはみ出さないように */
.entry-content img,
.widget img { max-width: 100%; height: auto; }

/* WP由来の表組みを罫線付きで表示 */
.entry-content table { border-collapse: collapse; margin: 0 0 24px; width: 100%; }
.entry-content th,
.entry-content td { border: 1px solid #ddd; padding: 6px 10px; vertical-align: top; }
.entry-content th { background: #f7f7f7; }

/* アーカイブ/カテゴリ見出し */
.archive-header { margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid #ededed; }
.archive-title { font-size: 20px; font-weight: normal; }

/* サイドバー検索フォーム（Twenty Twelve 風） */
.search-form .search-field { width: 60%; padding: 4px 6px; }
.search-form .search-submit { padding: 4px 10px; }

/* 「続きを読む」 */
.more-link { font-weight: bold; }

/* CTA / お問い合わせ ボックス（cta ショートコード） */
.join-cta { margin: 1.5em 0; }
.cta-box {
  border: 1px solid #cdd3e6;
  border-left: 4px solid #0a3dc9;
  background: #f5f8ff;
  padding: 18px 22px;
  border-radius: 4px;
}
.cta-box > :first-child { margin-top: 0; }
.cta-box > :last-child { margin-bottom: 0; }
.cta-box h2 { font-size: 1.15em; color: #0a3dc9; margin: 0 0 .5em; border: 0; padding: 0; }
.cta-box p { margin: .5em 0; line-height: 1.7; }
.cta-button {
  display: inline-block;
  background: #0a3dc9;
  color: #fff;
  padding: 8px 18px;
  border: 0;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
}
.cta-button:hover { background: #082da0; color: #fff; text-decoration: none; }
.cta-email { font-size: 1.05em; }

/* メールのコピー・チップ。中身は <canvas>（テキストではないので選択コピー不可）。
   .cta-button.email-copy（ボタン版）には適用しない。 */
.email-copy:not(.cta-button) {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .1em .55em;
  border: 1px solid #cdd3e6;
  border-radius: 6px;
  background: #eef2ff;
  color: #0a3dc9;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1.4;
  user-select: none;            /* 念のためテキスト選択も無効化 */
  -webkit-user-select: none;
}
/* クリップボード・アイコン（currentColor のマスク） */
.email-copy:not(.cta-button)::before {
  content: "";
  width: .85em;
  height: .85em;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2a2 2 0 0 0-2 2H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1a2 2 0 0 0-2-2H9zm0 2h6v2H9V4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2a2 2 0 0 0-2 2H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1a2 2 0 0 0-2-2H9zm0 2h6v2H9V4z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .8;
}
.email-copy:not(.cta-button):hover { background: #e0e8ff; border-color: #0a3dc9; }
.email-copy:not(.cta-button):active { transform: translateY(1px); }
.email-copy canvas { display: block; }
.email-copied-msg { color: #1a7f37; font-weight: bold; }

/* Pagefind 検索UI（旧サイト Twenty Twelve の配色に寄せる） */
.pagefind-search {
  --pagefind-ui-primary: #0a3dc9;
  --pagefind-ui-text: #444;
  --pagefind-ui-background: #fff;
  --pagefind-ui-border: #dddddd;
  --pagefind-ui-tag: #eef;
  --pagefind-ui-border-radius: 4px;
  --pagefind-ui-font: inherit;
  margin-top: 16px;
}
