/* ==========================================================
   P!っと縁結び コラム記事ページ専用スタイル (single.css)
   ========================================================== */

/* 読了プログレスバー（最上部固定） */
.pien-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #E84A7F, #ff7ba8);
  z-index: 99999;
  transition: width 0.1s ease-out;
  box-shadow: 0 1px 4px rgba(232, 74, 127, 0.4);
}

/* 記事ページ全体コンテナ */
.p-single-page {
  background: #fff;
}
.p-single-section {
  padding: 40px 0 80px;
}
.p-single-main {
  width: 100%;
  max-width: 800px;
}
.p-single-article {
  margin-bottom: 50px;
}

/* ==========================================================
   1. ファーストビュー・ヘッダー
   ========================================================== */
.p-single-header {
  margin-bottom: 24px;
}
.p-single-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.p-single-cat-badge {
  display: inline-block;
  background: #FFF0F4;
  color: #E84A7F;
  border: 1px solid #F3CFDD;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.p-single-cat-badge:hover {
  background: #E84A7F;
  color: #fff;
}

.p-single-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.5;
  color: #2B3A42;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.p-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ECE7E1;
  font-size: 13px;
  color: #777;
}
.p-single-meta__dates {
  display: flex;
  align-items: center;
  gap: 14px;
}
.p-single-meta__date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.p-single-icon {
  fill: #A0968B;
}

.p-single-supervisor-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FAF8F5;
  border: 1px solid #EAE6DF;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #2B3A42;
}
.p-single-supervisor-pill__check {
  color: #E84A7F;
  font-weight: 800;
}
.p-single-supervisor-pill--write_supervise {
  background: #FFF9FA;
  border-color: #F3CFDD;
}
.p-single-supervisor-pill--write {
  background: #F4FAFA;
  border-color: #CBEAE9;
}
.p-single-supervisor-pill--write .p-single-supervisor-pill__check {
  color: #039196;
}

.p-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.p-single-tag-link {
  font-size: 12px;
  color: #888;
  text-decoration: none;
  background: #f7f7f7;
  padding: 3px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.p-single-tag-link:hover {
  background: #E84A7F;
  color: #fff;
}

/* アイキャッチ画像 */
.p-single-eyecatch {
  margin: 20px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.p-single-eyecatch img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ==========================================================
   2. 記事本文タイポグラフィ & 装飾コンポーネント
   ========================================================== */
.p-single-body {
  font-size: 16px;
  line-height: 1.85;
  color: #333;
  word-break: break-word;
}
.p-single-body > * {
  margin-top: 24px;
}
.p-single-body > *:first-child {
  margin-top: 0;
}

/* H2 見出し: P!っと縁結びモダンブロック */
.p-single-body h2 {
  background: linear-gradient(135deg, #FFF9FA 0%, #FFFFFF 100%);
  border: 1px solid #F3CFDD;
  border-left: 6px solid #E84A7F;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 50px 0 24px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
  color: #2B3A42;
  box-shadow: 0 2px 8px rgba(232, 74, 127, 0.05);
}

/* H3 見出し: 上品な点線下線＋ピンクアクセント */
.p-single-body h3 {
  border-bottom: 2px dashed #F3CFDD;
  padding: 0 0 12px 14px;
  margin: 40px 0 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #2B3A42;
  position: relative;
}
.p-single-body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 18px;
  background: #E84A7F;
  border-radius: 2px;
}

/* H4 見出し */
.p-single-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #2B3A42;
  margin: 30px 0 14px;
  padding-left: 10px;
  border-left: 3px solid #E84A7F;
}

/* 蛍光ペン風マーカー */
.p-single-body mark,
.p-single-body .marker-pink {
  background: linear-gradient(transparent 60%, rgba(232, 74, 127, 0.25) 60%);
  font-weight: bold;
}
.p-single-body .marker-yellow {
  background: linear-gradient(transparent 60%, rgba(255, 225, 100, 0.5) 60%);
  font-weight: bold;
}

/* 💡 ポイントボックス */
.p-single-body .pien-box-point {
  background: #FFF9FA;
  border: 1px solid #F3CFDD;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
  position: relative;
}
.p-single-body .pien-box-point__title {
  font-size: 15px;
  font-weight: 800;
  color: #E84A7F;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-single-body .pien-box-point__title::before {
  content: "💡";
  font-size: 18px;
}

/* ⚠️ 注意・チェックボックス */
.p-single-body .pien-box-warning {
  background: #FAF8F5;
  border: 1px solid #E0D8D0;
  border-left: 4px solid #A0968B;
  border-radius: 6px;
  padding: 18px 22px;
  margin: 28px 0;
}
.p-single-body .pien-box-warning__title {
  font-size: 15px;
  font-weight: 700;
  color: #2B3A42;
  margin: 0 0 8px;
}

/* 🎯 記事内中間診断カード (pien-inline-diag-card) */
.p-single-body .pien-inline-diag-card {
  background: linear-gradient(135deg, #FFF9FA 0%, #FFF0F4 100%);
  border: 2px solid #F3CFDD;
  border-radius: 12px;
  padding: 24px 22px;
  margin: 40px 0;
  box-shadow: 0 4px 14px rgba(232, 74, 127, 0.08);
}
.p-single-body .pien-inline-diag-card__inner {
  text-align: center;
}
.p-single-body .pien-inline-diag-card__badge {
  display: inline-block;
  background: #FFF0F4;
  color: #E84A7F;
  border: 1px solid #F3CFDD;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}
.p-single-body .pien-inline-diag-card__title {
  font-size: 18px;
  font-weight: 800;
  color: #2B3A42;
  margin: 0 0 8px;
}
.p-single-body .pien-inline-diag-card__lead {
  font-size: 13.5px;
  line-height: 1.6;
  color: #555;
  margin: 0 auto 16px;
  max-width: 540px;
}
.p-single-body .pien-inline-diag-card__btn,
.p-single-body .pien-inline-diag-card__btn:hover,
.p-single-body .pien-inline-diag-card__btn:focus,
.p-single-body .pien-inline-diag-card__btn:active,
.p-single-body .pien-inline-diag-card__btn *,
.p-single-body .pien-inline-diag-card__btn:hover * {
  color: #ffffff !important;
  text-decoration: none !important;
}
.p-single-body .pien-inline-diag-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #E84A7F;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 26px;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(232, 74, 127, 0.35);
  transition: all 0.3s ease;
}
.p-single-body .pien-inline-diag-card__btn:hover {
  background: #d4386d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 74, 127, 0.45);
}



/* 💬 会話風吹き出し（カウンセラーアドバイス） */
.p-single-body .pien-balloon {
  display: flex;
  gap: 16px;
  margin: 32px 0;
  align-items: flex-start;
}
.p-single-body .pien-balloon__icon {
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}
.p-single-body .pien-balloon__icon img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}
.p-single-body .pien-balloon__name {
  font-size: 11px;
  font-weight: bold;
  color: #777;
  margin-top: 4px;
}
.p-single-body .pien-balloon__bubble {
  position: relative;
  background: #FFF9FA;
  border: 1px solid #F3CFDD;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  flex: 1;
}
.p-single-body .pien-balloon__bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #F3CFDD;
}

