@charset "utf-8";

html {
    font-size: 16px;
}
body {
    color: #444;
    font-size: 1rem;
    font-family:'Noto Sans JP', 'Noto Sans', sans-serif;
    margin: 0;
}
img {
    max-width: 100%;
    display: block;
    height: auto;
}
.inner {
    max-width: 1220px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* header------- */
#header {
    display: flex;
    padding: 29px 40px 28px;
    justify-content: space-between;
}
.clinic-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: 4px;
}
.clinic-info__hours {
    font-size: 0.875rem;
    text-align: right;
}
.clinic-info__tel {
    font-size: 1.5rem;
    font-weight: bold;
}
.clinic-info__tel a {
   display: flex;
   text-decoration: none;
   color: #21A937;
   align-items:center;
}
.clinic-info__tel img {
    margin-right: 4px;
    width: 25px;
}
/* レスポンシブ　　　sp */
@media (max-width: 821px) {
    #header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        justify-content: center;
    }
    .clinic-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


/* fv------ */
#fv {
    position: relative;
}
#fv figure {  
    width: 100%;
    margin: 0 auto;
}
#fv figure img {
  display: block;
  height: 946px;
  width: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  aspect-ratio: 16/9;
  transition: aspect-ratio 0.4s, object-position 0.4s;
}
.banner__container {
    position: absolute;
    top: 14%;
    left: 11%;
    display: flex;
    gap: clamp(25px, 6vw, 80px);
}
.vertical-banner {    
    writing-mode: vertical-lr;
    background-color: #fff;
    width: 102px; 
    height: 565px; 
    padding-top: 18px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    justify-content: center;    
}
.banner__title {
    font-size: 1.75rem;
    color: #444;
    letter-spacing: 0.24em;
    white-space: nowrap;
}
.highlight {
    color: #21A937;
}

/* fv tab-- */
@media (max-width: 950px) {
    #fv figure img {
        height: 800px;
        background-position: 70%;
        object-position: 70% 25%; 
    }
    .banner__container {
        top: 18%;
        left: 7%;
    }
    .vertical-banner {
        width: 90px;
        height: auto;
        padding: 18px 0;
    }
    .banner__title {
        font-size: 1.5rem;
    }
}
/* fv sp--- */
@media (max-width: 600px) {
    #fv figure img {
        height: 560px;
        background-position: 50%;
        transform-origin: 65% 25%;
    }
    .banner__container {
        top: 35%;
        left: 5%;
    }
    .vertical-banner {
        width: 55px;
        height: auto;
        padding: 15px 0;
    }
    .banner__title {
        font-size: 0.9rem;
    }
}

/* about----- */
#about {
    display: flex;
    margin: 0 auto;
    padding: 164px 20px 82px;
    justify-content: space-between;

}
.about__text_area {
    flex: 1;
    max-width: 500px;
}
.about__heading {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 31px;
    margin-bottom: 30px;
    margin-left: 33px;
}
.u-heading-title {
    font-size: 1.5rem;
    color: #444;

}
.u-underline {
    text-decoration-color: #99E5A5 ;
    text-decoration-line: underline;
    text-decoration-thickness: 10px;
    text-underline-offset: -3px;
    text-decoration-skip-ink: none;
}
.about__text {
    line-height: 2.34;
    margin-left: 33px;
}
.about__figure {
    flex: 1;
    max-width: 690px;
}
.about__figure img {
    width: 100%;
    height: auto;
}

/* about--sp */
@media (max-width: 950px) {
    #about {
        flex-direction: column;
        align-items: center;
        padding-top: clamp(6.25rem, 3.478rem + 11.83vw, 10.5rem);
    }
    .about__heading,
    .about__text {
        text-align: center;
        margin-left: 0;
    }
    .heading__title {
        font-size: clamp(1.125rem, 0.88rem + 1.04vw, 1.5rem);
    }
    .about__text {
        font-size: clamp(0.75rem, 0.587rem + 0.7vw, 1rem);
        margin-bottom: 30px;
    }
}

/* treatment---- */
#treatment {
    background-color: #F5FCF8;
    width: 100%;
    text-align: center;
    padding-top: 78px;
}
#treatment > * {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.treatment__text {
    margin-top: 70px;
}
.treatment__container ul {
    display: flex;
    gap: 20px;
    margin-top: 34px;
    list-style: none;
}
.treatment__box {
    flex: 1 1 380px; 
    border: 2px solid #C9C9C9;
    border-radius: 10px;
    padding: 0 35px;
    box-sizing: border-box;
    text-align: left;
    line-height: 2.4;
    height: 591px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
}
.treatment__box-title {
    padding-top: 28px;
    text-align: center;
}
.treatment__box-text {
    padding-top: 25px;
    font-weight: bold;
    letter-spacing: 0.02em;
}
.treatment__box-illustration {
    width: 187px;
    margin-top: auto;   
}
@media (max-width: 1050px) {
    .treatment__container ul {
        flex-direction: column;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto; 
    }
}
@media (max-width: 370px) {
    .treatment__box-text {
        font-size: small;
    }
}
/* info------ */
#info {
    background-color: #F5FCF8;
    width: 100%;
    text-align: center;
    padding: 82px 20px 112px;
}
#info > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.info__container {
    margin-top: 70px;
    box-shadow: 0px 3px 6px  #f0797929;
    border-radius: 30px;
    text-align: right;
    padding: 29.5px 46px 109.5px;
    position: relative;
    background-color: #fff;
}
.info__table {
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
    width: 100%;
}
.info__row {
    border-bottom: 2px solid #E7E7E7;;
    display: grid;
    grid-template-columns: 86px 80px 1fr;
    grid-template-areas: "date meta text";
    gap: 30px;
    align-items: center;
    padding: 19px 0;
    margin: 0 46px;
}
.info__date {
    grid-area: date;
    text-align: center;
    color: #21A937;
    font-weight: bold;
}
.info__meta {
    grid-area: meta;
    text-align: center;
    flex-shrink: 0;
    background: #444444;
    color: #FFFFFF;
    font-size: 0.75rem;
}
.info__text {
    grid-area: text;
    text-align: left;
    font-weight: bold;
}
.info__show-all-button {
    background: transparent;
    font-weight: bold;
    color: #444444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7.5px;
    position: absolute;
    bottom: 48px;
    right: 49px;
    border: none;
}
.info__show-all-button::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 10px solid #444;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}
/* info sp--- */
@media (max-width: 821px) {
    .info__row {
        grid-template-columns: auto 1fr;
        grid-template-areas: 
            "date meta"
            "text text";
        gap: 15px;
        text-align: center;
    }   
    .info__date {
        min-width: fit-content;
        text-align: left;
    }
    .info__meta {
        justify-self: start;
        min-width: fit-content;
        padding: 5px 12px;
        min-width: 80px;
    }
}
@media (max-width: 560px) {
    .info__row {
        margin: 0 20px;
    }
}

