:root {
  color-scheme: light;
  --ink: #192130;
  --secondary: #4b5462;
  --blue: #2554aa;
  --blue-hover: #173b82;
  --rule: #e1e5eb;
  --surface: #f6f8fb;
  font-family: "Noto Sans JP", sans-serif;
  scroll-padding-top: 1.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-weight: 400; line-height: 1.75; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { color: var(--blue-hover); }
a:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
.wrap { width: min(100% - 3rem, 62rem); margin-inline: auto; }

.skip { position: fixed; top: .5rem; left: .75rem; transform: translateY(-150%); padding: .6rem; background: #fff; z-index: 1; }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .52rem; color: var(--ink); font-size: 1.13rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 1.75rem; aspect-ratio: 1; color: var(--blue); }
.brand-mark i {
  position: relative;
  width: 1.53rem;
  height: 1.13rem;
  background: currentColor;
  clip-path: polygon(0 0, 28% 23%, 72% 23%, 100% 0, 100% 64%, 86% 89%, 63% 100%, 37% 100%, 14% 89%, 0 64%);
}
.brand-mark i::after {
  content: "";
  position: absolute;
  top: .53rem;
  left: .38rem;
  width: .14rem;
  height: .14rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: .63rem 0 #fff;
}
.masthead nav { display: flex; gap: 1.3rem; font-size: .9rem; font-weight: 600; }
.masthead nav a { color: var(--secondary); text-decoration: none; }
.masthead nav a:hover { color: var(--blue); text-decoration: underline; }

.article-heading { padding: clamp(1.65rem, 4vw, 3.35rem) 0 1.35rem; }
.article-heading h1 { font-size: clamp(1.65rem, 4.1vw, 2.75rem); font-weight: 800; line-height: 1.34; letter-spacing: .015em; }
.article-heading h1 span { display: inline-block; margin-top: .35rem; color: var(--secondary); font-size: .56em; font-weight: 600; letter-spacing: .045em; }
.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1.85;
  object-fit: cover;
  object-position: 50% 66%;
  border-radius: .3rem;
  background: var(--surface);
}
.article-lead { margin-top: 1.65rem; max-width: 52rem; line-height: 1.9; }
.article-lead p + p { margin-top: .8rem; }

.topics { margin: 2.15rem 0 3.5rem; padding: 1rem 0 1.15rem; border-block: 1px solid var(--rule); }
.topics h2 { font-size: 1rem; }
.topics ul { display: flex; flex-wrap: wrap; gap: .45rem 1.6rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.topics a { display: inline-block; min-height: 1.8rem; font-size: .94rem; }

.rankings { display: grid; gap: 3.6rem; }
.ranking { min-width: 0; }
.ranking-heading { margin-bottom: .85rem; }
.ranking-heading p { margin-bottom: .25rem; color: var(--blue); font-size: .88rem; font-weight: 700; }
.ranking-heading h2, .compare h2, .method h2 { font-size: clamp(1.43rem, 3vw, 1.95rem); font-weight: 700; line-height: 1.35; }
.criteria, .ranking-note { margin-top: .62rem; color: var(--secondary); font-size: .91rem; }
.criteria strong { margin-right: .35rem; color: var(--ink); }
.product-list { margin-top: 1.1rem; border-top: 1px solid var(--rule); }
.product {
  display: grid;
  grid-template-columns: clamp(8rem, 22vw, 13rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 4vw, 2rem);
  padding-block: 1.45rem;
  border-bottom: 1px solid var(--rule);
}
.product-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.product-heading { display: flex; align-items: center; gap: .85rem; margin-bottom: .55rem; }
.place {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  gap: .11rem;
  min-width: 2.3rem;
  padding: .06rem .4rem;
  border: 1px solid var(--rule);
  border-radius: .25rem;
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: 800;
}
.place.first { border-color: #d5e0f5; background: #edf3fd; color: var(--blue); }
.place small { font-size: .68em; }
.product-copy { min-width: 0; overflow-wrap: anywhere; }
.product-copy h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.35; }
.maker { color: var(--secondary); font-size: .85rem; }
.highlight { margin-bottom: .22rem; font-weight: 700; }
.pros-cons { margin: .65rem 0 .95rem; font-size: .94rem; }
.pros-cons div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: .55rem; padding-block: .42rem; border-bottom: 1px solid var(--rule); }
.pros-cons dt { font-weight: 700; }
.pros-cons dd { margin: 0; color: var(--secondary); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .95rem; font-size: .89rem; }
.amazon { display: inline-flex; align-items: center; min-height: 2.6rem; padding: .35rem .85rem; border-radius: .25rem; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
.amazon:hover { background: var(--blue-hover); color: #fff; }

.compare { margin-top: 3.6rem; }
.compare > p, .method > p { margin-top: .65rem; color: var(--secondary); }
.table-wrap { margin-top: 1rem; border: 1px solid var(--rule); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
th, td { padding: .68rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead { background: var(--surface); }
tbody tr:last-child > * { border-bottom: 0; }
.method { margin: 2.65rem 0 3.5rem; }
.method h2 { font-size: 1.3rem; }
.footer { padding: 1.55rem 0; border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .65rem 1.2rem; }
.footer p, .credit, .disclosure { color: var(--secondary); font-size: .82rem; }
.disclosure { margin-top: .65rem; }

@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 3.5rem; }
  .brand { font-size: 1rem; gap: .35rem; }
  .masthead nav { gap: .7rem; font-size: .81rem; }
  .article-heading { padding-bottom: 1rem; }
  .hero-photo { aspect-ratio: 1.63; }
  .article-lead { margin-top: 1.2rem; }
  .topics { margin-block: 1.4rem 2.45rem; }
  .topics ul { display: grid; gap: .25rem; }
  .rankings { gap: 2.6rem; }
  .product { grid-template-columns: minmax(0, 1fr); gap: .8rem; padding-block: 1.15rem; }
  .product-photo img { width: min(65%, 11rem); margin-inline: auto; }
  .compare { margin-top: 2.6rem; }
  table { min-width: 33rem; }
}