/* 📊 テーブルのスマホ横スクロール対応 */
.p-single-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
.p-single-body table th,
.p-single-body table td {
  border: 1px solid #EAE6DF;
  padding: 12px 16px;
  text-align: left;
}
.p-single-body table th {
  background: #FAF8F5;
  font-weight: 700;
  color: #2B3A42;
}
.p-single-body table tr:nth-child(even) td {
  background: #FFFDFE;
}

/* ==========================================================
   3. AEO / よくある質問（FAQ）アコーディオン
   ========================================================== */
.pien-article-faq {
  background: #FFF9FA;
  border: 1px solid #F3CFDD;
  border-radius: 12px;
  padding: 30px 28px;
  margin: 50px 0 40px;
  box-shadow: 0 4px 16px rgba(232, 74, 127, 0.05);
}
.pien-article-faq__header {
  text-align: center;
  margin-bottom: 24px;
}
.pien-article-faq__badge {
  display: inline-block;
  background: #E84A7F;
  color: #fff;
  font-family: var(--font-en, sans-serif);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.pien-article-faq__title {
  font-size: 20px;
  font-weight: 800;
  color: #2B3A42;
  margin: 0 0 6px;
}
.pien-article-faq__lead {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.pien-article-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pien-article-faq__item {
  background: #fff;
  border: 1px solid #EAE6DF;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s ease;
}
.pien-article-faq__item[open] {
  border-color: #F3CFDD;
  box-shadow: 0 2px 8px rgba(232, 74, 127, 0.08);
}
.pien-article-faq__q {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #2B3A42;
  cursor: pointer;
  user-select: none;
  list-style: none;
  gap: 12px;
}
.pien-article-faq__q::-webkit-details-marker {
  display: none;
}
.pien-article-faq__q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #E84A7F;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.pien-article-faq__q-text {
  flex: 1;
}
.pien-article-faq__arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: 8px;
}
.pien-article-faq__item[open] .pien-article-faq__arrow {
  transform: rotate(-135deg);
}
.pien-article-faq__a {
  padding: 0 20px 18px 58px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #555;
}
.pien-article-faq__a-inner {
  display: flex;
  gap: 10px;
}
.pien-article-faq__a-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #FAF8F5;
  border: 1px solid #EAE6DF;
  color: #E84A7F;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================
   4. E-E-A-T 専任カウンセラー監修者カード
   ========================================================== */
