/* SmartF demo styles */
:root {
  --main-orange: #ff9434;
  --sub-orange: #f56c52;
  --accent-soft: rgba(255, 148, 52, 0.18);
  --accent-border: rgba(255, 148, 52, 0.85);
  --hover-shadow: 0 10px 24px rgba(245, 108, 82, 0.18);

  --bg: #efefef;
  --text: #111;
  --muted: #666;
  --border: #d7d7d7;
  --shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body:has(.knowledge-main) {
  background-color: #fff;
}
body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP',
    'Yu Gothic', 'Meiryo', sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
  border-radius: 8px;
}

.app-shell {
  background: #fff;
  margin: 18px;
  min-height: calc(100vh - 36px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 56px 0;
}

.brand-link {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 44px;
}
.brand-smart {
  color: #8b8b8b;
}
.brand-f {
  color: var(--main-orange);
}

.site-nav {
  display: flex;
  gap: 22px;
}
.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  padding: 10px 4px;
}
.nav-link.is-active {
  color: var(--main-orange);
}

.site-main {
  padding: 10px 56px 70px;
}

.breadcrumb {
  max-width: 980px;
  margin: 8px auto 12px;
  font-size: 12px;
  color: #222;
}
.breadcrumb-link {
  color: #222;
}
.breadcrumb-sep {
  margin: 0 8px;
  color: #222;
}
.breadcrumb-current {
  color: #222;
}
.knowledge-main {
  margin-top: 120px;
  padding: 0 20px;
}
.hero {
  max-width: 980px;
  margin: 0 auto 0;
  padding: 0 20px;
}
.hero-center {
  text-align: center;
}
.hero-title {
  margin: 0;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.8px;
}
.hero-subtitle {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.page-title {
  max-width: 980px;
  margin: 0 auto 0;
  font-size: 46px;
  font-weight: 900;
}

/* Shared hover/transition */
.choice-card,
.course-card,
.step-card,
.term-card,
.related-term-link {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

/* Desktop: two choice cards */
.card-grid-2 {
  max-width: 920px;
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
.choice-card {
  border: 2px solid var(--accent-border);
  border-radius: 16px;
  padding: 52px 40px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}
.choice-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: var(--main-orange);
}
.choice-icon svg {
  width: 56px;
  height: 56px;
}
.choice-title {
  font-size: 34px;
  font-weight: 900;
  margin: 2px 0 0;
}
.choice-desc {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #111;
}

/* Search + tabs + term grid */
.searchbar {
  max-width: 980px;
  margin: 16px auto 0;
  border: 2px solid var(--border);
  border-radius: 10px;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 46px;
  position: relative;
  background: #fff;
}
.searchbar:focus-within {
  border-color: var(--main-orange);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.searchbar-icon {
  position: absolute;
  left: 14px;
  width: 22px;
  height: 22px;
  color: #999;
}
.searchbar-icon svg {
  width: 22px;
  height: 22px;
}
.searchbar-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
}

.kana-tabs {
  max-width: 980px;
  margin: 18px auto 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.kana-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 67px;
  padding: 10px 20px;
  border-radius: 4px;
  background: #dfdfdf;
  font-size: 13px;
  font-weight: 900;
  color: #111;
}
.kana-tab.is-active {
  background: var(--main-orange);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.term-grid {
  max-width: 980px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 26px;
}
.term-card {
  border: 2px solid var(--accent-border);
  border-radius: 10px;
  padding: 16px 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.term-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}
.term-title {
  font-weight: 900;
  font-size: 14px;
}
.term-arrow {
  width: 20px;
  height: 20px;
  color: var(--main-orange);
}
.term-arrow svg {
  width: 20px;
  height: 20px;
}

.empty {
  max-width: 980px;
  margin: 24px auto 0;
  padding: 18px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
  background: #fff;
}

/* Term detail */
.term-detail-wrap {
  max-width: 980px;
  margin: 20px auto 0;
  display: flex;
  justify-content: center;
}
.term-detail-card {
  width: 560px;
  padding: 44px 56px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}
.term-detail-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}
.term-detail-subtitle {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.term-detail-section {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 900;
}
.term-detail-text {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  color: #222;
}
.term-detail-text a {
  color: #1045e6;
  text-decoration: underline;
}
.term-detail-text img {
  margin: 1em 0;
}
.term-related-title {
  font-size: 12px;
  font-weight: 900;
  margin-top: 20px;
}
.term-related-list {
  margin: 10px 0 0 18px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
}
.text-link {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--sub-orange);
}
.muted {
  color: var(--muted);
}
.related-term-btn {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #1045e6;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: 0.3s;
}
.related-term-btn:hover {
  opacity: 0.8;
}
.related-term-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.related-term-item {
  margin: 0;
}
.related-term-link {
  display: block;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}
.related-term-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--hover-shadow);
  border-color: var(--sub-orange);
}
.related-term-name {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #111;
}
.related-term-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
  color: #555;
}

