/* Shared editorial modules for the 2026-09-05 search-intent cluster. */

.seo-cluster-article {
  --cluster-ink: #3f3942;
  --cluster-muted: #746b73;
  --cluster-accent: #ad5a75;
  --cluster-accent-deep: #88445b;
  --cluster-line: rgba(179, 95, 122, .22);
  --cluster-wash: rgba(255, 247, 248, .72);
}

.seo-cluster-label,
.seo-mini-label {
  margin: 0 0 12px !important;
  color: var(--cluster-accent) !important;
  font-family: var(--sans);
  font-size: 15px !important;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.7 !important;
}

.seo-cluster-lead,
.seo-cluster-thesis,
.seo-answer-note,
.seo-words-to-send {
  margin: 48px 0 62px;
  padding: 31px 0 33px;
  border-top: 1px solid var(--cluster-line);
  border-bottom: 1px solid var(--cluster-line);
}

.article-body .seo-cluster-lead h2,
.article-body .seo-cluster-thesis h2,
.article-body .seo-answer-note h2,
.article-body .seo-words-to-send h2 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: var(--cluster-ink);
  font-size: 24px;
  line-height: 1.65;
}

.article-body .seo-cluster-lead h2::after,
.article-body .seo-cluster-thesis h2::after,
.article-body .seo-answer-note h2::after,
.article-body .seo-words-to-send h2::after {
  display: none;
}

.article-body .seo-cluster-lead > p:last-child,
.article-body .seo-cluster-thesis > p:last-child,
.article-body .seo-answer-note > p:last-child,
.article-body .seo-words-to-send > p:last-child {
  margin-bottom: 0;
}

.seo-cluster-thesis--boundary,
.seo-cluster-safety {
  padding-right: 30px;
  padding-left: 30px;
  background: linear-gradient(115deg, rgba(250, 242, 247, .7), rgba(255, 250, 247, .3));
}

.seo-cluster-contrast,
.seo-cluster-known-unknown,
.seo-cluster-reaction-contrast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 38px 0 52px;
  border-top: 1px solid var(--cluster-line);
  border-bottom: 1px solid var(--cluster-line);
}

.seo-cluster-contrast section,
.seo-cluster-known-unknown section,
.seo-cluster-reaction-contrast section {
  padding: 28px 30px 27px 0;
}

.seo-cluster-contrast section + section,
.seo-cluster-known-unknown section + section,
.seo-cluster-reaction-contrast section + section {
  padding-right: 0;
  padding-left: 30px;
  border-left: 1px solid var(--cluster-line);
}

.article-body .seo-cluster-contrast h3,
.article-body .seo-cluster-reaction-contrast h3 {
  margin: 0 0 15px;
  color: var(--cluster-ink);
  font-size: 20px;
  line-height: 1.65;
}

.seo-cluster-contrast ul,
.seo-cluster-known-unknown ul,
.seo-cluster-reaction-contrast ul {
  margin: 0;
  padding-left: 1.35em;
}

.seo-cluster-contrast li,
.seo-cluster-known-unknown li,
.seo-cluster-reaction-contrast li {
  margin: 0 0 8px;
  color: var(--cluster-muted);
  font-size: 16px;
  line-height: 1.85;
}

.seo-cluster-observation,
.seo-cluster-emotion-map,
.seo-cluster-definition-list,
.seo-cluster-feeling-dictionary,
.seo-emotion-lexicon {
  margin: 36px 0 52px;
  border-top: 1px solid var(--cluster-line);
}

.seo-cluster-observation > div,
.seo-cluster-emotion-map > div,
.seo-cluster-definition-list > div,
.seo-cluster-feeling-dictionary > div,
.seo-emotion-lexicon > div {
  display: grid;
  grid-template-columns: minmax(150px, .68fr) minmax(0, 1.32fr);
  gap: 28px;
  padding: 19px 0;
  border-bottom: 1px solid var(--cluster-line);
}

.seo-cluster-observation dt,
.seo-cluster-emotion-map dt,
.seo-cluster-definition-list dt,
.seo-cluster-feeling-dictionary dt,
.seo-emotion-lexicon dt {
  color: var(--cluster-accent-deep);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

.seo-cluster-observation dd,
.seo-cluster-emotion-map dd,
.seo-cluster-definition-list dd,
.seo-cluster-feeling-dictionary dd,
.seo-emotion-lexicon dd {
  margin: 0;
  color: var(--cluster-muted);
  font-size: 16px;
  line-height: 1.9;
}

.seo-cluster-message,
.seo-cluster-message-example {
  margin: 34px 0 48px;
  padding: 26px 0 10px;
  border-top: 1px solid var(--cluster-line);
  border-bottom: 1px solid var(--cluster-line);
}

.article-body .seo-cluster-message h3 {
  margin: 0 0 15px;
  font-size: 20px;
  line-height: 1.65;
}

.article-body .seo-cluster-message > p:last-child,
.article-body .seo-cluster-message-example > p:not(.seo-cluster-label) {
  margin: 0;
  padding: 15px 20px 18px;
  background: var(--cluster-wash);
  color: var(--cluster-ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
}

.article-body .seo-cluster-message-example--quiet > p:not(.seo-cluster-label) {
  background: rgba(248, 245, 250, .7);
}

.seo-cluster-feelings,
.seo-cluster-feeling-list {
  margin: 35px 0 50px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cluster-line);
}

.seo-cluster-feelings li,
.seo-cluster-feeling-list li {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr);
  gap: 28px;
  padding: 19px 0;
  border-bottom: 1px solid var(--cluster-line);
}

