/*
 * 本文・解析値・新しいページの表示（2026-11 の www 改修で追加）。
 * public/_dev（webpack 4 + node-sass）のビルドを通さない素の CSS。style.app.css の後に読み込む。
 * style.app.css は全要素に font-size を直接当て、line-height: 1・リストの記号なしにリセットしているので、ここで必要な分を戻す
 */
:root {
  --c-text: #333;
  --c-muted: #777;
  --c-line: #e3e3e3;
  --c-bg: #fff;
  --c-soft: #f6f7f9;
  --c-link: #007bff;
  --c-good: #0c7d3f;
  --c-good-bg: #e3f5ea;
  --c-average: #a35a00;
  --c-average-bg: #fff1dc;
  --c-poor: #b3261e;
  --c-poor-bg: #fde7e5;
}

.page-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.4rem 1.6rem;
  color: var(--c-text);
}

.page-body p, .page-body li, .page-body td, .page-body th, .page-body dd, .page-body dt {
  line-height: 1.8;
}

/* ---------------- 見出し・本文 ---------------- */
.section-content, .section-audit, .section-tech, .section-sources, .section-articles,
.section-compare, .section-tech-productions {
  margin-bottom: 3.2rem;
}

.section-content-title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--c-text);
}

.section-sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 2rem 0 .8rem;
}

.md-body {
  font-size: 1.6rem;
  line-height: 1.9;
}

.md-body > * + * {
  margin-top: 1.2em;
}

.md-body p, .md-body li, .md-body td, .md-body th, .md-body blockquote, .md-body a, .md-body strong, .md-body em, .md-body code {
  font-size: inherit;
  line-height: inherit;
}

.md-body h1, .md-body h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 2em;
}

.md-body h3 {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.6em;
}

.md-body h4, .md-body h5, .md-body h6 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 1.4em;
}

.md-body ul, .md-body ol {
  padding-left: 1.6em;
}

.md-body ul > li {
  list-style: disc;
}

.md-body ol > li {
  list-style: decimal;
}

.md-body li + li {
  margin-top: .3em;
}

.md-body a {
  color: var(--c-link);
  text-decoration: underline;
}

.md-body strong {
  font-weight: 600;
}

.md-body blockquote {
  border-left: 4px solid var(--c-line);
  padding-left: 1em;
  color: var(--c-muted);
}

.md-body code {
  font-family: monospace;
  background: var(--c-soft);
  padding: .1em .3em;
}

.md-body table {
  display: block;
  overflow-x: auto;
}

.md-body table, .data-ranking table, .audit-tables table, .compare-table {
  border-collapse: collapse;
  width: 100%;
}

.md-body th, .md-body td,
.data-ranking th, .data-ranking td,
.audit-tables th, .audit-tables td,
.compare-table th, .compare-table td {
  border-bottom: 1px solid var(--c-line);
  padding: .6rem .8rem;
  text-align: left;
  vertical-align: top;
  font-size: 1.4rem;
}

.md-body thead th, .data-ranking thead th, .audit-tables thead th, .compare-table thead th {
  font-weight: 600;
  background: var(--c-soft);
}

/* ---------------- データ記法 ---------------- */
.data-block {
  margin: 1.6em 0;
  overflow-x: auto;
}

.data-ranking .rank, .data-ranking .value {
  white-space: nowrap;
  text-align: right;
}

.data-sites {
  padding: 0 !important;
}

.data-sites li {
  list-style: none !important;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  padding: .8rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  align-items: baseline;
}

.data-sites .name {
  font-weight: 600;
}

.data-sites .production {
  font-size: 1.3rem;
  color: var(--c-muted);
}

/* ---------------- スコア ---------------- */
.score, .vital {
  display: inline-block;
  min-width: 3.2em;
  padding: .1em .5em;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.6;
}

.score-good, .vital-good {
  color: var(--c-good);
  background: var(--c-good-bg);
}

.score-average, .vital-average {
  color: var(--c-average);
  background: var(--c-average-bg);
}

.score-poor, .vital-poor {
  color: var(--c-poor);
  background: var(--c-poor-bg);
}

.score-none, .vital-none {
  color: var(--c-muted);
}

.audit-tables {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.4rem;
}

