:root {
  --bg: #f7f9fc;
  --text-main: #1a1a1a;
  --text-sub: #666;
  --white: #fff;
  --accent: #3B82F6;
  --accent-soft: #e8f2ff;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* --------------------
   Base
-------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  padding: 32px 16px 64px;
}

.content {
  max-width: 960px;
  margin: 0 auto;
}

/* --------------------
   Hero
-------------------- */

.hero {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: var(--white);
  padding: 40px 16px 48px;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero-lead {
  margin: 0 0 8px;
  font-size: 1rem;
}

.hero-sub {
  margin: 0 0 24px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.1s ease;
}

.btn-primary {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------
   Sections
-------------------- */

.section {
  background: transparent;
  padding: 32px 0;
}

.section + .section {
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.section-header h2 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.section-sub {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--text-sub);
}

.section-body {
  font-size: 0.95rem;
  color: var(--text-main);
}

.section-body p {
  margin: 0 0 12px;
}

.section-body ul,
.section-body ol {
  padding-left: 1.2rem;
  margin: 0 0 16px;
}

.section-body li {
  margin-bottom: 6px;
}

/* 小さい注意書き */
.note {
  font-size: 0.85rem;
  color: var(--text-sub);
  background: #f1f5f9;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
}

/* --------------------
   Games / Diagnosis Cards
-------------------- */

.games {
  padding: 40px 0 24px;
}

.games > h2 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.games .section-sub {
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    border-color 0.1s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  border-color: rgba(59, 130, 246, 0.6); /* accentブルー */
}

.card .icon {
  font-size: 1.6rem;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  margin: 4px 0 8px;
  font-size: 0.9rem;
  color: #4b5563; /* 少し濃いグレーで可読性アップ */
}

.card .btn {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  padding-inline: 16px;
}

.card .btn:hover {
  background: var(--accent);
  color: #fff;
}

/* --------------------
   SEO Text
-------------------- */

.seo-text {
  padding-top: 32px;
}

.seo-text .section-header h2 {
  margin-bottom: 12px;
}

/* --------------------
   Footer
-------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-sub);
  background: #f8fafc;
}

/* --------------------
   Links in Diagnosis Section
-------------------- */

#diagnosis .section-body a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

#diagnosis .section-body a:hover {
  opacity: 0.8;
}

/* --------------------
   Profile Card
-------------------- */

.profile-card {
  display: flex;
  align-items: center;
  background: #fdfdff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

/* 丸アイコン */
.profile-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent-soft);
}

/* テキスト部分 */
.profile-content h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
}

.profile-content p {
  margin: 4px 0 12px;
  line-height: 1.6;
  color: var(--text-sub);
}

.profile-sub {
  font-size: 0.9rem;
  color: var(--text-main);
}

/* --------------------
   Responsive
-------------------- */

@media (min-width: 640px) {
  .hero {
    padding: 56px 24px 64px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  main {
    padding: 40px 24px 72px;
  }
}

@media (min-width: 768px) {
  .hero-inner {
    text-align: left;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 2.4rem;
  }
}

/* スマホ向けレスポンシブ */
@media (max-width: 640px) {
  .hero-inner {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .profile-icon {
    width: 80px;
    height: 80px;
  }
}
