/* パパトコト — サイト全体の見た目 */

:root {
  --main: #7dd63e;
  --main-dark: #4f9a1c;
  --main-thin: #f3fbec;
  --text: #333;
  --muted: #777;
  --link: #1176d4;
  --bg: #fdfdfd;
  --card: #fff;
  --border: #e6e6e6;
  --marker: #fcf69f;
  --red: #e44141;
  --blue: #3d79d5;
  --orange: #f09f4d;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

a { color: var(--link); }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* ---------- ヘッダー・フッター ---------- */

.site-header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-logo img { width: 240px; max-width: 60vw; height: auto; display: block; }
.site-nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 14px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-color: var(--main); }

.site-footer {
  margin-top: 64px;
  padding: 32px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
}
.site-footer__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__nav a { color: var(--text); text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__copy { color: var(--muted); margin: 16px 0 0; }

/* ---------- レイアウト ---------- */

.main { max-width: 800px; margin: 0 auto; padding: 16px 16px 0; }
.main--wide { max-width: 1080px; }

.breadcrumb { font-size: 12px; color: var(--muted); margin: 4px 0 16px; }
.breadcrumb a { color: var(--muted); }

.list-title {
  font-size: 20px;
  margin: 8px 0 20px;
  padding-left: 12px;
  border-left: 4px solid var(--main);
  line-height: 1.4;
}

/* ---------- 記事カード（一覧） ---------- */

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.cards--small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.card a:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transform: translateY(-2px); }
.card__thumb { aspect-ratio: 1200 / 630; background: var(--main-thin); overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__thumb--none, .blogcard__thumb--none {
  display: flex; align-items: center; justify-content: center; color: var(--main-dark); font-weight: bold;
}
.card__body { padding: 12px 14px 14px; }
.card__title { font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.cards--small .card__title { font-size: 14px; }
.card__meta { margin: 0; font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.card__cat { background: var(--main); color: #fff; padding: 0 8px; border-radius: 3px; }

.pager { display: flex; justify-content: center; gap: 8px; margin: 32px 0 0; }
.pager a, .pager__cur {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--main); text-decoration: none; color: var(--main-dark);
}
.pager__cur { background: var(--main); color: #fff; }

/* ---------- 記事ページ ---------- */

.entry {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
@media (min-width: 600px) { .entry { padding: 40px 48px 48px; } }

.entry__title { font-size: 24px; line-height: 1.5; margin: 0 0 12px; }
@media (min-width: 600px) { .entry__title { font-size: 28px; } }
.entry__meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 20px; }
.entry__cat { background: var(--main); color: #fff; padding: 0 10px; border-radius: 3px; text-decoration: none; }
.entry__eyecatch { margin: 0 0 24px; }
.entry__eyecatch img { width: 100%; border-radius: var(--radius); }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0; }
.prevnext a {
  display: block; padding: 12px 14px; background: var(--card); border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08); text-decoration: none; color: var(--text); font-size: 14px; line-height: 1.5;
}
.prevnext span { display: block; font-size: 12px; color: var(--main-dark); margin-bottom: 4px; }
.prevnext__next { grid-column: 2; text-align: right; }
.related__title { font-size: 20px; border-left: 4px solid var(--main); padding-left: 12px; line-height: 1.4; }

/* ---------- 目次 ---------- */

.toc {
  border: 2px solid var(--main);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin: 24px 0 40px;
  background: var(--main-thin);
}
.toc summary { font-weight: bold; cursor: pointer; }
.toc ol { margin: 8px 0 0; padding-left: 1.4em; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc ol ol { margin: 2px 0 4px; padding-left: 1em; list-style: none; font-size: 14px; }
.toc ol ol li::before { content: "- "; color: var(--muted); }

/* ---------- 本文 ---------- */

.content > * { margin-top: 0; margin-bottom: 1.6em; }
.content h2 {
  font-size: 21px;
  line-height: 1.5;
  background: var(--main);
  color: #fff;
  padding: 12px 16px;
  border-radius: 4px;
  margin: 2.6em 0 1.2em;
}
.content h3 {
  font-size: 19px;
  line-height: 1.5;
  padding: 0 0 8px;
  margin: 2.2em 0 1em;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, var(--main) 0%, var(--main) 30%, #ddd 30%) 1;
}
.content h4 {
  font-size: 17px;
  padding-left: 12px;
  border-left: 3px solid var(--main);
  margin: 2em 0 1em;
}
.content ul, .content ol { padding-left: 1.5em; }
.content li { margin-bottom: .3em; }
.content table { border-collapse: collapse; width: 100%; font-size: 14px; }
.content th, .content td { border: 1px solid #ddd; padding: 8px 10px; vertical-align: top; }
.content th, .content thead td { background: var(--main-thin); }
.wp-block-table { overflow-x: auto; margin-left: 0; margin-right: 0; }
.wp-block-table table { min-width: 520px; }
.content figure { margin-left: 0; margin-right: 0; }
.content figcaption, .wp-element-caption { font-size: 13px; color: var(--muted); text-align: center; }
.content blockquote, .wp-block-quote {
  margin: 0 0 1.6em; padding: 16px 20px; background: #f7f7f7; border-left: 4px solid #ccc;
}
.content blockquote > :last-child { margin-bottom: 0; }

.has-text-align-center, .aligncenter { text-align: center; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.is-style-rounded img { border-radius: 9999px; }

/* 文字の装飾 */
.swl-marker.mark_yellow, .mark_yellow { background: linear-gradient(transparent 64%, var(--marker) 0%); }
.has-swl-deep-01-color { color: var(--red) !important; }
.has-black-color { color: #000 !important; }
.has-cocoon-white-color { color: #fff !important; }
.has-blue-background-color { background-color: var(--blue) !important; }
.u-col-main { color: var(--main-dark); }
.u-fz-xs { font-size: .75em; }
.u-fz-m { font-size: 1.1em; }
.u-fz-l { font-size: 1.2em; }
.marker-under { background: linear-gradient(transparent 60%, #ffff66 60%); }
.marker-under-blue { background: linear-gradient(transparent 60%, #b0e0ff 60%); }
.marker-under-red { background: linear-gradient(transparent 60%, #ffb8b8 60%); }
.bold { font-weight: bold; }
.bold-red { font-weight: bold; color: var(--red); }
.bold-blue { font-weight: bold; color: var(--blue); }

/* 段組み */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5em; align-items: flex-start; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column > :last-child { margin-bottom: 0; }
@media (max-width: 599px) {
  .wp-block-columns { flex-direction: column; }
  .wp-block-column { flex-basis: 100% !important; width: 100%; }
}

/* チェックリスト・番号リスト */
.is-style-check_list, .is-style-num_circle { list-style: none; padding-left: 0; }
.is-style-check_list li, .is-style-num_circle li { position: relative; padding-left: 1.8em; }
.is-style-check_list li::before {
  content: "✓"; position: absolute; left: .2em; top: 0; color: var(--main); font-weight: bold;
}
.is-style-num_circle { counter-reset: num; }
.is-style-num_circle li::before {
  counter-increment: num; content: counter(num);
  position: absolute; left: 0; top: .3em; width: 1.4em; height: 1.4em; line-height: 1.4em;
  border-radius: 50%; background: var(--main); color: #fff; font-size: .85em; text-align: center;
}

/* 囲み・アイコン付きボックス */
.wp-block-group.has-border, .has-border.-border02 { border: 2px solid #ddd; border-radius: var(--radius); padding: 1.2em 1.4em; }
.wp-block-group[class*="is-style-big_icon_"] {
  position: relative; padding: 1.2em 1.4em 1.2em 4.2em; border-radius: var(--radius); background: #f7f7f7;
}
.wp-block-group[class*="is-style-big_icon_"]::before {
  position: absolute; left: .9em; top: 1em; font-size: 1.8em; line-height: 1;
}
.wp-block-group > :last-child { margin-bottom: 0; }
.is-style-big_icon_point { background: #fff5f0 !important; }
.is-style-big_icon_point::before { content: "👉"; }
.is-style-big_icon_memo { background: #f8f6ef !important; }
.is-style-big_icon_memo::before { content: "📝"; }
.is-style-big_icon_good { background: #ecffe9 !important; }
.is-style-big_icon_good::before { content: "👍"; }
.is-style-big_icon_caution { background: #fffbe5 !important; }
.is-style-big_icon_caution::before { content: "⚠️"; }
.is-style-big_icon_hatena { background: #eafaff !important; }
.is-style-big_icon_hatena::before { content: "❓"; }

.cap_box { border: 2px solid var(--main); border-radius: var(--radius); overflow: hidden; }
.cap_box_ttl { background: var(--main); color: #fff; font-weight: bold; padding: 6px 16px; }
.cap_box_content { padding: 16px; }
.cap_box_content > :last-child { margin-bottom: 0; }
.is-style-onborder_ttl2 { border: 2px solid #ddd; border-radius: var(--radius); padding: 1.2em; }

.blank-box.sticky { background: #fff9e5; border-left: 5px solid #ffd54f; padding: 1em 1.2em; }
.blank-box > :last-child { margin-bottom: 0; }

/* ステップ（ランキングなど） */
.swell-block-step { counter-reset: step; }
.swell-block-step__item { position: relative; padding: 0 0 1.6em 3.6em; border-left: 2px solid transparent; }
.swell-block-step__item::after {
  content: ""; position: absolute; left: 1.35em; top: 2.6em; bottom: 0; border-left: 2px dotted #ccc;
}
.swell-block-step__item:last-child::after { display: none; }
.swell-block-step__number {
  position: absolute; left: 0; top: 0; width: 2.8em; height: 2.8em; border-radius: 50%;
  background: var(--main); color: #fff; display: flex; flex-direction: column; align-items: center;
  justify-content: center; line-height: 1; font-size: 14px;
}
.swell-block-step__number::after { counter-increment: step; content: counter(step); font-size: 16px; font-weight: bold; }
.swell-block-step__number .__label { font-size: 9px; }
.swell-block-step__title { font-weight: bold; margin-bottom: .6em; padding-top: .4em; }
.swell-block-step__body > :last-child { margin-bottom: 0; }

/* レビュー（星） */
.swell-block-review-box { border: 2px solid var(--orange); border-radius: var(--radius); padding: 1em 1.2em; }
.review_box__title { font-weight: bold; }
.review_box__stars { color: var(--orange); }
.u-icon-star::before { content: "★"; }
.u-icon-star-half::before { content: "☆"; }
.u-icon-star-empty::before { content: "☆"; }

/* ボタン */
.swell-block-button, .btn-wrap, .contact { text-align: center; }
.swell-block-button__link, .btn-wrap a, .button {
  display: inline-block; min-width: 60%; max-width: 100%; padding: 14px 28px; border-radius: 80px;
  background: var(--blue); color: #fff !important; font-weight: bold; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: opacity .2s;
}
.swell-block-button.red_ .swell-block-button__link { background: var(--red); }
.swell-block-button.green_ .swell-block-button__link { background: var(--main-dark); }
.swell-block-button__link:hover, .btn-wrap a:hover, .button:hover { opacity: .85; }
.contact--pending { background: #f7f7f7; padding: 1.2em; border-radius: var(--radius); }

/* タブ */
.swell-block-tab .c-tabList { display: flex; list-style: none; padding: 0; margin: 0; gap: 4px; flex-wrap: wrap; }
.swell-block-tab .c-tabList__item { margin: 0; }
.swell-block-tab .c-tabList__button {
  font: inherit; font-size: 14px; font-weight: bold; padding: 8px 16px; cursor: pointer;
  border: none; border-radius: 6px 6px 0 0; background: #eee; color: var(--text);
}
.swell-block-tab .c-tabList__button:empty { display: none; }
.swell-block-tab .c-tabList__button[aria-selected="true"] { background: var(--main); color: #fff; }
.swell-block-tab .c-tabBody { border: 2px solid var(--main); border-radius: 0 6px 6px 6px; padding: 1em 1.2em; }
.swell-block-tab .c-tabBody__item[aria-hidden="true"] { display: none; }
.swell-block-tab .c-tabBody__item > :last-child { margin-bottom: 0; }

/* 吹き出し */
.balloon, .speech-wrap { display: flex; gap: 16px; align-items: flex-start; }
.balloon__icon, .speech-person { flex: 0 0 72px; text-align: center; font-size: 11px; color: var(--muted); }
.balloon__icon img, .speech-icon-image { width: 72px; height: 72px; border-radius: 50%; border: 1px solid #ddd; background: #fff; }
.speech-icon { margin: 0; }
.balloon__name, .speech-name { display: block; margin-top: 2px; }
.balloon__text, .speech-balloon {
  position: relative; flex: 1; min-width: 0; background: #fff; border: 2px solid #ddd; border-radius: 10px; padding: 12px 16px;
}
.balloon__text::before, .speech-balloon::before {
  content: ""; position: absolute; left: -10px; top: 22px; border: 8px solid transparent; border-right-color: #ddd; border-left: 0;
}
.balloon__text > :last-child, .speech-balloon > :last-child { margin-bottom: 0; }
.speech-balloon > :first-child, .balloon__text > :first-child { margin-top: 0; }

/* 記事リンクカード */
.blogcard {
  display: flex; gap: 14px; align-items: center; margin: 0 0 1.6em; padding: 12px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.blogcard:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }
.blogcard__thumb { flex: 0 0 34%; max-width: 200px; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: 4px; background: var(--main-thin); }
.blogcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.blogcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.blogcard__label { font-size: 11px; color: #fff; background: var(--main); align-self: flex-start; padding: 0 8px; border-radius: 3px; }
.blogcard__title { font-weight: bold; line-height: 1.5; }
.blogcard__desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 599px) { .blogcard__desc { display: none; } }

.embed-twitter { display: flex; justify-content: center; }

/* 記事一覧ページ */
.archive-list { list-style: none; padding: 0; }
.archive-list li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #ddd; margin: 0; }
.archive-list time { flex: 0 0 auto; color: var(--muted); font-size: 14px; }
