:root {
  --as-orange: #ea5718;
  --as-green: #07913b;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.day-service-wrap_202602 {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.5;
  font-size: clamp(15px, 1.04vw, 20px);
  position: relative;
  color: #111;

  img {
    width: 100%;
    vertical-align: bottom;
  }

  .day-service-image-box {
    padding: 0;

    @media (min-width: 768px) {
      padding-right: 16.6%;
    }
  } /*day-service-image-box*/

  /* コンテナ共通使用 */
  .day-service-container {
    padding: 15px 10px 30px;

    @media (min-width: 768px) {
      padding: 3.64% 8.33% 5.36%;
    }
  }

  .day-service-pr {
    h2 {
      font-size: 25px;
      border-bottom: 7px solid var(--as-orange);
      padding-bottom: 9px;
      width: fit-content;

      @media (min-width: 768px) {
        font-size: 50px;
      }
    }

    dl.before-calling {
      margin-top: 20px;
      font-size: 16px;

      dt {
        font-size: 20px;
        font-weight: bold;
        color: var(--as-orange);

        @media (min-width: 768px) {
          font-size: 35px;
        }
      }

      dd {
        margin-top: 10px;
        position: relative;
        padding-left: 25px;
        font-size: 16px;

        @media (min-width: 768px) {
          margin-top: 27px;
          display: inline-block;
          font-size: 25px;
          padding-left: 30px;

          &:not(:last-of-type) {
            margin-right: 60px;
          }
        }

        &::before {
          content: "";
          position: absolute;
          top: 50%;
          left: 0;
          transform: translateY(-50%);
          width: 20px;
          height: 20px;

          @media (min-width: 768px) {
            width: 30px;
            height: 30px;
          }
        }

        &:nth-of-type(1)::before {
          background: url("../img/before-calling-icon-wheelchair.png") center /
            contain no-repeat;
        }

        &:nth-of-type(2)::before {
          background: url("../img/before-calling-icon-fukidasyi.png") center /
            contain no-repeat;
        }

        &:nth-of-type(3)::before {
          background: url("../img/before-calling-icon-file.png") center /
            contain no-repeat;
        }

        &:not(:first-of-type) {
          margin-top: 15px;
        }

        > span {
          font-weight: bold;
        }
      }
    } /*dl.before-calling*/
  } /*day-service-pr*/

  /* ご相談はお電話でお気軽にどうぞ */
  dl.now-calling {
    margin: 30px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    width: fit-content;

    @media (min-width: 768px) {
      flex-direction: row;
      gap: 40px;
      margin: 80px 0 0 25px;
      align-items: center;
    }

    &::before {
      content: "";
      width: 5px;
      height: 36.34px;
      background-color: var(--as-orange);
      border-radius: 100vmax;
      position: absolute;
      left: 0;
      top: 0;
      transform: rotate(-24deg);

      @media (min-width: 768px) {
        height: 77px;
        top: 50%;
        transform: rotate(-24deg) translateY(-50%);
      }
    }

    &::after {
      content: "";
      width: 5px;
      height: 36.34px;
      background-color: var(--as-orange);
      border-radius: 100vmax;
      position: absolute;
      right: 0;
      top: 0;
      transform: rotate(24deg);

      @media (min-width: 768px) {
        height: 77px;
        top: 50%;
        transform: rotate(24deg) translateY(-50%);
      }
    }

    > dt {
      font-size: 20px;
      text-align: center;

      @media (min-width: 768px) {
        font-size: 40px;
      }
    }

    > dd {
      text-align: center;

      @media (min-width: 768px) {
        a[href*="tel:"] {
        pointer-events: none;
        cursor: default;
        text-decoration: none;
        }
      }

      img {
        width: 274px;

        @media (min-width: 768px) {
          width: 100%;
          max-width: 611px;
        }
      }
    }
  } /* ご相談はお電話でお気軽にどうぞ */

  /* スライダー */
  .swiper-wrapper {
    .swiper-slide-inner {
      width: 100%;
      aspect-ratio: 4 / 3;
      overflow: hidden;
    }
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;

    @media (min-width: 1280px) {
      width: 75px;
      height: 75px;
    }
  }

  .swiper-button-prev {
    left: 5px;
    background: url("../img/slider-prev.png") center / contain no-repeat;

    @media (min-width: 768px) {
      left: 11%;
    }
  }

  .swiper-button-next {
    right: 5px;
    background: url("../img/slider-next.png") center / contain no-repeat;

    @media (min-width: 768px) {
      right: 11%;
    }
  }

  /* 基本情報 */
  .day-service-info {
    position: relative;
    margin-top: 30px;
    padding: 0 10px 45px;
    overflow: hidden;

    @media (min-width: 768px) {
      padding: 0 8.33% 4.27%;
      margin-top: 100px;
    }

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 34.13%;
      width: 100%;
      height: 100%;
      border-radius: 40px;
      background-color: var(--as-green);
      opacity: 0.1;
      z-index: -1;

      @media (min-width: 768px) {
        left: 25.67%;
      }
    }
    
    h2 {
      font-size: 25px;
      font-weight: normal;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--as-green);
    }

    dl {
      clear: both;
      font-size: 16px;

      @media (min-width: 768px) {
        font-size: 25px;
      }

      dt {
        float: left;
        font-weight: bold;
        width: 70px;
        margin-top: 17px;

        @media (min-width: 768px) {
          margin-top: 15px;
          width: 100px;
        }
      }

      dd {
        padding: 17px 0 17px 100px;
        border-bottom: 1px dashed #111;

        @media (min-width: 768px) {
          font-size: 20px;
          padding-left: 170px;
        }

        > span {
          display: block;

          @media (min-width: 768px) {
            display: inline;
            margin-left: 10px;
          }
        }

        img {
          max-width: 230px;

          @media (min-width: 768px) {
            max-width: 330px;
          }
        }
      }
    }
  }

  /* 詳細情報 */
  .day-service-detail {
    margin-top: 45px;
    padding: 0 10px 45px;
    overflow: hidden;

    @media (min-width: 768px) {
      padding: 0 8.33% 4.27%;
      margin-top: 100px;
    }

    h2 {
      font-size: 25px;
      font-weight: normal;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--as-green);
      
      > span {
        font-size: 20px;
      }
    }

    ul {
      margin: 23px 0 0 0;
      padding: 0;
      list-style-type: none;

      @media (min-width: 768px) {
        display: flex;
      }

      li {
        border: 1px solid #111;

        &:not(:last-of-type) {
          border-bottom: none;

          @media (min-width: 768px) {
            border-bottom: 1px solid #111;
          }
        }

        @media (min-width: 768px) {
          flex: 0 1 calc(100% / 3);

          &:not(:last-of-type) {
            border-right: none;
          }
        }

        button {
        position: relative;
        display: block;
        width: fit-content;
        height: 100%;
        padding: 78px 10px 18px;
        margin: 0 auto;
        font-size: 20px;
        border: none;
        background-color: transparent;

        &:focus:not(:focus-visible) {
            outline: none;
        }

        &::before {
          content: "";
          position: absolute;
          top: 18px;
          left: 50%;
          transform: translateX(-50%);
        }

        &::after {
          content: "";
          position: absolute;
          bottom: 23px;
          right: -17px;
          background: url("../img/link-plus-icon.png") center / contain no-repeat;
          width: 20px;
          height: 20px;
        }
        }

        &:nth-of-type(1) button::before {
            background: url("../img/check-icon.png") center / contain no-repeat;
            width: 47px;
            height: 50px;
        }

        &:nth-of-type(2) button::before {
            background: url("../img/riha-icon.png") center / contain no-repeat;
            width: 43px;
            height: 50px;
        }

        &:nth-of-type(3) button::before {
            background: url("../img/house-icon.png") center / contain no-repeat;
            width: 92px;
            height: 50px;
        }
      }
    }

    /* デイサービスセンターパンフレット */
    > a {
      display: block;
      width: fit-content;
      margin: 19px auto 44px;

      @media (min-width: 768px) {
        margin: 50px 0 100px;
      }

      > img {
        max-width: 300px;
      }
    }
  }

  /* 利用料金 / 利用案内 */
  .day-service-fee-wrap {
    h2 {
      font-size: 20px;
      background-color: var(--as-green);
      color: #fff;
      padding: 7px 0 8px 5px;

      &:not(:first-of-type) {
        margin-top: 57px;
      }
    }

    .day-service-fee-wrap_row {
      margin-top: 21px;
      display: flex;
      flex-direction: column;
      gap: 42px;

      @media (min-width: 768px) {
        flex-direction: row;
        flex-wrap: wrap;
      }

      .day-service-fee-wrap_row--inner {
        @media (min-width: 768px) {
          flex: 0 1 auto;
          width: calc((100% - 42px) / 2);
        }

        h3.day-service-fee-tit {
          font-size: 20px;
          border-bottom: 5px solid var(--as-green);
          position: relative;

          &:not(:first-of-type) {
            margin-top: 42px;
          }

          span {
            display: block;
            position: relative;
            width: fit-content;
            padding-bottom: 1px;

            &::before {
              content: "";
              position: absolute;
              bottom: -5px;
              left: 0;
              width: 100%;
              height: 5px;
              background-color: var(--as-orange);
            }
          }
        }

        h4 {
          font-size: 16px;
          font-weight: bold;
          margin-top: 15px;
        }

        table {
          margin-top: 20px;
          font-size: 15px;
          text-align: left;
          table-layout: fixed;
          border-collapse: collapse;
          border-spacing: 0;
          border-top: 1px solid #999;
          border-left: 1px solid #999;
          width: 100%;

          th, td {
            border-right: 1px solid #999;
            border-bottom: 1px solid #999;
            padding: 7px;
          }

          th {
            background-color: #F8F9FA;
          }
        }

        ul {
          list-style-type: none;
          margin-top: 20px;
          padding: 0;
          font-size: 15px;

          li:not(:last-of-type) {
            margin-bottom: 10px;
          }
        }

        dl {
          margin-top: 20px;
          font-size: 15px;

          @media (min-width: 768px) {
            font-size: 16px;
          }

          dt {
            font-weight: bold;

            &:not(:first-of-type) {
              margin-top: 10px;
            }
          }
        }

        p {
          margin-top: 20px;
          font-size: 15px;

          @media (min-width: 768px) {
            font-size: 16px;
          }

          &:not(:first-of-type) {
            margin-top: 10px;
          }
        }

        figure:not(:first-of-type) {
          margin-top: 14px;
        }

        table.day-service-schedule-tb {
          th, td {
            vertical-align: top;
          }

          th:nth-of-type(1) {
            width: 21.81%;
          }

          td:nth-of-type(1) {
            background-color: #F8F9FA;
          }
        }
      }
    }
  }

  /*リハビリ機器・設備*/
  .day-service-machine-wrap {
    h2 {
      font-size: 20px;
      background-color: var(--as-green);
      color: #fff;
      padding: 7px 0 8px 5px;
    }

    p {
      font-size: 15px;
      margin-top: 20px;
    }

    ul {
      list-style-type: none;
      display: flex;
      flex-direction: column;
      margin-top: 16px;
      padding: 0;

      @media (min-width: 768px) {
        flex-direction: row;
        flex-wrap: wrap;
      }

      li {
        padding: 14px 14px 20px;
        border: 1px solid #999;

        @media (min-width: 768px) {
          flex: 0 1 auto;
          width: calc(100% / 3);
        }

        &:not(:last-of-type) {
          border-bottom: none;

          @media (min-width: 768px) {
            border-bottom: 1px solid #999;
          }
        }

        &:not(:nth-of-type(3n)) {
          @media (min-width: 768px) {
            border-right: none;
          }
        }

        &:not(:nth-last-child(-n+3)) {
          @media (min-width: 768px) {
            border-bottom: none;
          }
        }

        h3 {
          font-size: 16px;
          font-weight: bold;
          text-align: center;
          padding-bottom: 10px;
          position: relative;

          &::before {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 5px;
            border-radius: 100vmax;
            background-color: var(--as-orange);
          }
        }

        figure {
          margin-top: 10px;
        }

        p {
          margin-top: 10px;
        }
      }
    }
  }

  /* 施設の空き情報 */
  .day-service-calendar-wrap {
    h2 {
      font-size: 20px;
      background-color: var(--as-green);
      color: #fff;
      padding: 7px 0 8px 5px;

      @media (min-width: 1024px) {
        width: 980px;
      }
    }

    p {
      font-size: 15px;
      margin-top: 20px;
    }

    .day-service-calendar-wrap--inner {
      position: relative;
      padding-bottom: 85%;
      height: 0;
      overflow: hidden;
      margin-top: 30px;

      iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }
    }
  }


  /* モーダル */
  .modal.micromodal-slide {
    position: relative;
    z-index: 99;

    .modal__container {
      padding: 10px;
      position: relative;
      overflow: visible;
      max-width: 1400px;

      @media (min-width: 768px) {
        padding: 20px;
      }

  .modal__close {
    position: absolute;
    top: -40px;
    right: 8px;
    outline: 4px solid transparent;
    transition: outline 0.3s ease, outline-offset 0.3s ease;

    &:focus-visible {
      outline: 4px solid rgba(7, 145, 59, 0.5);
      outline-offset: 2px;
    }

    img {
      width: 60px;
    }
  }

      .modal__content {
        margin: 0;
        overflow-y: scroll;
        max-height: 87.75vh;
      }
    }
  }

  /* 今すぐ電話で相談する */
  a.tel-now-btn {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    padding-bottom: env(safe-area-inset-bottom);
    width: 100%;
    z-index: 50;

    @media (min-width: 768px) {
      top: 92px;
      right: 0;
      bottom: auto;
      left: auto;
      width: 8.33%;
    }
  }
  
} /*day-service-wrap_202602*/
