/*
 Theme Name: Kansai Medical Eye Theme4.4
 Theme URI: https://www7.kmu.ac.jp/eye/
 Author:Okazaki
 Author URI: http://example.com
 Description:関西医科大学眼科講座のためのカスタムテーマ
 Version: 4.4
 License: GNU General Public License v2 or later
*/
*{
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "BIZ UDPGothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
    font-size:15px;
    font-feature-settings: "palt";
    -webkit-text-size-adjust: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    letter-spacing: .05em;
    max-width: 100vw;
}
.bread a{
	text-decoration:none;
	color: #333;
}
@media screen and (min-width: 768px), print {
    body {
        line-height: 1.75;
    }
}
@media screen and  (max-width: 768px) {
    body {
        font-size: 14px;
    }
	.pc{
		display:none;
	}
}
header {
    background-color: #fff;
    /*border-bottom: 1px solid #ddd;*/
    padding: 20px 0 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items:center;
    padding: 0 0 0 0;
    width: 91.6%;
    margin: auto;
    max-width:1393px;
}

.logo {
    width: 19.7%;
    max-width: 276px;
    min-width: 190px;
    margin-right: 32px;
    padding: 0;
    z-index: 3;
}
.logo img{
    width: 100%;
}

/* 1285px以上の時は通常のメニューを表示 */
@media screen and (min-width: 1285px) {
	nav ul {
	    list-style: none;
	    margin: 0;
	    padding: 0;
	    display: flex;
	}
	nav ul li {
	    margin-left: 3em;
	}
	nav ul li a {
	    text-decoration: none;
	    color: #333;
	}
	nav ul li a:hover{
		color:#005abb;
	}
	nav ul li ul {
	    display: none;
	    position: absolute;
	    background-color: #fff;
	    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	    z-index: 1;
	    width: 263px;
	    border: 1px solid #e4e1e1;
	    background: #f1f0f2;
	}
	nav ul li ul li{
		margin-left: 0;
		position: relative;
		padding: 12px 6px 12px 36px
	}
	nav ul li ul li:before {
	    position: absolute;
	    top: 50%;
	    left: 20px;
	    content: "";
	    width: 8px;
	    height: 1px;
	    background: #005abb;
	}
	nav ul li ul li a{
		display: block;
	}
	nav ul li:hover ul {
	    display: block;
	}
	/* 子メニューがあるメニューアイテムに矢印を表示 */
	.main-menu .menu-item-has-children > a {
	    position: relative;
	    padding-right: 20px; /* 矢印のスペースを確保 */
	}

	.main-menu .menu-item-has-children > a::after {
	    content: '\f0da'; /* Font Awesomeの矢印（下向き） */
	    font-family: 'Font Awesome 5 Free';
	    font-weight: 900;
	    position: absolute;
	    right: 0;
	    top: 50%;
	    transform: translateY(-50%);
	    color: #005abb;
	}

	/* 子メニューがあるときのアイコンを変えたい場合はここで調整 */
	.main-menu .menu-item-has-children:hover > a::after {
	    content: '\f0d7'; /* Font Awesomeの矢印（下向き） */
	}
    nav ul {
        display: flex;
    }
    .hamburger-menu {
        display: none;
    }
    /* モバイルメニューの初期状態 */
	.mobile-nav {
	    display: none; /* PCでは非表示にする */
	}
    h2 {
        letter-spacing: 0.07em;
    }
}
/* 12850px未満の時はハンバーガーメニューを表示 */
@media screen and (max-width: 1284px) {
	.header-container {
	    padding:0 0 0 10px;
	    margin-right: 0;
	    width: 97%;
    }
    .hamburger-menu {
        display: block;
        cursor: pointer;
        width: 60px;
        height: 60px;
        background: #005abb;
        position: relative;
        padding:18px 10px 3px;
        font-size: 10px;
        color: #fff;
        text-align: center;
        border-radius: 32% 0 0 0;
    	z-index: 3;
    }
    .hamburger-menu span{
    	line-height: 2;
    }
    .hamburger-menu div {
        background-color: #fff;
    	height: 1px; /* 線の太さを少し太く */
    	margin: 6px auto; /* 線の間のスペースを調整 */
    	width: 60%; /* 線の幅 */
    	transition: all 0.3s ease; /* アニメーションを追加 */
    	position: relative;
    }
    
    .hamburger-menu div:nth-child(1) {
    top: 0;
	}

	.hamburger-menu div:nth-child(3) {
	    bottom: 0;
	}

	/* メニューが開いている時のスタイル（バツマークに変える） */
	.hamburger-menu.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px); /* 回転しつつ中央に移動 */
	}

	.hamburger-menu.active div:nth-child(2) {
	    opacity: 0; /* 真ん中の線を非表示に */
	}

	.hamburger-menu.active div:nth-child(3) {
	   transform: rotate(-45deg) translate(5px, -5px);
	}
	/* ハンバーガーメニュー*/
	nav.active > ul{
	    display: block; 
	    width: 100%;
	}
	/* スマホ用メニューの初期状態（非表示） */
	.mobile-nav{
	    position: fixed;
	    top: 0;
	    right: -1500px; /* メニューの横幅より少し外側に配置 */
	    width: 100%;
	    height: 100%;
	    background-color: #fff;
	    transition: right 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* より滑らかな動き */
	    z-index: 2;
	}
	.mobile-menu {
	    list-style: none;
	    padding: 0;
	    margin: 160px auto 0;
	}
	.mobile-menu li {
	    margin-left: 0;
	    line-height: 3.5;
	    text-align:left;
	    padding: 0 2em;
	    position: relative;
	}
	.mobile-menu li a {
	    text-decoration: none;
	    font-size: 16px;
	    color: #333;
	}
	.mobile-menu li:hover {
        transition: .2s;
        background:#a0d8ef;
    }
	/* 子メニューを非表示にする */
	.mobile-menu .sub-menu {
	    display: none;
    }
	.toggle-button{
		float: right;
	}
	/* 子メニューが開いたとき */
	.mobile-menu .menu-item-has-children.open .sub-menu {
	    width: calc(100vw - 0em);
        margin-left: -2em;
        background-color: #ecf4f9;
        list-style: none;
        height: auto;
        position: relative;
        text-indent: 2em;
	}
	
	.mobile-menu .sub-menu li a{
		font-size: 14px;
		display: block;
	}
	.mobile-menu .sub-menu li:before {
	    position: absolute;
	    top: 50%;
	    left: 8%;
	    content: "";
	    width: 8px;
	    height: 1px;
	    background:#005abb;
	}
	/* メニューが表示されるときのスタイル */
	.mobile-nav.active {
	    right: 0; /* 右からスライドインして表示 */
	}
	.menu-overlay.active {
	    display: block;
	}
    .main-nav {
        display: none; /* スマホでは通常メニューを非表示 */
    }
    .hamburger-menu {
        display: block; /* スマホではハンバーガーメニューを表示 */
    }
    /* スクロール無効化 */
	.no-scroll {
	    overflow: hidden;
	    height: 100vh;
	    position: fixed;
	    width: 100%;
	}
 
}

