@charset "UTF-8";
/* =============================================
   style.css
   共通スタイルシート（トップページ + 下階層ページ）
   ============================================= */

/* --- CSS Variables (Design Tokens) --- */
:root {
  --color-primary: #171717;
  --color-secondary: #6e427a;
  --color-accent: #962ed7;
  --color-light: #ededed;
  --color-white: #ffffff;
  --color-gray-text: #666666;
  --color-border: #e5e5e5;

  --font-sans: "Noto Sans JP", sans-serif;
  --font-serif: "Noto Serif JP", serif;

  --container-width: 1200px;
  --header-height: 100px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-primary);
  line-height: 1.8;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* --- Typography Utilities --- */
.font-serif {
  font-family: var(--font-serif);
}
.text-accent {
  color: var(--color-accent);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   Header
   ============================================= */
.main-header {
  position: fixed;
  width: 100%;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  top: 0;
}

.main-header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Top Utility Bar */
.top-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.top-bar a:hover {
  color: #cccccc;
}

/* Main Nav Bar */
.nav-bar {
  padding: 16px 0;
}

.nav-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  flex-direction: column;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.logo-title {
  font-size: 20px;
  font-weight: bold;
  font-family: var(--font-serif);
  line-height: 1.2;
}

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

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.desktop-nav a {
  position: relative;
  color: var(--color-primary);
}

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

/* Hover Underline Effect */
.desktop-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s;
}

.desktop-nav a:hover::after {
  width: 100%;
}

/* Active Nav Link (下階層用) */
.desktop-nav a.active {
  color: var(--color-accent);
}
.desktop-nav a.active::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-primary);
  cursor: pointer;
}

/* Mobile Menu Dropdown */
.mobile-menu {
  display: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-top: 1px solid #374151;
}

.mobile-menu a {
  display: block;
  padding: 12px 24px;
  border-bottom: 1px solid #374151;
}

.mobile-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu a.special-link {
  background-color: rgba(68, 68, 68, 0.3);
}

.mobile-menu a.active {
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.05);
}

/* =============================================
   Main Content (共通)
   ============================================= */
main {
  flex-grow: 1;
  padding-top: 100px;
}

/* =============================================
   Hero Section (トップページ)
   ============================================= */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background-color: var(--color-primary);
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.7), rgba(23, 23, 23, 0.5)),
    url("../images/img-top-image.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--color-white);
}

.hero-content {
  max-width: 896px;
  z-index: 10;
  animation: fadeInUp 1s ease-out forwards;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-title {
  font-size: 48px;
  font-family: var(--font-serif);
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 32px;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.hero-divider {
  width: 96px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 0 auto 32px auto;
  opacity: 0.9;
}

.btn-hero {
  display: inline-block;
  border: 1px solid var(--color-white);
  color: var(--color-white);
  padding: 12px 32px;
  border-radius: 9999px;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.btn-hero:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  animation: bounce 1s infinite;
}

/* =============================================
   News Section (トップページ)
   ============================================= */
.news-section {
  padding: 64px 0;
  background-color: #f7f4f9;
  color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

/* Decorative accent line on the left */
.news-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--color-accent),
    var(--color-secondary)
  );
}

.news-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.section-title {
  font-size: 24px;
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.title-bar {
  width: 8px;
  height: 32px;
  background-color: var(--color-accent);
  margin-right: 12px;
  display: block;
}

.view-all {
  font-size: 14px;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.view-all:hover {
  color: var(--color-accent);
}

/* News Filters – 年セレクト & カテゴリチェックボックス */
.news-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding: 14px 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
}

.news-filters > label,
.news-filters > lavel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  white-space: nowrap;
}

.news-filters select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 5px 32px 5px 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--color-primary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}

.news-filters select:hover {
  border-color: var(--color-secondary);
}

.news-filters select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(150, 46, 215, 0.15);
}

/* Category Filter Checkboxes */
.news-category-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.news-category-filter label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-text);
  cursor: pointer;
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  transition: all 0.2s;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.news-category-filter label:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.news-category-filter input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-border);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
}

