@charset "UTF-8";

/* ---------------------
  - *基本設定
  - *タイトル
  - *メインビジュアル
  - *バナーエリア
  - *医院概要
  - *ご挨拶
  - *診療案内
  - *当院の特徴
  - *病状・病名から探す
  - *医療コラム
  - *無限スライダー
--------------------- */
@import url("variables.css");

/* ==================================================================================================================================

  *基本設定

================================================================================================================================== */
body {
    position: relative;
}
body::before {
    position: absolute;
    content: "";
    width: 70%;
    height: 1330px;
    background: url(../images/bg_dairiseki.jpg) top left;
    top: 0;
    right: 0;

}
.front {
  overflow: hidden;
}

section .inner {
  padding: 120px 50px;
  max-width: 1500px;
}

.text > *:not(:last-child) {
  margin-bottom: 2em;
}

/* ----- パララックス ----- */
.parallax {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
}

/* 切り抜く範囲 */
.parallax_img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  clip-path: inset(0);
}

/* 固定する画像 */
.parallax_img::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==============================================
  *SP 基本設定
============================================== */
@media screen and (max-width: 640px) {
    body::before {
        z-index: -1;
        height: 600px;
    }
  section .inner {
    padding: 70px 20px;
  }

  /* ----- パララックス ----- */
  .parallax {
    height: 300px;
  }
}

/* ==================================================================================================================================

  *タイトル

================================================================================================================================== */
.top_title {
  margin-bottom: 100px;
  line-height: 1.5;

  /* 左寄せ */
}

.top_title.title_left {
  text-align: start;
}

.top_title h2 {
  font-size: 150%;
  font-family: var(--jp-font);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.12em;
}

.top_title .eng {
  display: inline-block;
  padding-bottom: 17px;
  font-size: 650%;
  font-family:  var(--en-font);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.1em;
   background: linear-gradient(135deg, #d1ba8c, var(--sub-color02));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: -5px;
}

/* ==============================================
  *SP タイトル
============================================== */
@media screen and (max-width: 640px) {
  .top_title {
    margin-bottom: 40px;
    text-align: center;
  }

  .top_title h2 {
    margin: 5px 0 0;
    font-size: 18px;
  }

  .top_title .eng {
    font-size: 40px;
    padding-bottom: 5px;
  }
}

/* ==================================================================================================================================

  *メインビジュアル

================================================================================================================================== */
.mainvisual {
  position: relative;
  z-index: 1;
  height: 900px;
  overflow: hidden;
  width: calc(100% - 80px);
  margin: 0 auto;
}
.mvSlider {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mvSlider::before {
    content: "";
    position: absolute;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border: 1px solid #fff;
    z-index: 1;
}

/* ----- スライダーのArrowボタン ----- */
.mvSlider .sliderBtn {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
}

.mvSlider .sliderBtn#mv_btnPrev {
  left: 20px;
}

.mvSlider .sliderBtn#mv_btnNext {
  right: 20px;
}

.mvSlider .sliderBtn span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  border-radius: 50%;
  transition: background 0.2s;
}

.mvSlider .sliderBtn span:hover {
  background: var(--text-color);
}

.mvSlider .sliderBtn span::before {
  padding: 0 0 1px 0;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  color: #ffffff;
  font-size: 15px;
  transition: color 0.2s;
}

.mvSlider .sliderBtn#mv_btnPrev span::before {
  content: "\f053";
}

.mvSlider .sliderBtn#mv_btnNext span::before {
  content: "\f054";
}

/* 各スライダーのボタンは非表示に */
.mvSlider .splide__arrows {
  display: none;
}

/* ----- MVの画像 ----- */
.mvImg {
  width: 100%;
  height: 100%;
}

.mvImg .splide__track {
  width: 100%;
  height: 100%;
}

.mvImg .splide__slide {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.mvImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* フェードの専用スタイル */
.fade .mvImg .splide__slide img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: calc(100% + 50px);
  pointer-events: none;
}

/* アニメーションを実行 */
.fade.move .mvImg .splide__slide img {
  animation: hideTranslate 8s ease-out forwards;
}

.fade.move .mvImg .splide__slide.is-active img {
  animation: showTranslate 8s ease-out forwards;
}

/* MVのアニメーション  */
@keyframes hideImg {
  0% {
    opacity: 1;
  }

  10% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}
@keyframes showTranslate {
  0% {
    transform: translate3d(0, 0px, 0);
  }

  100% {
    transform: translate3d(0, -30px, 0);
  }
}
@keyframes hideTranslate {
  /* 下降 */
  0% {
    transform: translate3d(0, -30px, 0);
  }

  100% {
    transform: translate3d(0, 0px, 0);
  }
}

