/*
Theme Name: ブーゲンWeb企画
Theme URI: https://bu-gen-web.com/
Author: ブーゲンWeb企画
Author URI: https://bu-gen-web.com/
Description: ブーゲンWeb企画のオリジナルテーマ。SEOの基本設定（説明文・OGP・構造化データ・パンくずリスト・目次）とお問い合わせフォームを組みこんだ、軽くて速いテーマです。
Version: 1.0.5
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bougen
*/

/* ===== 色やサイズの設定 ===== */
:root {
  --navy: #1b3a5c;       /* メインの紺色 */
  --blue: #2a6fb0;       /* ボタンなどの青 */
  --blue-light: #eef4fa; /* うすい青の背景 */
  --accent: #c2417a;     /* ブーゲンビリアのピンク（少しだけ使う） */
  --text: #2b2f36;
  --text-sub: #5b6470;
  --line: #d9e2ec;
  --white: #ffffff;
}

/* ===== 基本 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow { max-width: 760px; }
.center { text-align: center; }

.sp-only { display: none; }

/* ===== ヘッダー ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}
.logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-45deg);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 6px;
}
.site-nav .nav-cta:hover { background: var(--navy); color: var(--white); }

.menu-toggle, .menu-button { display: none; }

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--blue-light); }

/* ===== ファーストビュー ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #24507e 100%);
  color: var(--white);
  padding: 96px 0 104px;
}
.hero-area {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 20px;
  opacity: 0.9;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.4;
  margin-bottom: 24px;
}
.hero-lead {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== セクション共通 ===== */
.section { padding: 80px 0; }
.section-tint { background: var(--blue-light); }
.section-title {
  text-align: center;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 48px;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--blue);
  margin: 16px auto 0;
}
.text-link { color: var(--blue); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

/* ===== お悩み ===== */
.worry-list {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.worry-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 20px 14px 48px;
  position: relative;
}
.worry-list li::before {
  content: "✓";
  position: absolute;
  left: 20px;
  color: var(--blue);
  font-weight: 700;
}
.worry-list strong { color: var(--navy); }
.worry-answer {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 40px;
}

/* ===== 3つの強み ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 28px;
  border-top: 4px solid var(--blue);
}
.card-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 12px;
}
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 12px; }
.card p { color: var(--text-sub); font-size: 15px; }

/* ===== 想い ===== */
.message {
  text-align: center;
  font-size: 17px;
  border-left: 4px solid var(--accent);
  border-right: 4px solid var(--accent);
  padding: 8px 32px;
}
.message p + p { margin-top: 16px; }

/* ===== サービス ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.service-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 28px;
}
.service-item h3 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.service-item p { color: var(--text-sub); font-size: 15px; }

/* ===== 対象のお客さん ===== */
.target-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.target-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
}
.target-list strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 4px; }
.target-list span { font-size: 14px; color: var(--text-sub); }

/* ===== 流れ ===== */
.flow-list {
  max-width: 680px;
  margin: 0 auto;
  counter-reset: flow;
}
.flow-list li {
  counter-increment: flow;
  position: relative;
  padding: 0 0 32px 64px;
}
.flow-list li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.flow-list strong { display: block; color: var(--navy); font-size: 18px; line-height: 40px; }
.flow-list span { color: var(--text-sub); }

/* ===== お問い合わせ ===== */
.cta { background: var(--navy); color: var(--white); }
.cta h2 { font-size: 28px; margin-bottom: 16px; }
.cta p { opacity: 0.9; margin-bottom: 32px; }

/* ===== フッター ===== */
.site-footer {
  background: #122840;
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 24px;
  font-size: 14px;
}
.footer-name { font-size: 18px; font-weight: 700; color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 32px; }
.footer-nav a:hover { color: var(--white); }
.copyright { font-size: 12px; opacity: 0.7; }