.news-category-filter input[type="checkbox"]:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.news-category-filter input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 7px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-secondary);
  transition: all 0.2s;
  border-radius: 4px;
}

.news-item:hover {
  background-color: #fff;
  border-left-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(110, 66, 122, 0.1);
}

.news-date {
  width: 128px;
  font-size: 14px;
  color: var(--color-gray-text);
  flex-shrink: 0;
}

.news-tag-wrapper {
  width: 96px;
  margin-right: 16px;
  flex-shrink: 0;
}

.news-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--color-white);
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
}

.tag-report {
  background-color: var(--color-primary);
}
.tag-action {
  background-color: var(--color-gray-text);
}
.tag-notice {
  background-color: var(--color-secondary);
}

/* news-tag をリンクで囲んだ場合 */
.news-tag-link {
  display: inline-block;
  transition: opacity 0.2s;
}

.news-tag-link:hover {
  opacity: 0.8;
}

.news-link {
  flex: 1;
  font-weight: 500;
  color: var(--color-primary);
}

.news-link:hover {
  text-decoration: underline;
  color: var(--color-accent);
}

/* =============================================
   Section Divider – 新着情報と目的の間の装飾
   ============================================= */
.section-divider {
  position: relative;
  height: 64px;
  background: linear-gradient(to bottom, #f7f4f9, var(--color-white));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-border) 15%,
    var(--color-secondary) 40%,
    var(--color-accent) 50%,
    var(--color-secondary) 60%,
    var(--color-border) 85%,
    transparent
  );
}

.divider-ornament {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* =============================================
   About Section – 研究概要と目的 (トップページ)
   ============================================= */
.about-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.about-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-header {
  margin-bottom: 48px;
}

.about-title {
  font-size: 28px;
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.about-title .title-bar {
  flex-shrink: 0;
}

.about-title-sub {
  font-size: 13px;
  color: var(--color-gray-text);
  letter-spacing: 0.05em;
  margin-left: 20px;
}

.about-block {
  margin-bottom: 40px;
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-block-label {
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  font-family: var(--font-serif);
  color: var(--color-white);
  background-color: var(--color-secondary);
  padding: 4px 20px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.about-block p {
  font-size: 15px;
  line-height: 2;
  color: var(--color-primary);
  text-align: justify;
}

/* About Section Figures */
.about-figure {
  margin: 32px 0 40px;
  text-align: center;
}

.about-figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.about-figure img:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.about-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-gray-text);
  font-weight: 500;
  line-height: 1.6;
}

/* Wide figure variant (for summary diagrams) */
.about-figure-wide {
  margin: 40px -24px 0;
}

.about-figure-wide img {
  max-width: 100%;
  border-radius: 4px;
}

/* =============================================
   Content Menu – Panels Section (トップページ)
   ============================================= */
.panels-section {
  padding: 80px 0;
  background-color: var(--color-light);
  position: relative;
}

.centered-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 10;
}

.centered-header h3 {
  font-size: 24px;
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--color-primary);
}

.centered-divider {
  height: 4px;
  width: 80px;
  background-color: var(--color-accent);
  margin: 16px auto 0;
}

.panels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.panel-item {
  display: block;
  background-color: var(--color-white);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.panel-item:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}

.panel-top-bar {
  height: 4px;
  width: 100%;
  background-color: var(--color-secondary);
  transition: background-color 0.3s;
}

.panel-item:hover .panel-top-bar {
  background-color: var(--color-accent);
}

.panel-content {
  padding: 24px 16px;
  text-align: center;
}

.panel-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background-color: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-accent);
  transition: transform 0.3s;
}

.panel-item:hover .panel-icon {
  transform: scale(1.1);
}