/* ----- キャッチコピー ----- */
.mvCatch {
  position: absolute !important;
  top: 36%;
  left: 0;
  z-index: 3;
  width: 100%;
  transform: translateY(-50%);
letter-spacing: 0.25em;
}

.mvCatch .inner {
  position: relative;
  z-index: 1;
}

.mvCatch p {
  font-size: 180%;
  text-shadow:
  0px 0px 3px rgba(175,151,97, 0.7),
  0px 0px 10px rgba(175,151,97, 0.5);
  font-family: var(--jp-font);
  font-weight: 400;
  font-style: normal;
  color: #fff;
}
.mvCatch p:nth-child(2) {
    margin-left: 75px;
}
.mvCatch p:nth-child(3) {
    margin-left: 150px;
}
.mvCatch p > span {
    font-size: 130%;
    padding-right: 10px;
}

/* ----- コンテンツ ----- */
.mvContents {
  position: absolute !important;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.mvContents .inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.mvContents .splide__track {
  width: 100%;
  height: 100%;
}

.open_bnr {
  position: absolute;
  bottom: 50px;
  display: inline-block;
  padding: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.open_bnr > * {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 280px;
  height: 280px;
  padding: 15px;
  background: var(--main-color);
  border-radius: 50%;
  color: #ffffff;
  font-size: 110%;
  line-height: 1.5;
  text-align: center;
}

.open_bnr .date {
  font-size: 110%;
}

.open_bnr .open_text {
  margin: 0 0 10px;
  font-size: 180%;
}

.open_bnr .nairankai_tit {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 5px 10px;
  background: #ffffff;
  border-radius: 300px;
  color: var(--main-color);
  font-size: 90%;
  text-align: center;
}

/* サブカラー */
.open_bnr.subcolor > * {
  background: var(--sub-color);
}

.open_bnr.subcolor > * .nairankai_tit {
  color: var(--sub-color);
}

/* mv_info */
.mv_info_wrap {
    position: absolute;
    bottom: 120px;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}
.mv_info {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    background: url(../images/bg_mv_info.svg) center / contain no-repeat;
    color: #fff;
    font-family: var(--jp-font);
    font-weight: 400;
    font-style: normal;
    text-align: center;
    padding: 15px;
    font-size: 120%;
    letter-spacing: 0.12em;
    line-height: 1.75;
    gap: 7px;
}
.mv_info::before {
    display: block;
    width: 40px;
    height: 40px;
}
.mv_info.child::before {
    content: "";
    background: url(../images/mv_info_icon01.svg) center / contain no-repeat;
}
.mv_info.bicycle::before {
    content: "";
    background: url(../images/mv_info_icon02.svg) center / contain no-repeat;
}
/* ----- RIBONバナー ----- */
.mv_ribon {
  position: absolute;
  bottom: 150px;
  left: 0;
}

.sp_only {
  display: none;
}

/* ==============================================
  *SP メインビジュアル
============================================== */
@media screen and (max-width: 640px) {
  .mainvisual {
    height: 400px;
    width: 100%;
  }

  /* ----- スライダーのArrowボタン ----- */
  .mvSlider .sliderBtn {
    top: 50%;
    width: 40px;
    height: 40px;
    padding: 2px;
    font-size: 12px;
  }

  .mvSlider .sliderBtn#mv_btnPrev {
    left: 10px;
  }

  .mvSlider .sliderBtn#mv_btnNext {
    right: 10px;
  }

  .mvSlider .sliderBtn span::before {
    font-size: 11px;
  }

  .mvCatch {
    top: auto;
    bottom: 20px;
  }

  .mvCatch p {
    font-size: 100%;
    line-height: 1.75;
  }
.mvCatch p:nth-child(2) {
    margin-left: 20px;
}
.mvCatch p:nth-child(3) {
    margin-left: 40px;
}
  .mvContents {
    display: none;
  }

  .sp_only {
    display: block;
    background: none !important;
  }

  .sp_only .inner {
    padding: 0 20px;
  }

  .sp_only_contents {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .open_bnr {
    position: static;
    width: 100%;
    max-width: 350px;
    border-radius: 0;
  }

  .open_bnr > * {
    width: 100%;
    height: auto;
    padding: 15px 20px;
    border-radius: 0;
  }
  .sp_only_contents {
    align-items: stretch;
}
    .mv_info_wrap {
        gap: 10px;
        justify-content: center;
        position: static;
        padding: 25px 0 10px;
    }
    .mv_info {
    width: calc(100% / 2 - 5px);
    height: 100%;
    aspect-ratio: 1 / 1;
    max-width: 200px;
    font-size: 14px;
}
.mv_info::before {
    flex-shrink: 0;
}
}

/* ==================================================================================================================================

  *バナーエリア

================================================================================================================================== */
/* ----- 共通設定 ----- */
.top_banner .banner_slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--text-color);
}