/* footer---- */
.footer__container {
    display: flex;
    padding: 194px 20px 163px;
    gap: 43px;
}
.footer__map {
    flex: 1;
    max-width: 604px;
}
.footer__contact {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
}
.footer__copyright {
    align-self: flex-end;
    font-size: 0.6875rem;
    margin-top: 21.5px;
}
.footer__logo {
    margin-bottom: 25px;
}
.clinic-detail__wrapper {
    font-style: normal;
    display: flex;
    gap: 16px;
    margin-bottom: 25px;
}
.clinic-detail__tel {
    font-size: 1.5rem;
    font-weight: bold;
}
.clinic-detail__tel a {
    display: flex;
    text-decoration: none;
    color: #21A937;
    align-items:center;
    margin-left: 4px;
    margin-bottom: 28.5px;
    font-style: normal;
}
.clinic-detail__tel img {
    width: 25px;
    margin-right: 4px;
}
.opening-hours {
    display: flex;
    flex-wrap: wrap;
    border-top: 2px solid #E7E7E7;
    border-bottom: 2px solid #E7E7E7;
    padding-top: 20px;
    font-size: 0.875rem;
}
.opening-hours dt {
    width: 15.8%;
    padding-left: 4px;
}
.opening-hours dd {
    width: 84.2%;
    border-left: 2px solid #E7E7E7;
    box-sizing: border-box;
    padding-left: 28.5px;
    padding-bottom: 13px;
}
.opening-hours dd p {
    display: inline-block;
}
.opening-hours dd p:nth-last-of-type(2) {
    margin-left: 23px;
}
.opening-hours dd p:last-of-type{
    padding-left: 13px;
}
.opening-hours__row {
    margin-bottom: 13px;
}
.opening-hours__day {
    text-decoration-color: #99E5A5;
    text-decoration-line: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: -1px;
    text-decoration-skip-ink: none;
    line-height: 1.2em;
}
.opening-hours__row02 {
    margin-left: 15.8%;
}
.opening-hours__row03 {
    margin-left: 15.8%;
    margin-bottom: 18px;
}
.opening-hours__closed {
    margin-bottom: 9.5px;
}

/* footer sp----- */
@media (max-width:1150px) {
    .footer__container {
        flex-direction: column-reverse;
        position: relative;
    }
    .footer__container.inner {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    .footer__map {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
    .footer__map iframe {
        width: 100%;       
        max-width: 604px; 
    }
    .footer__contact {
        align-items: center;
    }
    .clinic-detail__tel a {
        justify-content: center;
    }
    .opening-hours {
        width: 70%;
    }
    .opening-hours dt {
        width: 30%;
        text-align: center;
    }
    .opening-hours dd {
        width: 69%;
    }
    .opening-hours__row02,
    .opening-hours__row03 {
        margin-left: 30%;
    }
    .footer__copyright {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
}
@media (max-width:900px) {
    .opening-hours {
        flex-direction: column;
        align-items: center;
    }   
    .opening-hours dt {
        width: 100%;
        text-align: center;
        padding-left: 0;
        font-weight: bold;
    }
    .opening-hours dd {
        width: 100%;
        text-align: center;
        border-left: none;
        padding-left: 0;
    }
    .opening-hours dd p:nth-last-of-type(2) {
        margin-left: 0;
    }
    .opening-hours__day {
        width: 100%;
        padding: 15px 0;
    }
    .opening-hours__row01 {
        padding-top: 15px;
    }
    .opening-hours__row02,
    .opening-hours__row03 {
        margin-left: 0;
    }
    .opening-hours__closed {
        text-align: center;
        padding-top: 15px;
    }
}
@media (max-width:370px) {
    .opening-hours {
        display: block;
        text-align: center;
    }
    .opening-hours dt {
        width: 100%;
        text-align: center;
    }
    .opening-hours dd {
        width: 100%;
        padding: 10px 20px;
    }
    .opening-hours__row02,
    .opening-hours__row03 {
        margin-left: 0;
    }
    .opening-hours dd p:last-of-type{
        margin-left: 0;
        padding-left: 0;
    }
}