/* =========================================================
   pages.css — 下層ページ（archive / single / contact 等）
   ========================================================= */

/* =========================================================
   投稿本文 WYSIWYG（the_content 出力）
   ========================================================= */
.c-wysiwyg { font-size: 1.6rem; line-height: 1.95; }
.c-wysiwyg > * + * { margin-top: 1.4em; }
.c-wysiwyg h2 {
  font-size: 2.2rem;
  margin-top: 2em;
  padding: 12px 0 12px 16px;
  border-left: 5px solid var(--c-green);
  background: var(--c-green-light);
  border-radius: 0 6px 6px 0;
}
.c-wysiwyg h3 {
  font-size: 1.9rem;
  margin-top: 1.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-border);
}
.c-wysiwyg h4 { font-size: 1.7rem; margin-top: 1.6em; color: var(--c-green-dark); }
.c-wysiwyg p { line-height: 1.95; }
.c-wysiwyg a { color: var(--c-green-dark); text-decoration: underline; }
.c-wysiwyg a:hover { color: var(--c-green); }
.c-wysiwyg strong { font-weight: 700; }
.c-wysiwyg ul,
.c-wysiwyg ol { padding-left: 1.6em; }
.c-wysiwyg ul { list-style: disc; }
.c-wysiwyg ol { list-style: decimal; }
.c-wysiwyg li { margin-top: .5em; }
.c-wysiwyg li::marker { color: var(--c-green); }
.c-wysiwyg img { border-radius: 8px; height: auto; }
.c-wysiwyg figure { margin: 1.6em 0; }
.c-wysiwyg figcaption { font-size: 1.3rem; color: var(--c-text-muted); text-align: center; margin-top: 8px; }
.c-wysiwyg blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: var(--c-bg-soft);
  border-left: 4px solid var(--c-green);
  border-radius: 0 8px 8px 0;
  color: var(--c-text);
}
.c-wysiwyg blockquote p { margin: 0; }
.c-wysiwyg table {
  width: 100%;
  border: 1px solid var(--c-border);
  font-size: 1.45rem;
}
.c-wysiwyg th,
.c-wysiwyg td {
  border: 1px solid var(--c-border);
  padding: 12px 14px;
  text-align: left;
}
.c-wysiwyg th { background: var(--c-green-light); font-weight: 700; }
.c-wysiwyg code {
  background: var(--c-bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.c-wysiwyg hr { border: none; border-top: 1px solid var(--c-border); margin: 2em 0; }
.c-wysiwyg .wp-caption { max-width: 100%; }
.c-wysiwyg .aligncenter { margin-inline: auto; }
.c-wysiwyg .alignright { float: right; margin: 0 0 1em 1.5em; }
.c-wysiwyg .alignleft { float: left; margin: 0 1.5em 1em 0; }

/* =========================================================
   single（記事詳細）
   ========================================================= */
.p-single__head { margin-bottom: 24px; }
.p-single__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.p-single__date { font-weight: 700; color: var(--c-green-dark); font-size: 1.4rem; }
.p-single__title {
  font-size: 2.4rem;
  line-height: 1.5;
}
@media (min-width: 1024px) { .p-single__title { font-size: 3rem; } }
.p-single__eyecatch { margin-bottom: 28px; border-radius: 12px; overflow: hidden; }
.p-single__eyecatch img { width: 100%; height: auto; }

.p-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
}
.p-post-nav a {
  display: block;
  font-size: 1.4rem;
  color: var(--c-text);
}
.p-post-nav a:hover { color: var(--c-green-dark); }
.p-post-nav__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--c-green-dark);
  font-size: 1.2rem;
  font-weight: 700;
}
/* ラベルの矢印（線で描くのでフォントに左右されない） */
.p-post-nav__label::before,
.p-post-nav__label::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.p-post-nav__prev .p-post-nav__label::after,
.p-post-nav__next .p-post-nav__label::before { content: none; }
.p-post-nav__prev .p-post-nav__label::before { transform: rotate(-135deg); }
.p-post-nav__next .p-post-nav__label::after  { transform: rotate(45deg); }
.p-post-nav__title {
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.6;
}
.p-post-nav__next { text-align: right; }
.p-post-nav__next .p-post-nav__label { justify-content: flex-end; }
.p-post-nav a:hover .p-post-nav__label { color: var(--c-green); }
.p-single__back { text-align: center; margin-top: 32px; }

/* =========================================================
   contact
   ========================================================= */
.p-contact__lead { text-align: center; margin-bottom: 28px; }
.p-contact__tel {
  text-align: center;
  background: var(--c-green-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
}
.p-contact__tel-label { font-weight: 700; margin-bottom: 10px; }
.p-contact__form { margin-top: 8px; }

/* =========================================================
   404
   ========================================================= */
.p-404 { text-align: center; }
.p-404__code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--c-green-light);
  line-height: 1;
}
@media (min-width: 1024px) { .p-404__code { font-size: 12rem; } }
.p-404__title { font-size: 2.4rem; margin: 8px 0 16px; }
.p-404__text { color: var(--c-text); }
.p-404__actions { margin: 32px 0; }
.p-404__tel {
  background: var(--c-green-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 480px;
  margin: 0 auto;
}
.p-404__tel-label { font-weight: 700; margin-bottom: 10px; }