/* 画像のみのバナー */
.top_banner .onlyimg .banner_slide {
  height: fit-content;
  padding: 0;
}

.top_banner .onlyimg .banner_slide img {
  width: 100%;
  height: auto;
  transition: opacity 0.2s;
}

.top_banner .onlyimg a.banner_slide:hover img {
  opacity: 0.5;
}

/* インプットバナー */
.top_banner .input .banner_slide {
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 15px;
  background: var(--bg-color);
}

.top_banner .input .banner_slide .slide_img {
  flex-shrink: 0;
  width: calc(30% - 10px);
  height: 100%;
}

.top_banner .input a.banner_slide:hover {
  background: #f5f5f5;
}

.top_banner .input .slide_img {
  flex-shrink: 0;
  width: calc(30% - 10px);
  height: 100%;
}

.top_banner .input .banner_slide .slide_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top_banner .input .slide_inner {
  width: 100%;
  height: 100%;
  padding: 0 0 10px;
}

.top_banner .input .slide_title {
  margin: 0 auto 10px;
  padding: 5px;
  border-bottom: 1px solid var(--line-color);
  color: var(--main-color);
  font-size: 110%;
  line-height: 1.5;
}

.top_banner .input .slide_content {
  font-size: 90%;
}

/* ----- グリッドバナー ----- */
.banner_grid ul {
  display: flex;
  flex-flow: wrap;
  gap: 20px;
}

.banner_grid li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(33.3333333333% - 13.3333333333px);
}

/* ----- スライダーバナー ----- */

.top_banner.banner_slider {
    position: relative;
}
#bannerSlider .splide {
  position: relative;
  z-index: 1;
}

#bannerSlider .splide__inner {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

/* スライドの設定  */
#bannerSlider .splide__slide {
  display: flex;
  align-items: center;
  min-height: 200px;
}

/* スライダーのArrowボタン */
#bannerSlider .bannerSlider_arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  padding: 2px;
  background: rgba(45, 79, 66, 0.2);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
}

#bannerSlider .bannerSlider_arrow i {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 0 1px 0;
  background: #fff;
  border-radius: 50%;
  font-size: 80%;
  transition: background 0.2s;
}

#bannerSlider .bannerSlider_arrow:hover i {
  background: var(--bg-color02);
}

#bannerSlider .bannerSlider_arrow_prev {
  left: 0;
}

#bannerSlider .bannerSlider_arrow_prev span::before {
  content: "\f104";
}

#bannerSlider .bannerSlider_arrow_next {
  right: 0;
}

#bannerSlider .bannerSlider_arrow_next span::before {
  content: "\f105";
}
.fa-chevron-left:before,
.fa-chevron-right:before {
      color: var(--main-color);
}
/* ページネーション */
#bannerSlider .bannerSlider_pagination {
  z-index: 1;
  display: flex;
  gap: 15px;
  margin: 30px auto 0;
}

#bannerSlider .bannerSlider_page {
  width: 10px;
  height: 10px;
  background-color: #e8e8e8;
  border-radius: 50%;
  transition: background 0.2s;
}

#bannerSlider .bannerSlider_page.is-active {
  background: var(--main-color);
}

/* ==============================================
  *SP バナーエリア（追加コンテンツ）
============================================== */
@media screen and (max-width: 640px) {
    h1 {
        background: none;
        margin: 0 auto;
    }
  /* ----- グリッドバナー ----- */
  .top_banner.banner_slider .inner {
    padding: 0 10px 50px;
  }
  .banner_grid li {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* ----- スライダーバナー ----- */
  #bannerSlider .splide__inner {
    position: relative;
    z-index: 1;
    padding: 0 15px;
  }

  /* スライダーのArrowボタン */
  #bannerSlider .bannerSlider_arrow {
    width: 30px;
    height: 30px;
  }

  #bannerSlider .bannerSlider_arrow i {
    padding: 0 0 1px 0;
  }

  /* ページネーション */
  #bannerSlider .bannerSlider_pagination {
    gap: 12px;
    margin: 20px auto 0;
  }

  #bannerSlider .bannerSlider_page {
    width: 8px;
    height: 8px;
  }
}