/* スライダー画像 */
.hero-slides {
    position: relative;
    width: 100%;
    height: 733px; /* 画像の高さに合わせて調整 */
    overflow: hidden;
}

.hero-slides .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* 初期状態は非表示 */
    transition: opacity 1s ease-in-out; /* フェードイン・フェードアウト */
}

.hero-slides .slide.active {
    opacity: 1; /* activeクラスが付いたスライドを表示 */
}

.hero-slides img {
    width: 93%;
    height: 93%;
    object-fit: cover;
    position: absolute;
    right: 0;
}

.slide-text {
    position:relative;
    bottom: 20px;
    color: #fff;
    font-size: 3.5rem;
    font-family: "Noto Serif JP", serif;
    width: 80%;
    max-width: 1110px;
    padding: 3% 2% 3% 6%;
    background: linear-gradient(180deg, rgba(0, 104, 183, 0.6) 0%, rgba(0, 167, 155, 1) 100%);
    font-weight: normal;
    line-height: 1.5;
    margin-top: -266px;
    box-shadow: 8px 9px 36px rgba(0, 0, 0, 0.3);
}
.slide-text span{
	font-size: 2rem;
}
@media (max-width: 1340px) {
    .slide-text {
    	font-size: 2.6rem;
	}
	.slide-text span{
		font-size: 2rem;
	}
}
@media (max-width:1100px) {
    .slide-text {
    	font-size: 1.8rem;
	}
	.slide-text span{
		font-size: 1.6rem;
	}
}
@media (max-width:768px) {
	.slide-text{
		margin-top: 0;
		width: 100%;
		text-align: center;
		padding: 3% 0;
		bottom: 2px;
		padding-bottom: 60px;
	}
} 
@media (max-width:800px) {
    .slide-text {
    	font-size: 1.5rem;
	}
	.slide-text span{
		font-size: 1rem;
		display: block;
	}
}
/* 固定の1枚目の画像（スマホ用） */
.fixed-slide {
    width: 100%;
    height: 300px; /* 画像の高さは任意で調整 */
    display: none; /* PCでは非表示 */
}

.fixed-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.auto-slide {
    width: 100%;
    overflow: hidden;
    display: none;
    margin-top: -50px;
}

.auto-slide-wrapper {
    display: flex;
   /* animation: scroll-left 30s linear infinite; /* 30秒でゆっくり流れる */
}

.auto-slide-item {
    flex-shrink: 0;
    width: 200px; /* 画像の幅を200pxに固定 */
    height: 150px; /* 画像の高さを150pxに固定 */
    /*margin: 0 10px;*/
}

.auto-slide img {
    width: 69vw; /* 画像をコンテナに合わせる */
    height: 100%; /* 画像の高さを150pxに固定 */
    object-fit: cover; /* アスペクト比を保ちながら画像を枠内に収める */
}
.fixed-slide .img_no01{
    object-fit: contain;
}
.swiper-wrapper {
  transition-timing-function: linear;
}
.swiper-slide{
    flex-shrink: 0;
    width: auto; /* スライドの幅をコンテンツに合わせる */
    /*ransition: transform 0.5s ease-in-out; /* 滑らかな動きのためのトランジション */
}



