/* =========================================================
   mopponpon - home.css (v5.1.0 / narrative logbook)
   ========================================================= */

.home-main {
  padding: 0;
  background: var(--moppo-white);
}

.moppo-home {
  --home-max: 1180px;
  --home-hairline: 0.5px solid var(--moppo-blue-200);
}

.moppo-home a {
  text-decoration: none;
}

/* ===== Hero ===== */

.moppo-home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 249, 254, 0.95) 0%, #fff 72%, rgba(230, 241, 251, 0.45) 100%);
  border-bottom: var(--home-hairline);
}

.moppo-home-hero::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(230, 241, 251, 0.72) 100%);
}

.moppo-home-hero__inner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 54px 0 58px;
}

.moppo-home-hero__content {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.moppo-home-kicker,
.moppo-home-section-head__eyebrow {
  margin: 0 0 14px;
  font-family: var(--moppo-font-en);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--moppo-blue-600);
}

.moppo-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 6px 12px;
  border: var(--home-hairline);
  border-radius: var(--moppo-radius-pill);
  background: rgba(255, 255, 255, 0.72);
}

.moppo-home-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moppo-danger);
}

.moppo-home-hero__title {
  max-width: 680px;
  margin: 0 auto;
  color: var(--moppo-blue-900);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.42;
  letter-spacing: 0;
  font-weight: 500;
}

.moppo-home-hero__title span {
  display: block;
  color: var(--moppo-blue-600);
}

.moppo-home-hero__title .moppo-home-hero__title-line {
  color: var(--moppo-blue-900);
}

.moppo-home-hero__lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--moppo-text);
  font-size: 16px;
  line-height: 1.9;
}

.moppo-note-slider {
  width: 100%;
  margin-top: 30px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.moppo-note-slider__track {
  display: flex;
  width: max-content;
  animation: moppo-note-marquee 62s linear infinite;
}

.moppo-note-slider:hover .moppo-note-slider__track {
  animation-play-state: paused;
}

.moppo-note-slider__group {
  display: flex;
  gap: 18px;
  padding: 4px 9px 18px;
}

.moppo-note-card {
  position: relative;
  display: grid;
  flex: 0 0 286px;
  width: 286px;
  overflow: hidden;
  border: var(--home-hairline);
  border-radius: 10px;
  background: #fff;
  color: var(--moppo-blue-900);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(26, 43, 74, 0.1);
  transition: transform var(--moppo-duration) var(--moppo-ease), box-shadow var(--moppo-duration) var(--moppo-ease);
}

.moppo-note-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(26, 43, 74, 0.14);
}

.moppo-note-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--moppo-blue-50);
}

.moppo-note-card span {
  width: fit-content;
  margin: 14px 14px 8px;
  padding: 4px 9px;
  border-radius: var(--moppo-radius-pill);
  background: var(--moppo-blue-50);
  color: var(--moppo-blue-600);
  font-family: var(--moppo-font-en);
  font-size: 11px;
  line-height: 1.2;
}

.moppo-note-card strong {
  display: -webkit-box;
  min-height: 3.7em;
  margin: 0 14px 16px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--moppo-blue-900);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

@keyframes moppo-note-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.moppo-home-position {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.moppo-home-position span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: var(--home-hairline);
  border-radius: var(--moppo-radius-pill);
  background: rgba(255, 255, 255, 0.76);
  color: var(--moppo-blue-900);
  font-size: 14px;
  line-height: 1.2;
}

.moppo-home-position b {
  color: var(--moppo-text-sub);
  font-size: 12px;
  font-weight: 500;
}

.moppo-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.moppo-home-ledger {
  background: rgba(255, 255, 255, 0.82);
  border: var(--home-hairline);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(26, 43, 74, 0.08);
  padding: 20px;
}

.moppo-home-ledger__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: var(--home-hairline);
  color: var(--moppo-text-sub);
  font-family: var(--moppo-font-en);
  font-size: 12px;
}

.moppo-home-ledger__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.moppo-home-stat {
  min-height: 72px;
  padding: 12px 14px;
  border: var(--home-hairline);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, var(--moppo-blue-50) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-direction: row;
}

