/* =========================================================================
   ファーマネクスト B案 コンポーネントCSS（実CSSはここに記述。style.cssはヘッダーのみ）
   ========================================================================= */

/* --- デザイントークン --- */
:root {
  --pn-bg: #FBF9F5;
  --pn-card: #FFFFFF;
  --pn-primary: #1FA98F;
  --pn-primary-d: #15876F;
  --pn-accent: #FF8A6B;
  --pn-accent-d: #E8693F;
  --pn-mint: #E8F6F2;
  --pn-peach: #FFF1EB;
  --pn-honey: #FFC75A;
  --pn-honey-bg: #FFF6E0;
  --pn-text: #2E3A38;
  --pn-sub: #8B9794;
  --pn-line: #ECEAE4;
  --pn-shadow: 0 8px 24px rgba(40, 60, 55, 0.08);
  --pn-shadow-lg: 0 16px 40px rgba(40, 60, 55, 0.12);
  --pn-maxw: 1440px;
  --pn-pad: 56px;
}

/* --- 親SWELLの body / 既定スタイルを上書き --- */
body.pn-body {
  margin: 0;
  background: var(--pn-bg);
  color: var(--pn-text);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  line-height: 1.7;
  font-feature-settings: 'palt' 1;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

.pn,
.pn * {
  box-sizing: border-box;
}

.pn a {
  text-decoration: none;
  color: inherit;
  transition: opacity .15s, box-shadow .2s, transform .2s;
}

.pn img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pn h1,
.pn h2,
.pn h3,
.pn h4,
.pn p,
.pn ul,
.pn ol {
  margin: 0;
}

.pn ul,
.pn ol {
  list-style: none;
  padding: 0;
}

.pn-ico {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 48;
  display: inline-block;
  vertical-align: middle;
}

/* セクション共通 */
.pn-section {
  max-width: var(--pn-maxw);
  margin: 0 auto;
  padding: 48px var(--pn-pad);
}

.pn-sectionhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.pn-sectionhead__l {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pn-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--pn-primary);
}

.pn-h2 {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pn-h2__ico {
  font-size: 30px;
  color: var(--pn-primary);
}

.pn-h2__ico--honey {
  color: var(--pn-honey);
}

.pn-sectionhead__r {
  font-size: 15px;
  font-weight: 700;
  color: var(--pn-sub);
}

/* --- ボタン / ピル（.pn a{color:inherit} に負けないよう .pn 接頭辞で詳細度を上げる） --- */
.pn-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  border: none;
}

.pn-btn .pn-ico {
  font-size: 20px;
}

