@charset "utf-8";

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

body{
    width: 100%;

    text-align: center;
    min-height: 100vh;
    box-sizing: content-box;
    font-family: "M PLUS Rounded 1c", "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;	/*フォント種類*/	
    background-image:url("/~gakusei/gakusai/47th/img/backimage-white.jpg");
    background-repeat:repeat-y;
    background-position:center top;
    background-size:100% auto;
}


/*３本バー（ハンバーガー）アイコン設定
---------------------------------------------------------------------------*/
/*３本バーブロック*/
#menubar_hdr {
	display: block;
	position: fixed;z-index: 100;
	top: 20px;		/*上からの配置場所*/
	right: 20px;	/*左からの配置場所*/
	width: 50px;	/*幅*/
	height: 50px;	/*高さ*/
	cursor: pointer;
	background: rgba(0,0,0,0.6) url(https://www.med.kagawa-u.ac.jp/~gakusei/gakusai/47th/images/icon_menu.png) no-repeat center top/50px;	/*背景色、背景画像の読み込み、画像の上半分（３本マーク）を表示。幅は50px。*/
}

/*×印が出ている状態の設定。*/
#menubar_hdr.close {
	background: #2c5defd7 url(https://www.med.kagawa-u.ac.jp/~gakusei/gakusai/47th/images/icon_menu.png) no-repeat center bottom/50px;	/*背景色、背景画像の読み込み、画像の下半分（×マーク）を表示。幅は50px。*/
}

/*メニューの設定
---------------------------------------------------------------------------*/
#menubar ul {list-style: none;}

/*ボックス全体の設定*/
#menubar {
	display: none;				/*デフォルトで非表示にしておく*/
	animation-name: opa1;		/*@keyframesの指定*/
	animation-duration: 1S;		/*アニメーションの実行時間*/
	animation-fill-mode: both;	/*アニメーションの待機中は最初のキーフレームを維持、終了後は最後のキーフレームを維持。*/
	position: fixed;overflow: auto;z-index: 99;	/*fixedはスクロールしても動かない為の指定*/
	left: 0px;top: 0px;
	width: 100%;
	height: 100%;
	padding: 50px;		/*ボックス内の余白*/
	text-align: center;	/*テキストをセンタリング*/
	background: rgba(0,0,0,0.8);	/*背景色*/
	font-size: 1.2rem;	/*文字サイズ。remの単位についてはテンプレート内の解説をお読み下さい。*/
}

/*メニュー１個あたりの設定*/
#menubar li {
	margin-bottom: 20px;	/*下に空けるスペース*/
}

#menubar a {
	display: block;text-decoration: none;
	text-align: center;	/*テキストをセンタリング*/
	background: #fff;	/*背景色*/
	color: #000;		/*文字色*/
	border-radius: 5px;	/*角丸の指定*/
	box-shadow: 0px 0px 50px 10px rgba(95, 186, 243, 0.409);	/*ボックスの影。右へ、下へ、ぼかし幅、範囲。255,255,255は白の事で0.4は色が40%出た状態の事。*/
	padding: 5px;	/*余白*/
}

/*メニュー内のspanタグ（小さい日本語部分）*/
#menubar span {
	display: block;
	font-size: 0.7rem;	/*文字サイズ。remの単位についてはテンプレート内の解説をお読み下さい。*/
}
/* ページタイトルを決めるCSS */
#page-title{
    font-size: xx-large;
    color:#022d46;
    padding-bottom: 10px;
	padding-top: 20px;
}

#page-title1{
	font-size: xx-large;
    color:#022d46;
    padding-bottom: 30px;
}

#section1 {
    max-width: 90%;
    width: 1000px;
    margin: auto;
    z-index: 1;

}

.section1_department_serect {
    background-color: #022d46;
    width: 100%;
    margin-right: auto;
    height: 70px;
    display: flex;
    align-items: center;
    margin-top: 5px;
    cursor:default;

}

.section1_department_serect p {
    color: #ffffff;
    font-size: xx-large;
}

.rotate {
    display: inline-block;
    transform: rotate(90deg);
}


.lab-table {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 8rem;
}

