@charset "UTF-8";

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

  *基本設定

================================================================================================================================== */
.front {
  overflow: hidden;
}

section .inner {
  padding: 100px 0;
}

.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) {
  section .inner {
    padding: 70px 20px;
  }

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

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

  *タイトル

================================================================================================================================== */
.top_title {
  margin-bottom: 50px;
  line-height: 1.5;
  text-align: center;

  /* 左寄せ */
}

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

.top_title h2 {
  font-size: 220%;
  font-family: var(--main-font);
}

.top_title .eng {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--text-color3);
  font-size: 330%;
  font-family: var(--sub-font);
  font-weight: 700;
}

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

  .top_title h2 {
    margin: 0;
    font-size: 180%;
    margin-top: -5px;
  }

  .top_title .eng {
    font-size: 280%;
  }
}

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

  *メインビジュアル

================================================================================================================================== */
.mainvisual {
  position: relative;
  z-index: 1;
  height: 940px;
  overflow: hidden;
}

.mvSlider {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* ----- スライダーの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: 47%;
  left: 0;
  z-index: 3;
  width: 100%;
  transform: translateY(-50%);
}

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

.mvCatch p {
  font-family: var(--main-font);
}

.mvCatch p.title {
  font-size: 210%;
  filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 10px #ffffff);
  padding: 10px 10px 0;
  text-align: left;
  font-weight: 600;
}

.mvCatch p span.color01 {
  color: var(--main-color);
}

.mvCatch p span.color02 {
  color: var(--sub-color);
}

.mvCatch p.text {
  font-size: 150%;
  filter: drop-shadow(rgb(255, 255, 255) 0px 0px 6px) drop-shadow(rgb(255, 255, 255) 0px 0px 6px) drop-shadow(rgb(255, 255, 255) 0px 0px 6px);
  text-align: left;
  text-shadow: 0px 0px 3px #fff;
  font-weight: 600;
  padding: 10px;
  line-height: 1.4;
}

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

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

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

.open {
  position: absolute;
  bottom: 40px;
  display: inline-block;
  padding: 4px;
  background: rgba(255, 255, 255, 0.4);
}

.open .inner {
  position: relative;
  font-family: var(--main-font);
  color: #fff;
  font-size: 110%;
  line-height: 1.5;
  font-weight: 700;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 250px;
  padding: 10px;
/*   background: rgba(108, 193, 150, 0.7); */
	background: rgba(108, 193, 150, 1);
  background-size: cover;
}

.open .inner::before {
  content: "";
  border: 1px solid #fff;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  position: absolute;
}

.open_logo {
  width: 50px;
  height: auto;
  margin-top: -20px;
  margin-bottom: 10px;
}

.open_day {
  font-size: 100%;
}

.open_title {
  font-size: 190%;
}

.preview_title {
  background-color: #fff;
  width: 80%;
  border-radius: 9999px;
  color: var(--sub-color);
  margin: 10px auto 5px;
  text-align: center;
  padding: 3px 0;
  font-size: 110%;
}


.mv-bnr {
  position: absolute;
  left: 300px;
  bottom: 40px;
}

