@charset "UTF-8";

/* 内科・外科 移転のお知らせ */
.relocation {
  @media screen and (min-width: 1025px) {
    position: fixed;
    right: 0;
    bottom: 100px;
    z-index: 999;
    width: 250px;
    background-color: var(--orange-color);
    border-radius: 15px 0 0 15px;
    padding: 1.5em 2.8em 1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    box-sizing: border-box;

    &.is-hidden {
      display: none;
    }

    /* リンク全体 */
    a {
      display: block;
      color: #fff;
      text-decoration: none;

      &:hover {
        opacity: 1;

        .bg-btn {
          background-color: var(--main-color);
          color: var(--bg-color);
        }
      }
    }

    .line01 {
      font-size: 1.5rem;
      font-weight: 600;
      line-height: 1.3;

      span {
        font-size: 2.2rem;
      }
    }

    .line02 {
      font-size: 2rem;
      font-weight: 600;
      line-height: 1.3;
      margin-bottom: 12px;

      span {
        font-size: 2.8rem;
      }
    }

    /* 「詳細はこちら」ボタン */
    .bg-btn {
      display: inline-block;
      width: 100%;
      background-color: var(--bg-color);
      color: var(--orange-color);
      font-size: 1.5rem;
      font-weight: 600;
      padding: 6px 0;
      border-radius: 20px;
      transition: all 0.3s ease-in-out;
    }

    /* 閉じる（✕）ボタン */
    .btn-close {
      position: absolute;
      top: 0;
      right: 0;
      width: 35px;
      height: 30px;
      background: var(--bg-color);
      border: none;
      cursor: pointer;
      padding: 0;

      /* ✕の斜め線2本を疑似要素で描画 */
      &::before,
      &::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 2px;
        background-color: var(--orange-color);
      }

      &::before {
        transform: translate(-50%, -50%) rotate(45deg);
      }

      &::after {
        transform: translate(-50%, -50%) rotate(-45deg);
      }

      &:hover {
        opacity: 0.7;
      }
    }
  }
}

/* mainvisual
----------------------------------- */
.mainvisual {
  @media screen and (min-width: 1025px) {
    position: relative;
    margin-bottom: 3em;
  }
  .mv-bg {
    /* height: 250px; */
    height: auto;
    aspect-ratio: 1400/950;
    background-image: url(../img/img_main.jpg);
    background-repeat: no-repeat;
    background-position: 15% center;
    background-size: cover;
    position: relative;

    @media screen and (min-width: 768px) {
    }
    @media screen and (min-width: 1025px) {
      aspect-ratio: 1400/649;
      background-position: center center;

      &::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background: var(--primary-color);
        opacity: 0.35;
      }
    }
  }
}

