@charset "UTF-8";/*AMED研究倫理・社会共創推進プログラム*/

body{
	font-family: "Zen Kaku Gothic Antique", sans-serif;
	font-weight: 500;
	font-style: normal;
}

/* =============================
  見出し・本文の文字サイズ調整
============================= */

/*  PC表示（幅641px以上） */


h1.h1-tit{
	font-size: 40px;
	font-weight: 700!important;
	margin-top: 110px!important;
	color: white;
	text-shadow: 0px 0px 7px rgba(0, 0, 0, 0.9);
}

h2.title2 {
  font-size: 32px;
  font-weight: 600;
  color: #465BD1;
}
h2.title2-s {
  font-size: 21px;
}


h3.title3 {
  font-size: 27px;
  font-weight: 600;
  border: none!important;
}
h4.title4 {
  font-size: 21px;
}

h4.title4-blueline{
  font-size: 21px;
  padding: 0em 0.5em;
  background: transparent;/*背景透明に*/
  border-left: solid 5px #8C9DFC;/*左線*/
}

}
.text {
  font-size: 18px;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* 📱 タブレット表示（1024px以下） */
@media (max-width: 1023px) {
	
  h1.h1-tit{
	margin-top: auto!important;
	font-size: 32px;
	font-weight: 700!important;
	color: white;
	text-shadow: 0px 0px 7px rgba(0, 0, 0, 0.9);
}
  h2.title2 {
    font-size: 26px;
  }
  h2.title2-s {
    font-size: 18px;
  }
  h3.title3 {
    font-size: 22px;
  }
  h4.title4 {
    font-size: 20px;
  }
	
  h4.title4-blueline {
	font-size: 20px;
	font-weight: 700;
    padding: 0em 0.5em;/*上下 左右の余白*/
	background: transparent;/*背景透明に*/
    border-left: solid 5px #8C9DFC!important;/*左線*/
}
}
  .text {
    font-size: 16px;
  }
}

/* =============================
  共通設定
============================= */

/*--極細区切り線--*/
.kugiri-1{
  height: 1px!important;
  border: none;
  border-top: 1px solid!important;
}

/*--左右に10pxの余白を入れる--*/
.space-10{
  margin-left: 10px!important;
  margin-right: 10px!important;
}

/* =============================
  グロナビ周り
============================= */

/*ヘッダーの背景カラーとタイトルの文字サイズ
———————————————– */

.l-header{
background-color:rgba( 255, 255, 255, 0.7 );
}
@media (min-width: 1023px) {
.c-site-branding__title{
	font-size: 18px;
	font-weight: 700!important;
	padding-left: 60px;
}
}

@media (max-width: 1022px) {
.c-site-branding__title{
	font-size: 18px;
	font-weight: 700!important;
}
}


/*--------------------------------
 グローバルナビ（PC用）文字サイズ調整＋アクティブページ下線
--------------------------------*/
.p-global-nav .c-navbar__item a span {
  font-size: 18px;        /* 通常より一回り大きく */
  font-weight: 600;       /* 少し太字で見やすく */
  letter-spacing: 0.5px;  /* 少し文字間をあけて上品に */
  position: relative;     /* 下線用に必要 */
  transition: all 0.3s ease;
}

/* ホバー時のスタイル（色変更などはお好みで） */
.p-global-nav .c-navbar__item a:hover span {
  opacity: 0.8;
}

/* 現在表示中のページに下線を表示 */
.p-global-nav .c-navbar__item.current-menu-item a span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;            /* テキストの下に配置（調整可） */
  width: 100%;
  height: 1px;             /* 線の太さ */
  background-color: #465BD1; /* 線の色（変更可） */
  border-radius: 1px;
}

/* ホバー時のアニメーションにも対応（下線が自然に見えるように） */
.p-global-nav .c-navbar__item a:hover span::after {
  background-color: #465BD1;
  opacity: 0.8;
}

/* スマホやタブレットでは文字が大きくなりすぎないよう調整 */
@media (max-width: 1023px) {
  .p-global-nav .c-navbar__item a span {
    font-size: 16px;
  }
}



/*--------------------------------
 右上「お問い合わせ」ボタン
--------------------------------*/
.my-header-content {
  position: absolute;
  top: 0;
  left: 50%;                 /* 画面中央基準にして */
  transform: translateX(-50%);/* 中央寄せ */
  z-index: 999;
  width: 100%;
  max-width: 1200px;         /* これ以上は広がらない */
  padding: 15px 25px;
  /* right: 0; ← これは外します */
}

.my-header-content__button {
  position: absolute;
  right: 25px; /* ← 常に右端に配置 */
  top: 15px;
}

