@media only screen and (max-width: 768px) {
  .home_page .key {
    --height: calc(100vh - 60px);
    --max-height: 130vw;
    --min-height: 500px;
    font-size: 8px;
  }
  .home_page .key .s1::before {
    background-image: url(../images/idx_mv01-sp.jpg);
  }
  .home_page .key .slick-initialized .s2::before {
    background-image: url(../images/idx_mv02-sp.jpg);
  }
  .home_page .key .slick-initialized .s3::before {
    background-image: url(../images/idx_mv03-sp.jpg);
  }
  .home_page .key .key_text .item {
    padding: 20px;
    justify-content: center;
    align-items: flex-end;
  }
  .home_page .key .key_text .item::before {
    inset: 0;
  }
  .home_page .key .catch {
    text-align: center;
  }
  .home_page .key h2,
  .home_page .key p {
  }
  .home_page .key h2 {
    font-size: 4.2em;
    margin-left: 0;
  }
  .home_page .key p {
    padding-top: 1.8em;
    padding-top: 10px;
    letter-spacing: 0.15em;
  }

  .home_page .key .key_text .item.s1 .catch {
    width: 32.36607142857142em;
  }
  .home_page .key .key_text .item.s2 .catch {
    width: 39.50892857142857em;
  }
  .home_page .key .key_text .item.s3 .catch {
    width: 26.33928571428571em;
  }
}
@media only screen and (max-width: 640px) {
  .home_page .key {
    font-size: min(1.4vmin, 6px);
  }
}
@media only screen and (max-width: 768px) and (orientation: landscape) {
  .home_page .key {
    font-size: 1.4vmin;
  }
}
@media (max-width: 768px) {
  .ihead {
    text-align: center;
  }
  .ihead::before {
    margin: 0 auto;
    right: 0;
    width: 60px;
  }
  .ien {
    margin-bottom: 3px;
  }
  .ijp {
    margin-left: 0;
    letter-spacing: 0;
    font-size: 24px;
  }
  .ibtn-gr {
    margin-top: 20px;
    flex-direction: column;
    gap: 20px;
  }
  .ibtn {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .ibtn a {
    font-size: 16px;
    min-height: 50px;
  }
  .ibtn a::before {
    right: 10px;
    width: 16px;
  }
  .ipost .ipost-wrapper {
    padding: 35px 0 45px;
  }
  .ipost .ipost-wrapper::before {
    width: 80px;
  }
  .ipost .ipost-wrapper::after {
    width: 150px;
  }
  .ipost .ipost-head {
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
  }
  .ipost .ihead {
    margin-bottom: 20px;
  }
  .ipost .ipost-hcate {
    margin-bottom: 0;
  }
  .ipost .ipost-hcate li {
    width: 80px;
    height: 32px;
  }
  .ipost .item li a {
    padding: 12px 30px 12px 0;
    flex-wrap: wrap;
  }
  .ipost .item li a::before {
    right: 10px;
  }
  .ipost .item li a .date {
    width: 90px;
  }
  .ipost .item li a .title {
    max-width: 100%;
    padding: 0;
    margin-top: 10px;
    width: 100%;
  }
  .ipost .ibtn-gr {
    margin-top: 20px;
  }
  .iproblem {
    padding: 45px 0;
  }
  .iproblem .ip-wrap {
    padding: 25px 10px;
  }
  .iproblem .ihead {
    margin-bottom: 30px;
  }
  .iproblem .ijp {
    padding-left: 0;
  }
  .iproblem .ip-list {
    font-size: min(3.28125vw, 16px);
  }
  .iproblem .ip-list .ttl span {
    padding: 0 1px;
  }
  .iproblem .ip-list li {
    width: calc((100% - 16px) / 2);
    height: auto;
    padding: 0;
  }
  .iproblem .ip-list li:nth-child(1),
  .iproblem .ip-list li:nth-child(4) {
    width: 100%;
    margin-bottom: -2.3em;
  }
  .iproblem .ip-list li:nth-child(n + 5) {
    margin-top: 0;
  }
  .iproblem .ip-list li:nth-child(4),
  .iproblem .ip-list li:last-child {
    margin-top: -2.3em;
  }
  .iproblem .ip-list li:nth-child(2) .ip-box,
  .iproblem .ip-list li:nth-child(5) .ip-box {
    margin-right: 0;
  }
  .iproblem .ip-list li:nth-child(3) .ip-box,
  .iproblem .ip-list li:nth-child(6) .ip-box {
    margin-left: 0;
  }
  .iproblem .ip-list li:nth-child(1) .ttl,
  .iproblem .ip-list li:nth-child(3) .ttl {
    font-size: 100%;
  }
  .iproblem .ip-list li:nth-child(6) .ttl,
  .iproblem .ip-list li:nth-child(7) .ttl {
    font-size: 110%;
  }
  .iproblem .ip-list picture::after {
    width: 1.6em;
    height: auto;
    aspect-ratio: 30/30;
    bottom: 1em;
  }
  .iproblem .ip-list .ip-box {
    position: relative;
    width: 11.7em;
    height: 13.4em;
    padding: 5px;
    margin: 0 auto;
  }
  .iproblem .ip-list .label {
    font-size: 0.5em;
    width: 2.6666666667em;
    height: 8em;
    padding-top: 0.6666666667em;
  }
  .iproblem .ip-list .ttl {
    font-size: 115%;
  }
  .ireason {
    padding: 45px 0;
    margin-bottom: 40px;
  }
  .ireason::before {
    height: 40px;
    transform: translateY(-1px);
  }
  .ireason .ihead {
    margin-bottom: 20px;
  }
  .ireason .item {
    margin-bottom: 25px;
  }
  .ireason .item1::before {
    top: -20px;
    width: 240px;
    left: -50px;
  }
  .ireason .item1::after {
    width: 200px;
    right: -50px;
    top: 80%;
  }
  .ireason .item2::before {
    width: 200px;
    left: -80px;
    top: unset;
    bottom: 0;
  }
  .ireason .item3::before {
    width: 200px;
    top: -20px;
  }
  .ireason .item4::before {
    width: 200px;
    bottom: -20px;
  }
  .ireason .box {
    width: 100%;
    padding: 30px 20px 40px;
  }
  .ireason .box::before {
    width: 4px;
  }
  .ireason .ig {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 15px;
  }
  .ireason .desc {
    margin-bottom: 15px;
  }
  .ireason-video .item.reverse .ytb {
    margin-right: auto;
  }
  .ireason-video .ytb {
    width: min(65.625vw, 348px);
    height: min(35.625vw, 190px);
    margin-top: -20px;
    margin-left: auto;
    margin-right: auto;
  }
  .ichoice::before {
    font-size: 60px;
  }
  .ichoice .ichoice-wrap {
    padding: 80px 0 45px;
  }
  .ichoice .ichoice-wrap::after {
    width: 240px;
  }
  .ichoice .ihead {
    margin-bottom: 20px;
  }
  .ichoice .ichoice-head {
    gap: 5px;
    padding: 0 10px;
  }
  .ichoice .ichoice-head li {
    width: calc((100% - 10px) / 3);
    height: 3.3333333333em;
    font-size: min(3.75vw, 16px);
  }
  .ichoice .ichoice-item {
    padding: 30px 20px;
  }
  .ichoice .ichoice-item.active {
    display: block;
  }
  .ichoice .ichoice-item .ttl {
    text-align: center;
    width: fit-content;
    margin: 0 auto 15px;
    font-size: 24px;
    padding-left: 28px;
  }
  .ichoice .ichoice-item .ttl::before {
    top: 5px;
    left: 0;
  }
  .ichoice .ichoice-item picture {
    padding-top: 0;
    max-width: 400px;
    margin: 0 auto 15px;
  }
  .ichoice .ichoice-item .txt {
    width: 100%;
  }
  .ichoice .ichoice-item .desc {
    margin-bottom: 15px;
  }
  .implant {
    padding-bottom: 45px;
  }
  .implant .imp-wrap {
    padding: 20px 20px 40px;
  }
  .implant .title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .implant .bx-head {
    --gap: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    margin-bottom: 30px;
  }

  .implant .bx-head li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: calc((100% - var(--gap)) / 2);
    min-height: 5em;
    background-color: #fff;
    transition: all 0.3s ease;
    border: 1px solid var(--main-color);
    padding: 12px 1em;
    font-size: min(calc(10 / 320 * 100vw), 14px);
    line-height: 1.4;
  }
  .implant .bx-head li.active {
    background-color: var(--main-color);
    color: #fff;
  }
  .implant .bx-head li.active::before {
    border-color: #fff;
  }
  .implant .bx-head li::before {
    content: "";
    position: absolute;
    bottom: 5px;
    right: 0;
    left: 0;
    margin: 0 auto;
    pointer-events: none;
    transition: all 0.3s ease;
    width: 6px;
    height: 6px;
    border: 0px solid var(--main-color);
    border-width: 1px 1px 0 0;
    transform: rotate(135deg);
  }
  .implant .box {
    gap: 40px 10px;
    flex-direction: column;
    align-items: center;
  }

  /* .implant .item.active::after {
    display: none;
  }

  .implant .item.active .txt {
    padding-bottom: 30px;
  }

  .implant .item.active .desc {
    display: block;
  }

  .implant .item.active .link {
    display: block;
  }

  .implant .item.active .arr-more{
    display: none;
  } */

  .implant .item {
    width: min(100%, 360px);
    display: none;
  }
  .implant .item.active {
    display: block;
  }
  /* .implant .arr-more {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border-radius: 100%;
    z-index: 1;
    background-color: var(--main-color);
  }
  .implant .arr-more::before {
    transform: rotate(90deg);
  }
  .implant .arr-more::after,
  .implant .arr-more::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 2px;
    background-color: #fff;
  } */

  .implant .txt {
    padding: 15px 15px 30px;
  }
  .implant .ttl {
    padding-bottom: 10px;
    margin-bottom: 0;
    font-size: 20px;
    min-height: auto;
  }
  .implant .desc {
    margin-top: 15px;
  }
  .ipart {
    padding: 45px 0;
  }
  .ipart .box {
    flex-direction: column;
    max-width: 420px;
    margin: 0 auto;
    gap: 30px;
  }
  .ipart .item {
    width: 100%;
  }
  .ipart .item::before {
    scale: 0.8;
    bottom: 5px;
  }
  .ipart .item picture {
    padding: 0 10px;
    margin-bottom: 10px;
  }
  .ipart .txt {
    padding: 0 20px 50px;
  }
  .ipart .ttl {
    font-size: 20px;
    padding-bottom: 8px;
    margin-bottom: 12px;
  }
  .iopinion {
    padding: 45px 0;
  }
  .iopinion .iop-wrap {
    /* display: block; */
    grid-template-columns: 30% 70%;
    align-items: center;
  }
  .iopinion .iop-wrap::before {
    top: 0;
    transform: translateX(-20px);
    width: min(43.75vw, 200px);
  }
  .iopinion .iop-wrap::after {
    width: 160px;
    bottom: -43px;
    left: 0;
    transform: none;
  }
  .iopinion .ihead {
    padding-bottom: 0;
    position: relative;
    z-index: 1;
    text-align: left;
    margin-left: 0;
    min-height: 270px;
    transform: none;
    margin: 0 auto 20px;
  }
  .iopinion .ien {
    margin-left: 0;
  }
  .iopinion .ig {
    width: min(94%, 320px);
    margin: 0 auto 20px;
    padding: 21px 0;
    grid-column: 2 / span 1;
    grid-row: 1 / span 1;
  }
  .iopinion .ig-w {
    width: 100%;
    gap: 15px;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
  }
  .iopinion .ig-w::before {
    inset: -40px 0;
  }
  .iopinion .txt {
    grid-column: 1 / span 2;
  }
  .iopinion .desc {
    margin-bottom: 15px;
  }
  .imovie {
    padding: 45px 0;
  }
  .imovie .ihead {
    margin-bottom: 25px;
  }
  .imovie .imovie-slider {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto 71px;
  }
  .imovie .slick-arrow {
    scale: 0.7;
  }
  .imovie .slick-prev {
    left: -20px;
  }
  .imovie .slick-next {
    right: -20px;
  }
  .imovie .slick-dots {
    scale: 0.7;
    bottom: -46px;
  }
  .imovie .ytb {
    padding: 0 5px;
    height: min(47.5vw, 276px);
  }
  .imessage {
    padding: 45px 0;
  }
  .imessage .ihead {
    padding-top: 0;
    margin-bottom: 25px;
  }
  .imessage .imess-wrap {
    display: block;
  }
  .imessage .imess-wrap::before {
    transform: none;
    width: 190px;
    top: 100px;
    left: calc(50% - 80px);
    transform: translateX(-140px);
  }
  .imessage .imess-wrap::after {
    width: 100px;
    top: min(134.375vw, 520px);
  }
  .imessage .imess-img {
    padding: 0 15px;
    max-width: 340px;
    margin: 0 auto 20px;
  }
  .imessage .imess-img picture {
    width: 100%;
  }
  .imessage .imess-info {
    bottom: 20px;
    right: 0;
  }
  .imessage .txt {
    margin-bottom: 0;
  }
  .imessage .desc {
    margin-bottom: 15px;
  }
  .ifeature {
    padding: 45px 0 0;
  }
  .ifeature .ihead {
    margin-bottom: 25px;
  }
  .ifeature .ife-wrap::before {
    top: 0;
    width: 200px;
    right: -150px;
  }
  .ifeature .box {
    display: block;
    height: 131.25vw;
  }
  .ifeature .box.active {
    padding-bottom: 45px;
  }
  .ifeature .item {
    max-width: 586px;
    width: 100%;
    margin: 25px auto 0;
  }
  .ifeature .item:first-child {
    margin-top: 0;
  }
  .ifeature .item:nth-child(even) {
    padding-top: 0;
  }
  .ifeature .item1 .ttl {
    min-height: 218px;
  }
  .ifeature .item2 .ttl {
    min-height: 194px;
  }
  .ifeature .item3 .ttl {
    min-height: 218px;
  }
  .ifeature .item4 .ttl {
    min-height: 242px;
  }
  .ifeature .more {
    width: 200px;
    height: 50px;
    font-size: 16px;
  }
  .ifeature .more::before {
    right: 12px;
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-width: 5px;
  }
  .ifeature .point {
    font-size: 8px;
  }
  .ifeature .ttl {
    font-size: 22px;
  }
  .ifeature .txt picture {
    margin-bottom: 10px;
  }
  .iclinic {
    padding: 45px 0;
  }
  .iclinic .ihead {
    margin-bottom: 25px;
  }
  .iclinic .icl-head {
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin-bottom: 20px;
  }
  .iclinic .icl-info {
    padding-top: 0;
    margin-bottom: 20px;
  }
  .iclinic .icl-logo {
    margin-bottom: 15px;
  }
  .iclinic .icl-logo a {
    margin: 0 auto;
    width: min(100%, 300px);
  }
  .iclinic .icl-tx {
    padding: 0;
  }
  .iclinic .icl-location {
    width: 280px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
  }
  .iclinic .icl-tel {
    text-align: center;
  }
  .iclinic .time_sheet {
    font-size: min(3.75vw, 14px);
  }
  .iclinic .ibtn-gr {
    gap: 20px;
    margin-bottom: 30px;
  }
  .iclinic .icl-map {
    height: 270px;
    margin-bottom: 25px;
  }
  .iclinic .icl-vehi {
    padding: 0;
    gap: 10px;
    flex-direction: column;
  }
  .iclinic .icl-veh-item {
    gap: 10px;
    width: 100%;
  }
  .iclinic .icl-veh-item picture {
    flex-shrink: 0;
  }
  .iclinic .icl-vh {
    width: 100%;
  }
}
@media (max-width: 430px) {
  .implant .txt {
    padding: 10px 10px 30px;
  }
  .implant .link a::after {
    scale: 0.8;
  }
  .iclinic .icl-veh-item picture {
    width: 50px;
    height: 50px;
  }
  .iclinic .icl-tdesc {
    letter-spacing: 0.05em;
  }
}
@media (max-width: 374px) {
  .implant .item {
    width: 100%;
  }
  .implant .txt {
    padding: 15px 15px 30px;
  }
  .implant .ttl {
    font-size: 16px;
    min-height: auto;
    letter-spacing: 0;
  }
  .iclinic .icl-tdesc {
    font-size: 13px;
  }
  .ijp {
    font-size: 21px;
  }
}
/* Safari 10.1+ (which is the latest version of Safari at this time) */
