:root {
  --red: #e53935;
  --deep: #111827;
  --muted: #667085;
  --bg: #f7fafc;
  --line: #d9e2ec;
  --green: #19a974;
  --yellow: #ffc857;
  --soft-red: #fff1f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #dbe4ee;
  color: var(--deep);
  line-height: 1.55;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

.site {
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 88px;
}

section {
  padding: 17px 14px;
}

/* ==================================
   header
================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: block;
  width: 6rem;
}

.logo img {
  display: block;
}

.menuButton {
  position: relative;
  display: inline-grid;
  align-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  padding: 0 10px;
  box-shadow: 0 4px 0 #a80808;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.menuButton span:not(.visually-hidden) {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.menuButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #a80808, 0 8px 16px rgba(17, 24, 39, .18);
  background: #f01520;
}

.menuButton:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #a80808;
}

.menuButton.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menuButton.is-open span:nth-child(2) {
  opacity: 0;
}

.menuButton.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.headerMenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 10px;
  width: min(260px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(17, 24, 39, .18);
}

.headerMenu a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--deep);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
}

.headerMenu a:last-child {
  border-bottom: 0;
}

.headerMenu a:hover {
  background: var(--soft-red);
  color: var(--red);
  padding-left: 20px;
}


/* ==================================
   FV
================================== */
.fv{
  padding: 0;
  position: relative;
}
.fv .container-fluid{
  padding: 0;
}
.fv h1 {
  margin-bottom: 0; 
}

.fv .container-fluid {
  padding: 0;
}
.fvCtaGrid {
  position: absolute; /* ★追加: 要素を浮かせて画像の上に重ねる */
  bottom: 15px;       /* ★追加: 画像下端からの位置。完成イメージに合わせて10px〜5%など調整してください */
  left: 0;            /* ★追加: 左端から配置 */
  width: 100%;        /* ★追加: 横幅を画面いっぱいに */
  padding: 0 10px;    /* ★追加: 左右の余白（画面端にボタンがくっつかないように調整） */
  z-index: 10;        /* ★追加: 画像より前面（上）に表示させる */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fvCta {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr 16px;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 0.2rem;
  border: 3px solid #fff;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .35),
    0 7px 12px rgba(0, 0, 0, .32);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.fvCta::after {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 6px solid #fff;
  border-right: 6px solid #fff;
  transform: rotate(45deg);
}

.fvCta.primary {
  background: linear-gradient(145deg, #ff8c00 0%, #ff2a00 52%, #dc0000 100%);
}

.fvCta.secondary {
  background: linear-gradient(145deg, #178cff 0%, #005bd1 58%, #003c96 100%);
}

.fvCta:hover {
  color: #fff;
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .45),
    0 12px 18px rgba(0, 0, 0, .34);
}

.fvCta:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .25),
    0 4px 8px rgba(0, 0, 0, .28);
}

.ctaText {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .22);
}

.ctaText em {
  color: #ffed26;
  font-size: 15px;
  line-height: 1.05;
  font-style: normal;
  font-weight: 1000;
}

.ctaText strong {
  color: #fff;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 1000;
}

.ctaIcon {
  position: relative;
  width: 34px;
  height: 50%;
}

.ctaIcon.crown {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px; /* アイコンの大きさに合わせて数値を調整してください */
}

/* ==================================
   絞り込み検索
================================== */
#ranking,
#rank1,
#rank2,
#rank3,
#rank4,
#rank5,
.filterSection {
  scroll-margin-top: 62px;
}

h2 {
  font-size: 19px;
  margin: 0 0 11px;
  line-height: 1.28;
}

.filterBox {
  border: 2px solid var(--red);
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .08);
}

.filterHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #df000b;
  color: #fff;
  padding: 16px 20px;
}

.filterHeader h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
}

.filterIcon {
  position: relative;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border: 3px solid #ff8a2b;
  border-radius: 50%;
}

.filterIcon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 3px;
  right: -8px;
  bottom: -5px;
  background: #ff8a2b;
  transform: rotate(45deg);
  border-radius: 999px;
}

.filterPanel {
  padding: 4px 10px 0;
}

.filterGroup {
  border: 0;
  border-bottom: 1px dashed var(--line);
  margin: 0;
  padding: 5px 0 18px;
}

.filterGroup:last-child {
  border-bottom: 0;
}