.pn .pn-btn--white {
  background: #fff;
  color: var(--pn-accent-d);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.pn .pn-btn--honey {
  background: var(--pn-honey);
  color: #5A3A12;
  box-shadow: var(--pn-shadow);
}

.pn .pn-btn--accent {
  background: var(--pn-accent);
  color: #fff;
  box-shadow: var(--pn-shadow);
}

.pn .pn-btn--ghost {
  background: #fff;
  color: var(--pn-primary-d);
  box-shadow: var(--pn-shadow);
  font-weight: 700;
  padding: 11px 22px;
  font-size: 15px;
}

.pn-btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.pn-btn:hover {
  transform: translateY(-2px);
}

/* --- ヘッダー --- */
.pn-header {
  background: var(--pn-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ログイン中の管理バー分だけ追従位置を下げる */
.admin-bar .pn-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .pn-header {
    top: 46px;
  }
}

.pn-header__inner {
  max-width: var(--pn-maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pn-pad);
}

.pn-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.pn-logo__icon {
  font-size: 36px;
}

.pn-logo__name {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: .02em;
}

/* カスタムロゴ画像（外観>カスタマイズ>ロゴ）。ティール背景に白抜きで表示 */
.pn-logo--img {
  display: flex;
  align-items: center;
}

.pn-logo--img .custom-logo {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.pn-logo--img .pn-logo__img {
  height: 44px;
  width: auto;
  display: block;
}

.pn-footer__logo .pn-footer__logoimg {
  height: 40px;
  width: auto;
  display: block;
}

.pn-gnav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 19px;
}

.pn-gnav__list a {
  color: #EAFBF6;
}

.pn-gnav__list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pn-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pn-search-btn,
.pn-burger {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pn-search-btn .pn-ico,
.pn-burger .pn-ico {
  font-size: 24px;
}

.pn-burger {
  display: none;
}

/* ヘッダー検索フォーム（ボタンクリックで展開） */
.pn-search {
  position: relative;
}

.pn-searchform {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 8px;
  border-radius: 999px;
  box-shadow: var(--pn-shadow-lg);
  z-index: 120;
}

.pn-search.is-open .pn-searchform {
  display: flex;
}

.pn-search.is-open .pn-search-btn {
  background: rgba(255, 255, 255, .35);
}

.pn-searchform__input {
  width: 240px;
  max-width: 60vw;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 8px 12px;
  color: var(--pn-text);
}

.pn-searchform__submit {
  flex: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--pn-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pn-searchform__submit .pn-ico {
  font-size: 20px;
}

.pn-drawer {
  display: none;
  background: var(--pn-primary-d);
}

.pn-drawer ul {
  padding: 8px var(--pn-pad) 18px;
  list-style: none;
  margin: 0;
}

.pn-drawer a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.pn-drawer.is-open {
  display: block;
}

.pn-main {
  display: block;
}

/* --- ① ヒーロー --- */
.pn-hero {
  background: var(--pn-accent);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pn-hero__deco {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.pn-hero__deco--1 {
  right: -90px;
  bottom: -90px;
  width: 320px;
  height: 320px;
}

.pn-hero__deco--2 {
  left: 40%;
  top: -60px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, .1);
}

.pn-hero__inner {
  position: relative;
  max-width: var(--pn-maxw);
  margin: 0 auto;
  padding: 54px var(--pn-pad) 58px;
}

.pn-hero__track {
  position: relative;
}

.pn-hero__slide {
  display: none;
  gap: 40px;
  align-items: center;
}

.pn-hero__slide.is-active {
  display: flex;
  animation: pnHeroIn .5s ease;
}

@keyframes pnHeroIn {
  from {
    opacity: 0;
    transform: translateX(16px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.pn-hero__text {
  flex: 1.2;
  min-width: 0;
}

.pn-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--pn-accent-d);
  font-weight: 900;
  font-size: 17px;
  padding: 9px 20px;
  border-radius: 999px;
}

.pn-hero__pill .pn-ico {
  font-size: 19px;
}

.pn-hero__title {
  margin: 20px 0 0;
  font-weight: 900;
  font-size: 48px;
  line-height: 1.38;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .06);
}

.pn-hero__title a {
  color: #fff;
}

.pn-hero__title strong {
  color: #fff;
}

.pn-hero__title mark {
  background: var(--pn-honey);
  color: #5A3A12;
  padding: 0 14px;
  border-radius: 10px;
}

.pn-hero__lead {
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.7;
  color: #FFEDE6;
  font-weight: 500;
}

.pn-hero .pn-btn--white {
  margin-top: 28px;
  font-size: 21px;
  padding: 16px 36px;
}

.pn-hero__media {
  flex: none;
  position: relative;
}

.pn-hero__char {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  background: #fff;
}

.pn-hero__thumb {
  width: 360px;
  aspect-ratio: 1200/630;
  border-radius: 20px;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  background: #fff;
}

.pn-sfx {
  position: absolute;
  top: -6px;
  left: -34px;
  background: var(--pn-honey);
  color: #5A3A12;
  font-weight: 900;
  font-size: 22px;
  padding: 10px 20px;
  border-radius: 999px;
  transform: rotate(-8deg);
  box-shadow: var(--pn-shadow);
  white-space: nowrap;
}

.pn-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .9);
  color: var(--pn-accent-d);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--pn-shadow);
  z-index: 3;
}

.pn-hero__nav .pn-ico {
  font-size: 26px;
}

.pn-hero__nav--prev {
  left: 8px;
}

.pn-hero__nav--next {
  right: 8px;
}

.pn-hero__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  position: relative;
  z-index: 3;
}

.pn-hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
}

