@charset "UTF-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   1. 基本設定
========================= */

:root {
  --content-max: 1024px;
  --content-padding-pc: 20px;
  --content-padding-sp: 16px;
  --titlebar-max: 800px;
  --video-width: 560px;
  --video-height: 315px;
  --card-shadow: 0 0 15px -6px rgba(0, 0, 0, 0.45);
  --theme-blue: #004080;
  --theme-lightblue: #F0F8FF;
  --theme-link: navy;
  --theme-link-hover: maroon;
  --theme-hover-bg: #c0c0c0;
  --theme-position: #003371;
  --theme-menutab: #92001B;
  --theme-author-strong: #004080;
  --theme-journal: #555;
}


html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #000;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", sans-serif;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: bottom;
}

/* =========================
   2. 共通レイアウト
========================= */
/* =========================
   Main content wrapper
   日本語版・英語版ともに対応
========================= */
.container,
.centering {
  position: relative;
  max-width: 1024px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 4rem;   /* 通常時 */
  box-sizing: border-box;
}

/* =========================
   Tablet
========================= */

@media screen and (max-width: 768px) {
  .container,
  .centering {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 4rem;
  }

  #scrollArea nav ul {
    padding: 0.3rem 0.5rem 0.1rem;
  }

  #scrollArea h4 {
    padding-bottom: 0.35rem;
  }
}

/* =========================
   Small phones
========================= */

@media screen and (max-width: 480px) {
  .container,
  .centering {
    padding-top: 5rem;
  }

  #scrollArea nav ul {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  #scrollArea h4 {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}

/* =========================
   iPhone SE class (375px)
========================= */

@media screen and (max-width: 375px) {
  .container,
  .centering {
    padding-top: 5rem;
  }
.en-page .centering {
  padding-top: 7rem;
}
  #scrollArea nav ul {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}
.titlebar-wrap {
  max-width: var(--titlebar-max);
  margin: 0 auto;
}

.titlebar-svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* =========================
   3. ユーティリティ
========================= */

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

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

.counter-img {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: bottom;
}

.section-divider {
  margin: 1.5rem 0;
}

.footer-links {
  margin-bottom: 1.5rem;
}

.title-bar {
  margin-top: 0;
}

.Position {
  color: var(--theme-position);
	font-size: 0.9rem;
}

.MenuTab {
  color: var(--theme-menutab);
}

.updated {
  text-align: right;
  margin: 20px 0;
}

ol li::marker {
  font-weight: bold;
}

/* =========================
   4. リンク
========================= */

a {
  color: var(--theme-link);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

a:link {
  color: #000;
}

a:visited {
  color: #333;
}

a:hover:not(:has(img)) {
  color: var(--theme-link-hover);
  background: var(--theme-hover-bg);
}

a:active {
  background: #4682b4;
}

/* =========================
   5. ヘッダー固定部分
========================= */
/* =========================
   Fixed header / scroll area
========================= */

#scrollArea {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #F0F8FF;
  box-sizing: border-box;
  transition: transform 0.5s ease;
}

.hide {
  transform: translateY(-100%);
}

/* =========================
   Header inner layout
========================= */

#scrollArea nav {
  text-align: center;
  margin: 0;
  padding: 0;
}

#scrollArea nav ul {
  margin: 0;
  padding: 0.35rem 0.75rem 0.15rem;
  list-style: none;
  line-height: 1.5;
  font-size: clamp(0.88rem, 0.55rem + 0.8vw, 1.02rem);
}

#scrollArea nav ul li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

#scrollArea h4 {
  margin: 0;
  padding: 0.25rem 0 0.4rem;
  line-height: 1.5;
  font-size: clamp(0.88rem, 0.55rem + 0.8vw, 1.02rem);
  color: #004080;
}

/* =========================
   6. ナビゲーション
========================= */

nav {
  text-align: center;
}

nav ul {
  margin: 0;
  padding: 0.25rem 1em;
  font-size: clamp(0.9rem, 0.5rem + 1vw, 1.1rem);
  font-family: Helvetica, Arial, sans-serif, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ";
}

nav ul li {
  list-style: none;
  display: inline-block;
}

nav ul li.nav-sep {
  margin: 0 0.2em;
  color: #666;
  font-weight: normal;
}

nav a:hover {
  color: var(--theme-link-hover);
  background: var(--theme-hover-bg);
}

.nav-lang {
  margin: 0;
  padding: 0 0 0.25rem;
  font-size: 0.85rem;
}

.nav-current {
  color: gray;
}

/* =========================
   7. 見出し
========================= */

