:root {
  --primary-color: #2b6cb0;
  --secondary-color: #1a365d;
  --accent-color: #68d391;
  --background-color: #f5f7fb;
  --surface-color: #ffffff;
  --text-dark: #1f2933;
  --text-light: #f7fafc;
  --border-color: #d9e2ec;
  --shadow-color: rgba(15, 23, 42, 0.12);

  --font-base: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', 'Hiragino Mincho ProN', serif;

  --header-height: 72px;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--background-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 8px 24px var(--shadow-color);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 900px;
  justify-content: center;
}

.nav-item a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--secondary-color);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-item a:hover,
.nav-item a.active {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 3px;
  transition: var(--transition);
}

.hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26, 54, 93, 0.8), rgba(43, 108, 176, 0.6));
  z-index: 1;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 24px;
  background-color: rgba(15, 23, 42, 0.35);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-light);
}

.hero-content p {
  font-size: 1.1rem;
  color: #e2e8f0;
}

.breadcrumb {
  background-color: transparent;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--secondary-color);
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.cards-grid {
  display: grid;
  gap: 2rem;
}


.cta-note {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background-color: var(--surface-color);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 40px rgba(15, 23, 42, 0.12);
}

.card h3 {
  font-size: 1.3rem;
}

.card p {
  font-size: 0.95rem;
  color: #475569;
}

.card .tag {
  align-self: flex-start;
  background-color: rgba(104, 211, 145, 0.18);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.page-wrapper {
  padding: 3.5rem 0;
}

.main-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.main-layout .article {
  order: 2;
}

.main-layout .sidebar {
  order: 1;
}

@media (min-width: 992px) {
  .main-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: start;
  }

  .main-layout .article {
    order: 0;
  }

  .main-layout .sidebar {
    order: 0;
  }
}

.article {
  background-color: var(--surface-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.08);
}

.article header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.article h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.article section {
  margin-bottom: 2rem;
}

.article section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.article section p {
  margin-bottom: 1rem;
  color: #1f2933;
  line-height: 1.8;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(43, 108, 176, 0.12), rgba(104, 211, 145, 0.12));
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid rgba(43, 108, 176, 0.12);
}

.sidebar {
  background-color: var(--surface-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.toc {
  border-left: 3px solid var(--primary-color);
  padding-left: 1.2rem;
}

.toc h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.toc a {
  font-size: 0.95rem;
  color: var(--secondary-color);
}

.sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-card h3 {
  font-size: 1.05rem;
}

.sidebar-card p {
  font-size: 0.9rem;
  color: #475569;
}

.news-list {
  display: grid;
  gap: 1.2rem;
}

.news-item {
  background-color: var(--surface-color);
  border-left: 4px solid var(--accent-color);
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.news-item time {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.data-cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .data-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.data-card {
  background-color: var(--surface-color);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 20px 32px rgba(15, 23, 42, 0.08);
}

.data-card h4 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--secondary-color);
}

.data-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.footer {
  background-color: #0f172a;
  color: rgba(226, 232, 240, 0.9);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer a {
  color: rgba(226, 232, 240, 0.9);
}

.footer a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  padding: 24px;
  z-index: 999;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 3rem;
}

.mobile-nav-overlay a {
  color: #e2e8f0;
  font-size: 1.2rem;
}

@media (max-width: 991px) {
  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    right: 24px;
    left: 24px;
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: 0 28px 45px rgba(15, 23, 42, 0.12);
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  color: #475569;
  font-style: italic;
  margin: 1.5rem 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.table-scroll th,
.table-scroll td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.badge {
  display: inline-block;
  background-color: rgba(43, 108, 176, 0.12);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cta-banner {
  background: linear-gradient(135deg, #2b6cb0, #68d391);
  border-radius: 20px;
  padding: 2.2rem;
  color: var(--text-light);
  display: grid;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 30px 45px rgba(15, 23, 42, 0.15);
}

.cta-banner h3 {
  font-size: 1.8rem;
}

.cta-banner p {
  color: rgba(247, 250, 252, 0.85);
}

.cta-button {
  justify-self: start;
  padding: 0.75rem 1.6rem;
  background-color: var(--surface-color);
  color: var(--primary-color);
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

@media (max-width: 600px) {
  .hero {
    min-height: 360px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .article,
  .sidebar {
    padding: 1.8rem;
  }

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

  .cta-button {
    justify-self: center;
  }
}