.pn-hero__dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

@keyframes pnFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-10px)
  }
}

.pn-float {
  animation: pnFloat 3.6s ease-in-out infinite;
}

/* --- ② カテゴリーから探す（E3型） --- */
.pn-catfind .pn-sectionhead {
  padding-top: 28px;
  border-top: 2px solid var(--pn-text);
}

.pn-catfind__grid {
  display: flex;
  gap: 44px;
}

.pn-cattabs {
  flex: none;
  width: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.pn-cattab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.pn-cattab__bar {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: transparent;
  flex: none;
}

.pn-cattab__name {
  font-weight: 700;
  font-size: 16px;
  flex: 1;
}

.pn-cattab__count {
  font-size: 12px;
  color: var(--pn-sub);
  font-weight: 700;
}

.pn-cattab.is-active {
  background: var(--cat-bg);
}

.pn-cattab.is-active .pn-cattab__bar {
  background: var(--cat);
}

.pn-cattab:hover {
  background: var(--cat-bg);
}

.pn-catpreview {
  flex: 1;
  border-left: 1px solid var(--pn-line);
  padding-left: 44px;
  position: relative;
}

.pn-catpanel {
  display: none;
}

.pn-catpanel.is-active {
  display: block;
}

.pn-catpanel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--pn-line);
  margin-bottom: 6px;
}

.pn-catpanel__name {
  font-size: 24px;
  font-weight: 900;
  color: var(--cat);
}

.pn-catpanel__meta {
  font-size: 14px;
  color: var(--pn-sub);
  font-weight: 700;
}

.pn-catpanel__more {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--pn-primary-d);
  display: inline-flex;
  align-items: center;
}

.pn-catpanel__more .pn-ico {
  font-size: 18px;
}

.pn-catitem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--pn-line);
}

.pn-catitem__new {
  background: var(--pn-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  flex: none;
}

.pn-catitem__title {
  font-weight: 700;
  font-size: 17px;
  flex: 1;
  line-height: 1.5;
}

.pn-catitem:hover .pn-catitem__title {
  color: var(--pn-primary-d);
}

.pn-catitem__date {
  font-size: 13px;
  color: var(--pn-sub);
  flex: none;
}

.pn-catitem--empty {
  color: var(--pn-sub);
}

/* --- 記事カード（共通パーツ） --- */
.pn-cardgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pn-cardgrid--2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.pn-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--pn-shadow);
  border-top: 6px solid var(--cat);
}

.pn-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pn-shadow-lg);
}

.pn-card__thumb {
  aspect-ratio: 1200 / 630;
  background: var(--cat-bg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pn-card__thumbicon {
  font-size: 60px;
  color: var(--cat);
}

.pn-card__new {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--pn-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.pn-card__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.pn-tag {
  background: var(--cat);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
}

.pn-tag--lg {
  font-size: 14px;
  padding: 7px 16px;
}

.pn-card__title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: var(--pn-text);
}

.pn-card__date {
  font-size: 15px;
  color: var(--pn-sub);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pn-card__date .pn-ico {
  font-size: 16px;
}

/* ③ 新着記事 */
.pn-newposts {
  background: var(--pn-mint);
  max-width: none;
}

.pn-newposts>* {
  max-width: var(--pn-maxw);
  margin-left: auto;
  margin-right: auto;
}

/* ④ 人気ランキング */
.pn-ranking__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 30px;
}

.pn-rankrow {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-radius: 16px;
  background: #F4F1EB;
}

.pn-rankrow.is-top {
  background: var(--pn-peach);
}

.pn-rankrow__num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #B7BFBC;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.pn-rankrow.is-top .pn-rankrow__num {
  background: var(--pn-accent);
}

.pn-rankrow__title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
}

.pn-rankrow:hover .pn-rankrow__title {
  color: var(--pn-primary-d);
}

/* ⑤ 入門ガイドCTA */
.pn-guidecta {
  background: var(--pn-primary);
  border-radius: 24px;
  padding: 30px 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #fff;
}

