@charset "utf-8";
/* CSS Document */

/* Shinseikai - Open Hospital
-----------------------------------------------------*/

/* ==============================================
    universal reset
============================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ==============================================
    html,body and base
============================================== */
html,body {
	height:100%;
}

/* general params
------------------*/
table {
	empty-cells: show;
	font-size: 100%;
	border-collapse: collapse;
}
img {
	border: none;
	height: auto;
	vertical-align: top;
    image-rendering: -webkit-optimize-contrast;
}
h1,h2,h3,h4,h5,h6 {
	font-weight: bold;
	font-size: 100%;
}

ul { letter-spacing: -.40em; }
ul li { letter-spacing: normal; }

/* acronyms and abbreviations styles 
-------------------------------------*/
acronym,abbr {
	cursor: help;
}

/* ==============================================
    body
============================================== */
body {
	text-align: center;
	line-height: 1.2;
	color: #3c3c3c;
	-webkit-text-size-adjust: 100%;
	font-family: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif;
    font-style: normal;
    font-size: 100%;
}
@media screen and (max-width: 900px) {
    body {
        font-size: 1.777vw;
    }
}
@media screen and (max-width: 780px) {
    body {
        font-size: 14px;
    }
}
@media screen and (max-width: 700px) {
	body {
		min-width: 300px;
	}
}
@media print {
	body {
		min-width: 950px;
	}
}

/* ==============================================
    link
============================================== */
a {
	transition: all .4s;
	text-decoration: none;
}
@media (hover: hover) {
	a:hover,
	#pagetop img:hover {
		opacity: 0.7;
	}
}

/* ==============================================
    
============================================== */
.inner,
header #siteid,
main,
footer p {
    width: 100%;
    max-width: 1000px;
	margin: 0 auto;
	text-align: left;
}
@media screen and (max-width: 1040px) {
    main,
    footer p {
        width: calc(100% - 40px);
    }
}
@media screen and (max-width: 1020px) {
    #top_title .inner,
    #title .inner,
    header #siteid {
        width: calc(100% - 20px);
    }
}
@media screen and (max-width: 700px) {
    main,
    footer p {
        width: calc(100% - 20px);
    }
}
@media screen and (max-width: 400px) {
    #top_title .inner,
    #title .inner,
    header #siteid {
        width: calc(100% - 10px);
    }
}

.sp {
	display: none;
}

/* ==============================================
    container
============================================== */
#container {
	position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
footer {
    margin-top: auto;
}

/* ==============================================
    header
============================================== */
header #siteid {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
}
header #title {
    overflow: hidden;
    margin-bottom: 60px;
    padding-bottom: 15px;
    background: linear-gradient(rgba(120, 209, 234, 1) 0%, rgba(255, 255, 255, 1) 100%);
}
header #title .inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
header #title h1 {
    margin-top: -65px;
    margin-right: 1em;
}
header #title h1 img {
    width: 265px;
}