.mv-bnr_list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.mv-bnr_item {
  position: relative;
  display: inline-block;
  padding: 5px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.mv-bnr_item a {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 190px;
  height: 190px;
  padding: 15px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 110%;
  line-height: 1.5;
  text-align: center;
  font-family: var(--main-font);
  font-weight: 700;
/*   background: rgba(247, 184, 109, 0.7); */
  background: rgba(247, 184, 109, 1);
}

.mv-bnr_item a span {
  font-size: 120%;
  margin: 0 auto 3px;
}

.mv-bnr_item a::before {
  content: "";
  border: 1px solid #fff;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 9999px;
  position: absolute;
}


/* ----- RIBONバナー ----- */
.mv_ribon {
  position: absolute;
  bottom: 150px;
  left: 0;
}

.sp_only {
  display: none;
}

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

  /* ----- スライダーの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: 70%;
    display: none;
  }

  .mvCatch.is-active {
    display: block;
  }

  .mvCatch p.title {
    font-size: 145%;
    filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 5px #ffffff);
    padding: 15px 0 0;
    text-align: center;
    font-weight: 600;
    line-height: 1.5;
  }

  .mvCatch p.text {
    font-size: 120%;
    filter: drop-shadow(rgb(255, 255, 255) 0px 0px 3px) drop-shadow(rgb(255, 255, 255) 0px 0px 3px) drop-shadow(rgb(255, 255, 255) 0px 0px 3px);
    padding: 5px;
  }

  .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 {
    position: static;
  }

  .open .inner::before {
    width: 95%;
    height: 95%;
  }

  .open_logo {
    width: auto;
    max-width: 50px;
    margin-bottom: 5px;
  }
  

  .mv-bnr {
    display: contents;
    width: 50%;
  }
  
  .mv-bnr_item {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0;
  }

  .mv-bnr_item a {
    width: 100%;
    height: 100%;
    padding: 0;
  }

  .mv-bnr_item a::before {
    width: 96%;
    height: 96%;
  }

  .mv-bnr_item.-item01 a {
    margin-top: 0;
  }

  .mv-bnr_item.-item03 a {
    margin-top: 0;
  }
}

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

  *バナーエリア

================================================================================================================================== */
/* ----- 共通設定 ----- */
.top_banner {
  padding: 0 20px;
}

.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;
  border-radius: 10px;
}

.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);
}

/* ----- スライダーバナー ----- */
#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: 3px;
  background: rgba(255, 255, 255, 0.6);
  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: var(--main-color);
  border-radius: 50%;
  font-size: 80%;
  transition: background 0.2s;
}

#bannerSlider .bannerSlider_arrow:hover i {
  background: var(--text-color);
}

#bannerSlider .bannerSlider_arrow_prev {
  left: 0;
}

#bannerSlider .bannerSlider_arrow_next {
  right: 0;
}

/* ページネーション */
#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) {
  .top_banner {
    padding: 0;
  }

  .top_banner .inner {
    padding: 30px 20px;
  }

  /* ----- グリッドバナー ----- */
  .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: 40px;
    height: 40px;
  }

  #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;
  }
}

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

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

==================================================================================================================================*/
.clinic {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.clinic::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 0;
  display: block;
  width: calc(100% - 40px);
  height: 500px;
  background: url(../images/partition_img01.jpg) no-repeat center / cover;
  background-attachment: fixed;
}

.clinic::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 30%;
  height: 50%;
  background: var(--bg-color2);
  background-image: url(../images/bg_img01.jpg);
  background-size: contain;
  z-index: -1;
}

/* ----- お知らせ ----- */
.clinic .news {
  position: relative;
  z-index: 1;
}

.clinic .news .inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  padding: 100px 0;
  max-width: 1230px;
}

.clinic .news .news_left {
  flex-shrink: 0;
}

.clinic .news .top_title {
  margin: 0 0 30px;
}

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

/* ----- 医院概要 ----- */
.clinic .info {
  padding-bottom: 300px;
}

.clinic .info .inner {
  display: flex;
  gap: 40px;
  background: rgba(255, 255, 255, 1);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 9px 1px;
  padding: 30px 35px 60px;
  border-radius: 10px;
}

.clinic .info .inner > * {
  width: calc(50% - 20px);
}

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

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

.clinic .info address .location {
  padding: 5px 0 5px 50px;
}

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

.clinic .info address .location .zipcode {
  margin-right: 10px;
}

.clinic .info address .tel {
  margin-top: 15px;
  padding: 3px 0 7px 50px;
  font-size: 30px;
  line-height: 1;
  color: var(--text-color3);
  font-family: var(--main-font);
  letter-spacing: normal;
}

.clinic .info address .tel::before {
  content: "\f3cd";
}

.clinic .info address .fax {
  margin-top: 15px;
  padding: 5px 0 5px 50px;
  font-size: 30px;
  line-height: 1;
}

.clinic .info address .fax::before {
  content: "\f249";
}

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

.clinic .info .speciality {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px auto 0;
  background: var(--bg-color2);
  border-radius: 5px;
}

