@charset "UTF-8";

/* =========================================================
   長野稔研究室 共通スタイルシート
   ========================================================= */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --main-color: #2e7d32;        /* メイン緑 */
  --main-color-dark: #1b5e20;   /* 濃い緑（フッター等） */
  --main-color-light: #4caf50;  /* 明るい緑 */
  --accent-red: #c8102e;        /* 大学ロゴの赤（PAGE TOP） */
  --accent-red-dark: #9b0a23;
}
body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333; line-height: 1.8; font-size: 15px; background: #fff;
}
a { color: var(--main-color); text-decoration: none; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
ul { list-style: none; }

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

/* ===== Header ===== */
.header { background: #fff; border-bottom: 1px solid #ddd; position: relative; }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1100px; margin: 0 auto; }
.site-brand { display: flex; align-items: center; gap: 18px; }
.site-logo img { height: 64px; width: auto; }
.site-title { line-height: 1.5; }
.site-title .sub { display: block; font-size: 14px; color: #666; font-weight: normal; }
/* (1) 研究室名の文字色は黒 */
.site-title .main { display: block; font-size: 25px; font-weight: bold; color: #1a1a1a; margin-top: 4px; }
.header-right { display: flex; align-items: center; gap: 15px; }
.btn-english {
  display: inline-block; background: var(--main-color); color: #fff;
  border: 1px solid var(--main-color); padding: 5px 14px; font-size: 12px;
  font-weight: bold; letter-spacing: 0.05em;
}
.btn-english:hover { background: var(--main-color-dark); border-color: var(--main-color-dark); opacity: 1; }

/* ===== Hamburger (SP) ===== */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 30px; cursor: pointer; background: none; border: none; padding: 0; }
.hamburger span { display: block; width: 100%; height: 2px; background: #333; transition: 0.3s; }

/* ===== Global Navigation ===== */
.gnav { background: var(--main-color); }
.gnav-list { display: flex; justify-content: center; max-width: 1100px; margin: 0 auto; }
.gnav-list li { flex: 1; text-align: center; }
.gnav-list li + li { border-left: 1px solid rgba(255,255,255,0.25); }
.gnav-list li a {
  display: block; padding: 14px 5px; font-size: 15px; font-weight: bold; line-height: 1.3;
  color: #fff; border-bottom: 3px solid transparent; transition: background 0.3s, border-color 0.3s;
}
.gnav-list li a:hover { background: var(--main-color-dark); color: #fff; opacity: 1; }

/* ===== Hero / Marquee Slideshow (index) ===== */
.hero { position: relative; width: 100%; height: 215px; margin-top: 10px; overflow: hidden; background: #fff; }
.marquee { position: relative; width: 100%; height: 100%; overflow: hidden; }
.marquee-track { display: flex; width: max-content; height: 100%; animation: marquee-scroll 50s linear infinite; will-change: transform; }
.marquee-item { flex: 0 0 auto; width: 360px; height: 100%; margin-right: 10px; background-size: cover; background-position: center center; background-repeat: no-repeat; }
@keyframes marquee-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ===== Section Common (index) ===== */
.section { padding: 60px 0; }
.section-title { font-size: 28px; font-weight: bold; margin-bottom: 8px; display: flex; align-items: baseline; gap: 12px; color: var(--main-color); }
.section-title .sub { font-size: 14px; font-weight: normal; color: #888; }
.section-title .more { margin-left: auto; font-size: 13px; font-weight: bold; color: #fff; background: var(--main-color); padding: 8px 18px; border-radius: 3px; letter-spacing: 0.05em; transition: background 0.3s; }
.section-title .more:hover { background: var(--main-color-dark); opacity: 1; }
.section-title .more::after { content: " ›"; font-weight: normal; }
.section-border { width: 100%; height: 2px; background: var(--main-color); margin-bottom: 30px; position: relative; }
.section-border::after { content: ""; position: absolute; top: 0; left: 0; width: 80px; height: 4px; background: var(--main-color-dark); transform: translateY(-1px); }

/* ===== About (index) ===== */
.about { background: #fff; }
.about-text { line-height: 2; font-size: 15px; }

/* ===== News (index) ===== */
.news { background: #f4f8f4; }
.news-list { border-top: 1px solid #ddd; }
.news-item { display: flex; align-items: center; gap: 20px; padding: 18px 10px; border-bottom: 1px solid #ddd; font-size: 15px; }
.news-item .date { color: #555; font-size: 14px; white-space: nowrap; min-width: 130px; }
.news-item .label { display: inline-block; background: var(--main-color); color: #fff; font-size: 11px; font-weight: bold; padding: 3px 10px; border-radius: 3px; letter-spacing: 0.05em; white-space: nowrap; min-width: 50px; text-align: center; }
.news-item .label-empty { display: inline-block; min-width: 50px; }
.news-item p { flex: 1; line-height: 1.6; }

/* ===== Footer Banners (index) — (4) 2行4列 ===== */
.footer-banners { background: #fff; padding: 40px 0; border-top: 1px solid #eee; }
.footer-banner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1040px; margin: 0 auto; }
.footer-banner-item { display: flex; align-items: center; justify-content: center; border: 1px solid #ccc; padding: 22px 14px; text-align: center; font-size: 13.5px; font-weight: bold; color: #555; background: #fff; line-height: 1.6; transition: border-color 0.3s, color 0.3s; }
.footer-banner-item:hover { border-color: var(--main-color); color: var(--main-color); opacity: 1; }

/* ===== Page Head ===== */
.page-head { background: #f4f8f4; border-bottom: 1px solid #e0e8e0; padding: 30px 0; }
.page-head .container { display: flex; flex-direction: column; gap: 6px; }
.page-head h1 { font-size: 28px; color: var(--main-color); font-weight: bold; }
.page-head h1 span { font-size: 14px; color: #888; font-weight: normal; margin-left: 8px; }

/* ===== Breadcrumb Bar — (5) page-head の外・下 ===== */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid #eee; }
.breadcrumb-bar .container { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb { font-size: 13px; color: #777; }
.breadcrumb a { color: #777; }
.breadcrumb span { margin: 0 6px; color: #bbb; }

/* ===== Content Common ===== */
.content { padding: 55px 0 80px; }

/* セクション見出し（members / access 等） */
.section-heading { font-size: 23px; font-weight: bold; color: var(--main-color-dark); margin: 0 0 24px; padding: 4px 0 4px 16px; border-left: 6px solid var(--main-color); }
.section-heading .en { font-size: 13px; color: #999; font-weight: normal; margin-left: 8px; }
.info-block { margin-bottom: 48px; }
.info-block:last-child { margin-bottom: 0; }

/* 図版共通 */
figure { margin: 0; }
figure img { border: 1px solid #ddd; border-radius: 4px; background: #fff; }
figcaption { font-size: 13px; color: #777; margin-top: 8px; line-height: 1.6; text-align: center; }

/* ===== research.html ===== */
.research-block { margin-bottom: 70px; }
.research-block:last-child { margin-bottom: 0; }
.research-block::after { content: ""; display: block; clear: both; }
/* 模式図：右half にテキスト回り込み */
.fig-float { float: right; width: 46%; margin: 4px 0 22px 32px; }
/* 2分割 横並び（画像幅 約1/2） */
.fig-half { display: flex; flex-wrap: wrap; gap: 24px; margin: 30px 0; clear: both; }
.fig-half figure { flex: 0 1 calc(50% - 12px); max-width: calc(50% - 12px); }
.fig-half figure img { width: 100%; }
/* 表示幅 約2/3・中央寄せ */
.fig-twothird { width: 66.66%; margin: 30px auto; text-align: center; }
.fig-twothird img { width: 100%; }
/* 2列ブロックを約2/3幅に絞って中央寄せ */
.fig-half.compact { max-width: 66.66%; margin: 30px auto; }
/* 1行2列・幅非対称（PC: flex横並び・中央寄せ） */
.fig-asym { display: flex; flex-wrap: wrap; gap: 24px; margin: 30px 0; clear: both; align-items: flex-start; justify-content: center; }
.fig-asym figure img { width: 100%; }
.fig-w60 { flex: 0 0 60%; max-width: 60%; }
.fig-w30 { flex: 0 0 30%; max-width: 30%; }
.research-block h2 { font-size: 23px; font-weight: bold; color: var(--main-color-dark); line-height: 1.5; margin-bottom: 18px; padding: 4px 0 4px 16px; border-left: 6px solid var(--main-color); }
.research-block p { margin: 0 0 14px; line-height: 2; text-align: justify; }
.fig-row { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; align-items: flex-start; margin: 28px 0; }
.fig-row figure { flex: 1 1 300px; max-width: 380px; }
.fig-full { margin: 28px auto; text-align: center; }
.fig-full.narrow { max-width: 720px; }
figure.struct img { border: 1px solid #e3e3e3; padding: 14px; }

/* ===== members.html ===== */
.profile { display: flex; gap: 36px; align-items: flex-start; background: #f9fbf9; border: 1px solid #e0e8e0; border-radius: 6px; padding: 30px; margin-bottom: 28px; }
.profile-photo { flex: 0 0 32%; max-width: 360px; }
.profile-photo img { border: 1px solid #ddd; border-radius: 4px; width: 100%; }
.profile-body { flex: 1; }
.profile-role { display: inline-block; background: var(--main-color); color: #fff; font-size: 13px; font-weight: bold; padding: 3px 14px; border-radius: 3px; margin-bottom: 12px; }
.profile-name { font-size: 26px; font-weight: bold; color: #222; line-height: 1.4; }
.profile-name .en { font-size: 15px; color: #777; font-weight: normal; margin-left: 10px; }
.profile-links { margin-top: 16px; }
.profile-links a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--main-color); color: var(--main-color); font-size: 13px; font-weight: bold; padding: 7px 16px; border-radius: 3px; transition: background 0.3s, color 0.3s; }
.profile-links a:hover { background: var(--main-color); color: #fff; opacity: 1; }
.history { width: 100%; border-collapse: collapse; font-size: 15px; }
.history th, .history td { border-bottom: 1px solid #e0e0e0; padding: 12px 10px; text-align: left; vertical-align: top; line-height: 1.7; }
.history th { white-space: nowrap; color: var(--main-color-dark); font-weight: bold; width: 130px; }
.history td .deg { display: block; color: #555; font-size: 14px; }
.affiliation { font-size: 15px; line-height: 2; }
.students-note { font-size: 16px; margin-bottom: 24px; }
.students-note strong { color: var(--main-color-dark); }
.group-photo { text-align: center; }
.group-photo img { max-width: 760px; width: 100%; }
.group-photo figcaption { margin-top: 8px; }

/* ===== publications.html ===== */
.pub-block { margin-bottom: 55px; }
.pub-block:last-child { margin-bottom: 0; }
.pub-block h2 { font-size: 22px; font-weight: bold; color: var(--main-color-dark); margin-bottom: 22px; padding: 4px 0 4px 16px; border-left: 6px solid var(--main-color); }
.pub-block h2 .count { font-size: 14px; color: #999; font-weight: normal; margin-left: 8px; }
ol.pub-list { list-style: none; counter-reset: pub; padding: 0; }
ol.pub-list li { counter-increment: pub; position: relative; padding: 8px 16px 8px 52px; border-bottom: 1px solid #eee; line-height: 1.6; font-size: 14.5px; }
ol.pub-list li::before { content: counter(pub); position: absolute; left: 0; top: 8px; width: 36px; text-align: right; color: var(--main-color); font-weight: bold; font-size: 14px; }
ol.pub-list li:hover { background: #f9fbf9; }
ol.pub-list strong { color: var(--main-color-dark); }
.pub-note { font-size: 13px; color: #888; margin-top: 14px; }

/* ===== access.html ===== */
.contact-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.contact-table th, .contact-table td { border: 1px solid #d8e3d8; padding: 16px 18px; text-align: left; vertical-align: top; line-height: 1.7; }
.contact-table th { background: #eef5ee; color: var(--main-color-dark); font-weight: bold; white-space: nowrap; width: 130px; }
.contact-note { font-size: 13px; color: #888; display: block; margin-top: 4px; }
.map-wrap { position: relative; width: 100%; padding-top: 52%; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; margin-bottom: 22px; }
.map-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.campus-map { text-align: center; margin-bottom: 22px; }
.campus-map img { max-width: 842px; width: 100%; }
.campus-map figcaption { margin-top: 8px; }
.access-detail { font-size: 15px; }
/* (7) 大学アクセスへのボタンリンク */
.btn-link { display: inline-flex; align-items: center; gap: 8px; background: var(--main-color); color: #fff; font-weight: bold; font-size: 15px; line-height: 1.5; padding: 14px 28px; border-radius: 4px; margin-top: 14px; transition: background 0.3s; }
.btn-link::after { content: "›"; font-size: 18px; }
.btn-link:hover { background: var(--main-color-dark); color: #fff; opacity: 1; }
.recruit { background: #f9fbf9; border: 1px solid #e0e8e0; border-radius: 6px; padding: 28px 30px; }
.recruit p { margin: 0 0 12px; line-height: 2; }
.recruit p:last-child { margin-bottom: 0; }
.recruit .lead { font-weight: bold; color: var(--main-color-dark); }

/* ===== sitemap.html ===== */
.sitemap { max-width: 720px; }
.sitemap > li { margin-bottom: 24px; }
.sitemap > li > a { font-size: 17px; font-weight: bold; color: var(--main-color-dark); }
.sitemap > li > a::before { content: "▶"; color: var(--main-color); font-size: 11px; margin-right: 8px; }
.sitemap ul.children { margin: 6px 0 0 26px; }
.sitemap ul.children li { position: relative; padding: 4px 0 4px 16px; line-height: 1.7; }
.sitemap ul.children li::before { content: "–"; position: absolute; left: 0; color: #aaa; }
.sitemap ul.children a { color: #444; font-size: 15px; }
.sitemap ul.children a:hover { color: var(--main-color); }

/* ===== subpage.html （タグ見本：.tagdemo でスコープ） ===== */
.tagdemo h1 { font-size: 30px; font-weight: bold; color: var(--main-color); line-height: 1.4; padding-bottom: 14px; margin-bottom: 30px; border-bottom: 3px solid var(--main-color); }
.tagdemo h2 { font-size: 24px; font-weight: bold; color: var(--main-color-dark); margin: 45px 0 18px; padding-left: 14px; border-left: 6px solid var(--main-color); }
.tagdemo h3 { font-size: 20px; font-weight: bold; color: #2c3e2c; margin: 32px 0 14px; padding-bottom: 6px; border-bottom: 1px dashed #b7cdb7; }
.tagdemo h4 { font-size: 17px; font-weight: bold; color: #333; margin: 26px 0 12px; }
.tagdemo h5 { font-size: 15px; font-weight: bold; color: var(--main-color-dark); margin: 22px 0 10px; }
.tagdemo h6 { font-size: 14px; font-weight: bold; color: #555; margin: 18px 0 8px; }
.tagdemo p { margin: 0 0 18px; line-height: 2; }
.tagdemo figure { margin: 24px 0; text-align: center; }
.tagdemo figure img { border: 1px solid #ddd; border-radius: 4px; }
.tagdemo ul.bullet, .tagdemo ol.number { margin: 0 0 24px 1.5em; }
.tagdemo ul.bullet { list-style: disc; }
.tagdemo ol.number { list-style: decimal; }
.tagdemo ul.bullet li, .tagdemo ol.number li { margin-bottom: 8px; line-height: 1.8; }
.tagdemo ul.bullet ul.bullet, .tagdemo ol.number ol.number { margin: 8px 0 8px 1.5em; }
.tagdemo dl { margin: 0 0 24px; border-top: 1px solid #ddd; }
.tagdemo dt { font-weight: bold; color: var(--main-color-dark); padding: 14px 10px 4px; }
.tagdemo dd { padding: 0 10px 14px 10px; border-bottom: 1px solid #ddd; color: #444; }
.tagdemo table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 14px; }
.tagdemo table caption { caption-side: top; text-align: left; font-size: 13px; color: #888; margin-bottom: 8px; }
.tagdemo th, .tagdemo td { border: 1px solid #cdddcd; padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.7; }
.tagdemo thead th { background: var(--main-color); color: #fff; font-weight: bold; }
.tagdemo tbody th { background: #eef5ee; color: var(--main-color-dark); white-space: nowrap; }
.tagdemo tbody tr:nth-child(even) td { background: #f8fbf8; }

/* ===== Page Top — (3) 背景色を赤 ===== */
.page-top { position: fixed; bottom: 30px; right: 30px; z-index: 100; }
.page-top a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; background: var(--accent-red); color: #fff; font-size: 12px; font-weight: bold; letter-spacing: 0.1em; text-decoration: none; border-radius: 3px; }
.page-top a .arrow { font-size: 10px; line-height: 1; }
.page-top a:hover { background: var(--accent-red-dark); opacity: 1; }

/* ===== Footer — (2) 背景を緑 ===== */
.footer { background: var(--main-color-dark); color: #fff; padding: 50px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.footer-info { font-size: 13px; line-height: 1.8; }
.footer-info .sub { display: block; font-size: 12px; color: #e0ece0; }
.footer-info .main { display: block; font-size: 17px; font-weight: bold; color: #fff; margin: 4px 0 14px; }
.footer-info .address { margin-top: 10px; color: #e0ece0; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; font-size: 14px; text-align: right; }
.footer-links a { color: #fff; }
.footer-links a:hover { color: #cdeccd; opacity: 1; }
.copyright { text-align: center; font-size: 12px; color: #cde0cd; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.25); max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* ===== Responsive (768px) ===== */
@media screen and (max-width: 768px) {
  .header-top { padding: 12px 15px; }
  .header-right { display: none; }
  .hamburger { display: flex; }
  .site-logo img { height: 48px; }
  .site-title .sub { font-size: 12px; }
  .site-title .main { font-size: 17px; }

  .gnav { display: none; }
  .gnav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 999; background: var(--main-color); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
  .gnav-list { flex-direction: column; }
  .gnav-list li + li { border-left: none; border-top: 1px solid rgba(255,255,255,0.25); }
  .gnav-list li a { padding: 14px 20px; text-align: left; }

  .hero { height: 105px; }
  .marquee-item { width: 210px; }
  .marquee-track { animation-duration: 35s; }

  .section { padding: 40px 0; }
  .section-title { font-size: 22px; flex-wrap: wrap; }
  .section-title .more { font-size: 12px; padding: 6px 12px; }

  .news-item { flex-wrap: wrap; gap: 8px 12px; padding: 14px 5px; }
  .news-item .date { min-width: auto; }
  .news-item p { flex-basis: 100%; }

  /* (4) banner: SP は 2列 */
  .footer-banner-grid { grid-template-columns: repeat(2, 1fr); }

  .page-head h1 { font-size: 22px; }
  .content { padding: 40px 0 60px; }

  .section-heading { font-size: 19px; }
  .research-block { margin-bottom: 50px; }
  .research-block h2 { font-size: 19px; }
  .fig-row figure { flex-basis: 100%; max-width: 100%; }
  /* SP：回り込み解除・横並び解除・全幅 */
  .fig-float { float: none; width: 100%; margin: 0 0 20px; }
  .fig-half figure { flex-basis: 100%; max-width: 100%; }
  .fig-half.compact { max-width: 100%; margin: 20px 0; }
  .fig-twothird { width: 100%; margin: 20px auto; }
  .fig-asym figure { flex: 0 0 100%; max-width: 100%; }

  .profile { flex-direction: column; gap: 20px; padding: 22px; }
  .profile-photo { flex-basis: auto; max-width: 100%; width: 100%; margin: 0; }
  .profile-name { font-size: 22px; }
  .history th { width: 100px; font-size: 14px; }

  .pub-block h2 { font-size: 19px; }
  ol.pub-list li { padding: 8px 4px 8px 38px; font-size: 14px; }
  ol.pub-list li::before { width: 26px; }

  .contact-table th { width: 90px; font-size: 14px; padding: 12px; }
  .contact-table td { padding: 12px; }
  .map-wrap { padding-top: 75%; }
  .recruit { padding: 22px; }

  .sitemap > li > a { font-size: 16px; padding: 14px 16px; }
  .sitemap ul.children { padding: 8px 16px 14px 32px; }

  .tagdemo h1 { font-size: 24px; }
  .tagdemo h2 { font-size: 20px; }
  .tagdemo table { font-size: 13px; }
  .tagdemo th, .tagdemo td { padding: 10px; }

  .footer-inner { flex-direction: column; gap: 25px; }
  .footer-links { text-align: left; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
}
