/* ==========================================================================
   Apple Style (iPad Inspired) - 高級・超洗練ポータルダッシュボード スタイル
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=SF+Pro+Display:wght@600;700;800;900&display=swap');

:root {
  --bg-primary: #000000;
  --bg-secondary: #08080a;
  --bg-card: #161617;
  --bg-card-hover: #1d1d1f;
  --bg-glass: rgba(22, 22, 23, 0.75);
  
  --text-main: #f5f5f7;
  --text-muted: #86868b;
  --text-dim: #6e6e73;
  
  --apple-blue: #2997ff;
  --apple-blue-dark: #0071e3;
  --apple-red: #ff3b30;
  --apple-purple: #af52de;
  --apple-cyan: #55bef0;
  --apple-amber: #ff9f0a;
  --apple-green: #30d158;

  --border-color: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.25);

  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro JP", "Inter", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, monospace;

  --radius-pill: 9999px;
  --radius-card: 24px;
  --radius-btn: 980px;

  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-apple);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.015em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.8rem;
}

/* Apple Floating Pill Nav Header */
.apple-nav-bar {
  position: sticky;
  top: 1.2rem;
  z-index: 100;
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.apple-nav-inner {
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.apple-nav-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.apple-nav-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--apple-blue);
  background: rgba(41, 151, 255, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

/* Apple Hero Section (iPad Style) */
.portal-hero {
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.portal-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--apple-blue);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.4rem;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-lead {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  font-weight: 500;
}

/* Dashboard Bento Grid Section */
.dashboard-section {
  padding: 1rem 0 6rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2.2rem;
}

/* Apple Card (Bento Box Design) */
.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 3rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.portal-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: scale(1.015);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.portal-card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.tag-active {
  background: rgba(48, 209, 88, 0.15);
  color: var(--apple-green);
  border: 1px solid rgba(48, 209, 88, 0.3);
}

/* Quick Stat Chips (Apple Style Big Metric Grid) */
.quick-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.8rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-chip-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.stat-chip-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.portal-card-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.portal-card-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.portal-card-features {
  list-style: none;
  margin-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.portal-card-features li {
  font-size: 0.92rem;
  color: #d2d2d7;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.portal-card-features li::before {
  content: "•";
  color: var(--apple-blue);
  font-size: 1.4rem;
  line-height: 0;
}

/* Apple Style CTA Button */
.btn-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem;
  background: var(--apple-blue-dark);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.btn-launch:hover {
  background: #0077ed;
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 113, 227, 0.5);
}

.btn-launch-red {
  background: #e11d48;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.btn-launch-red:hover {
  background: #f43f5e;
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.5);
}

footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  background: var(--bg-primary);
}

@media (max-width: 768px) {
  .portal-title {
    font-size: 2.5rem;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .quick-stats-row {
    grid-template-columns: 1fr;
  }
  .portal-card {
    padding: 2rem 1.6rem;
  }
}