.clinic .info .speciality .title {
  flex-shrink: 0;
  width: fit-content;
  padding: 10px 30px;
  background: var(--main-color);
  color: #ffffff;
  text-align: center;
  border-radius: 5px 0 0 5px;
}

.clinic .info .office_hour:first-child {
  margin-top: 30px;
}

.clinic .info .list_access {
  margin-top: 5px;
}

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

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

.clinic .info .googlemap iframe {
  height: 350px;
}

@media screen and (max-width: 640px) {

  .clinic {
    padding: 0
  }

  .clinic::before {
    width: 100%;
    height: 300px;
    bottom: -100px;
  }

  .clinic::after {
    opacity: 0.7;
  }

  .clinic .news .inner {
    flex-flow: column;
    gap: 0;
    padding: 30px 20px 60px;
  }

  .clinic .info {
    padding: 0 20px;
  }

  .clinic .info .inner {
    flex-flow: column;
    padding: 25px 20px 50px;
  }

  .clinic .info .inner > * {
    width: 100%;
  }

  .clinic .info .speciality {
    flex-flow: column;
    gap: 10px;
  }

  .clinic .info .speciality .title {
    width: 100%;
    border-radius: 5px 5px 0 0;
  }

  .clinic .info .speciality .text {
    padding: 0 10px 10px;
  }
}


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

  *ご挨拶

================================================================================================================================== */
.greeting {
  background-image: url(../images/bg_img03.jpg);
  background-size: contain;
  background-position: top -200px center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.5);
  background-blend-mode: lighten;
  padding: 0 20px;
}

.greeting .top_title {
  text-align: left;
  margin-bottom: 30px;
}

.greeting .inner {
  position: relative;
  padding: 120px 0;
}

.greeting h3 {
  font-size: 160%;
  font-family: var(--main-font);
  margin-bottom: 30px !important;
  color: var(--text-color2);
  margin-top: 40px;
  font-weight: 600;
}

.greeting h3 span {
  display: block;
  position: relative;
  padding-left: 45px;
}

.greeting h3 span:before {
  border-top: 1px solid var(--text-color2);
  content: "";
  width: 1.5em;
  margin-right: 0.5em;
  position: absolute;
  left: 0;
  top: 50%;
}

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

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

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

.greeting_left {
  position: relative;
  z-index: 2;
  width: calc(55%);
  height: fit-content;
  margin: 0;
}

.greeting_text {
  font-family: var(--main-font);
  font-size: 100%;
}

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

