:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --border: #dbe5f1;
  --soft: #eaf3ff;
  --success: #0f9f6e;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: #fff;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.18rem;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--soft);
  color: var(--primary-dark);
  text-decoration: none;
}

.menu-button {
  display: none;
  margin-left: auto;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

.hero {
  padding: 70px 0 50px;
  background:
    radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.18), transparent 30%),
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.15), transparent 28%),
    linear-gradient(180deg, #ffffff, #f5f9ff);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary-dark);
  background: var(--soft);
  border: 1px solid #cfe3ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.86rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.button.secondary {
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid #bdd5f5;
}

.button.secondary:hover {
  background: var(--soft);
}

.hero-visual {
  min-height: 300px;
  display: grid;
  place-items: center;
  border: 1px solid #cee2fb;
  border-radius: 30px;
  background: linear-gradient(145deg, #ffffff, #eaf4ff);
  box-shadow: var(--shadow);
}

.device-stack {
  position: relative;
  width: 260px;
  height: 220px;
}

.device {
  position: absolute;
  border: 6px solid #213047;
  background: linear-gradient(145deg, #dff4ff, #ffffff);
  box-shadow: 0 18px 35px rgba(30, 64, 175, 0.16);
}

.device.laptop {
  width: 210px;
  height: 130px;
  left: 10px;
  top: 30px;
  border-radius: 12px;
}

.device.tablet {
  width: 110px;
  height: 150px;
  right: 0;
  top: 5px;
  border-radius: 18px;
  transform: rotate(6deg);
}

.device.phone {
  width: 62px;
  height: 112px;
  left: 70px;
  bottom: 0;
  border-radius: 16px;
  transform: rotate(-7deg);
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: #eef5fc;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2,
.page-title {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 22px;
}

.card h3 {
  margin: 6px 0 10px;
  line-height: 1.4;
}

.card p {
  color: var(--muted);
}

.card .tag,
.article-meta .tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.card-link {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 800;
}

.article-icon {
  display: grid;
  place-items: center;
  min-height: 150px;
  font-size: 4rem;
  background: linear-gradient(135deg, #eef6ff, #dcf8ff);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.category-card {
  padding: 22px 16px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.category-card:hover,
.category-card.active {
  border-color: #8fbdf6;
  background: var(--soft);
}

.category-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 24px;
}

.search-box,
.select-box {
  min-height: 46px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: #eaf3ff;
  color: #18385f;
  white-space: nowrap;
}

tbody tr:hover {
  background: #f8fbff;
}

.status-ok {
  color: var(--success);
  font-weight: 800;
}

.status-note {
  color: #b45309;
  font-weight: 800;
}

.ad-space {
  min-height: 110px;
  display: grid;
  place-items: center;
  margin: 28px 0;
  padding: 20px;
  color: var(--muted);
  background:
    repeating-linear-gradient(
      45deg,
      #f8fafc,
      #f8fafc 10px,
      #eef2f7 10px,
      #eef2f7 20px
    );
  border: 2px dashed #bdc9d9;
  border-radius: 16px;
  text-align: center;
}

.page-hero {
  padding: 58px 0 38px;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}

.prose,
.sidebar-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prose {
  padding: clamp(22px, 4vw, 44px);
}

.prose h2 {
  margin-top: 2em;
  padding-bottom: 8px;
  border-bottom: 2px solid #dceafb;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose ul {
  padding-left: 1.3em;
}

.note-box {
  padding: 16px 18px;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  background: #ecfeff;
}

.sidebar-box {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.sidebar-box h2 {
  margin-top: 0;
  font-size: 1.12rem;
}

.sidebar-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-weight: 800;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-message {
  min-height: 1.5em;
  color: var(--success);
  font-weight: 700;
}

.site-footer {
  padding: 48px 0 24px;
  color: #d9e5f6;
  background: #14213a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}

.site-footer h2 {
  color: white;
  font-size: 1.1rem;
}

.site-footer a {
  color: #d9e5f6;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 7px;
}

.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: #9eb1cc;
  text-align: center;
  font-size: 0.88rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .hero-grid,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-visual {
    min-height: 260px;
  }

  .sidebar-box {
    position: static;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .hero {
    padding-top: 42px;
  }

  .card-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .prose {
    padding: 20px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .device-stack {
    transform: scale(0.9);
  }
}

/* Friendly Future redesign */
:root {
  --primary: #2563eb;
  --primary-dark: #1746b3;
  --accent: #7c3aed;
  --mint: #14b8a6;
  --bg: #f6f8fc;
  --surface: rgba(255, 255, 255, 0.88);
  --text: #101828;
  --muted: #5e6b82;
  --border: rgba(148, 163, 184, 0.24);
  --soft: #edf4ff;
  --shadow: 0 20px 55px rgba(30, 41, 59, 0.09);
  --shadow-hover: 0 26px 70px rgba(37, 99, 235, 0.16);
  --radius: 22px;
  --max-width: 1200px;
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.05), transparent 22rem),
    var(--bg);
  font-family:
    "SF Pro JP", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.38);
  outline-offset: 3px;
}

.site-header {
  background: rgba(246, 248, 252, 0.82);
  border-bottom-color: rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.header-inner {
  min-height: 68px;
}

.logo {
  letter-spacing: -0.025em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(145deg, #2563eb 5%, #7c3aed 64%, #2dd4bf);
  box-shadow:
    0 10px 24px rgba(71, 72, 218, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.nav-list a {
  padding: 9px 13px;
  font-size: 0.9rem;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 18px rgba(30, 41, 59, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: grid;
  align-items: center;
  padding: 88px 0 82px;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.96), rgba(246,248,252,0.9)),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  width: 740px;
  height: 740px;
  right: -260px;
  top: -320px;
  border-radius: 50%;
  background: conic-gradient(
    from 150deg,
    rgba(45, 212, 191, 0.22),
    rgba(37, 99, 235, 0.24),
    rgba(124, 58, 237, 0.2),
    rgba(45, 212, 191, 0.22)
  );
  filter: blur(60px);
  opacity: 0.85;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(44px, 8vw, 100px);
}

.eyebrow {
  margin-bottom: 18px;
  padding: 7px 13px;
  color: #234b9b;
  background: rgba(237, 244, 255, 0.82);
  border-color: rgba(37, 99, 235, 0.16);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(105deg, #2563eb 5%, #6d3de8 62%, #0f9f92);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero .hero-lead {
  max-width: 650px;
  margin: 27px 0 0;
  color: #526079;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-actions {
  margin-top: 32px;
}

.button {
  min-height: 52px;
  padding: 12px 21px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.3);
}

.button.secondary {
  color: #253652;
  background: rgba(255,255,255,0.78);
  border-color: rgba(148,163,184,0.35);
  box-shadow: 0 10px 26px rgba(30,41,59,0.07);
  backdrop-filter: blur(10px);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 27px 0 0;
  padding: 0;
  color: #66738a;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-points span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  color: #0f766e;
  background: #d8fbf4;
  border-radius: 50%;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.82), rgba(237,244,255,0.62));
  box-shadow:
    0 40px 100px rgba(37, 65, 130, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: 31px;
}

.aurora-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(4px);
}

.orb-one {
  width: 230px;
  height: 230px;
  top: 25px;
  right: 25px;
  background: radial-gradient(circle at 30% 30%, #c4f7ed, #90b8ff 48%, #8b5cf6);
  opacity: 0.58;
}

.orb-two {
  width: 180px;
  height: 180px;
  bottom: 20px;
  left: 15px;
  background: radial-gradient(circle at 35% 35%, #fff, #b9d8ff 42%, #8b5cf6);
  opacity: 0.5;
}

.guide-panel {
  width: min(78%, 360px);
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  box-shadow: 0 30px 60px rgba(15,23,42,0.25);
  backdrop-filter: blur(22px);
  transform: rotate(-1.2deg);
}

.guide-panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a9b9d3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 14px #2dd4bf;
}

.guide-question {
  margin: 24px 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.guide-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.guide-options span {
  padding: 10px 4px;
  color: #dce6f6;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.guide-answer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  color: #dffcf7;
  background: rgba(45,212,191,0.12);
  border: 1px solid rgba(45,212,191,0.24);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.guide-answer-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #072e2a;
  background: #5eead4;
  border-radius: 50%;
}

.quick-start {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding-bottom: 34px;
}

.quick-start > .container {
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: 30px;
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-start-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.quick-start-heading .eyebrow {
  margin-bottom: 8px;
}

.quick-start-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  letter-spacing: -0.035em;
}

.quick-start-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.quick-start-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 17px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-start-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.24);
  box-shadow: 0 16px 32px rgba(37,99,235,0.1);
  text-decoration: none;
}

.quick-start-card strong,
.quick-start-card small {
  display: block;
}

.quick-start-card small {
  margin-top: 2px;
  color: var(--muted);
}

.quick-start-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 1.35rem;
}

.cool-blue .quick-start-icon { color: #1d4ed8; background: #dbeafe; }
.cool-violet .quick-start-icon { color: #6d28d9; background: #ede9fe; }
.cool-mint .quick-start-icon { color: #0f766e; background: #ccfbf1; }

.section {
  padding: 82px 0;
}

.section.alt {
  background:
    radial-gradient(circle at 90% 10%, rgba(124,58,237,0.07), transparent 24rem),
    #eef3fa;
}

.section-heading h2,
.page-title {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: -0.045em;
}

.card {
  border-color: rgba(148,163,184,0.2);
  box-shadow: 0 15px 42px rgba(30,41,59,0.07);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(37,99,235,0.2);
  box-shadow: var(--shadow-hover);
}

.card-body {
  padding: 25px;
}

.article-icon {
  min-height: 165px;
  background:
    radial-gradient(circle at 75% 25%, rgba(124,58,237,0.18), transparent 34%),
    linear-gradient(135deg, #eff6ff, #e9f2ff 48%, #edecff);
}

.category-card {
  border-color: rgba(148,163,184,0.2);
  box-shadow: 0 12px 34px rgba(30,41,59,0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover,
.category-card.active {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.35);
  background: linear-gradient(145deg, #fff, #f1f6ff);
  box-shadow: 0 16px 34px rgba(37,99,235,0.1);
}

.search-box,
.select-box,
.form-group input,
.form-group textarea {
  border-color: rgba(148,163,184,0.34);
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box:focus,
.select-box:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: #6091f5;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.page-hero {
  padding: 76px 0 52px;
  background:
    radial-gradient(circle at 85% 10%, rgba(124,58,237,0.13), transparent 22rem),
    linear-gradient(180deg, #fff, #f0f5fc);
}

.prose,
.sidebar-box,
.table-wrap {
  border-color: rgba(148,163,184,0.22);
  box-shadow: 0 18px 50px rgba(30,41,59,0.07);
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  background:
    radial-gradient(circle at 90% 0%, rgba(124,58,237,0.2), transparent 28rem),
    #0d1629;
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding: 68px 0 88px;
  }

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

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .quick-start {
    margin-top: -48px;
  }

  .quick-start-grid {
    grid-template-columns: 1fr;
  }

  .quick-start-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 64px;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .site-nav {
    top: 64px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(18px);
  }

  .hero {
    padding: 52px 0 82px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
  }

  .hero-points {
    gap: 12px;
  }

  .hero-visual {
    min-height: 330px;
    border-radius: 30px;
  }

  .guide-panel {
    width: min(84%, 330px);
    padding: 22px;
  }

  .quick-start > .container {
    padding: 22px;
    border-radius: 24px;
  }

  .quick-start-card {
    min-height: 82px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Beginner-friendly article pages */
.article-hero-copy {
  max-width: 820px;
}

.article-hero-copy .page-title {
  margin-bottom: 18px;
}

.article-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-section {
  padding: 54px 0 76px;
}

.article-intro {
  margin-top: 0;
  font-size: 1.05rem;
}

.setting-list {
  display: grid;
  gap: 20px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: setting;
}

.setting-item {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: #f8fbff;
  counter-increment: setting;
}

.setting-item::before {
  content: counter(setting);
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #6d3de8);
  border-radius: 11px;
  font-weight: 800;
  line-height: 1;
}

.setting-item h2 {
  margin: 0 0 8px 48px;
  padding: 0;
  border: 0;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

.setting-effect {
  display: inline-block;
  margin: 0 0 12px 48px;
  color: #0f766e;
  font-size: 0.84rem;
  font-weight: 800;
}

.setting-item > p {
  margin: 8px 0;
}

.setting-item h3 {
  margin: 18px 0 6px;
  font-size: 1rem;
}

.setting-item ul,
.setting-item ol {
  margin: 6px 0 0;
}

.menu-path {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.menu-path li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: #29446f;
  background: #eaf3ff;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 700;
}

.menu-path li:not(:last-child)::after {
  content: "›";
  color: #7690b6;
}

.article-summary {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 18px;
  background: #effcf9;
}

.article-summary h2 {
  margin-top: 0;
  border-bottom-color: #bcece3;
}

.sidebar-box a {
  font-weight: 700;
}

@media (max-width: 620px) {
  .article-section {
    padding: 36px 0 56px;
  }

  .setting-item {
    padding: 20px 17px;
  }

  .setting-item::before {
    top: 18px;
    left: 17px;
  }

  .setting-item h2,
  .setting-effect {
    margin-left: 44px;
  }

  .menu-path {
    display: grid;
  }

  .menu-path li {
    justify-content: space-between;
  }
}