header nav {
    width: 660px;
    padding-bottom: 15px;
}
header nav ul {
	list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 25px 30px;
}
#top_menu {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 25px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #8fd9ed;
}
header nav ul a,
#top_menu a {
    position: relative;
    display: block;
    padding: 0.7em 1.5em;
    border-radius: 3em;
    border: 2px solid #094;
    background: #fff481;
    font-size: 1.125em;
    font-weight: bold;
    color: #094;
}
header nav ul a::after,
#top_menu a::after {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    content: "";
    display: block;
    width: 12px;
    height: 14px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 100%, 50% 50%, 0% 0%);
    background: #094;
	transition: all .4s;
}
@media (hover: hover) {
    header nav ul a:hover::after {
        right: 16px;
    }
}
@media screen and (max-width: 1000px) {
    header #siteid {
        height: clamp(3.75rem, -1.25rem + 10vw, 5rem);
    }
    header #siteid img {
        width: auto;
        height: clamp(2.5rem, -1.25rem + 7.5vw, 3.438rem);
    }
    header #title {
        margin-bottom: clamp(1.25rem, -0.25rem + 6.4vw, 3.75rem);
    }
    header nav ul {
        grid-gap: 20px 15px;
    }
}
@media screen and (max-width: 945px) {
    #top_menu {
        grid-template-columns: repeat(3, auto);
        grid-gap: 15px;
    }
}
@media screen and (max-width: 900px) {
    header #title h1 {
        margin-top: -7.2vw;
    }
    header #title h1 img {
        width: 29vw;
    }
}
@media screen and (max-width: 800px) {
    header nav ul {
        grid-template-columns: auto auto;
    }
}
@media screen and (max-width: 760px) {
    header #title h1 {
        margin-top: -54px;
    }
    header #title h1 img {
        width: 220px;
    }
    header nav ul,
    #top_menu {
        grid-gap: 10px;
    }
    header nav ul a,
    #top_menu a {
        padding: 0.5em 1em;
        font-size: 1em;
    }
    header nav ul a::after,
    #top_menu a::after {
        right: 10px;
        width: 10px;
        height: 12px;
    }
}
@media screen and (max-width: 660px) {
    header nav {
        width: 300px;
        padding-bottom: 0;
    }
    header nav ul {
        display: block;
    }
    header nav ul li {
        margin-top: 5px;
    }
    header #title .inner {
        align-items: flex-start;
    }
}
@media screen and (max-width: 570px) {
    #top_menu {
        display: block;
        text-align: center;
    }
    #top_menu li {
        max-width: 240px;
        margin: 0 auto 5px;
        text-align: left;
    }
}
@media screen and (max-width: 470px) {
    header #title h1 {
        margin-top: -11vw;
    }
    header #title h1 img {
        width: calc(100vw - 250px);
    }
}
@media screen and (max-width: 400px) {
    header #siteid {
        height: clamp(2.5rem, -2.5rem + 25vw, 3.75rem);
    }
    header #siteid img {
        height: clamp(1.875rem, -0.625rem + 12.5vw, 2.5rem);
    }
    header #title h1 {
        margin-top: -35px;
        margin-right: 0.7em;
    }
    header #title h1 img {
        width: 150px;
    }
    header nav ul a {
        padding: 0.4em 0.8em;
        font-size: 0.935em;
    }
    header nav ul a::after {
        right: 8px;
        width: 8px;
        height: 12px;
    }
}

/* ==============================================
    top_title
============================================== */
#top_title {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 167, 214, 1) 0%, rgba(255, 255, 255, 1) 100%);
}
#top_title::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: url("image/title_dot.png") no-repeat top center;
}
#top_title .inner {
    position: relative;
    height: 400px;
}

#top_title .inner h1 {
    position: relative;
    margin-top: -50px;
    text-align: center;
}
#top_title h1 img {
    max-width: 100%;
}
#top_title .inner h1 img:first-of-type {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
}
#top_title_catch,
#top_title_date {
    position: absolute;
}
#top_title_catch {
    bottom: 18px;
    left: 0;
}
#top_title_catch img {
    width: 240px;
}
#top_title_date {
    bottom: 135px;
    right: 0;
}
#top_title_date img {
    width: 215px;
}
#top_title_comment {
    margin-bottom: 2em;
    font-size: 1.125em;
    text-align: center;
    line-height: 1.666em;
}
@media screen and (max-width: 1000px) {
    #top_title::before {
        background-size: contain;
    }
}
@media screen and (max-width: 900px) {
    #top_title::before {
        background-image: url("image/title_dot2.png");
        background-size: 110% auto;
    }
    #top_title .inner {
        height: 490px;
    }
    #top_title_date {
        bottom: 60px;
    }
}
@media screen and (max-width: 800px) {
    #top_title::before {
        background-size: 120% auto;
    }
}
@media screen and (max-width: 700px) {
    #top_title .inner {
        height: calc(47vw + 160px);
    }
    #top_title .inner h1 {
        margin-top: -7vw;
    }
    #top_title .inner h1 img:first-of-type {
        width: 90vw;
        top: 11vw;
    }
    #top_title .inner h1 img:last-of-type {
        width: 54vw;
    }
    #top_title_catch img {
        width: 34vw;
    }
    #top_title_comment br.sp {
        display: block;
    }
}
@media screen and (max-width: 650px) {
    #top_title_date {
        bottom: 40px;
    }
}
@media screen and (max-width: 600px) {
    #top_title .inner {
        display: none;
    }
    #top_title::before {
        content: none;
    }
    #top_title h1.sp {
        display: block;
        margin-bottom: 1em;
    }
}
@media screen and (max-width: 400px) {
    #top_title_comment {
        font-size: 1em;
    }
}

