@charset "UTF-8";

/* CSS Document */
.ortho {
  font-size: 16px;
  line-height: 1.6rem;
  min-width: 768px;
  padding-bottom: 100px;
  max-width: 1000px;
  margin:auto;
}

.ortho img {
  max-width: 100%;
}

.menu {
  margin-bottom: 0;
}

.ortho h1 {
font-family: var(--kakugo);
  position: relative;
  margin: 32px 0 12px 0;
  line-height: 2rem;
  font-size: 1.4rem;
  color: rgba(17, 92, 167, 1.00);
}

.ortho h1:after {
  content: '';
  border-bottom: 3px solid #B3CE68;
  display: block;
  width: 70px;
  margin: auto;
  text-align: center;
  margin-top: 16px;
}

/* 2つ目のページタイトル（不正咬合の種類）。h1 を1つにするため h2 にしているが、見た目は上の h1 と同じにする */
.ortho .card h2.ortho_title {
  font-family: var(--kakugo);
  position: relative;
  width: auto;
  margin: 32px 0 12px 0;
  padding: 0;
  line-height: 2rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(17, 92, 167, 1.00);
  text-align: center;
  background-color: transparent;
  border-bottom: none;
}

.ortho .card h2.ortho_title::after {
  content: '';
  border-bottom: 3px solid #B3CE68;
  display: block;
  width: 70px;
  margin: auto;
  text-align: center;
  margin-top: 16px;
}

.ortho h2 {
  font-size: 1.3rem;
  color: #fff;
  display: block;
  width: 100%;
  margin: 60px auto 24px auto;
  padding: 30px;
  text-align: left;
  font-weight: bold;
  background-color: #0052A2;
  border-bottom: 2px solid #f1f1f1;
  padding: 16px;
}

.ortho h3 {
  font-size: 1.2rem;
  color: #009EE7;
  display: block;
  width: 50%;
  max-width: 640px;
  margin: 48px auto 24px auto;
  padding: 18px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #0052A2;
  position: relative;
}

.ortho h3:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  position: absolute;
  border: 1px solid #0052A2;
  left: -9px;
  top: -9px;
}

.ortho h3:after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  position: absolute;
  border: 1px solid #0052A2;
  right: -9px;
  bottom: -9px;
}

.ortho h4 {
  font-size: 1.2rem;
  color: #0052A2 !important;
  display: block;
  margin: 24px auto 0 auto;
  padding: 0;
  text-align: center;
  font-weight: bold;
}

.ortho h5 {
  font-size: 1.1rem;
  color: #0052A2 !important;
  display: block;
  margin: 24px auto 8px auto;
  padding: 0;
  text-align: center;
  font-weight: normal;
}

.ortho .container {
  margin: auto;
  background: white;
  width: 100%;
}

.ortho section {
  max-width: 1200px;
  width: 100%;
  margin: auto;
}

.ortho article {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 36px auto;
}

.ortho .tokucho ul {
  display: flex;
  width: 100%;
  justify-content: space-around;
  flex-wrap: wrap;
}

.ortho .tokucho ul>* {
  width: 210px;
  margin: 20px;
  font-size: 0.9rem;
  line-height: 1.1rem;
}

.ortho .shikumi ul {
  display: flex;
  width: 100%;
  justify-content: space-around;
  flex-wrap: wrap;
}

.ortho .shikumi ul>* {
  width: 210px;
  margin: 20px;
  font-size: 0.9rem;
  line-height: 1.1rem;
  flex-grow: 1;
}

.ortho .shikumi ul>*.width3 {
  width: 210px;
  margin: 20px;
  font-size: 0.9rem;
  line-height: 1.1rem;
  flex-grow: 3;
}

.ortho .shikumi ul>* div {
  border-bottom: 2px solid #0052A2;
  color: #0052A2;
  padding-bottom: 6px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}

.ortho .shikumi ul>* p {
  font-size: 0.9rem;
  padding: 6px;
}

.ortho .price table {
  width: 100%;
  table-layout: fixed;
  margin: 30px;
  position: relative;
}

.ortho .price table td {
  width: 100%;
  border: 1px solid #eeeeee;
  padding: 12px;
  vertical-align: middle;
  text-align: center;
  width: auto;
}

.ortho .price .plan td img {
  height: 60px;
}

.ortho .price .plan td h4 {
  border-top: 1px solid #0052A2;
  color: #0052A2;
  padding-top: 12px;
  font-size: 0.9rem;
}

.ortho .price tr:nth-child(1) td, .ortho .treatment tr:nth-child(1) td {
  border: 0;
  text-align: center;
}

.ortho .plan tr:nth-child(1) span {
  width: 30px;
  height: 30px;
  background: #0052A2;
  line-height: 30px;
  display: inline-block;
  color: white;
  font-size: 11px;
  border-radius: 50px;
  margin-left: -15px;
  position: absolute;
}

.ortho .treatment tr:nth-child(1) i {
  width: 30px;
  height: 30px;
  background: #0052A2;
  line-height: 30px;
  display: inline-block;
  color: white;
  font-size: 18px;
  border-radius: 50px;
  margin-top: -30px;
  margin-left: -15px;
  position: absolute;
}