.greeting_text p {
  background-image: linear-gradient(90deg, transparent 0%, transparent 50%, #fff 50%, #fff 100%), linear-gradient(180deg, #eee 1px, transparent 1px);
  background-size: 8px 100%, 100% 2.5em;
  line-height: 2.5em;
  padding-bottom: 1px;
}

.greeting_right {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: calc(45% + 0px);
  height: fit-content;
}

.greeting_profile {
  color: var(--main-color);
  line-height: 1.75;
  text-align: center;
}

.greeting_profile-inner {
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.greeting_profile-img {
  margin: 30px auto 15px;
  max-width: 380px;
}

.greeting_profile .position {
  font-size: 150%;
  margin-right: 10px;
  font-family: var(--main-font);
}

.greeting_profile .name {
  font-size: 180%;
}

.greeting_btn {
  margin-top: 30px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.greeting_img {
  position: relative;
  margin-top: -100px;
}

.greeting_img:before {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 500px;
  height: 100%;
  background: url(../images/bg_img02.jpg) no-repeat center / cover;
  z-index: -1;
  opacity: 0.6;
  border-radius: 10px;
}

.greeting_img img {
  border-radius: 20px;
}

/* ==============================================
  *SP ご挨拶
============================================== */
@media screen and (max-width: 640px) {
  .greeting {
    background-position: top center;
  }

  .greeting .inner {
    padding: 150px 0 50px;
  }

  .greeting_flex {
    flex-flow: column-reverse;
    gap: 40px;
    margin-top: 50px;
  }

  .greeting_left {
    width: 100%;
  }

  .greeting_right {
    width: 100%;
  }

  .greeting h3 {
    font-size: 140%;
    margin-bottom: 20px !important;
    margin-top: 20px;
  }

  .greeting h3 span {
    padding-left: 22px;
  }

  .greeting h3 span:before {
    width: 1em;
    margin-right: 0.5em;
    left: 0;
    top: 12px;
  }

  .greeting_img {
    margin-top: 0;
  }

  .greeting_img:before {
    right: -20px;
    top: -20px;
    width: 90%;
    height: 100%;
  }

  .greeting_btn {
    margin-top: 20px;
    display: inherit
  }

  .greeting_btn a {
    min-width: 260px;
  }

  .greeting_btn a + a {
    margin-top: 10px;
  }
}

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

  *診療案内

================================================================================================================================== */
.medical {
  background: var(--bg-color);
  padding: 0 20px;
}

.medical .top_title {
  color: #ffffff;
}

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

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

.medical_item {
  position: relative;
  z-index: 1;
  width: calc(33% - 15px);
  height: auto;
}

.medical_item:nth-of-type(n+4){
	width: calc(100% / 4 - 20px);
}

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

.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;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 420px;
  min-height: 270px;
  text-align: center;
  flex-flow: column;
  padding: 30px 20px 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 1)
}

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

.medical_icon {
/*   width: 250px;
  height: 200px; */
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px !important;
/*   background-image: url(../images/bg_img05.png); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;*/
background: linear-gradient(135deg, var(--main-color), #f7d76d);
  border-radius: 50%;
  aspect-ratio: 1/1;
}

.medical_icon-inner {
  width: 70%;
  max-width: 120px;
}

.medical_icon img {
/*   filter: invert(50%) sepia(90%) saturate(905%) hue-rotate(336deg) brightness(98%) contrast(85%); */
 filter: brightness(0) invert(1);
}


.medical_title h3 {
  color: var(--text-color);
  font-size: 120%;
  font-family: var(--main-font);
}

.medical_title_eng {
  margin-top: 5px;
  color: var(--main-color);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
}

.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;
  border-radius: 5px;
}

.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);
}

/* ----- 先頭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 {
    padding: 0;
  }

  .medical .inner {
    padding: 40px 20px;
  }

  .medical_list {
    gap: 15px 10px;
  }
.medical_item:nth-of-type(n+4),
  .medical_item {
    width: calc(50% - 5px);
  }

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

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

  .medical_icon {
    width: 100%;
    height: auto;
  }

  .medical_icon-inner {
    width: 100%;
    max-width: none;
  }

  .medical_icon-inner img {
    padding: calc((70 / 640) * 100vw);
  }

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

  .medical_btn span {
    padding: 7px 25px 7px 10px;
  }

  /* ----- 先頭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;
  z-index: 1;
  padding: 0 20px;
}

.feature::before {
  position: absolute;
  top: 80px;
  right: 0;
  width: calc(100% - (50% - 540px));
  height: 94%;
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  background: #ffeddc;
  background: var(--bg-color);
  content: "";
  z-index: -2;
}

/* .feature::after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#fedc5e 2px, #fff 2px);
  background-size: 10px 10px;
  opacity: 0.3;
  content: "";
  z-index: -1;
}
 */
.feature .inner {
  padding: 150px 0 140px;
}

.feature_list {
  display: flex;
  flex-flow: wrap;
  gap: 40px 30px;
  margin-top: 100px;
}

.feature_item {
  position: relative;
  display: flex;
  flex-flow: column;
  width: calc(33.3333333333% - 20px);
  height: auto;
}

.feature_item:nth-child(6) {
  margin-top: 20px;
}
.feature_item:nth-child(7) {
  margin-top: 20px;
}
.feature_item:nth-child(8) {
  margin-top: 20px;
}


.feature_num {
  margin: 0 0 0 !important;
  font-size: 150%;
}

.feature_num span {
  color: var(--main-color);
  font-size: 140%;
}

.feature_inner {
  display: flex;
  flex-flow: column;
  height: 100%;
  padding: 25px 20px 0;
  border-radius: 0 0 20px 20px;
}

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

