/*
Theme Name: PT Ranking LP
Theme URI: https://example.com/
Description: 理学療法士(PT)求人サイト比較ランキング用の静的LPテーマ。ランキングカード・比較表・FAQを備えた1カラム構成。
Author: Your Name
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: pt-ranking-lp
*/

/* ==========================================================
   変数・リセット
========================================================== */
:root {
  --color-main: #1a6fc9;      /* メインブルー */
  --color-accent: #ff6b35;    /* CTAオレンジ */
  --color-cta: #e94f37;       /* ボタン赤 */
  --color-gold: #d4a017;
  --color-silver: #8e9aaf;
  --color-bronze: #b07d4f;
  --color-bg: #f5f7fa;
  --color-text: #333;
  --color-border: #dde3ea;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-main);
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================
   ヘッダー
========================================================== */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--color-main);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-main);
  text-decoration: none;
}

.header-note {
  font-size: 12px;
  color: #888;
}

/* ==========================================================
   ファーストビュー
========================================================== */
.hero {
  background: linear-gradient(135deg, #1a6fc9 0%, #12579f 100%);
  color: #fff;
  text-align: center;
  padding: 40px 16px 48px;
}

.hero-badge {
  display: inline-block;
  background: #ffd93d;
  color: #7a5c00;
  font-weight: bold;
  font-size: 13px;
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.hero h1 .em {
  color: #ffd93d;
}

.hero-sub {
  font-size: 14px;
  opacity: .92;
}

.hero-updated {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  background: rgba(255, 255, 255, .18);
  padding: 3px 14px;
  border-radius: 4px;
}

/* ==========================================================
   セクション共通
========================================================== */
.section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 14px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ==========================================================
   比較表
========================================================== */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--color-border);
  padding: 12px 10px;
  text-align: center;
}

.compare-table thead th {
  background: var(--color-main);
  color: #fff;
  font-size: 13px;
}

.compare-table tbody th {
  background: #eef4fb;
  font-size: 13px;
  white-space: nowrap;
}

.compare-table .service-name {
  font-weight: bold;
  font-size: 15px;
}

.mark-best { color: var(--color-cta); font-weight: bold; font-size: 18px; }
.mark-good { color: var(--color-main); font-size: 16px; }

.table-btn {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ==========================================================
   ランキングカード
========================================================== */
.rank-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  overflow: hidden;
  border: 2px solid var(--color-border);
}

.rank-card.rank-1 { border-color: var(--color-gold); }
.rank-card.rank-2 { border-color: var(--color-silver); }
.rank-card.rank-3 { border-color: var(--color-bronze); }

.rank-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fafbfc;
  border-bottom: 1px solid var(--color-border);
}

.rank-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  line-height: 1.1;
}

.rank-badge .num { font-size: 20px; }
.rank-badge .label { font-size: 10px; }

.rank-1 .rank-badge { background: var(--color-gold); }
.rank-2 .rank-badge { background: var(--color-silver); }
.rank-3 .rank-badge { background: var(--color-bronze); }
.rank-4 .rank-badge { background: #6c757d; }

.rank-card-title {
  font-size: 22px;
}

.rank-card-catch {
  font-size: 13px;
  color: var(--color-cta);
  font-weight: bold;
}

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

.rating {
  margin-bottom: 14px;
  font-size: 15px;
}

.rating .stars {
  color: #f5a623;
  font-size: 18px;
  letter-spacing: 2px;
}

.rating .score {
  font-weight: bold;
  color: var(--color-cta);
  font-size: 20px;
  margin-left: 6px;
}

.point-list {
  list-style: none;
  margin-bottom: 16px;
}

.point-list li {
  padding: 8px 0 8px 30px;
  border-bottom: 1px dashed var(--color-border);
  position: relative;
  font-size: 15px;
}

.point-list li::before {
  content: "✔";
  position: absolute;
  left: 4px;
  color: var(--color-accent);
  font-weight: bold;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 18px;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  text-align: left;
}

.spec-table th {
  background: #eef4fb;
  width: 30%;
  white-space: nowrap;
}

/* CTAボタン */
.cta-btn {
  display: block;
  background: linear-gradient(180deg, #ff7849 0%, var(--color-cta) 100%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 16px;
  border-radius: 999px;
  box-shadow: 0 4px 0 #b53a28;
  transition: transform .1s, box-shadow .1s;
}

.cta-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #b53a28;
}

.cta-btn .small {
  display: block;
  font-size: 12px;
  font-weight: normal;
  opacity: .9;
}

/* ==========================================================
   おすすめ組み合わせ
========================================================== */
.recommend-box {
  background: #fff8e6;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.recommend-box h3 {
  font-size: 20px;
  color: #7a5c00;
  margin-bottom: 10px;
}

.recommend-box p {
  font-size: 14px;
}

/* ==========================================================
   選び方・メリット
========================================================== */
.merit-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.merit-item h3 {
  font-size: 17px;
  color: var(--color-main);
  margin-bottom: 8px;
  padding-left: 34px;
  position: relative;
}

.merit-item h3 .num-circle {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--color-main);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.merit-item p {
  font-size: 14px;
}

/* ==========================================================
   FAQ
========================================================== */
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 20px 16px 48px;
  font-weight: bold;
  font-size: 15px;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px;
  height: 24px;
  background: var(--color-main);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.faq-item summary::after {
  content: "＋";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-main);
  font-size: 18px;
}

.faq-item[open] summary::after { content: "－"; }

.faq-answer {
  padding: 0 20px 16px 48px;
  font-size: 14px;
  position: relative;
}

.faq-answer::before {
  content: "A";
  position: absolute;
  left: 14px;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--color-cta);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ==========================================================
   注意書き・フッター
========================================================== */
.disclaimer {
  font-size: 11px;
  color: #888;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 24px;
}

.site-footer {
  background: #2b3a4a;
  color: #cfd8e3;
  padding: 32px 0 24px;
  margin-top: 40px;
  font-size: 13px;
}

.footer-nav {
  text-align: center;
  margin-bottom: 16px;
}

.footer-nav a {
  color: #cfd8e3;
  text-decoration: none;
  margin: 0 12px;
}

.footer-nav a:hover { text-decoration: underline; }

.copyright {
  text-align: center;
  font-size: 12px;
  opacity: .7;
}

/* ==========================================================
   レスポンシブ
========================================================== */
@media (max-width: 600px) {
  .hero h1 { font-size: 21px; }
  .section-title { font-size: 20px; }
  .rank-card-title { font-size: 18px; }
  .cta-btn { font-size: 16px; }
  .header-note { display: none; }
}