.p-single-author-card {
  background: #FAF8F5;
  border: 1px solid #EAE6DF;
  border-radius: 12px;
  padding: 26px 28px;
  margin: 40px 0;
}
.p-single-author-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E0D8D0;
}
.p-single-author-card__badge {
  font-family: var(--font-en, sans-serif);
  font-size: 11px;
  font-weight: 800;
  color: #E84A7F;
  letter-spacing: 0.05em;
}
.p-single-author-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #2B3A42;
  margin: 0;
}
.p-single-author-card__body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.p-single-author-card__avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.p-single-author-card__info {
  flex: 1;
}
.p-single-author-card__name-row {
  margin-bottom: 6px;
}
.p-single-author-card__name {
  font-size: 16px;
  font-weight: 800;
  color: #2B3A42;
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.p-single-author-card__role {
  font-size: 12px;
  font-weight: 600;
  color: #6E7A82;
}
.p-single-author-card--write .p-single-author-card__badge {
  color: #039196;
}
.p-single-author-card__cert {
  display: inline-block;
  background: #FFF0F4;
  color: #E84A7F;
  border: 1px solid #F3CFDD;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.p-single-author-card__desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #555;
  margin: 8px 0 12px;
}
.p-single-author-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #E84A7F;
  text-decoration: none;
  border-bottom: 1px solid #E84A7F;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}
.p-single-author-card__btn:hover {
  color: #d4386d;
  border-bottom-color: #d4386d;
}

/* ==========================================================
   5. 記事末尾 プレミアム成婚相談CTAボックス
   ========================================================== */
.p-single-cta-box {
  background: linear-gradient(135deg, #FFF9FA 0%, #FFF0F4 100%);
  border: 2px solid #F3CFDD;
  border-radius: 16px;
  padding: 36px 30px;
  margin: 50px 0 40px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(232, 74, 127, 0.08);
}
.p-single-cta-box__sub {
  display: inline-block;
  font-family: var(--font-en, sans-serif);
  font-size: 12px;
  font-weight: 800;
  color: #E84A7F;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.p-single-cta-box__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
  color: #2B3A42;
  margin: 0 0 12px;
}
.p-single-cta-box__lead {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  max-width: 600px;
  margin: 0 auto 24px;
}
.p-single-cta-box__btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.p-single-cta-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  min-width: 260px;
  transition: all 0.3s ease;
  position: relative;
}
.p-single-cta-btn__sub {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 2px;
  opacity: 0.9;
}
.p-single-cta-btn__main {
  font-size: 15px;
  font-weight: 800;
}
.p-single-cta-btn__arw {
  display: none;
}
.p-single-cta-btn--primary,
.p-single-cta-btn--primary:hover,
.p-single-cta-btn--primary:focus,
.p-single-cta-btn--primary:active,
.p-single-cta-btn--primary *,
.p-single-cta-btn--primary:hover * {
  color: #ffffff !important;
  text-decoration: none !important;
}
.p-single-cta-btn--primary {
  background: #E84A7F;
  box-shadow: 0 4px 14px rgba(232, 74, 127, 0.35);
}
.p-single-cta-btn--primary:hover {
  background: #d4386d !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 74, 127, 0.45);
}

.p-single-cta-btn--sub,
.p-single-cta-btn--sub:hover,
.p-single-cta-btn--sub:focus,
.p-single-cta-btn--sub:active,
.p-single-cta-btn--sub *,
.p-single-cta-btn--sub:hover * {
  color: #2B3A42 !important;
  text-decoration: none !important;
}
.p-single-cta-btn--sub {
  background: #fff;
  border: 1px solid #CCD5DA;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.p-single-cta-btn--sub:hover {
  background: #FAF8F5 !important;
  border-color: #2B3A42 !important;
  transform: translateY(-2px);
}


/* ==========================================================
   6. 関連記事セクション
   ========================================================== */
.p-single-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #ECE7E1;
}
.p-single-related__header {
  text-align: center;
  margin-bottom: 30px;
}
.p-single-related__sub {
  font-family: var(--font-en, sans-serif);
  font-size: 12px;
  font-weight: 800;
  color: #E84A7F;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}
.p-single-related__title {
  font-size: 22px;
  font-weight: 800;
  color: #2B3A42;
  margin: 0;
}
.p-single-related__grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ==========================================================
   7. スマホ（SP）レスポンシブ最適化
   ========================================================== */
@media screen and (max-width: 768px) {
  .p-single-section {
    padding: 20px 0 60px;
  }
  .p-single-title {
    font-size: 20px;
    line-height: 1.45;
  }
  .p-single-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .p-single-eyecatch {
    margin: 16px 0 24px;
    border-radius: 8px;
  }
  .p-single-body {
    font-size: 15px;
    line-height: 1.8;
  }
  .p-single-body h2 {
    font-size: 18px;
    padding: 14px 16px;
    margin: 36px 0 18px;
  }
  .p-single-body h3 {
    font-size: 16px;
    margin: 28px 0 14px;
  }
  .pien-article-faq {
    padding: 22px 16px;
    margin: 36px 0 30px;
  }
  .pien-article-faq__title {
    font-size: 18px;
  }
  .pien-article-faq__q {
    padding: 14px 14px;
    font-size: 14px;
  }
  .pien-article-faq__a {
    padding: 0 14px 14px 48px;
    font-size: 13.5px;
  }
  .p-single-author-card {
    padding: 20px 16px;
  }
  .p-single-author-card__body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .p-single-author-card__name {
    justify-content: center;
  }
  .p-single-cta-box {
    padding: 28px 18px;
    margin: 36px 0 30px;
  }
  .p-single-cta-box__title {
    font-size: 18px;
  }
  .p-single-cta-btn {
    width: 100%;
    min-width: 0;
  }
}