/* 画像が左から右に滑らかに流れるアニメーション */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); 
    }
}
@media (min-width: 768px) {
header{
	background: none;
}
.hero{
    position: relative;
}
.hero:after {
    position: absolute;
    top: -20%;
    left: 0;
    z-index: -2;
    content: "";
    width: 30.5%;
    height: 100%;
    /*filter: opacity(0.5);blur(1px)*/
    background-position: center;
    /* background-color: #f0f8fa; */
    background: linear-gradient(180deg, rgb(224 239 249) 0%, rgb(196 239 255) 100%);
}
}
/* スマホ用のメディアクエリ */
@media (max-width: 768px) {
    /* PC用のスライダーを非表示 */
    .hero-slides {
        display: none;
    }
    /* 固定画像と横に流れるスライドをスマホで表示 */
    .fixed-slide, .auto-slide {
        display: block;
    }
    /* スマホ用の高さ調整 */
    .fixed-slide {
        height: auto; /* スマホ用の高さを調整 */
    }    
}
/*---------------------共通スタイル-------------------------*/
main{
	position: relative;
	z-index: 1;
}
.layout {
    width:100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}
/*---------------------お知らせ---------------------------*/
.latest-posts {
    padding:90px 20px 160px;
    /*background: #f0f8fa linear-gradient(0deg, #f0f8fa 0%, #fff 100%);*/
}
.latest-posts h2{
    color: #005abb;
    font-family: "Noto Serif JP", serif;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    font-variation-settings: "wght" 500;
}
.latest-posts h2:before {
    display: block;
    content: attr(data-english);
    width: 100%;
    color: #005abb;
    font-family: "Lora", serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    margin-bottom: 6px;
}
@media screen and (min-width: 1285px) {
	.latest-posts h2{
		letter-spacing: 0.07em;
	}
}
.latest-posts ul {
    list-style: none;
    padding: 0;
    max-width: 1000px;
    margin:50px auto 0;
}
.post-item {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #cccaca;
    display: flex;
    align-items: center;
}
.post-meta {
    font-size: 16px;
    margin-right: 3em;
    display: flex;
    gap: 0.5em;
    align-items: center;
}
.post-meta a{
	text-decoration: none;
	color: #005abb;
}
.post-title {
    font-size: 16px;
    color:  #000;
    text-decoration: none;
    line-height: 1.5;
}
.post-title:hover {
    color: #005abb;
}
.post-category{
	padding: 6px 12px;
    border: 1px solid #005abb;
    color: #005abb;
    line-height: 1.5;
    min-width: 130px;
    text-align: center;
    flex-shrink: 0;
}
.post-date{
	width:150px;
}
.all-news-button{
	margin-top: 60px;
}
.all-news-button a{
	text-decoration: none;
	color: #fff;
    display: block;
    width: 80%;
    max-width:300px;
    margin: auto;
    padding: 14px 16px;
    border: 1px solid #005abb;
    background: #005abb;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    -webkit-transition: color 0.3s linear, background 0.3s linear;
    transition: color 0.3s linear, background 0.3s linear;
}

@media (max-width: 768px) {
.latest-posts{
	padding-top: 39px;
	padding-bottom: 60px;
}
}
@media (max-width: 600px) {
.latest-posts h2{
	font-size: 1.6rem;
}
.latest-posts h2:before {
    font-size: 0.8rem;
}
.post-item{
	display: block;
}
.post-category {
    min-width: 106px;
}
.post-meta {
    margin-right: 0;
    margin-bottom: 1em;
    font-size: 12px;
}
.post-title {
	font-size: 14px;
	line-height: 1.8;
}
.all-news-button a{
	font-size: 1rem;
}
.post-date{
	width:130px;
}	
}
/*-------------関西医科大学眼科学講座について--------------------*/
.about_index{
	position: relative;
}
.about_flex{
/*	display: flex;*/
}
.about_text{
    width:45%;
    background-color: #fff;
    padding:60px 40px;
    margin-top: 97px;
    margin-left: auto;
    overflow: hidden;
    border-radius:26px 0 0;
    box-shadow: -8px -6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}
