/* ============================================================
   CSS Custom Properties — Design Tokens
   ============================================================ */
:root {
  /* Brand */
  --color-red:#e05434;
  --color-red-shadow:#97321b;
  --color-green:#0a7881;
  --color-green-light:#def6f8;
  --color-yellow:#fff200;
  --color-yellow-light:#fffcbc;
  --color-gray:#f9f9f9;
  --color-white:#fff;

  /* Typography */
  --font-sans:  'Noto Sans JP', sans-serif;
  --font-display: 'Oswald', 'Noto Sans JP', sans-serif;

  --text-xs:    0.7rem;
  --text-sm:    0.8rem;
  --text-base:  0.9rem;
  --text-md:    1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.3rem;
  --text-2xl:   1.6rem;
  --text-3xl:   2rem;

  --font-normal: 400;
  --font-medium: 500;
  --font-bold:   700;
  --font-black:  900;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Border & Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgb(0 0 0 / 0.08);
  --shadow-md:  0 4px 12px rgb(0 0 0 / 0.12);
  --shadow-lg:  0 8px 24px rgb(0 0 0 / 0.15);

  /* Layout */
  --container-max: 1000px;
  --container-px:  var(--space-4);

  /* Breakpoints */
  --bp-sm:  480px;
  --bp-md:  768px;

  /* Animation */
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --ease-out:        cubic-bezier(0, 0, 0.2, 1);
  --transition-fast: all var(--duration-fast) var(--ease-out);

  /* Button Raised Shadow — 立体ボタン用 */
  --btn-raised-color:         #D94F33;
  --btn-raised-shadow-color:  #922E1A;
  --btn-raised-height:        5px;
  --shadow-raised:
    0 var(--btn-raised-height) 0 0 var(--btn-raised-shadow-color),
    0 7px 12px 0 rgb(0 0 0 / 0.28);
  --shadow-raised-pressed:
    0 2px 0 0 var(--btn-raised-shadow-color),
    0 3px 6px 0 rgb(0 0 0 / 0.2);
}


/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/*a { color: inherit; text-decoration: none; }*/

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}


/* ============================================================
   Section Common
   ============================================================ */
.section {
  padding: var(--space-5) var(--container-px);
  background: var(--color-bg-section);
}
/*.section div{
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}*/
.section--gray { background: var(--color-gray-50); }
.section--green { background: var(--color-primary-bg); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
/*.section-label::before {
  content: '';
  width: 24px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}*/

.section-title {
  font-size: var(--text-xl);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  color: var(--color-text);
}
.section-title .highlight {
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 2px;
}

/* ============================================================
   Failure Points — 失敗ポイント
   ============================================================ */
.failure-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.failure-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-sm);
}
.failure-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
}
.failure-text {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: var(--leading-tight);
  padding-top: 4px;
}

/* ============================================================
   3 Points — 選び方3つのポイント
   ============================================================ */
.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.point-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-primary);
  transition: var(--transition-fast);
}
.point-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.point-label {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-text);
  line-height: var(--leading-tight);
}

/* ============================================================
   Ranking Header
   ============================================================ */
.ranking-header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  padding: var(--space-5) var(--container-px) var(--space-4);
  text-align: center;
  display: flex;
}
.ranking-header-sub {
  font-size: var(--text-xs);
  opacity: 0.8;
  margin-bottom: var(--space-2);
  letter-spacing: 0.05em;
}
.ranking-header-title {
  font-size: var(--text-lg);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  margin-bottom: 5%;
}

/* ============================================================
   Clinic Card
   ============================================================ */
.clinic-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-6) var(--container-px);
  background: var(--color-bg);
  margin: 0 auto;
  background: var(--color-green);
}