/* ==================================================================================================================================

  *医院概要（パターン01）

================================================================================================================================== */
.clinic {
    position: relative;
  background: url(../images/bg_dairiseki.jpg) top left;
}
.clinic::after {
    position: absolute;
    content: "";
    width: calc(100% - 80px);
    height: 500px;
    background: url(../images/bg_img01.jpg) center / cover no-repeat;
    bottom: -250px;
    left: 0;
    z-index: 1;
    /* outline: 1px solid #fff;
    outline-offset: -8px; */
}
.clinic .inner {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  gap: 60px;
  padding: 120px 50px 370px;
}

.clinic .inner > * {
  width: calc(50% - 30px);
  background: rgba(255,255,255,0.9);
  padding: 80px 50px;
  box-shadow: 0px 0px 10px rgba(175,151,97, 0.1);
}

/* ----- お知らせ ----- */
.clinic .news .top_title h2 {
  font-size: 150%;
}
.clinic .news .top_title {
    margin-bottom: 60px;
    text-align: center;
}
.clinic .news .top_title h2 {
    font-size: 130%;
}
.clinic .news .top_title .eng {
    font-size: 400%;
    background: linear-gradient(135deg, var(--sub-color), var(--sub-color03));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.clinic .news .btn01 {
  margin-top: 30px;
  text-align: center;
}

/* ----- 医院概要 ----- */
.clinic .info .office_hour .table_wrap {
  background: #ffffff;
}

.clinic .info .office_hour .title {
  background: #ffffff;
}

.clinic .info .speciality {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--sub-color03);
  margin: 20px auto 0;
  padding: 0;
  font-family: var(--jp-font);
  font-weight: 400;
  font-style: normal;
}
.clinic .info .speciality span {
    width: calc(100% / 3 - 7px);
    display: block;
    padding: 5px 15px;
    text-align: center;
    border: 1px solid var(--sub-color03);
}
.clinic .info .speciality .title {
  flex-shrink: 0;
  width: fit-content;
  padding: 10px 30px;
  background: var(--main-color);
  color: #ffffff;
  text-align: center;
}

.clinic .info address {
  margin-top: 20px;
}

.clinic .info address > * {
  position: relative;
  z-index: 1;
  min-height: 40px;
}

.clinic .info address > *::before {
    content: none;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--main-color);
  font-size: 16px;
}

.clinic .info address .location {
  padding: 3px 0 0 25px;
  margin-top: 20px;
}

.clinic .info address .location::before {
  content: "\f3c5";
}

