/* ===========================
   メディカルキャリアナビ
   Global Styles
=========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0f7a6b;
  --primary-dark: #0a5c50;
  --primary-light: #e8f5f3;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1a1a2e;
  --text-light: #555;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* ===========================
   Header
=========================== */

header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-light);
  display: block;
  font-weight: 400;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

/* ===========================
   Hero Section
=========================== */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0a8f7c 50%, #1a9e8a 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: #ffd700;
}

.hero p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 32px;
  font-weight: 900;
  color: #ffd700;
  display: block;
}

.hero-stat-label {
  font-size: 13px;
  opacity: 0.85;
}

/* ===========================
   Container
=========================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   Section
=========================== */

section {
  padding: 60px 0;
}

.section-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: var(--primary);
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 36px;
  padding-left: 16px;
}

/* ===========================
   Ranking Cards
=========================== */

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ranking-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ranking-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.ranking-card.rank-1 {
  border-top: 4px solid #f59e0b;
}

.ranking-card.rank-2 {
  border-top: 4px solid #94a3b8;
}

.ranking-card.rank-3 {
  border-top: 4px solid #cd7c2f;
}

.ranking-card-inner {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.rank-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.rank-1 .rank-badge { background: linear-gradient(135deg, #f59e0b, #d97706); }
.rank-2 .rank-badge { background: linear-gradient(135deg, #94a3b8, #64748b); }
.rank-3 .rank-badge { background: linear-gradient(135deg, #cd7c2f, #a0522d); }

.rank-info h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.rank-stars {
  color: #f59e0b;
  font-size: 18px;
  margin-bottom: 6px;
}

.rank-stars span {
  color: var(--text-light);
  font-size: 14px;
  margin-left: 6px;
}

.rank-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tag {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.tag.accent {
  background: #fef3c7;
  color: #d97706;
}

.rank-desc {
  color: var(--text-light);
  font-size: 14px;
}

.rank-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(15,122,107,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,122,107,0.4);
  text-decoration: none;
  color: white;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

.cta-note {
  font-size: 12px;
  color: var(--text-light);
}

/* ===========================
   Comparison Table
=========================== */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}

thead {
  background: var(--primary);
  color: white;
}

thead th {
  padding: 16px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

thead th:first-child {
  text-align: left;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:hover {
  background: var(--primary-light);
}

tbody td {
  padding: 14px;
  text-align: center;
  vertical-align: middle;
}

tbody td:first-child {
  text-align: left;
  font-weight: 700;
}

.check { color: var(--primary); font-size: 18px; }
.cross { color: #e2e8f0; font-size: 18px; }

/* ===========================
   Review Section (口コミ)
=========================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 60px;
  color: var(--primary-light);
  font-family: serif;
  line-height: 1;
}

.review-stars {
  color: #f59e0b;
  font-size: 16px;
  margin-bottom: 10px;
}

.review-text {
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-top: 10px;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.review-profile {
  font-size: 12px;
  color: var(--text-light);
}

.pr-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}

/* ===========================
   Profile Box
=========================== */

.profile-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1a9e8a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  font-weight: 900;
  flex-shrink: 0;
}

.profile-info h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.profile-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}

.profile-info p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.9;
}

/* ===========================
   Blog Cards
=========================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
}

.blog-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--primary), #1a9e8a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-cat {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text);
}

.blog-card-date {
  color: var(--text-light);
  font-size: 13px;
}

/* ===========================
   CTA Banner
=========================== */

.cta-banner {
  background: linear-gradient(135deg, var(--primary), #0a5c50);
  color: white;
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.9;
  font-size: 16px;
  margin-bottom: 28px;
}

.btn-white {
  display: inline-block;
  background: white;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-decoration: none;
  color: var(--primary-dark);
}

/* ===========================
   Footer
=========================== */

footer {
  background: #1a1a2e;
  color: #94a3b8;
  padding: 50px 0 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #64748b;
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #64748b;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 13px;
  color: #64748b;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 768px) {
  nav { display: none; }

  .ranking-card-inner {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
  }

  .rank-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
  }

  .profile-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero { padding: 50px 20px; }

  .hero-stats { gap: 24px; }
}

@media (max-width: 480px) {
  .ranking-card-inner { padding: 16px; }
  section { padding: 40px 0; }
}

/* ===========================
   Utility
=========================== */

.bg-light { background: var(--primary-light); }
.bg-white { background: var(--white); }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
