/* 429-love.jp 自前統合CSS。
   旧構成: SWELL main.css / footer.css / single.css / swell_child/style.css 等を多数読み込み
   新構成: blocks.css(wp-block表示)+このsite.cssだけで完結
*/

/* ----- WP管理画面で追加されてた custom CSS (.card-table-2col / .card-table-multi) ----- */
.card-table-2col,
.card-table-multi {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
  line-height: 1.6;
}
.card-table-2col th,
.card-table-2col td,
.card-table-multi th,
.card-table-multi td {
  padding: 12px 15px;
  border: 1px solid #43A047;
  text-align: left;
  vertical-align: top;
}
.card-table-2col thead th,
.card-table-multi thead th {
  background-color: #43A047;
  color: #FFFFFF;
  font-weight: bold;
}
.card-table-2col tbody tr:nth-child(even),
.card-table-multi tbody tr:nth-child(even) {
  background-color: #E8F5E9;
}
@media screen and (max-width: 768px) {
  .card-table-2col { border: none; }
  .card-table-2col thead { display: none; }
  .card-table-2col tbody tr {
    display: block; margin-bottom: 15px;
    border: 2px solid #43A047; border-radius: 8px;
    overflow: hidden; background-color: #FFFFFF;
  }
  .card-table-2col tbody tr:nth-child(even) { background-color: #FFFFFF; }
  .card-table-2col tbody td {
    display: block; border: none;
    border-bottom: 1px solid #E8F5E9;
    padding: 10px 15px;
  }
}


:root {
  --color_main: #2e7d32;
  --color_text: #333;
  --color_link: #1176d4;
  --color_bg: #fdfdfd;
  --container_size: 1200px;
}

html, body {
  margin: 0;
  padding: 0;
  /* システムフォント優先 — Google Fontsを使わずレンダリングブロックを排除 */
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", YuGothic, Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  color: var(--color_text);
  background: var(--color_bg);
  line-height: 1.7;
}

a {
  color: var(--color_link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

/* container */
.l-container {
  max-width: var(--container_size);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* header (簡素化版) */
.l-header {
  background: #fff;
  border-top: solid 4px var(--color_main);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  gap: 24px;
}
.c-headLogo {
  font-weight: 700;
  font-size: 18px;
}
.c-headLogo__link {
  color: var(--color_text);
}
.c-gnav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}
.c-gnav li a {
  color: var(--color_text);
  font-size: 14px;
}
.c-gnav li a:hover {
  color: var(--color_main);
}

/* breadcrumb */
.p-breadcrumb {
  background: #f7f7f7;
  padding: 8px 0;
  font-size: 13px;
}
.p-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.p-breadcrumb__item {
  display: inline-flex;
  align-items: center;
}
.p-breadcrumb__item + .p-breadcrumb__item::before {
  content: "›";
  margin-right: 6px;
  color: #999;
}
.p-breadcrumb__text {
  color: #555;
}

/* main content */
.l-content {
  padding: 32px 16px;
}
.l-mainContent {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
@media (max-width: 599px) {
  .l-mainContent { padding: 16px; }
}

/* page title */
.c-pageTitle {
  font-size: 26px;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color_main);
}
.c-postTitle {
  margin-bottom: 24px;
}
.c-postTitle__ttl {
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.p-articleHead__meta {
  font-size: 13px;
  color: #888;
}
.p-articleEyecatch {
  margin: 0 0 28px;
}
.p-articleEyecatch img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ===== Top hero ===== */
.p-topHero {
  position: relative;
  margin: 0 -32px 32px;
  overflow: hidden;
  border-radius: 8px;
}
@media (max-width: 599px) {
  .p-topHero { margin: 0 -16px 24px; border-radius: 0; }
}
.p-topHero__inner {
  position: relative;
  aspect-ratio: 1024 / 434;
}
.p-topHero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-topHero__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0,0,0,.05) 1px, transparent 1px) 0 0 / 6px 6px,
              linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25));
}
.p-topHero__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,.2);
  padding: 16px;
  z-index: 2;
}
.p-topHero__title {
  font-size: clamp(20px, 3.5vw, 36px);
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.4;
}
.p-topHero__sub {
  font-size: clamp(13px, 1.8vw, 18px);
  margin: 0;
  font-weight: 500;
}