.pn-guidecta__char {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  background: #fff;
  flex: none;
  box-shadow: var(--pn-shadow);
}

.pn-guidecta__text {
  flex: 1;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.5;
}

.pn-guidecta__text strong {
  color: var(--pn-honey);
}

/* --- ② カテゴリ一覧ページ --- */
.pn-archhead {
  background: var(--cat-bg);
}

.pn-archhead__inner {
  max-width: var(--pn-maxw);
  margin: 0 auto;
  padding: 34px var(--pn-pad) 40px;
}

.pn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--pn-sub);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.pn-breadcrumb a:hover {
  color: var(--pn-primary-d);
}

.pn-breadcrumb .pn-ico {
  font-size: 16px;
}

.pn-archhead__row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pn-archhead__tile {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--cat);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.pn-archhead__tile .pn-ico {
  font-size: 34px;
}

.pn-archhead__title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
}

.pn-archhead__desc {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.9;
  max-width: 780px;
}

.pn-archhead__count {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pn-sub);
}

.pn-sorttabs {
  max-width: var(--pn-maxw);
  margin: 0 auto;
  padding: 24px var(--pn-pad) 0;
  display: flex;
  gap: 10px;
}

.pn-sorttab {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  background: #fff;
  color: var(--pn-sub);
  border: 1px solid var(--pn-line);
}

.pn-sorttab.is-active {
  background: var(--pn-primary);
  color: #fff;
  border-color: var(--pn-primary);
}

.pn-archbody {
  max-width: var(--pn-maxw);
  margin: 0 auto;
  padding: 28px var(--pn-pad) 56px;
  display: flex;
  gap: 40px;
}

.pn-archmain {
  flex: 1;
  min-width: 0;
}

.pn-aside {
  flex: none;
  width: 300px;
}

/* ページネーション */
.pn-pager {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pn-pager .page-numbers {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--pn-line);
  font-weight: 700;
  color: var(--pn-text);
}

.pn-pager .page-numbers.current {
  background: var(--pn-primary);
  color: #fff;
  border-color: var(--pn-primary);
}

.pn-pager .page-numbers:hover {
  box-shadow: var(--pn-shadow);
}

/* サイドバー部品 */
.pn-widget {
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px 8px;
  box-shadow: var(--pn-shadow);
  margin-bottom: 24px;
}

.pn-widget__ttl {
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pn-widget__ttl .pn-ico {
  color: var(--cat, var(--pn-honey));
  font-size: 22px;
}

.pn-poplist__item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pn-line);
}

.pn-poplist__item:last-child a {
  border-bottom: none;
}

.pn-poplist__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cat, var(--pn-primary));
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.pn-poplist__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.pn-poplist__item:hover .pn-poplist__title {
  color: var(--pn-primary-d);
}

.pn-poplist__item--empty {
  color: var(--pn-sub);
  font-size: 14px;
  padding: 14px 0;
}

.pn-asidecta {
  background: var(--pn-peach);
  border-radius: 18px;
  padding: 24px 22px;
  text-align: center;
}

.pn-asidecta__char {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  background: #fff;
  margin: 0 auto 12px;
  box-shadow: var(--pn-shadow);
}

.pn-asidecta__text {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.pn-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--pn-sub);
  font-weight: 700;
}

/* --- ③ 記事詳細ページ --- */
.pn-single {
  max-width: var(--pn-maxw);
  margin: 0 auto;
  padding: 34px var(--pn-pad) 52px;
  display: flex;
  gap: 44px;
}

.pn-single__main {
  flex: 1;
  min-width: 0;
}

.pn-article__title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.5;
  margin: 14px 0 0;
}

.pn-author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--pn-line);
  margin-top: 22px;
}

.pn-author-bar__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: var(--pn-shadow);
  flex: none;
}

.pn-author-bar__meta {
  display: flex;
  flex-direction: column;
}

.pn-author-bar__name {
  font-weight: 700;
  font-size: 16px;
}

.pn-author-bar__role {
  font-size: 13px;
  color: var(--pn-sub);
}

.pn-author-bar__dates {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--pn-sub);
}