/*.about_text:after {
    position: absolute;
    top: 61.8%;
    left: 59.1%;
    z-index: -1;
    content: "";
    width: 49.8%;
    height: 51%;
    background: -webkit-gradient(linear, left top, right top, from(#a4d8d6), to(#dff2e6));
    background: linear-gradient(90deg, #a4d8d6 0%, #dff2e6 100%);
}*/
.about_text h2{
    color: #a1885c;
    font-family: "Noto Serif JP", serif;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 30px;
    letter-spacing: 0.07em;
}
.about_text h2:before{
    display: block;
    content: attr(data-english);
    width: 100%;
    color: #a1885c;
    font-family: "Lora", serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    margin-bottom: 6px;
}
.about_text p{
    font-size: 16px;
    color: #333;
    line-height: 2;
    margin-bottom: 30px;
}
.about_text ul{
	list-style: none;
}
.about_text ul li{
    padding-left: 2.6em;
    position: relative;
    margin-bottom:1em;
}
.about_text ul li::before {
    content: "";
    width: 16px;
    height: 3px;
    border-bottom: solid 1px #a1885c;
    border-right: solid 1px #a1885c;
    transform: skew(45deg);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    margin: auto;
}
.about_text ul li a{
    line-height: 1.4;
    display:inline-block;
    text-decoration: none;
    color: #333;
    font-size: 16px;
}
.about_text ul li a:hover{
	color: #005abb;
}
.about_img img{
    position: absolute;
    top:-24%;
    left: -10%;
    z-index: -1;
    margin: 0;
    width: 70%;
}
@media (max-width:1525px) {
.about_text {
	margin-left: auto;
}
.about_img img {
    position: absolute;
    top: -10%;
    left: -9%;
    z-index: -1;
    margin: 0;
    width: 79%;
}
}
@media (max-width:1030px) {
.about_text {
    width: 100%;
    background-color: #fff;
    padding: 30px 20px;
    margin-top: 0;
    box-sizing: border-box;
    box-shadow: none;
}
.about_img img {
    position: relative;
    top: 10%;
    left: 10%;
    z-index: auto;
    margin: auto;
    width: 69%;
}
}
@media (max-width:640px) {
.about_text {
        padding: 30px 20px 0;
}
.about_text h2{
	font-size: 1.8rem;
    text-align: center;
}
.about_img img {
    left: auto;
    z-index: auto;
    margin: auto;
    width: 90%;
    display: block;
}
.about_text .pc{
	display: none;
}
}
/*-------------診療案内--------------------*/
.medical_information{
	padding-top: 90px;
	padding-bottom:60px;
	position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 69px;
}
@media (max-width:1030px) {
.medical_information{
	margin-top: 96px;
}
}
.medical_information .layout{
	position: relative;
	z-index: 1;
}
.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 800px;
    background-image: url('./images/back.webp'); 
    background-size: cover;
    background-position: center;
    /*filter: blur(3px);*/
    z-index: -1;
    display: flex;
    align-items: center;
}
.background-blur::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 90, 187, 0.6); 14, 110, 194 */
    z-index:0;
    background: linear-gradient(180deg, rgba(0, 104, 183, 1) 0%, rgba(0, 167, 155, 1) 100%);
    opacity: 0.9;
}
.medical_information h2{
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 30px;
    letter-spacing: 0.07em;
    text-align: center;
}
.medical_information h2:before{
    display: block;
    content: attr(data-english);
    width: 100%;
    color: #fff;
    font-family: "Lora", serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    margin-bottom: 6px;
}
.medical_information .flex{
	display: flex;
	justify-content: space-around;
	margin-bottom: 60px;
}
.medical_information .flex .box1,
.medical_information .flex .box2{
	width: 45%;
    max-width: 600px;
    height: 300px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}
.medical_information .flex .box1:after{
	position: absolute;
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	top: 0;
	background:url('./images/img01.webp'); 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-ms-background-size: cover;
	background-size: cover;
	-webkit-transition: all .3s ease-out;
	-moz-transition: all .3s ease-out;
	-ms-transition: all .3s ease-out;
	transition: all .3s ease-out;
	background-position: right;
}
.medical_information .flex .box2:after{
	position: absolute;
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	top: 0;
	background:url('./images/img02.webp'); 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-ms-background-size: cover;
	background-size: cover;
	-webkit-transition: all .3s ease-out;
	-moz-transition: all .3s ease-out;
	-ms-transition: all .3s ease-out;
	transition: all .3s ease-out;
	background-position: right;
}
.medical_information .flex .box1:hover:after,
.medical_information .flex .box2:hover:after{
	opacity: 1;
	-moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-ms-transform: scale(1.1);
	transform: scale(1.1);
}
.medical_information .flex .box1 a,
.medical_information .flex .box2 a{
    background:rgba(255, 255, 255, 1);
    display: flex; /* flexboxを使用 */
    flex-direction: column; /* 縦方向に要素を並べる */
    align-items: center; /* 要素を横方向に中央揃え */
    justify-content: center; /* 要素を縦方向に中央揃え */
    position: absolute;
    width: 50%;
    bottom: 0;
    height: 100%;
    right: 0;
    text-align: center;
    line-height: 1.5;
    text-decoration: none;
    color: #000;
    overflow: hidden;
    z-index: 1;
    transition: color 0.9s ease;
}
.medical_information .flex .box1 a:hover,
.medical_information .flex .box2 a:hover {
    color: white; 
}
.medical_information .flex .box1 a::after {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--bgc, #0693e3); 
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s cubic-bezier(.77, 0, .18, 1), height 0.8s cubic-bezier(.77, 0, .18, 1), opacity 0.8s ease;
    z-index: 0;
    opacity: 0;
}
/* ホバー時に背景が円形に広がる */
.medical_information .flex .box1 a:hover::after {
    width: 450px; /* 円形を維持するためにwidthとheightは同じ */
    height: 450px;
    opacity: 0.5;
}
.medical_information .flex .box2 a::after {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--bgc, #029f9f); 
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s cubic-bezier(.77, 0, .18, 1), height 0.8s cubic-bezier(.77, 0, .18, 1), opacity 0.8s ease;
    z-index: 0;
    opacity: 0;
}
/* ホバー時に背景が円形に広がる */
.medical_information .flex .box2 a:hover::after {
    width: 450px; /* 円形を維持するためにwidthとheightは同じ */
    height: 450px;
    opacity: 0.5;
}
.medical_information .flex .box1 h3,
.medical_information .flex .box2 h3{
    position: relative;
    z-index: 1;
}
.medical_information .flex .icon_01{
    width: 50px;
    height: 50px;
    background-image: url('./images/icon09_01.png');
    background-size: cover;
    transition: background-image 0.6s ease; /* スムーズな切り替え */
    z-index: 1;
    margin-bottom: 20px;
}
.box1 a:hover .icon_01 {
    background-image: url('./images/icon09.png'); /* ホバー時の画像 */
}
.medical_information .flex .icon_02{
    width: 50px;
    height: 50px;
    background-image: url('./images/icon10_01.png');
    background-size: cover;
    transition: background-image 0.6s ease; /* スムーズな切り替え */
    z-index: 1;
    margin-bottom: 20px;
}
.box2 a:hover .icon_02 {
    background-image: url('./images/icon10.png'); /* ホバー時の画像 */
}