.feature_title {
  display: flex;
  flex-flow: column;
  justify-content: center;
  min-height: 70px;
  margin-bottom: 15px !important;
  position: absolute;
  top: -10px;
  left: 5px;
}

.feature_title h3 {
  color: var(--main-color);
  font-size: 130%;
  line-height: 1.75;
  font-family: var(--main-font);
}

.feature_title h3 span.headinner {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.feature_title h3 span.line {
  color: #fff;
  font-weight: 600;
  padding: 13px 3px;
  background:#f8b86d;
  margin-left: 10px;
  writing-mode: vertical-rl;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 9px 1px;
  border-radius: 3px;
}

.feature_title h3 span.line:first-child {
  order: 2;
}

.feature_title h3 span.line:last-child {
  order: 1;
}

.feature_link {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
  margin-top: auto;
  justify-content: center;
}

.feature_link:has(.feature_btn:nth-child(3)) {
  justify-content: center;
}

.feature_link:has(.feature_btn:only-child) {
  justify-content: center; /* アイテムが1つなら中央 */
}

.feature_btn {
  width: calc((100% / 2) - (10px / 2));
  height: fit-content;
  margin-top: auto;
  text-align: center;
}

.feature_item .btn01 a {
  position: relative;
  width: 100%;
  font-size: 110%;
  font-weight: 600;
  border-radius: 9999px;
}

.feature_img img {
  border-radius: 20px;
}


/* ---- 横並びボタン ----- */
.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%;
}


/* ----- 先頭2つの設定----- */
.feature_item:nth-of-type(-n + 2) {
  width: calc(50% - 15px);
  min-height: 350px;
}

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

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

.feature_item:nth-of-type(-n + 2) .feature_title {
  left: 10px;
}

.feature_item:nth-of-type(-n + 2) .feature_title h3 {
  font-size: 160%;
}


@media screen and (max-width: 640px) {

  .feature .inner {
    padding: 60px 0;
  }

  .feature::before {
    top: 40px;
    width: 80%;
    height: 98%;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
  }

  .feature_list {
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
  }

  .feature_item {
    width: 100%;
  }

  .feature_item:nth-of-type(-n + 2) {
    width: 100%;
  }

  .feature_item:nth-of-type(-n + 2) .feature_inner {
    padding: 0;
  }


  .feature_inner {
    padding: 0;
  }

  .feature_title {
    min-height: auto;
    margin-top: 15px;
    margin-bottom: 15px !important;
    display: inherit;
    position: inherit;
  }

  .feature_title h3 span.headinner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .feature_title h3 span.line {
    padding: 3px 10px 3px;
    margin-left: 0;
    font-size: 16.5px;
    writing-mode: inherit;
    height: 35px;
    display: inline-block;
  }

  .feature_title h3 span.line:nth-child(2) {
    margin-top: 0;
  }

  .feature_title h3 span.line:first-child {
    order: 1;
  }
  
  .feature_title h3 span.line:last-child {
    order: 2;
  }

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

  .feature_link {
    display: contents;
  }

  .feature_btn {
    width: 100%;
    margin-top: 10px;
  }

  .feature_item .btn01 a {
    padding: 7px 45px 7px 35px;
    font-size: 100%;
  }

  .feature_item:nth-child(6) {
    margin-top: 0;
  }

  .feature_item:nth-child(7) {
    margin-top: 0;
  }

  .feature_item:nth-child(8) {
    margin-top: 0;
  }




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

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

  *病状、症状から探す

================================================================================================================================== */
.search {
  background: linear-gradient(150deg, rgb(246 184 109 / 30%) 50%, rgba(255, 229, 167, 0.4)), url(../images/partition_img01.jpg) no-repeat center / cover;
  padding: 0 20px;
}

.search .inner {
  padding: 140px 0;
}

.search .top_title .eng {
  color: var(--text-color2);
}


.search .tab_list {
  gap: 10px;
}

.search .tab_list li {
  border: 1px solid #fff;
  background: #fff;
  color: #e89a39;
}

.search .tab_list li.active {
  position: relative;
  background: var(--main-color);
  font-weight: 600;
  border: 1px solid var(--main-color);
  color: #fff;
}

.search .tab_list li.active:after {
  content: "";
  height: calc(tan(60deg) * 15px / 2);
  width: 25px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--main-color);
  position: absolute;
  bottom: -12px;
}

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

