/* AISHAIN Marketplace — App Store 風スタイル */
:root {
  --bg: #f5f5f7;
  --card-bg: #ffffff;
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: #d2d2d7;
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff3b30;
  --star: #ffc300;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", "游ゴシック", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 24px;
}
.nav-brand { font-weight: 700; font-size: 20px; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text); font-size: 14px; font-weight: 500; }

/* --- Layout --- */
.container { max-width: 1120px; margin: 0 auto; padding: 40px 20px; }
.hero {
  text-align: center; padding: 80px 20px 60px;
}
.hero h1 {
  font-size: 56px; margin: 0 0 12px; letter-spacing: -0.03em; font-weight: 700;
  background: linear-gradient(135deg, #0071e3, #ff2d55); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 20px; color: var(--text-secondary); margin: 0 0 30px; }
.hero-cta { display: inline-flex; gap: 12px; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 980px;
  font-weight: 500; font-size: 15px; border: 0; cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }
.btn-secondary { background: rgba(0,113,227,.1); color: var(--primary); }
.btn-secondary:hover { background: rgba(0,113,227,.15); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-large { padding: 14px 32px; font-size: 17px; }

/* --- Section --- */
.section { margin: 60px 0; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px;
}
.section-header h2 { font-size: 32px; margin: 0; letter-spacing: -0.02em; }
.section-header a { font-size: 14px; }

/* --- Cards --- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: all .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.card-avatar {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 24px; font-weight: 700; margin-bottom: 16px;
}
.card-title { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.card-role { color: var(--text-secondary); font-size: 13px; margin-bottom: 12px; }
.card-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; flex-grow: 1; }

.card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.card-price { font-weight: 600; }
.card-price small { color: var(--text-secondary); font-weight: normal; }
.card-rating { color: var(--star); font-size: 13px; margin-left: auto; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 500; background: rgba(0,113,227,.1); color: var(--primary);
}

/* --- Detail Page --- */
.detail {
  background: white; border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow);
}
.detail-header {
  display: flex; align-items: center; gap: 24px; margin-bottom: 32px;
}
.detail-avatar {
  width: 96px; height: 96px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 40px; font-weight: 700;
}
.detail-name { font-size: 32px; margin: 0 0 4px; letter-spacing: -0.02em; }
.detail-role { color: var(--text-secondary); font-size: 16px; }
.detail-price { font-size: 28px; font-weight: 700; margin: 8px 0 0; }
.detail-price small { font-size: 14px; color: var(--text-secondary); font-weight: normal; }

.detail-tabs {
  display: flex; gap: 24px; border-bottom: 1px solid var(--border);
  margin-bottom: 32px; overflow-x: auto;
}
.detail-tabs a {
  padding: 12px 0; color: var(--text-secondary); font-size: 15px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.detail-tabs a.active { color: var(--text); border-color: var(--primary); }
.detail-tabs a:hover { text-decoration: none; color: var(--text); }

.detail-section h3 {
  font-size: 20px; margin: 24px 0 12px;
}
.detail-section ul { padding-left: 20px; }
.detail-section li { margin-bottom: 6px; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin: 20px 0;
}
.stat {
  background: var(--bg); padding: 16px; border-radius: 12px; text-align: center;
}
.stat-value { font-size: 28px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text-secondary); }

.notice {
  background: #fffbf0; border: 1px solid #ffe4a3; border-radius: 12px;
  padding: 16px; margin: 20px 0; font-size: 14px; color: #7a5b00;
}
.notice-title { font-weight: 600; margin-bottom: 6px; }

/* --- Hire button --- */
.hire-cta {
  position: sticky; bottom: 20px; z-index: 50;
  background: white; border-radius: 16px; padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  display: flex; align-items: center; gap: 16px; margin: 40px 0 20px;
}
.hire-cta-info { flex-grow: 1; }
.hire-cta-price { font-size: 20px; font-weight: 700; }

/* --- Search / filters --- */
.searchbar {
  display: flex; gap: 12px; margin-bottom: 24px;
}
.searchbar input {
  flex-grow: 1; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 12px; font-size: 15px; background: white;
}
.searchbar select {
  padding: 12px; border: 1px solid var(--border); border-radius: 12px;
  background: white; font-size: 14px;
}

/* --- Ranking --- */
.ranking-table {
  width: 100%; background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.ranking-table th, .ranking-table td {
  padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border);
}
.ranking-table th {
  background: var(--bg); font-size: 12px; text-transform: uppercase; color: var(--text-secondary);
  font-weight: 600;
}
.ranking-row-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-weight: 700; color: white; background: var(--primary);
}
.ranking-row-rank.gold { background: #ffc300; }
.ranking-row-rank.silver { background: #b0b0b0; }
.ranking-row-rank.bronze { background: #cd7f32; }

/* --- Compare / Simulator --- */
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row label { flex: 0 0 200px; padding-top: 12px; font-size: 14px; }
.form-row input, .form-row select {
  flex-grow: 1; padding: 12px; border: 1px solid var(--border); border-radius: 12px;
  font-size: 15px; background: white;
}

.result {
  background: linear-gradient(135deg, #f0f8ff, #e6f4ff);
  border-radius: 16px; padding: 32px; margin: 24px 0;
}
.result h3 { margin: 0 0 16px; font-size: 22px; }
.result-value { font-size: 40px; font-weight: 700; color: var(--primary); }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border); padding: 40px 20px; margin-top: 80px;
  color: var(--text-secondary); font-size: 13px; text-align: center;
}
.footer a { color: var(--text-secondary); }

/* --- Favorites indicator --- */
.fav-btn {
  background: none; border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 12px; cursor: pointer; font-size: 14px; color: var(--text-secondary);
}
.fav-btn.active { color: var(--danger); border-color: var(--danger); }

/* --- Model case note --- */
.model-case-note {
  font-size: 12px; color: var(--warning); font-weight: 500;
  padding: 4px 8px; background: rgba(255,149,0,.1); border-radius: 6px;
  display: inline-block;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .section-header h2 { font-size: 26px; }
  .detail-header { flex-direction: column; text-align: center; }
  .nav-links { display: none; }
  .form-row { flex-direction: column; }
  .form-row label { flex: none; padding-top: 0; }
}
