/*
Theme Name: IMC
Description: 微生物化学研究所テーマ
Author: 
Version: 1.0
*/

html {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  background-size: cover;
  background-attachment: fixed;
  background-color: #052852;
  background-repeat: no-repeat;
  font-size: 13pt;
}

header {
  background-color: rgba(255, 255, 255, 1);
  width: 100%;
  height: auto;
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  position: fixed;
  box-shadow: 1px 1px 5px #888;
  padding: 0 5px;
  box-sizing: border-box;
}

#header_title {
  display: block;
  min-width: 250px;
  flex-grow: 1;
  flex-shrink: 1;
}

#language_switcher {
  display: block;
  flex-grow: 0;
  flex-shrink: 0;
}

#menu_button {
  display: block;
  flex-grow: 0;
  flex-shrink: 0;
}

#menu_bar {
  display: block;
  flex-grow: 2;
  flex-shrink: 1;
}

header a {
  color: #000000;
  text-decoration: none;
  width: auto;
  text-align: center;
}

.alignright {
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: right !important;
}

.alignleft {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

.alignleft {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

.alignright img {
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: right !important;
}

.alignleft img {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

.aligncenter img{
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.wp-block-columns {  
  display: flex;
  column-gap: 0px;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 600px;
  margin: 0 auto;
}

.wp-block-column-is-layout-flow {
  display: block;
  width: 18% !important;  
}

.wp-block-column-is-layout-flow img {
  margin: 0;
  padding: 0;
  width: 100%;
}

.wp-block-column-is-layout-flow figure {
  margin: 0;
  padding: 0;
}

.bogo-language-switcher,
.language-switcher {
  padding: 0;
  margin: 0;
  width: 25px;
  list-style: none;
}

.bogo-language-switcher li,
.language-switcher li {
  margin: 0;
  border: 1px solid #333;
  font-size: 0.8em;
  text-align: center;
  padding: 3px;
}

.tel {
  font-size: 1.8rem;
  font-weight: 800;
  color: #8d8d8d;
}

main {
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
  text-wrap: pretty;
  background-color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
  text-wrap: pretty;
  font-size: 13pt;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  font-style: normal;
}

.page {
  margin-top: 100px;
}

.page h1 {
  font-size: 28px;
  margin: 20px 0;
  font-style: normal;
  color: #000099;
}

.page h2 {
  font-size: 24px;
  margin: 20px 0;
  font-style: normal;
  color: #000099;
}

.page h3 {
  font-size: 20px;
  margin: 20px 0;
  font-style: normal;
  color: #000099;
}

.page h4 {
  font-size: 16px;
  margin: 20px 0;
  font-style: normal;
  color: #000099;
}

.laboratory h4 {
  font-size: 16px;
  color: white;
  background: #000099;
  padding: 8px;
  font-style: normal;
}

.laboratory h6 {
  font-size: 12px;
  font-style: normal;
}
.has-text-align-center {
  text-align: center;
}

.has-text-align-right {
  text-align: right;
}

.children {
  text-align: center;
}

.children a,
.children a:visited,
.children a:link {
  display: inline-block;
  margin: 10px;
  padding: 30px;
  background-color: darkgoldenrod;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  width: 45%;
  height: 90px;
  text-decoration: none;
  color: white !important;
  font-size: 20px;
  vertical-align: middle;  
  height: 100%;
}

.children a:hover {
  background-color: goldenrod;
}

.screen-reader-text {
  display: none;
}

iframe {
  max-width: 100%;
}


p {
  margin-left: 20px;
}

code {
  display: block;
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 3px;
  font-size: 13pt;
  text-wrap: nowrap;
  overflow-x: scroll;
}

footer {
  background-color: white;
  padding: 10px;
  border-top: 1px solid #e0e0e0;
}

a {
  cursor: pointer;
  text-wrap: pretty;
}

div {
  max-width: 100%;
}

.wp-block-table {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #e0e0e0;
  padding: 10px;
}

th {
  background-color: #f0f0f0;
}

tr:nth-child(odd) {
  background-color: #f0f0f0;
}

#copyright {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  padding: 10px;
  background-color: #f0f0f0;
}

.top-image {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background-position: center center;
  background-size: cover;
  height: 250px;
}

.menu-button {
  display: none;
  background-color: white;
  border: none;
  color: #000099;
  font-size: 20px;
}

.global-nav-list {
  background-color: white;
}

.mobile_menu {
  margin-top: 100px;
}

.pc-menu .global-nav-list,
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.footer-nav-list {
  display: block;
  text-align: center;
}

.footer-nav-list li {
  display: inline-block;
  margin: 0 20px;
}

.pc-menu .menu-item {
  display: inline-block;
  padding: 10px;
}

.sub-menu .menu-item {
  display: block !important;
}


.menu-item a,
.menu-item a:visited {
  color: #000099;
  text-decoration: none;
  font-weight: 700;
}

.menu-item a:hover {
  color: blue;
}

.sub-menu a:hover::after {
  content: ' > ';
}


.pc-menu .sub-menu {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 0;
}

.pc-menu .menu-item:hover .sub-menu {
  display: block;
}

.pc-menu .sub-menu .menu-item:not(:last-child) {
  border-bottom: 1px solid #e0e0e0;
}

.pc-menu .sub-menu .menu-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
}



.post_item,
.post_item:visited,
.post_item:link {
  margin: 20px 0;
  padding: 20px;
  background-color: #f0f0f0;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  text-wrap: wrap;
}

.post_item a,
.post_item a:visited,
.post_item a:link {
  display: block;
  text-decoration: none;
  color: black;
}

.post_item:hover {
  background-color: #e0e0e0;
}

.post_item h3 {
  font-size: 20px;
  margin: 0;
  font-weight: 400;
  font-style: normal;
  color: #000099;
}

.post_date {
  font-size: 13pt;
  color: #666;
}

.post_item img {
  width: 200px;
  height: 200px;
  margin-right: 20px;
}

.post_content {
  display: inline-block;
  min-width: 300px;
  max-width: 800px;
}

.post_thumbnail {
  display: inline-block;
  width: 200px;
  min-width: 200px;
  margin-right: 20px;
}

.categories .tags {
  text-align: right;
  margin: 20px;
}

.categories a,
.categories a:visited,
.categories a:link,
.tags a,
.tags a:visited,
.tags a:link {
  color: #000099;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.border {
  border: 1px solid #e0e0e0;
}



#news {
  margin-top: 20px;
  padding: 0 20px 20px;
  background-color: #f0f0f0;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
}

#news a,
#news a:visited,
#news a:link {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

#news a:hover {
  color: #000099;
}