h1,
h2 {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", sans-serif;
  color: var(--theme-blue);
  text-align: center;
}

h4 {
  font-family: Helvetica, Arial, sans-serif, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ";
  font-size: clamp(1.0rem, 0.5rem + 1vw, 1.1rem);
  color: var(--theme-blue);
}

/* =========================
   8. テーブル
========================= */

table {
  border-collapse: collapse;
  margin: 0 auto;
  padding: 0;
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", sans-serif;
  box-shadow: var(--card-shadow);
  background: #fff;
}

table tr {
  background-color: #fff;
}

table tbody tr:hover {
  background-color: #f5f4f0;
}

table th,
table td {
  padding: 0.35em 1em;
  border-bottom: 1px solid #eee;
  font-family: inherit;
}

table thead th {
  font-size: 0.85em;
  padding: 1em;
}

table thead tr {
  background-color: var(--theme-lightblue);
  color: #000;
}

table tbody th {
  text-align: left;
  font-size: 0.8em;
}

/* =========================
   9. スライダー
========================= */

.slider {
  max-width: var(--content-max);
  margin: 0 auto;
}

[id^="img"] {
  display: none;
}

.bx-wrapper {
  margin: 0 !important;
  -moz-box-shadow: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  border: none !important;
  background: none !important;
}

/* =========================
   10. Publications
========================= */

#results {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.article {
  border-bottom: 1px solid #ccc;
  padding: 0.75rem 0;
  transition: background-color 0.3s ease;
}

.article:hover {
  background-color: #f2f8ff;
}

.title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.title a {
  color: #0066cc;
}

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

.authors {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.authors strong {
  color: var(--theme-author-strong);
}

.journal {
  font-size: 0.95rem;
  color: var(--theme-journal);
}

.journal-name {
  font-weight: bold;
  font-style: italic;
}

.pub-year {
  font-weight: bold;
}

/* =========================
   11. Tooltip
========================= */

#tooltip {
  position: absolute;
  background: #fff;
  border: 1px solid #aaa;
  padding: 1rem;
  max-width: 400px;
  font-size: 0.9rem;
  z-index: 2000;
  display: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* =========================
   12. Countdown / Clapper
========================= */

#countdown,
#clapper {
  text-align: center;
  margin: 20px 0;
}

#clapper {
  display: none;
}

/* =========================
   13. フッター
========================= */

footer {
  text-align: center;
  padding: 5px;
  margin-top: 2rem;
  background-color: var(--theme-lightblue);
  color: #000;
}

/* =========================
   14. Labmates の表示
========================= */

.labmates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.labmates-item {
  box-sizing: border-box;
  padding: 10px;
  border: 0 !important;
  box-shadow: var(--card-shadow);
  outline: none !important;
  background: #fff;
}

/* =========================
   15. 心エコー / 動画
========================= */

.echo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.echo-item {
  width: 246px;
  border: 1px solid #ddd;
  padding: 6px;
  box-sizing: border-box;
  box-shadow: var(--card-shadow);
  background: #fff;
}

.echo video {
  width: 100%;
  height: auto;
}

.video-container {
  position: relative;
  cursor: pointer;
}

.video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: none;
  display: none;
}

.youtube {
  position: relative;
}

.youtube iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}

/* =========================
   16. Page Top（猫）
========================= */

.pagetop {
  position: fixed;
  bottom: -200px;
  z-index: 3000;
  transition: bottom 0.3s ease-out;
  right: max(
    20px,
    calc((100vw - var(--content-max)) / 2 + 30px)
  );
}

.pagetop.is-active {
  bottom: 30px;
}

/* =========================
   17. レスポンシブ 
========================= */

/* iPad Mini 幅（744px）以下 */
@media screen and (max-width: 743px) {

  #results {
    padding-left: 16px;
    padding-right: 16px;
  }

  .responsive-table {
    width: 100%;
  }

  .labmates-item {
    width: 100%;
  }

  .article {
    padding: 0.5rem 0;
  }

  .video-container {
    width: 100%;
    height: auto;
  }

  .youtube {
    width: 100%;
    padding-top: 56.25%;
  }

  .pagetop {
    right: 20px;
  }
}

/* =========================
   18. レスポンシブ ― 744px 以上
========================= */

@media screen and (min-width: 744px) {
	.responsive-table {
    width: 49%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .labmates-item {
    width: 49%;
  }

  .video-container {
    width: var(--video-width);
    height: var(--video-height);
  }

  .youtube {
    width: var(--video-width);
    height: var(--video-height);
  }
}