.my-header-content__button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #B7912a;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 40px; /* ← 横幅＋20px広げた */
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.my-header-content__button a:hover {
  opacity: 0.9;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* メールアイコンの調整 */
.my-header-content__button img {
  width: 22px;
  height: auto;
  margin-right: 8px;
  vertical-align: middle;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .my-header-content {
    max-width: 100%;
    padding: 10px 15px;
  }

  .my-header-content__button a {
    font-size: 14px;
    padding: 10px 30px;
  }

  .my-header-content__button img {
    width: 20px;
    margin-right: 6px;
  }
}

/*=======↑ここまでヘッダー===========*/


/*================================
YOAST SEOのパンクズ設定
===============================*/
/* Yoast パンくず（安全版） */
.breadcrumb-wrap {
  margin: 8px 0 24px;
  font-size: 14px !important;
  color: #555 !important;
}

.breadcrumb-wrap a {
  color: var(--accent-color) !important;
  text-decoration: none !important;
  font-size: 14px !important;
}

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

.breadcrumb-wrap .separator {
  margin: 0 0.4em;
}





/*================================
 ボタン設定
=================================*/

/*======ボタン＞（bt-arrow）======*/

.bt-arrow .smb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* 文字と矢印の間のスペース */
  background-color: #465BD1; /* 任意の背景色 */
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  padding: 8px 24px;
  transition: background-color 0.3s ease;
}

/* 矢印画像を追加 */
.bt-arrow .smb-btn::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("https://embryo-elsi.jp/wp-content/uploads/2025/10/icon-arrow.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: 3px; /* テキストとの間隔 */
}

/* ホバー時の効果（色を少し明るく） */
.bt-arrow .smb-btn:hover {
  background-color: #323F87;
}


/*======ボタン▶︎（bt-triangle-blue）======*/

.bt-triangle-blue .smb-btn {

  align-items: center;
  justify-content: center;
  gap: 4px; /* 文字と矢印の間のスペース */
  background-color: #EFF0FF; /* 任意の背景色 */
  color: #465BD1;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  padding-top: 5px;
  padding-bottom: 5px;
  transition: background-color 0.3s ease;
}

/* 三角画像を追加 */
.bt-triangle-blue .smb-btn::after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background-image: url("https://embryo-elsi.jp/wp-content/uploads/2025/10/icon-triangle-blue.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: 3px; /* テキストとの間隔 */
}

/* ホバー時の効果（色を少し暗く） */
.bt-triangle-blue .smb-btn:hover {
  background-color: #B4B8EE;
}

/*======ボタン▶︎（bt-triangle-white）======*/

.bt-triangle-white .smb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* 文字と矢印の間のスペース */
  background-color: #465BD1; /* 任意の背景色 */
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* 矢印画像を追加 */
.bt-triangle-white .smb-btn::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("https://embryo-elsi.jp/wp-content/uploads/2025/10/icon-triangle-white.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: 3px; /* テキストとの間隔 */
}

/* ホバー時の効果（色を少し明るく） */
.bt-triangle-white .smb-btn:hover {
  background-color: #323F87;
}

/*======黄色ボタン▶︎（bt-triangle-black）======*/

.bt-triangle-black .smb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* 文字と矢印の間のスペース */
  font-weight: bold;
  text-decoration: none;
}

/* 矢印画像を追加 */
.bt-triangle-black .smb-btn::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("https://embryo-elsi.jp/wp-content/uploads/2025/10/icon-triangle-black.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: 3px; /* テキストとの間隔 */
  margin-top: 2px;
}

/* ホバー時の効果（色を少し暗く） */
.bt-triangle-black .smb-btn:hover {
  background-color: #CEB704;
}


/* =============================
  テーブル設定　Flexible Table Blockプラグイン補助設定
============================= */
/* 768px以下は横スクロールを確実に許可 */
.wp-block-flexible-table-block-table.is-scroll-on-mobile {
  overflow-x: auto;
}


/* =============================
  TOPページ
============================= */

/* ===== TOP：NEWS（最近の投稿）だけに適用 ===== */
.smb-box .snow-monkey-recent-posts {
  /* スコープ用の親セレクタ（この箱の中だけに効かせる） */
}

/* 1) クリックできないように（リンク無効化） */
.smb-box .snow-monkey-recent-posts a {
  pointer-events: none;      /* クリック無効 */
  cursor: default;           /* マウスカーソルを通常に */
  text-decoration: none;     /* 下線等も無効化 */
  color: inherit;            /* 色はそのまま */
}

