@charset "utf-8";

/* =====================================================
   全体を日本語ゴシック体に統一
   Lightningはデフォルトで日本語フォントを明示しないため、
   環境によっては本文・見出しが明朝でフォールバック表示される。
   Noto Sans JP を軸にゴシックを明示し、全環境で統一する。
   ===================================================== */
body,
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.site-title, .site-description,
.entry-title, .entry-body, .entry-content,
.vk_heading, .vk_heading_title, .vk_heading_subtext,
.vk_post_name, .card-intro_title, .box-title,
.gnav, .global-nav, .sub-nav,
input, button, select, textarea {
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif !important;
}

/* 英語サブタイトルは意図どおり Roboto Flex（ゴシック）を維持 */
.en-sub-title {
	font-family: "Roboto Flex", "Noto Sans JP", sans-serif !important;
}

/* =====================================================
   ヘッダーロゴのレスポンシブ最適化
   ロゴ画像は 300×63px（等倍）。PC〜スマホで、はみ出し・
   ナビの折り返しが起きないよう、画面幅に応じて縮小する。
   ===================================================== */
.block-site-header .custom-logo,
.wp-block-site-logo img,
.custom-logo {
	max-width: 100%;
	height: auto;
}
/* タブレット幅：ロゴを縮小してナビの折り返しを防ぐ */
@media (max-width: 991px) {
	.custom-logo { width: 230px; }
}
/* スマートフォン幅：ハンバーガーと並んでも収まるサイズに */
@media (max-width: 575px) {
	.custom-logo { width: 170px; }
}


/* 固定ページ・活動報告の追加スタイル（復旧: ルートstyle.cssから移設） */
/* 活動報告記事「第78回 日本細菌学会 関西支部総会・学術講演会 開催報告」画像ギャラリー */
.meeting-report-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 48px;
}

.meeting-report-gallery figure {
  margin: 0;
}

.meeting-report-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.meeting-report-gallery + h2 {
  margin-top: 0;
}

.meeting-report-bottom-space {
  display: block;
  clear: both;
  height: 72px;
}

@media (max-width: 767px) {
  .meeting-report-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 40px;
  }

  .meeting-report-bottom-space {
    height: 56px;
  }
}

/* 固定ページ「日本細菌学会関西支部について」 page-id-6906: ページ上部タイトル背景 */
body.page-id-6906 .page-header {
  min-height: 250px;
  display: flex;
  align-items: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'%3E%3Cpath d='M-120 55 C130 155 250 -20 470 72 C665 153 765 198 955 85 C1115 -10 1230 -25 1560 92' fill='none' stroke='%23ffffff' stroke-opacity='.14' stroke-width='58' stroke-linecap='round'/%3E%3Cpath d='M-160 235 C95 120 245 280 455 192 C640 114 735 50 900 158 C1060 262 1220 250 1570 112' fill='none' stroke='%230b6a9d' stroke-opacity='.32' stroke-width='74' stroke-linecap='round'/%3E%3Cpath d='M-90 310 C165 210 340 332 560 232 C740 150 880 20 1085 94 C1240 150 1350 205 1530 162' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='98' stroke-linecap='round'/%3E%3Cpath d='M1050 -110 C1130 5 1135 125 1090 302' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='88' stroke-linecap='round'/%3E%3C/svg%3E") center / cover no-repeat,
    linear-gradient(135deg, #064b82 0%, #07375f 100%) !important;
}

body.page-id-6906 .page-header::before,
body.page-id-6906 .page-header::after {
  display: none !important;
}

body.page-id-6906 .page-header h1,
body.page-id-6906 .page-header .page-header-title,
body.page-id-6906 .page-header_pageTitle {
  color: #fff !important;
  text-shadow: none !important;
}

/* 固定ページ「日本細菌学会関西支部について」: パンくずはテーマ標準のまま表示 */
body.page-id-6906 .breadcrumb,
body.page-id-6906 .breadcrumb-list,
body.page-id-6906 .vk_breadcrumb {
  display: block;
}

/* 固定ページ「日本細菌学会関西支部について」: 本文全体 */
body.page-id-6906 .branch-page {
  --jsb-blue: #064b82;
  --jsb-blue-dark: #07375f;
  --jsb-cyan: #2aa7b8;
  --jsb-ink: #1f2933;
  --jsb-muted: #66788a;
  --jsb-line: #d8e3ec;
  --jsb-white: #ffffff;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(42, 167, 184, .12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

body.page-id-6906 .branch-page * {
  box-sizing: border-box;
}

/* 固定ページ「日本細菌学会関西支部について」: ページ内アンカーメニュー */
body.page-id-6906 .branch-anchor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1040px, calc(100% - 40px));
  margin: 56px auto 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border: 1px solid var(--jsb-line);
  border-radius: 8px;
  background: var(--jsb-line);
  box-shadow: 0 18px 40px rgba(6, 75, 130, .12);
}