.panel-title {
  font-size: 16px;
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.panel-subtitle {
  font-size: 12px;
  color: var(--color-gray-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =============================================
   Contact Section (トップページ)
   ============================================= */
.contact-section {
  padding: 80px 0;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.contact-container {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.contact-title {
  font-size: 30px;
  font-family: var(--font-serif);
  font-weight: bold;
  margin-bottom: 32px;
}

.contact-desc {
  font-size: 16px;
  color: #d1d5db;
  margin-bottom: 40px;
}

.contact-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 48px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-address-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
}

.contact-details {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
}

.contact-details-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.contact-email {
  margin-top: 16px;
}

.contact-email a {
  text-decoration: underline;
}

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

/* =============================================
   Page Header (下階層ページ)
   ============================================= */
.page-header {
  background-color: var(--color-primary);
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.75), rgba(23, 23, 23, 0.6)),
    url("../images/img-top-image.jpg");
  background-size: cover;
  background-position: center;
  padding: 48px 0 40px;
  color: var(--color-white);
}

.page-header-title {
  font-size: 30px;
  font-family: var(--font-serif);
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 8px;
}

.page-header-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

/* =============================================
   Breadcrumb (下階層ページ)
   ============================================= */
.breadcrumb {
  background-color: var(--color-light);
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-gray-text);
}

.breadcrumb-list li a {
  color: var(--color-gray-text);
}

.breadcrumb-list li a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.breadcrumb-list li.current {
  color: var(--color-primary);
  font-weight: 500;
}

.breadcrumb-separator {
  color: #cccccc;
  font-size: 11px;
}

/* =============================================
   Content Area (下階層ページ)
   ============================================= */
.content-section {
  padding: 64px 0 80px;
}

.content-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section title inside content area (下階層ページ用) */
.content-title {
  font-size: 22px;
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

/* List Footer – "全てのデータを見る" link */
.list-footer {
  text-align: right;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: var(--color-accent);
}

.view-all-link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.view-all-link:hover i {
  transform: translateX(3px);
}

/* =============================================
   Member Table (メンバーページ)
   ============================================= */
.member-group {
  margin-bottom: 48px;
}

.member-group:last-child {
  margin-bottom: 0;
}

.member-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.member-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

.member-table thead th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.member-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}

.member-table tbody tr:hover {
  background-color: #faf5fc;
}

.member-table tbody td {
  padding: 14px 16px;
  vertical-align: top;
}

.member-table .col-name {
  width: 140px;
  font-weight: 700;
  white-space: nowrap;
}

.member-table .col-affiliation {
  /* flex grow */
}

.member-table .col-position {
  width: 120px;
  white-space: nowrap;
}

/* 代表者の行を強調 */
.member-table tbody tr.member-leader {
  background-color: #faf5fc;
}

.member-table tbody tr.member-leader .col-name {
  color: var(--color-secondary);
}

/* =============================================
   Prose & Policy Page (文章ページ共通)
   ============================================= */
.prose {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-primary);
}

.prose p {
  margin-bottom: 16px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.policy-block {
  margin-bottom: 48px;
}

.policy-block:last-child {
  margin-bottom: 0;
}

.policy-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-top: 28px;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--color-accent);
}

.policy-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.policy-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.8;
}

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

.policy-contact {
  margin-top: 20px;
  padding: 24px 28px;
  background-color: #faf5fc;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.9;
}

.policy-contact-title {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.policy-contact address {
  font-style: normal;
  color: var(--color-gray-text);
}

.policy-contact-item {
  display: inline-block;
  margin-right: 20px;
}

.policy-contact-item i {
  color: var(--color-secondary);
  margin-right: 4px;
  width: 16px;
  text-align: center;
}

.policy-contact a {
  color: var(--color-secondary);
  text-decoration: underline;
}

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

/* =============================================
   Article Detail (記事詳細ページ)
   ============================================= */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-date {
  font-size: 14px;
  color: var(--color-gray-text);
  font-family: var(--font-sans);
}

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 14px;
  border-radius: 3px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  line-height: 1.5;
}

