@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    background-color: #e2f4d6;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
}

body {
    margin-left: auto;
    margin-right: auto;
}

/* ヘッダー */
header {
    display: flex;
    width: 80%;
    margin-top: 2%;
    margin-left: auto;
    margin-right: auto;
}

.header-child1 {
    width: 25%;
}

h1 img {
    width: 100%;
}

.header-child2 {
    width: 75%;
}

.header-child2-box {
    width: 70%;
    display: flex;
    margin-left: auto;
    line-height: 1.8;
    align-items: baseline;
}

.header-box-1 {
    width: 30%;
}

.header-box-1 p {
    font-size: 1.2vw;
    color: #004d25;
    text-align: center;
}

.header-box-2 {
    width: 40%;
}

.header-box-2 img {
    width: 1.2vw;
}

.header-box-2 p {
    font-size: 2vw;
    color: red;
    text-align: center;
}

.header-box-3 {
    width: 35%;
}

.header-box-3 p {
    height: 2.6vw;
    line-height: 1.7;
    font-size: 1.6vw;
    color: white;
    text-align: center;
    background-color: red;
    border-radius: 10px;
}

.header-box-3 i {
    font-size: 2vw;
    color: white;
}

nav {
    width: 90%;
    margin-left: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    width: 25%;
}

nav ul li a {
    display: block;
    text-align: center;
    line-height: 2;
    font-size: 1.4vw;
    color: #004d25;
}
/* セクション */
main {
    margin-top: 3%;
    margin-bottom: 5%;
}

main section h2 {
    margin-bottom: 5%;
    text-align: center;
    font-size: 3vw;
    color: #004d25;
    background: linear-gradient(transparent 60%, yellowgreen 50%);
}

main section h3 {
    margin-bottom: 2%;
    text-align: center;
    font-size: 2vw;
    color: #004d25;
    white-space: pre-wrap;
}

main section h4 {
    margin-bottom: 2%;
    font-size: 1.6vw;
    color: yellowgreen;
    white-space: pre-wrap;
}

main section p {
    line-height: 1.3;
    font-size: 1.7vw;
    color: #004d25;
    white-space: pre-wrap;
}

section {
    margin-left: auto;
    margin-right: auto;
}

/* 本田歯科について */
section:nth-of-type(1) h2 {
    width: 25%;
    margin-left: auto;
    margin-right: auto;
}

.about1 {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

section:nth-of-type(2) {
    width: 70%;
    display: flex;
    margin-top: 5%;
}

.img-about01 {
    display: block;
    width: 20%;
}

.img-about01 img {
    width: 100%;
}

.text-about01 {
    width: 24%;
    margin-left: 3%;
}

.img-about02 {
    display: block;
    width: 20%;
    margin-left: 6%;
}

.img-about02 img {
    width: 100%;
}

.text-about02 {
    width: 24%;
    margin-left: 3%;
}

section:nth-of-type(3) {
    width: 50%;
    margin-top: 5%;
    padding-top: 2vw;
    padding-bottom: 2vw;
    border-top: 2px dotted green;
    border-bottom: 3px dotted green;
}

section:nth-of-type(3) h4 {
    text-align: center;
}

.parent-box1 {
    width: 80%;
    display: flex;
    margin-top: 5%;
    margin-left: auto;
    margin-right: auto;
}

.text-about03 {
    width: 50%;
}

.img-about03 {
    width: 45%;
    margin-left: 5%;
}

.img-about03 img {
    display: block;
    width: 100%;
    border-radius: 20px;

}

.parent-box2 {
    width: 80%;
    display: flex;
    margin-top: 5%;
    margin-left: auto;
    margin-right: auto;
}

.img-about04 {
    width: 45%;
}

.img-about04 img {
    display: block;
    width: 100%;
    border-radius: 20px;

}

.text-about04 {
    width: 50%;
    margin-left: 5%;

}

/* フッター */

footer {
    width: 80%;
    display: flex;
    padding-bottom: 2%;
    margin-top: 2%;
    margin-left: auto;
    margin-right: auto;
}
.footer-box1 {
    width: 15%;
    margin-left: 10%;
}

.footer-box1 img {
    width: 100%;
}

.footer-box2 {
    width: 30%;
    margin-left: 35%;
}

.footer-box2 p {
    padding: 1%;
    color: #004d25;
    font-size: 0.9vw;
}