/* =============================================================
common
============================================================= */
.section-title {
  color: var(--color--primary);
  font-size: clamp(2rem, 4vw, 2.375rem);
  letter-spacing: 0.05em;
  font-weight: 500;
line-height: 140%;
}
.section-title-news {
  font-size: 1.2rem;
  text-align: center;
}

.more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: min(2vw, 16px);
  color: #ab485d;
}

.more-btn02 {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: min(2vw, 16px);
  color: #ab485d;
}

.more-btn03 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: min(2vw, 16px);
  color: #ab485d;
}

.more-btn-icon {
  width: 50px;
  height: 50px;
  transition: all 0.4s ease-out;
}
.more-btn:hover .more-btn-icon {
  transform: translateX(5px);
}

.more-btn02:hover .more-btn-icon {
  transform: translateX(5px);
}

.more-btn03:hover .more-btn-icon {
  transform: translateX(5px);
}

/* responsive */
@media screen and (min-width: 1024px) {
  .section-title-news {
    text-align: left;
  }
  .more-btn {
    justify-content: flex-end;
  }

  .more-btn-icon {
    width: 60px;
    height: 60px;
  }
}
/* =============================================================
fv
============================================================= */
.fv {
  padding: 0;
}

.fv-slider {
  height: 80vh;
  height: 80dvh;
  min-height: 400px;
  max-height: 528px;
  padding-bottom: 50px;
}

.fv-slider-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9.5vw 10vw;
}
.fv-slider-item picture {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.fv-slider-text {
  display: flex;
  flex-direction: column;
  row-gap: min(10vw, 60px);
  line-height: 2;
  font-family: var(--font-family-sub);
  color: var(--color--primary);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.05em;
}
.fv-slider-item02 .fv-slider-text {
  color: var(--color--text);
}
.fv-slider-text ._middle-text {
  display: block;
  width: fit-content;
  border: 1px solid var(--color--primary);
  font-size: clamp(1.5rem, 4vw, 2rem);
  padding-inline: 20px;
}

.fv-slider-text ._small-text {
  display: block;
  font-size: clamp(1rem, 3vw, 1.2rem);
  letter-spacing: 0;
}
/* swiperのカスタマイズ */
.fv-slider-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 30px;
}
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: 0px;
}
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #e6e6e6;
}
.swiper-pagination-bullet-active {
  background-color: #808080;
}
/* responsive */
@media screen and (min-width: 1024px) {
  .fv-slider {
    height: 100vh;
    height: 100dvh;
    max-height: 960px;
  }
  .fv-slider-item {
    justify-content: flex-start;
    padding: 9.8vw 14vw;
  }
  .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
  }
}
/* =============================================================
news
============================================================= */
.news-list {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  margin-block: 10vw 15vw;
}
.news-inner {
  max-width: 930px;
  margin-inline: auto;
}

.news-link {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
  font-size: 1rem;
}

.news-link p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
}

.news-link-more {
  position: relative;
  display: block;
  font-size: clamp(1rem, 4vw, 1.2rem);
  /*line-height: 1.8;*/
  width: fit-content;
  margin-inline: auto;
}
.news-link-more:hover {
  opacity: 1;
}