.filterGroup legend {
  position: relative;
  display: block;
  width: 100%;
  padding-left: 18px;
  margin-bottom: 0px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.filterGroup legend::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 5px;
  background: var(--red);
}

.radioGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 7px;
  row-gap: 0px;
}

.filterOption {
  display: inline-grid;
  grid-template-columns: 17px 1fr;
  align-items: center;
  gap: 0;
  min-height: 28px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--deep);
  cursor: pointer;
}

.filterOption input {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 2px solid #8a8f98;
  border-radius: 50%;
  background: #fff;
}

.filterOption input:checked {
  border-color: #0086ff;
  box-shadow: inset 0 0 0 4px #fff;
  background: #0086ff;
}

.filterOption span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.filterMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 26px 18px;
  font-size: 12px;
  color: var(--muted);
}

.filterSearchButton {
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #a80808;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.filterSearchButton:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 6px 0 #a80808, 0 8px 16px rgba(17, 24, 39, .16);
}

.filterSearchButton:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #a80808;
}

/* ==================================
   比較テーブル（画像風デザイン）
================================== */
.c-table {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #555;
  border-left: 1px solid #555;
  background: #fff;
  margin-top: 25px; /* 王冠が上に飛び出るための余白 */
  font-family: sans-serif;
}

/* 1位を囲む「赤い太枠」（上から被せる処理） */
.c-table::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: -2px;
  width: calc(33.3333% + 2px);
  border: 3px solid #ff0000;
  pointer-events: none; /* クリックの邪魔にならないように */
  z-index: 5;
}

/* 1位の列の背景色（うすいクリーム色） */
.c-head.rank1, 
.c-cell.rank1 {
  background-color: #fffff2;
}

/* セル共通 */
.c-head, .c-cell {
  border-right: 1px solid #555;
  border-bottom: 1px solid #555;
  text-align: center;
  padding: 5px 4px;
}
.c-head {
  position: relative;
  padding-top: 15px;
}

/* 王冠バッジ（CSSで描画） */
.c-crown {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 900;
  padding: 3px 16px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.c-crown.gold {
  background: #ffcc00;
  color: #7a4500;
}
.c-crown.silver {
  background: #e0e0e0;
  color: #555;
}
.c-crown.bronze {
  background: #cd7f32;
  color: #fff;
}

/* ヘッダー画像とテキスト */
.c-thumb {
  width: 80%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #eef4f8; /* 画像がない場合の仮背景 */
  margin: 0 auto;
}
.c-name {
  font-size: 11px;
  font-weight: 900;
  margin: 6px 0 0;
  line-height: 1.25;
  color: #111;
}

/* 項目タイトル（オレンジ帯） */
.c-rowTitle {
  grid-column: 1 / -1; /* 3列を横断する */
  background: #ff6600; /* オレンジ */
  color: #fff;
  font-weight: 900;
  text-align: center;
  padding: 6px 0;
  font-size: 14px;
  border-right: 1px solid #555;
  border-bottom: 1px solid #555;
}

/* ◎（赤い二重丸）をCSSで描画 */
.c-mark.double-circle {
  display: inline-block;
  width: 35px;
  height: 35px;
  border: 3px solid #ff0000;
  border-radius: 50%;
  position: relative;
}
.c-mark.double-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border: 3px solid #ff0000;
  border-radius: 50%;
}
/* △（ネイビーの三角） */
.c-mark.triangle {
  display: inline-block;
  width: 0;
  height: 0;
  /* 枠線を使って外側の三角形を描画 */
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 30px solid #1a365d; /* ネイビー */
  position: relative;
  margin-bottom: 3px;
}
.c-mark.triangle::after {
  content: "";
  position: absolute;
  top: 7px; 
  left: -11px; 
  /* 枠線を使って内側の三角形を描画し、中をくり抜く */
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 19px solid #fff; /* ★重要：背景色と同じ色を指定してください（ここでは白） */
}

/* ✕（ネイビーのバツ） */
.c-mark.cross {
  display: inline-block;
  width: 35px;
  height: 35px;
  position: relative;
  margin-bottom: 3px;
}
.c-mark.cross::before,
.c-mark.cross::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%; /* 横幅いっぱい（44px） */
  height: 6px; /* 線の太さを二重丸に合わせる */
  background-color: #1a365d; /* ネイビー */
  border-radius: 2px; /* 線の角を少しだけ丸める */
}
/* 2本の直線を45度傾けて交差させる */
.c-mark.cross::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.c-mark.cross::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
/* 赤字のテキスト */
.c-text-red {
  color: #ff0000;
  font-weight: 900;
  font-size: 13px;
  margin: 0;
}
/* 青字のテキスト */
.c-text-blue {
  color: #000149;
  font-weight: bold;
  font-size: 13px;
  margin: 0;
}