.clinic-card {
  background: var(--color-green-light);
  max-width: var(--container-max);
  border-radius: 10px;
  margin: 3% auto 1%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-fast);
  padding: 2%;
}
.clinic-card--1 { border-color: var(--color-accent); }
.clinic-card--2 { border-color: var(--color-gray-300, #CCC); }
.clinic-card--3 { border-color: #CD7F32; }

.clinic-card-header {
  /*padding: var(--space-3) var(--space-4);*/
  margin: 0 auto 3%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.clinic-card .note{
  margin-top: 5%;
  font-size: 11px;
  color: #999;
  line-height: 1.2;
}
.clinic-rank {
  max-width: 60px;
}
.clinic-rank img{
  width: 100%;
}
.rank-1 { color: #B8860B; }
.rank-2 { color: var(--color-gray-400); }
.rank-3 { color: #8B4513; }

.clinic-name-wrap { flex: 1; }
.clinic-name {
  font-size: var(--text-2xl);
  font-weight: bold;
  color: var(--color-text);
  line-height: var(--leading-tight);
  margin-bottom: 2%;
}
.clinic-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.clinic-badge {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.clinic-badge--gold { background: var(--color-red); }
.clinic-badge--silver { background: var(--color-gray-400); }
.clinic-badge--bronze { background: #8B4513; }

/* Clinic Info Table */
.clinic-info {
  padding: var(--space-4);
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.info-table th,
.info-table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.info-table th {
  background: var(--color-gray-50);
  color: var(--color-text-muted);
  font-weight: var(--font-medium);
  width: 30%;
  white-space: nowrap;
}
.info-table td {
  font-weight: var(--font-medium);
}
.price-value {
  color: var(--color-secondary);
  font-weight: var(--font-bold);
  font-size: var(--text-md);
}

/* Features */
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--leading-tight);
}
.check-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: var(--text-md);
  line-height: 1.2;
}

/* CTA Button */
.cta-wrap {
  padding: 0 var(--space-4) var(--space-4);
}
.btn-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #FF5252 100%);
  color: var(--color-white);
  text-align: center;
  font-size: var(--text-xl);
  font-weight: var(--font-black);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.btn-cta {
  /* 既存のスタイルに追加 */
  position: relative;
}

.btn-cta::after {
  content: '▶';
  position: absolute;
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75em;
  opacity: 0.9;
  transition: var(--transition-fast);
}

/* ホバーで右にスライド */
.btn-cta:hover::after {
  right: calc(var(--space-6) - 4px);
  opacity: 1;
}

.btn-cta a{
  text-decoration: none;
}

.btn-cta-sub {
  font-size: var(--text-xs);
  opacity: 0.85;
  margin-top: 2px;
}

/* ============================================================
   Comparison Table — 比較表
   ============================================================ */
.compare-section {
  padding: var(--space-8) var(--container-px);
  background: var(--color-bg-section);
}
.compare-table-wrap {
  overflow-x: auto;
  border: 10px solid var(--color-red);
  border-collapse: collapse;
}

.compare-table-wrap th:first-child,
.compare-table-wrap td:first-child {
  width: 30%;
}

/* ============================================================
   【追加①】compare-table 2列目以降を均等幅に
   既存の .compare-table-wrap th:first-child の直後に追加
   ============================================================ */
.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  width: calc(70% / 4); /* 1列目30%固定、残り4列で70%を均等分割 */
}

.compare-table-wrap
th,
td {
  border: 1px solid #cdcdcd;
  text-align: center;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-md);
  min-width: 460px;
}
.compare-table thead th {
  background: var(--color-gray);
  color: #000;
  padding: var(--space-3) var(--space-2);
  text-align: center;
  font-weight: var(--font-bold);
  line-height: 1;
  font-size: var(--text-base);
}
.compare-table thead th:first-child {
  background: var(--color-gray);
  text-align: center;
}
.compare-table tbody tr:nth-child(1) {
  background: var(--color-yellow-light);
}
.compare-table tbody tr:nth-child(even) td {
  background: var(--color-gray-50);
}
.compare-table tbody td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  vertical-align: middle;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.flex img{
  max-width: 60px;
  width: 100%;
  margin-bottom: 8%;
}

.compare-table tbody td:first-child {
  text-align: left;
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  background: var(--color-gray-50);
}
.compare-table tbody td a{
  font-size: var(--text-xl);
  display: block;
  text-align: center;
  line-height: 2;
}
.circle { color: var(--color-primary); font-size: 1.2em; }
.cross  { color: var(--color-secondary); font-size: 1.1em; }
.triangle { color: var(--color-accent); }

/* ============================================================
   Treatment Info — AGA治療の主な治療薬
   ============================================================ */
.treatment-section {
  background: var(--color-primary-bg);
  padding: var(--space-8) var(--container-px);
}
.treatment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.treatment-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-primary);
}
.treatment-type {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  margin-bottom: var(--space-2);
}
.treatment-name {
  font-size: var(--text-md);
  font-weight: var(--font-black);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.treatment-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   Bottom CTA Banner
   ============================================================ */
.bottom-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: var(--space-8) var(--container-px);
  text-align: center;
}
.bottom-banner-title {
  font-size: var(--text-xl);
  font-weight: var(--font-black);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}
.bottom-banner-sub {
  font-size: var(--text-sm);
  opacity: 0.85;
  margin-bottom: var(--space-6);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--color-gray-800);
  color: var(--color-gray-400);
  font-size: var(--text-xs);
  padding: var(--space-6) var(--container-px);
  text-align: center;
  line-height: var(--leading-relaxed);
}

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

/* Raised Button — 立体シャドウボタン */
.btn-raised,.cta-wrap {
  background: var( --color-red);
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  padding: var(--space-8) var(--space-3);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  animation: nudge 3s 1.5s infinite;
  max-width: 450px;
  margin: 0 auto;
  /* 立体シャドウ */
  box-shadow: var(--shadow-raised);

  /* 押し下げアニメーション用 */
  transform: translateY(0);
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

a.btn-raised {
  display: block !important;
  text-decoration: none;
  color: #fff;
  text-align: center !important;
  font-size: var(--text-md) !important;
}

.btn-raised:hover,.cta-wrap:hover {
  transform: translateY(-3px);
  animation: none; /* ホバー・押下時は止める */
  box-shadow:
    0 calc(var(--btn-raised-height) + 3px) 0 0 var(--btn-raised-shadow-color),
    0 10px 16px 0 rgb(0 0 0 / 0.32);
}
.btn-raised::before,.cta-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 35%;
  height: 200%;
  background: rgba(255,255,255,0.28);
  transform: skewX(-20deg);
  animation: shine 3s 1.5s infinite;
}

.fukidashi{
  max-width: 840px;
  text-align: center;
}

.fukidashi img{
  width: 100%;
}

.cta-wrap{
  width: 100%;
  padding: 0;
}

.btn-raised:active,.cta-wrap:active {
  transform: translateY(calc(var(--btn-raised-height) - 2px));
  box-shadow: var(--shadow-raised-pressed);
}

@keyframes nudge {
  0%,100% { transform: translateY(0); box-shadow: var(--shadow-raised); }
  8%      { transform: translateY(-4px); box-shadow: 0 calc(var(--btn-raised-height) + 4px) 0 0 var(--btn-raised-shadow-color), 0 10px 16px 0 rgb(0 0 0 / 0.28); }
  16%     { transform: translateY(0); box-shadow: var(--shadow-raised); }
  24%     { transform: translateY(-2px); box-shadow: 0 calc(var(--btn-raised-height) + 2px) 0 0 var(--btn-raised-shadow-color), 0 8px 12px 0 rgb(0 0 0 / 0.22); }
  32%     { transform: translateY(0); box-shadow: var(--shadow-raised); }
}

@keyframes shine {
  0%,30%  { left: -70%; }
  50%     { left: 130%; }
  100%    { left: 130%; }
}
/* Divider */
.divider {
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary-light));
}