.audit-tables td small {
  display: block;
  font-size: 1.2rem;
  color: var(--c-muted);
}

.observation {
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
}

.audit-note, .form-note {
  font-size: 1.3rem;
  color: var(--c-muted);
  margin-top: 1.2rem;
}

.audit-note a {
  font-size: inherit;
  color: var(--c-link);
}

.ranks li {
  font-size: 1.5rem;
}

.ranks a, .ranks strong {
  font-size: inherit;
}

.ranks strong {
  font-weight: 600;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.stat-grid > div {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  padding: 1.2rem;
}

.stat-grid dt {
  font-size: 1.3rem;
  color: var(--c-muted);
}

.stat-grid dd {
  font-size: 2.4rem;
  font-weight: 600;
  margin-top: .4rem;
}

.stat-grid dd small {
  font-size: 1.3rem;
  margin-left: .2em;
}

.stat-row {
  font-size: 1.4rem;
  margin-top: .8rem;
}

.stat-row .label, .list-sort .label, .compare-links .label {
  font-weight: 600;
  margin-right: .8rem;
  font-size: 1.4rem;
}

.stat-row small, .tech-index small, .ranking-list small, .compare-links small {
  font-size: 1.2rem;
  color: var(--c-muted);
  margin: 0 .8rem 0 .3rem;
}

.stat-line {
  font-size: 1.2rem;
  color: var(--c-muted);
  margin-top: .6rem;
  line-height: 1.6;
}

/* ---------------- タグ・技術 ---------------- */
.tag, .tech {
  display: inline-block;
  font-size: 1.3rem;
  line-height: 1.6;
  padding: .1em .7em;
  margin: 0 .4rem .4rem 0;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: var(--c-bg);
  color: var(--c-text);
  text-decoration: none;
}

a.tag:hover, a.tech:hover {
  border-color: var(--c-link);
  color: var(--c-link);
}

.tech-list {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: .6rem 1.2rem;
}

.tech-list dt {
  font-weight: 600;
  font-size: 1.4rem;
}

.tech-index, .ranking-list, .article-list {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.6rem;
}

.tech-index li, .ranking-list li, .article-list li {
  font-size: 1.5rem;
}

.ranking-list {
  display: block;
  padding-left: 1.6em;
}

.ranking-list li {
  list-style: decimal;
}

.article-list {
  display: block;
}

.article-list li + li {
  margin-top: .6rem;
}

.tech-index a, .ranking-list a, .article-list a {
  font-size: inherit;
  color: var(--c-link);
}

/* ---------------- 並び替え・関連リンク ---------------- */
.list-sort, .compare-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin: 1.6rem 0;
}

.list-sort a, .list-sort .current, .compare-links a {
  font-size: 1.4rem;
  padding: .3em .8em;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-text);
  text-decoration: none;
}

.list-sort .current {
  background: var(--c-text);
  border-color: var(--c-text);
  color: #fff;
}

/* ---------------- サイト詳細・制作会社詳細の見出し ---------------- */
.section-site-head, .section-production-head {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.2rem 1.6rem;
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 3.2rem;
  align-items: start;
}

.section-production-head {
  grid-template-columns: 320px 1fr;
}

.section-site-head .photo img, .section-production-head .photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--c-line);
  box-shadow: 0 0 8px rgba(0, 0, 0, .08);
  background: var(--c-bg);
}