.pn-author-bar__dates .pn-ico {
  font-size: 16px;
  margin-right: 4px;
}

.pn-eyecatch {
  margin: 28px 0 40px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--pn-shadow);
}

.pn-eyecatch img {
  width: 100%;
  height: auto;
  display: block;
}

/* 目次 */
.pn-toc {
  background: #fff;
  border: 2px solid var(--pn-line);
  border-radius: 18px;
  padding: 22px 26px;
  margin: 0 0 32px;
}

.pn-toc[hidden] {
  display: none;
}

.pn-toc__head {
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pn-toc__head .pn-ico {
  color: var(--pn-primary);
  font-size: 22px;
}

.pn-toc .pn-toc__list {
  counter-reset: toc;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pn-toc__list li {
  counter-increment: toc;
  padding: 8px 0;
  border-top: 1px dashed var(--pn-line);
}

.pn-toc__list li:first-child {
  border-top: none;
}

.pn-toc__list a {
  display: flex;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
}

.pn-toc__list a::before {
  content: "0" counter(toc);
  color: var(--pn-accent);
  font-weight: 900;
}

.pn-toc__list a:hover {
  color: var(--pn-primary-d);
}

/* サイドバー用目次（sticky） */
.pn-toc--side {
  position: sticky;
  top: 96px;
  margin: 0;
  padding: 18px 20px;
}

.admin-bar .pn-toc--side {
  top: 128px;
}

.pn-toc--side .pn-toc__head {
  font-size: 16px;
}

.pn-toc--side .pn-toc__list a {
  font-size: 15px;
  gap: 8px;
}

.pn-toc--side[hidden] {
  display: none;
}

/* 本文 */
.pn-article__content {
  font-size: 18px;
  line-height: 1.95;
}

.pn-article__content>* {
  margin-top: 1.4em;
}

.pn-article__content h2 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  border-left: 7px solid var(--pn-primary);
  background: var(--pn-mint);
  border-radius: 0 12px 12px 0;
  padding: 16px 22px;
  margin-top: 2em;
  scroll-margin-top: 96px;
}

.admin-bar .pn-article__content h2 {
  scroll-margin-top: 128px;
}

.pn-article__content h3 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
  margin-top: 1.6em;
  padding-left: 14px;
  border-left: 5px solid var(--pn-accent);
}

.pn-article__content p {
  margin-top: 1.2em;
}

.pn-article__content strong {
  color: var(--pn-primary-d);
  font-weight: 700;
}

.pn-article__content mark,
.pn-article__content .pn-marker {
  background: linear-gradient(transparent 65%, #FFE0B2 65%);
  color: inherit;
  font-weight: 700;
}

.pn-article__content a {
  color: var(--pn-primary-d);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pn-article__content ul {
  list-style: disc;
  padding-left: 1.4em;
}

.pn-article__content ol {
  list-style: decimal;
  padding-left: 1.4em;
}

.pn-article__content img {
  border-radius: 12px;
}

/* SWELLチェックリスト：記事内はMaterial Symbolsのチェックで確実に表示（icomoon非依存） */
.pn-article__content .is-style-check_list {
  list-style: none;
  padding-left: 0;
}

.pn-article__content .is-style-check_list li {
  position: relative;
  padding-left: 1.9em;
  list-style: none;
}

.pn-article__content .is-style-check_list li::before {
  font-family: 'Material Symbols Rounded';
  content: "check_circle";
  font-variation-settings: 'FILL' 1, 'wght' 500;
  position: absolute;
  left: 0;
  top: .05em;
  color: var(--pn-primary);
  font-size: 1.15em;
  line-height: 1;
}

/* コアFileブロックのダウンロードボタン：文字色を白に（背景と同化する対策） */
.pn-article__content a.wp-block-file__button {
  color: #fff;
}

/* テーブル見出し行（thead）：ブランド色の背景＋白文字 */
.pn-article__content thead th,
.pn-article__content thead td {
  background-color: var(--pn-primary);
  color: #fff;
}

/* セマンティックカラー（パレット slug と対応）。.pn-article__content strong より詳細度を上げて勝たせる */
.has-pn-positive-color {
  color: #2F80ED;
}

.has-pn-negative-color {
  color: #EB5757;
}

.has-pn-main-color {
  color: #1FA98F;
}

.has-pn-positive-background-color {
  background-color: #2F80ED;
}

.has-pn-negative-background-color {
  background-color: #EB5757;
}

.has-pn-main-background-color {
  background-color: #1FA98F;
}

.has-pn-accent-color {
  color: #FF8A6B;
}

.has-pn-honey-color {
  color: #FFC75A;
}

.has-pn-text-color {
  color: #2E3A38;
}

.pn-article__content .has-pn-positive-color {
  color: #2F80ED;
}

.pn-article__content .has-pn-negative-color {
  color: #EB5757;
}

.pn-article__content .has-pn-main-color {
  color: #1FA98F;
}

/* ハイライトボックス */
.pn-hlbox {
  background: var(--pn-honey-bg);
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pn-hlbox .pn-ico {
  font-size: 46px;
  color: #E0A828;
  flex: none;
}

/* ※「まとめ」は本文内でSWELLのボックス系ブロック（is-style-big_icon_check等）で表現 */

/* 著者ボックス */
.pn-authorbox {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--pn-line);
  border-radius: 18px;
  padding: 24px 26px;
  margin-top: 32px;
}

.pn-authorbox__char {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  background: #fff;
  box-shadow: var(--pn-shadow);
  flex: none;
}

.pn-authorbox__name {
  font-weight: 900;
  font-size: 18px;
}

.pn-authorbox__desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--pn-text);
}