/* 2) 行間（縦のスペース）をギュッと詰める */
.smb-box .snow-monkey-recent-posts .c-entries--text .c-entries__item {
  padding: 2px 0;           /* デフォルトより小さめに */
  border-bottom: 1px solid rgba(0,0,0,.14);
}

/* Snow Monkey の記事要素の縦スペースを圧縮 */
.smb-box .snow-monkey-recent-posts .c-entry-summary {
  row-gap: .2rem;            /* グリッドの行間（テーマがgridのため） */
}

/* タイトル周りの余白縮小＆読みやすさ維持 */
.smb-box .snow-monkey-recent-posts .c-entry-summary__header { margin: 0; }
.smb-box .snow-monkey-recent-posts .c-entry-summary__title {
  margin: 0;
  line-height: 1.35;         /* 行高を詰める */
  font-weight: 700;
}

/* 余分な要素は非表示（抜粋は出さない前提ならON） */
.smb-box .snow-monkey-recent-posts .c-entry-summary__content { display: none; }

/* 左側のカテゴリ等の余白を最小に（出ていれば） */
.smb-box .snow-monkey-recent-posts .c-entry-summary__figure { margin: 0; }


/* ─ NEWS内：日付を太字に ─ */
.smb-box .snow-monkey-recent-posts .c-meta__item--published time {
  font-weight: 700;
  display: inline-block;
  vertical-align: middle; /* テキスト位置を中央寄せ */
  line-height: 1;         /* 行間を詰める */
  margin-top: -1px;       /* 微調整（必要なら -2px〜0px で調整） */
}


/*===============================
研究支援ページ
=================================*/

/*--ノートのような罫線--*/
.hr-note{
	height: 1px;
	border: none;
	padding: 0!important;
	margin-bottom: 0px!important;
	border-top: 1px #465BD1 solid !important;
}

/* ▼リスト先頭アイコンを指定画像に差し替え ▼ */
.list-icon-triangle .smb-list__icon {
  position: relative;
  display: inline-block;
  width: 18px; /* 画像の横幅を調整 */
  height: 18px; /* 画像の高さを調整 */
  background: url('https://embryo-elsi.jp/wp-content/uploads/2025/10/icon-triangle-blue.png')
    no-repeat center center;
  background-size: contain;
  margin-right: 8px; /* テキストとの間隔 */
  margin-top: 10px;
  vertical-align: middle;
  
}

/* 元のFont Awesomeアイコンを非表示にする */
.list-icon-triangle .smb-list__icon svg {
  display: none !important;
}


/*===============================
NEWSページ
=================================*/

/* ──────────────────────────────
   NEWS一覧ページ用スタイル（最終版）
────────────────────────────── */

/* 各項目の下線 */
.c-entries--text .c-entries__item {
  border-bottom: 1px solid rgba(0,0,0,.18);
  padding: 0.8rem 0;
}

/* 日付＋タイトルを同じ行に配置 */
.news-row {
  display: flex;
  align-items: baseline; /* 下揃え */
  gap: 2rem;             /* 日付とタイトルの間隔 */
  flex-wrap: wrap;       /* 狭い画面で折り返し */
}

/* 日付スタイル */
.news-date {
  font-weight: 700;
  white-space: nowrap;
  color: #333;
}

/* タイトル（太字＋横書き強制） */
.news-title {
  font-weight: 700;
  color: #333;
  writing-mode: horizontal-tb !important;
  -ms-writing-mode: lr-tb !important;
  display: inline !important;
  margin: 0 !important;
  line-height: 1.6;
  word-break: break-word;
}