/* Scroll animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp var(--duration-normal) var(--ease-out) both;
}

  .review-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
    font-family: sans-serif;
  }
  .review-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  .review-row.right {
    flex-direction: row-reverse;
  }
  .review-avatar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 56px;
  }
  .review-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
  }
  .review-avatar span {
    font-size: 11px;
    color: #888;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
  }
  .review-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    max-width: 460px;
  }
  .review-row.right .review-bubble {
    background: #f0f8ff;
    border-color: #cce0f5;
  }
  .review-bubble p {
    font-size: 13px;
    color: #333;
    line-height: 1.7;
    margin: 0 0 4px;
  }
  .review-bubble p strong {
    color: #1a5fa0;
    font-weight: bold;
  }
  .review-bubble small {
    font-size: 11px;
    color: #999;
  }

  small{
    font-size: var(--text-xs) !important;
    line-height: 1;
  }
  .note{
    font-size: var(--text-xs) !important;
    line-height: 1;
  }

.card-wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 0;
}

.card {
  border: 4px solid var(--color-red);
  border-radius: 10px;
  background: #f0fafb;
  position: relative;
  padding: 28px 24px 22px;
}

.card-title {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-md);
  padding: 8px 28px;
  border-radius: 999px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .icon {
  font-size: var(--text-xl);
  max-width: 17px;
}

.point-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.point-item {
  display: flex;
  align-items: anchor-center;
  gap: 12px;
}

.point-item img {
  max-width: 22px;
}

.point-item p {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.6;
  font-weight: var(--font-bold);
}

.point-item p .highlight {
  color: var(--color-red);
  font-weight: 700;
}

.point-item p .note {
  font-size: 11px;
  vertical-align: super;
  color: #999;
}

.txt--clinicfor{
  max-width:var(--container-max);margin:0 auto;
  text-align: right;
}
.adTxt{
  padding: 2px 8px;
  border: 1px solid;
  display: inline-block;
}

.wrap { max-width:var(--container-max);margin:0 auto; border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); background: #fafcfc; padding: 12px; font-size: 13px; color: var(--color-text-secondary); position: relative; overflow: hidden; }
.note { margin: 0 0 6px; font-size: 12px; }
.section-label { font-size: 13px; font-weight: 500; color: var(--color-text-secondary); margin: 4px 0 2px; }
.section-body { font-size: 12px; color: var(--color-text-secondary); margin: 0 0 6px; }
.content { overflow: hidden; transition: max-height 0.4s ease; }
.fade-label {
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 100%;
  height: 115px;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(to bottom, rgba(250,252,252,0) 0%, rgba(250,252,252,0.95) 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  box-sizing: border-box;
}
.action-btn { background: var(--color-background-secondary); border: 0.5px solid var(--color-border-secondary); border-radius: 20px; padding: 7px 28px; font-size: 14px; cursor: pointer; color: var(--color-text-primary); }
.action-btn:hover { background: var(--color-background-tertiary); }
.close-wrap { text-align: center; padding: 6px 0 2px; }

  .tbl-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 2% auto 3%;
  }

  /* ======= 共通テーブル ======= */
  .tbl {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 2px solid #3AADA0;
  }

  /* ヘッダー */
  .tbl th {
    background: var(--color-green);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 8px;
    text-align: center;
    border-right: 2px solid #5CC4B8;
    letter-spacing: 0.03em;
  }
  .tbl th:last-child { border-right: none; }

  /* データセル共通 */
  .tbl td {
    color: #1A1A1A;
    font-size: 15px;
    font-weight: 500;
    padding: 20px 12px;
    text-align: center;
    border-right: 2px solid #B8E8E4;
    line-height: 1.55;
    position: relative;

    /* ---- 背景画像の共通設定 ---- */
    background-color: #fff;          /* 画像が読み込まれない場合のフォールバック */
    background-size: cover;          /* セル全体を覆う */
    background-position: center;     /* 中央基準 */
    background-repeat: no-repeat;
  }
  .tbl td:last-child { border-right: none; }

  /* テキストを画像より前面に */
  .tbl td span.cell-text {
    position: relative;
    z-index: 1;
  }

  /* 画像の上に薄い白オーバーレイ（テキスト可読性確保） */
  .tbl td::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55); /* 透明度はここで調整 */
    z-index: 0;
  }

  .sup {
    font-size: 11px;
    font-weight: 400;
    vertical-align: super;
  }

  .cta-text{
    color: var(--color-red);
    font-weight: bold;
    font-size: var(--text-lg);
    text-align: center;
    margin: var(--space-3);
  }

  .banner-area{
    margin: 3% auto;
    text-align: center;
    max-width: 600px;
  }
  .banner-area img{
    width: 100%;
  }
  .cell-shinshin{
    position: relative;
  }
  .cell-shinshin .bgimg{
    position: absolute;
    top: 0;
    left:0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: -99;
  }

  /* ---- bgimg を持つ全セルを重ね表示 ---- */
