/* ==========================================================================
   koiappli.net Lightweight & High-Speed Modern CSS Design System
   ========================================================================== */

:root {
  --primary: #e11d48;
  --primary-light: #fff1f2;
  --primary-hover: #be123c;
  --secondary: #4f46e5;
  --secondary-light: #eef2ff;
  --accent: #f59e0b;
  --dark: #0f172a;
  --gray-dark: #334155;
  --gray-medium: #64748b;
  --gray-light: #f8fafc;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  color: var(--dark);
  background-color: var(--gray-light);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Header & Navigation */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  flex-direction: column;
}

.site-logo span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-medium);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.8rem;
}

nav ul li a {
  color: var(--gray-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}
nav ul li a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #e0e7ff 100%);
  padding: 2.5rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1rem;
  color: var(--gray-dark);
  max-width: 750px;
  margin: 0 auto;
}

/* Layout */
.container {
  max-width: 1150px;
  margin: 2rem auto;
  padding: 0 1.2rem;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 2rem;
}

@media (max-width: 850px) {
  .container {
    grid-template-columns: 1fr;
  }
}

.main-content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--gray-medium);
  margin-bottom: 1.5rem;
}
.breadcrumbs a {
  color: var(--gray-medium);
}
.breadcrumbs a:hover {
  color: var(--primary);
}
.breadcrumbs span {
  margin: 0 0.4rem;
}

/* Content Headings */
h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--primary);
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.8rem 0 1rem 0;
  padding-left: 0.8rem;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 0.5rem 0.8rem;
  border-radius: 0 6px 6px 0;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.4rem 0 0.8rem 0;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.4rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--gray-dark);
}

/* Rating Stars & Badges */
.star-rating {
  color: var(--accent);
  font-weight: bold;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.4rem;
}
.badge-rank1 { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge-rank2 { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-rank3 { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.badge-tag { background: var(--secondary-light); color: var(--secondary); }
.badge-poi { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }

/* Tables (Comparison) */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.comparison-table th, .comparison-table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: center;
}
.comparison-table th {
  background: var(--primary-light);
  color: var(--dark);
  font-weight: 700;
}
.comparison-table tr:nth-child(even) {
  background: #fafafa;
}

/* App Cards (Text & Icon based) */
.app-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
}
.app-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}
.app-score {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

/* Notice Box / Callout */
.callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout-title {
  font-weight: 700;
  color: var(--primary-hover);
  margin-bottom: 0.4rem;
}

/* Sidebar */
.sidebar-widget {
  background: var(--white);
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 1rem;
}
.widget-list {
  list-style: none;
}
.widget-list li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.4rem;
}

/* FAQ Box */
.faq-box {
  margin: 1.5rem 0;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  background: var(--white);
  overflow: hidden;
}
.faq-q {
  background: #f1f5f9;
  padding: 0.8rem 1rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-q::before {
  content: "Q";
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-a {
  padding: 1rem;
  color: var(--gray-dark);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 3rem 1.2rem 1.5rem 1.2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary);
  padding-left: 0.5rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: #94a3b8;
}
.footer-col ul li a:hover {
  color: var(--white);
}
.copyright {
  text-align: center;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  color: #64748b;
  font-size: 0.85rem;
}