.seo-cluster-feelings strong,
.seo-cluster-feeling-list strong {
  background: none !important;
  color: var(--cluster-accent-deep) !important;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.seo-cluster-feelings span,
.seo-cluster-feeling-list span {
  color: var(--cluster-muted);
  font-size: 16px;
  line-height: 1.9;
}

.seo-cluster-signal-ladder,
.seo-cluster-question-path,
.seo-numbered-path {
  margin: 38px 0 55px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cluster-line);
}

.seo-cluster-signal-ladder > li,
.seo-cluster-question-path > li,
.seo-numbered-path > li {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 25px;
  padding: 24px 0;
  border-bottom: 1px solid var(--cluster-line);
}

.seo-cluster-signal-ladder > li > span,
.seo-cluster-question-path > li > span,
.seo-numbered-path > li > span {
  color: var(--cluster-accent);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
}

.seo-cluster-signal-ladder p,
.seo-cluster-question-path p,
.seo-numbered-path p {
  margin: 0 !important;
  color: var(--cluster-muted);
  font-size: 16px;
  line-height: 1.9;
}

.seo-cluster-signal-ladder strong {
  display: block;
  margin-bottom: 6px;
  background: none !important;
  color: var(--cluster-ink) !important;
  font-size: 18px;
}

.article-body .seo-cluster-question-path h3,
.article-body .seo-numbered-path h3 {
  margin: 0 0 10px;
  color: var(--cluster-ink);
  font-size: 19px;
  line-height: 1.7;
}

.seo-cluster-boundary-formula,
.seo-five-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 50px;
  border-top: 1px solid var(--cluster-line);
  border-bottom: 1px solid var(--cluster-line);
}

.seo-five-signals {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.seo-cluster-boundary-formula > p,
.seo-five-signals > section {
  margin: 0 !important;
  padding: 23px 18px;
}

.seo-cluster-boundary-formula > p + p,
.seo-five-signals > section + section {
  border-left: 1px solid var(--cluster-line);
}

.seo-cluster-boundary-formula strong,
.seo-five-signals span {
  display: block;
  margin-bottom: 8px;
  background: none !important;
  color: var(--cluster-accent-deep) !important;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.seo-cluster-boundary-formula span,
.article-body .seo-five-signals p {
  color: var(--cluster-muted);
  font-size: 16px;
  line-height: 1.8;
}

.article-body .seo-five-signals h3 {
  min-height: 3.3em;
  margin: 0 0 10px;
  color: var(--cluster-ink);
  font-size: 17px;
  line-height: 1.65;
}

.article-body .seo-five-signals p {
  margin: 0;
}

.seo-cluster-seven-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 38px 0 52px;
  border-top: 1px solid var(--cluster-line);
  border-bottom: 1px solid var(--cluster-line);
}

.seo-cluster-seven-days section {
  padding: 22px 16px;
}

.seo-cluster-seven-days section + section {
  border-left: 1px solid var(--cluster-line);
}

.article-body .seo-cluster-seven-days h3 {
  margin: 0 0 10px;
  color: var(--cluster-accent-deep);
  font-size: 17px;
}

.article-body .seo-cluster-seven-days p {
  margin: 0;
  color: var(--cluster-muted);
  font-size: 16px;
  line-height: 1.8;
}

.seo-cluster-safety {
  margin: 42px 0 54px;
  padding-top: 29px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(145, 72, 84, .3);
  border-bottom: 1px solid rgba(145, 72, 84, .3);
}

.article-body .seo-cluster-safety h2 {
  margin: 0 0 17px;
  padding: 0;
  border: 0;
  font-size: 24px;
}

.article-body .seo-cluster-safety h2::after { display: none; }
.seo-cluster-safety ul { margin-bottom: 0; }
.seo-cluster-safety li { margin-bottom: 10px; }
.seo-cluster-safety li strong { margin-right: 10px; }

.seo-cluster-boundary-table,
.seo-cluster-response-table,
.seo-response-table {
  width: 100%;
  margin: 38px 0 52px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--cluster-muted);
  font-size: 16px;
  line-height: 1.8;
}