body.page-id-6906 .branch-anchor a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 16px;
  color: var(--jsb-blue-dark);
  text-decoration: none;
  font-weight: 700;
  background: var(--jsb-white);
}

/* 固定ページ「日本細菌学会関西支部について」: 各セクション共通 */
body.page-id-6906 .branch-section {
  padding: 68px 20px;
}

body.page-id-6906 .branch-section:first-of-type {
  padding-top: 56px;
}

body.page-id-6906 .branch-section:nth-of-type(even) {
  background: var(--jsb-white);
}

body.page-id-6906 .branch-section-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
}

body.page-id-6906 .branch-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 28px;
}

body.page-id-6906 .branch-heading-label {
  color: var(--jsb-cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.page-id-6906 .branch-heading h2 {
  margin: 0;
  padding-bottom: 16px;
  font-size: 28px;
  line-height: 1.45;
  border-bottom: 3px solid var(--jsb-blue);
}

/* 固定ページ「日本細菌学会関西支部について」: 支部概要 */
body.page-id-6906 .branch-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 32px;
  align-items: stretch;
}

body.page-id-6906 .branch-copy {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: center;
  padding: 38px 42px;
  border: 1px solid var(--jsb-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

body.page-id-6906 .branch-copy p {
  margin: 0;
  font-size: 16px;
}

body.page-id-6906 .branch-copy p + p {
  margin-top: 18px;
}

body.page-id-6906 .branch-facts {
  display: grid;
  gap: 16px;
}

body.page-id-6906 .branch-fact {
  display: flex;
  min-height: 98px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 26px;
  border-left: 4px solid var(--jsb-cyan);
  border-radius: 6px;
  background: var(--jsb-white);
  box-shadow: 0 10px 26px rgba(6, 75, 130, .08);
}

body.page-id-6906 .branch-fact dt {
  margin: 0 0 4px;
  color: var(--jsb-muted);
  font-size: 13px;
  font-weight: 700;
}

body.page-id-6906 .branch-fact dd {
  margin: 0;
  color: var(--jsb-blue-dark);
  font-weight: 700;
}

/* 固定ページ「日本細菌学会関西支部について」: 役員情報テーブル */
body.page-id-6906 .officer-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--jsb-line);
  border-radius: 8px;
  background: var(--jsb-white);
  box-shadow: 0 14px 34px rgba(6, 75, 130, .08);
}

body.page-id-6906 .officer-table th,
body.page-id-6906 .officer-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--jsb-line);
  vertical-align: top;
}

body.page-id-6906 .officer-table th {
  width: 20%;
  color: var(--jsb-blue-dark);
  background: #eef6fa;
  font-weight: 700;
}

body.page-id-6906 .officer-table td:first-of-type {
  width: 22%;
  font-weight: 700;
  color: var(--jsb-blue-dark);
}

body.page-id-6906 .officer-table thead th {
  color: var(--jsb-white);
  background: var(--jsb-blue);
}

body.page-id-6906 .officer-name {
  display: block;
  color: var(--jsb-blue-dark);
  font-weight: 700;
  line-height: 1.45;
}

body.page-id-6906 .officer-kana {
  display: block;
  margin-top: 3px;
  color: var(--jsb-muted);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .04em;
}

/* 固定ページ「日本細菌学会関西支部について」: 会則全文 */
body.page-id-6906 .rules-lead {
  margin: 0 0 24px;
  color: var(--jsb-muted);
}

body.page-id-6906 .rules-full {
  padding: 34px;
  border: 1px solid var(--jsb-line);
  border-radius: 8px;
  background: var(--jsb-white);
  box-shadow: 0 14px 34px rgba(6, 75, 130, .08);
}

body.page-id-6906 .rules-title {
  margin: 0 0 24px;
  padding-bottom: 16px;
  color: var(--jsb-blue-dark);
  font-size: 22px;
  line-height: 1.5;
  border-bottom: 1px solid var(--jsb-line);
}

body.page-id-6906 .rules-article {
  padding: 22px 0;
  border-bottom: 1px solid var(--jsb-line);
}

body.page-id-6906 .rules-article:first-of-type {
  padding-top: 0;
}

body.page-id-6906 .rules-article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.page-id-6906 .rules-article h3 {
  margin: 0 0 10px;
  color: var(--jsb-blue-dark);
  font-size: 18px;
  line-height: 1.5;
}

body.page-id-6906 .rules-article p {
  margin: 0;
}

body.page-id-6906 .rules-article p + p {
  margin-top: 8px;
}