/* ===== Top 注目記事(元サイトのpostSlider相当を静的化) ===== */
.p-topPickup { margin: 0 0 40px; }
.p-topPickup__title {
  font-size: 18px;
  margin: 0 0 16px;
  padding: 0 0 6px 12px;
  border-left: 4px solid var(--color_main);
  color: #222;
  letter-spacing: .02em;
}
.p-topPickup__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 959px) {
  .p-topPickup__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 599px) {
  .p-topPickup__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.p-topPickup__item { margin: 0; }
.p-pickCard {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  color: var(--color_text);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  height: 100%;
}
.p-pickCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  text-decoration: none;
}
.p-pickCard__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
  overflow: hidden;
}
.p-pickCard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-pickCard__cat {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: var(--color_main);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: .04em;
}
.p-pickCard__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.p-pickCard__title {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  color: #222;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-pickCard__time {
  font-size: 11px;
  color: #888;
  margin-top: auto;
}
.p-topContent { margin-top: 32px; }

/* ===== SWELL .p-postList カード型グリッド再現(本文 content_html 内のレイアウト) ===== */
.p-postListWrap { margin: 2em 0; }
.p-postList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.p-postList.-pc-col4 { grid-template-columns: repeat(4, 1fr); }
.p-postList.-pc-col2 { grid-template-columns: repeat(2, 1fr); }
.p-postList.-pc-col1 { grid-template-columns: 1fr; }
@media (max-width: 959px) {
  .p-postList { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .p-postList { grid-template-columns: 1fr; gap: 12px; }
  .p-postList.-sp-col2 { grid-template-columns: repeat(2, 1fr); }
  /* スマホ1列時は横長カード(画像左+本文右)に */
  .p-postList.-sp-col1 .p-postList__link { flex-direction: row; align-items: stretch; }
  .p-postList.-sp-col1 .p-postList__thumb { flex: 0 0 110px; aspect-ratio: 1 / 1; }
  .p-postList.-sp-col1 .p-postList__body { padding: 10px 12px; }
  .p-postList.-sp-col1 .p-postList__title { font-size: 13px; }
}
.p-postList__item { margin: 0; list-style: none; }
.p-postList__link {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  color: var(--color_text);
  text-decoration: none;
  height: 100%;
  transition: transform .15s, box-shadow .15s;
}
.p-postList__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  text-decoration: none;
}
.p-postList__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
}
.p-postList__thumb img,
.p-postList__thumb .c-postThumb__figure img,
.c-postThumb__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.c-postThumb__figure { margin: 0; }
.p-postList__body { padding: 12px 14px 14px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.p-postList__title {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: #222;
  font-weight: 600;
}
.p-postList__meta { font-size: 11px; color: #888; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.p-postList__times { display: inline-flex; gap: 6px; }
.p-postList__times time { color: #888; }
.p-postList__cat {
  display: inline-block;
  background: var(--color_main);
  color: #fff;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
}

/* WP h2/h3 alignwide(content_htmlに出てくる) */
.wp-block-heading.alignwide { max-width: 100%; }


/* post content (WPブロック互換の最低限) */
.post_content { font-size: 16px; line-height: 1.8; }
.post_content h2 {
  font-size: 22px;
  margin: 2em 0 1em;
  padding: 12px 16px;
  background: var(--color_main);
  color: #fff;
  border-radius: 4px;
}
.post_content h3 {
  font-size: 19px;
  margin: 1.8em 0 .8em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color_main);
}
.post_content h4 {
  font-size: 17px;
  margin: 1.5em 0 .6em;
  padding-left: 12px;
  border-left: 3px solid var(--color_main);
}
.post_content p { margin: 1em 0; }
.post_content ul, .post_content ol { margin: 1em 0 1em 1.5em; }
.post_content li { margin-bottom: .3em; }
.post_content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
}
.post_content table th, .post_content table td {
  border: 1px solid #ddd;
  padding: 10px;
  vertical-align: top;
}
.post_content table th,
.post_content table thead th,
.post_content table thead tr th {
  color: #fff;
  background: var(--color_main, #2e7d32);
  font-weight: 700;
  text-align: left;
}
.post_content figure.wp-block-table { margin: 1.5em 0; overflow-x: auto; }
.post_content figure.wp-block-table table { margin: 0; }
.post_content blockquote {
  border-left: 4px solid var(--color_main);
  padding: 12px 16px;
  margin: 1.5em 0;
  background: #fafafa;
}

/* footer */
.l-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 32px 0;
  margin-top: 64px;
}
.l-footer__nav {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 24px;
  margin: 0 0 16px;
  padding: 0;
  flex-wrap: wrap;
}
.l-footer__nav li a {
  color: var(--color_text);
  font-size: 14px;
}
.copyright {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin: 0;
}

@media (max-width: 599px) {
  .l-header__inner { flex-direction: column; gap: 12px; padding: 12px; }
  .c-gnav { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