.site-name, .production-name {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.section-site-head .tagline, .section-production-head .tagline {
  font-size: 1.7rem;
  line-height: 1.7;
  margin-top: 1.2rem;
}

.page-body, .head-body {
  overflow-wrap: anywhere;
}

.site-url {
  margin-top: 1.2rem;
  font-size: 1.4rem;
  word-break: break-all;
}

.site-url a {
  font-size: inherit;
  color: var(--c-link);
}

.head-data {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: .8rem 1.2rem;
  margin-top: 2rem;
}

.head-data dt {
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.8;
}

.head-data dd, .head-data dd a {
  font-size: 1.5rem;
  line-height: 1.8;
}

.head-data dd > a:not(.tag) {
  color: var(--c-link);
}

.notice {
  margin-top: 1.6rem;
  padding: 1.2rem 1.6rem;
  font-size: 1.4rem;
  line-height: 1.7;
  background: var(--c-average-bg);
  color: var(--c-average);
}

.notice-done {
  background: var(--c-good-bg);
  color: var(--c-good);
  margin-bottom: 2rem;
}

.notice-error {
  background: var(--c-poor-bg);
  color: var(--c-poor);
}

.notice-error li {
  font-size: 1.4rem;
}

.takedown-link {
  font-size: 1.3rem;
  color: var(--c-muted);
  text-align: right;
}

.takedown-link a {
  font-size: inherit;
  color: var(--c-link);
}

/* ---------------- 比較ページ ---------------- */
.section-compare {
  overflow-x: auto;
}

.compare-table .num {
  text-align: right;
  white-space: nowrap;
}

.compare-table th small, .compare-table .tagline {
  display: block;
  font-size: 1.2rem;
  color: var(--c-muted);
  font-weight: normal;
}

.compare-table a:not(.tag) {
  font-size: 1.5rem;
  color: var(--c-link);
  font-weight: 600;
}

/* ---------------- 出典 ---------------- */
.sources {
  padding-left: 1.6em;
}

.sources li {
  list-style: decimal;
  font-size: 1.4rem;
}

.sources a {
  font-size: inherit;
  color: var(--c-link);
}

.sources span {
  font-size: 1.3rem;
  color: var(--c-muted);
  margin-left: .6em;
}

.sources .reliability {
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 0 .4em;
}

/* ---------------- 記事・固定ページ ---------------- */
.article-body {
  max-width: 800px;
  background: var(--c-bg);
  margin: 3.2rem auto;
  padding: 3.2rem;
}

.breadcrumb, .breadcrumb a {
  font-size: 1.3rem;
  color: var(--c-link);
}

.article-title {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.4;
  margin: .8rem 0 1.2rem;
}

.article-meta, .article-meta time, .article-meta span {
  font-size: 1.3rem;
  color: var(--c-muted);
}

.article-meta span {
  margin-left: 1.2rem;
}

.article-lead {
  font-size: 1.7rem;
  line-height: 1.9;
  margin: 2rem 0;
}

.article-cards li {
  background: var(--c-bg);
  padding: 1.6rem 2rem;
  margin-bottom: 1.2rem;
}

.article-cards .title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.5;
}

.article-cards .lead {
  font-size: 1.4rem;
  margin-top: .6rem;
}

.article-cards time {
  display: block;
  font-size: 1.2rem;
  color: var(--c-muted);
  margin-top: .6rem;
}

/* ---------------- 申請フォーム ---------------- */
.contact-form {
  margin-top: 2.4rem;
}

.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form fieldset, .contact-form .field {
  display: block;
  margin-bottom: 2rem;
}

.contact-form legend, .contact-form .field > span {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .6rem;
}

.contact-form .req {
  font-size: 1.1rem;
  color: var(--c-poor);
  margin-left: .4em;
}

.contact-form .radio {
  font-size: 1.5rem;
  margin-right: 2rem;
}

.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 1.6rem;
  line-height: 1.6;
  padding: .8rem 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
}

.contact-form button {
  font-size: 1.6rem;
  padding: 1rem 3.2rem;
  border: 0;
  border-radius: 4px;
  background: var(--c-text);
  color: #fff;
  cursor: pointer;
}

/* ---------------- フッター ---------------- */
footer.global .footer-pages {
  padding: 0 3.2rem 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
}

footer.global .footer-pages a {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
}

footer.global .footer-pages a:hover {
  color: #fff;
}

/* ---------------- 狭い画面 ---------------- */
@media screen and (max-width: 768px) {
  /* ナビの項目が増えたので、狭い画面では英字を消して詰める */
  header.global nav.global a {
    padding: 1.2rem .6rem;
  }

  header.global nav.global a .en {
    display: none;
  }

  .section-site-head, .section-production-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    padding: 1.6rem;
  }

  .section-production-head .photo {
    max-width: 320px;
  }

  .site-name, .production-name {
    font-size: 2.2rem;
  }

  .audit-tables {
    grid-template-columns: minmax(0, 1fr);
  }

  .tech-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-body {
    margin: 0;
    padding: 2rem 1.6rem;
  }

  .article-title {
    font-size: 2.4rem;
  }

  footer.global .footer-pages {
    padding: 0 1.6rem 2rem;
  }
}
