/* ===== AIサポート屋やのたん style.css ===== */
:root {
  --primary: #2c5282;
  --primary-light: #4299e1;
  --accent: #ed8936;
  --pink: #f687b3;
  --soft-pink: #fed7e2;
  --mint: #38b2ac;
  --bg: #fffaf5;
  --card: #ffffff;
  --text: #1a202c;
  --muted: #718096;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 24px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #fed7e2 0%, #c3dafe 50%, #b2f5ea 100%);
  color: var(--text);
  padding: 80px 24px 96px;
  text-align: center;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.6);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.hero-accent {
  background: linear-gradient(135deg, #f687b3, #ed8936);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 36px;
  color: #4a5568;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--text);
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-primary:hover {
  background: #2d3748;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.btn-secondary {
  background: rgba(255,255,255,0.8);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: white;
  color: var(--text);
  transform: translateY(-2px);
}

/* ===== Section common ===== */
section { padding: 80px 0; }
.section-head { margin-bottom: 40px; text-align: center; }
.section-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}
.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ===== AI Demo Video ===== */
.ai-demo { background: white; }
.video-wrapper {
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  background: #000;
  aspect-ratio: 9 / 16;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.ai-demo-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ===== Services note ===== */
.services-note {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* ===== Now challenge ===== */
.now-challenge {
  background: linear-gradient(90deg, #fed7e2, #c3dafe);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 16px;
  line-height: 1.7;
}

/* ===== About ===== */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.about-img img {
  width: 100%;
  max-width: 280px;
  border-radius: 50%;
  border: 8px solid var(--soft-pink);
  display: block;
  margin: 0 auto;
}
.about-text h2 {
  font-size: 26px;
  margin: 0 0 16px;
}
.about-text h3 {
  font-size: 18px;
  margin: 24px 0 12px;
  color: var(--primary);
}
.lead {
  font-size: 17px;
  margin: 0 0 16px;
  line-height: 1.8;
}
.career-list, .cert-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.career-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
}
.career-list li:last-child { border-bottom: none; }
.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cert-list li {
  background: var(--soft-pink);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.about-tagline {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  font-size: 15px;
  font-style: italic;
  border-radius: 8px;
}

/* ===== Services ===== */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: white;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.service-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.service-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}
.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}
.service-card .price {
  display: inline-block;
  margin-top: 8px;
  background: var(--soft-pink);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* ===== Featured (manga) ===== */
.featured { background: white; }
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.manga-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.manga-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.manga-card .thumb {
  aspect-ratio: 16 / 9;
  background: #eee;
  position: relative;
  overflow: hidden;
}
.manga-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.manga-card .ep-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}
.manga-card .body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.manga-card .title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--text);
}
.manga-card .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}

/* ===== Blog ===== */
.all-articles { background: var(--bg); }
.filter-bar {
  margin-bottom: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
#search-box {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#search-box:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.cat-btn {
  padding: 6px 14px;
  font-size: 13px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}
.cat-btn:hover { border-color: var(--primary-light); }
.cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ===== Articles grid ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.article-card .thumb {
  aspect-ratio: 16 / 9;
  background: #eee;
  overflow: hidden;
}
.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card .body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card .cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  margin-bottom: 8px;
  align-self: flex-start;
}
.article-card .cat.cat-貯める { background: #38a169; }
.article-card .cat.cat-増やす { background: #3182ce; }
.article-card .cat.cat-守る { background: #805ad5; }
.article-card .cat.cat-稼ぐ { background: #ed8936; }
.article-card .cat.cat-使う { background: #d69e2e; }
.article-card .title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.article-card .tag {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}
.article-card .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.no-result {
  text-align: center;
  padding: 48px 0;
  color: var(--muted);
}

/* ===== Contact ===== */
.contact { background: white; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.contact-card {
  display: block;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}
.contact-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}
.contact-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.contact-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.contact-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.contact-cta {
  font-weight: 600;
  color: var(--primary) !important;
  margin-top: 12px !important;
}
.contact-note {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

/* ===== Footer ===== */
.footer {
  background: #2d3748;
  color: white;
  padding: 56px 0 32px;
  text-align: center;
}
.footer-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.footer-tagline {
  margin: 0 0 24px;
  opacity: 0.9;
}
.footer .copyright {
  margin-top: 24px;
  font-size: 12px;
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 56px 16px 64px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  .section-head h2 { font-size: 22px; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .about-img img {
    max-width: 200px;
    margin: 0 auto;
  }
  .cert-list { justify-content: center; }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .manga-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
}