.article-title {
  font-size: 24px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.article-loading {
  text-align: center;
  padding: 60px 0;
  font-size: 15px;
  color: var(--color-gray-text);
}

.article-loading i {
  margin-right: 8px;
  color: var(--color-secondary);
}

.article-error {
  text-align: center;
  padding: 60px 0;
  color: var(--color-gray-text);
}

.article-error i {
  font-size: 32px;
  color: #c0392b;
  display: block;
  margin-bottom: 16px;
}

.article-back {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 48px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(110, 66, 122, 0.25);
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.15s ease;
}

.btn-back:hover {
  color: var(--color-secondary);
  background-color: var(--color-white);
  box-shadow: 0 4px 16px rgba(110, 66, 122, 0.3);
  transform: translateY(-2px);
}

.btn-back i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.btn-back:hover i {
  transform: translateX(-3px);
}

/* =============================================
   Article Body Content (本文タグスタイル)
   .article-body 内のHTMLタグに適用
   ============================================= */
.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-primary);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* --- 見出し --- */
.article-body h1 {
  font-size: 26px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-primary);
  margin: 40px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-secondary);
  line-height: 1.5;
}

.article-body h2 {
  font-size: 22px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-primary);
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--color-secondary);
  line-height: 1.5;
}

.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--color-accent);
  line-height: 1.5;
}

.article-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 28px 0 12px;
  line-height: 1.5;
}

/* --- 段落・テキスト装飾 --- */
.article-body p {
  margin-bottom: 18px;
  line-height: 1.9;
}

.article-body strong {
  font-weight: 700;
  color: var(--color-primary);
}

.article-body em {
  font-style: italic;
}

.article-body s {
  text-decoration: line-through;
  color: var(--color-gray-text);
}

/* --- リンク --- */
.article-body a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

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

/* --- リスト --- */
.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 28px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 6px;
  line-height: 1.8;
}

.article-body li > ul,
.article-body li > ol {
  margin: 6px 0 0;
}

/* --- 引用 --- */
.article-body blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background-color: #faf5fc;
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 4px 4px 0;
  color: var(--color-primary);
  font-size: 15px;
  line-height: 1.8;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* --- 画像 --- */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
  display: block;
}

/* --- テーブル --- */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.article-body th,
.article-body td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
  white-space: nowrap;
}

.article-body tr:nth-child(even) td {
  background-color: #fafafa;
}

.article-body tr:hover td {
  background-color: #faf5fc;
}

/* --- コード・整形テキスト --- */
.article-body pre {
  margin: 24px 0;
  padding: 20px;
  background-color: #1e1e1e;
  color: #d4d4d4;
  border-radius: 4px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- 水平線 --- */
.article-body hr {
  border: none;
  height: 1px;
  background-color: var(--color-border);
  margin: 32px 0;
}

/* =============================================
   Link Cards (リンクページ)
   ============================================= */
.link-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: 4px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.15s ease;
}

.link-card a:hover {
  border-left-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.link-card-body {
  flex: 1;
  min-width: 0;
}

.link-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.link-card a:hover .link-card-name {
  color: var(--color-accent);
}

.link-card-url {
  font-size: 13px;
  color: var(--color-gray-text);
  word-break: break-all;
}

.link-card-url i {
  margin-right: 6px;
  font-size: 11px;
}

.link-card-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-light);
  color: var(--color-gray-text);
  font-size: 12px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.link-card a:hover .link-card-arrow {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* =============================================
   Sitemap (サイトマップページ)
   ============================================= */
.sitemap-list {
  list-style: none;
}

.sitemap-item {
  border-bottom: 1px solid var(--color-border);
}

.sitemap-item > a {
  display: block;
  padding: 18px 16px 18px 28px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
  transition:
    color 0.3s ease,
    background-color 0.2s ease;
}

.sitemap-item > a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--color-secondary);
  border-right: 2px solid var(--color-secondary);
  transform: translateY(-50%) rotate(45deg);
}

.sitemap-item > a:hover {
  color: var(--color-accent);
  background-color: #faf5fc;
}

.sitemap-item.sitemap-top > a {
  font-family: var(--font-serif);
  font-size: 18px;
}

