/* ==========================================================================
   neurodiversity.css — neurodiversity.html ページ固有スタイル
   (旧: ページ内 <style> を分離。site.css の後に読み込む)
   ========================================================================== */

.hero-section {
  text-align: center;
  padding: 40px 20px 0px;
  margin: 0 10px;
}
.hero-image {
  max-width: 500px;
  width: 90%;
  height: auto;
  margin: 20px auto;
  display: block;
}
.section {
  padding: 20px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.section h2 {
  margin-bottom: 25px;
  color: #333;
}
.stat-box {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}
.stat-number {
  font-size: 2em;
  font-weight: bold;
  color: #667eea;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.example-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.example-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.example-card h4 {
  color: #667eea;
  margin-bottom: 12px;
  font-size: 1.1em;
}
.org-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.org-card {
  background: #fff;
  border: 1px solid #b1d9e7;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.org-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #27acd9
}
.org-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.org-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
}
.org-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95em;
}
.org-type {
  font-size: 0.75em;
  color: #888;
  margin-top: 2px;
}
.org-link {
  color: #004691;
  font-size: 0.85em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.org-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Details/Summary アコーディオンスタイル */
.details-accordion {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.details-accordion details {
  background: #fff;
  border: 1px solid #b1d9e7;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.details-accordion details:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #27acd9;
}
.details-accordion details[open] {
  border-color: #27acd9;
  box-shadow: 0 4px 16px rgba(39,172,217,0.2);
}
.details-accordion summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
  transition: background 0.3s ease, color 0.3s ease;
  user-select: none;
}
.details-accordion summary::-webkit-details-marker {
  display: none;
}
.details-accordion summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid #27acd9;
  border-bottom: 2px solid #27acd9;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.details-accordion details[open] summary::after {
  transform: rotate(45deg);
}
.details-accordion details[open] summary {
  background: linear-gradient(135deg, #0e81da 0%, #1e77b3 100%);
  color: #fff;
}
.details-accordion details[open] summary::after {
  border-color: #fff;
}

.details-accordion details[open] summary:hover {
  background: linear-gradient(135deg, #2a8ad0 0%, #117bbe 100%);
}
.details-accordion .details-content {
  padding: 20px 24px;
  background: #fff;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.details-accordion .details-content p {
  margin-bottom: 12px;
  line-height: 1.8;
}
.details-accordion .details-content p:last-child {
  margin-bottom: 0;
}
.details-accordion .details-content ul {
  margin: 12px 0;
  padding-left: 20px;
}
.details-accordion .details-content li {
  margin: 8px 0;
  line-height: 1.7;
}
.source-note {
  font-size: 0.85em;
  color: #666;
  margin-top: 8px;
}
.source-note a {
  color: #667eea;
}
.list-box {
  background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
}
.list-box ul {
  margin: 15px 0;
  padding-left: 20px;
}
.list-box li {
  margin: 8px 0;
}
.image-caption {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}
.hero-figure {
  max-width: 500px;
  width: 90%;
  margin: 20px auto;
  text-align: center;
}
.hero-figure .hero-image {
  margin: 0 auto;
  width: 100%;
}
.hero-caption {
  font-size: 1em;
  color: #4b4b4b;
  margin-top: 8px;
  text-align: center;
}
/* ひとこと解説ボックス */
.summary-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px auto;
  max-width: 860px;
  border: 1px solid #27acd9;
}
.summary-box-header {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.95em;
  color: #0033a0;
  letter-spacing: 0.02em;
}
.summary-box p {
  margin: 0;
  line-height: 1.85;
  color: #333;
}
/* 目次スタイル */
.toc-container {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 22px 26px;
  margin: 0 auto 30px;
  max-width: 860px;
  border: 1px solid rgb(64, 64, 64);
}
.toc-header {
  font-weight: bold;
  font-size: 0.95em;
  color: #0033a0;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  letter-spacing: 0.02em;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list > li {
  padding: 6px 0;
}
.toc-list > li > a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.toc-list > li > a:hover {
  color: #27acd9;
  text-decoration: underline;
}
.toc-list .toc-sub {
  list-style: none;
  padding: 0;
  margin: 6px 0 2px 1.2em;
}
.toc-list .toc-sub li {
  padding: 4px 0;
}
.toc-list .toc-sub a {
  color: #555;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.2s;
}
.toc-list .toc-sub a::before {
  content: '– ';
  color: #888;
}
.toc-list .toc-sub a:hover {
  color: #27acd9;
  text-decoration: underline;
}

/* サービスカードスタイル */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.service-card {
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #c5d4dc;
}
.service-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #f2f4f6 100%);
  border-bottom: 1px solid #e8ebee;
}
.service-icon {
  font-size: 1.2em;
}
.service-category {
  font-family: "BIZ UDPGothic", sans-serif;
  font-weight: 700;
  font-size: 0.95em;
  color: #444;
  letter-spacing: 0.03em;
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-list li {
  border-bottom: 1px solid #f0f2f4;
}
.service-list li:last-child {
  border-bottom: none;
}
.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.service-link:hover {
  background: #fafbfc;
}
.service-link-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.service-title {
  font-family: "BIZ UDPGothic", sans-serif;
  font-weight: 600;
  font-size: 0.95em;
  color: #333;
  transition: color 0.2s ease;
}
.service-link:hover .service-title {
  color: #1a8ab8;
}
.service-desc {
  font-size: 0.8em;
  color: #777;
  line-height: 1.5;
}
.service-arrow {
  font-size: 1.1em;
  color: #aab4bc;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
.service-link:hover .service-arrow {
  color: #27acd9;
  transform: translateX(3px);
}
@media screen and (max-width: 815px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.author-container {
  max-width: 800px;
  margin: -10px auto 20px auto;
}
.author-card {
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 30px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.author-card:hover {
  box-shadow: 0 4px 20px rgba(102,126,234,0.15);
  border-color: #c5d4dc;
}
.author-photo-wrapper {
  flex-shrink: 0;
  position: relative;
}
.author-photo-wrapper::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 0;
}
.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  position: relative;
  z-index: 1;
}
.author-label {
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 0.85em;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.author-name {
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
  margin: 4px 0;
}
.author-title {
  font-family: 'BIZ UDPMincho', sans-serif;
  font-size: 0.95em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}
.author-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 0.9em;
  font-weight: 600;
  transition: color 0.2s ease;
}
.author-link:hover {
  color: #4a5dc7;
  text-decoration: underline;
}
@media screen and (max-width: 768px) {
  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .author-photo {
    width: 100px;
    height: 100px;
  }
}
