/*
Theme Name: Lightning Child
Template: lightning
Text Domain: lightning-child
*/

/* 活動報告記事「第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;
  }
}

/* ==================================================
   サイト全体：文字色・フォーム視認性調整
   対象：Lightning Child
================================================== */

:root {
  --jsb-text: #303840;
  --jsb-text-strong: #202830;
  --jsb-text-muted: #596672;
  --jsb-link: #075a9c;
  --jsb-link-hover: #003f70;
  --jsb-form-border: #8d98a3;
  --jsb-form-focus: #075a9c;
}

/* サイト全体の基本文字色 */
body {
  color: var(--jsb-text);
}

/* 本文・一覧・ウィジェット */
.site-body,
.site-body-container,
.main-section,
.entry-body,
.entry-content,
.wp-block-post-content,
.vk_post_body,
.vk_post_excerpt,
.widget,
.widget-area {
  color: var(--jsb-text);
}

/* 本文内の基本テキスト */
.entry-body p,
.entry-body li,
.entry-body dt,
.entry-body dd,
.entry-content p,
.entry-content li,
.entry-content dt,
.entry-content dd,
.wp-block-post-content p,
.wp-block-post-content li,
.main-section p,
.main-section li,
.vk_post_body p,
.vk_post_body li,
.widget p,
.widget li,
table,
th,
td {
  color: inherit;
}

/* 本文内の見出し */
.entry-body h1,
.entry-body h2,
.entry-body h3,
.entry-body h4,
.entry-body h5,
.entry-body h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6,
.main-section h1,
.main-section h2,
.main-section h3,
.main-section h4,
.main-section h5,
.main-section h6,
.entry-title {
  color: var(--jsb-text-strong);
}

/* 日付・投稿情報・補足情報 */
.entry-meta,
.entry-meta-data-list,
.vk_post_date,
.vk_post_author,
.postList_date,
.post-date,
.published,
.updated,
.text-muted,
small {
  color: var(--jsb-text-muted);
}

/* パンくず */
.breadcrumb,
.breadcrumb a,
.breadcrumb span,
.vk_breadcrumb,
.vk_breadcrumb a,
.vk_breadcrumb span {
  color: #4f5b66;
}

/* 本文内の通常リンク */
.entry-body a:not(.btn):not(.wp-block-button__link),
.entry-content a:not(.btn):not(.wp-block-button__link),
.wp-block-post-content a:not(.btn):not(.wp-block-button__link),
.main-section a:not(.btn):not(.wp-block-button__link) {
  color: var(--jsb-link);
  text-underline-offset: 3px;
}

.entry-body a:not(.btn):not(.wp-block-button__link):hover,
.entry-content a:not(.btn):not(.wp-block-button__link):hover,
.wp-block-post-content a:not(.btn):not(.wp-block-button__link):hover,
.main-section a:not(.btn):not(.wp-block-button__link):hover {
  color: var(--jsb-link-hover);
}

/* 「関西支部について」ページ内の補足色も少し濃くする */
body.page-id-6906 .branch-page {
  --jsb-muted: var(--jsb-text-muted);
}

/* Contact Form 7 */
.wpcf7 {
  color: var(--jsb-text);
  font-size: 16px;
  line-height: 1.8;
}

.wpcf7 label {
  display: block;
  color: var(--jsb-text-strong);
  font-weight: 600;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  color: var(--jsb-text-strong);
  background-color: #fff;
  border: 1px solid var(--jsb-form-border);
  border-radius: 4px;
  font-size: 16px;
}

.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #65717c;
  opacity: 1;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--jsb-form-focus);
  outline: 2px solid rgba(7, 90, 156, 0.18);
  outline-offset: 1px;
}

.wpcf7 .text-danger {
  color: #a61b1b;
  font-weight: 700;
}

.wpcf7 label small:not(.text-danger) {
  color: var(--jsb-text-muted);
  font-weight: 400;
}

/* プライバシーポリシー同意欄 */
.wpcf7 .contact-consent {
  margin: 28px 0;
  padding: 20px;
  color: var(--jsb-text);
  background: #f7fafc;
  border: 1px solid #d2dce5;
  border-radius: 6px;
}

.wpcf7 .contact-consent p {
  margin: 0 0 12px;
}

.wpcf7 .contact-consent .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .contact-consent a {
  color: var(--jsb-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Turnstileと送信ボタン周辺 */
.wpcf7 .cf-turnstile,
.wpcf7 [data-sitekey] {
  margin: 20px 0;
}

.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
  font-weight: 700;
}

/* スマホ */
@media (max-width: 767px) {
  .wpcf7 {
    font-size: 15px;
  }

  .wpcf7 .contact-consent {
    padding: 16px;
  }
}

/* ===== サイト全体：文字色・フォーム視認性調整 ここまで ===== */