.tbl td {
  position: relative;
}

/* 画像ラッパー：セル中央に絶対配置 */
.tbl td .bgimg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* bgimg 内の img サイズ調整 */
.tbl td .bgimg img {
  width: 55px;
  height: autos;
  opacity: 0.2;
}

/* テキストを画像より前面に */
.tbl td .cell-text {
  position: relative;
  z-index: 1;
  font-weight: bold;
  font-size: var(--text-lg);
}

/* ============================================================
   【追加②】Responsive — スマホ対応
   base.css の末尾に追加
   ============================================================ */
@media (max-width: 768px) {

  .compare-table tbody td a{
    font-size: var(--text-sm);
  }

  html { font-size: 15px; }

  .container {
    padding: 0 var(--space-3);
  }

  .section {
    padding: var(--space-4) var(--space-3);
  }
  .section-title {
    font-size: var(--text-lg);
  }

  /* Points Grid: 3列→1列 */
  .points-grid {
    grid-template-columns: 1fr;
  }

  /* Ranking Header */
  .ranking-header {
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
    padding: var(--space-4) var(--space-3);
  }
  .ranking-header-title {
    font-size: var(--text-md);
    margin-bottom: var(--space-3);
  }

  /* Clinic Cards */
  .clinic-cards {
    padding: var(--space-4) var(--space-3);
  }
  .clinic-card {
    padding: var(--space-3);
    margin: var(--space-2) auto;
  }
  .clinic-name {
    font-size: var(--text-2xl);
  }
  .clinic-badge {
    font-size: 0.8rem;
    padding: 6px 10px;
    font-weight: 600;
  }
  .clinic-card-header {
    flex-wrap: wrap;
  }

  /* Info Table */
  .info-table th {
    width: 36%;
    font-size: var(--text-xs);
  }
  .info-table td {
    font-size: var(--text-xs);
  }

  /* Compare Table */
  .compare-section {
    padding: var(--space-5) var(--space-2);
  }
  .compare-table-wrap {
    border-width: 6px;
  }
  .compare-table {
    font-size: var(--text-sm);
    min-width: 360px;
  }
  .compare-table thead th {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-1);
  }
  .compare-table tbody td {
    padding: var(--space-2) var(--space-1);
    font-size: var(--text-xs);
  }
  .flex img {
    max-width: 44px;
  }

  /* Treatment Grid: 2列→1列 */
  .treatment-grid {
    grid-template-columns: 1fr;
  }

  /* CTA Button */
  .btn-raised, .cta-wrap {
    font-size: var(--text-md);
    padding: var(--space-3) var(--space-4);
  }