body.page-id-6906 .rules-article ol {
  margin: 8px 0 0;
  padding-left: 1.4em;
}

body.page-id-6906 .rules-article li {
  margin: 4px 0;
}

body.page-id-6906 .branch-bottom-space {
  height: 64px;
}

/* スマホ表示: 固定ページ「日本細菌学会関西支部について」 */
@media (max-width: 767px) {
  body.page-id-6906 .page-header {
    min-height: 200px;
    text-align: center;
  }

  body.page-id-6906 .branch-anchor {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
  }

  body.page-id-6906 .branch-section {
    padding: 48px 16px;
  }

  body.page-id-6906 .branch-section:first-of-type {
    padding-top: 42px;
  }

  body.page-id-6906 .branch-heading,
  body.page-id-6906 .branch-overview {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.page-id-6906 .branch-copy,
  body.page-id-6906 .rules-full {
    padding: 24px;
  }

  body.page-id-6906 .branch-copy,
  body.page-id-6906 .branch-fact {
    min-height: 0;
  }

  body.page-id-6906 .officer-table,
  body.page-id-6906 .officer-table tbody,
  body.page-id-6906 .officer-table tr,
  body.page-id-6906 .officer-table th,
  body.page-id-6906 .officer-table td {
    display: block;
    width: 100%;
  }

  body.page-id-6906 .officer-table thead {
    display: none;
  }

  body.page-id-6906 .officer-table tr {
    border-bottom: 1px solid var(--jsb-line);
  }

  body.page-id-6906 .officer-table tr:last-child {
    border-bottom: 0;
  }

  body.page-id-6906 .officer-table th {
    border-bottom: 0;
    padding: 16px 18px 8px;
  }

  body.page-id-6906 .officer-table td {
    border-bottom: 0;
    padding: 6px 18px 16px;
  }

  body.page-id-6906 .officer-table tbody th::before,
  body.page-id-6906 .officer-table tbody td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--jsb-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
  }

  body.page-id-6906 .officer-table tbody th::before {
    content: "役職";
  }

  body.page-id-6906 .officer-table tbody td:first-of-type::before {
    content: "氏名";
  }

  body.page-id-6906 .officer-table tbody td:last-of-type::before {
    content: "所属";
  }

  body.page-id-6906 .officer-table td:first-of-type {
    width: 100%;
    padding-bottom: 8px;
  }

  body.page-id-6906 .officer-table td:last-of-type {
    padding-top: 12px;
  }
}


/* 共通ボタン: blob-btn（トップ等の「もっとみる」ボタン） */
.buttons {
  width: 100%;
  margin: 30px auto;
  text-align: center;
}

.blob-btn {
  position: relative;
  z-index: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  max-width: 100%;
  min-height: 56px;
  padding: 15px 44px;
  overflow: hidden;
  border: 2px solid #064b82;
  border-radius: 4px;
  background: #064b82;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

.blob-btn.is-blue {
  border-color: #064b82;
  background: #064b82;
}

.blob-btn:hover,
.blob-btn:focus-visible {
  color: #064b82 !important;
  background: #fff;
  text-decoration: none !important;
}

.blob-btn__inner {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob-btn__blobs {
  position: relative;
  display: block;
  height: 100%;
  filter: url("#goo");
}

.blob-btn__blob {
  position: absolute;
  top: 2px;
  width: 25%;
  height: 100%;
  border-radius: 100%;
  background: #fff;
  transform: translate3d(0, 150%, 0) scale(1.4);
  transition: transform .45s ease;
}

.blob-btn__blob:nth-child(1) { left: 0%; transition-delay: 0s; }
.blob-btn__blob:nth-child(2) { left: 25%; transition-delay: .06s; }
.blob-btn__blob:nth-child(3) { left: 50%; transition-delay: .12s; }
.blob-btn__blob:nth-child(4) { left: 75%; transition-delay: .18s; }

.blob-btn:hover .blob-btn__blob,
.blob-btn:focus-visible .blob-btn__blob {
  transform: translate3d(0, 0, 0) scale(1.4);
}

@media (max-width: 575px) {
  .blob-btn {
    width: 100%;
    min-width: 0;
    padding: 14px 24px;
    font-size: 15px;
  }
}

/* ヘッダーナビゲーション: サブメニューの通常時・ホバー時 */
.block-site-header .wp-block-navigation__submenu-container,
.site-header .wp-block-navigation__submenu-container {
  min-width: 200px;
  border: 1px solid #e5edf4 !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(6, 75, 130, .12);
}

.block-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  padding: 12px 16px;
  color: #064b82 !important;
  background: #fff !important;
  line-height: 1.5;
  text-decoration: none !important;
}

.block-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.block-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible,
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
  color: #fff !important;
  background: #064b82 !important;
}