.clinic .info address .location span {
  display: inline-block;
  margin-right: 10px;
}
.clinic .info address > *:not(.location) {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.clinic .info address .tel {
  margin-top: 15px;
  padding: 5px 0;
  font-size: 30px;
  color: var(--sub-color02);
  line-height: 1;
  font-family: var(--en-font);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.1em;
}
.clinic .info address .tel span {
    font-size: 20px;
}
.clinic .info address .tel a {
    color: var(--sub-color02);
}
/* .clinic .info address .tel::before {
  content: "\f3cd";
} */

.clinic .info address .fax {
  margin-top: 5px;
  padding: 5px 0;
  line-height: 1;
  font-family: var(--en-font);
  font-weight: 400;
  font-style: normal;
  color: var(--sub-color02);
}

.clinic .info address .fax p {
  font-size: 30px;
  letter-spacing: 0.1em;
}
.clinic .info address .fax span {
    font-size: 20px;
    letter-spacing: 0.1em;
}
/* .clinic .info address .fax::before {
  content: "\f249";
} */

.clinic .info address .note {
  margin-top: 20px;
  padding-left: 12px;
  font-size: 90%;
}

.clinic .info .list_access {
  margin-top: 0;
}

.clinic .info .btn01 {
  margin-top: 30px;
  text-align: center;
}

@media screen and (max-width: 640px) {
.clinic::after {
    height: 150px;
    width: calc(100% - 30px);
    bottom: -70px;
}
.clinic .inner {
    padding: 70px 20px 140px;
    gap: 30px;
}
  .clinic .inner > * {
    width: 100%;
    padding: 50px 20px;
  }
.clinic .news .top_title {
    margin-bottom: 40px;
}
.clinic .news .top_title h2 {
    font-size: 15px;
}
.clinic .news .top_title .eng {
    font-size: 40px;
}
  /* ----- 医院概要 ----- */
  .clinic .info .speciality {
    gap: 10px;
    padding: 0;
  }

  .clinic .info .speciality .title {
    width: 100%;
  }
  .clinic .info .speciality span {
    padding: 5px;
  }
  .clinic .info address .location span {
    display: block;
  }
  .clinic .info .list_access {
    margin-top: 10px;
}
}

/* ==================================================================================================================================

  *ご挨拶

================================================================================================================================== */
.greeting {
    position: relative;
    background: url(../images/bg_greeting.jpg) top left / 80% no-repeat;
}
.greeting::after {
    content: "";
    position: absolute;
    width: 30%;
    height: 1200px;
    background: url(../images/bg_dairiseki.jpg) top left;
    bottom: -150px;
    right: 0;
    z-index: 0;
}
.greeting .inner {
    padding: 370px 50px 120px;
}

.greeting_box {
  position: relative;
  z-index: 1;
}

.greeting_flex {
  display: flex;
  gap: 70px;
}

.greeting_box:not(:last-child) {
  margin-bottom: 70px;
}

.greeting_left {
  flex-shrink: 0;
  width: 60%;
}

.doctor_catch {
    display: flex;
    flex-flow: column;
    gap: 25px;
    font-size: 200%;
    margin-top: -60px;
    font-family: var(--jp-font);
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    flex-shrink: 0;
}
.doctor_catch p {
    height: fit-content;
    letter-spacing: -0.22em;
    background: linear-gradient(135deg, var(--sub-color), var(--sub-color03));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* ▼safari用 */
_::-webkit-full-page-media, _:future, :root .doctor_catch p {
    letter-spacing: 0.12em;
}
/* ▲safari用 */
/* ▼Firefox用 */
@-moz-document url-prefix() {
.doctor_catch p {
    letter-spacing: 0.12em;
}
}
/* ▲Firefox用 */


.doctor_catch p:nth-child(2) {
    padding-top: 5em;
}
.greeting_text {
    display: flex;
    flex-direction: row-reverse;
    gap: 70px;
}
.greeting_text .doctor_text_inner > *:not(:last-child) {
  margin-bottom: 2em;
}

.greeting_text .doctor_text_inner {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 40px;
}
.greeting_text .doctor_text_inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: linear-gradient(-90deg,rgba(68, 68, 68, 0.2),rgba(68, 68, 68, 0));
    left: 0;
    bottom: 0;
}
.greeting_message {
    color: var(--main-color);
    font-family: var(--en-font);
    font-weight: 400;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -12px;
}
.greeting_message::after {
    content: "";
    width: calc(100% - 6em);
    height: 1px;
    background: linear-gradient(90deg,rgba(68, 68, 68, 0.2),rgba(68, 68, 68, 0));
    display: block;
}
.greeting_text .doc_link {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
}
.btn01.greeting_btn {
    min-width: 215px;
}

.greeting_img {
    position: relative;
    margin: 0 30px 30px 0;
}

.greeting_img img {
    outline: 1px solid #fff;
    outline-offset: -8px;
}
.greeting_profile {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  padding: 20px;
  line-height: 1.75;
  text-align: center;
  background: url(../images/bg_mv_info.svg) center / contain no-repeat;
  color: #fff;
  width: 200px;
  height: 200px;
  font-family: var(--jp-font);
  font-weight: 400;
  font-style: normal;
  bottom: -30px;
  right: -30px;
}

.greeting_profile .position {
  font-size: 120%;
}

.greeting_profile .name {
  font-size: 130%;
}
.greeting_profile .name span {
    font-size: 80%;
    padding-right: 10px;
}
.greeting_under_img_wrap {
    position: relative;
    display: flex;
    padding: 0 20px;
    gap: 15px;
    align-items: flex-end;
    z-index: 1;
}
.greeting_under_img:nth-child(1) {
    width: 60%;
    height: 350px;
}
.greeting_under_img:nth-child(2) {
    width: 40%;
    height: 450px;
}
.greeting_under_img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==============================================
  *SP ご挨拶
============================================== */
@media screen and (max-width: 640px) {
.greeting {
    background-size: 150%;
}
.greeting::after {
    height: 370px;
    bottom: 0;
}
.greeting .inner {
    padding: 120px 20px 70px;
}
  .greeting_flex {
    flex-flow: column-reverse;
    gap: 25px;
  }

  .greeting_left {
    width: 100%;
  }
.greeting_text {
    flex-direction: column;
    gap: 50px;
}
.doctor_catch {
    font-size: 22px;
    margin-top: 22px;
    writing-mode:rl-tb;
    -ms-writing-mode: rl-tb;
    gap: 15px;
    padding: 0 25px;
}
.doctor_catch p {
    letter-spacing: 0.12em;
}
.doctor_catch p:nth-child(2) {
    padding-top: 0;
    text-align: right;
}
.greeting_text .doc_link {
    gap: 40px;
    flex-wrap: wrap;
}
  .greeting_img {
    margin: 0 auto;
    width: 80%;
  }
  .greeting_profile {
    width: 145px;
    height: 145px;
  }
  .greeting_profile .position {
    font-size: 80%;
  }
  .greeting_profile .name {
    font-size: 100%;
  }
.greeting_under_img_wrap {
    gap: 10px;
    padding: 0;
}
.greeting_under_img:nth-child(1) {
    height: 100px;
}
.greeting_under_img:nth-child(2) {
    height: 135px;
}
}

/* ==================================================================================================================================

  *診療案内

================================================================================================================================== */
.medical {
    position: relative;
}
.medical::before {
    position: absolute;
    content: "";
    background: 
    linear-gradient(90deg,rgba(255,255,255,0.8),rgba(255,255,255,0.4)),
    url(../images/bg_medical.jpg) bottom right / cover no-repeat;
    width: 100%;
    height: 520px;
    top: 0;
    left: 0;
    z-index: -1;
}
.medical .inner {
    padding: 150px 50px;
}
.medical .top_title {
  margin-bottom: 120px;
}

.medical .top_title span {
  color: var(--main-color);
}

.medical_list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.medical_item {
  position: relative;
  z-index: 1;
  width: calc(20% - 12px);
  height: auto;
  transition: filter 0.5s, transform 0.5s;
}

.medical_item:hover {
  transform: translateY(-10px);
  filter: brightness(1.2);

}

.medical_img {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
}

.medical_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.medical_inner {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 270px;
  padding: 30px 20px 40px;
  background: linear-gradient(135deg, var(--sub-color), var(--sub-color03));
  text-align: center;
  outline: 1px solid #7ea393;
  outline-offset: -8px;
}

.medical_inner > *:not(:last-child) {
  margin-bottom: 15px;
}

.medical_icon {
  width: 70%;
  max-width: 100px;
  margin: 0 auto 15px !important;
  background: url(../images/bg_medical_icon.svg) center / contain no-repeat;
}

.medical_title h3 {
  color: #fff;
  font-size: 120%;
  font-family: var(--jp-font);
  font-weight: 400;
  font-style: normal;
    line-height: 1.5;
    padding-top: 5px;
}

.medical_title_eng {
  margin-top: 10px;
  color: #c5b89c;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
font-family:  var(--en-font);
font-weight: 400;
font-style: normal;
}

.medical_text {
  color: var(--text-color);
}

.medical_btn span {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 auto;
  padding: 7px 25px 7px 15px;
  background: var(--main-color);
  border: 1px solid var(--main-color);
  color: #ffffff;
  letter-spacing: 1px;
  text-align: center;
  transition: padding 0.2s, color 0.2s, background 0.2s;
}

.medical_btn span::after {
  content: "\f105";
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 10px;
  transform: translateY(-50%);
}

.medical_item:hover .medical_btn span {
  background: #ffffff;
  color: var(--main-color);
}

/* .medical_under_img > img {
    outline: 1px solid #fff;
    outline-offset: -8px;
} */
/* ----- 先頭2つの設定----- */
/* .medical_item:nth-of-type(-n + 2) {
  width: calc(50% - 10px);
  min-height: 350px;
}

.medical_item:nth-of-type(-n + 2) .medical_inner {
  padding: 20px 20px 40px;
}

.medical_item:nth-of-type(-n + 2) .medical_icon {
  max-width: 100px;
  margin: 0 auto 5px !important;
}

.medical_item:nth-of-type(-n + 2) .medical_title h3 {
  font-size: 150%;
} */

/* ==============================================
  *SP 診療案内
============================================== */
@media screen and (max-width: 640px) {
.medical::before {
    height: 250px;
}
.medical .inner {
    padding: 70px 20px;
}
.medical .top_title {
    margin-bottom: 40px;
    text-align: left;
}
  .medical_list {
    gap: 15px 10px;
  }

  .medical_item {
    width: calc(50% - 5px);
  }

  .medical_item:hover {
    transform: translateY(-5px);
  }

  .medical_inner {
    min-height: auto;
    padding: 20px 10px;
  }

  .medical_icon {
    width: 50%;
  }

  .medical_title h3 {
    font-size: 110%;
  }

  /* ----- 先頭2つの設定----- */
  /* .medical_item:nth-of-type(-n + 2) {
    width: 100%;
    min-height: auto;
  }

  .medical_item:nth-of-type(-n + 2) .medical_inner {
    padding: 15px 20px 30px;
  }

  .medical_item:nth-of-type(-n + 2) .medical_icon {
    width: 30%;
  }

  .medical_item:nth-of-type(-n + 2) .medical_title h3 {
    font-size: 140%;
  } */
}

/* ==================================================================================================================================

  *当院の特徴（パターン01）

================================================================================================================================== */
.feature {
    position: relative;
    background: url(../images/bg_feature.jpg) bottom right / 60% no-repeat;
}
.feature::before {
    position: absolute;
    content: "";
    background: url(../images/bg_dairiseki.jpg) top left;
    width: 80%;
    height: 58%;
    top: 590px;
    left: 0;
    z-index: 0;
}
.feature .inner {
    padding: 150px 50px;
}
.feature .top_title {
    margin-bottom: 120px;
}
.feature_list {
  display: flex;
  flex-flow: wrap;
  gap: 50px 30px;
}

.feature_item {
  position: relative;
  display: flex;
  flex-flow: column;
  width: calc(33.3333333333% - 40px);
  height: auto;
  margin: 40px 0 0 20px;
  box-shadow: 0px 0px 10px rgba(175,151,97, 0.2);
}

.feature_num {
position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    width: 90px;
    height: 90px;
    padding: 10px;
    color: #fff;
    margin: 0 0 0 !important;
    font-size: 80%;
    letter-spacing: 0.12em;
    background: url(../images/bg_feature_info.svg) center / cover no-repeat;
    font-family: var(--en-font);
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    left: -20px;
    top: -40px;
    z-index: 1;
}

.feature_num span {
  font-size: 240%;
}

.feature_inner {
    position: relative;
  display: flex;
  flex-flow: column;
  height: 100%;
  padding: 0;
  background: rgba(255,255,255,0.9);
  padding-top: 48px;
}
.feature_inner::before {
    position: absolute;
    content: "";
    width: 1px;
    height: 30px;
    background: #99a39f;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.feature_inner > *:not(:last-child) {
  margin-bottom: 20px;
}

.feature_img {
    position: relative;
    outline: 1px solid #fff;
   outline-offset: -8px; 
}
.feature_img::before {
    position: absolute;
    content: "";
    width: 1px;
    height: 8px;
    background: #fff;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.feature_title {
    display: flex;
  flex-flow: column;
  justify-content: center;
  min-height: 80px;
  margin-bottom: 15px !important;
  padding: 0 20px;
}

.feature_title h3 {
  color: var(--text-color);
  font-size: 160%;
  line-height: 1.6;
  text-align: center;
  font-family: var(--jp-font);
  font-weight: 400;
  font-style: normal;
}
.feature_item:nth-child(6) .feature_title h3 {
    font-size: 142%;
}
.feature_inner > p {
    padding: 0 30px;
    line-height: 1.8;
}

.feature_item .btn01 {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
}
.feature_item .btn01 > a {
    width: 100%;
    background: linear-gradient(135deg, var(--sub-color), var(--sub-color03));
    color: #fff;
    padding: 15px 20px;
    transition: filter 0.5s;
}
.feature_item .btn01 > a:hover {
   filter: brightness(1.2); 
}
.feature_item .btn01 > a::before {
    content: none;
}
.feature_item .btn01 > a::after {
    background: #fff;
    right: 20px;
    left: auto;
}
.feature_item .btn01 > a:hover::after {
    right: 15px;
}
/* 偶数 */
.feature_item:nth-child(even) .feature_num {
    background: url(../images/bg_feature_info_b.svg) center / cover no-repeat;
}
.feature_item:nth-child(even) .btn01 > a {
    background: linear-gradient(135deg, #d1ba8c, var(--sub-color02));
}

/* ---- 横並びボタン ----- */
.btnflex_feature {
  display: flex;
  flex-flow: wrap;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}

.btnflex_feature .btn01 {
  width: calc(50% - 2.5px);
}

.btnflex_feature .btn01 > * {
  width: 100%;
}

@media screen and (max-width: 640px) {
.feature {
    background-size: 150%;
}
.feature::before {
    height: 88%;
    top: 300px;
}
.feature .inner {
    padding: 70px 20px;
}
.feature .top_title {
    margin-bottom: 40px;
}
  .feature_list {
    gap: 30px;
  }

  .feature_item {
    width: 100%;
    margin: 20px 10px 0 10px;
  }
  .feature_inner {
    padding-top: 40px;
  }
  .feature_inner::before {
    height: 25px;
  }
.feature_num {
    width: 70px;
    height: 70px;
    top: -20px;
}
  .feature_title {
    min-height: auto;
    margin-bottom: 15px !important;
  }
  .feature_title h3 {
    font-size: 125%;
  }
  .feature_item:nth-child(6) .feature_title h3 {
    font-size: 125%;
  }
  .feature_inner > p {
    padding: 0 20px;
  }
.feature_item .btn01 {
    padding-top: 15px;
}

  /* ---- 横並びボタン ----- */
  .btnflex_feature .btn01 {
    width: 100%;
  }
}

/* ==================================================================================================================================

  *病状、症状から探す

================================================================================================================================== */
.search {
  position: relative;
}

.search .tab_list {
  gap: 10px;
}

.search .tab_list .tab {
  padding: 15px 20px;
}

.search .panel {
  position: relative;
  z-index: 1;
  padding: 25px;
  background: var(--main-color);
}

.search_list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  height: fit-content;
}

.search_list li {
  width: calc(33.3333333333% - 13.3333333333px);
  height: auto;
}

/* ----- リンクボタン ----- */
.search_list li a {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 60px;
  padding: 10px 45px 10px 30px;
  background: var(--bg-color);
  color: var(--text-color);
}

.search_list li a::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 19px;
  z-index: 2;
  display: block;
  width: 14px;
  height: 7px;
  background: #ffffff;
  -webkit-mask: url(../images/btn_arrow.png) no-repeat center/14px 7px;
  mask: url(../images/btn_arrow.png) no-repeat center/14px 7px;
  transform: translateY(-50%);
  transition: background 0.2s;
}

