.service-ranking {
  color: #493729;
}
.service-ranking .info-card {
  padding: clamp(20px, 4vw, 44px);
  box-shadow: 0 8px 28px rgba(97, 62, 25, .06);
}
.service-ranking p,
.service-ranking li {
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
}
.service-ranking .ranking-breadcrumb { margin-bottom: 24px; }
.service-ranking .info-card h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.4;
  letter-spacing: .02em;
}
.service-ranking .service-lead { margin: 16px 0; font-size: 17px; }
.service-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; color: #766454; font-size: 12px; }
.service-ranking .service-disclosure { margin: 8px 0 24px; color: #766454; font-size: 12px; }
.service-tabs { display: flex; border-bottom: 1px solid #ded2c2; margin: 0 0 24px; }
.service-tabs a { flex: 1; padding: 12px 8px; text-align: center; text-decoration: none; color: #766454; font-weight: 700; font-size: 15px; }
.service-tabs a[aria-current="page"] { color: #65401d; background: #f7eddf; border-radius: 8px 8px 0 0; box-shadow: inset 0 -3px #a86a2d; }
.service-shortlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-summary { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid #e1d7c9; border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }
.service-summary.is-first { background: #fffaee; border-color: #c89b56; }
.service-summary-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.service-place { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 36px; height: 32px; padding: 0 8px; background: #f1ece5; border-radius: 6px; color: #6b5644; font-size: 14px; font-weight: 700; }
.is-first .service-place { color: #fff; background: #986321; }
.service-mini-score { color: #75604c; font-size: 12px; white-space: nowrap; }
.service-mini-score strong { color: #65401d; font-size: 26px; font-variant-numeric: tabular-nums; }
.service-summary-name { font-size: 21px; line-height: 1.4; }
.service-summary-fit { font-size: 14px; line-height: 1.7; }
.service-summary-detail { margin-top: auto; font-size: 12px; color: #7e5229; padding-top: 4px; }
.service-summary:hover { border-color: #a86a2d; background: #fff7e8; }
.service-ranking a:focus-visible,
.service-ranking summary:focus-visible { outline: 2px solid #986321; outline-offset: 4px; }
.service-method { margin: 16px 0 36px; color: #766454; font-size: 13px; }
.service-ranking summary { cursor: pointer; padding-block: 8px; font-size: 14px; }
.service-method p { margin: 8px 0; font-size: 14px; }
.service-entries { display: grid; gap: 24px; }
.service-entry { border: 1px solid #e1d7c9; border-radius: 12px; padding: clamp(20px, 3vw, 32px); scroll-margin-top: 88px; background: #fff; }
.service-entry.is-first { border-color: #c89b56; }
.service-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.service-entry-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.service-entry h2 { margin: 0; font-size: clamp(22px, 2.5vw, 28px); line-height: 1.4; color: #493323; }
.service-ranking .service-score { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 4px; margin: 0; flex-shrink: 0; color: #80521f; line-height: 1.2; }
.service-score span:first-child { grid-column: 1 / -1; color: #766454; font-size: 11px; text-align: right; }
.service-score strong { font-size: 42px; font-weight: 700; font-variant-numeric: tabular-nums; }
.service-score span:last-child { font-size: 11px; }
.service-ranking .service-fit { margin: 12px 0 24px; color: #80521f; font-weight: 700; }
.service-entry-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.service-reasons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.service-reasons h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.65; color: #493323; }
.service-reasons p { margin: 0; color: #655244; }
.service-offer { display: grid; gap: 12px; justify-items: center; padding: 16px; background: #faf6ef; border-radius: 8px; min-width: 0; }
.service-offer .service-offer-text { margin: 0; text-align: center; font-size: 15px; }
.service-ad { width: 100%; max-width: 300px; }
.service-ad a { display: block; width: 100%; max-width: 100%; }
.service-ad a img { display: block; max-width: 100%; height: auto; border: 0; }
.service-tracking-pixel { position: absolute; width: 1px; height: 1px; border: 0; }
.service-ranking .service-cta { display: flex; justify-content: center; align-items: center; width: 100%; box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 48px; padding: 12px 14px; font-size: 14px; line-height: 1.5; text-align: center; border-radius: 8px; box-shadow: none; text-decoration: none; }
.service-ranking .landing-primary::before { content: none; }
.service-ranking .service-check { margin: 0; font-size: 12px; line-height: 1.75; color: #766454; }
.service-extra h2 { margin: 0 0 16px; font-size: 23px; line-height: 1.6; color: #493323; }
.service-text-link { color: #80521f; font-size: 14px; text-underline-offset: 4px; }
.service-extra { margin-top: 40px; padding: 24px; background: #faf6ef; border-radius: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; }
.service-extra p { margin: 0 0 16px; }
.service-sources { margin-top: 32px; border-bottom: 1px solid #e1d7c9; padding-bottom: 16px; }
.service-sources .info-list { font-weight: 400; padding-left: 1.3em; }
.service-sources li { font-size: 13px; margin-block: 8px; }
.service-sources a { color: #80521f; text-underline-offset: 3px; }
.service-related { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.service-related .info-secondary { font-size: 14px; }
@media (max-width: 900px) {
  .service-entry-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .service-offer { grid-template-columns: minmax(0, 1fr); }
  .service-offer .service-ad { width: auto; max-width: 260px; }
  .service-offer .service-cta { max-width: 340px; }
  .service-summary { padding: 16px; }
  .service-extra { grid-template-columns: minmax(0, 1fr); }
  .service-extra .service-ad { justify-self: center; }
}
@media (max-width: 560px) {
  .service-ranking.info-main { width: calc(100% - 24px); }
  .service-ranking .info-card { padding: 20px 16px; }
  .service-ranking .ranking-breadcrumb { margin-bottom: 16px; font-size: 11px; }
  .service-ranking .info-card h1 { font-size: 27px; letter-spacing: 0; }
  .service-ranking .service-lead { font-size: 15px; }
  .service-tabs a { font-size: 14px; }
  .service-shortlist { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .service-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; }
  .service-summary-top { display: contents; }
  .service-summary .service-place { grid-column: 1; grid-row: 1; width: fit-content; min-width: 0; height: auto; background: transparent; padding: 0; color: #80521f; font-size: 12px; }
  .service-summary .service-mini-score { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .service-summary-name { grid-column: 1; font-size: 20px; }
  .service-summary-fit { grid-column: 1 / -1; font-size: 13px; }
  .service-summary-detail { grid-column: 1 / -1; font-size: 11px; }
  .service-method { margin-bottom: 24px; }
  .service-entry { padding: 20px 16px; }
  .service-entry-heading { gap: 8px; align-items: start; }
  .service-entry-name { flex-wrap: wrap; gap: 8px; }
  .service-entry h2 { font-size: 22px; }
  .service-entry .service-place { font-size: 12px; min-width: 28px; height: 28px; padding-inline: 4px; }
  .service-score strong { font-size: 34px; }
  .service-score span:last-child { font-size: 10px; }
  .service-ranking .service-fit { font-size: 15px; margin-bottom: 20px; }
  .service-reasons h3 { font-size: 17px; }
  .service-reasons p { font-size: 15px; }
  .service-reasons ul { gap: 20px; }
  .service-entry-body { gap: 20px; }
  .service-offer { padding: 16px 12px; }
  .service-extra { padding: 20px 16px; }
  .service-extra h2 { font-size: 21px; }
}

/* ストアごとに明るい色と王冠で順位を見分けられるようにする。 */
.service-ranking [data-store="kobo"] { --store-color: #98600c; --store-line: #e2ad37; --store-paper: #fff5ce; --crown-color: #d79808; }
.service-ranking [data-store="kindle"] { --store-color: #235e85; --store-line: #91b7da; --store-paper: #eaf5ff; --crown-color: #809bb5; }
.service-ranking [data-store="dmm"] { --store-color: #a14539; --store-line: #e4a097; --store-paper: #fff0ec; --crown-color: #bd7052; }
.service-ranking .service-summary { border: 2px solid var(--store-line); background: var(--store-paper); border-radius: 16px; box-shadow: 0 4px 0 var(--store-paper); gap: 10px; }
.service-ranking .service-summary:hover { border-color: var(--store-color); box-shadow: 0 4px 12px #49372915; }
.service-ranking .service-summary-name { color: var(--store-color); font-size: 23px; }
.service-ranking .service-summary-fit { font-size: 15px; font-weight: 600; line-height: 1.75; }
.service-ranking .service-mini-score strong { color: var(--store-color); font-size: 32px; }
.service-ranking .service-mini-score { color: var(--store-color); }
.service-ranking .service-place { display: inline-flex; flex-direction: row; gap: 6px; align-items: center; min-width: 0; width: auto; height: auto; padding: 0; background: transparent; color: var(--store-color); border-radius: 0; font-size: 14px; }
.service-crown { width: 30px; height: 28px; flex-shrink: 0; color: var(--crown-color); }
.service-ranking .service-promo { display: inline-flex; width: fit-content; margin: 0; padding: 4px 10px; border-radius: 6px; background: #fff; color: #a13e28; font-size: 13px; font-weight: 700; line-height: 1.6; border: 1px solid #e9b6a0; }
.service-ranking .service-summary-detail { color: var(--store-color); }
.service-ranking .service-entry { border: 2px solid var(--store-line); border-radius: 16px; }
.service-ranking .service-entry-heading { padding-bottom: 16px; border-bottom: 1px solid var(--store-line); }
.service-ranking .service-entry h2, .service-ranking .service-score { color: var(--store-color); }
.service-ranking .service-entry .service-fit { color: var(--store-color); margin: 16px 0 12px; }
.service-ranking .service-entry > .service-promo { margin-bottom: 20px; background: #fff8eb; }
.service-ranking .service-entry-body { margin-top: 12px; }
.service-ranking .service-offer { background: var(--store-paper); border-radius: 12px; }
.service-ranking .service-tabs { gap: 8px; border: 0; background: #eef6f3; border-radius: 12px; padding: 6px; }
.service-ranking .service-tabs a { border-radius: 8px; color: #41685d; }
.service-ranking .service-tabs a[aria-current="page"] { background: #217d72; color: white; box-shadow: 0 2px 6px #14584c20; }
.service-bookshelf-cta { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 28px; border-radius: 16px; background: #eaf6f0; border: 1px solid #b3d5c7; }
.service-bookshelf-cta h2 { color: #225f50; margin: 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.6; }
.service-bookshelf-cta h2 span { display: inline-block; }
.service-bookshelf-cta p { color: #3b6659; margin: 8px 0 0; }
.service-ranking .service-bookshelf-cta .landing-primary { background: #217d72; color: white; box-shadow: none; border-radius: 10px; padding: 14px 24px; font-size: 16px; min-width: 0; }
@media (max-width: 560px) {
  .service-ranking .service-summary { gap: 6px 12px; padding: 16px; }
  .service-ranking .service-summary-name { font-size: 22px; }
  .service-ranking .service-summary-fit { font-size: 14px; }
  .service-ranking .service-summary .service-place { grid-column: 1; grid-row: 1; font-size: 13px; }
  .service-ranking .service-summary .service-crown { width: 24px; height: 22px; }
  .service-ranking .service-summary > .service-promo { grid-column: 1 / -1; }
  .service-ranking .service-entry .service-crown { width: 26px; height: 24px; }
  .service-ranking .service-entry-name { gap: 8px; }
  .service-ranking .service-entry .service-place { gap: 4px; font-size: 12px; }
  .service-bookshelf-cta { padding: 22px 18px; }
  .service-ranking .service-bookshelf-cta .landing-primary { width: 100%; }
}

.service-ranking [data-store="itsudemo"] { --store-color: #715194; --store-line: #b8a0d6; --store-paper: #f4eeff; --crown-color: #9171b4; }
@media (min-width: 1100px) {
  .service-shortlist { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
