/* ===========================
   リセット & ベース
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  background: linear-gradient(180deg, #0a1f5c 0%, #0d47a1 30%, #1565c0 60%, #0a2a6e 100%);
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   ヒーローセクション
=========================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(160deg, #0a1a5e 0%, #0d47a1 40%, #1976d2 70%, #0288d1 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,26,94,0.4) 0%, rgba(10,26,94,0.1) 50%, rgba(10,26,94,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 0;
  min-height: 520px;
  gap: 0;
}

.hero-text {
  flex: 1;
  padding-bottom: 40px;
}

.hero-ai-label {
  font-size: 2rem;
  font-weight: 900;
  color: #FFE000;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 3px 10px rgba(0,0,0,0.9);
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-top3 {
  font-size: 3.5rem;
  font-weight: 900;
  color: #FFE000;
  text-shadow: 3px 3px 12px rgba(0,0,0,0.9);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #FFE000;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.3);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
}

.hero-boat-img {
  flex: 0 0 50%;
  max-width: 50%;
  align-self: flex-end;
}

.hero-boat-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: drop-shadow(-4px 0 20px rgba(0,0,0,0.5));
}

/* ===========================
   リード文セクション
=========================== */
.lead-section {
  padding: 30px 16px;
  max-width: 760px;
  margin: 0 auto;
}

.lead-card {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.lead-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1565c0;
  line-height: 1.6;
  margin-bottom: 8px;
}

.lead-sub {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 20px;
}

.btn-ranking {
  display: inline-block;
  background: linear-gradient(135deg, #06C755, #04a844);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(6,199,85,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.05em;
}

.btn-ranking:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6,199,85,0.7);
}

/* ===========================
   ランキングセクション
=========================== */
.ranking-section {
  padding: 10px 16px 40px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ランキングカード */
.rank-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
  color: #222;
}

.rank-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.9);
  border-bottom: 2px solid #e0e8f8;
}

.rank-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
}