.moppo-home-stat__label {
  color: var(--moppo-text-sub);
  font-size: 12px;
}

.moppo-home-stat__value {
  color: var(--moppo-blue-900);
  font-family: var(--moppo-font-en);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}

.moppo-home-stat__value--down {
  color: var(--moppo-danger);
}

.moppo-home-stat__value--up {
  color: var(--moppo-success);
}

.moppo-home-ledger__note {
  margin: 16px 0 0;
  color: var(--moppo-text-sub);
  font-size: 12px;
  line-height: 1.8;
}

/* ===== Common sections ===== */

.moppo-home-now,
.moppo-home-start,
.moppo-home-map,
.moppo-home-latest,
.moppo-home-support {
  padding: 72px 0;
}

.moppo-home-now,
.moppo-home-map {
  background: var(--moppo-white);
}

.moppo-home-start,
.moppo-home-support {
  background: var(--moppo-blue-50);
}

.moppo-home-section-head {
  max-width: 720px;
  margin: 0 0 32px;
}

.moppo-home-section-head--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.moppo-home-section-head h2 {
  margin: 0;
  color: var(--moppo-blue-900);
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 500;
}

.moppo-home-section-head p:not(.moppo-home-section-head__eyebrow) {
  margin: 12px 0 0;
  color: var(--moppo-text-sub);
  font-size: 14px;
  line-height: 1.9;
}

.moppo-home-text-link {
  color: var(--moppo-blue-600);
  font-size: 14px;
  font-weight: 500;
}

/* ===== Now board ===== */

.moppo-now-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.moppo-now-board__card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: var(--home-hairline);
  border-radius: 8px;
}

.moppo-now-board__num {
  color: var(--moppo-blue-500);
  font-family: var(--moppo-font-en);
  font-size: 12px;
}

.moppo-now-board__card h3 {
  margin: 14px 0 12px;
  color: var(--moppo-blue-900);
  font-size: 18px;
  letter-spacing: 0;
}

.moppo-now-board__card p,
.moppo-now-board__card li {
  color: var(--moppo-text);
  font-size: 14px;
  line-height: 1.85;
}

.moppo-now-board__card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.moppo-now-board__card li {
  position: relative;
  padding-left: 14px;
}

.moppo-now-board__card li::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moppo-blue-500);
}

.moppo-now-board__card a {
  margin-top: auto;
  color: var(--moppo-blue-600);
  font-size: 14px;
  font-weight: 500;
}

.moppo-now-board__pl {
  margin: 10px 0 4px;
  font-family: var(--moppo-font-en);
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
}

.moppo-now-board__meta {
  color: var(--moppo-text-sub) !important;
}

/* ===== Start cards ===== */

.moppo-home-start__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.moppo-home-start__grid--pillars {
  grid-template-columns: repeat(2, 1fr);
}

.moppo-home-start-card a,
.moppo-home-map-card {
  height: 100%;
  display: block;
  padding: 16px 16px 22px;
  background: #fff;
  border: var(--home-hairline);
  border-radius: 8px;
  color: var(--moppo-text);
}

.moppo-home-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
  background: var(--moppo-blue-50);
  border: 1px solid rgba(181, 212, 244, 0.72);
}

.moppo-home-start-card span,
.moppo-home-map-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--moppo-blue-600);
  font-family: var(--moppo-font-en);
  font-size: 12px;
}

.moppo-home-start-card h3,
.moppo-home-map-card h3 {
  margin: 0 0 12px;
  color: var(--moppo-blue-900);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0;
}

.moppo-home-start-card p,
.moppo-home-map-card p {
  margin: 0;
  color: var(--moppo-text-sub);
  font-size: 14px;
  line-height: 1.85;
}

/* ===== Learning map ===== */

.moppo-home-map__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.moppo-home-map-card {
  background: linear-gradient(135deg, #fff 0%, rgba(244, 249, 254, 0.88) 100%);
}

.moppo-home-map-empty {
  padding: 28px;
  border: 1px dashed rgba(133, 183, 235, 0.78);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, rgba(244, 249, 254, 0.92) 100%);
}

