@charset "UTF-8";

/* ====================================
   CSS Variables & Reset
==================================== */
:root {
  --primary: #c41e3a;
  --primary-dark: #8b0000;
  --primary-light: #ff6b6b;
  --accent: #ff4757;
  --bg-main: #fefcfb;
  --bg-section: #fff5f5;
  --bg-card: #ffffff;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --text-light: #b2bec3;
  --border-color: #f0e0e0;
  --shadow-sm: 0 2px 8px rgba(196, 30, 58, 0.08);
  --shadow-md: 0 4px 20px rgba(196, 30, 58, 0.12);
  --shadow-lg: 0 8px 40px rgba(196, 30, 58, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-accent: "M PLUS Rounded 1c", sans-serif;
  --max-width: 900px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ====================================
   Header
==================================== */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.site-logo:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

/* ====================================
   Hero Section
==================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23ffffff10' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-accent);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-description {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ====================================
   Author Section
==================================== */
.authors-section {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
}

.authors-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.authors-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.author-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.author-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.author-info h3 a {
  color: inherit;
}

.author-info h3 a:hover {
  color: var(--primary);
}

.author-role {
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.author-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====================================
   Main Content
==================================== */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Section Styles */
.content-section {
  margin-bottom: 3.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}

.section-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.section-header h2 {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--text-main);
  line-height: 1.4;
}

.section-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

/* Subsection */
.subsection {
  margin-top: 2rem;
}

.subsection h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

/* Image Container */
.image-container {
  margin: 2rem 0;
  text-align: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.image-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Lists */
.content-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.content-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Info Box */
.info-box {
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-box.highlight {
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(196, 30, 58, 0.05) 0%, transparent 100%);
}

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

/* Flow Chart */
.flow-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.flow-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.flow-item:not(:last-child)::after {
  content: "↓";
  position: absolute;
  bottom: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: bold;
}

.flow-step {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.flow-text {
  flex: 1;
}

.flow-text strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.flow-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

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

.data-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.data-table tr:nth-child(even) {
  background: var(--bg-section);
}

.data-table tr:hover {
  background: rgba(196, 30, 58, 0.05);
}

/* ====================================
   FAQ Section
==================================== */
.faq-section {
  background: var(--bg-section);
  padding: 3rem 1.5rem;
  margin-top: 3rem;
}

.faq-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq-title {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.faq-question::before {
  content: "Q";
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  padding-left: calc(1.5rem + 28px + 0.75rem);
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-answer::before {
  content: "A";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

/* ====================================
   Footer
==================================== */
.site-footer {
  background: var(--text-main);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ====================================
   Responsive
==================================== */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem 4rem;
  }
  
  .main-content {
    padding: 2rem 1rem 3rem;
  }
  
  .section-header h2 {
    font-size: 1.25rem;
  }
  
  .authors-grid {
    grid-template-columns: 1fr;
  }
  
  .flow-item {
    flex-direction: column;
    text-align: center;
  }
  
  .data-table {
    font-size: 0.85rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.5rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
