:root {
  @media (767px >= width) {
    --is-mq: true;
  }
}

.subContWrap {
  .topCont__ttl {
    font-size: 14px !important;
    p,
    h2 {
      margin: 0 !important;
      font-weight: normal !important;
      padding: 0 !important;
      &:before {
        display: none;
      }
    }
  }
  .topCont__ttl--main p {
    display: flex;
    align-items: center;
    font-family: futura-pt, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem !important;
    line-height: 1.5;
  }
  .top-thumbnail {
    margin: 0 0 20px 0;
    img {
      width: 100%;
      height: auto;
    }
  }
  .banner-fullwide {
    margin: 20px 0;
    img {
      width: 100%;
      height: auto;
    }
  }
  table,
  .wp-block-media-text,
  .wp-block-image {
    margin: 40px 0;
  }
  table {
    @container style(--is-mq) {
      font-size: 12px;
    }
  }
  .wp-block-media-text.comment {
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-top: #a3784d solid 1px;
    border-bottom: #a3784d solid 1px;
    .wp-block-media-text__media {
      border-radius: 10px;
      overflow: hidden;
    }
    .wp-block-media-text__content {
      padding: 10px;
      background: #eee;
      border-radius: 10px;
      position: relative;
      &:after {
        content: "";
        position: absolute;
        top: 0px;
        left: -20px;
        border: 20px solid #eee;
        border-top-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
        rotate: 124deg;
      }
    }
  }
  .qa-block {
    margin: 10px 0;
    p {
      margin: 0;
    }
    .qa-block__q {
      background: #eee;
      padding: 10px 10px 10px 50px;
      position: relative;
      &:hover {
        cursor: pointer;
        opacity: 0.8;
      }
      &:before {
        content: "Q";
        width: 25px;
        height: 25px;
        border-radius: 100px;
        background: #999;
        color: #fff;
        display: grid;
        place-content: center;
        position: absolute;
        left: 15px;
        top: 14px;
      }
    }
  }
  .qa-block__a {
    padding: 10px 10px 10px 50px;
    position: relative;
    &:before {
      content: "A";
      width: 25px;
      height: 25px;
      border-radius: 100px;
      background: #c60000;
      color: #fff;
      display: grid;
      place-content: center;
      position: absolute;
      left: 15px;
      top: 14px;
    }
  }
}
.doctor-prof {
  padding: 20px 20px;
  background: #eee;
  border-radius: 10px;
  p {
    margin: 0;
  }
  .photo-area {
  }
  .text-area {
    table {
      margin: 0;
      td {
        font-size: 14px;
      }
    }
  }
  .photo {
    margin: 0;
    img {
      width: 100%;
      height: auto;
    }
  }
  .name {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
  }
  .katagaki {
    color: #333;
    text-align: center;
    padding: 5px 10px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
  }
  .katagaki-02 {
    padding: 5px 10px;
    font-weight: bold;
    text-align: center;
  }
}
.clinic-info {
  gap: 10px !important;
  .wp-block-column {
    border-radius: 10px;
    overflow: hidden;
  }
  .wp-block-image,
  table {
    margin: 0;
  }
  table {
    font-size: 14px;
    border: none !important;
    th,
    td {
      display: block;
      border: none !important;

      background: transparent !important;
    }
    tr {
      display: block;
      margin-bottom: 10px;
      border-bottom: 1px solid #ccc;
    }
    th {
      width: 100% !important;
      font-size: 11px !important;
      padding: 0 !important;
    }
    td {
      padding-top: 0 !important;
    }
  }
  .wp-block-image {
    height: 100%;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .text-column {
    padding: 10px;
    background: #fafafa;
  }
}
/*

<div class="flow-01">

  <div class="flow-01__block">
    <div class="flow-01__number"><p>1</p></div>
    <div class="flow-01__title"><p>タイトルタイトルタイトルタイト</p></div>
    <div class="flow-01__desc"><p>内容内容内容内容内容内容内容内容内容内容内容内容内容内容</p></div>
  </div>

  <div class="flow-01__block">
    <div class="flow-01__number"><p>2</p></div>
    <div class="flow-01__title"><p>タイトルタイトルタイトルタイト</p></div>
    <div class="flow-01__desc"><p>内容内容内容内容内容内容内容内容内容内容内容内容内容内容</p></div>
  </div>

  <div class="flow-01__block">
    <div class="flow-01__number"><p>3</p></div>
    <div class="flow-01__title"><p>タイトルタイトルタイトルタイト</p></div>
    <div class="flow-01__desc"><p>内容内容内容内容内容内容内容内容内容内容内容内容内容内容</p></div>
  </div>



</div>
*/
.flow-01 {
  * {
    margin: 0;
  }
  margin: 20px 0;
  padding-left: 30px;
  position: relative;
  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: #eee;
    border-radius: 100vh;
  }
}
.flow-01__block {
  margin: 20px 0;
  > .wp-block-group__inner-container {
    display: grid;
    grid-template-areas: "number title" "desc desc";
    /* 40px 1fr */
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding-top: 20px;
    .flow-01__number {
      margin-top: 4px;
      grid-area: number;
      width: 30px;
      height: 30px;
      font-size: 12px;
      font-weight: bold;
      background: #a3784d;
      color: #fff;
      border-radius: 100px;
      display: grid;
      place-content: center;
      p {
        margin: 0;
      }
      position: relative;
      &:before {
        content: "";
        position: absolute;
        width: 30px;
        height: 1px;
        border-top: dotted 1px #a3784d;
        left: -25px;
        top: 14px;
      }
      &:after {
        content: "";
        position: absolute;
        top: 10px;
        left: -29px;
        width: 10px;
        height: 10px;
        border-radius: 100px;
        background: #a3784d;
      }
    }
    .flow-01__title {
      grid-area: title;
      padding: 10px;
      width: 100%;
      * {
        color: #a3784d;
        margin: 0;
        padding: 0px;
        font-size: 16px;
        border: none !important;
        text-align: left;
        font-weight: bold;
      }
    }
    .flow-01__desc {
      text-align: left;
      grid-area: desc;
      font-size: 14px;
      width: 100%;
    }
  }
}