.search .panel {
  position: relative;
  z-index: 1;
  padding: 25px 0 0;
  background: none;
}

.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: 70px;
  padding: 10px 45px 10px 30px;
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: 5px;
  font-family: var(--main-font);
  font-size: 110%;
}

.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(44% - 10px);
  margin: 0 !important;
}

.search_img img {
  width: 100%;
  border-radius: 5px;
}

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

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


/* ==============================================
  *SP 病状、症状から探す
============================================== */
@media screen and (max-width: 640px) {

  .search .inner {
    padding: 40px 0;
  }

  .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_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 {
  background: var(--bg-color);
}

.column_list {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  gap: 50px 25px;
  padding: 30px;
  background: #ffffff;
}

.column_box {
  width: calc(25% - 18.75px);
}

.column_box dt a {
  display: block;
  padding: 15px 10px;
  background: var(--main-color);
  color: #ffffff;
  font-size: 110%;
  text-align: center;
}

.column_box dd {
  padding: 15px 10px;
  border-bottom: 1px dashed 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_list {
    gap: 40px;
  }

  .column_box {
    width: 100%;
  }
}

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

  *無限スライダー

================================================================================================================================== */
#infinitySlider {
  position: relative;
  overflow: hidden;
  padding: 130px 0 30px;
  /* background: var(--bg-color); */
  background: #fdecd6;
}
/* 
#infinitySlider::before {
  position: absolute;
  content: "IKEZAKI CLINIC";
  color: #fff;
  font-family: var(--sub-font);
  font-size: 180px;
  line-height: 250px;
  top: -30px;
  width: 2100px;
  margin: 0 auto;
  left: calc(50% - 1050px);
  text-align: center;
  opacity: 0.6;
  white-space: nowrap;
  z-index: 0;
}
 */
#infinitySlider .splide__list {
  gap: 10px;
}

#infinitySlider .splide__slide {
  width: 350px !important;
}

/* ==============================================
  *SP 無限スライダー
============================================== */
@media screen and (max-width: 640px) {
  #infinitySlider {
    padding: 80px 0 0;
  }

  #infinitySlider::before {
    font-size: 100px;
    top: -80px;

  }

  #infinitySlider .splide__slide {
    width: 250px !important;
  }
}



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

  *ピックアップ（パターン01） - 追加コンテンツ

==================================================================================================================================*/
.pickup {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.pickup .inner {
  width: 100%;
  padding: 110px 0 160px;
}

.pickup_list {
  display: flex;
  flex-flow: wrap;
  gap: 50px;
  margin-top: 110px;
}

.pickup_item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0 60px;
  width: 100%;
}

.pickup_img {
  position: relative;
  z-index: 1;
  width: 50%;
  flex-shrink: 0;
  height: fit-content;
}

.pickup_img:before {
  content: "";
  position: absolute;
  width: calc(100% + 100px);
  height: 100%;
  background: url(../images/bg_img01.jpg) no-repeat center / cover;
  z-index: -3;
}

.pickup_item:nth-of-type(odd) .pickup_img:before {
  top: -70px;
  left: -200px;
}

.pickup_item:nth-of-type(even) .pickup_img:before {
  bottom: -70px;
  right: -200px;
}

.pickup_item:nth-of-type(odd) .pickup_img img {
  width: 100%;
  border-radius: 10px;
}

.pickup_item:nth-of-type(even) .pickup_img img {
  width: 100%;
  border-radius: 10px;
}

.pickup_inner {
  position: relative;
  width: calc(50% - 60px);
  max-width: 700px;
  background: #fffbf1;
  padding: 20px;
}

.pickup_item:nth-of-type(odd) .pickup_inner {
  padding: 40px 30px 40px 30px;

}

