@charset "UTF-8";
/* ============================================================
   電気化学センサグループ 共通スタイル
   国立研究開発法人物質・材料研究機構
   高分子・バイオ材料研究センター 高分子材料分野
   メイン: 紺色 (#335599) / 差し色: 水色 (#00CCFF)
   ============================================================ */

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

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.8;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

/* スクリーンリーダー向け（視覚的に非表示の見出しなど） */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ===== Header ===== */
.header {
  max-width: 960px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.header-logo-img {
  flex-shrink: 0;
  height: 56px;
  width: auto;
}

.header-logo .univ-name {
  font-size: 15px;
  color: #555;
  margin-bottom: 2px;
}

.header-logo .lab-name {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

.header-logo .group-name {
  font-size: 30px;
  display: inline-block;
  line-height: 1.2;
  margin-top: 2px;
}


/* ===== Hamburger (SP only) ===== */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: #335599;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
}

.hamburger span {
  top: 50%;
  transform: translate(-50%, -50%);
}

.hamburger span::before {
  content: "";
  top: -7px;
}

.hamburger span::after {
  content: "";
  top: 7px;
}

.hamburger.active span {
  background: transparent;
}

.hamburger.active span::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.hamburger.active span::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}


/* ===== Global Nav ===== */
.gnav {
  background: #335599;
}

.gnav-list {
  display: flex;
  max-width: 960px;
  margin: 0 auto;
}

.gnav-list li {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gnav-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.gnav-list li a {
  display: block;
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 16px 8px;
  font-size: 17px;
  transition: background 0.3s;
}

.gnav-list li a:hover,
.gnav-list li a.current {
  background: rgba(255, 255, 255, 0.15);
}


/* ===== SP Menu Overlay ===== */
.sp-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sp-nav-overlay.active {
  display: block;
}

.sp-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #335599;
  z-index: 1000;
  transition: right 0.3s;
  padding-top: 60px;
  overflow-y: auto;
}

.sp-nav.active {
  right: 0;
}

.sp-nav a {
  display: block;
  color: #fff;
  padding: 15px 30px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sp-nav a:hover,
.sp-nav a.current {
  background: rgba(255, 255, 255, 0.15);
}

.sp-nav a.current {
  border-left: 4px solid #00CCFF;
}


/* ===== Hero (TOP: Marquee Slideshow) ===== */
.hero-marquee {
  position: relative;
  height: 300px;
  margin-top: 10px;
  overflow: hidden;
  background: #fff;
}

.marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: marquee-scroll 45s linear infinite;
}

.marquee-track img {
  height: 100%;
  width: auto;
  display: block;
  flex: none;
  margin-right: 12px;
  border-radius: 12px;
}

/* 右から左へ流す（複製した後半 = 前半なので -50% で継ぎ目なくループ） */
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}


/* ===== Page Hero (下層ページ) ===== */
.page-hero {
  background: linear-gradient(135deg, #335599 0%, #24406e 60%, #1a2f52 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(0, 204, 255, 0.18);
}

.page-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px;
  position: relative;
  z-index: 1;
}

.page-hero-title {
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  line-height: 1.4;
}

.page-hero-title .en {
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: #00CCFF;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 6px;
}


/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px 0;
  font-size: 12px;
  color: #777;
}

.breadcrumb a {
  color: #335599;
}

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

.breadcrumb .sep {
  margin: 0 6px;
  color: #aaa;
}


/* ===== Sections ===== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: #f9f9f9;
}

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

.section-title .en {
  display: block;
  font-size: 13px;
  font-weight: normal;
  color: #00a8d4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
}

.heading-bar {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  padding-left: 15px;
  border-left: 4px solid #00CCFF;
  line-height: 1.4;
  margin-bottom: 24px;
}

.lead-text {
  color: #555;
  line-height: 2;
  margin-bottom: 20px;
}

.lead-text-en {
  color: #777;
  line-height: 1.9;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.text-link {
  color: #335599;
  text-decoration: underline;
  word-break: break-all;
}

.text-link:hover {
  color: #00a8d4;
}


/* ===== TOP: About ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text {
  color: #555;
  line-height: 2;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
}

.about-more {
  margin-top: 30px;
  text-align: center;
}


/* ===== TOP: Feature Cards ===== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.feature-card-body {
  padding: 18px 20px 22px;
}

.feature-card-title {
  font-size: 16px;
  font-weight: bold;
  color: #335599;
  margin-bottom: 8px;
}

.feature-card-text {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}


/* ===== Buttons ===== */
.btn {
  display: inline-block;
  color: #335599;
  background: #fff;
  border: 1px solid #335599;
  padding: 10px 32px;
  font-size: 14px;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background: #335599;
  color: #fff;
}