.search_list li a:hover::before {
  background: var(--main-color);
}

/* 矢印の背景 */
.search_list li a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  z-index: 1;
  display: block;
  width: 22px;
  height: 22px;
  background: var(--main-color);
  border: 1px solid var(--main-color);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.2s;
}

.search_list li a:hover::after {
  background: #ffffff;
}

/* ----- 画像あり ----- */
.panel_flex.active {
  display: flex;
  flex-flow: wrap;
  gap: 20px;
}

.search_img {
  width: calc(50% - 10px);
  margin: 0 !important;
}

.panel_flex .search_list {
  width: calc(50% - 10px);
}

.panel_flex .search_list li {
  width: calc(50% - 10px);
}

/* ==============================================
  *SP 病状、症状から探す
============================================== */
@media screen and (max-width: 640px) {
  .search .tab_list {
    flex-flow: column;
    gap: 7px;
    margin: 0 0 15px;
  }

  .search .tab_list .tab {
    width: 100%;
    min-height: auto;
    padding: 10px !important;
    font-size: 120%;
    transform: translate(0, 0) !important;
  }

  .search .panel {
    padding: 20px;
  }

  .search_list {
    gap: 10px;
  }

  .search_list li {
    width: 100%;
  }

  .search_list li a {
    min-height: auto;
    padding: 10px 40px;
  }

  /* ----- 画像あり ----- */
  .search .panel_flex.active {
    gap: 20px;
  }

  .search_img {
    width: 100%;
  }

  .panel_flex .search_list {
    width: 100%;
  }

  .panel_flex .search_list li {
    width: 100%;
  }
}