/* 1位・2位・3位の緑の立体ボタン */
.c-siteCell {
  display: grid;
  place-items: center;
  padding: 10px 4px 12px;
}

.c-btn {
  display: block;
  width: min(74px, 90%);
  background: linear-gradient(180deg, #16c820 0%, #088c00 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  padding: 11px 0 10px;
  border-radius: 30px;
  box-shadow: 0 5px 0 #004d00;
  margin: 0;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.c-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 7px 0 #004d00, 0 8px 14px rgba(0, 0, 0, .18);
}
.c-btn:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 transparent;
}
.c-bottom {
  padding-bottom: 9px;
}

/* ==================================
   ランキング
================================== */
.ranking-ttl{
  font-size: 1.5rem;
}

.compare,
.ranking {
  display: grid;
  gap: 11px;
}

.compareItem,
.rankCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.compareItem h3 {
  margin: 0;
  padding: 8px 10px;
  background: var(--deep);
  color: #fff;
  font-size: 14px;
}

.compareCols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 11px;
}

.compareCell {
  min-height: 62px;
  padding: 7px 6px;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 3px;
}

.compareCell:last-child {
  border-right: 0;
}

.compareCell strong {
  font-size: 11px;
  line-height: 1.25;
}

.compareCell span {
  color: #475467;
  line-height: 1.35;
}

.compareCell.win {
  background: var(--soft-red);
  font-weight: 800;
}

.rankCard.top {
  border: 2px solid var(--red);
  box-shadow: 0 10px 22px rgba(17, 24, 39, .08);
}

.rankHead {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 9px;
  align-items: center;
  background: var(--red);
  color: #fff;
  padding: 9px 10px;
}

.rankCard:not(.top) .rankHead {
  background: #2f3a4a;
}

.rankNo {
  font-size: 20px;
  font-weight: 1000;
  text-align: center;
}

.rankHead h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.catch {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.rankBody {
  padding: 10px;
}

.visualDetail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.brandImage {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 190px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef4f8;
  object-fit: contain;
}

.detailTable {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
  margin: 0; /* 【追加】<dl>のデフォルトの上下余白を消す */
}

.detailRow {
  display: grid;
  grid-template-columns: 68px 1fr;
  border-bottom: 1px solid var(--line);
}

.detailRow:last-child {
  border-bottom: 0;
}

.detailRow dt { /* b を dt に変更 */
  background: #f1f5f9;
  padding: 5px 6px;
  font-size: 13px;
  font-weight: bold; /* 【追加】元の <b> と同じように太字にする */
  margin: 0;
}

.detailRow dd { /* span を dd に変更 */
  padding: 5px 6px;
  font-size: 13px;
  color: #344054;
  margin: 0; /* 【必須】<dd>のデフォルトの左余白(約40px)を消す */
}

.miniCta {
  display: block;
  margin: 9px 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 0 #0b6f48;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.miniCta:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 7px 0 #0b6f48, 0 9px 18px rgba(17, 24, 39, .16);
}

.miniCta:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0b6f48;
}

.pointsTitle,
.servicesTitle {
  background: #dff0d8;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  padding: 5px 8px;
  margin: 9px -10px 7px;
}

.points {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #344054;
}

.points li {
  margin: 3px 0;
  font-size: 13px;
}

.services {
  font-size: 13px;
  font-weight: 800;
  color: #344054;
  margin: 0;
}

.url {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  color: #1f5fbf;
  font-weight: 800;
  word-break: break-all;
  text-align: center;
}

.noResults {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 18px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.footer {
  padding: 22px 14px 28px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.sticky {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  padding: 8px;
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid var(--line);
  z-index: 10;
}

.sticky a {
  background: linear-gradient(180deg, #ff4b4b 0%, #df000b 100%);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 14px 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 5px 0 #980008;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.sticky a:hover {
  color: #fff;
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 8px 0 #980008, 0 10px 20px rgba(17, 24, 39, .2);
}

.sticky a:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #980008;
}