.seo-cluster-boundary-table th,
.seo-cluster-boundary-table td,
.seo-cluster-response-table th,
.seo-cluster-response-table td,
.seo-response-table th,
.seo-response-table td {
  padding: 17px 15px;
  border-bottom: 1px solid var(--cluster-line);
  text-align: left;
  vertical-align: top;
}

.seo-cluster-boundary-table thead th,
.seo-cluster-response-table thead th,
.seo-response-table thead th {
  border-top: 1px solid var(--cluster-line);
  color: var(--cluster-ink);
  font-weight: 600;
}

.seo-cluster-boundary-table tbody th,
.seo-cluster-response-table tbody th,
.seo-response-table tbody th {
  color: var(--cluster-accent-deep);
  font-weight: 600;
}

@media (max-width: 840px) {
  .seo-five-signals,
  .seo-cluster-seven-days {
    grid-template-columns: 1fr;
  }

  .seo-five-signals > section,
  .seo-cluster-seven-days section {
    padding: 19px 0;
  }

  .seo-five-signals > section + section,
  .seo-cluster-seven-days section + section {
    border-top: 1px solid var(--cluster-line);
    border-left: 0;
  }

  .article-body .seo-five-signals h3 { min-height: 0; }
}

@media (max-width: 680px) {
  .seo-cluster-label,
  .seo-mini-label {
    font-size: 16px !important;
    letter-spacing: .04em;
  }

  .seo-cluster-lead,
  .seo-cluster-thesis,
  .seo-answer-note,
  .seo-words-to-send {
    margin: 38px 0 48px;
    padding: 25px 0 27px;
  }

  .seo-cluster-thesis--boundary,
  .seo-cluster-safety {
    margin-right: -4px;
    margin-left: -4px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .article-body .seo-cluster-lead h2,
  .article-body .seo-cluster-thesis h2,
  .article-body .seo-answer-note h2,
  .article-body .seo-words-to-send h2,
  .article-body .seo-cluster-safety h2 {
    font-size: 22px;
    line-height: 1.65;
  }

  .seo-cluster-contrast,
  .seo-cluster-known-unknown,
  .seo-cluster-reaction-contrast {
    grid-template-columns: 1fr;
    margin: 32px 0 45px;
  }

  .seo-cluster-contrast section,
  .seo-cluster-known-unknown section,
  .seo-cluster-reaction-contrast section,
  .seo-cluster-contrast section + section,
  .seo-cluster-known-unknown section + section,
  .seo-cluster-reaction-contrast section + section {
    padding: 22px 0;
    border-left: 0;
  }

  .seo-cluster-contrast section + section,
  .seo-cluster-known-unknown section + section,
  .seo-cluster-reaction-contrast section + section {
    border-top: 1px solid var(--cluster-line);
  }

  .article-body .seo-cluster-contrast h3,
  .article-body .seo-cluster-reaction-contrast h3,
  .article-body .seo-cluster-message h3 {
    font-size: 19px;
  }

  .seo-cluster-observation > div,
  .seo-cluster-emotion-map > div,
  .seo-cluster-definition-list > div,
  .seo-cluster-feeling-dictionary > div,
  .seo-emotion-lexicon > div,
  .seo-cluster-feelings li,
  .seo-cluster-feeling-list li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }

  .seo-cluster-observation dt,
  .seo-cluster-emotion-map dt,
  .seo-cluster-definition-list dt,
  .seo-cluster-feeling-dictionary dt,
  .seo-emotion-lexicon dt,
  .seo-cluster-feelings strong,
  .seo-cluster-feeling-list strong {
    font-size: 18px;
  }

  .seo-cluster-observation dd,
  .seo-cluster-emotion-map dd,
  .seo-cluster-definition-list dd,
  .seo-cluster-feeling-dictionary dd,
  .seo-emotion-lexicon dd,
  .seo-cluster-feelings span,
  .seo-cluster-feeling-list span,
  .seo-cluster-contrast li,
  .seo-cluster-known-unknown li,
  .seo-cluster-reaction-contrast li {
    font-size: 16px;
    line-height: 1.9;
  }

  .seo-cluster-message,
  .seo-cluster-message-example {
    margin: 30px 0 42px;
    padding-top: 22px;
  }

  .article-body .seo-cluster-message > p:last-child,
  .article-body .seo-cluster-message-example > p:not(.seo-cluster-label) {
    padding: 17px 16px 19px;
    font-size: 17px;
  }

  .seo-cluster-signal-ladder > li,
  .seo-cluster-question-path > li,
  .seo-numbered-path > li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 21px 0;
  }

  .seo-cluster-signal-ladder > li > span,
  .seo-cluster-question-path > li > span,
  .seo-numbered-path > li > span {
    font-size: 16px;
  }

  .seo-cluster-signal-ladder p,
  .seo-cluster-question-path p,
  .seo-numbered-path p {
    font-size: 16px;
  }

  .seo-cluster-boundary-formula {
    grid-template-columns: 1fr;
  }

  .seo-cluster-boundary-formula > p {
    padding: 18px 0;
  }

  .seo-cluster-boundary-formula > p + p {
    border-top: 1px solid var(--cluster-line);
    border-left: 0;
  }

  .seo-cluster-boundary-formula strong,
  .seo-five-signals span,
  .article-body .seo-cluster-seven-days h3 {
    font-size: 18px;
  }

  .seo-cluster-boundary-formula span,
  .article-body .seo-five-signals p,
  .article-body .seo-cluster-seven-days p {
    font-size: 16px;
  }

  .seo-cluster-boundary-table,
  .seo-cluster-response-table,
  .seo-response-table {
    display: block;
    margin: 32px 0 46px;
    font-size: 16px;
  }

  .seo-cluster-boundary-table thead,
  .seo-cluster-response-table thead,
  .seo-response-table thead {
    display: none;
  }

  .seo-cluster-boundary-table tbody,
  .seo-cluster-boundary-table tr,
  .seo-cluster-boundary-table th,
  .seo-cluster-boundary-table td,
  .seo-cluster-response-table tbody,
  .seo-cluster-response-table tr,
  .seo-cluster-response-table th,
  .seo-cluster-response-table td,
  .seo-response-table tbody,
  .seo-response-table tr,
  .seo-response-table th,
  .seo-response-table td {
    display: block;
    width: 100%;
  }

  .seo-cluster-boundary-table tr,
  .seo-cluster-response-table tr,
  .seo-response-table tr {
    padding: 18px 0;
    border-bottom: 1px solid var(--cluster-line);
  }

  .seo-cluster-boundary-table th,
  .seo-cluster-boundary-table td,
  .seo-cluster-response-table th,
  .seo-cluster-response-table td,
  .seo-response-table th,
  .seo-response-table td {
    padding: 4px 0;
    border: 0;
    font-size: 16px;
    line-height: 1.85;
  }

  .seo-cluster-article .article-references li,
  .seo-cluster-article .article-references a {
    font-size: 16px;
    line-height: 1.85;
  }
}