.more-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    position: relative;
    justify-content: center;
}

.medical_information .flex .box1 .more-info .icon,
.medical_information .flex .box2 .more-info .icon{
    display: inline-block;
    width: 20px;
    height: 20px;
    align-items: center;
    transition: transform 0.5s cubic-bezier(.77,0,.18,1);
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    z-index: 1;
}
.inline-svg--line-edge {
    stroke: #333;
    stroke-width: 1.3;
    fill: none;
    transition: stroke 0.9s;
}
.medical_information .flex .box1 .more-info .lbl,
.medical_information .flex .box2 .more-info .lbl{
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    color: #333;
    z-index: 1;
}

/* Hover時の動き */
.box1 a:hover .more-info .icon,
.box2 a:hover .more-info .icon {
    transform: translateX(60px);
}
.medical_information .flex .box1 a:hover .more-info .lbl,
.medical_information .flex .box2 a:hover .more-info .lbl {
    opacity: 1;
    transform: translateX(0);
    color: #fff;
}
/* ホバー時の動きとアイコンの色変更 */
.medical_information .flex .box1 a:hover .more-info .icon .inline-svg--line-edge, 
.medical_information .flex .box2 a:hover .more-info .icon .inline-svg--line-edge {
    stroke: #fff; /* ホバー時にアイコンの色を白に変更 */
}
.flex_btn_container {
    display: flex;
    gap: 20px; /* ボタン間の余白を設定 */
    justify-content:space-around; /* ボタン同士を等間隔で配置 */
    flex-wrap: wrap; /* 必要に応じて折り返し可能に */
}
.flex_btn {
    position: relative;
    display: block;
    padding:30px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.4s ease-in-out;
    width: 45%;
    max-width: 600px;
    text-decoration: none;
    z-index: 1;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
.flex_btn:hover {
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}
/* 背景に広がるアニメーション */
.flex_btn::after {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--bgc, #0693e3);
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transition: width 0.8s cubic-bezier(.77, 0, .18, 1), height 0.8s cubic-bezier(.77, 0, .18, 1), opacity 0.8s ease;
    z-index: 0;
    opacity: 0;
}
/* ホバー時に背景が広がる */
.flex_btn:hover::after {
    width: 600px;
    height:600px;
    opacity: 0.5;
}
.flex_btn .header{
    display: flex;
    align-items: center; /* h3とボタンの縦中央を揃える */
    justify-content: space-between; /* スペースを適切に確保 */
}
.flex_btn .header .left_flex{
    display: flex;
    align-items: center; /* h3とボタンの縦中央を揃える */
}

.flex_btn .header .icon_03{
    width: 50px;
    height: 50px;
    background-image: url('./images/icon11_01.png');
    background-size: cover;
    transition: background-image 0.6s ease; /* スムーズな切り替え */
    position: relative;
    z-index: 1;
    margin-right: 20px;
}
.flex_btn:hover .icon_03 {
    background-image: url('./images/icon11.png'); /* ホバー時の画像 */
}
.flex_btn .header .icon_04{
    width: 50px;
    height: 50px;
    background-image: url('./images/icon12_01.png');
    background-size: cover;
    transition: background-image 0.6s ease; /* スムーズな切り替え */
    position: relative;
    z-index: 1;
    margin-right: 20px;
}
.flex_btn:hover .icon_04 {
    background-image: url('./images/icon12.png'); /* ホバー時の画像 */
}
.flex_btn .m_ttl {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.07em;
    margin: 0;
    color: #333;
    z-index: 2;
    transition: color 0.3s ease;
}
.flex_btn:hover .m_ttl {
    color: #fff; 
}
.flex_btn .header h3:after{
    display: block;
    content: attr(data-english);
    width: 100%;
    color: #333;
    font-family: "Lora", serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: normal;
    transition: color 0.3s ease;
}
.flex_btn:hover h3:after{
    color: #fff; 
}

/* アイコンのスタイル */
.flex_btn .header .icon {
    width: 24px;
    height: 24px;
    transition: transform 0.5s cubic-bezier(.77,0,.18,1), stroke 0.5s ease;
}
.inline-svg--line-edge {
    stroke: #333; /* 通常時のアイコン色 */
    stroke-width: 1.3;
    fill: none;
    transition: stroke 0.5s ease;
}
/* ホバー時にアイコンを白に */
.flex_btn:hover .header .icon .inline-svg--line-edge {
    stroke: #fff; /* アイコンがホバー時に白くなる */
}
/* ホバー時にアイコンを右に移動 */
.flex_btn:hover .header .icon {
    transform: translateX(10px); /* アイコンを右に動かす */
}
/* プラスマークボタンのスタイル */
.toggle-menu {
    font-size:14px;
   	color: #333;
    border: 1px solid #333;
    padding:6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2;    
    background: #fff;
    transition: color 0.3s ease;
} 
.flex_btn:hover .toggle-menu{
	color:#0693e3;
	border: 1px solid #0693e3;
}
.medical_information .medical_menu{
	margin:0 auto;
    width: 96%;
    padding-top: 30px;
}
.content-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    padding: 20px;
    width: 96%;
    box-sizing: border-box;
    background: #fff;
    margin: auto;
}