/* 関連記事 */
.pn-related {
  background: var(--pn-mint);
  max-width: none;
}

.pn-related>* {
  max-width: var(--pn-maxw);
  margin-left: auto;
  margin-right: auto;
}

/* --- 記事内スライド埋め込み（[pn_slide]） --- */
.pn-slide {
  margin: 2em 0;
}

.pn-slide__viewer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pn-slide__stage {
  position: relative;
  flex: 1;
  aspect-ratio: 16/9;
  border-radius: 14px;
  background: var(--pn-bg);
  box-shadow: var(--pn-shadow);
  overflow: hidden;
}

.pn-slide__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s;
}

.pn-slide__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.pn-slide__pill {
  background: var(--pn-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 999px;
}

.pn-slide__title {
  font-weight: 900;
  font-size: 30px;
  line-height: 1.4;
}

.pn-slide__title strong {
  color: var(--pn-accent);
}

.pn-slide__no {
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  background: var(--pn-accent);
  padding: 8px 22px;
  border-radius: 999px;
}

.pn-slide__lead {
  font-weight: 900;
  font-size: 26px;
  line-height: 1.5;
  color: var(--pn-text);
  max-width: 80%;
}

.pn-slide__logo {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-weight: 900;
  font-size: 14px;
  color: var(--pn-primary);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.pn-slide__nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  box-shadow: var(--pn-shadow);
}

.pn-slide__nav--prev {
  background: #fff;
  color: var(--pn-text);
}

.pn-slide__nav--next {
  background: var(--pn-accent);
  color: #fff;
}

.pn-slide__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pn-slide__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D8CFC6;
  cursor: pointer;
}

.pn-slide__dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--pn-accent);
}

/* --- フッター --- */
.pn-footer {
  background: #2E3A38;
  color: #fff;
}