.news-link-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--color--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-link-more:hover::after {
  transform: scaleX(1);
}
@media screen and (min-width: 1024px) {
  .news-inner {
    display: grid;
    grid-template-columns: 1fr 62% 1fr;
  }
  .news-list {
    margin-block: 0;
  }
  .news-link {
    flex-direction: row;
    column-gap: 2.5rem;
  }
  .news-link p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .news-link-more {
    align-self: flex-end;
    margin-right: 0;
  }
}
/* =============================================================
outpatient
============================================================= */
.top-outpatient {
  background-image: url(/wp/images/top/sp-background-image01.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.top-outpatient_mente {
  background-image: url(/wp/images/mente/mente_back_sp.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.top-service-box {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.top-service-box02 {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.top-outpatient-list {
  display: flex;
  flex-direction: column;
  row-gap: min(15vw, 30px);
  margin-block: min(10vw, 20px) min(20vw, 43px);
}
.top-outpatient table {
  border-collapse: collapse;
  max-width: 600px;
font-size: clamp(1.1rem, 2.5vw, 1.125rem);
}
.timetable-table {
  width: 100%;
  margin-bottom: min(10vw, 70px);
}
.timetable-table th,
.timetable-table td {
  border-bottom: 1px solid #000000;
  padding: 10px 0;
  text-align: center;
  vertical-align: middle;
}
.timetable-table th.left {
  text-align: left;
}
.outpatient-table {
  /* border-collapse: collapse; */
  width: 100%;
  margin-bottom: min(10vw, 50px);
}
.outpatient-table th,
.outpatient-table td {
  border-bottom: 1px solid #000000;
  padding: 10px 0;
  text-align: center;
  vertical-align: middle;
}
.outpatient-table td {
  width: 13%;
  font-size: clamp(0.75rem, 2.5vw, 1rem);
}
.outpatient-table .dept {
  text-align: left;
  font-size: clamp(0.75rem, 2.5vw, 1rem);
}

/* responsive */
@media screen and (min-width: 1024px) {
  .top-outpatient {
    background-image: url(/wp/images/top/background-image01.webp);
  }
  .top-outpatient_mente {
    background-image: url(/wp/images/mente/mente_back_pc.jpg);
  }
  .top-service-box {
    display: flex;
    column-gap: min(5.9vw, 114px);
  }

  .top-service-box02 {
    display: flex;
    column-gap: min(1.8vw, 114px);
  }

  .top-outpatient-list p {
    line-height: 2;
font-size: clamp(1.1rem, 2.5vw, 1.125rem);
  }
}
@media screen and (min-width: 1247px) {
  .top-outpatient-list {
    flex-direction: row;
    column-gap: min(2.3vw, 44px);
    margin-block: 0;
  }
}
/* =============================================================
hospitalization
============================================================= */
.top-hospitalization {
  background-image: url(/wp/images/top/sp-background-image02.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding-block: clamp(40px, 10vw, 50px);
}

.top-hospitalization-text {
  margin-block: min(10vw, 70px) min(20vw, 40px);
font-size: clamp(1.2rem, 2.5vw, 1.125rem);
line-height: 160%;
}
/* responsive */
@media screen and (min-width: 1024px) {
  .top-hospitalization {
    background-image: url(/wp/images/top/background-image02.webp);
  }
  .top-hospitalization-text {
    line-height: 2;
    margin-block: 0;
  }
  .top-hospitalization-btn {
    margin-top: 3rem;
  }
}
/* =============================================================
rehabilitation
============================================================= */
.top-rehabilitation {
  background-image: url(/wp/images/top/sp-background-image03.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding-block: clamp(40px, 10vw, 50px);
}
.top-rehabilitation-text {
  margin-block: min(10vw, 70px) min(20vw, 40px);
font-size: clamp(1.2rem, 2.5vw, 1.125rem);
line-height: 160%;
}
/* responsive */
@media screen and (min-width: 1024px) {
  .top-rehabilitation {
    background-image: url(/wp/images/top/background-image03.webp);
  }
  .top-rehabilitation-text {
    line-height: 2;
    margin-block: 0;
  }
  .top-rehabilitation-btn {
    margin-top: 3rem;
  }
}
/* =============================================================
about
============================================================= */
.about {
  padding-block: 80px 0;
}

.about-list {
  display: flex;
  flex-direction: column;
  row-gap: min(10vw, 50px);
  column-gap: min(2.3vw, 33px);
  /*width: max(70%, 317px);*/
  margin-block: 0 min(20vw, 82px);
  margin-inline: auto;
}

.about-link {
  display: block;
  border-radius: 10px;
  border: 1px solid #d5d5d5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.about-image {
  aspect-ratio: 400/210;
  overflow: hidden;
}
.about-image img {
  transition: all 0.4s ease-out;
}
.about-txts {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: min(5vw, 24px);
  padding: 30px;
}
.about-title {
  text-align: center;
}

.about-text {
  font-size: clamp(1rem, 2.5vw, 1rem);
  max-width: 300px;
line-height: 160%;
  margin-inline: auto;
}

.about-icon {
  display: block;
  width: 42px;
  height: 42px;
  transition: all 0.4s ease-out;
}
.about-link:hover .about-image img {
  transform: scale(1.1);
}
.about-link:hover .about-icon {
  transform: translateX(5px);
}
.top-info {
  background-color: #faf5f2;
  padding-block: clamp(40px, 10vw, 80px);
}

.top-info-box figure {
  aspect-ratio: 351/193;
  margin-bottom: min(10vw, 36px);
}
.top-info-title {
  font-size: clamp(1.2rem, 4vw, 1.3rem);
  margin-bottom: min(4vw, 18px);
}

.top-info-list {
  margin-bottom: min(10vw, 42px);
}
.top-info-item {
  border-top: 1px solid #b3b3b3;
}
.top-info-item:last-child {
  border-bottom: 1px solid #b3b3b3;
}
.top-info-link {
  position: relative;
  display: block;
  padding-inline: 5% 0;
  padding-block: 10px;
}
.top-info-link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #a04d5a;
  transition: all 0.4s ease-out;
}
.top-info-link:hover::after {
  transform: translateY(-50%) translateX(5px);
}
.access-map {
  aspect-ratio: 373/163;
  margin-bottom: min(5vw, 26px);
}
.access-list {
  max-width: 600px;
  font-size: clamp(1.1rem, 2.5vw, 1.125rem);
  margin-inline: auto;
}
.access-list div {
  display: flex;
  flex-direction: column;
  column-gap: 1.5rem;
  line-height: 2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

/* responsive */
@media screen and (min-width: 1024px) {
  .about-list {
    flex-direction: row;
    width: 100%;
    margin-block: 0 min(20vw, 90px);
  }
  .about-icon {
    width: 50px;
    height: 50px;
  }
  .top-info-box {
    display: grid;
    /*grid-template-columns: 44% 43%;*/
grid-template-columns: 54% 33%;
    grid-template-rows: auto auto;
    justify-content: space-between;
    row-gap: 35px;
    margin-bottom: min(10vw, 55px);
  }
  .top-info-box figure {
    grid-area: 1 / 1 / 3 / 2;
    margin-bottom: 0;
  }
  .top-info-title {
    grid-area: 1 / 2 / 2 / 3;
    margin-bottom: 0;
  }
  .top-info-list {
    grid-area: 2 / 2 / 3 / 3;
  }
  .top-info-link {
    padding-block: 15px;
  }
  .top-info-link::after {
    border-width: 7px 0 7px 10px;
  }
  .access-map {
    aspect-ratio: inherit;
    height: 310px;
  }
  .access-list div {
    flex-direction: row;
    margin-bottom: 10px;
  }
}




/*******SMART用*********/
@media print, screen and (max-width: 767px) {
	
.about-text {
font-size: clamp(1.1rem, 2.5vw, 1rem);
max-width: 300px;
line-height: 160%;
margin-inline: auto;
}

.about-txts {
padding: 20px;
}

}




/*-----iPad用------*/
/*　画面サイズが768pxから979pxまではここを読み込む　*/	
@media screen and (min-width:820px) and (max-width:1180px) {

.header{
  position: fixed;
  top:0; left:0;
  z-index: 9999;
  width:100%;
  height: var(--header-h);
  background:#fff;
}

.fv-slider-text {
  display: flex;
  flex-direction: column;
row-gap: min(10vw, 20px);
  line-height: 2;
  font-family: var(--font-family-sub);
  color: var(--color--primary);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: 0.05em;
}

.header-inner{
  padding:0 0.5em;
}

}



/*-----iPad用------*/
/*　画面サイズが768pxから979pxまではここを読み込む　*/	
@media screen and (min-width:768px) and (max-width:819px) {

.fv-slider-text {
row-gap: min(10vw, 20px);
font-size: clamp(1.5rem, 3vw, 2.5rem);
}

}









:root{
  --header-h: 58px;     /* sp */
}
@media (min-width:1180px){
  :root{ --header-h: 80px; }  /* pc */
}

/* ============ header ============ */
.header{
  position: fixed;
  top:0; left:0;
  z-index: 9999;
  width:100%;
  /*height: var(--header-h);*/
  background:#fff;
}
.header-inner{
  display:flex;
  align-items:center;
  /*padding:0 0.5em;*/
  /* max-height, padding-block など不要なら削除 */
}

/* ============ first view ============ */
.fv{
  margin-top: var(--header-h);
}
.fv-slider{
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
}
/* 既存の PC 用 .fv-slider{ height:100vh; … } を削除 or 上書き */