/* ==================================================================================================================================

  *医療コラム（パターン01）

================================================================================================================================== */

.column .inner {
    padding: 0 50px 150px;
    max-width: 100%;
}
.top_column_box {
    padding: 120px 0;
    background: url(../images/bg_dairiseki.jpg) top left;
}
.column .top_title {
    text-align: center;
}
.column_list {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  gap: 50px 25px;
  padding: 0 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.column_box {
  width: calc(25% - 18.75px);
  background: #fff;
}
.column_box dt {
    font-weight: 400;
}
.column_box dt a {
  display: block;
  padding: 15px 10px;
  background: linear-gradient(135deg, var(--sub-color), var(--sub-color03));
  color: #ffffff;
  font-size: 110%;
  text-align: center;
  font-family: var(--jp-font);
  font-style: normal;
  transition: filter 0.5s;
}
.column_box dt a:hover {
    filter: brightness(1.2);
}
.column_box dd {
  padding: 15px 10px;
  border-bottom: 1px solid var(--line-color);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.column_box dd a {
  color: var(--text-color);
}

.column_box dd a:hover {
  color: var(--main-color);
}

/* ==============================================
  *SP 医療コラム
============================================== */
@media screen and (max-width: 640px) {
.column .inner {
    padding: 0 20px 70px;
}
.top_column_box {
    padding: 50px 0;
}
  .column_list {
    gap: 20px;
    padding: 0 20px;
  }

  .column_box {
    width: 100%;
  }
}

/* ==================================================================================================================================

  *無限スライダー

================================================================================================================================== */
#infinitySlider {
  position: relative;
  z-index: 1;
}

#infinitySlider .splide__list {
  gap: 20px;
}

#infinitySlider .splide__slide {
  width: 450px !important;
}
.footer_info {
padding-top: 150px;
margin-top: -150px;
}
/* ==============================================
  *SP 無限スライダー
============================================== */
@media screen and (max-width: 640px) {
  #infinitySlider .splide__slide {
    width: 250px !important;
  }
  .footer_info {
    padding-top: 70px;
    margin-top: -70px;
}
}
