/* ===================================
   研究ページ専用スタイル
   css/research.css
   =================================== */

:root {
  --research-primary: #6c584c;
  --research-secondary: #e2c4a6;
  --research-accent: #b08a6c;
  --research-muted: rgba(108, 88, 76, 0.14);
}

.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.research-section {
  background: var(--bg-primary);
}

.research-section + .research-section {
  border-top: 1px solid rgba(108, 88, 76, 0.12);
}

.research-hero {
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(108, 88, 76, 0.14);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.research-hero__container {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}

.research-hero__kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.research-hero__title {
  font-size: clamp(2.6rem, 6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.research-hero__title span {
  color: var(--brand-secondary);
}

.research-hero__description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.research-hero__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.research-hero__tags li {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(108, 88, 76, 0.1);
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.research-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.research-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.research-hero__media {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.research-hero__main {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--research-muted);
  box-shadow: var(--shadow-md);
  background: var(--bg-secondary);
}

.research-hero__main img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

.research-hero__main figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.research-hero__stack {
  display: flex;
  gap: 1rem;
}

.research-hero__card {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--research-muted);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-xs);
}

.research-hero__card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.research-hero__card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.research-hero__illustration {
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(108, 88, 76, 0.12);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: gentle-float 6s ease-in-out infinite;
}

.research-hero__illustration svg {
  width: 110px;
  height: 90px;
  stroke: var(--primary-blue);
  stroke-width: 2;
  fill: none;
  display: block;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.section-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.theme-card {
  background: var(--bg-secondary);
  border: 1px solid var(--research-muted);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.theme-card__icon {
  font-size: 2rem;
}

.theme-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.theme-card__text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.theme-card__list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.theme-card__list li::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--brand-secondary);
}

.research-gallery {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(108, 88, 76, 0.12);
  border-bottom: 1px solid rgba(108, 88, 76, 0.12);
}

.research-gallery__layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

.research-gallery__feature {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--research-muted);
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
}

.research-gallery__feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.research-gallery__feature figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.research-gallery__grid {
  display: grid;
  gap: 1rem;
}

.research-gallery__grid figure {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--research-muted);
  background: var(--bg-primary);
  box-shadow: var(--shadow-xs);
}

.research-gallery__grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.research-gallery__grid figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.methods-card {
  background: var(--bg-secondary);
  border: 1px solid var(--research-muted);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.methods-card--active {
  border-color: rgba(176, 138, 108, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.methods-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.methods-card__text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.methods-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.methods-badges li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(108, 88, 76, 0.12);
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline {
  border-left: 2px solid rgba(108, 88, 76, 0.18);
  display: grid;
  gap: 2.5rem;
  padding-left: 1.75rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  border-left: 2px dashed rgba(108, 88, 76, 0.18);
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 6px);
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(108, 88, 76, 0.08);
}

.timeline-item__year {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.timeline-item__year--future {
  color: var(--brand-secondary);
}

.timeline-item__content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.timeline-item__content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.research-cta {
  background: var(--bg-secondary);
}

.cta-card {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.cta-card p {
  max-width: 520px;
  line-height: 1.7;
}

.cta-card .section-title {
  color: var(--text-inverse);
}

.cta-card p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .research-hero__container {
    grid-template-columns: 1fr;
  }

  .research-hero__media {
    order: -1;
  }

  .research-hero__illustration {
    position: static;
    margin-top: 1.5rem;
    align-self: flex-start;
  }

  .research-gallery__layout {
    grid-template-columns: 1fr;
  }

  .research-hero__stack {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .research-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .research-hero__meta {
    flex-direction: column;
  }

  .research-hero__card img {
    height: 140px;
  }

  .methods-badges li {
    font-size: 0.85rem;
  }

  .timeline {
    padding-left: 1.4rem;
  }

  .timeline-item::before {
    left: calc(-1.4rem - 5px);
  }

  .cta-card {
    border-radius: 24px;
  }
}