.inMv {
  background: var(--main-color);
  position: relative;
  padding-bottom: 2em;
  margin-bottom: 2em;
  overflow-x: clip;
  overflow-y: visible;

  @media screen and (min-width: 1025px) {
    position: absolute;
    width: 60%;
    right: 0;
    top: 50%;
    transform: translateY(-30%);
    background: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  @media screen and (min-width: 1200px) {
    width: 45%;
    padding-right: 5%;
  }

  &::before,
  &::after {
    position: absolute;
    content: "";

    @media screen and (min-width: 1025px) {
      display: none;
    }
  }
  &::before {
    width: 100%;
    height: 30px;
    background: var(--main-color);
    top: -30px;
    left: 0;
    clip-path: ellipse(55% 100% at 50% 100%);
  }
  &::after {
    width: 230px;
    height: 230px;
    right: -10%;
    bottom: -10%;
    background-image: url("../img/logomark.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
  }
}

.catch {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  border-bottom: 1px solid var(--bg-color);
  padding-bottom: 1em;

  @media screen and (min-width: 768px) {
  }
  @media screen and (min-width: 1025px) {
  }

  & span {
    color: var(--bg-color);
    font-weight: 600;
    display: inline-block;
    border-radius: 10px;
    letter-spacing: 0.2em;
    font-size: clamp(3.2rem, 2.3rem + 1.3vw, 5rem);
    line-height: 1.5em;

    @media screen and (min-width: 768px) {
    }
  }
}
.message {
  font-size: 1.6rem;
  padding-top: 1em;
  color: var(--bg-color);
  font-weight: bold;
  letter-spacing: 0.15em;
  line-height: 2.1em;
}

/* 重要なお知らせ
----------------------------------- */
.impBox {
  position: relative;
  margin-bottom: 2em;

  @media screen and (min-width: 1025px) {
    display: flex;
    margin-bottom: 4em;
  }
}

.ttlImp {
  background: #d13015;
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  font-weight: bold;
  padding: 0.5em 1em;
  display: inline-block;
  border-radius: 5px 5px 0 0;
  white-space: nowrap;

  @media screen and (min-width: 1025px) {
    display: flex;
    align-items: center;
    border-radius: 5px 0 0 5px;
    font-size: 2rem;
    padding: 0.5em 2.5em;
  }
}

.impSlider {
  overflow: hidden;
  border: 2px solid #d13015;
  border-radius: 0 5px 5px 5px;
  padding: 0.5em;

  @media screen and (min-width: 1025px) {
    padding: 1em 0.5em;
    border-radius: 0 5px 5px 0;
  }
}

.swiper-wrapper {
  /* left: -2em; */
}

.ttl-has_border {
  color: var(--main-color);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-bottom: 1em;

  &::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    background-color: currentColor;
    margin-left: 20px;
  }
}

/* news
----------------------------------- */
.newsList {
  li {
    list-style: none;
    margin: 0 auto 1em;
    padding: 0 1em;

    @media screen and (min-width: 1025px) {
      margin: 0 auto 1.5em;
    }

    & a {
      @media screen and (min-width: 1025px) {
        display: flex;
        gap: 1em;
        align-items: center;
      }
    }

    a:hover {
      text-decoration: none;
      opacity: 0.7;
    }

    time {
      color: var(--main-color);
      font-weight: 600;
      margin-right: 0;
      margin-bottom: 0.5em;
      display: block;
      padding-top: 0.5em;

      @media screen and (min-width: 768px) {
        margin-right: 1em;
        margin-bottom: 0;
        display: inline;
        padding-top: 0;
      }
    }

    .newsTtl {
      font-size: 1.7rem;

      &.imtPost {
        font-weight: 600;
      }
    }
  }
}
.impBox .newsList {
  li {
    margin: 0 auto 0;
  }
}

.tabla-hours {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--main-color);
  background-color: var(--sub-color);
  border-radius: 8px;
  padding: 0.6em 0.5em;
  margin-bottom: 1em;

  & th,
  & td {
    border: none;
    text-align: center;
    padding: 0.6em 0.2em;
    font-weight: bold;
    line-height: 1.4;
    vertical-align: middle;
  }

  & th,
  & td:first-child {
    color: var(--primary-color);
  }

  & td:not(:first-child) {
    color: var(--main-color);
  }
}

/* cases
----------------------------------- */
.cases {
  & h2 {
    color: white;
    font-size: 16px;
    padding: 10px;
    background-color: #e19133;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
  }
}
.cases-item {
  a {
    display: block;
    text-align: center;
    position: relative;
    margin-bottom: 1em;

    p {
      position: absolute;
      width: 100%;
      bottom: 20px;
      left: 0;
      color: var(--bg-color);
      font-size: 2rem;
    }
  }
}

/* calender
----------------------------------- */

.fc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  h2 {
    font-weight: bold;
    font-size: 2rem;
  }

  .fc-center,
  .fc-clear {
    display: none;
  }
}

.fc-view-container {
  max-height: 450px;
  overflow: scroll;
  overflow-x: hidden;
}

#calendar_ganka {
  margin-bottom: 10px;
}

.fc-event {
  &.red {
    color: #333 !important;
    border: 1px solid #fedddd;
    background-color: #fedddd;
  }

  &.yellow {
    color: #333 !important;
    border: 1px solid #fffe9f;
    background-color: #fffe9f;
  }

  &.blue {
    color: #333 !important;
    border: 1px solid #8eb9f9;
    background-color: #8eb9f9;
  }
}

.fc-content {
  font-size: 10px;
}
.fc-title {
  font-size: 13px;
}

.embedmap {
  margin-bottom: -10px;
}