.content-wrapper.show {
    max-height: 1000px; /* 高さは調整してください */
    opacity: 1;
}
.content-wrapper .s_ttl {
	font-size: 16px;
	text-align:center;
	line-height:2;
	margin-top: 16px;
	margin-bottom: 16px;
	color: #333;
	position: relative;
}

.medical_menu {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列にする */
    gap: 26px; /* セル間の余白を設定 */
    padding: 0;
    /*max-height: 0;
    overflow: hidden;*/
    transition: max-height 0.5s ease, opacity 0.5s ease; /* アニメーションを設定 */
}
.medical_menu li {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 131, 179, .2);
    text-align: center;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.medical_menu li a{
	text-decoration: none;
	color: #333;
}
.left-section {
    background-color:#005abb; /* 左半分に色を付ける */
    padding: 10px;
    flex: 1; /* 幅を50%にする */
    border-radius: 10px 0 0 10px; /* 左側の丸みをつける */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 30%;
}
.right-section {
    flex: 1; /* 幅を50%にする */
    padding-left: 16px;
    text-align: left; /* テキストを左揃え */
    flex-basis: 70%;
    position: relative;
}
.left-section .icon img {
    max-width: 50px; /* アイコンのサイズを調整 */
    height: auto;
}
.right-section .ttl {
    display: block; /* インライン要素からブロック要素に変換 */
    width: 100%; /* 親要素の幅全体に広がる */
    height: 100%; /* 親要素の高さ全体に広がる */
    padding: 20px; /* リンクを大きくするために適宜パディングを追加 */
    box-sizing: border-box; /* パディングを含めたボックスモデルにする */
    text-align: left; /* テキストを左揃え */
    text-decoration: none; /* リンクの下線を除去 */
    color: inherit; /* テキストの色を親要素から引き継ぐ */
    font-size:17px;
}
.right-section .ttl:hover{
	color:#005abb;
}

@media (max-width:900px) {
	.medical_information .flex .box1:after,
	.medical_information .flex .box2:after{
	    background-position: center;
	}
	.medical_information .flex .box1 a,
	.medical_information .flex .box2 a {
	    width: 100%;
	    bottom: 0;
	    height: 30%;
	    line-height: 1;
	}
}
@media (max-width: 760px) {
	.m_sp_wrap {
	    padding: 30px 20px 0;
	    width: 100%;
	    box-sizing: border-box;
	}
	.medical_menu {
		display: block;
	    /*display: grid;
	    grid-template-columns: repeat(2, 2fr);*/
	}
	.medical_menu li {
	    margin-bottom:16px;
	}
	.right-section .ttl {
        font-size:17px;
    }
}
@media (max-width: 640px) {
	.medical_information .flex {
	    margin-bottom: 30px;
	}
	.medical_information .flex .box1, .medical_information .flex .box2 {
	    height: 200px;
	}
	.medical_information .flex .box1 a,
	.medical_information .flex .box2 a {
	    line-height: 1;
	    font-size: 14px;
	    height: 50%;
	}
	.medical_information .flex .box1:after,
	.medical_information .flex .box2:after{
	    background-position: center;
	    top: -25px;
	}
	.medical_information::before {
	    height: calc(100% - 350px);
	}
	.left-section {
	    flex-basis: 20%;
	}
	.right-section {
	    flex-basis: 80%;
	}
	.left-section .icon img {
	    max-width: 85%;
	}
	.flex_btn_container {
	    display: block;
	}
	.flex_btn{
		width: 95%;
		box-sizing: border-box;
	    margin: auto auto 20px;
	}
	.medical_menu.show {
	    padding: 30px;
	}
	.medical_information .flex .icon_01,
	.medical_information .flex .icon_02{
		margin-bottom: 0;
	}
}
@media (max-width: 560px) {
	.medical_information .flex .box1 a, .medical_information .flex .box2 a {
	    line-height: 1;
	    font-size: 12px;
	}
	.content-wrapper{
		padding: 20px 5px;
	}
	.medical_menu {
	    gap: 12px 9px;
	}
	.medical_information .medical_menu {
	    width: 97%;
	    margin: 0 auto;
	    padding: 0;
	}
	.medical_menu li {
	    border-radius: 9px;
	    box-shadow: 0 1px 3px rgba(0, 131, 179, .2);
	}
	.left-section {
	    border-radius: 9px 0 0 9px;
	}
	.medical_menu li a {
	    font-size: 12px;
	}
	.flex_btn .m_ttl {
	    font-size: 22px;
	}
	.flex_btn .s_ttl {
	    font-size: 14px;
	}
	.right-section .ttl {
	    padding: 10px;
	}
}
/*-------------入局案内--------------------*/
.apparea {
    padding-top: 30px;
    position: relative;
    width: 100%;
    overflow: hidden;
}
.ab_h2{
    position: absolute;
    left: 0;
    top: 50px;
    padding: 20px 20px 360px;
    width: 60%;
    max-width: 900px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #59c1d1 0%, #2f71b5 70%, #09229b 100%);
    /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);*/
}
.apparea h2 {
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: right;
    padding-right: 1em;
    font-variation-settings: "wght" 500;
}
.apparea h2:before {
    display: block;
    content: attr(data-english);
    width: 100%;
    color: #fffb;
    font-family: "Lora", serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    margin-bottom: 6px;
}

