@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Zen+Maru+Gothic:wght@400;500;700&display=swap");

html {
  font-size: 1.125rem;
}
body {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  color: #1f2937;
  line-height: 1.6;
  background: linear-gradient(135deg, #fef7f0 0%, #fdf2f8 50%, #faf5ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
ruby {
  ruby-align: center;
  ruby-position: over;
}

rt {
  font-size: 0.6em;
  color: inherit;
  opacity: 0.85;
}

/* 振り仮名混在時の文字揃え修正 - メインコンテンツ内のみ */
main p,
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  ruby-align: start;
}

/* 振り仮名がある行の文字ベースライン統一 - メインコンテンツ内のみ */
main p:has(ruby),
main h1:has(ruby),
main h2:has(ruby),
main h3:has(ruby) {
  /* display: flex; */
  align-items: baseline;
  flex-wrap: wrap;
}

/* 代替案：Flexboxが使えない場合 */
.ruby-baseline {
  display: inline-flex;
  align-items: baseline;
}

.main-icon {
  animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

.fade-in {
  animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-badge {
  background-color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* いる？ */
.hero-badge {
  background-color: rgba(254, 243, 199, 0.95);
  color: #92400e;
  font-weight: 600;
  border: 2px solid rgba(245, 158, 11, 0.3);
}

.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.card h3 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.content-section {
  background-color: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.section-header {
  padding: 1.5rem;
  color: white;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
}

.section-header h2 span:first-child {
  font-size: 1.875rem;
  margin-right: 1rem;
}

.section-content {
  padding: 2rem;
}

@media (min-width: 768px) {
  .section-content {
    padding: 3rem;
  }
}

.page-header {
  color: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  animation: fade-in 1s ease-out;
}

.page-header .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: white;
}

.page-header .description {
  font-size: 1.125rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .page-header {
    padding: 3rem;
  }
  .page-header h1 {
    font-size: 3rem;
  }
  .page-header .description {
    font-size: 1.25rem;
  }
}