/* ===== TOP: News ===== */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.news-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  padding-left: 15px;
  border-left: 4px solid #00CCFF;
  line-height: 1.2;
}

.news-list {
  border-top: 1px solid #ddd;
}

.news-item {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.news-date {
  flex-shrink: 0;
  width: 150px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.news-badge {
  flex-shrink: 0;
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 2px;
  margin-top: 3px;
  margin-right: 24px;
  letter-spacing: 0.05em;
}

/* NEWバッジなしのお知らせ項目で日付・本文の位置を揃えるための予備クラス */
.news-badge-placeholder {
  flex-shrink: 0;
  display: inline-block;
  width: 44px;
  margin-right: 24px;
}

.news-content {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}


/* ===== Banner Section ===== */
.banners {
  padding: 40px 0;
  background: #f5f5f5;
}

.banner-list {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.banner-item {
  flex: 1;
  max-width: 360px;
  min-height: 80px;
  border: 1px solid #ccc;
  padding: 16px 20px;
  background: #fff;
  font-size: 15px;
  font-weight: bold;
  color: #335599;
  transition: box-shadow 0.3s;

  /* ロゴと文字を横並び */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.banner-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* NIMSロゴ */
.banner-item .nims-logo {
  width: 50px;
  max-width: 50px;
  height: auto;
  flex-shrink: 0;
  display: block;
}


/* ===== 研究内容 (Research) ===== */
.researcher-block {
  margin-bottom: 60px;
}

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

.researcher-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  border-left: 4px solid #00CCFF;
  padding-left: 15px;
  margin-bottom: 24px;
}

.researcher-name .name-ja {
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

.researcher-name .name-role {
  font-size: 14px;
  color: #335599;
  font-weight: bold;
}

.research-figure {
  max-width: 720px;
  margin: 0 auto 24px;
}

.research-figure img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
}

.research-figure figcaption {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 8px;
}

/* 図版の横並び（PC）。SPでは縦積み */
.research-figure-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto 24px;
}

.research-figure-row .research-figure {
  margin: 0;
}

.research-figure-row .fig-narrow {
  flex: 0 0 34%;
  max-width: 34%;
}

.research-figure-row .fig-wide {
  flex: 1 1 auto;
  max-width: 66%;
}

@media (max-width: 768px) {
  .research-figure-row {
    flex-direction: column;
    align-items: center;
  }

  .research-figure-row .fig-narrow,
  .research-figure-row .fig-wide {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}


/* ===== メンバー (Members) ===== */
.member-group {
  margin-bottom: 40px;
}

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

.member-role {
  font-size: 18px;
  font-weight: bold;
  color: #335599;
  border-bottom: 2px solid #00CCFF;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.member-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 4px;
  border-bottom: 1px dashed #ddd;
}

.member-list .member-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  min-width: 10em;
}

.member-list .member-en {
  font-size: 13px;
  color: #777;
  letter-spacing: 0.05em;
}

.member-list .member-note {
  font-size: 13px;
  color: #777;
}


/* ===== 研究業績 (Publications) ===== */
.pub-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pub-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 28px 24px;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}

.pub-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.pub-card .pub-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.pub-card .pub-name-en {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

.pub-card .pub-link {
  display: inline-block;
  color: #335599;
  font-size: 14px;
  font-weight: bold;
}

.pub-card .pub-link::after {
  content: " \2197";
  color: #00a8d4;
}

.pub-card .pub-link:hover {
  text-decoration: underline;
}

.pub-note {
  margin-top: 24px;
  font-size: 13px;
  color: #777;
  text-align: center;
}


/* ===== 活動報告 (Activities) ===== */
.activity-empty {
  text-align: center;
  padding: 40px 20px;
  color: #777;
  background: #f9f9f9;
  border-radius: 4px;
}


/* ===== アクセス (Access) ===== */
.access-block {
  margin-bottom: 50px;
}

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

.access-address {
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
}

.access-address-en {
  font-size: 14px;
  color: #777;
  margin-bottom: 16px;
}

.access-map {
  max-width: 720px;
  margin: 20px auto;
}

.access-map img {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.access-map figcaption {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 8px;
}

.entry-steps {
  counter-reset: step;
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}

.entry-steps li {
  position: relative;
  padding: 16px 20px 16px 64px;
  background: #f9f9f9;
  border-radius: 4px;
  margin-bottom: 12px;
}

.entry-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  background: #335599;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 15px;
}

.entry-steps .step-title {
  font-weight: bold;
  color: #335599;
  margin-bottom: 4px;
}

.entry-steps .step-text {
  font-size: 14px;
  color: #555;
}

.entry-steps .step-note {
  font-size: 12.5px;
  color: #888;
  margin-top: 4px;
}

.access-note {
  background: #eef6fb;
  border-left: 4px solid #00CCFF;
  padding: 16px 20px;
  font-size: 14px;
  color: #444;
  border-radius: 0 4px 4px 0;
  margin-top: 20px;
}


/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 80px;
  height: 80px;
  background: #00CCFF;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, background 0.3s, transform 0.3s;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.scroll-top .scroll-top-arrow {
  font-size: 14px;
  line-height: 1;
}

.scroll-top .scroll-top-label {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: #00a8d4;
  transform: translateY(-2px);
}


/* ===== Footer ===== */
.footer {
  background: #335599;
  color: #fff;
  padding: 40px 20px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.footer-info .footer-univ-name {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 2px;
}

.footer-info .footer-center-name {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.footer-info .footer-lab-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-address {
  font-size: 13px;
  opacity: 0.9;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 16px 0;
}

.footer-copyright {
  font-size: 12px;
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
}

.footer-nav-list {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 40px;
  row-gap: 10px;
  justify-content: end;
}

.footer-nav-list li a {
  display: inline-block;
  font-size: 14px;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.3s, color 0.3s;
  white-space: nowrap;
}

.footer-nav-list li a::before {
  content: "> ";
  color: #00CCFF;
  margin-right: 4px;
}

.footer-nav-list li a:hover {
  color: #00CCFF;
  opacity: 1;
}


/* ===== Responsive ===== */
@media (max-width: 768px) {

  .header {
    padding: 12px 15px;
    gap: 10px;
  }

  .header-left {
    gap: 10px;
  }

  .header-logo-img {
    height: 40px;
  }

  .header-logo .univ-name {
    font-size: 11px;
  }

  .header-logo .lab-name {
    font-size: 14px;
    line-height: 1.4;
  }

  .header-logo .group-name {
    font-size: 18px;
  }

  .hamburger {
    display: block;
  }

  .gnav {
    display: none;
  }

  .hero-marquee {
    height: 165px;
  }

  .page-hero-inner {
    padding: 32px 15px;
  }

  .page-hero-title {
    font-size: 22px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .heading-bar {
    font-size: 19px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-text {
    text-align: left;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .news-item {
    flex-wrap: wrap;
  }

  .news-date {
    width: auto;
    margin-bottom: 5px;
  }

  .news-badge,
  .news-badge-placeholder {
    margin-left: 12px;
    margin-right: 0;
  }

  .news-content {
    flex-basis: 100%;
    margin-top: 4px;
  }

  /* バナー */
  .banner-list {
    flex-wrap: wrap;
  }

  .banner-item {
    flex: 0 0 100%;
    max-width: none;
  }

  .banner-item .nims-logo {
    width: 42px;
    max-width: 42px;
  }

  .pub-list {
    grid-template-columns: 1fr;
  }

  .member-list .member-name {
    min-width: 0;
  }

  .entry-steps li {
    padding: 14px 16px 14px 56px;
  }

  .entry-steps li::before {
    left: 14px;
    top: 16px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .scroll-top {
    width: 64px;
    height: 64px;
    bottom: 20px;
    right: 20px;
  }

  .scroll-top .scroll-top-arrow {
    font-size: 15px;
  }

  .scroll-top .scroll-top-label {
    font-size: 10px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-nav-list {
    justify-content: start;
  }
}