.apparea .flex {
    display: flex;
    margin-top: 160px;
    gap: 20px; /* コンテンツ間の余白を調整 */
    padding: 0 20px 60px;
}

.apparea .flex .app_inner {
    width: 33%;
    height: 300px; /* 高さを調整 */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column; /* 上下に分割 */
    text-align: center;
    overflow: hidden;
    border-radius: clamp(15px, 5px + 1.302vw, 5px);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.apparea .flex .app_inner .top-half {
    background-size: cover;
    background-position: center top;
    height: 80%; /* 上半分の高さ */
    width: 100%;
    transition: transform 0.3s ease-in-out; /* 拡大時のトランジション */
}
.apparea .flex .app_inner .bottom-half {
    background-color: #2580e1; /* 下半分のべた塗り背景色 */
    height: 33%; /* 下半分の高さ */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}
.apparea .flex .app_inner .bottom-half::after {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--bgc, #fff); /* デフォルトの背景色 */
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transition: width 1.0s cubic-bezier(.77, 0, .18, 1), 
                height 1.0s cubic-bezier(.77, 0, .18, 1), 
                opacity 1.0s ease;
    z-index: 0;
    opacity: 0;
}
.apparea .flex .app_inner .bottom-half:hover::after {
    width: 600px; /* 円形の大きさを調整 */
    height: 600px;
    opacity: 1; /* 広がった円の透明度を調整 */
}
.apparea .flex .app_inner h3 {
    position: relative;
    z-index: 3; /* アイコンより前に表示 */
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    transition: color 0.5s ease; 
}
.apparea .flex .app_inner .bottom-half:hover h3 {
    color: #2580e1; /* hover時の文字色 */
}
/* 各背景画像の指定 */
.ap01 .top-half {
    background-image: url('./images/ap01.jpg');
}

.ap02 .top-half {
    background-image: url('./images/ap02.jpg');
    background-position: center center !important;
}

.ap03 .top-half {
    background-image: url('./images/ap03.jpg');
}

/* アイコンを背景に重ねる */
.apparea .flex .app_inner:before {
    content: "";
    position: absolute;
    bottom: 23%; /* 位置調整 */
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
}

/* 各アイコンの背景画像 */
.ap01:before {
    background-image: url('./images/icon13.png');
}

.ap02:before {
    background-image: url('./images/icon15.png');
}

.ap03:before {
    background-image: url('./images/icon14.png');
}

/* ホバー時の画像拡大 */
.apparea .flex .app_inner:hover .top-half {
    transform: scale(1.1); /* 画像をふわっと拡大 */
}

/* コンテナ全体はそのまま、画像のみ拡大 */
.apparea .flex .app_inner:hover {
    transform: none; /* 要素全体の拡大を無効に */
}
@media (max-width: 900px) {
	.apparea .flex .app_inner h3 {
	    font-size: 1rem;
	}
}
@media (max-width: 640px) {
	.apparea h2 {
	    text-align: center;
	    padding-right: 0;
	}
	.apparea .flex {
	    display: block;
	    padding: 0 20px 7px;
	}
	.apparea .flex .app_inner {
	    width: 100%;
	    height: 220px;
	    margin-bottom: 16px;
	    box-shadow: none;
	}
	.ap02 .top-half {
	    background-position: center 80% !important;
	}
}

/*-------------研究・業績--------------------*/
.research {
    position: relative;
    width: 100%;
    overflow: hidden;
    /*background: linear-gradient(to bottom, #fff, #ffe0aa40);*/
    width: 100%;
    padding-bottom: 90px;
}
.research .layout{
	padding: 90px 20px 60px;
	box-sizing: border-box;
}
.re_h2{
    position: absolute;
    /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);*/
    background: linear-gradient(145deg, #00474f, #01918a, #009199);
    right: 0;
    top: 114px;
    padding: 20px 20px 160px;
    width: 69%;
    max-width: 900px;
    box-sizing: border-box;
}
.research h2 {
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    padding-left: 1em;
    font-variation-settings: "wght" 500;
    margin-bottom: 30px;
}
.research h2:before {
    display: block;
    content: attr(data-english);
    width: 100%;
    color: #fff;
    font-family: "Lora", serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    margin-bottom: 6px;
}
.research .flex_btn_container{
	margin-top: 170px;
}
.research .flex_btn {
    position: relative;
    display: block;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.4s ease-in-out;
    width: 45%;
    max-width: 600px;
    text-decoration: none;
    z-index: 1;
    box-shadow: 8px 9px 36px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}
.research .flex_btn::after {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--bgc, #8acbc8); /* デフォルトの背景色 */
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transition: width 1.0s cubic-bezier(.77, 0, .18, 1), 
                height 1.0s cubic-bezier(.77, 0, .18, 1), 
                opacity 1.0s ease;
    z-index: 0;
    opacity: 0;
}

/* hover時の背景色の広がり */
.research .flex_btn:hover::after {
    width: 600px; /* 円形の大きさを調整 */
    height: 600px;
    opacity: 1; /* 広がった円の透明度を調整 */
}
@media (max-width: 640px) {
	.re_h2{
		top:90px
	}
	.research h2{
		text-align: center;
		padding-left: 0;
	}
	.research .flex_btn_container {
	    margin-top: 130px;
	}
	.research .layout {
	    padding: 90px 10px 60px;
	}
    .research .flex_btn {
        width: 100%;
        box-sizing: border-box;
        margin: auto auto 20px;
    }
}

/*-------------footer上画像--------------------*/
.foot_img{
    position: relative;
    padding-top:450px;
    background-image: url('./images/footer.webp');
}
.foot_img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(180deg, rgba(0, 104, 183, 1) 0%, rgba(0, 167, 155, 1) 100%);
    opacity: 0.1;
}
.foot_inn{
    padding: 3% 5%;
        background: linear-gradient(180deg, rgba(0, 104, 183, 1) 0%, #073e79 100%);
    color: #fff;
    max-width: 1000px;
    width: 90%;
    position: absolute;
    top: 96%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    /*border-radius: 9px;*/
    text-align: center;
}
.foot_inn h2{
	line-height: 1.5;
}
.foot_inn p{
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
	align-items: end;
	margin-top: 30px;
}
.foot_inn a{
	text-decoration: none;
	font-size: 16px;
    color: #fff;
}
.foot_inn img{
	margin-right: 20px;
}

@media (max-width: 640px) {
	.research{
		padding-bottom: 0;
	}
	.foot_img {
	    padding-top: 130px;
	    background-size: cover;
	}
	.foot_inn{
		top:120%;
	}
	.foot_inn h2{
		font-size: 16px;
	}
	.foot_inn img {
	    width: 20px;
	    margin-right: 4px;
	}
	.foot_inn p {
	    align-items: center;
	    font-size: 12px;
	    margin-top: 20px;
	}
	.foot_inn a {
	    font-size: 12px;
	}
}

/*-------------footer--------------------*/
footer{
	padding-bottom: 1em;
	background: #fff;
}
footer .copy{
	text-align: center;
}
.footer-container {
    display: flex;
    justify-content: unset;
    align-items: center;
    padding: 166px 0 30px 0;
    width: 91.6%;
    margin: auto;
    max-width: 1200px;
}
footer .logo_area{
	width: 20%;
	border-right: 1px solid #ccc;
    padding-right: 60px;
}
footer .logo_area img{
	display: block;
	width: 100%;
    max-width: 300px;
	margin-bottom: 30px;
}
footer adress{
	font-size: 14px;
	color: #333;
	line-height: 1.5;
}
footer .map_btn{
    display: block;
    padding: 20px;
    border: 1px solid;
    text-align: center;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
    text-decoration: none;
    box-sizing: border-box;
    color: #333;
}
footer .map_btn i{
    margin-right: 1em;
}
footer .link_area{
    width: 40%;
    padding: 0 60px;
}
footer .link_area a{
	color: #333;
    text-decoration: none;
    display: block;
    line-height: 3;
    margin-right: 20px;
}	
footer .link_area a i{
	color: #005abb;
}
.sns_area {
    display: flex;
    gap: 15px; /* アイコン間のスペース */
}
footer .sns_area a i{
	color: #5a5a5a;
}
.social-icon {
    color: #555; /* アイコンの色 */
    font-size: 24px; /* アイコンのサイズ */
    text-decoration: none; /* アンダーラインを削除 */
    transition: color 0.3s ease; /* ホバー時の色変化をスムーズに */
}
.social-icon:hover {
    color: #017380; /* ホバー時の色 */
}
@media (max-width:1250px) {
	footer .logo_area {
	    width: 30%;
	    border-right: 1px solid #ccc;
	    padding-right: 60px;
	}
}
@media (max-width:780px) {
    footer .logo_area {
        width: 50%;
        padding-right: 30px;
	}
	footer .link_area {
    width: 50%;
    padding: 0 0 0 30px;
    box-sizing: border-box;
	}
	
}
@media (max-width:615px) {
	.footer-container {
    display: block;
	}
	footer .logo_area {
    width: 100%;
    padding-right: 0;
    text-align: center;
    border-right: 0;
    }
    footer .logo_area img {
    margin-bottom: 30px;
    margin: 0 auto 30px;
    }
    footer .link_area {
    width: 100%;
    padding: 0;
    text-align: center;
    }
    .sns_area {
    justify-content: center;
	}
}