.rank-badge-1 { background: #e6a800; }
.rank-badge-2 { background: #888; }
.rank-badge-3 { background: #a0522d; }

.rank-name-header {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* ランキングヒーロー画像エリア */
.rank-hero-img {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a6e, #2a6abf);
}

.person-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.rank-hero-img:hover .person-img {
  transform: scale(1.03);
}

.rank-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.person-name-big {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.person-age {
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.catchcopy {
  background: rgba(255,255,255,0.15);
  border-left: 4px solid #FFE000;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
}

.catchcopy p {
  font-size: 1rem;
  color: #fff;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.catchcopy strong {
  color: #FFE000;
  font-size: 1.1rem;
}

/* メダル */
.medal {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.medal-gold { background: radial-gradient(circle at 35% 35%, #FFE566, #e6a800, #c8860a); }
.medal-silver { background: radial-gradient(circle at 35% 35%, #f0f0f0, #aaa, #888); }
.medal-bronze { background: radial-gradient(circle at 35% 35%, #e8a070, #cd7f32, #a0522d); }

.medal-num {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.medal-ribbon {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 30px;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}

.gold-ribbon { background: linear-gradient(to bottom, #e6a800, #c8860a); }
.silver-ribbon { background: linear-gradient(to bottom, #aaa, #777); }
.bronze-ribbon { background: linear-gradient(to bottom, #cd7f32, #8b4513); }

/* ランキング本文 */
.rank-body {
  padding: 20px 16px 24px;
}

.rank-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
  padding: 12px;
  background: #f0f6ff;
  border-radius: 8px;
  border-left: 4px solid #1565c0;
}

/* 評価セクション */
.eval-section {
  margin-bottom: 20px;
}

.eval-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 10px;
}

.eval-score-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eval-badge {
  background: #1565c0;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.eval-score {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1565c0;
  white-space: nowrap;
}

.score-bar-wrap {
  flex: 1;
  height: 10px;
  background: #e0e8f8;
  border-radius: 5px;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  background: linear-gradient(to right, #1565c0, #42a5f5);
  border-radius: 5px;
  transition: width 1s ease;
}

.radar-wrap {
  border: 2px dashed #e0e8f8;
  border-radius: 12px;
  padding: 10px;
  background: #fafcff;
  display: flex;
  justify-content: center;
}

.radar-wrap canvas {
  max-width: 280px;
  max-height: 280px;
}

/* LINEボタン */
.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #06C755, #04a844);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(6,199,85,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.03em;
  margin-top: 8px;
}

.btn-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6,199,85,0.7);
}

.line-icon {
  font-size: 1.2rem;
}

/* ===========================
   比較表セクション
=========================== */
.compare-section {
  padding: 40px 16px;
  max-width: 900px;
  margin: 0 auto;
}

.compare-inner {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
  color: #222;
}

.compare-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #1565c0;
  text-align: center;
  margin-bottom: 8px;
}

.compare-sub {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  line-height: 1.7;
  margin-bottom: 24px;
}

.table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  padding: 12px 10px;
  border: 1px solid #d0dff0;
  text-align: center;
  font-size: 0.88rem;
  vertical-align: middle;
}

.compare-table thead th {
  background: #1565c0;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.th-label {
  background: #0d47a1 !important;
  width: 100px;
}

.th-rank-badge {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.th-rank1 { background: #1976d2 !important; }
.th-rank2 { background: #1565c0 !important; }
.th-rank3 { background: #0d47a1 !important; }

.td-label {
  background: #e8f0fe;
  font-weight: 700;
  color: #1565c0;
  text-align: left;
  padding-left: 12px;
}

.td-highlight {
  color: #e53935;
  font-weight: 700;
}

.td-highlight2 {
  color: #e53935;
  font-weight: 700;
}

.td-highlight3 {
  color: #e53935;
  font-weight: 700;
}

.compare-table tbody tr:nth-child(even) {
  background: #f5f8ff;
}

.table-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #1565c0;
}

.feature-list {
  list-style: none;
  text-align: left;
  padding: 0;
}

.feature-list li {
  padding: 2px 0;
  font-size: 0.85rem;
}

.feature-list li::before {
  content: "・";
  color: #1565c0;
}

.btn-line-sm {
  display: inline-block;
  background: linear-gradient(135deg, #06C755, #04a844);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(6,199,85,0.4);
  transition: transform 0.2s;
  white-space: nowrap;
}

.btn-line-sm:hover {
  transform: translateY(-1px);
}

/* ===========================
   CTAセクション
=========================== */
.cta-section {
  padding: 20px 16px 40px;
  max-width: 760px;
  margin: 0 auto;
}

.cta-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

.cta-limit {
  font-size: 1rem;
  font-weight: 700;
  color: #e53935;
  margin-bottom: 4px;
}

.cta-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #1565c0;
  margin-bottom: 20px;
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #06C755, #04a844);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 18px 48px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(6,199,85,0.6);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.05em;
  animation: pulse 2s infinite;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(6,199,85,0.8);
  animation: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(6,199,85,0.6); }
  50% { box-shadow: 0 4px 30px rgba(6,199,85,0.9), 0 0 0 8px rgba(6,199,85,0.15); }
}

/* ===========================
   フッター
=========================== */
.footer {
  padding: 24px 16px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 20px;
}

.footer p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 600px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 16px 0;
    min-height: 420px;
  }

  .hero-text {
    padding-bottom: 16px;
  }

  .hero-ai-label {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-top3 {
    font-size: 2.5rem;
  }

  .hero-boat-img {
    max-width: 100%;
    width: 100%;
  }

  .hero-boat-img img {
    height: 220px;
  }

  .compare-table {
    font-size: 0.78rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 8px 6px;
  }

  .btn-cta {
    font-size: 1rem;
    padding: 16px 32px;
  }
}