.pickup_item:nth-of-type(even) .pickup_inner {
  padding: 40px 30px 40px 30px;
}

.pickup_inner:before {
  content: "";
  position: absolute;
  width: 250px;
  height: 100%;
  background: url(../images/bg_img02.jpg) no-repeat center / cover;
  z-index: -3;
}

.pickup_item:nth-of-type(odd) .pickup_inner:before {
  top: -50px;
  right: -70px;
}

.pickup_item:nth-of-type(even) .pickup_inner:before {
  bottom: -50px;
  left: -70px;
}

.pickup_title {
  position: relative;
  z-index: 2;
  margin: 0 auto 15px;
  text-align: center;
}

.pickup_title h2, .pickup_title h3 {
  font-size: 150%;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.5;
}

.pickup_title span {
  position: relative;
  color: var(--sub-color);
  font-size: 200%;
  font-family: var(--main-font);
}

.pickup_title h3 span {
  color: inherit;
  font-size: 80%;
}

.pickup_text {
  margin: 30px 0;
}

.pickup_link {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
  margin-top: auto;
  justify-content: center;
}

.pickup_link .pickup_btn {
  width: calc((100% / 2) - (10px / 2));
  height: fit-content;
}

.pickup_link .pickup_btn a {
  position: relative;
  display: block;
  padding: 15px 43px 14px 26px;
  background: var(--sub-color);
  border-radius: 9999px;
  color: rgb(255, 255, 255);
  font-size: 100%;
  line-height: 1.6;
  letter-spacing: 0.15em;
  text-align: center;
  transition: 0.2s;
  font-family: var(--main-font);
  font-weight: 600;
}

.pickup_link .pickup_btn a:hover {
  filter: brightness(1.05);
  color: #fff;
}

.pickup_link .pickup_btn a::after {
  position: absolute;
  top: 50%;
  right: 15px;
  content: "\f054";
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: 0.2s;
  font-size: 10px;
  color: var(--sub-color);
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.pickup_link .pickup_btn a:hover::after {
  right: 10px;
}

/* 偶数 */
.pickup_item:nth-child(even) {
  flex-flow: row-reverse;
}

/*==============================================
  *SP　ピックアップ（追加コンテンツ）
==============================================*/
@media screen and (max-width:640px) {

  .pickup .inner {
    padding: 40px 0 60px;
  }

  .pickup_list {
    width: calc(100%);
    margin-top: 0;
    gap: 80px;
  }

  .pickup_title h2, .pickup_title h3 {
    font-size: 20px;
  }

  .pickup_title span {
    font-size: 160%;
    padding-bottom: 14px;
  }

  .pickup_item {
    flex-flow: column;
    width: 100%;
  }

  .pickup_img {
    width: 100%;
    margin: 0 auto 0 0;
  }

  .pickup_inner {
    width: 100%;
    margin: 20px auto 0 !important;
    padding: 25px 20px 35px !important;
  }

  .pickup_text {
    margin: 20px 0 30px;
  }

  .pickup_link {
    min-height: auto;
    margin-top: 20px;
  }

  .pickup_link .pickup_btn {
    width: 100%;
  }

  /* 偶数 */
  .pickup_item:nth-child(even) {
    flex-flow: column;
  }

  .pickup_item:nth-child(even) .pickup_img {
    margin: 0 0 0 auto;
  }

  .pickup_item:nth-of-type(even) .pickup_img img {
    border-radius: 0;
  }

  .pickup_item:nth-child(even) .pickup_inner {
    margin: -30px auto 0 0;
  }

  

  .pickup_item:nth-of-type(odd) .pickup_img:before {
    top: -30px;
    left: -20px;
    width: calc(100% - 130px);
  }

  .pickup_item:nth-of-type(even) .pickup_img:before {
    top: -30px;
    left: inherit;
    right: -20px;
    width: calc(100% - 130px);
  }

  .pickup_item:nth-of-type(odd) .pickup_inner:before {
    top: 20px;
    right: -50px;
  }

  .pickup_item:nth-of-type(even) .pickup_inner:before {
    top: 20px;
    right: -50px;
  }
}