/* ==============================================
    main
============================================== */
main {
    margin-bottom: 140px;
}
main section + section {
    margin-top: 60px;
}
main p + section {
    margin-top: 30px;
}

main .grid,
main .slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}
main .grid div img,
main .slider img {
    width: 100%;
    max-width: 320px;
}
main .grid div span {
    display: block;
    margin: 0.8em 0.1em 0;
    line-height: 1.4;
}
main .grid + p,
main p + .grid {
    margin-top: 20px;
}
@media screen and (max-width: 1000px) {
    main {
        margin-bottom: clamp(5rem, 2.75rem + 9.6vw, 8.75rem);
    }
    main .grid,
    main .slider {
        grid-gap: 2vw;
    }
    main .grid + p,
    main p + .grid {
        margin-top: 2vw;
    }
}
@media screen and (max-width: 740px) {
    main .grid,
    main .slider {
        max-width: calc(640px + 2vw);
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 25px 15px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media screen and (max-width: 520px) {
    main .grid,
    main .slider {
        display: block;
        max-width: 320px;
    }
    main .grid div + div {
        margin-top: 20px;
    }
    
    section:has(.slider) {
        padding-bottom: 1px;
    }
}

.tit {
    position: relative;
    margin-left: 1.7em;
    margin-bottom: 1em;
    padding: 0.4em 1em 0.3em;
    background: #009944;
    border-radius: 2em;
    font-size: 1.5em;
    color: #fff481;
}
.tit::before {
    content: "";
    display: block;
    position: absolute;
    left: -1.7em;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #009944;
}
.titSub {
    margin-bottom: 1.5em;
    padding: 0.4em 0.2em 0.4em 1.5em;
    border-top: 2px solid #8fd9ed;
    border-bottom: 2px solid #8fd9ed;
    font-size: 1.25em;
    color: #009944;
}
.titSub::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    margin-left: -1.3em;
    margin-top: -0.2em;
    margin-right: 0.3em;
    background: #ffe222;
}
@media screen and (max-width: 500px) {
    .tit {
        font-size: 1.25em;
    }
    .titSub {
        font-size: 1.125em;
    }
}

.list {
    margin: 1em 0 1.5em;
    list-style: none;
}
.list li {
    display: inline-block;
    padding-right: 2em;
}

main p {
	line-height: 1.6;
}
main dt,
main dd,
main li {
	line-height: 1.4;
}

/* ==============================================
    footer
============================================== */
footer {
    padding: 0.7em;
    background: #f2e3e8;
    text-align: center;
}
footer p {
    font-size: 14px;
    color: #6d6d6d;
}

/* ==============================================
    pagetop
============================================== */
#pagetop {
    position: fixed; /*固定表示*/
    bottom: 10px;
    right: 0;
    display: none; /*通常は非表示に*/
}
#pagetop img {
	cursor: pointer;
}

/* ==============================================
    index
============================================== */
#opening section {
    margin-top: 2em;
}

/* ==============================================
    slick style
============================================== */
.slick-dots {
    bottom: -30px;
}
.slick-dots li button::before {
	font-size: 12px;
	color: #bbb;
	opacity: 1;
	transition: .4s;
}
.slick-dots li.slick-active button::before {
	color: #000;
}
.slick-dots li button:hover::before {
	opacity: 0.8;
}
