@charset "UTF-8";

/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
  --max-width: 1000px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  
  /* Color Palette */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-accent-soft: #edf5f7;
  
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;
  
  --primary: #2a5266;
  --primary-hover: #1f3d4d;
  --primary-light: #447a96;
  --accent: #5c8d89;
  --accent-soft: #e8f1f1;
  --border-color: #e2e8f0;
  --border-focus: #94a3b8;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.85;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5rem;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.main-wrapper {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-title a {
  color: var(--text-main);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--primary);
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  padding: 0;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--bg-subtle);
  text-decoration: none;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  margin-bottom: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-light);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb li+li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border-focus);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--text-light);
  font-weight: 500;
}

/* ==========================================================================
   Hero Section (Top Page)
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f1f7f9 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--primary-hover);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-block;
  background-color: var(--accent-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.hero-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   Article & Content Layout
   ========================================================================== */
.article-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

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

.article-category {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--bg-accent-soft);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.article-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  background-color: #fafbfc;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
}

.article-eyecatch {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
}

.article-eyecatch img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.eyecatch-caption {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.6rem 1rem;
  background-color: #fafbfc;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */
.toc-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: var(--primary);
  border-radius: 2px;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  font-size: 0.925rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  transition: color 0.15s ease;
}

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

.toc-sublist {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 0.35rem;
}

.toc-sublist li {
  margin-bottom: 0.35rem;
}

.toc-sublist a {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ==========================================================================
   Typography in Articles
   ========================================================================== */
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-hover);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--accent);
}

.article-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1.5rem;
  color: var(--text-main);
  font-size: 1rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* ==========================================================================
   Special Boxes & Highlights
   ========================================================================== */
.point-box {
  background-color: #f0f7f9;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.point-box-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.check-box {
  background-color: #fbfbfc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.check-box-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

.check-box ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.check-box li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}

.check-box li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.summary-card {
  background: linear-gradient(145deg, #ffffff, #f7fafb);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2.5rem 0 1.5rem 0;
}

.summary-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-align: center;
}

/* ==========================================================================
   Card Grids & Feed (Top & Related)
   ========================================================================== */
.section-title-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-hover);
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #f1f5f9;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .card-thumb img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  align-self: flex-start;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--bg-accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.card-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

/* ==========================================================================
   Static Pages (Contact, Privacy, Disclaimer, About)
   ========================================================================== */
.static-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.static-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.static-content p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.static-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.contact-action-box {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

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

.info-table th {
  background-color: #f8fafc;
  width: 30%;
  font-weight: 700;
  color: var(--text-muted);
}

.info-table td {
  color: var(--text-main);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.footer-info-text {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.footer-disclaimer-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.775rem;
  color: var(--text-light);
  line-height: 1.6;
}

.footer-disclaimer-box strong {
  color: var(--text-muted);
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero {
    padding: 1.5rem;
  }
  
  .hero-text h1 {
    font-size: 1.45rem;
  }
  
  .article-container, .static-container {
    padding: 1.5rem 1.2rem;
  }
  
  .article-title {
    font-size: 1.45rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-list {
    width: 100%;
    justify-content: flex-start;
  }
  
  .nav-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.8125rem;
  }
}