#news_list {
  text-align: right;
}

#posts {
  margin-top: 20px;
  padding: 0 20px 20px;
  background-color: #f0f0f0;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
}

#posts a,
#posts a:visited,
#posts a:link {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

#posts a:hover {
  color: #000099;
}

#posts_list {
  text-align: right;
}

#affiliate a,
#affiliate a:visited,
#affiliate a:link {
  display: block;
  padding: 5px;
  margin: 10px 0px;
  text-decoration: none;
  color: black;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
  max-width: 600px;
}

#affiliate img {
  display: inline-block;
  height: 250px;
}

#affiliate a div {
  display: inline-block;
  margin: 0;
  padding-left: 20px;
  font-weight: bold;
}

.history h2 {
  margin: 0 20px;
  padding: 10px;
  border-left: 20px solid darkkhaki;
  font-weight: 700;
  color: darkkhaki;
}

.history p {
  margin: 0 20px;
  padding-left: 20px;
  padding-top: 10px;
  border-left: 1px solid darkkhaki;
}

.history .history_thumbnail {
  margin: 0 20px;
  padding-left: 20px;
  padding-top: 10px;
  border-left: 1px solid darkkhaki;  
}

.slider {
  padding-top: 200px;
  width: 100%;
  height: 600px;
  overflow: hidden;
  position: relative;
}

.slides div {
  width: 100%;
  display: inline-block;
}

.slider .caption {
    position: absolute; 
    text-align: center;
    color: white;
    top: 300px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    font-size: 32px;
    padding: 10px;
    z-index: 1;
   -webkit-text-stroke: 1px black;
    
    font-weight: 800;
}

@keyframes zoomFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.2);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(2.0);
    }
}

