* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1f2933;
  background-color: #ffffff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

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

a:hover {
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e9ee;
  position: static;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.site-logo {
  font-size: 18px;
  font-weight: 700;
  color: #1e3a5f;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background-color: #2e7d32;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.header-cta:hover {
  background-color: #1b5e20;
}

/* ===== Category Nav ===== */
.cat-nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 0 20px 10px;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-nav ul::-webkit-scrollbar {
  display: none;
}

.cat-nav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1e3a5f;
  background-color: #f1f4f8;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.cat-nav a:hover {
  background-color: #e3e8ef;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 60%);
  padding: 56px 20px;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-banner {
  flex: 1;
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: #1e3a5f;
  margin: 0 0 16px;
}

.hero-desc {
  font-size: 16px;
  color: #5b6670;
  line-height: 1.8;
  margin: 0 0 24px;
}

.hero-banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: block;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background-color: #2e7d32;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background-color: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* ===== Sections ===== */
.section {
  padding: 56px 0;
}

.section:nth-of-type(even) {
  background-color: #f6f8fa;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a5f;
  border-left: 4px solid #1e3a5f;
  padding-left: 12px;
  margin: 0 0 16px;
}

.section-lead {
  font-size: 15px;
  color: #5b6670;
  line-height: 1.8;
  margin: 0 0 24px;
}

.category-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.category-count {
  font-size: 12px;
  color: #5b6670;
  background-color: #eef1f5;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  padding: 16px 18px 20px;
}

.card-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  background-color: #1e3a5f;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #1e3a5f;
  margin: 0 0 8px;
}

.card-desc {
  font-size: 14px;
  color: #5b6670;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Course Section ===== */
.course-box {
  background-color: #e8f5e9;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.course-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 12px;
}

.course-desc {
  font-size: 16px;
  color: #5b6670;
  line-height: 1.8;
  margin: 0 0 24px;
}

.course-banner {
  display: block;
  max-width: 600px;
  margin: 24px auto;
}

.course-banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #1e3a5f;
  color: #ffffff;
  padding: 32px 20px;
  text-align: center;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-banner {
    order: 2;
  }

  .hero-title {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-eyebrow {
    font-size: 12px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 20px;
  }

  .card-body {
    padding: 14px 16px 18px;
  }

  .card-title {
    font-size: 16px;
  }

  .course-box {
    padding: 32px 16px;
  }

  .course-title {
    font-size: 20px;
  }
}
/* hero order on narrow screens (Claude) */
@media (max-width: 900px) { .hero-text { order: 1; } .hero-banner { order: 2; } }