/* 5項目の見せ方（2026-09-26・案3）
   並列の「5つの行動」（seo-five-signals）は「ラベル｜見出し＋説明」の行を縦に並べる。
   時間の流れがある「7日間」（seo-cluster-seven-days）は縦の線と点のタイムラインにする。
   以前の5列の格子は、PC幅で1列が約100pxになり、文章が数文字ごとに改行されていた。 */
.seo-five-signals { display: block; border-bottom: 0; }
.seo-five-signals > section {
  display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 24px;
  padding: 21px 0 22px; border: 0; border-bottom: 1px solid var(--cluster-line);
}
.seo-five-signals > section + section { border-top: 0; border-left: 0; }
.seo-five-signals span { grid-row: 1 / span 2; margin: 0; padding-top: 2px; font-size: 16px; line-height: 1.7; }
.article-body .seo-five-signals h3 { grid-column: 2; min-height: 0; margin: 0; font-size: 18px; line-height: 1.6; }
.article-body .seo-five-signals p { grid-column: 2; text-wrap: pretty; }

.seo-cluster-seven-days { position: relative; display: block; margin: 38px 0 52px; padding: 4px 0 0 30px; border: 0; }
.seo-cluster-seven-days section { position: relative; padding: 0 0 24px; border: 0; }
.seo-cluster-seven-days section + section { border: 0; }
.seo-cluster-seven-days section:last-child { padding-bottom: 0; }
.seo-cluster-seven-days section::before {
  content: ""; position: absolute; left: -29px; top: 9px; width: 11px; height: 11px; box-sizing: border-box;
  border: 2px solid var(--cluster-accent); border-radius: 50%; background: #fff;
}
.seo-cluster-seven-days section:last-child::before { background: var(--cluster-accent); }
/* 点と点の間だけを線でつなぐ（最後の点より下へは伸ばさない） */
.seo-cluster-seven-days section:not(:last-child)::after {
  content: ""; position: absolute; left: -24px; top: 20px; bottom: -9px; width: 1px; background: var(--cluster-line);
}
.article-body .seo-cluster-seven-days h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 17px; line-height: 1.6; }
.article-body .seo-cluster-seven-days p { text-wrap: pretty; }

@media (max-width: 760px) {
  .seo-five-signals > section { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
  .seo-five-signals span,
  .article-body .seo-five-signals h3,
  .article-body .seo-five-signals p { grid-column: 1; grid-row: auto; }
}
