:root {
  --bg-color: #e5e1de;
  --pri-color: #fc795e;
  --sec-color: #918682;
  --ter-color: #eee6de;
  --txt-color: #2f2f2f;
  --lig-bro: #f7f5f5;
  --white: #fefefe;
  --poppins: "Poppins";
}
html {
  font-size: 62.5%;
  scroll-padding-top: 150px;
}
a:link,
a:active,
a:visited {
    color: var(--txt-color);
    transition: all .5s ease;
}
a:hover {
    color: var(--pri-color);
    opacity: 0.5;
}
img {
    display: block;
}
h2 {
    margin-bottom: 20px;
}
h2 img {
    max-inline-size: fit-content;
}
h3 {
    margin-bottom: 50px;
}
body {
    background-color: var(--bg-color);
    color: var(--txt-color);
    font-family: "Noto Sans JP", "Zen Maru Gothic", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    font-size: 1.6rem;
}
header {
    background-image: linear-gradient(0deg, transparent, var(--ter-color) 80%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}
header .bar {
    align-items: center;
    background-color: var(--pri-color);
    border-radius: 0 0 10px 10px;
    color: var(--white);
    display: flex;
    font-size: 1.3rem;
    height: 40px;
    padding: 0 50px;
}
header .bar br {
    display: none;
}
header .container {
    align-items: center;
    display: flex;
    height: 122px;
    justify-content: space-between;
    padding: 0 50px;
}
header nav {
    align-items: center;
    display: flex;
    gap: 15px;
    justify-content: space-between;
}
header nav a:hover {
    color: var(--pri-color);
    opacity: 1;
}
header nav .tel {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 1.3rem;
    gap: 3px;
}
header .sp-menu {
    display: none;
}
footer {
    background-color: var(--sec-color);
    padding: 100px 100px 50px 100px;
}
footer .container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
}
footer .container .address {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
footer .container .navi {
    display: flex;
    gap: 20px;
}
footer .container .navi a:link,
footer .container .navi a:active,
footer .container .navi a:visited {
    color: var(--white);
    transition: all .5s ease;
}
footer .container .navi a:hover {
    opacity: .5;
}
footer .container .navi li {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
footer .container .navi .sub {
    font-size: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
footer .container .navi .sub a:link,
footer .container .navi .sub a:active,
footer .container .navi .sub a:visited {
    color: var(--ter-color);
    transition: all .5s ease;
}
footer .container .navi .sub a:hover {
    opacity: .5;
}
footer .container .navi .sub li {
    background-image: url("../img/common/list-disc.svg");
    background-position: 10px center;
    background-repeat: no-repeat;
    background-size: 8px 8px;
    padding-left: 23px;
}
footer .copylight {
    color: var(--white);
    font-family: var(--poppins);
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
}
@media screen and (max-width: 1140px) {
    h3 {
        margin-bottom: 30px;
    }
    header .bar {
        font-size: 1.2rem;
        height: 60px;
        padding: 0 20px;
    }
    header .bar br {
        display: block;
    }
    header .container {
        height: 90px;
        padding: 0 25px;
    }
    header .logo img {
        height: 50px;
        width: auto;
    }
    header nav {
        display: none;
    }
    header .sp-menu {
        display: flex;
        gap: 10px;
    }
    header .sp-menu .btn-tel {
        align-items: center;
        background-color: var(--pri-color);
        border-radius: 5px;
        display: flex;
        height: 45px;
        justify-content: center;
        width: 45px;
    }
    header .hamburger {
        align-items: center;
        background-color: var(--pri-color);
        border-radius: 5px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 6px;
        height: 45px;
        justify-content: center;
        width: 45px;
        z-index: 50;
    }
    header .hamburger span {
        background-color: var(--white);
        height: 1px;
        transition: 0.5s;
        width: 10px;
    }
    header .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    }
    header .hamburger.active span:nth-child(2) {
    opacity: 0;
    }
    header .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    }
    header .menu {
        background-color: var(--bg-color);
        box-sizing: border-box;
        height: calc(100vh - 150px);
        opacity: 0;
        overflow-x: scroll;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 20px 30px 50px;
        pointer-events: none;
        position: fixed;
        right: 0;
        top: 150px;
        transition: opacity 0.5s ease;
        width: 100%;
        z-index: 10;
    }
    header .menu.open {
        opacity: 1;
        pointer-events: auto;
    }
    header .menu .navi {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    header .menu .navi > li {
        border-bottom: 1px solid var(--lig-bro);
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
    header .menu .navi > li:first-of-type {
        border-top: 1px solid var(--lig-bro);
    }
    header .menu .navi .sub {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    header .menu .navi .sub li {
        background-image: url("../img/common/list-disc-b.svg");
        background-position: 10px center;
        background-repeat: no-repeat;
        background-size: 8px 8px;
        padding-left: 23px;
    }
    header .menu > img {
        max-block-size: fit-content;
    }
    footer {
        padding: 60px 30px 50px;
    }
    footer .container {
        flex-direction: column;
        margin-bottom: 50px;
    }
    footer .container .address {
        margin-bottom: 50px;
    }
    footer .container .navi {
        flex-direction: column;
        gap: 0;
    }
    footer .container .navi > li {
        border-bottom: 1px solid var(--ter-color);
        padding: 20px;
    }
    footer .container .navi > li:first-of-type {
        border-top: 1px solid var(--ter-color);
    }
    footer .copylight {
        font-size: 1rem;
    }
}
main {
    margin-top: 162px;
}
main .visual {
    display: flex;
    height: calc(100svh - 162px);
    justify-content: space-between;
    position: relative;
}
main .visual .txt {
   left: 100px;
   position: relative;
   top: 100px;
   width: fit-content;
   z-index: 10;
}
main .visual .img {
    border-radius: 310px 0 0 310px;
    background-image: url("../img/top/fv.webp");
    height: 100%;
    max-height: 620px;
    max-width: 1040px;
    position: relative;
    width: 100%;
}
main .visual .img .scroll-down {
    bottom: 100px;
    left: 0;
    position: absolute;
}
main .loop-text {
    position: absolute;
    bottom: 0;
}
@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
main .loop-text .scroll-infinity__wrap {
    display: flex;
    overflow: hidden;
}
main .loop-text .scroll-infinity__list {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
main .loop-text .scroll-infinity__list--left {
    animation: infinity-scroll-left 80s infinite linear 0.8s both;
}
main .loop-text .scroll-infinity__item {
    flex: 0 0 auto;
}
main .loop-text .scroll-infinity__item > img {
    display: block;
    height: 88px;
    width: auto;
}
section {
    padding: 150px 0;
}
section .wrap {
    margin: auto;
    max-width: 1140px;
    width: 100%;
}
#btn-area {
    padding: 100px 0 0;
}
#btn-area ul {
    display: flex;
    gap: 20px;
    justify-content: center;
}
#about-clinic {
    padding: 120px 0 150px;
}
#about-clinic ul {
    display: flex;
    justify-content: space-between;
}
#about-clinic ul .txt {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
#menu {
    background-color: var(--pri-color);
}
#menu ul {
    align-items: center;
    display: flex;
    justify-content: space-between;
}
#menu ul li {
    align-self: center;
    display: flex;
    flex: 1;
    justify-content: center;
    position: relative;
}
#menu ul li::before {
    background-color: var(--white);
    bottom: 0;
    content: '';
    display: block;
    height: 100px;
    left: 0;
    margin: auto;
    top: 0;
    position: absolute;
    width: 1px;
}
#menu ul li:first-of-type:before {
    display: none;
}
#news {
    background-color: var(--lig-bro);
}
#news .tit-area {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}
#news .news-list {
    display: flex;
    flex-direction: column;
}
#news .news-list dl {
    align-items: center;
    background-image: repeating-linear-gradient(90deg, var(--sec-color), var(--sec-color) 1px, transparent 1px, transparent 6px), repeating-linear-gradient(90deg, var(--sec-color), var(--sec-color) 1px, transparent 1px, transparent 6px);
    background-position: left top;
    background-repeat: repeat-x;
    background-size: 100% 1px;
    display: flex;
    gap: 30px;
    padding: 25px;
}
#news .news-list dl:last-of-type {
  background-position: left top, left bottom;
  background-repeat: repeat-x, repeat-x;
  background-size: 100% 1px, 100% 1px;
}
#news .news-list a:link,
#news .news-list a:visited,
#news .news-list a:active {
    text-decoration: underline;
}
#news .news-list a:hover {
    opacity: 1;
}
@media screen and (min-width: 1440px) {
    main .visual .img {
        border-radius: 450px 0 0 450px;
        max-height: 858px;
        max-width: 1440px;
    }
    main .visual .img .scroll-down {
        bottom: 150px;
    }
}
@media screen and (max-width: 1140px) {
    main {
        margin-top: 150px;
    }
    main .visual {
        flex-direction: column;
        height: calc(100svh - 150px);
        justify-content: normal;
        max-height: 520px;
    }
    main .visual .txt {
        height: 120px;
        left: 30px;
        top: 30px;
    }
    main .visual .txt img {
        max-height: 155px;
        max-width: 276px;
    }
    main .visual .img {
        border-radius: 500px 0 0 500px;
        margin-left: 30px;
        max-height: 365px;
        max-width: none;
        width: calc(100% - 30px);
    }
    main .visual .img .scroll-down {
        bottom: 50px;
        height: 100px;
        width: 100px;
    }
    main .loop-text .scroll-infinity__item > img {
        height: 58px;
    }
    section {
        padding: 80px 0;
    }
    #btn-area {
        padding: 30px 0 0;
    }
    #btn-area ul {
        align-items: center;
        flex-direction: column;
        gap: 5px;
    }
    #btn-area ul li img {
        height: auto;
        max-width: 310px;
    }
    #about-clinic {
        padding: 50px 0 80px;
    }
    #about-clinic ul {
        flex-direction: column;
    }
    #about-clinic ul .txt {
        padding: 0 30px;
    }
    #about-clinic ul .txt img {
        height: auto;
        width: 100%;
    }
    .more-btn {
        height: auto;
        max-width: 140px;
    }
    #about-clinic ul .img {
        margin-top: 80px;
    }
    #menu ul {
        flex-wrap: wrap;
        gap: 60px 0;
        padding: 0 30px;
    }
    #menu ul li::before {
        display: none;
    }
    #menu ul li img {
        height: auto;
        max-width: 140px;
    }
    #clinic {
        padding: 80px 30px;
    }
    #news {
        padding: 80px 30px;
    }
    #news .tit-area img {
        height: 38px;
        width: auto;
    }
    #news .news-list {
        font-size: 1.4rem;
    }
    #news .news-list dl {
        flex-wrap: wrap;
        gap: 10px;
        padding: 20px;
    }
}
@media screen and (max-width: 768px) {
    main .visual .img {
        max-height: 365px;
    }
    #news .tit-area {
        margin-bottom: 30px;
    }
}
main.lower {
    padding: 0 0 160px;
}
section#head {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 1240px;
    padding: 50px 50px 30px;
    width: 100%;
}
section#head .breadcrumbs {
    display: flex;
    justify-content: end;
}
section.lower {
    background-color: var(--lig-bro);
    border-radius: 30px;
    margin: auto;
    max-width: 1240px;
    padding: 80px;
    width: 100%;
}
section.lower h3:nth-child(n+2) {
    margin-top: 80px;
}
section.lower + section.lower {
    margin-top: 80px;
}
section#message h3 {
    margin-bottom: 30px;
}
section#about .map {
    display: flex;
    justify-content: space-between;
}
section#treatment .reserve img {
    margin: auto;
}
section#news-info.lower img {
    max-inline-size: fit-content;
}
section#news-info.lower .link {
    margin: 50px 0 20px;
}
@media screen and (max-width: 768px) {
    main.lower {
        padding: 0;
    }
    section#head {
        padding: 30px 30px 20px;
    }
    section#head .breadcrumbs {
        display: none;
    }
    section.lower {
        border-radius: 10px;
        margin: 0 20px;
        padding: 50px 30px;
        width: calc(100% - 40px);
    }
    section.lower + section.lower {
        margin-top: 50px;
    }
    section#about .map iframe {
        height: 290px;
        width: 100%;
    }
    section#news.lower {
        border-radius: 0;
        margin: 50px 0 0;
        width: 100%;
    }
    main.lower.newslist {
        padding-bottom: 50px;
    }
    main.lower.newslist section#news.lower {
        border-radius: 10px;
        margin: 50px auto 0;
        width: calc(100% - 40px);
    }
    main.lower.news-info {
        padding-bottom: 50px;
    }
}