.pn-footer__inner {
  max-width: var(--pn-maxw);
  margin: 0 auto;
  padding: 42px var(--pn-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pn-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.pn-footer__icon {
  font-size: 32px;
  color: var(--pn-honey);
}

.pn-footer__name {
  font-weight: 900;
  font-size: 26px;
}

.pn-footer__logo {
  display: inline-flex;
  align-items: center;
}

.pn-footer__logo .custom-logo {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.pn-footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 16px;
}

.pn-footer__nav a,
.pn-footer__list a {
  color: #C9D2CF;
}

.pn-footer__nav a:hover,
.pn-footer__list a:hover {
  color: #fff;
}

/* メニュー化したフッターナビ（wp_nav_menu の ul） */
.pn-footer__list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pn-footer__copy {
  max-width: var(--pn-maxw);
  margin: 0 auto;
  padding: 0 var(--pn-pad) 28px;
  font-size: 13px;
  color: #8B9794;
}

.pn-footer__company {
  color: #C9D2CF;
}

.pn-footer__company:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pn-footer__sep {
  margin: 0 10px;
  color: #4A5754;
}

/* --- レスポンシブ（SP = 〜900px） --- */
@media (max-width:900px) {
  :root {
    --pn-pad: 20px;
  }

  .pn-gnav {
    display: none;
  }

  .pn-burger {
    display: flex;
  }

  .pn-logo__name {
    font-size: 21px;
  }

  .pn-logo__icon {
    font-size: 26px;
  }

  .pn-logo--img .custom-logo {
    height: 34px;
  }

  .pn-logo--img .pn-logo__img {
    height: 34px;
  }

  .pn-header__inner {
    padding: 14px 18px;
  }

  .pn-hero__inner {
    padding: 32px 20px 40px;
  }

  .pn-hero__slide {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
  }

  .pn-hero__title {
    font-size: 30px;
  }

  .pn-hero__lead {
    font-size: 16px;
  }

  .pn-hero .pn-btn--white {
    font-size: 17px;
    padding: 14px 28px;
  }

  .pn-hero__media {
    align-self: center;
  }

  .pn-hero__char {
    width: 160px;
    height: 160px;
  }

  .pn-hero__thumb {
    width: 280px;
    height: auto;
  }

  .pn-hero__nav {
    display: none;
  }

  .pn-h2 {
    font-size: 22px;
  }

  .pn-catfind__grid {
    flex-direction: column;
    gap: 24px;
  }

  .pn-cattabs {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .pn-catpreview {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--pn-line);
    padding-top: 20px;
  }

  .pn-cardgrid,
  .pn-cardgrid--2,
  .pn-ranking__grid {
    grid-template-columns: 1fr;
  }

  .pn-guidecta {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
  }

  .pn-guidecta__text {
    font-size: 20px;
  }

  .pn-archhead__title {
    font-size: 26px;
  }

  .pn-archhead__desc {
    font-size: 15px;
  }

  .pn-archbody,
  .pn-single {
    flex-direction: column;
  }

  .pn-aside {
    width: 100%;
  }

  .pn-article__title {
    font-size: 26px;
  }

  .pn-author-bar {
    flex-wrap: wrap;
  }

  .pn-author-bar__dates {
    margin-left: 0;
    width: 100%;
  }

  .pn-article__content {
    font-size: 15px;
  }

  .pn-article__content h2 {
    font-size: 21px;
  }

  .pn-slide__title {
    font-size: 18px;
  }

  .pn-slide__lead {
    font-size: 18px;
  }

  .pn-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width:600px) {
  .pn-card {
    border-radius: 14px;
  }
}
/* =========================================================================
   固定ページ（お問い合わせ / プライバシーポリシー）
   ========================================================================= */
.pn-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* ページヘッダー：ミント→ピーチのやわらかバンド */
.pn-pagehead {
  margin: 0 auto 6px;
  padding: 44px var(--pn-pad);
  background:
    radial-gradient(120% 140% at 12% 0%, var(--pn-peach) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, var(--pn-mint) 0%, transparent 55%),
    var(--pn-card);
  border-bottom: 1px solid var(--pn-line);
}

.pn-pagehead__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pn-pagehead__ico {
  font-size: 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--pn-primary), var(--pn-primary-d));
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pn-shadow);
  flex: none;
}

.pn-pagehead__title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.3;
}

.pn-page__crumb {
  max-width: 860px;
  margin: 22px auto 0;
  padding: 0;
}

.pn-page__body {
  margin-top: 10px;
}

/* 本文中の連絡先情報などをまとめるボックス（任意で使用） */
.pn-page__body .pn-infobox {
  background: var(--pn-honey-bg);
  border: 1px solid var(--pn-line);
  border-radius: 16px;
  padding: 22px 26px;
}