/* 本文（200文字分） */
.news-excerpt {
  margin-top: .35rem;
  line-height: 1.8;
  color: var(--sm-text-color, #333);
  font-size: 15px;
}

/* ===== ページネーション（②枚目の見た目）===== */
/* コンテナ：中央寄せ＆横並び */
.c-pagination {
  margin-top: 2rem;
  text-align: center;
}
.c-pagination .page-numbers { text-decoration: none; } /* 下線消し */

/* ボタン共通（白地・枠線・固定サイズ） */
.c-pagination ul {
  display: inline-flex !important;
  justify-content: center;
  gap: .5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.c-pagination .page-numbers,
.c-pagination .page-numbers:visited {
  display: inline-grid;
  place-items: center;
  width: 40px;       /* 正方形に */
  height: 40px;
  border: 1px solid #C9C9C9;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  background: #fff;
  color: #333;
  text-decoration: none;
  box-shadow: none;
}

/* ホバー（枠を青・文字を青に） */
.c-pagination a.page-numbers:hover,
.c-pagination a.page-numbers:focus-visible {
  border-color: #3F5BF6;
  color: #3F5BF6;
  outline: none;
}

/* 現在ページ（青塗り・白文字） */
.c-pagination .page-numbers.current {
  background: #3F5BF6;
  color: #fff;
  border-color: #3F5BF6;
}

/* 前後ボタン（»）も同じサイズで太字に） */
.c-pagination .prev,
.c-pagination .next {
  font-weight: 700;
}

/* スマホで窮屈なら少し小さく */
@media (max-width: 360px) {
  .c-pagination .page-numbers { width: 36px; height: 36px; }
}


/* PCだけ：日付=左列、タイトル=右列、本文=右列（タイトルの下） */
@media (min-width: 641px) {
  .news-item{
    display: grid;
    grid-template-columns: auto 1fr; /* 左:日付 / 右:本文側 */
    column-gap: 2rem;
    align-items: baseline;
  }
  /* ラッパーをレイアウト上“無かったこと”にする */
  .news-header{ display: contents; }

  /* 位置指定：日付=1列目、タイトル=2列目、本文=2列目の次行 */
  .news-date   { grid-column: 1; grid-row: 1; font-weight: 700; white-space: nowrap; }
  .news-title  { grid-column: 2; grid-row: 1; font-weight: 700; line-height: 1.6; }
  .news-excerpt{ grid-column: 2; grid-row: 2; margin-top: .4rem; line-height: 1.8; }
}





/*===============================
お問い合わせページ
=================================*/
/*エラーメッセージ*/
.custom-error-message {
    position: relative;
    top: 12px;
}

/*確認画面ボタン*/
.smf-action .smf-button-control__control {
    font-size: 1.2em;
    background: none !important;             /* ← 背景リセット */
    background-color: #465BD1 !important;    /* ← 強制的に反映 */
    color: #fff !important;
    border: none !important;
    border-radius: 5px;
    transition: box-shadow 0.25s, opacity 0.25s;
    display: inline-block;
    letter-spacing: 1px;
    line-height: 1.5;
    margin: 0;
    min-width: 35%;
    padding: 1em 1.5em;
    text-decoration: none;
    width: auto;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* ホバー時に少し明るく */
.smf-action .smf-button-control__control:hover {
    background-color: #5E70E8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/*---項目の区切り線---*/
.smf-form .smf-item {
  border-bottom: 1px solid #ddd;   /* 区切り線の色と太さ */
  padding-bottom: 20px;            /* 下の余白 */
  margin-bottom: 20px;             /* 区切り線と次の項目の間隔 */
}

/* 最後の項目（お問い合わせ内容）だけ線を消す */
.smf-form .smf-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/*===============================
フッター
=================================*/
.l-footer  {
  width:100%;
  background:url(https://embryo-elsi.jp/wp-content/uploads/2025/10/footer-bg.jpg) no-repeat 0 0 / cover;
}
.l-footer-widget-area__item {
  padding:0;
}
.c-copyright{
  display:none;
}

.maru-c{
	font-weight: 600;
}

.footter-link{
	padding-top: 0px;
	font-weight: 600;
	font-size: 18px;
}

.l-footer-widget-area{
	padding-top:30px!important;
	padding-bottom: 30px!important;
}


/* ==== フッターメニュー横並び（PCのみ）====*/
@media (min-width: 769px) {
  #nav_menu-2 .menu {
    display: flex;
    justify-content: center;   /* 中央寄せ */
    align-items: center;
    gap: 60px;                 /* 項目間の間隔 */
    padding: 0;
    margin: 0;
    list-style: none;
  }

  #nav_menu-2 .menu li {
    display: inline-block;
  }

  #nav_menu-2 .menu li a {
    text-decoration: none;
    color: #333;               /* 必要に応じて変更 */
    font-size: 16px;
    font-weight: 600;
  }

  #nav_menu-2 .menu li a:hover {
    opacity: 0.7;
  }
}
@media (min-width: 769px) {
  #nav_menu-2 .menu {
    align-items: baseline; /* ← 上下ズレを防ぐ */
  }

  #nav_menu-2 .menu li a {
    display: inline-block;
    line-height: 1.6;       /* 全体の高さを統一 */
    padding-top: 2px;       /* 微調整（HOMEが上がる場合） */
    vertical-align: middle; /* テキストを中央寄せ */
  }
}


/* ─────────────────────────────
   フッター背景画像切り替え
───────────────────────────── */
.l-footer.l-footer--default {
  background-image: url("https://embryo-elsi.jp/wp-content/uploads/2025/10/footer-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* スマホサイズ（最大640px）で画像を切り替え */
@media (max-width: 640px) {
  .l-footer.l-footer--default {
    background-image: url("https://embryo-elsi.jp/wp-content/uploads/2025/10/footer-bgsp.jpg");
  }
}