@keyframes zoomFadeOut {
    0% {
        opacity: 1;
        transform: scale(2.0);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.slider-image {
    margin-top: 100px;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center center;
    position: absolute;
    left: 0;
    top: 0;
}

.slider-image.fade-in {
    animation: zoomFadeIn 15s ease-in-out forwards;
}

.slider-image.fade-out {
    animation: zoomFadeOut 3s ease-in-out forwards;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .menu-mobile {
        display: block;
    }
    #hamburger-menu.hidden {
        display: none;
    }
}

#toc_container a, #toc_container a:visited, #toc_container a:link {
  color: black;
  text-decoration: none;
}

.table_wrapper, .wp-block-table,
#literature_table_wrapper, #compound_table_wrapper {
  overflow-x: auto;
}

.wp-block-buttons {
  text-align: center;
  width: 100%;
}

.wp-block-button {
  display: inline-block;
  margin: 10px;
  background-color: orange;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid darkorange;
  text-decoration: none;
} 

.wp-block-button a, .wp-block-button a:visited, .wp-block-button a:link {
  color: white;
  text-decoration: none;
}

.wp-block-button a:hover, .wp-block-button:hover {
  color: white;
  background-color: darkorange;
}

.pagetop {
  display: none;
  position: fixed;
  bottom: 30px;
  margin-left: auto;
  margin-right: 16px;
  left: 50%;
  margin-left: 550px;
}

.pagetop a {
  display: block;
  background-color: #ccc;
  text-align: center;
  color: #222;
  font-size: 12px;
  text-decoration: none;
  padding: 5px 10px;
  filter:alpha(opacity=50);
  -moz-opacity: 0.5;
  opacity: 0.5;
}
.pagetop a:hover {
  display: block;
  background-color: #b2d1fb;
  text-align: center;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  padding:5px 10px;
filter:alpha(opacity=50);
  -moz-opacity: 0.5;
  opacity: 0.5;
}

a, a:visited, a:link {
  color: #000099;
  text-decoration: none !important;
}

a:hover {
  color: blue !important;
}


.lab img {
  width: 100%;
}

.lab:hover {
  background-color: #f0f0f0;
  color: black !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.member_wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  overflow-x: scroll;
}

.member {
  margin: 10px;
  display: flex;
  width: 350px;
  max-width: 90%;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.member_email {
  padding: 3px;
  text-wrap: wrap;
  overflow-wrap: break-word;
}

.member img {
  margin: 0;
}

.smb-tabs__tabs {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

.smb-tabs__tab-wrapper {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
}

.smb-tabs__tab {
  padding: 10px !important;
}

.smb-tabs__tab {
  border-bottom: 1px solid lightblue;
  font-size: 15px;
  width: 150px;
}

.smb-tabs__tab[aria-selected=true] {
  border-top: 1px solid lightblue;
  border-left: 1px solid lightblue;
  border-right: 1px solid lightblue;
}

.tab-rest {
  border-bottom: 1px solid lightblue;
  width: 30%;
}

.top_icons {
  margin: 0;
  padding: 0;
}

.p

.contact h4 {
  color: black;
  font-size: 20px;
  font-weight: 700;
  background-color: lightgray;
  padding: 5px;
}

.contact .icons {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact .icons a,
.contact .icons a:visited,
.contact .icons a:link {
  display: inline-block;
  margin: 10px;
  padding: 10px;
  width: 300px;
  background-color: lightgray;
  color: black;
  text-align: center;
}

.contact .icons a:hover {
  background-color: lightblue;
  color: black;
}

#search_box {
  padding: 20px;
  background-color: lightgray;
  margin-top: 20px;
  display: none;
}

.pamphlet {
  display: inline-block;
  background-color: lightgray;
  width: 300px;
  max-width: 90%;
  margin: 10px;
  padding: 3px;
  text-align: center;
}

.lab {
  display: flex;
  width: 500px;
  min-height: 400px;
  border: 1px solid black;
  display: inline-block;
  text-decoration: none;
  color: black;
  margin: 5px;
  padding: 5px;
  vertical-align: top;
  max-width: 90%;
}

.lab-content {
  display: flex;
}

@media (max-width: 768px) {
  .lab {
    display: block;
  }

  .lab-content {
    display: block;
  }
}