@media (max-width:600px) {
  .pn-pagehead {
    padding: 32px 24px;
  }
  .pn-pagehead__title {
    font-size: 26px;
  }
  .pn-pagehead__ico {
    width: 52px;
    height: 52px;
    font-size: 32px;
    border-radius: 16px;
  }
}

/* =========================================================================
   Contact Form 7（.pn トンマナに合わせる）
   ========================================================================= */
.pn-contact__lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--pn-text);
  margin-bottom: 4px;
}

.pn-form {
  margin-top: 8px;
}

.pn-form .wpcf7-form p {
  margin: 0 0 22px;
}

/* ラベル */
.pn-form label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--pn-text);
}

.pn-form .pn-req {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--pn-accent);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: 2px;
}

.pn-form .pn-any {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--pn-sub);
  background: var(--pn-line);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* 入力欄 */
.pn-form input[type="text"],
.pn-form input[type="email"],
.pn-form input[type="tel"],
.pn-form select,
.pn-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--pn-text);
  background: var(--pn-card);
  border: 2px solid var(--pn-line);
  border-radius: 12px;
  padding: 14px 16px;
  line-height: 1.6;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}

.pn-form textarea {
  min-height: 170px;
  resize: vertical;
}

.pn-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238B9794' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.pn-form input::placeholder,
.pn-form textarea::placeholder {
  color: var(--pn-sub);
  opacity: .8;
}

.pn-form input:focus,
.pn-form select:focus,
.pn-form textarea:focus {
  outline: none;
  border-color: var(--pn-primary);
  box-shadow: 0 0 0 4px rgba(31, 169, 143, .14);
}

/* 同意チェック */
.pn-form .pn-consent {
  background: var(--pn-mint);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* CF7 が consent / submit 内にも生成する <p> の既定余白を打ち消す */
.pn-form .pn-consent p,
.pn-form .pn-submit p {
  margin: 0;
}

.pn-form .pn-consent label {
  display: inline;
  font-weight: 500;
  margin: 0;
}

.pn-form .pn-consent .wpcf7-list-item {
  margin: 0;
}

.pn-form .pn-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pn-primary);
  margin-right: 8px;
  vertical-align: -3px;
}

.pn-form .pn-consent a {
  color: var(--pn-primary-d);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* 送信ボタン */
.pn-form .pn-submit {
  text-align: center;
  margin-top: 4px;
}

.pn-form .pn-submit .wpcf7-submit,
.pn-form input.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--pn-accent), var(--pn-accent-d));
  border: none;
  border-radius: 999px;
  padding: 16px 56px;
  cursor: pointer;
  box-shadow: var(--pn-shadow);
  transition: transform .2s, box-shadow .2s, opacity .2s;
  width: auto;
}

.pn-form input.wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--pn-shadow-lg);
}

/* 未同意時＝非活性表示（JSで disabled / .is-disabled を付与） */
.pn-form input.wpcf7-submit:disabled,
.pn-form input.wpcf7-submit.is-disabled {
  background: var(--pn-line);
  color: var(--pn-sub);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.pn-form input.wpcf7-submit:disabled:hover,
.pn-form input.wpcf7-submit.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.pn-form .wpcf7-spinner {
  margin: 0 0 0 12px;
}

/* CF7 バリデーション／メッセージ */
.pn-form .wpcf7-not-valid-tip {
  color: var(--pn-accent-d);
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.pn-form .wpcf7-not-valid {
  border-color: var(--pn-accent) !important;
}

.pn-form .wpcf7-response-output {
  border-radius: 12px;
  border-width: 2px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  margin: 8px 0 0;
}

.pn-form form.sent .wpcf7-response-output {
  border-color: var(--pn-primary);
  background: var(--pn-mint);
  color: var(--pn-primary-d);
}

.pn-form form.invalid .wpcf7-response-output,
.pn-form form.failed .wpcf7-response-output {
  border-color: var(--pn-accent);
  background: var(--pn-peach);
  color: var(--pn-accent-d);
}

@media (max-width:600px) {
  .pn-form input.wpcf7-submit {
    width: 100%;
    padding: 16px 24px;
  }
}
