/*
 Theme Name:   BusinessPress Child
 Template:     businesspress
*/


.overview_text_button {
  padding: 0 20px;
}

.front-news {
  background-color: #fcfcfc;
  padding: 40px;
}

.front-news h3 {
  margin-top: 0px;
}

h2.wp-block-heading,
.entry-content h2 {
  margin-top: 0;
}

.news_section {
  height: 500px;
  overflow-y: scroll;
}

body.en-US,
.en_US {
  font-size: inherit !important;
}

/* header画像フィルター */
div.home-header-overlay {
  background-color: rgba(71, 68, 77, 0.419) !important;
}


/* HEADER---------------------------------- */

.home .site-header {
  margin-bottom: 0;
}

.contact_menu {
  margin-right: 50px;
}

.main-navigation ul li.menu-button>a {
  border: 1px solid #2e3192;
  color: #2e3192;
  padding: 10px 17px;
  text-decoration: none;
  line-height: 1;
  display: inline-block;
  transition: background-color 0.3s;
}

.main-navigation ul li.menu-button>a:hover {
  background-color: #3f42a5;
  color: #ffffff;
}

.main-navigation div.menu>ul>li:last-child>a,
.main-navigation ul.menu>li:last-child>a {
  padding-right: 17px;
}




/* ABOUTUS---------------------------------- */