/*  .cta-wrap .btn-cta {
    font-size: var(--text-sm) !important;
  }*/

  /* Card Wrapper */
  .card {
    padding: 24px 16px 18px;
  }
  .card-title {
    font-size: var(--text-sm);
    padding: 6px 20px;
  }
/*  .point-item p {
    font-size: var(--text-md);
  }*/

  /* tbl（クリニックカード内の比較テーブル） */
  .tbl th {
    font-size: 12px;
    padding: 8px 4px;
  }
  .tbl td {
    font-size: 13px;
    padding: 14px 6px;
  }
  .tbl td .cell-text {
    font-size: var(--text-sm);
    text-align: left;
  }

  /* Review */
  .review-bubble {
    max-width: calc(100vw - 100px);
  }
  .review-bubble p {
    font-size: 12px;
  }

  /* Bottom Banner */
  .bottom-banner {
    padding: var(--space-6) var(--space-3);
  }
  .bottom-banner-title {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .compare-table {
    min-width: 300px;
  }
  .compare-table thead th,
  .compare-table tbody td {
    font-size: 0.7rem;
    padding: 6px 4px;
  }

  .clinic-card-header {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .clinic-rank {
    max-width: 44px;
  }
}


/* 迷ったらカード — 末尾に追記 */
.madottara-section {
  background: #fff;
  margin: 3% auto 0;
}
.madottara-inner {
  max-width: 900px;
  margin: 0 auto;
}
.madottara-heading {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: var(--font-black);
  color: var(--color-red);
  margin-bottom: var(--space-4);
  letter-spacing: .02em;
}
.madottara-card {
  border: 6px solid var(--color-red);
  border-radius: 10px;
  background: #fff;
  padding: 20px 20px 16px;
  box-shadow: 0 2px 10px rgb(0 0 0 / .08);
}
.madottara-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 14px;
  text-align: center;
}
/* 既存の madottara-logo を差し替え */
.madottara-logo {
  /*max-width: 400px;*/
  width: 100%;
  flex-shrink: 0;
}
.madottara-logo img {
  width: 100%;
  border-radius: 6px;
}
.madottara-name {
  font-size: var(--text-xl);
  font-weight: var(--font-black);
  margin-bottom: 2px;
}
.madottara-tagline {
  font-size: var(--text-xs);
  color: #666;
}
.madottara-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 3% auto;
  text-align: left;
}
.madottara-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-sm);
  line-height: 1.6;
}
.madottara-list .check {
  color: var(--color-green);
  font-size: 1.1em;
  flex-shrink: 0;
  margin-top: 1px;
}
.madottara-cta {
  margin-bottom: 8px;
}
.madottara-subnote {
  text-align: center;
  font-size: var(--text-xs);
  color: #999;
}


.flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  gap: 4px;
  height: 100%;
}

