@charset "utf-8";

/*メイン画像エリア*/
#main_area{position: relative;top: 0; width:100%;z-index: 1;}
.slider {position: relative;width: 100%;overflow: hidden;}
.slider li {position: absolute;	top: 0;left: 0;	width: 100%;height: 100%;opacity: 0;transition: opacity 1s ease-in-out;}
.slider li.active {opacity: 1;z-index: 1;}
.slider img{width: 100%;height: auto;display: block;}
.slider p {
	position: absolute;
	top: clamp(6.25rem, 1.167rem + 18.07vw, 17.625rem); /* 好きな位置に調整 */
	left: 10%;
	color: #fff;
	font-size: clamp(1.5rem, 0.762rem + 1.15vw, 2.188rem);
	background: rgba(0,0,0,0.5); /* 読みやすくするため背景を半透明 */
	padding: 20px 50px;
	border-left:10px solid #008ac8;
	font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
	line-height: 2.0;
	letter-spacing: clamp(0rem, -0.007rem + 0.02vw, 0.013rem);
}
.sidehour{
	width:clamp(21.875rem, 19.962rem + 6.8vw, 28.125rem);
	border-radius: 15px 0 0 15px;
	position: absolute;
	bottom:5%;
	right: 0;
	z-index:2;
}
/*お知らせ・トピックス*/
.ti_news::before{
    display: block;
    content: "NEWS & TOPICS";
    font-family: "Merriweather", serif;
    font-weight: 700;
    color:#ced0db;
    font-size:28px;
    margin-bottom: 0px;
}
#topics.flexbox{justify-content: space-between;}
.leftco{width:clamp(17.5rem, 13.75rem + 7.81vw, 20rem);}
.rightco{width:calc(100% - clamp(20rem, 12.5rem + 15.63vw, 25rem));}
.btn{
    position:relative;
    display: block;
    background:#192350;
    color:#FFF;
    padding:20px 0;
    text-align:center;
    border-radius: 3px;
}
.btn::after{content:url("../images/arrow.webp");filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(40deg) brightness(109%) contrast(101%); width:20px; height: 20px; position: absolute;right:10px;top:50%;transform: translateY(-50%);}
.rightco li{display: flex;border-top:1px solid #e6e6e6;}
.rightco li:last-child{border-bottom:1px solid #e6e6e6;}
.rightco li *{padding:15px 0;}
.rightco time{font-size:clamp(0.875rem, 0.5rem + 0.78vw, 1.125rem);width:10rem;font-family:Arial, Helvetica, "sans-serif";}
.rightco a{position:relative;font-size:clamp(1rem, 0.625rem + 0.78vw, 1.25rem); width:100%; color: #192350;padding-right: 30px;}
.rightco a::after{content: url("../images/arrow.webp"); width:20px; height: 20px;position:absolute;right:0;top:50%;transform: translateY(-50%);}

/*診療案内*/
#guide::before{left:5px;top:10%; content:"Medical Information";}
.guideetc{display: grid;grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));gap: 20px;}
.guideetc h3{ height: 220px;background:#2350b5;color:#FFF;text-align: center;line-height: 220px;}
.guideetc div{display:flex; flex-direction: column;height: 220px;border:1px solid #192350; justify-content:space-between;text-align: center;}
.guideetc img{margin:auto;}
.guideetc a{  display: flex;  align-items: center;   /* 縦中央 */  justify-content: center; /* 横中央 */  background:#008ac8;  color:#FFF;  height: 70px;}
/*その悩みご相談ください*/
#parts::before{left:5px;top:13%; content:"Where is your pain?";}
#parts .flexbox.c3{ justify-content: center;}
/*先生ご挨拶*/
.imgL{max-width: 1280px; justify-content: space-between;align-items: flex-start;}
.imgL img{width:100%; max-width: clamp(12.5rem, 6.401rem + 21.69vw, 23.75rem); height: auto;}
.imgL div{max-width:calc(100% - clamp(15rem, 8.223rem + 24.1vw, 27.5rem));}
a.arrow::before{display: inline-block;vertical-align: text-bottom; content:"";background:url("../images/arrow.webp") no-repeat left/contain; width:20px;height: 20px; margin-right: 10px;}

/* レスポンシブ
------------------------------------------------------------*/
/* 1025px以下から
------------------------------------------------------------*/
@media only screen and (max-width:1025px){
	header{position: relative;background: rgba(255, 255, 255, 1.0); }
	.slider p {
		top:15%; /* 好きな位置に調整 */
		left: 6%;
		font-size: clamp(1.125rem, 0.929rem + 0.7vw, 1.375rem);
		padding: 10px 20px;
		line-height: 1.6;
		letter-spacing: 0;
	}
}
/* 768px以下から
------------------------------------------------------------*/
@media only screen and (max-width:768px){
    /*ヘッダー*/
    .sidehour{
		bottom:-70px;
		left:50%;
		transform: translateX(-50%);
		border-radius: 15px;
	}
    /*お知らせ・トピックス*/
    #topics{flex-wrap: wrap;}
    #topics .leftco,#topics .rightco{width:100%;}
    /*その悩みご相談ください*/
    #parts .flexbox.c3{ justify-content: flex-start;}
}
/* 450px以下から
------------------------------------------------------------*/
@media only screen and (max-width:450px){
    body {min-width: inherit!important;width: 100%;}
	/*メイン画像*/
    .slider{aspect-ratio:450 / 700; /* スライダー全体の比率を固定 */}
	.slider p {
		width:95%;
		top:55%; /* 好きな位置に調整 */
		left: 50%;
		transform: translate(-50%);
		font-size: clamp(1.125rem, 0.929rem + 0.7vw, 1.375rem);
		padding: 10px 20px;
		line-height: 1.6;
		letter-spacing: 0;
	}
	.sidehour{bottom:-40px;}
    /*診療案内*/
    .spbox{border:1px solid #ccc; border-radius: 5px;padding:15px;}
    .guideetc h3{ height: 100px;background:#2350b5;color:#FFF;text-align: center;line-height: 100px;}
    .guideetc a{position:relative;width:100%;}
    .guideetc a::after{content:url("../images/arrowW.webp"); width:28px; height: 28px; position: absolute;right:10px;top:50%;transform: translateY(-50%);}
    /*先生ご挨拶*/
    .imgL{flex-wrap: wrap;}
    .imgL img{ max-width: 80%;}
    .imgL div{max-width:100%;}
}