:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fafafc;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 14px 32px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  line-height: 1.55;
}

.wrap {
  width: min(1100px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(180%) blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.header-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.top-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(0, 113, 227, 0.1);
  outline: none;
}

.page-main {
  padding: 2.2rem 0 0;
}

.hero {
  text-align: center;
  padding: 2.4rem 0 1.8rem;
  animation: fade-up 0.52s ease both;
}

.hero-entry {
  padding-top: 3.6rem;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0.62rem auto 0;
  font-size: clamp(2rem, 5.3vw, 3.6rem);
  line-height: 1.1;
  max-width: 16ch;
  letter-spacing: -0.02em;
}

.hero-copy {
  margin: 1rem auto 0;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.9vw, 1.16rem);
}

.entry-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  animation: fade-up 0.62s ease both;
}

.entry-card {
  text-decoration: none;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border-radius: var(--radius-xl);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  color: var(--text);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
  outline: none;
}

.entry-kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.15rem 0.56rem;
  background: rgba(0, 113, 227, 0.08);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
}

.entry-card h2 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
}

.entry-card p {
  margin: 0.58rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.entry-action {
  display: inline-flex;
  margin-top: 1.1rem;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.soft-panel,
.panel-section,
.filter-toolbar,
.cta-panel {
  margin-top: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
  animation: fade-up 0.68s ease both;
}

.filter-groups {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-group {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.68rem;
  background: var(--surface-soft);
}

.filter-title {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.time-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.48rem 0.6rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
}

.time-select:focus {
  border-color: rgba(0, 113, 227, 0.58);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.soft-panel h3,
.section-head h2,
.cta-panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  letter-spacing: -0.02em;
}

.soft-panel p,
.section-head p,
.cta-panel p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.section-head {
  margin-bottom: 0.85rem;
}

.service-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  border: 1px solid var(--line-soft);
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
}

.service-card h3 {
  margin: 0;
  font-size: 1rem;
}

.service-card p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.flow-list li {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 0.86rem;
  background: var(--surface-soft);
}

.flow-list h3 {
  margin: 0;
  font-size: 1rem;
}

.flow-list p {
  margin: 0.42rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.faq-list {
  display: grid;
  gap: 0.72rem;
}

.faq-list details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  padding: 0.72rem 0.82rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta-panel {
  text-align: center;
}

.cta-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.64rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  padding: 0.56rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-hover);
  outline: none;
}

.btn-ghost {
  color: var(--primary);
  border: 1px solid rgba(0, 113, 227, 0.32);
  background: rgba(0, 113, 227, 0.05);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(0, 113, 227, 0.09);
  outline: none;
}

.search-field {
  display: grid;
  gap: 0.28rem;
}

.search-field span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.search-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  padding: 0.72rem 0.84rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field input:focus {
  border-color: rgba(0, 113, 227, 0.58);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.meta-row {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.result-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.result-count strong {
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover,
.chip:focus-visible {
  color: var(--text);
  border-color: rgba(0, 113, 227, 0.42);
  outline: none;
}

.chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.card-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.4;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.card-title-wrap {
  flex: 1;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid #d8d8de;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  border: 0;
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.18rem 0.52rem;
  cursor: pointer;
}

.lang-btn.active {
  background: #0071e3;
  color: #ffffff;
}

.card p {
  margin: 0.62rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.52rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.14rem 0.52rem;
  font-size: 0.76rem;
  font-weight: 540;
}

.badge.tag {
  background: #eef5ff;
  border: 1px solid #d5e7ff;
  color: #0058b6;
}

.badge.date {
  background: #f4f4f8;
  border: 1px solid #e1e1e6;
  color: #4c4c50;
}

.badge.stage {
  background: #eef8f2;
  border: 1px solid #ccead6;
  color: #1b7f4b;
}

.badge.topic {
  background: #f5f7fb;
  border: 1px solid #dbe2ed;
  color: #38495f;
}

.step-list {
  margin: 0.64rem 0 0;
  padding-left: 1rem;
}

.step-list li {
  margin-bottom: 0.32rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.prompt-box {
  margin-top: 0.62rem;
  border: 1px solid #dfe6ef;
  background: #f8fbff;
  border-radius: 12px;
  padding: 0.55rem 0.64rem;
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.74rem;
  color: #1f3b5a;
}

.takeaway-box {
  margin-top: 0.62rem;
  border: 1px solid #dfe6ef;
  background: #f8fbff;
  border-radius: 12px;
  padding: 0.55rem 0.64rem;
  font-size: 0.84rem;
  color: #1f3b5a;
}

.source-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.84rem;
}

.source-link:hover {
  text-decoration: underline;
}

.empty-note {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  background: var(--surface);
  color: var(--text-muted);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line-soft);
  padding: 1.1rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .entry-grid,
  .service-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(1100px, calc(100% - 1.4rem));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.56rem 0;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-entry {
    padding-top: 2.8rem;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
