/* UTF-8エンコーディングを明示 */
@charset "UTF-8";

html, body {
 height: 100%;
 margin: 0;
 padding: 0;
 }

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eaeaea;
    background-image: url('img/koke.jpg'); /* 緑の葉の背景画像を設定 */
    background-size: cover;
    background-position: center;
    color: #444;
    display: flex;
    flex-direction: column;
}

.wrapper { 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%; 
    width: 100%; 
}

header {
    background-size: cover;
    background: linear-gradient(#bbff22eb, #ffffff); 
    background-position: center;
    color: #4d4d4d;
    padding: 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: center;
    background-color: #8e9a89;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

nav a {
    color: #333;
    padding: 16px 20px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #2196F3;
    color: white;
}

main {
    padding: 30px;
    background-color: rgb(255 255 255 / .9);
    color: #333333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px auto;
    width: 600px;
    border-radius: 8px;
    flex-grow: 1;
    text-align: center;
}

main2 {
    padding: 50px;
    background-color: rgb(255 255 255 / .9);
    color: #4d4d4d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px auto;
    width: 760px;
    border-radius: 8px;
    flex-grow: 1;
    text-align: left;
}

.main_title1 {
margin:0px 0px 20px 0px;
padding:5px;
background:#666666;
font-weight:bold;
color:#FFFFFF;
font-size:24px;
}

.main_subtitle {
margin:0px 0px 20px 0px;
padding: 5px 0px 0px 10px;
font-family: "MS Pゴシック", Osaka, Verdana, Arial, Helvetiva, sans-serif;
font-size: 20px;
color: #FFFFFF;
background:#A7A7A7;
background-repeat: no-repeat;
}

.funded03 {
width: 700px;
padding: 0px 30px;
}

.flow {
width: 700px;
padding: 0px 30px;
}

p.flow {
text-indent: 1em;
padding-left: 1em;
}

.fermentation {
width: 700px;
padding: 0px 30px;
}

.microorganism {
width: 700px;
padding: 0px 30px;
}

#specimen {
width: 700px;
padding: 0px 30px;
}

.shop {
width: 700px;
padding: 0px 30px;
}

.biotechnology {
width: 700px;
padding: 0px 30px;
}

p.biotechnology {
text-indent: 1em;
padding-left: 1em;
}

.funded_title {
margin:30px 0px 10px 0px;
padding: 5px 0px 0px 10px;
font-family: "MS Pゴシック", Osaka, Verdana, Arial, Helvetiva, sans-serif;
font-size: 20px;
color: #FFFFFF;
background:#A7A7A7;
background-repeat: no-repeat;
}

iframe {
border: solid 2px #000000;
}

img.fermentation {
width: 300px;
}


footer {
    background-color: #61685e;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 1px solid #ddd;
}

hr {
	heigght: 2px;
	width: 100%;
	background-color: white;
}

.right{
	margin:0px 15px 15px 15px;
	text-align:right;
	clear: left;
	color: #4d4d4d;
}

.right a{
	color: #4d4d4d;
}

.right a:hover {
	color: #0000FF;
}


/*ドロップダウンメニュー*/

.navi__wrap {
    width: 1200px;
    margin-top: 0;
    margin-inline: auto;
    z-index: 1;
}
.navi__lists {
    width: 1200px;
    margin-top: 0;
    margin-inline: auto;
    display: flex;
    list-style-type: none;
}
.navi__list {
    width: 16.6%;
    height: 50px;
    background-color: #f0f7df;
    position: relative;
    transition: all .3s;
}
.navi__list:hover {
    background-color: #8cbf19;
}
.navi__list:not(:first-child)::before {
    content: "";
    width: 1px;
    height: 100%;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .3s;
}
.navi__list:hover::before {
    background-color: #8cbf19;
}
.navi__list a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #1b4059;
    font-size: 15px;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: all .3s;
}
.navi__list:hover a {
    color: #fff;
}

.dropdown__lists {
    display: none;/*デフォルトでは非表示の状態にしておく*/
    width: 100%;
    position: absolute;
    top: 50px;
    left: 0;
    list-style-type: none;
    z-index: 1;
}
.navi__list:hover .dropdown__lists {
    display: block;
}
.dropdown__list {
    background-color: #5d8011;
    height: 50px;
    transition: all .3s;
    position: relative;
}
.dropdown__list:not(:first-child)::before{
    content: "";
    width: 100%;
    height: 1px;
    background-color: #3492d1;
    position: absolute;
    top: 0;
    left: 0;
}
.dropdown__list:hover {
    background-color: #41590c;
}
.dropdown__list a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    position: relative;
}
.dropdown__list a::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(135deg);
    position: absolute;
    right: 15px;
    top: calc(50% - 5px);
}

/*画像スクロールく*/

@keyframes infinity-scroll-left {
from {
  transform: translateX(0);
}
  to {
  transform: translateX(-100%);
}
}
.scroll-infinity__wrap {
  display: flex;
  overflow: hidden;
}
.scroll-infinity__list {
  display: flex;
  list-style: none;
  padding: 0
}
.scroll-infinity__list--left {
  animation: infinity-scroll-left 45s infinite linear 0.5s both;
}
.scroll-infinity__item {
  width: calc(100vw / 2);
}
.scroll-infinity__item >img {
  width: 100%;
}
.scroll-infinity__item a>img {
  width: 100%;
}


