@charset "UTF-8";

html{
    font-size: 10px; 
}

@media screen and (max-width: 640px) {/* 640px以下*/
    h4{
        font-size: 10px; 
    }
}


body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
        "Hiragino Sans", Meiryo, sans-serif;
    color: #2e2e2e; 
}

/* OPのロゴ*/
header {
  grid-column-start: left;
  grid-column-end: right;
  grid-row-start: header;
  grid-row-end: main;
}

header img {
  width: 100%;
  display: block;
}
/*  */
.logo_fadein {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 999;
}
.logo_fadein p {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 9999;
  width: 280px;
}


/* ナビゲーションメニュー*/
nav ul{
    display: table;
    margin: 0 auto;
    padding: 0 ;
    width: 80%;
    text-align: center;
    color: white;
}
nav li{
    display: table-cell;
    min-width: 50px;
}
nav a{
    display: block;
    width: 100%;
    text-decoration: none;
    color: #555;
    padding-bottom: 5px;
    font-size: 2rem; 
}
nav li.current{
    border-bottom: 3px solid #004aad;
}
nav li:hover{
    color: #E7DA66;
    border-bottom: 3px solid #3cace4;
}

nav{
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10000;
    background-color: white;
    padding-top: 30px;
}

#container {
  padding-top: 150px;
}

.mainimg {
    margin-top: 100px;
}

/* はじめに */
.catch{
    margin-left: 10%;
    margin-right: 10%;
    text-align: left;
}

/* イベント一覧 */
.iventList{
	padding:2em;/*内側の余白*/
    margin-left: 10%;
    margin-right: 10%;
	background: none;/*元のボックス背景色なし*/
	border:1px solid #ccc ;/*線の太さ・種類・色*/
	position: relative;/*配置（基準）*/
}

.iventList:after{
	background-color:#cee8f5;/*ずらしたボックスの背景色*/
	border:none;
	content: '';
	position: absolute;/*配置（ここを動かす）*/
	top: 7px;/*上から7pxずらす*/
	left: 7px;/*左から7pxずらす*/
	width: 100%;
	height: 100%;
	z-index: -1;
}

/* 青背景 */
.lottery, .labo, .equipment{
    background-color: #5dbded;
}
.svg-wave svg{
    display: block;
}
.up-wave{
    margin-bottom:-1px!important;
}

/* 大抽選会 */
.catch h4,
.lottery h4,
.fair h4,
.labo h4,
.marche h4,
.equipment h4,
.reservation h4{
    margin-left: 10%;
    margin-right: 10%;
    font-size: 20px; 
}

.lottery .colorChar{
    color: yellow;
    font-size: 1.3em;
    display: inline-block;
    transform: skewX(-15deg);
    font-weight: bold
}

.middle{
    text-align: center; 
}

.stampList {
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 50px;
    position: relative;
    padding: 1.5em 1em 1em 2.5em;
    border: 2px solid #ffffff;
    font-size: 2rem;
}

.stampList > div {
    position: absolute;
    top: -.75em;
    left: 1em;
    padding: 0 .5em;
    background-color: #fff;
    color: #5dbded;
    font-weight: 600;
}

.stampList ul {
    list-style-type: disc;
    margin: 0;
    padding: 0;
}

.stampList li {
    padding: .3em .3em .3em 0;
    color: #ffffff;
    font-weight: bold;
}

.stampList li::marker {
    color: #ffffff;
    font-size: 1.1em;
}

/* ラボ見学 */
@media screen and (min-width:481px){
.laboImg{display:flex;flex-wrap:wrap;justify-content:space-between;}
.laboImg>a{display:block;width:calc(33.33% - 1px);flex-shrink:0;}
.laboImg>a>img{display:block;width:100%;height:auto;}
}

@media screen and (max-width:480px){
.laboImg{display:block;}
.laboImg>a{display:block;max-width:100%;margin:0 auto;}
.laboImg>a>img{display:block;max-width:100%;height:auto;}
}

.laboImg{
    margin-left: 10%;
    margin-right: 10%;
}

/* メディマルシェ */
.marcheImg{
    text-align: center;
}

/* セミナー */
.seminarImg{
    display: flex;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
}

.seminarImg img{
    max-width: 100%; /* 画像の最大幅を100%に設定 */
    height: auto; /* アスペクト比を保持 */
}

.seminar h4{
    margin-right: 10%;
    margin-left: 10%;
}


/* 機材展示 */
.margin{
    text-align: center;
}

/* お問合せ */
.btnInquiry {
  font-weight: bold; /* 文字の太さ */
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1em 2em 1em calc(5em - 15px);
  transition: 0.3s;
  text-decoration: none;
  color: #fff; /* 文字色 */
  border-radius: 0.5rem;
  background: #5dbded; /* 背景色 */
  box-shadow: 0 5px 0 #004aad;
  margin-left: 10px;
}

.btnInquiry p {
  margin: 0;
}

.btnInquiry .btnInquiry_copy {
  position: absolute;
  bottom: 0.5em;
  left: -10px;
  display: inline-block;
  width: 5em;
  height: 5em;
  line-height: 5em;
  text-align: center;
  color: #5dbded;
  font-size: 80%;
  font-weight: bold;
  background: #fff;
  border: 3px solid #5dbded;
  border-radius: 50%;
  box-sizing: border-box;
  transform: rotate(-10deg);
}

.btnInquiry .btnInquiry_copy::before {
  position: absolute;
  content: "";
  bottom: -5px;
  right: -10px;
  border: 9px solid transparent;
  border-left: 15px solid #FFF;
  z-index: 0;
  transform: rotate(45deg);
}

/* マウスオーバーした際のデザイン */
.btnInquiry:hover {
  transform: translate(0, 3px);
  background: #5dbded; /* 背景色 */
  box-shadow: 0 2px 0 #004aad;
}