.moppo-home-map-empty span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--moppo-blue-100);
  color: var(--moppo-blue-600);
  font-family: var(--moppo-font-en);
  font-size: 12px;
}

.moppo-home-map-empty p {
  max-width: 680px;
  margin: 0;
  color: var(--moppo-text-sub);
  font-size: 14px;
  line-height: 1.9;
}

.moppo-home-map-card:hover,
.moppo-home-start-card a:hover,
.moppo-now-board__card:hover {
  border-color: var(--moppo-blue-400);
  box-shadow: 0 10px 28px rgba(26, 43, 74, 0.06);
}

/* ===== Latest posts ===== */

.moppo-home-latest {
  background: #fff;
}

.blog-grid,
.blog-grid--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background: #fff;
  border: var(--home-hairline);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}

.blog-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 300 / 158;
  background: var(--moppo-grad-eyecatch);
  overflow: hidden;
}

.blog-card-thumb img,
.blog-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-card-thumb-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--moppo-font-en);
  font-size: 34px;
}

.blog-card-thumb-hover {
  position: absolute;
  inset: auto 12px 12px auto;
  padding: 5px 10px;
  border-radius: var(--moppo-radius-pill);
  background: rgba(255, 255, 255, 0.9);
  color: var(--moppo-blue-700);
  font-size: 12px;
}

.blog-card-body {
  padding: 18px;
}

.blog-card-title {
  margin: 12px 0 10px;
  font-size: 17px;
  line-height: 1.6;
}

.blog-card-title a {
  color: var(--moppo-blue-900);
}

.blog-card-meta {
  display: flex;
  gap: 10px;
  color: var(--moppo-text-sub);
  font-family: var(--moppo-font-en);
  font-size: 12px;
}

.moppo-badge--new {
  margin-left: 6px;
  background: #FAEEDA;
  color: #854F0B;
}

/* ===== Support ===== */

.moppo-home-support__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  background: #fff;
  border: var(--home-hairline);
  border-radius: 8px;
}

.moppo-home-support h2 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: 0;
}

.moppo-home-support p {
  max-width: 680px;
  margin: 0;
  color: var(--moppo-text-sub);
  font-size: 14px;
  line-height: 1.9;
}

.moppo-home-support__actions {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===== Responsive ===== */

@media (max-width: 1023px) {
  .moppo-home-hero__inner {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .moppo-home-hero__inner {
    padding: 40px 0 48px;
  }

  .moppo-home-hero__title {
    width: min(100% - 32px, var(--home-max));
    font-size: 24px;
  }

  .moppo-home-kicker {
    margin-bottom: 12px;
  }

  .moppo-note-slider {
    margin-top: 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  }

  .moppo-note-slider__group {
    gap: 12px;
    padding-bottom: 14px;
  }

  .moppo-note-card {
    flex-basis: 226px;
    width: 226px;
  }

  .moppo-home-hero__actions,
  .moppo-home-support__actions {
    flex-direction: column;
  }

  .moppo-home-hero__actions .moppo-btn-primary,
  .moppo-home-hero__actions .moppo-btn-secondary,
  .moppo-home-support__actions .moppo-btn-primary,
  .moppo-home-support__actions .moppo-btn-secondary {
    width: 100%;
  }

  .moppo-now-board,
  .moppo-home-start__grid,
  .moppo-home-map__grid,
  .blog-grid,
  .blog-grid--2col {
    grid-template-columns: 1fr;
  }

  .moppo-home-section-head--row,
  .moppo-home-support__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .moppo-home-now,
  .moppo-home-start,
  .moppo-home-map,
  .moppo-home-latest,
  .moppo-home-support {
    padding: 48px 0;
  }

  .moppo-now-board__card,
  .moppo-home-start-card a,
  .moppo-home-map-card,
  .moppo-home-support__inner {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moppo-note-slider {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .moppo-note-slider__track {
    animation: none;
  }
}