.lab-table-item {
    background-image: url(https://www.med.kagawa-u.ac.jp/~gakusei/gakusai/47th/sakai_images/lab_introduction/puzzle.png);
    background-size: contain;
    width: 90%;
    height: 250px;
    max-width: 200px;
    margin: 10px;
    margin-bottom: 30px;
}

.medical-labos-title-long {
    display: flex;
    text-align: left;
    margin-left: 0;
    width: fit-content;
    border-bottom: 6px solid #022d46;
    /* 下線の上の隙間↓ */
    padding-bottom: 10px;
    /* 下線の下の隙間 */
    margin-bottom: 50px;
    margin-top: 20px;
    position: absolute;
    transform: translateY(-250%);
    top: 0;
    height: 1.8rem;
    font-size:
}

.lab-photo{
    width:90%;
    text-align:center;
    margin:0 auto;
    margin-top:-8%;
}

.lab-photo1{
    width:90%;
    text-align:center;
    margin:0 auto;
    margin-top:-10%;
    margin-bottom:10%
}

.lab-photo2{
    width:90%;
    text-align:center;
    margin:0 auto;
    margin-top:-13%;
    margin-bottom:4%;
}

.lab-photo3{
    width:90%;
    text-align:center;
    margin:0 auto;
    margin-top:-14%;
}

.lab-photo4{
    width:85%;
    text-align:center;
    margin:0 auto;
    margin-top:-15%;
}

.lab-photo5{
    width:90%;
    text-align:center;
    margin:0 auto;
    margin-top:-17%;
    margin-bottom:4%;
}

.lab-photo6{
    width:90%;
    text-align:center;
    margin:0 auto;
    margin-top:0%;
    margin-bottom:15%;
    height:100px;
}

.lab-photo7{
    width:90%;
    text-align:center;
    margin:0 auto;
    margin-top:-20%;
    margin-bottom:-25%;
}



.lab-photo img{
    width:85%;
}

.lab-photo1 img{
    width:90%;
}

.lab-photo2 img{
    width:90%;
}

.lab-photo3 img{
    width:95%;
}

.lab-photo4 img{
    width:90%;
}

.lab-photo5 img{
    width:77%;
}

.lab-photo6 img{
    width:90%;
}

.lab-photo7 img{
    width:90%;
}

.lab-photo8 img{
    width:90%;
    margin-top:23%;
    margin-bottom:23%;
}

.btn1 {
    text-align: center;
	font-size: 0.8rem;	/*文字サイズを120%に*/
    margin-top:1%;
}

.btn1 a {
	display: inline-block;text-decoration: none;
    background-color:#022d46;	/*背景色。css冒頭で指定しているprimary-colorを読み込みます*/
	color: #fff;	/*文字色。css冒頭で指定しているprimary-inverse-colorを読み込みます*/
	border-radius: 100px;	/*角を丸くする指定*/
	padding: 0.5em 2em;		/*上下、左右へのボタン内の余白*/
}

/*矢印アイコン*/
.arrow1::after {
	display: inline-block;
	font-family: "Font Awesome 6 Free";	/*Font Awesomeを使う指定*/
	font-weight: bold;
    content: "\f061";		/*アイコンのコード*/
	padding-left: 0.5em;	/*アイコンとテキストとの間のスペース*/
	transition: 0.3s;
    
}
.arrow1:hover::after {
	transform: translateX(0.2em);	/*マウスオン時に少しだけ移動する*/
}

/* 枠の色だけ指定 */
 .lab-table-item:nth-child(3n) {
    border: 5px solid #75b3d7;
}

.lab-table-item:nth-child(3n+1) {
    border: 5px solid #c292b8;
}

.lab-table-item:nth-child(3n+2) {
    border: 5px solid #6d7b89;
}



.lab-name1{
    background-color: #d2efff;
    width: 70%;
    height: 20%;
    font-size:15px;
    text-align:center;
    line-height:350%;
    border-radius: 999px;
    border: 3px solid #75b3d7;
    transform: translate(-5%, -50%);
}
.lab-name2{
    background-color: #f6e8f8;
    width: 70%;
    height: 20%;
    font-size:15px;
    text-align:center;
    line-height:350%;
    border-radius: 999px;
    border: 3px solid #c292b8;
    transform: translate(-5%, -50%);
}
.lab-name3{
    background-color: #c7d6e5;
    width: 70%;
    height: 20%;
    font-size:15px;
    text-align:center;
    line-height:350%;
    border-radius: 999px;
    border: 3px solid #6d7b89;
    transform: translate(-5%, -50%);
}


.lab-name4 {
    background-color:#c7d6e5 ;
    width: 70%;
    height: 20%;
    font-size:15px;
    text-align:center;
    line-height:170%;
    border-radius: 9999px;
    border: 3px solid #6d7b89;
    transform: translate(-5%, -50%);
}
.lab-name5 {
    background-color:#d2efff ;
    width: 70%;
    height: 20%;
    font-size:13px;
    text-align:center;
    line-height:170%;
    border-radius: 9999px;
    border: 3px solid #75b3d7;
    transform: translate(-5%, -50%);
}
.lab-name6 {
    background-color: #d2efff;
    width: 70%;
    height: 20%;
    font-size:15px;
    text-align:center;
    line-height:120%;
    border-radius: 9999px;
    border: 3px solid #75b3d7;
    transform: translate(-5%, -50%);
}
.lab-name7 {
    background-color:#c7d6e5 ;
    width: 70%;
    height: 20%;
    font-size:15px;
    text-align:center;
    line-height:120%;
    border-radius: 9999px;
    border: 3px solid #6d7b89;
    transform: translate(-5%, -50%);
}
.lab-name8 {
    background-color:#f6e8f8 ;
    width: 70%;
    height: 20%;
    font-size:13px;
    text-align:center;
    line-height:170%;
    border-radius: 9999px;
    border: 3px solid #c292b8;
    transform: translate(-5%, -50%);
}
/*フッター設定
---------------------------------------------------------------------------*/
small {font-size: 100%;}
p{
	text-align: center;
}
.menu-container {
  display: flex;
  justify-content: center; /* or space-around / center */
  gap: 20px; /* セクション間の余白 */
  flex-wrap: wrap; /* 画面が狭くなったら折り返す */
  padding: 20px;
}

.menu-section {
  width: 20%; /* 各カテゴリの幅（必要に応じて調整） */
  min-width: 180px; /* 最小幅を確保して見崩れ防止 */
}

.menu-section h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.menu-section ul {
  list-style: none;
  padding-left: 0;
  color: #fff;
}

.menu-section li {
  margin-bottom: 6px;
  font-size: 14px;
  color: #fff;
}
.menu-section a{
    color: #fff;
}

section{
    z-index: 1;
}
ul.icon {
	list-style: none;
	margin: 0;padding: 0;
	text-align: center;
    color:#000;
}

/*アイコン１個あたりの設定*/
ul.icon li {
	display: inline-block;	/*リストタグを横並びにさせる指定*/
	padding: 0 10px;
}

/*アイコン画像の設定*/
ul.icon img {
	width: 30px;	/*アイコン画像の幅*/
}

/*画像のマウスオン時*/
ul.icon img:hover {
	opacity: 0.8;	/*透明度。0.8は色が80%出た状態の事。*/
}







