/* --------------------------------------------------------------
   記事装飾パーツ (article-parts.css)
   .entry-content 配下でのみ有効。使い方は 
   カラー: 基調オレンジ #ED6C00 / アクセント黄 #FFCA3A・#FFE9A8 / グレー #F2F2F2・#D3D3D3
-------------------------------------------------------------- */

/* wpautop が改行を <br> に変換し、装飾パーツ内のフレックスレイアウトを
   崩すことがあるため、パーツ内に紛れ込んだ <br> は表示しない */
.entry-content [class^="article-"] br,
.entry-content [class*=" article-"] br {
  display: none;
}

/* 同様に wpautop は空行を空の <p></p> や、ボタン等を囲む余分な <p> に
   変換することがあり、既存の .entry-content p の余白指定が乗って
   レイアウトが崩れるため、パーツ直下の <p> は余白をリセットし、
   空の <p> は非表示にする */
.entry-content [class^="article-"] > p,
.entry-content [class*=" article-"] > p {
  margin: 0;
}
.entry-content [class^="article-"] > p:empty,
.entry-content [class*=" article-"] > p:empty {
  display: none;
}

/* 1. マーカー --------------------------------------------------- */
.entry-content .article-marker--yellow {
  font-weight: bold;
  background: linear-gradient(transparent 58%, #FFCA3A 58%);
}

.entry-content .article-marker--orange-thin {
  font-weight: bold;
  background: linear-gradient(transparent 72%, rgba(237, 108, 0, .35) 72%);
}

.entry-content .article-marker--orange-text {
  font-weight: bold;
  color: #ED6C00;
  background: linear-gradient(transparent 58%, #FFE9A8 58%);
}

/* 2. ボックス ----------------------------------------------------- */
.entry-content .article-box {
  position: relative;
  border-radius: 14px;
  margin: 24px 0;
}

.entry-content .article-box--point,
.entry-content .article-box--caution {
  padding: 22px 24px 18px;
}

.entry-content .article-box--point { border: 2px solid #FFCA3A; background: #FFF9E6; }
.entry-content .article-box--caution { border: 2px solid #ED6C00; background: #fff; }

.entry-content .article-box--memo {
  padding: 18px 20px;
  background: #F2F2F2;
}

.entry-content .article-box--merit,
.entry-content .article-box--demerit {
  overflow: hidden;
  border: 2px solid;
  background: #fff;
}
.entry-content .article-box--merit { border-color: #FFCA3A; }
.entry-content .article-box--demerit { border-color: #D3D3D3; }

.entry-content .article-box p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.9;
}
.entry-content .article-box--memo p { color: #6b665d; }

.entry-content .article-box__label {
  position: absolute;
  top: -14px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  font-size: 13px;
  padding: 4px 16px;
  border-radius: 999px;
}
.entry-content .article-box--point .article-box__label { background: #FFCA3A; color: #6b4d00; }
.entry-content .article-box--caution .article-box__label { background: #ED6C00; color: #fff; }

.entry-content .article-box__memo-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 13px;
  color: #8a8377;
}

.entry-content .article-box__head {
  padding: 10px 20px;
  font-weight: bold;
  font-size: 15px;
}
.entry-content .article-box--merit .article-box__head { background: #FFCA3A; color: #6b4d00; }
.entry-content .article-box--demerit .article-box__head { background: #D3D3D3; color: #5c574c; }

.entry-content .article-box__list {
  list-style: none;
  margin: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.entry-content .article-box__list li {
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.7;
}
.entry-content .article-box__list li::before { content: none; }

.entry-content .article-box__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 2px;
  font-size: 12px;
  font-weight: bold;
}
.entry-content .article-box--merit .article-box__check { background: #FFE9A8; color: #ED6C00; }
.entry-content .article-box--demerit .article-box__check { background: #F2F2F2; color: #8a8377; }

/* 3. 表 ----------------------------------------------------------- */
.entry-content .article-table {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
}
.entry-content .article-table table {
  display: table;
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  overflow-x: visible;
}
/* サイト共通の table{display:block}/tbody{display:table} という
   レスポンシブ表化CSSが thead と tbody の列幅をズレさせるため、
   このパーツ内では通常のテーブル表示に固定し直す */
.entry-content .article-table thead { display: table-header-group; }
.entry-content .article-table tbody { display: table-row-group; }
.entry-content .article-table tr { display: table-row; border-top: none; }
.entry-content .article-table th,
.entry-content .article-table td {
  display: table-cell;
  padding: 13px 16px;
  border-bottom: 1px solid #F2F2F2;
}
.entry-content .article-table tr:last-child th,
.entry-content .article-table tr:last-child td {
  border-bottom: none;
}

.entry-content .article-table--basic { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.entry-content .article-table--basic thead th {
  background: #ED6C00;
  color: #fff;
  font-weight: bold;
  text-align: left;
  border-bottom: none;
}

.entry-content .article-table--highlight { border: 2px solid #FFCA3A; }
.entry-content .article-table--highlight thead th {
  background: #FFF3D6;
  color: #8a5a00;
  font-weight: bold;
  text-align: left;
}
.entry-content .article-table--highlight thead th:last-child,
.entry-content .article-table--highlight td:last-child {
  text-align: right;
}
.entry-content .article-table--highlight tbody td {
  border-bottom-style: dashed;
  border-bottom-color: #FFE9A8;
}

.entry-content .article-table--vertical { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.entry-content .article-table--vertical th {
  width: 32%;
  background: #FFF3D6;
  color: #8a5a00;
  font-weight: bold;
  text-align: left;
}

.entry-content .article-table--compare { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.entry-content .article-table--compare thead th {
  background: #ED6C00;
  color: #fff;
  font-weight: bold;
  text-align: center;
}
.entry-content .article-table--compare tbody th {
  width: 26%;
  background: #FFF3D6;
  color: #8a5a00;
  font-weight: bold;
  text-align: left;
}
.entry-content .article-table--compare tbody td { text-align: center; }

.entry-content .article-table__cell--accent { color: #ED6C00; font-weight: 800; font-size: 16px; text-align: center; }
/* --accent の文字サイズ拡大なし版。長めの文言を強調したい場合に使う */
.entry-content .article-table__cell--accent-text { color: #ED6C00; font-weight: 800; }
.entry-content .article-table__cell--good { color: #ED6C00; font-weight: 800; text-align: center; }
.entry-content .article-table__cell--bad { color: #b3ada2; text-align: center; }
.entry-content .article-table__row--highlight td { background: #FFFDF5; }

/* 4. 吹き出し ------------------------------------------------------- */
.entry-content .article-chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0;
}
.entry-content .article-chat__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.entry-content .article-chat__row--author { flex-direction: row-reverse; }

.entry-content .article-chat__figure {
  flex-shrink: 0;
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.entry-content .article-chat__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.entry-content .article-chat__row--reader .article-chat__avatar { background: #FFE9A8; border: 2px solid #FFCA3A; color: #a06a00; }
.entry-content .article-chat__row--author .article-chat__avatar { background: #ED6C00; color: #fff; }
.entry-content .article-chat__label { font-size: 11px; color: #8a8377; }

.entry-content .article-chat__bubble {
  position: relative;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.8;
}
.entry-content .article-chat__bubble p { margin: 0; }
.entry-content .article-chat__row--reader .article-chat__bubble {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.entry-content .article-chat__row--reader .article-chat__bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 20px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -3px 3px 6px rgba(0, 0, 0, .05);
}
.entry-content .article-chat__row--author .article-chat__bubble { background: #FFF3D6; }
.entry-content .article-chat__row--author .article-chat__bubble::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 20px;
  width: 16px;
  height: 16px;
  background: #FFF3D6;
  transform: rotate(45deg);
}

/* 5. Q&A / FAQ ------------------------------------------------------ */
.entry-content .article-qa {
  margin: 24px 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  overflow: hidden;
}
.entry-content .article-qa__item {
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.entry-content .article-qa__item + .article-qa__item { border-top: 1px solid #F2F2F2; }
.entry-content .article-qa__badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: bold;
  font-size: 15px;
}
.entry-content .article-qa__badge--q { background: #ED6C00; color: #fff; }
.entry-content .article-qa__badge--a { background: #FFCA3A; color: #6b4d00; }
.entry-content .article-qa__question,
.entry-content .article-qa__answer {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.8;
}
.entry-content .article-qa__question { font-weight: bold; }
.entry-content .article-qa__answer { font-size: 14px; color: #6b665d; }

.entry-content .article-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}
.entry-content .article-faq__item {
  border: 2px solid #FFE9A8;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.entry-content .article-faq__item.is-open { background: #FFFDF5; }
.entry-content .article-faq__question {
  width: 100%;
  margin: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  font-weight: bold;
  font-size: 15px;
  text-align: left;
}
.entry-content .article-faq__q-prefix { margin-right: 10px; color: #ED6C00; font-weight: bold; }
.entry-content .article-faq__toggle-icon { flex-shrink: 0; font-size: 18px; font-weight: bold; color: #ED6C00; }
.entry-content .article-faq__toggle-icon::before { content: "＋"; }
.entry-content .article-faq__item.is-open .article-faq__toggle-icon::before { content: "－"; }
.entry-content .article-faq__answer {
  display: none;
  margin: 0;
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.9;
  color: #6b665d;
}
.entry-content .article-faq__item.is-open .article-faq__answer { display: block; }

/* 6. ボタン・CTA ----------------------------------------------------- */
.entry-content .article-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 16px;
  padding: 16px 36px;
  margin: 0 12px 12px 0;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
/* ボタンを複数並べた際、間の改行が wpautop の <br> になり
   横並びにならず縦積みになってしまうため無効化する */
.entry-content .article-btn + br {
  display: none;
}
.entry-content .article-btn--primary {
  background: linear-gradient(180deg, #ff9a3d, #ED6C00);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(237, 108, 0, .35);
}
.entry-content .article-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(237, 108, 0, .45); }
.entry-content .article-btn--outline {
  background: #fff;
  color: #ED6C00 !important;
  border: 2px solid #ED6C00;
  font-size: 15px;
  padding: 14px 32px;
}
.entry-content .article-btn--outline:hover { background: #FFF3E3; }

.entry-content .article-cta {
  margin: 32px 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #FFF3D6, #FFE9A8);
  padding: 28px 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.entry-content .article-cta__badge {
  display: inline-flex;
  background: #ED6C00;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 16px;
  border-radius: 999px;
}
.entry-content .article-cta__heading { margin: 0; font-weight: bold; font-size: 20px; line-height: 1.5; }
.entry-content .article-cta__stat { color: #ED6C00; font-size: 28px; }
.entry-content .article-cta__note { margin: 0; font-size: 12px; color: #8a774f; }

/* 7. リスト --------------------------------------------------------- */
.entry-content .article-list--plain {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.entry-content .article-list--plain li { margin: 0; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.7; }
.entry-content .article-list--plain li::before { content: "✓"; color: #ED6C00; font-weight: bold; margin-top: 2px; }

.entry-content .article-list--boxed {
  list-style: none;
  margin: 20px 0;
  padding: 20px 24px;
  background: #FFFDF5;
  border: 2px solid #FFE9A8;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.entry-content .article-list--boxed li { margin: 0; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.7; }
.entry-content .article-list--boxed li::before { content: none; }
.entry-content .article-list__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ED6C00;
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 2px;
  font-size: 12px;
  font-weight: bold;
}

.entry-content .article-list--numbered-cards {
  list-style: none;
  counter-reset: article-list-num;
  margin: 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.entry-content .article-list--numbered-cards li {
  counter-increment: article-list-num;
  margin: 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  font-size: 15px;
  line-height: 1.7;
}
.entry-content .article-list--numbered-cards li::before { content: none; }
.entry-content .article-list__number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #FFCA3A;
  color: #6b4d00;
  display: grid;
  place-items: center;
  font-weight: bold;
  font-size: 15px;
}
.entry-content .article-list__number::before { content: counter(article-list-num); }

/* 8. ステップ・手順 --------------------------------------------------- */
.entry-content .article-timeline { display: flex; flex-direction: column; margin: 24px 0; }
.entry-content .article-timeline__item { display: flex; gap: 18px; }
.entry-content .article-timeline__marker { display: flex; flex-direction: column; align-items: center; }
.entry-content .article-timeline__badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ED6C00;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: bold;
  font-size: 16px;
}
.entry-content .article-timeline__item--last .article-timeline__badge { background: #FFCA3A; color: #6b4d00; }
.entry-content .article-timeline__line { width: 3px; flex: 1; margin: 6px 0; background: #FFE9A8; border-radius: 2px; }
.entry-content .article-timeline__body { padding-bottom: 28px; }
.entry-content .article-timeline__item--last .article-timeline__body { padding-bottom: 0; }
.entry-content .article-timeline__title { margin: 2px 0 4px; font-weight: bold; font-size: 16px; }
.entry-content .article-timeline__desc { margin: 0; font-size: 14px; line-height: 1.9; color: #6b665d; }

.entry-content .article-steps {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.entry-content .article-steps__item {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.entry-content .article-steps__item + .article-steps__item::before {
  content: "▶";
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFCA3A;
  font-size: 16px;
  font-weight: bold;
}
.entry-content .article-steps__item--last { background: #FFF3D6; }
.entry-content .article-steps__label { font-weight: bold; font-size: 12px; color: #ED6C00; }
.entry-content .article-steps__item--last .article-steps__label { color: #a85400; }
.entry-content .article-steps__text { font-size: 14px; font-weight: bold; line-height: 1.6; }

/* 9. 引用・ブログカード風 ---------------------------------------------- */
.entry-content .article-quote {
  position: relative;
  margin: 24px 0;
  background: #F2F2F2;
  border-radius: 16px;
  padding: 22px 26px;
}
.entry-content .article-quote__mark {
  position: absolute;
  top: 6px;
  left: 16px;
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1;
  color: #ED6C00;
  opacity: .35;
}
.entry-content .article-quote__text { margin: 0 0 10px; padding-left: 26px; font-size: 15px; line-height: 1.9; }
.entry-content .article-quote__source { display: block; text-align: right; font-style: normal; font-size: 12px; color: #8a8377; }

.entry-content .article-link-card {
  display: flex;
  margin: 24px 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow .15s ease;
}
.entry-content .article-link-card:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, .14); }
.entry-content .article-link-card__thumb {
  flex-shrink: 0;
  width: 132px;
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  color: #a0855a;
  background: repeating-linear-gradient(45deg, #FFE9A8, #FFE9A8 8px, #FFF3D6 8px, #FFF3D6 16px);
}
.entry-content .article-link-card__body {
  min-width: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.entry-content .article-link-card__eyebrow { font-size: 11px; font-weight: bold; color: #ED6C00; }
.entry-content .article-link-card__title { font-weight: bold; font-size: 15px; line-height: 1.5; }
.entry-content .article-link-card__domain { font-size: 12px; color: #8a8377; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 10. 編集長紹介 ------------------------------------------------------ */
.entry-content .article-editor-card {
  margin: 24px 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
}
.entry-content .article-editor-card__head {
  padding: 13px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #ff9a3d, #ED6C00);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
}
.entry-content .article-editor-card__body {
  padding: 24px 26px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.entry-content .article-editor-card__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #F2F2F2;
}
.entry-content .article-editor-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.entry-content .article-editor-card__bio { margin: 0; font-size: 15px; line-height: 2; }
.entry-content .article-editor-card__bio strong { font-weight: bold; color: #ED6C00; }

.entry-content .article-editor-mini {
  margin: 24px 0;
  border: 2px solid #FFE9A8;
  border-radius: 18px;
  background: #FFFDF5;
  padding: 24px 26px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.entry-content .article-editor-mini__photo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: #F2F2F2;
}
.entry-content .article-editor-mini__photo img { width: 100%; height: 100%; object-fit: cover; }
.entry-content .article-editor-mini__body { display: flex; flex-direction: column; gap: 6px; }
.entry-content .article-editor-mini__name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.entry-content .article-editor-mini__name { font-weight: bold; font-size: 16px; }
.entry-content .article-editor-mini__role { background: #FFE9A8; color: #a0700a; font-size: 11px; font-weight: bold; padding: 3px 12px; border-radius: 999px; }
.entry-content .article-editor-mini__bio { margin: 0; font-size: 14px; line-height: 1.9; color: #6b665d; }

/* レスポンシブ（既存の .entry-content 系ブレークポイントに合わせる） -------- */
@media screen and (max-width: 767px) {
  .entry-content .article-steps { grid-template-columns: 1fr; }
  .entry-content .article-steps__item + .article-steps__item::before { display: none; }
  .entry-content .article-chat__figure { width: 44px; }
  .entry-content .article-chat__avatar { width: 44px; height: 44px; font-size: 18px; }
  .entry-content .article-editor-card__body { flex-direction: column; align-items: center; text-align: center; }
  .entry-content .article-link-card { flex-direction: column; }
  .entry-content .article-link-card__thumb { width: 100%; height: 80px; }
  .entry-content .article-editor-mini { flex-direction: column; text-align: center; }
}