.ortho .plan tr:nth-child(3) td, .ortho .treatment td:nth-child(2) {
  text-align: left;
  font-size: 0.9rem;
}

.ortho_main {
  background-color: #EFEFEF;
  width: 100%;
  text-align: center;
}

.ortho .nagare, .ortho .faq {
  padding: 24px;
}

.ortho .nagare img {
  width: 140px;
  height: auto;
}

.ortho .nagare .table>*:nth-child(2) {
  width: 160px;
  vertical-align: top;
}

.ortho .nagare h4, .ortho .faq h4 {
  counter-increment: nagare;
  margin: 24px auto 12px auto;
  text-align: left;
  background-color: #f8f8f8;
}

.ortho .nagare h4:before, .ortho .faq h4:before {
  content: counter(nagare);
  font-size: 24px;
  line-height: 36px;
  color: #FFF;
  width: 36px;
  height: 36px;
  display: inline-block;
  background: #0052A2;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  margin-right: 12px;
}

.ortho .nagare p, .ortho .faq p {
  font-size: 0.9rem;
  text-align: left;
}

.ortho .faq {
  padding-bottom: 48px;
}

.leftimage_righttext {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.leftimage_righttext>*:nth-child(1) {
  word-break: break-all;
  width:30%;
}

.leftimage_righttext>*:nth-child(2) {
  flex: 1;
  word-break: break-all;
}

.leftimage_righttext * {
  word-break: break-all;
}

.leftimage_righttext img {
width:100%;
max-width: none;
}


.leftimage_righttext h4:not(:empty) {
  vertical-align: middle;
  padding: 24px 0;
  margin: 12px 0;
}

/* 見出し（h4）のない画像＋文章の欄は、見出しがあった頃と同じ位置になるよう、文章の上に h4 と同じ余白を付ける */
.ortho .leftimage_righttext > div > div:first-child {
  margin-top: 24px;
}

.leftimage_righttext p {
  vertical-align: middle;
  padding: 24px;
}

.ortho dl.list_field {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
  background-color: #f0f0f0;
  margin: 6px auto 6px auto;
}

.ortho dl.list_field dt {
  width: 25%;
  text-align: left;
  padding: 12px;
  color: #0052A2;
  font-weight: 600;
  min-width: 120px;
}

.ortho dl.list_field dd {
  text-align: left;
  padding: 12px;
  width: 80%;
}

.ortho ul.list_field {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.ortho ul.list_field li {
  background-color: #f0f0f0;
}

.ortho .centerimage {
  padding: 24px 0;
    max-width: 70%;
    margin:auto;
}



@media screen and (max-width: 1024px) {
  .ortho{
  padding:24px 16px;
  }
  .leftimage_righttext {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .leftimage_righttext>*:nth-child(1) {
    width: 100%;
    word-break: break-all;
  }

  .leftimage_righttext>*:nth-child(2) {
    width: 100%;
    s word-break: break-all;
  }

  .ortho {
    min-width: 100px;
  }

  .ortho h1 {
    font-size: 1.2rem;
  }

  .ortho h2 {
    width: 100%;
    padding: 6px;
  }

  .ortho h3 {
    font-size: 1.2rem;
    color: #009EE7;
    display: block;
    width: 90%;
    max-width: 640px;
    margin: 12px auto 24px auto;
    padding: 18px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #0052A2;
    position: relative;
  }

  .ortho h3:before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    position: absolute;
    border: 1px solid #0052A2;
    left: -9px;
    top: -9px;
  }

  .ortho h3:after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    position: absolute;
    border: 1px solid #0052A2;
    right: -9px;
    bottom: -9px;
  }
  .ortho dl.list_field dt {
    width: 25%;
    text-align: left;
    padding: 12px  4px;
    color: #0052A2;
    font-weight: 600;
    min-width: 100px;
  }

  .ortho dl.list_field dd {
    text-align: left;
    padding: 12px;
    width: 75%;
  }
  .ortho .price .plan td img {
    height: auto;
    width: 120px;
  }

  .ortho .table {
    display: block;
    width: 100%;
  }

  .ortho .table>* {
    display: block;
    width: 100%;
  }

  .ortho .price table.plan {
    width: 100%;
    table-layout: fixed;
    margin: 0;
    position: relative;
  }

  .ortho .price table {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .ortho .price table>* {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .treatment tbody {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .ortho .tokucho ul {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .ortho .tokucho ul>* {
    width: 100%;
    margin: 0;
    padding: 24px 0;
  }

  .ortho .tokucho ul>* img {
    max-width: 240px;
  }

  .ortho .tokucho ul>* p {
    padding: 0 24px;
  }

  .ortho .shikumi ul {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .ortho .shikumi ul>* {
    width: 100%;
    margin: 0;
  }

  .ortho .shikumi ul>*.width3 {
    width: 100%;
    margin: 0;
  }

  .ortho .shikumi ul>* div {
    border-bottom: 2px solid #0052A2;
    color: #0052A2;
    padding-bottom: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
  }

  .ortho .shikumi ul>* p {
    font-size: 0.9rem;
    padding: 6px;
  }
}