/* ===== 下のページ共通 ===== */
.site-nav .is-current { color: var(--blue); }
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #24507e 100%);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero-en {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #f2a7c8;
  margin-bottom: 4px;
}
.page-hero h1 { font-size: 34px; margin-bottom: 12px; }
.page-hero p:last-child { opacity: 0.9; }
.section-lead {
  text-align: center;
  color: var(--text-sub);
  margin: -24px 0 40px;
}
.small-note { font-size: 13px; color: var(--text-sub); margin-top: 24px; }

/* ===== 料金 ===== */
.price-grid { display: grid; gap: 24px; }
.price-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.price-grid-3 { grid-template-columns: repeat(3, 1fr); }
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 28px 28px;
}
.price-card.is-featured { border: 2px solid var(--blue); }
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.is-featured .price-badge { background: var(--blue); }
.price-card h3 { text-align: center; color: var(--navy); font-size: 20px; }
.price {
  text-align: center;
  color: var(--navy);
  font-weight: 700;
  margin: 8px 0 12px;
}
.price-num { font-size: 40px; line-height: 1.2; }
.price small { font-size: 13px; font-weight: 400; color: var(--text-sub); }
.price-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-sub);
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 15px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.price-condition { font-size: 13px; color: var(--text-sub); margin-top: 16px; }

.page-example {
  max-width: 820px;
  margin: 32px auto 0;
  background: var(--blue-light);
  border-radius: 10px;
  padding: 20px 24px;
  text-align: center;
  font-size: 15px;
}
.page-example-title { font-weight: 700; color: var(--navy); }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  border-bottom: 1px solid var(--line);
  padding: 20px 12px;
  text-align: left;
  vertical-align: top;
}
.price-table th { color: var(--navy); white-space: nowrap; width: 150px; }
.price-table td { color: var(--text-sub); font-size: 15px; }
.price-table .price-cell { color: var(--navy); font-weight: 700; white-space: nowrap; text-align: right; }
.price-table .price-cell small { font-size: 12px; font-weight: 400; color: var(--text-sub); }
.price-table .th-sub { font-size: 13px; font-weight: 400; color: var(--text-sub); }

.info-box {
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 28px 32px;
}
.info-box h3 { color: var(--navy); margin-bottom: 12px; }
.info-box p + p { margin-top: 12px; }

.reason-list { display: grid; gap: 16px; }
.reason-list li {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 24px;
}
.reason-list strong { display: block; color: var(--navy); font-size: 17px; }
.reason-list span { color: var(--text-sub); font-size: 15px; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding: 0 32px 0 36px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  position: absolute;
  left: 0;
  color: var(--blue);
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.4;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 12px 0 0 36px; color: var(--text-sub); }

/* ===== プロフィール ===== */
.placeholder {
  background: #fff3c4;
  color: #7a5b00;
  padding: 0 4px;
  border-radius: 3px;
}
.greeting p + p { margin-top: 20px; }
.profile-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; }
.profile-table th, .profile-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: none; }
.profile-table th { width: 140px; color: var(--navy); white-space: nowrap; }