.sitemap-desc {
  padding: 0 16px 14px 28px;
  font-size: 13px;
  color: var(--color-gray-text);
  margin-top: -8px;
}

.sitemap-children {
  list-style: none;
  padding-bottom: 8px;
}

.sitemap-children li a {
  display: block;
  padding: 10px 16px 10px 48px;
  font-size: 14px;
  color: var(--color-gray-text);
  position: relative;
  transition: color 0.3s ease;
}

.sitemap-children li a::before {
  content: "└";
  position: absolute;
  left: 28px;
  color: var(--color-border);
  font-size: 14px;
}

.sitemap-children li a:hover {
  color: var(--color-accent);
}

/* =============================================
   Back to Top Button (共通)
   ============================================= */
.btn-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition:
    opacity 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
  opacity: 0;
}

.btn-top.visible {
  display: flex;
  opacity: 1;
}

.btn-top:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

/* =============================================
   Footer (共通)
   ============================================= */
footer {
  background-color: var(--color-primary);
  color: #9ca3af;
  padding: 32px 0;
  font-size: 12px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.footer-links a.active {
  color: var(--color-white);
  font-weight: 700;
}

.copyright {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #1f2937;
  opacity: 0.6;
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* Fade-in on scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}
.delay-500 {
  transition-delay: 0.5s;
}

/* =============================================
   Media Queries (Responsive)
   ============================================= */

/* --- Mobile & Tablet (< 1024px) --- */
@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* トップページ Hero */
  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  /* トップページ Contact */
  .contact-details-row {
    flex-direction: column;
    gap: 8px;
  }

  /* 下階層 Page Header */
  .page-header-title {
    font-size: 24px;
  }

  /* トップページ About */
  .about-title {
    font-size: 24px;
  }

  .about-figure-wide {
    margin-left: 0;
    margin-right: 0;
  }
}

/* --- Mobile Only (< 768px) --- */
@media (max-width: 767px) {
  /* トップページ Panels */
  .panels-grid {
    grid-template-columns: 1fr;
  }

  /* トップページ News */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .view-all {
    margin-top: 8px;
    margin-left: 20px;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-date {
    margin-bottom: 4px;
  }

  .news-tag-wrapper {
    margin-bottom: 8px;
  }

  /* News Filters */
  .news-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .news-category-filter {
    gap: 4px;
  }

  /* トップページ Contact */
  .contact-box {
    padding: 32px 16px;
  }

  /* 下階層 Page Header */
  .page-header {
    padding: 32px 0 28px;
  }

  /* Member Table */
  .member-table table {
    font-size: 14px;
  }

  .member-table thead {
    display: none;
  }

  .member-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 2px 0;
  }

  .member-table tbody td {
    padding: 2px 0;
  }

  .member-table .col-name {
    width: 100%;
    font-size: 15px;
    margin-bottom: 4px;
  }

  .member-table .col-affiliation {
    width: 100%;
    font-size: 13px;
    color: var(--color-gray-text);
  }

  .member-table .col-position {
    width: 100%;
    font-size: 13px;
    color: var(--color-gray-text);
  }

  /* Policy Page */
  .policy-contact {
    padding: 20px 16px;
  }

  .policy-contact-item {
    display: block;
    margin-right: 0;
    margin-bottom: 2px;
  }

  /* Article Detail */
  .article-title {
    font-size: 20px;
  }

  .article-body h1 {
    font-size: 22px;
  }

  .article-body h2 {
    font-size: 19px;
  }

  .article-body h3 {
    font-size: 17px;
  }

  .article-body pre {
    padding: 14px;
    font-size: 12px;
  }

  .article-body table {
    font-size: 13px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .btn-back {
    width: 100%;
    justify-content: center;
  }

  /* Link Cards */
  .link-card a {
    padding: 18px 16px;
  }

  .link-card-arrow {
    display: none;
  }

  /* Back to Top */
  .btn-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  /* Footer 共通 */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .panels-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .panels-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