/* Course cards */
.course-grid-3 {
  max-width: 1040px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.course-card {
  border: 2px solid var(--accent-border);
  border-radius: 18px;
  padding: 44px 34px 36px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 480px;
}
.course-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}
.course-icon {
  width: 68px;
  height: 68px;
  color: var(--main-orange);
  margin-bottom: 22px;
}
.course-icon svg {
  width: 68px;
  height: 68px;
}
.course-title {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
}
.pill {
  margin-top: 14px;
  background: var(--main-orange);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 900;
  font-size: 13px;
}
.pill-large {
  margin-top: 18px;
  padding: 10px 22px;
  font-size: 14px;
}
.course-desc {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  color: #222;
  text-align: left;
}
.course-cta {
  margin-top: auto;
}
.btn-primary {
  display: inline-block;
  margin-top: 28px;
  background: var(--main-orange);
  color: #fff;
  padding: 14px 56px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
}
.btn-primary:hover {
  background: var(--sub-orange);
  box-shadow: var(--hover-shadow);
}

/* Roadmap */
.roadmap-hero {
  max-width: 980px;
  margin: 56px auto 0;
  text-align: center;
}
.roadmap-title {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.35;
}
.roadmap {
  max-width: 640px;
  margin: 34px auto 0;
}
.step-card {
  border: 2px solid var(--accent-border);
  border-radius: 10px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}
.step-pill {
  background: var(--main-orange);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  min-width: 76px;
  text-align: center;
}
.step-body {
  flex: 1;
  text-align: left;
}
.step-title {
  font-size: 18px;
  font-weight: 900;
}
.step-subtitle {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #222;
}
.step-chev {
  width: 22px;
  height: 22px;
  color: var(--main-orange);
}
.step-chev svg {
  width: 22px;
  height: 22px;
}
.step-connector {
  width: 2px;
  height: 26px;
  background: var(--main-orange);
  margin: 0 auto;
}

.roadmap-bottom-link {
  text-align: center;
  margin-top: 26px;
}
.accent-link {
  color: var(--main-orange);
  font-weight: 900;
}
.accent-link:hover {
  color: var(--sub-orange);
}

/* Step detail page */
.step-detail {
  max-width: 980px;
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
}
.step-detail-card {
  width: 720px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 34px 36px;
}
.step-detail-label {
  display: inline-block;
  background: var(--main-orange);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
  font-size: 12px;
}
.step-detail-title {
  margin: 14px 0 0;
  font-size: 28px;
  font-weight: 900;
}
.step-detail-subtitle {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #222;
}
.step-detail-content {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.9;
  color: #222;
}
.step-detail-actions {
  margin-top: 18px;
}

/* Footer */
.site-footer {
  padding: 16px 56px 26px;
  color: #999;
  font-size: 12px;
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* Placeholder */
.placeholder {
  max-width: 820px;
  margin: 26px auto 0;
  text-align: center;
}
.placeholder-text {
  font-weight: 700;
  line-height: 1.9;
  color: #222;
}

/* Responsive */
@media (max-width: 980px) {
  .site-main {
    margin-top: 80px;
  }
  .site-header {
    padding: 22px 20px 0;
  }
  .site-main {
    padding: 10px 20px 60px;
  }
  .brand-link {
    font-size: 36px;
  }
  .hero-title {
    font-size: 32px;
  }
  .page-title {
    font-size: 38px;
  }
  .hero-subtitle {
    font-size: 16px;
  }

  .card-grid-2 {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .term-grid {
    grid-template-columns: 1fr;
  }

  .course-grid-3 {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .term-detail-card {
    width: min(560px, 100%);
    padding: 34px 24px;
  }

  .roadmap-title {
    font-size: 34px;
  }
  .step-detail-card {
    width: 100%;
  }
}
