/* ==========================================================
   WordPress で表示するための差分と、デザイナー HTML に無い部品。
   デザイナーの style.css は原本のまま使い、直したいことはここに書く。
   ========================================================== */

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

/* ---------- 準備中（12 月公開の機能へのリンク） ---------- */
.gnav__list .is-soon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}
.gnav__list .is-soon .gnav__main,
.gnav__list .is-soon .gnav__sub { opacity: 0.55; }
.soon-badge {
  margin-top: 2px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--c-cream);
  color: var(--c-green);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.gnav__btns .is-soon { opacity: 0.55; cursor: default; }

/* ---------- 一覧が空のとき・件数 ---------- */
.list-empty,
.theme__empty {
  padding: 24px 0;
  color: var(--c-text-sub);
  font-size: 15px;
  line-height: 1.9;
}
.theme__grid--single { grid-template-columns: 1fr; }
.results--single { grid-template-columns: 1fr; }

/* ---------- ページ送り ---------- */
.pager { margin-top: 48px; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--c-brown-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-brown);
  font-size: 15px;
}
.pager .page-numbers.current { background: var(--c-green-light); border-color: var(--c-green-light); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; }

/* ---------- コラム本文（デザイナー HTML は段落だけなので、見出し・リストなどを足す） ---------- */
.article__body > * + * { margin-top: 28px; }
.article__body h2 {
  margin-top: 64px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(122, 107, 98, 0.35);
  color: var(--c-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.08em;
}
.article__body h3 {
  margin-top: 48px;
  color: var(--c-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}
.article__body h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 6px 2px 6px 2px;
  background: var(--c-green-light);
  vertical-align: 0.1em;
}
.article__body ul,
.article__body ol {
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--c-cream);
  color: var(--c-text-body);
  font-size: 16px;
  line-height: 2;
}
.article__body ul li { position: relative; padding-left: 1.2em; }
.article__body ul li::before { content: "・"; position: absolute; left: 0; color: var(--c-green); }
.article__body ol { counter-reset: body-ol; }
.article__body ol li { position: relative; padding-left: 1.8em; counter-increment: body-ol; }
.article__body ol li::before { content: counter(body-ol) "."; position: absolute; left: 0; color: var(--c-green); font-family: var(--ff-en); font-weight: 700; }
.article__body li + li { margin-top: 6px; }
.article__body a { color: var(--c-green); text-decoration: underline; text-underline-offset: 3px; }
.article__body strong { color: var(--c-text); font-weight: 700; background: linear-gradient(transparent 65%, var(--c-pink-card) 65%); }
.article__body blockquote {
  margin: 0;
  padding: 20px 28px;
  border-left: 3px solid var(--c-green-light);
  background: #fff;
  color: var(--c-text-sub);
}
.article__body figure { margin: 0; }
.article__body img { border-radius: 16px; }
.article__body figcaption { margin-top: 8px; color: var(--c-text-sub); font-size: 13px; text-align: center; }
.article__body .wp-block-embed__wrapper { position: relative; }
.article__body iframe { max-width: 100%; }

/* 執筆者の写真 */
.author__logo--img { overflow: hidden; }
.author__logo--img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.author__logo--img img.wp-post-image { object-fit: cover; padding: 0; }

/* ---------- 専門家の方へ（「詳しく」の開閉） ---------- */
.recruit__details { margin-top: 16px; }
.recruit__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-green);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.recruit__toggle::-webkit-details-marker { display: none; }
.recruit__toggle::after { content: "▼"; font-size: 10px; transition: transform 0.2s; }
.recruit__details[open] .recruit__toggle::after { transform: rotate(180deg); }
.recruit__detail { margin-top: 16px; }
.recruit__detail p { color: var(--c-text-body); font-size: 15px; line-height: 2; }
.recruit__detail p + p { margin-top: 16px; }
.recruit__detail .recruit__action { margin-top: 28px; text-align: center; }
.recruit__pending { color: var(--c-text-sub); }

/* ---------- お問い合わせ ---------- */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { color: var(--c-text); font-size: 15px; line-height: 1.9; }
.form-message--error { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; background: var(--c-pink-card); color: var(--c-dark); }
.form-check__text a { color: var(--c-green); text-decoration: underline; text-underline-offset: 3px; }
.form-card--done { text-align: center; }

/* ---------- yohakuについて の章（中身は標準ブロック） ---------- */
.has-leaf::before {
  content: "";
  display: inline-block;
  width: 0.75em;
  min-width: 14px;
  max-width: 20px;
  aspect-ratio: 1;
  margin: -0.25em 0.45em 0 0;
  background: url("../img/icon-leaf.svg") center / contain no-repeat;
  vertical-align: middle;
}
:where(.about-sec__body) > p:not([class*="about-"]) {
  margin-top: 24px;
  color: var(--c-text-body);
  font-size: 16px;
  line-height: 2.2;
}
.about-sec__body > .btn-outline { margin-top: 24px; }
@media (max-width: 767px) {
  :where(.about-sec__body) > p:not([class*="about-"]) { margin-top: 18px; font-size: 14px; line-height: 2; }
}

/* ---------- 本文エリアに置いた標準ブロック ---------- */
.page-body figure { margin: 0; }
.page-body .wp-block-image img { border-radius: 16px; }