@media screen and (max-width: 600px) {

  .wp-block-group.is-layout-flex.wp-container-core-group-is-layout-271e1ce7 {
    flex-direction: column !important;
    align-items: center !important;
  }

  .wp-block-group.is-layout-flex.wp-container-core-group-is-layout-271e1ce7 figure {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .wp-block-group.is-layout-flex.wp-container-core-group-is-layout-271e1ce7 a {
    width: 100% !important;
  }
}

.contact_page {
  padding: 0 40px 40px 40px;
}

.member_page {
  padding: 0 40px 40px 40px;
}


/* TOP画面NEWS---------------------------------- */

.wp-block-latest-posts li {
  display: grid;
  grid-template-areas:
    "date title"
    "excerpt excerpt";
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 15px;
  margin-bottom: 30px;
  list-style: none;
}

.wp-block-latest-posts__post-date {
  grid-area: date;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2D287F;
  border-radius: 7px;
  color: #ffffff;
  padding: 5px 0px;
  width: 100px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.wp-block-latest-posts__post-title {
  grid-area: title;
  margin: 0;
  font-weight: bold;
  font-size: 1.1em;
  color: #2D287F;
}

.wp-block-latest-posts__post-excerpt {
  grid-area: excerpt;
  margin-top: 5px;
  font-size: 0.95em;
}

/* TOP画面PROJECTS---------------------------------- */

/* 1. 記事カード全体の調整 */

.top_overview {
  padding: 40px;
}

.wp-block-post-template,
.front-overview-ul {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
  gap: 30px;
  margin: 0;
}

.top_overview_btn {
  border: 2px solid #2D287F;
}

.front-overview-ul li {
  width: 45% !important;
  ;
}

/* Business Press の独自の横幅（vw指定）を無効化する */
.no-sidebar .alignwide {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

img.wp-image-2211 {
  width: 70% !important;
  height: auto;
  max-width: 80% !important;
}

figure.aboutus_img {
  text-align: center;
  width: 100%;
}

.front-overview-text {
  display: none;
}

.front-overview-content {
  display: block !important;
}

.front-overview-img img {
  height: 250px;
  width: auto;
  align-items: center;
}

.wp-block-post-title a {
  color: #2D287F;
  font-size: 1.2rem;
  /* margin-bottom: 10px; */
}

.home .wp-block-post-template .wp-block-post-title {
  min-height: 0 !important;
}

@media screen and (max-width: 782px) {

  .wp-block-post-template,
  .front-overview-ul {
    display: block;
  }

  .front-overview-ul li:nth-child(n+3) {
    display: none;
  }

  .front-overview-ul li {
    width: 100% !important;
    padding: 20px;
  }

  .front-overview-text {
    display: block;
  }

  .no-sidebar .alignwide {
    width: 100% !important;
    margin-left: auto !important;
  }

}

@media screen and (min-width: 980px) {
  .no-sidebar .alignwide {
    width: 100% !important;
    margin-left: auto !important;
  }


}

.home .wp-block-post-template li.wp-block-post {
  border-left: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media screen and (max-width: 600px) {
  .home .wp-block-post-template li.wp-block-post {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}


/* Publication---------------------------------- */

.teachpress_filter select.default {
  margin: 10px !important;
}

.publication_page {
  padding: 40px;
}


/* LAB VISIT---------------------------------- */

.labvisit_page {
  padding: 0 40px 40px 40px;
}

/* FOOTER---------------------------------- */


@media screen and (min-width: 980px) {

  #page .footer-widget,
  #page .footer-widget-2 {
    width: 100% !important;
    float: none !important;
  }
}

.footer-widget-area {
  padding-bottom: 4rem;
  padding-top: 4rem;
}


#page .site-footer .widget {
  text-align: left;
}

.widget {
  margin-bottom: 0;
}

.top_labvisit {
  padding: 40px;
}



/* PROJECTS---------------------------------- */

.overview_page {
  padding: 0 40px 40px 40px;
}

.wp-block-post-date {
  display: inline-block;
  align-self: flex-start;
  background-color: #2D287F;
  color: #ffffff;
  padding: 3px 10px;
  font-size: 0.75rem;
}

.is-style-outline .wp-block-button__link {
  border: 2px solid #2e3192;
  color: #2e3192;
  background-color: transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
}

.is-style-outline .wp-block-button__link:hover {
  background-color: #2e3192;
  color: #ffffff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.wp-block-post-template .wp-block-post-featured-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  margin-bottom: 15px;
  overflow: hidden;
}

.wp-block-post-template .wp-block-post-featured-image a,
.wp-block-post-template .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-block-post-template .wp-block-post-featured-image img {
  object-fit: contain;
}

.wp-block-post-template .wp-block-post-title {
  margin-top: 0;
  min-height: 3em;
  font-size: 14px;
  line-height: 1.5;
}

.wp-block-post-template li.wp-block-post {
  border-left: 1px solid #dddddd;
  padding-left: 30px;
  padding-right: 30px;
  list-style: none;
  box-sizing: border-box;
}

.wp-block-post-template li.wp-block-post:first-child {
  border-left: none;
  padding-left: 0;
}

@media screen and (max-width: 600px) {
  .wp-block-post-template li.wp-block-post {
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .wp-block-post-template li.wp-block-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

.overview_btn .wp-block-button__link {
  background-color: transparent;
  border: 2px solid #2e3192;
  color: #2e3192;
}

.aboutus_contents {
  padding: 40px;
}


/* MEMBER---------------------------------- */


.wp-block-columns.is-layout-flex {
  align-items: flex-start;
}

.member-btn {
  display: flex;
  align-items: center;
  color: #2e3192;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

.member-btn img {
  width: 20px;
  max-width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  margin-right: 12px;
}

.member-btn span {
  font-size: 14px;
}

.mailadd {
  display: flex;
  align-items: center;
  color: #8f8f8f;
  border-radius: 5px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

.mailadd img {
  width: 20px;
  max-width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  margin-right: 12px;
}

.linkicon {
  margin-left: 3px;
  width: 15px !important;
  height: auto;
}

.members_column_1 .wp-block-image {
  margin-bottom: 10px;
}

.wp-block-columns.members_column_1 {
  margin-bottom: 80px;
}

@media screen and (max-width: 600px) {

  .wp-block-columns.members_column_1 {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    flex-basis: 70%;
  }

  .wp-block-columns.members_column_1 .wp-block-image figure {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 15px auto;
  }

  .member-btn {
    width: 100%;
    justify-content: center;
  }

  .wp-block-columns.members_column_1 .wp-block-column {
    margin-bottom: 0 !important;
    padding-bottom: 20px;
  }

  .wp-block-columns.members_column_1 {
    margin-bottom: 10px !important;
  }
}

/* Bogoスイッチャーを横並びにする設定 */
/* 全体の共通設定（PC・スマホ共通） */
.bogo-language-switcher {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* 不要なテキストを消す */
.bogo-language-switcher li {
  font-size: 0;
}

.bogo-language-switcher li a {
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

/* 地球儀アイコンの設定 */
.bogo-language-switcher li a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  background-image: url('../../uploads/globe-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.bogo-language-switcher img.flag {
  display: none !important;
}

/* 未適用の言語（クリックできる方）：薄いグレー */
.bogo-language-switcher li:not(.current) a {
  color: #a9a9a9 !important;
  opacity: 0.6;
}

/* 適用中の言語（今見ている方） */
.bogo-language-switcher li.current a {
  color: #a9a9a9 !important;
  opacity: 1;
  border-bottom: 2px solid #2e3192;
  pointer-events: none;
}

/* hover時の挙動 */
.bogo-language-switcher li a:hover {
  opacity: 1;
}


/* --- レスポンシブ対応 --- */

/* PC表示（980px以上） */
@media screen and (min-width: 980px) {

  /* スイッチャー全体の左側の余白（メニューとの間隔） */
  .header-bogo-switcher {
    margin-left: 30px;
  }

  .header-bogo-switcher .bogo-language-switcher li {
    margin-left: 20px;
  }

  /* PCではドロワー用を隠す */
  .drawer-bogo-switcher {
    display: none;
  }
}

/* スマホ・タブレット表示（979px以下） */
@media screen and (max-width: 979px) {

  /* ヘッダーからは消す */
  .header-bogo-switcher {
    display: none;
  }

  /* ドロワーメニューの中の見た目調整 */
  .drawer-bogo-switcher {
    padding: 20px;
    border-top: 1px solid #eeeeee;
    margin-top: 10px;
  }

  .drawer-bogo-switcher .bogo-language-switcher li {
    margin-right: 25px;
    margin-left: 0;
  }
}