.flow-02 {
  * {
    margin: 0;
  }
  margin: 20px 0;
  padding: 20px;
  background: #eee;
  position: relative;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: #eee;
    border-radius: 100vh;
  }
  .flow-02__inner {
    max-width: 1200px;
    margin: 0 auto;

    > .wp-block-group__inner-container {
      display: grid;
      /* repeat minmax(300px, 1fr); */
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
    }
  }
  .flow-02__block {
    background: #fff;
    padding: 20px;
    > .wp-block-group__inner-container {
      display: grid;
      grid-template-areas: "number" "desc";
      /* 40px 1fr */
      grid-template-columns: 1fr;
      gap: 10px;
      .flow-02__number {
        margin-top: 4px;
        grid-area: number;
        width: 100%;
        height: 30px;
        font-size: 12px;
        font-weight: bold;
        background: #a3784d;
        color: #fff;
        display: grid;
        place-content: center;
        z-index: 1;
        /* 右側を参画にclip-path */
        clip-path: polygon(calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 0 0);
        p {
          margin: 0;
        }
        position: relative;
        &:before {
          content: "";
          position: absolute;
          width: 10px;
          height: 100%;
          background: #000;
          top: 0;
          left: 0;
          z-index: 0;
        }
      }
      .flow-02__desc {
        text-align: left;
        grid-area: desc;
        font-size: 14px;
        width: 100%;
      }
    }
  }
}
.pankuzu {
  display: flex;
  /*gap: 10px;*/
  flex-wrap: wrap;

  list-style: none !important;
  .pankuzu__item {
    /*font-size: 14px;*/
    color: #333;
    list-style: none !important;
    &:before {
      display: none;
    }
    &:after {
      content: ">";
      margin: 0 5px;
    }
    &:last-child {
      &:after {
        content: "";
      }
    }
  }
}

html :where(.wp-block) {
  max-width: 1200px !important;
}