/* ===== 制作実績・モニター募集 ===== */
.monitor-box {
  text-align: center;
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 48px 32px;
}
.monitor-label {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.monitor-box h2 { font-size: 30px; color: var(--navy); line-height: 1.4; margin-bottom: 20px; }
.monitor-lead { color: var(--text-sub); margin-bottom: 28px; }
.monitor-lead strong { color: var(--navy); }
.monitor-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.monitor-price-old { color: var(--text-sub); text-decoration: line-through; }
.monitor-price-arrow { color: var(--accent); font-weight: 700; }
.monitor-price-new { color: var(--accent); font-weight: 700; }
.monitor-price-new span { font-size: 44px; line-height: 1.2; }
.monitor-price-new small { font-size: 13px; font-weight: 400; color: var(--text-sub); }
.monitor-status { margin-bottom: 28px; }
.monitor-count { color: var(--accent); font-size: 22px; margin: 0 2px; }

.reason-list-bordered li { border: 1px solid var(--line); }

.works-empty {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 56px 24px;
  text-align: center;
  color: var(--text-sub);
}
.works-empty-title { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }

/* ===== お問い合わせフォーム ===== */
.form-intro { text-align: center; color: var(--text-sub); margin-bottom: 40px; }
.contact-form {
  background: var(--blue-light);
  border-radius: 12px;
  padding: 40px;
}
.form-row { margin-bottom: 24px; }
.form-row > label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.req, .opt {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  border-radius: 4px;
  padding: 0 8px;
  margin-left: 8px;
  vertical-align: 2px;
}
.opt { background: #8a94a1; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form-hint { font-size: 13px; color: var(--text-sub); margin-top: 6px; }
.form-agree label { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; color: var(--text); }
.form-agree input { width: 18px; height: 18px; flex-shrink: 0; }
.form-submit { border: none; cursor: pointer; font: inherit; font-weight: 700; min-width: 240px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-list { margin-top: 16px; }
.form-errors { border-left-color: var(--accent); }

/* ===== スマホ用 ===== */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .sp-only { display: inline; }
  .pc-only { display: none; }

  .menu-button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
  }
  .menu-button span {
    width: 24px;
    height: 2px;
    background: var(--navy);
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .site-nav a { padding: 12px 0; width: 100%; text-align: center; }
  .site-nav .nav-cta { margin-top: 8px; }
  .menu-toggle:checked ~ .site-nav { display: flex; }

  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 15px; }
  .hero-buttons .btn { flex: 1; text-align: center; padding: 14px 16px; }

  .section { padding: 56px 0; }
  .section-title { font-size: 22px; margin-bottom: 32px; }
  .card-grid, .service-grid { grid-template-columns: 1fr; }
  .target-list { grid-template-columns: repeat(2, 1fr); }
  .worry-answer { font-size: 19px; }
  .message { font-size: 16px; text-align: left; border-right: none; padding: 4px 0 4px 16px; }
  .cta h2 { font-size: 22px; }

  .page-hero { padding: 44px 0; }
  .page-hero h1 { font-size: 26px; }
  .section-lead { margin: -12px 0 32px; text-align: left; }
  .price-grid-2, .price-grid-3 { grid-template-columns: 1fr; gap: 32px; }
  .price-table th, .price-table td { display: block; width: 100%; padding: 0; border: none; }
  .price-table tr { display: block; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .price-table .price-cell { text-align: left; margin-top: 4px; }
  .info-box { padding: 24px 20px; }

  .profile-table th, .profile-table td { display: block; width: 100%; }
  .profile-table th { padding: 16px 16px 0; border-bottom: none; }
  .profile-table td { padding: 4px 16px 16px; }

  .monitor-box { padding: 36px 20px; }
  .monitor-box h2 { font-size: 24px; }
  .monitor-lead { text-align: left; }
  .monitor-price { flex-wrap: wrap; gap: 8px; }
  .monitor-price-new span { font-size: 38px; }

  .form-intro { text-align: left; }
  .contact-form { padding: 28px 20px; }
  .form-agree label { justify-content: flex-start; align-items: flex-start; }
  .form-agree input { margin-top: 5px; }
  .form-submit { width: 100%; min-width: 0; }
}

/* =========================================================
   ここから下は、ワードプレス用に追加した部分
   ========================================================= */

img { max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #a5afba; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== 記事一覧 ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: 0 6px 20px rgba(27, 58, 92, 0.12); transform: translateY(-2px); }
.post-card-link { display: block; height: 100%; }
.post-card-thumb img,
.post-card-thumb .no-thumb {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
}
.post-card-thumb .no-thumb {
  background: linear-gradient(135deg, var(--navy) 0%, #24507e 100%);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.post-card-body { padding: 18px 20px 20px; }
.post-card-cat { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.post-card-title { font-size: 17px; color: var(--navy); line-height: 1.6; margin-bottom: 8px; }
.post-card-date { font-size: 13px; color: var(--text-sub); }

.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  color: var(--navy);
}
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pagination a.page-numbers:hover { background: var(--blue-light); }

.category-links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.category-links-title { font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.category-links ul { display: flex; flex-wrap: wrap; gap: 8px; }
.category-links a {
  display: inline-block;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 20px;
}
.category-links a:hover { background: var(--blue); color: var(--white); }

/* ===== ブログ記事 ===== */
.article { padding: 40px 0 64px; }
.article-container { max-width: 800px; }
.article-header { margin-bottom: 28px; }
.article-cat a {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.article-title { font-size: 30px; line-height: 1.5; color: var(--navy); margin-bottom: 12px; }
.article-meta { font-size: 13px; color: var(--text-sub); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.article-thumb { margin-bottom: 32px; }
.article-thumb img { width: 100%; border-radius: 10px; }
.article-tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a { font-size: 13px; color: var(--text-sub); border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; }
.article-tags a::before { content: "#"; }

/* 本文 */
.entry-content { font-size: 16px; line-height: 2; }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2 {
  font-size: 23px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--blue-light);
  border-left: 5px solid var(--blue);
  border-radius: 0 6px 6px 0;
  padding: 12px 18px;
  margin-top: 64px;
  scroll-margin-top: 84px;
}
.entry-content h3 {
  font-size: 20px;
  line-height: 1.5;
  color: var(--navy);
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin-top: 48px;
  scroll-margin-top: 84px;
}
.entry-content h4 { font-size: 17px; color: var(--navy); margin-top: 32px; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content strong { background: linear-gradient(transparent 60%, #fde2ee 60%); }
.entry-content ul { list-style: disc; padding-left: 1.5em; }
.entry-content ol { list-style: decimal; padding-left: 1.5em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote {
  border-left: 4px solid var(--line);
  background: #f7f9fb;
  padding: 16px 20px;
  color: var(--text-sub);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--blue-light); color: var(--navy); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 13px; color: var(--text-sub); text-align: center; margin-top: 8px; }
.entry-content img { border-radius: 6px; }

/* ワードプレスの基本クラス */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--text-sub); }

/* 目次 */
.toc {
  background: var(--blue-light);
  border-radius: 10px;
  padding: 20px 28px;
}
.toc-title { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.entry-content .toc ol { list-style: none; padding-left: 0; counter-reset: toc; }
.toc li { font-size: 15px; line-height: 1.7; }
.toc li + li { margin-top: 6px; }
.toc li.toc-h2 { counter-increment: toc; }
.toc li.toc-h2::before { content: counter(toc) ". "; color: var(--blue); font-weight: 700; }
.toc li.toc-h3 { padding-left: 1.6em; font-size: 14px; }
.toc li.toc-h3::before { content: "- "; color: var(--text-sub); }
.entry-content .toc a { color: var(--text); text-decoration: none; }
.entry-content .toc a:hover { color: var(--blue); text-decoration: underline; }

/* この記事を書いた人 */
.author-box {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 10px;
  padding: 24px 28px;
}
.author-label { font-size: 13px; color: var(--text-sub); }
.author-name { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.author-name span { font-size: 13px; font-weight: 400; color: var(--text-sub); margin-left: 4px; }
.author-bio { font-size: 15px; color: var(--text-sub); margin-bottom: 8px; }

/* お問い合わせ（送信完了・エラー） */
.form-errors { margin-bottom: 24px; }
.form-done p + p { margin-top: 16px; }

/* ===== スマホ用（ワードプレス追加分） ===== */
@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr; }
  .article { padding: 24px 0 48px; }
  .article-title { font-size: 23px; }
  .entry-content h2 { font-size: 20px; margin-top: 48px; }
  .entry-content h3 { font-size: 18px; }
  .toc { padding: 16px 20px; }
  .author-box { padding: 20px; }
  .alignleft, .alignright { float: none; margin: 0 0 1em; }
}
@media (min-width: 769px) and (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ログイン中の管理バーと、ヘッダーが重ならないように */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* メニューが5つあるので、タブレットの幅（1000px以下）からハンバーガーメニューにする */
.logo, .site-nav a { white-space: nowrap; }
@media (max-width: 1000px) {
  .menu-button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
  }
  .menu-button span { width: 24px; height: 2px; background: var(--navy); }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .site-nav a { padding: 12px 0; width: 100%; text-align: center; }
  .site-nav .nav-cta { margin-top: 8px; }
  .menu-toggle:checked ~ .site-nav { display: flex; }
}
/* =========================================================
   記事の飾り（クラシックエディタ用HTMLルールの sc_frame・sc_marker に対応）
   ========================================================= */
.sc_frame_wrap { margin: 2em 0; }
.sc_frame_title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  background: var(--blue);
  border-radius: 8px 8px 0 0;
  padding: 6px 16px;
}
.sc_frame_icon i { font-style: normal; }
.sc_frame_icon i span { display: none; } /* アイコン用の文字（fa-〇〇）は表示しない */
.sc_frame_icon i::before { content: "▶"; font-size: 11px; }
.sc_frame_icon .fa-ellipsis-v::before { content: "●"; }
.sc_frame {
  border: 2px solid var(--blue);
  border-radius: 0 8px 8px 8px;
  padding: 16px 20px;
}
.sc_frame.no-title { border-radius: 8px; }
.sc_frame.has-bg { background: var(--white); }
.sc_frame.shadow { box-shadow: 0 3px 10px rgba(27, 58, 92, 0.08); }
.entry-content .sc_frame ul { list-style: none; padding-left: 0; margin: 0; }
.entry-content .sc_frame li { position: relative; padding-left: 1.6em; }
.entry-content .sc_frame li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--blue); }

/* green：この記事のポイント・まとめ */
.sc_frame_wrap.green .sc_frame_title { background: #2e8b57; }
.sc_frame_wrap.green .sc_frame { border-color: #2e8b57; }
.sc_frame_wrap.green .sc_frame.has-bg { background: #f0f8f3; }
.sc_frame_wrap.green li::before { color: #2e8b57; }

/* yellow：この章のポイント・本文のリスト */
.sc_frame_wrap.yellow .sc_frame_title { background: #d9a400; }
.sc_frame_wrap.yellow .sc_frame { border-color: #e8c34a; }
.sc_frame_wrap.yellow .sc_frame.has-bg { background: #fffbea; }
.sc_frame_wrap.yellow li::before { color: #c99500; }

/* black：番号つきの手順 */
.sc_frame_wrap.black .sc_frame { border-color: var(--navy); }
.sc_frame_wrap.black .sc_frame.has-bg { background: #f4f6f9; }
.entry-content .sc_frame_wrap.black ul { counter-reset: step; }
.entry-content .sc_frame_wrap.black li { counter-increment: step; }
.entry-content .sc_frame_wrap.black li::before { content: counter(step) "."; color: var(--navy); }

/* マーカー（黄色） */
.sc_marker.y { background: linear-gradient(transparent 55%, #fff38a 55%); font-weight: 700; }
/* ワードプレスが自動で入れる空の段落（枠の中の余計なすき間）を消す */
.entry-content p:empty { display: none; }

/* お知らせ（受付開始日など）。カスタマイズで文を入れたときだけ表示 */
.notice-wrap { padding-top: 32px; }
.site-notice {
  background: #fdf1f6;
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 32px;
}
.site-notice-label {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 10px;
  margin-bottom: 6px;
}
.site-notice-text { color: var(--text); font-weight: 500; }
.notice-wrap .site-notice { margin-bottom: 0; }