/* avfu.jp — UI/UXは fanskan.jp（マイファン図鑑）を参考にした
   ピンク基調・白背景・角丸カード・スマホ縦1カラム */

:root {
  --accent: #ff2a5a;
  --accent-strong: #ff1f4a;
  --grad-start: #ff0844;
  --grad-mid: #ff2a5a;
  --grad-end: #ff5a96;
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-elev: #fafafa;
  --bg-soft: #fff5f9;
  --line: #f0e6ec;
  --line-strong: #e6d6e0;
  --text: #1a1620;
  --text-mute: #7a7080;
  --text-soft: #b4a8bc;
  --link: #007aff;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(255,47,134,.06), 0 1px 2px rgba(20,10,30,.04);
  --shadow: 0 4px 16px rgba(255,47,134,.1), 0 2px 6px rgba(20,10,30,.05);
  --container: 480px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0 auto;
  max-width: var(--container);
  min-height: 100vh;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Yu Gothic UI", "Segoe UI", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ===== ヘッダー ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fffffff0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.brand {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand a {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid) 50%, var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}
.brand a:hover { text-decoration: none; }

/* ===== パンくず ===== */
.breadcrumb {
  padding: 12px 16px 0;
  font-size: 0.78rem;
  color: var(--text-mute);
}
.breadcrumb a { color: var(--text-mute); }
.breadcrumb .sep { margin: 0 6px; color: var(--text-soft); }

/* ===== 本文 ===== */
main { padding: 8px 16px 56px; }

.category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-soft);
  border: 1px solid #ffd4e7;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.45;
  margin: 6px 0 12px;
  letter-spacing: 0.01em;
}

.meta {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

p { margin: 1em 0; }

h2 {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.5;
  margin: 40px 0 16px;
  padding: 0 0 10px 14px;
  position: relative;
  border-bottom: 2px solid var(--line-strong);
}
h2::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 12px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--grad-start), var(--grad-end));
}

h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 28px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}

h4 { font-size: 0.98rem; font-weight: 700; margin: 22px 0 10px; }

/* ===== リード / カラム ===== */
.lead {
  background: linear-gradient(135deg, #fff5f9, #fff0f7, #ffe8f4);
  border: 1px solid #ffd4e7;
  border-radius: var(--radius-lg);
  padding: 18px 18px 14px;
  margin: 20px 0;
  font-size: 0.94rem;
  box-shadow: var(--shadow-sm);
}
.lead p:first-child { margin-top: 0; }
.lead p:last-child { margin-bottom: 0; }

ul { padding-left: 1.3em; margin: 1em 0; }
ul li { margin: 0.45em 0; }

.note { font-size: 0.78rem; color: var(--text-mute); margin: 12px 0; }

/* ===== エリアグリッド ===== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.area-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.area-card:hover {
  transform: translateY(-2px);
  border-color: #ffc0db;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}
.area-card .area-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-mute);
  margin-top: 5px;
}

/* ===== 五十音ナビ ===== */
.gojuon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.gojuon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-card);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s, border-color 0.12s;
}
.gojuon a:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ===== 女優一覧（サムネ付き・将来用） ===== */
.actress-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 12px;
  margin: 18px 0;
  list-style: none;
  padding: 0;
}
@media (min-width: 420px) {
  .actress-list { grid-template-columns: repeat(3, 1fr); }
}
.actress-list li { margin: 0; }
.actress-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s, box-shadow 0.12s;
}
.actress-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}
.actress-card .thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}
.actress-card .name {
  display: block;
  padding: 8px 10px 4px;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.4;
}
.actress-card .alias {
  display: block;
  padding: 0 10px 10px;
  font-size: 0.7rem;
  color: var(--text-mute);
}

/* ===== ランキング ===== */
.rank { list-style: none; padding: 0; margin: 18px 0; counter-reset: rank; }
.rank li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 16px 56px;
  margin: 0 0 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.rank li::before {
  counter-increment: rank;
  content: counter(rank);
  position: absolute;
  left: 14px; top: 16px;
  width: 30px; height: 30px; line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(255,42,90,.3);
}
.rank li:nth-child(1)::before { background: linear-gradient(135deg,#f7b500,#ffd84d); color:#5a4500; }
.rank li:nth-child(2)::before { background: linear-gradient(135deg,#9aa0a6,#c4c9ce); color:#33363a; }
.rank li:nth-child(3)::before { background: linear-gradient(135deg,#b07a3f,#d9a86b); color:#3d2a12; }
.rank .rank-name { font-weight: 800; font-size: 1rem; margin: 0; }
.rank .rank-desc { font-size: 0.86rem; color: var(--text-mute); margin: 6px 0 0; }

/* ===== CTA ===== */
.cta {
  display: block;
  width: 100%;
  margin: 12px 0 8px;
  padding: 17px 20px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--grad-start), var(--accent) 55%, var(--grad-end));
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 22px rgba(255,42,90,.32), 0 4px 8px rgba(255,42,90,.18);
  transition: transform 0.12s, box-shadow 0.12s;
}
.cta:hover { transform: translateY(-1px); text-decoration: none; color: #fff !important; }
.cta:active { transform: translateY(1px); }

/* ===== VS ブロック ===== */
.vs {
  margin: 26px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.vs-head {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  text-align: center;
  padding: 14px 16px;
}
.vs-head .vs-mark { color: #ffd1de; font-style: italic; margin: 0 10px; }
.vs-body { padding: 6px 18px 16px; }
.vs-body ul { margin: 12px 0; }
.vs-verdict {
  font-weight: 800;
  margin: 14px 0 6px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--line); padding-top: 8px; }
.faq h3 {
  border-left: none;
  padding-left: 0;
  font-size: 1rem;
  margin: 22px 0 8px;
}
.faq h3::before { content: "Q. "; color: var(--accent); font-weight: 800; }

/* ===== テーブル ===== */
.table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.7; }
th { background: var(--bg-soft); font-weight: 800; white-space: nowrap; color: var(--accent-strong); }

/* ===== 著者 ===== */
.author {
  margin: 48px 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  font-size: 0.86rem;
}
.author-name { font-weight: 800; font-size: 0.94rem; margin-bottom: 8px; }

/* ===== フッター ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px 40px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-mute);
  background: var(--bg-soft);
}
footer nav { margin-bottom: 12px; }
footer nav a { color: var(--text-mute); margin: 0 8px; font-weight: 600; }
