@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}
/* フォント */
@font-face {
    font-family: M_PLUS_Rounded_1c;
    src: url(../font/M_PLUS_Rounded_1c/);
}

/*ヘッダー*/
.shirokuma-flex {
    display: flex;
    padding: 2%;
    color: #5f7f67;
}

h1 {
    width: 8%;
}

h1 img {
    width: 100%;
    vertical-align: top;
}

.shirokuma-flex p {
    font-size: 2.3vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 700;
    line-height: 3.5;
}

.shirokuma-flex .tel {
    margin-right: auto;
}

.shirokuma-flex .tel {
    width: 15%;
    margin-top: 3%;
    margin-left: 20%;
    border-radius: 0.6vw;
    font-size: 1.5vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 600;
    line-height: 3.5;
    background-color:#5f7f67;
}

.shirokuma-flex .tel a {
    display: block;
    border: 2px solid transparent;
    text-align: center;
    line-height: 3;
    text-decoration: none;
    color: #fdfdfd;
    transition: 0.5s
}
.shirokuma-flex .tel a:hover {
    border: 2px solid #5f7f67;
    border-radius: 0.6vw;
    color: #5f7f67;
    background-color: #fdfdfd;
    transition: 0.5s;
}

.shirokuma-flex .web {
    width: 15%;
    margin-top: 3%;
    margin-left: 2%;
    border-radius: 0.6vw;
    font-size: 1.5vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 600;
    line-height: 3.5;
    color: #2c4242;
    background-color: #ffe27c;
}

.shirokuma-flex .web a {
    display: block;
    border: 2px solid transparent;
    text-align: center;
    line-height: 3;
    text-decoration: none;
    color: #5f7f67;
    transition: 0.5s
}
.shirokuma-flex .web a:hover {
    border: 2px solid #5f7f67;
    border-radius: 0.6vw;
    color: #5f7f67;
    background-color: #fdfdfd;
    transition: 0.5s;
}

nav {
    width: 80%;
    margin-top: 1%;
    margin-bottom: 1%;
    margin-left: auto;
    margin-right: auto;
    background-image: url(../images/bag.jpeg);
    background-size: 100% 100%;
    background-repeat: repeat;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    width: 25%;
}

nav ul li a {
    display: block;
    text-align: center;
    line-height: 3.4;
    text-decoration: none;
    color: #2c4242;
    border-bottom: 2px do transparent;
    transition: 0.5s;
    border-radius: 2px;
    font-size: 1.4vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 500;
}

nav ul li a:hover {
    border-bottom: 2px dotted #5f7f67;
    transition: 0.5s;
}

/*メインビジュアル*/

.main-visual img {
    width: 100%;
}

/*お知らせ*/ 
section:nth-of-type(1) {
    width: 80%;
    margin-top: 8%;
    margin-bottom: 8%;
    margin-left: auto;
    margin-right: auto;
}

section:nth-of-type(1) h2 {
    padding: 3%;
    font-size: 2.4vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 600;
    line-height: 1;
    color: #5f7f67;
    text-align: center;
}

section:nth-of-type(1) ul {
    list-style-type: none;

}
section:nth-of-type(1) ul li {
    margin-left: auto;
    margin-right: auto;
}

section:nth-of-type(1) ul li p {
    margin-left: 15%;
    font-size: 1.3vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 400;
    color: #2c4242;
    line-height: 3;
    border-bottom: 1px solid #5f7f67;
}

section:nth-of-type(1) ul li p time {
    margin-left: 10%;
    margin-right: 10%;
}

section:nth-of-type(1) ul li a {
    line-height: 3.4;
    text-decoration: none;
    color: #2c4242;
    border-bottom: 2px solid transparent;
    transition: 0.5s;
    border-radius: 2px;
    font-size: 1.3vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 500;
} 
section:nth-of-type(1) ul li a:hover {
    border-bottom: 2px solid #5f7f67;
    transition: 0.5s;
}
section .news-button {
    width: 16%;
    margin-top: 3%;
    margin-left: auto;
    border-radius: 0.6vw;
    color: #5f7f67;
    font-size: 1.1vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 400;
    line-height: 3;
    background-color: #ffe27c;
}