.block-site-header .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content,
.block-site-header .wp-block-navigation__submenu-container .current-menu-ancestor > .wp-block-navigation-item__content,
.site-header .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content,
.site-header .wp-block-navigation__submenu-container .current-menu-ancestor > .wp-block-navigation-item__content {
  color: #fff !important;
  background: #064b82 !important;
}

/* トップページNews一覧: 日付・カテゴリ・タイトルの余白調整 */
body.home .vk_posts-layout-postListText .postListText {
  display: grid;
  grid-template-columns: 132px 150px minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  padding: 12px 0 13px;
  border-bottom: 1px dotted #d6dde5;
}

body.home .vk_posts-layout-postListText .postListText_date {
  white-space: nowrap;
  line-height: 1.5;
}

body.home .vk_posts-layout-postListText .postListText_singleTermLabel {
  display: block;
  width: 100%;
  margin: 0;
}

body.home .vk_posts-layout-postListText .postListText_singleTermLabel_inner {
  display: block;
  width: 100%;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

body.home .vk_posts-layout-postListText .postListText_title {
  min-width: 0;
  margin: 0;
  line-height: 1.65;
}

body.home .vk_posts-layout-postListText .postListText_title a {
  display: inline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  body.home .vk_posts-layout-postListText .postListText {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 14px 0 16px;
  }

  body.home .vk_posts-layout-postListText .postListText_date {
    display: block;
  }

  body.home .vk_posts-layout-postListText .postListText_singleTermLabel {
    width: min(180px, 72%);
  }

  body.home .vk_posts-layout-postListText .postListText_title {
    line-height: 1.75;
  }
}
/* スマホ表示: 横スライドアニメーションの余白対策 */
@media (max-width: 767px) {
  body.home .vk_animation-slide-right,
  body.home .vk_animation-slide-left,
  body.home .vk_animation-slide-right.vk_animation-active,
  body.home .vk_animation-slide-left.vk_animation-active {
    position: static !important;
    transform: none !important;
    translate: 0 0 !important;
    opacity: 1 !important;
  }
}
/* 記事共通: 本文・概要表・末尾余白 */
.article-content,
.jsb-entry {
  padding-bottom: 72px;
}

.article-content p,
.jsb-entry p {
  line-height: 1.9;
}

.article-content p + p,
.jsb-entry p + p {
  margin-top: 1.4em;
}

.article-info-table,
.jsb-info-table {
  width: 100%;
  margin: 34px 0 36px;
  border-collapse: collapse;
  border: 1px solid #d8e3ec;
  background: #fff;
}

.article-info-table th,
.article-info-table td,
.jsb-info-table th,
.jsb-info-table td {
  padding: 18px 22px;
  border: 1px solid #d8e3ec;
  line-height: 1.8;
  vertical-align: top;
}

.article-info-table th,
.jsb-info-table th {
  width: 26%;
  color: #07375f;
  font-weight: 700;
  background: #f3f8fb;
  text-align: center;
  white-space: nowrap;
}

.article-info-table td a,
.jsb-info-table td a {
  text-underline-offset: 3px;
}

.article-bottom-space {
  display: block;
  clear: both;
  height: 72px;
}

.single-post .entry-body,
.single-activities .entry-body {
  padding-bottom: 72px;
}

@media (max-width: 767px) {
  .article-content,
  .jsb-entry {
    padding-bottom: 56px;
  }

  .article-info-table,
  .jsb-info-table {
    margin: 28px 0 32px;
  }

  .article-info-table th,
  .article-info-table td,
  .jsb-info-table th,
  .jsb-info-table td {
    display: block;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
  }

  .article-info-table th,
  .jsb-info-table th {
    border-bottom: 0;
  }

  .article-bottom-space {
    height: 56px;
  }

  .single-post .entry-body,
  .single-activities .entry-body {
    padding-bottom: 56px;
  }
}



/* 記事共通: 本文内リストの余白・中点位置 */
.entry-body ul,
.entry-body ol,
.article-content ul,
.article-content ol,
.jsb-entry ul,
.jsb-entry ol {
  margin: 1.1em 0 1.8em;
  padding-left: 1.45em;
  list-style-position: outside;
}

.entry-body li,
.article-content li,
.jsb-entry li {
  margin: 0 0 0.45em;
  padding-left: 0.2em;
  line-height: 1.9;
}

.entry-body li::marker,
.article-content li::marker,
.jsb-entry li::marker {
  color: #07375f;
  font-size: 0.9em;
}

.entry-body li > a > br:first-child,
.entry-body li > a > br:last-child,
.article-content li > a > br:first-child,
.article-content li > a > br:last-child,
.jsb-entry li > a > br:first-child,
.jsb-entry li > a > br:last-child {
  display: none;
}