@media (max-width: 768px) {


.point-item p {
  font-size: var(--text-md);
}


/* 1列目の画像を制限 */
.compare-table tbody td:first-child img {
  max-width: 100px;
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto;
}

.flex img {
  max-width: 35px;
  width: 100%;
  display: block;
  flex-shrink: 0;  /* 画像が縮まないように */
}

/*.flex span {
  display: block;
  text-align: center;
  line-height: 1.4;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}
*/
@media (max-width: 768px) {
  .compare-table .flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
  }

  .compare-table .flex img {
    max-width: 35px;
    width: 100%;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .compare-table .flex span {
    display: block; /* ← flexにしない */
    width: 100%;
    min-height: 2.8em; /* ←これは残す */
    text-align: center;
    line-height: 1.35;
  }

  .compare-table .flex small {
    display: inline;
    font-size: 0.7em !important;
    line-height: 1;
    vertical-align: super;
  }
}

/* ボタン */
.compare-table .btn-raised {
  font-size: var(--text-sm);
  padding: var(--space-6) var(--space-3);
  max-width: 100%;
  width: 100%;
  margin: 0;
  animation: none;
}

.btn-raised, .cta-wrap{
  padding: var(--space-2) var(--space-3);
}

.clinic-name-wrap { flex: none; }

.txt--clinicfor{
  display: flex;
  margin: 0 1%;
}

.pc{
  display: none !important;
}
.sp{
  display: block !important;
}
.rankbtn{
  margin-top: 0;
}

.clinic-card-header {
  display: flex;
  flex-wrap: wrap; /* ←これ重要 */
  align-items: center;
}

.clinic-name-wrap {
  flex: 1;
}

/* バッジエリア */
.clinic-badges {
  width: 100%;
  display: grid; /* ←ここ変える */
  grid-template-columns: repeat(2, max-content);
  gap: 6px 8px;
  margin-top: 6px;
}

/* 3つ目を段落ち中央にする */
.clinic-badges .clinic-badge:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: start;
}

.madottara-list{
  align-items: flex-start;
  margin-bottom: 8%;
}

}

.madottara-heading{
  font-size: var(--text-2xl);
}

.pc{
  display: block;
}
.sp{
  display: none;
}

.rankbtn{
  margin-top: 1.5rem;
}

/*end*/

.section-title img {
  margin: 0 auto;
}

.section > div > div img {
  margin: 0 auto;
}

.point-item img {
  max-width: 22px;
  margin: 0;
}

.madottara-logo img {
  margin: 0;
}

.section--gray img {
  margin: 0 auto;
}

.section--gray .point-item img {
  margin: 0;
}

.madottara-section .point-item img {
  margin: 0;
}

.rank .btn-raised, .cta-wrap{
  border-radius: 10px;
}

.footer-nav {
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  padding: 12px 20px;
  text-align: center;
  font-size: 12px;
  color: #555;
}
.footer-nav a {
  color: #555;
  text-decoration: none;
  padding: 0 10px;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-nav span { color: #bbb; }

.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-card { border: 2px solid var(--color-green); border-radius: 10px; padding: 18px 20px; background: #fff}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: #dce8f5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review-avatar svg { width: 22px; height: 22px; fill: #7aaed4; }
.review-name { font-size: 14px; font-weight: 700; color: #222; }
.review-body { font-size: 13px; color: #444; line-height: 1.8; }
.review-note { font-size: 11px; color: #999; margin-top: 8px; }

.header{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header img{
  height: auto;
  width: 100%;
  height: 100%;
}
.header img:first-child{
  max-width: 200px;
}
.header img:last-child{
  max-width: 150px;
}

.header-img img{
  width: 100%;
}

.header-block{
  background: var(--color-green);
  padding: 20px;
  margin: 0 auto;
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: bold;
  color: #fff;
  line-height: 1.4;
}

.header-block p span{
  font-size: var(--text-lg);
}

.rank{
  padding-top: 3%;
}

@media (max-width: 768px) {
  .header{
    padding: 0 3%;
  }
  .header img:first-child{
    max-width: 35%;
  }
  .header img:last-child{
    max-width: 30%;
  }
.header-block{
  font-size: var(--text-lg);
  padding: 5% 0;
}

.header-block p span{
  font-size: var(--text-sm);
}

.compare-table-wrap{
  border: 3px solid var(--color-red);
}
.compare-table thead th, .compare-table tbody td{
  padding: 4px 1px;
}
}

.clinic-card:first-child{
  border:5px solid #F1CE20;
}
.clinic-card:nth-child(2){
  border:5px solid #C4C8CA;
}
.clinic-card:nth-child(3){
  border:5px solid #D4A16A;
}

.clinic-name-wrap a:hover{
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

  .note2{
    font-size: var(--text-xs) !important;
    line-height: 1;
    color: #999;
    text-align: right;
    margin-top: 3px;
  }

.madottara-section .note{
  color: #999;
  margin-top: 5%;
}