section .news-button a {
    display: block;
    border: 2px solid transparent;
    text-align: center;
    line-height: 2;
    text-decoration: none;
    color: #5f7f67;
    transition: 0.5s
}

section .news-button a:hover {
    border: 2px solid #5f7f67;
    border-radius: 0.6vw;
    color: #5f7f67;
    background-color: #fdfdfd;
    transition: 0.5s;
}

/* 当院について */
section:nth-of-type(2) {
    background-image: url(../images/clinic.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

section:nth-of-type(2) {
    width: 80%;
    margin-top: 8%;
    margin-bottom: 8%;
    margin-left: auto;
    margin-right: auto;
}

section:nth-of-type(2) h2 {
    margin-bottom: 3%;
    padding: 5%;
    font-size: 2.4vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 600;
    color: #5f7f67;
    text-shadow: 4px 4px 5px #fdfdfd;
    line-height: 1;
    text-align: center;
}

section:nth-of-type(2) h3 {
    padding-bottom: 5%;
    text-align: center;
    font-size: 3.2vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-shadow: 5px 5px 6px #fdfdfd;
    color: #2c4242;
    line-height: 2;
}

section:nth-of-type(2) p {
    margin-left: 45%;
    padding: 2%;
    white-space: pre-wrap;
    font-size: 1.3vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 400;
    color: #2c4242;
    text-shadow: 2px 2px 3px #fdfdfd;
    line-height: 1.7;
}

/*診療内容*/
.contents-img-flex {
    display: flex;
    margin-top: 8%;
    margin-bottom: 8%;
}

.contents-img-flex img {
    width: 40%;
}

.contents-img-flex img:nth-of-type(2) {
    margin-left: 5%;
    margin-right: 5%;
}

.contents-img-flex2 {
    display: flex;
    margin-bottom: 5%;
}

.contents-img-flex2 img {
    width: 40%;
}

.contents-img-flex2 img:nth-of-type(2) {
    margin-left: 5%;
    margin-right: 5%;
}

section:nth-of-type(3) {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

section:nth-of-type(3) h2 {
    margin-top: 10%;
    margin-bottom: 3%;
    padding: 2%;
    text-align: left;
    margin-bottom: 3%;
    padding: 3%;
    font-size: 2.4vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 600;
    color: #5f7f67;
    line-height: 1;
    text-align: center;
}

section:nth-of-type(3) figcaption {
    padding: 2%;
    white-space: pre-wrap;
    font-size: 1.3vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 500;
    line-height: 1.7;
    color: #2c4242;
}

section .medicaltreatment-button {
    width: 20%;
    margin-top: 3%;
    margin-left: auto;
    border-radius: 0.6vw;
    color: #5f7f67;
    font-size: 1.1vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 400;
    line-height: 3;
    background-color: #ffe27c;
}

section .medicaltreatment-button a {
    display: block;
    border: 2px solid transparent;
    text-align: center;
    line-height: 2;
    text-decoration: none;
    color: #5f7f67;
    transition: 0.5s
}

 section .medicaltreatment-button a:hover {
    border: 2px solid #5f7f67;
    border-radius: 0.6vw;
    color: #5f7f67;
    background-color: #fdfdfd;
    transition: 0.5s;
}

/* 当院の特徴 */
section:nth-of-type(4) {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.touin h2 {
    width: 80%;
    margin-top: 8%;
    margin-bottom: 3%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3%;
    padding: 3%;
    font-size: 2.4vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 600;
    color: #5f7f67;
    line-height: 1;
    text-align: center;
}

.point-flex {
    display: flex;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 7%;
}

.point-img-box {
    width: 40%;
    margin-left: 2%;
    margin-right: 2%;
}


.point-box {
    width: 40%;
    margin-left: 2%;
    margin-right: 2%;
}

.point-box h3 {
    margin-top: 8%;
    margin-bottom: 8%;
    padding-top: 2%;
    text-align: center;
    font-size: 1.5vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 500;
    color: #2c4242;
    line-height: 3;
}

.point-box p {
    padding: 5%;
    font-size: 1.3vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 400;
    color: #2c4242;
    line-height: 1.6;
}

.point-img-box img {
    width: 100%;
    vertical-align: bottom;
}

section .detail-button {
    width: 35%;
    margin-top: 3%;
    margin-left: auto;
    border-radius: 0.6vw;
    color: #5f7f67;
    font-size: 1.1vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 400;
    line-height: 3;
    background-color: #ffe27c;
}

section .detail-button a {
    display: block;
    border: 2px solid transparent;
    text-align: center;
    line-height: 2;
    text-decoration: none;
    color: #5f7f67;
    transition: 0.5s
}

 section .detail-button a:hover {
    border: 2px solid #5f7f67;
    border-radius: 0.6vw;
    color: #5f7f67;
    background-color: #fdfdfd;
    transition: 0.5s;
}

/* 診療時間 */
section:nth-of-type(8) {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.clinic-schedule {
  width: 80%;
  border-collapse: collapse;
  margin: 3% auto;
  font-size: 1vw;
  text-align: center;
}

.clinic-schedule th,
.clinic-schedule td {
  border: 1px solid #ccc;
  padding: 2%;
}

.clinic-schedule thead th {
  background-color: #ffe27c;
}

.time h3 {
    margin-left: auto;
    margin-right: auto;
    padding: 2%;
    margin-bottom: 3%;
    padding: 3%;
    font-size: 2.4vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 600;
    color: #5f7f67;
    line-height: 1;
    text-align: center;
}

section:nth-of-type(8) p {
    margin-left: auto;
    margin-right: auto;
    font-size: 1.3vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 400;
    color: #2c4242;
    line-height: 1.6;
    text-align: center;  
}

/* アクセス */
.sub-section {
    display: flex;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

section:nth-of-type(9) h3 {
    margin-top: 10%;
    margin-bottom: -3%;
    font-size: 2.4vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 600;
    color: #5f7f67;
    text-align: center;
}

.section-leftbox {
    width: 50%;
    margin-right: 2%;
}

.section-rightbox {
    width: 40%;
}

section:nth-of-type(9)  p {
    font-size: 1.3vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 400;
    font-style: normal;
    color: #2c4242;
    line-height: 1.5;
}

iframe {
    display: block;
    width: 90%;
    height: 20vw;  
    margin-left: auto;
}

/* トップへ戻る */
#page_top {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 0;
    bottom: 0;
    background: #2c4242;
    opacity: 0.6;
    border-radius: 50%;
}

#page_top a {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    text-decoration: none;
}

#page_top a::before{
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f106';
    font-size: 25px;
    color: #fdfdfd;
    position: absolute;
    width: 25px;
    height: 25px;
    top: -5px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}

/* フッター */
footer {
    padding-top: 2%;
    padding-right: 6%;
    padding-bottom: 2%;
    padding-left: 6%;
    background-color: #5f7f67;
}

.footer-shirokuma-flex {
    display: flex;
    color: #ffe27c;
}
footer h1 {
    width: 8%;
}

footer img {
    width: 100%;
    vertical-align: top;
}

footer p {
    font-size: 2.3vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 700;
    line-height: 3.5;
}
.footer-flexbox {
    display: flex;
}

footer ul {
    width: 70%;
    display: flex;
    list-style-type: none;
    margin-left: auto;
    margin-right: auto;
    line-height: 3;
}

footer ul li {
    width: 20%;
    margin-right: 10%;
}

footer ul li:nth-of-type(2) {
    width: 30%;
}

footer ul li a {
    line-height: 3.4;
    text-decoration: none;
    color: #fdfdfd;
    border-bottom: 2px dotted transparent;
    transition: 0.5s;
    border-radius: 2px;
    font-size: 1.2vw;
    font-family: M_PLUS_Rounded_1c;
    font-weight: 500;
}

footer ul li a:hover {
    border-bottom: 2px dotted #ffe27c;
    transition: 0.5s;
}

footer .copy {
    margin-top: 3%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.2vw;
    color: #fdfdfd;
}