@charset "utf-8";

/** ***************************************************************************
 * 共用
 * ************************************************************************* */

#main {
  padding-bottom: 50px;
}

#main div.body {
  max-width: 1120px;
}

@media screen and (min-width:768px) {

  #main {
    padding-bottom: unset;
  }

}

/**
 * セクショニング
 */

:where(#main .section) ~ .section {
  margin-top: 40px;
}

:where(#main .column) ~ .column {
  margin-top: 40px;
}

:where(#main .block) ~ .block {
  margin-top: 20px;
}

@media screen and (min-width:768px) {

  :where(#main .section) ~ .section {
    margin-top: 60px;
  }

  :where(#main .column) ~ .column {
    margin-top: 60px;
  }

  :where(#main .block) ~ .block {
    margin-top: 40px;
  }

}

/**
 * タイトル
 */

#main .section-title {
  margin-bottom: 20px;
  letter-spacing: 1px;
  line-height: 1.5;
  font-family: var(--font-maru-sans);
  font-size: 1.25em;
  font-weight: 700;
}

#main .section-title::before {
  content: attr(data-en);
  color: rgb(var(--accentcolor-1));
  letter-spacing: 0;
  line-height: 1;
  font-family: var(--font-alphabet);
  font-size: 1.75em;
  font-weight: 400;
  display: block;
}

@media screen and (min-width:768px) {

  #main .section-title {
    font-size: 1.5em;
  }

}

/** ***************************************************************************
 * ビジュアル
 * ************************************************************************* */

#visual {
  width: calc(100% + 40px);
  max-width: none;
  margin-left: -20px;
  margin-right: -20px;
}

#visual div.track {
  transition:
    visibility 1.0s ease-in-out 0.0s,
    opacity 1.0s ease-in-out 0.0s;
  visibility: hidden;
  opacity: 0;
}

body.loaded
#visual div.track {
  visibility: visible;
  opacity: 1;
}

@media screen and (min-width:768px) {

  #visual {
    width: var(--innerWidth);
    margin: unset;
    left: var(--innerCenter);
  }

}

/**
 * テキスト
 */

#visual div.text {
  width: 100%;
  transform: translateY(-30%);
  position: absolute;
  z-index: 2;
  left: 0;
  transition:
    visibility 0.6s ease-in-out 1.0s,
    opacity 0.6s ease-in-out 1.0s,
    top 0.6s ease-in-out 1.0s;
  visibility: hidden;
  opacity: 0;
  top: 55%;
}

body.loaded
#visual div.text {
  visibility: visible;
  opacity: 1;
  top: 50%;
}

@media screen and (min-width:768px) {

  #visual div.text {
    width: unset;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    right: 0;
  }

}

/**
 * 画像
 */

#visual div.track {
  height: 300px;
}

#visual div.image {
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media screen and (min-width:768px) {

  #visual div.track {
    height: 900px;
  }

}

/**
 * ページャー
 */

#visual div.pager {
  width: 80%;
  position: absolute;
  z-index: 2;
  left: 10%;
  bottom: 10px;
}

#visual div.pager ul button {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  appearance: none;
  cursor: pointer;
  color: inherit;
  border: none;
  border-radius: 0;
  font: inherit;
  background: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

#visual div.pager ul button::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  transition: background-color 0.3s ease-in-out 0.0s;
  background-color: #fff;
}

#visual div.pager ul button.is-active::before {
  background-color: rgb(var(--accentcolor-1));
}

@media screen and (min-width:768px) {

  #visual div.pager {
    bottom: 30px;
  }

  #visual div.pager ul button {
    width: 30px;
    height: 30px;
  }

  #visual div.pager ul button::before {
    width: 12px;
    height: 12px;
  }

}

/** ***************************************************************************
 * お知らせ / 特集
 * ************************************************************************* */

@media screen and (min-width:768px) {

  #topics {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

}

/** ***************************************************************************
 * お知らせ
 */

#news {
  padding: 40px 0;
}

@media screen and (min-width:768px) {

  #news {
    width: 63%;
    padding: 60px 5% 0 0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    grid-column-gap: 5%;
  }

}

/**
 * タイトル
 */

#news .section-title {
  text-align: center;
}

@media screen and (min-width:768px) {

  #news .section-title {
    margin-bottom: unset;
    text-align: unset;
    grid-area: 1 / 1 / 2 / 2;
  }

}

/**
 * 一覧
 */

#news div.news ul.list li {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

#news div.news ul.list li:not(:first-child) {
  border-top: none;
}

#news div.news ul.list a {
  padding: 1em;
  color: rgb(var(--color-basic));
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.625em 1em;
  transition: background-color 0.3s ease-in-out 0.0s;
  background-color: transparent;
}

#news div.news ul.list a:hover {
  background-color: rgba(var(--accentcolor-1), 0.03);
}

#news div.news ul.list li.hash-target a {
  background-color: rgba(var(--accentcolor-1), 0.03);
}

@media screen and (min-width:768px) {

  #news div.news {
    grid-area: 1 / 2 / 3 / 3;
  }

  #news div.news ul.list a {
    padding: 1.25em 1em;
  }

}

/* 日付 */

#news div.news ul.list li time {
  align-self: flex-start;
  flex-shrink: 0;
}

/* カテゴリー */

#news div.news ul.list li div.category {
  min-width: 10em;
  padding: 0.125em 1em 0.25em;
  color: rgb(var(--accentcolor-1));
  line-height: 1.5;
  font-family: var(--font-maru-sans);
  font-size: 0.875em;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid rgb(var(--accentcolor-1));
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex-shrink: 0;
}

/* 重要なお知らせ */

#news div.news ul.list li div.category.important {
  color: #f44d74;
  border-color: #f44d74;
}

/* タイトル */

#news div.news ul.list li div.title {
  width: 100%;
  line-height: 1.5;
}

/**
 * ボタン
 */

#news div.button {
  margin-top: 30px;
}

#news div.button a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

#news div.button a::before {
  content: '';
  width: 1.5em;
  height: 1.5em;
  background: url("../_image/_common/icon-arrow-3.png") 0 0 / 100% 100% no-repeat;
}

@media screen and (min-width:768px) {

  #news div.button {
    margin-top: 30px;
    grid-area: 2 / 1 / 3 / 2;
  }

  #news div.button a {
    justify-content: flex-start;
  }

}

/** ***************************************************************************
 * 特集
 */

#feature {
  padding: 40px 30px;
  position: relative;
  z-index: 0;
}

#feature::after {
  content: '';
  max-width: none;
  width: var(--innerWidth);
  height: 100%;
  background-color: rgb(var(--accentcolor-2));
  position: absolute;
  z-index: -1;
  top: 0;
  left: var(--innerCenter);
}

@media screen and (min-width:768px) {

  #feature {
    width: 37%;
    padding: 60px 30px 60px 50px;
  }

  #feature::after {
    width: 50vw;
    left: 0;
    border-bottom-left-radius: 20px;
  }

}

/**
 * タイトル
 */

#feature .section-title {
  text-align: center;
}

@media screen and (min-width:768px) {

  #feature .section-title {
    text-align: unset;
  }

}

/**
 * 一覧
 */

#feature div.feature {
  width: fit-content;
}

#feature div.feature a {
  padding: 0 20px 30px;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  background-color: #fff;
  display: block;
}

#feature div.feature a:not(:first-child) {
  margin-top: 30px;
}

/* 画像 */

#feature div.feature div.image {
  max-width: none;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: 15px;
}

#feature div.feature div.image img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ボタン */

#feature div.feature div.button {
  max-width: fit-content;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

/* 矢印 */

#feature div.feature div.splide__arrows {
	width: calc(100% + 80px);
  max-width: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
	position: absolute;
	z-index: 2;
	top: 35%;
  left: -40px;
}

#feature div.feature.is-single div.splide__arrows {
  display: none;
}

#feature div.feature button {
  margin: 0;
  padding: 0;
  pointer-events: auto;
  appearance: none;
  cursor: pointer;
  border: none;
  border-radius: 0;
  font: inherit;
  background: none;
}

#feature div.feature button.splide__arrow {
  width: 35px;
  height: 35px;
  background: url("../_image/_common/icon-arrow-2.png") center center / 100% 100% no-repeat;
}

#feature div.feature button.splide__arrow::-webkit-search-decoration {
  display: none;
}

#feature div.feature button.splide__arrow::focus {
  outline-offset: -2px;
}

#feature div.feature button.splide__arrow svg {
  display: none;
}

#feature div.feature button.splide__arrow--prev {
  transform: scaleX(-1);
  left: -20px;
}

@media screen and (min-width:768px) {

  #feature div.feature div.splide__arrows {
    width: calc(100% + 90px);
    left: -45px;
  }

  #feature div.feature button.splide__arrow {
    width: 40px;
    height: 40px;
  }

}

/* ページャー */

#feature div.feature ul.splide__pagination {
  margin-top: 10px;
}

#feature div.feature ul.splide__pagination li {
  margin: 5px;
  line-height: 0;
}

#feature div.feature ul.splide__pagination button {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  border: 1px solid rgb(var(--accentcolor-1));
  background-color: #fff;
}

#feature div.feature ul.splide__pagination button.is-active {
  background-color: rgb(var(--accentcolor-1));
}

/** ***************************************************************************
 * 外来案内 / 入院案内
 * ************************************************************************* */

#guide {
  width: var(--innerWidth);
  max-width: 1600px;
  container-type: inline-size;
  padding-left: 4px;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  position: relative;
  left: max(calc(50% - var(--innerWidth) / 2), calc(50% - 1600px / 2));
}

#guide .item {
  min-height: calc(100cqw / 3 * 2);
  padding: 40px;
  border-radius: 10px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#guide .item a {
  width: fit-content;
  padding: 40px;
  text-decoration: none;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  transition: background-color 0.3s ease-in-out 0.0s;
  background-color: rgba(255, 255, 255, 0.75);
}

#guide .item a:hover {
  background-color: rgba(255, 255, 255, 1.0);
}

@media screen and (min-width:768px) {

  #guide {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #guide .item {
    width: calc(100% / 2 - 2px);
    min-height: calc(100cqw / 2 / 3 * 2);
    padding: 80px;
  }

}

/**
 * タイトル
 */

#guide .item .title {
  color: rgb(var(--color-basic));
  letter-spacing: 1px;
  line-height: 1.5;
  font-family: var(--font-maru-sans);
  font-size: 1.5em;
  font-weight: 700;
}

#guide .item .title::after {
  content: attr(data-en);
  color: rgb(var(--accentcolor-1));
  line-height: 1;
  font-size: 0.625em;
  text-align: center;
  display: block;
}

/**
 * アイコン
 */

#guide .item div.icon {
  order: -1;
}

/**
 * ボタン
 */

#guide .item div.button {
  margin-top: 10px;
  text-decoration: underline;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

#guide .item div.button::before {
  content: '';
  width: 1.5em;
  height: 1.5em;
  background: url("../_image/_common/icon-arrow-3.png") 0 0 / 100% 100% no-repeat;
}

/** ***************************************************************************
 * 外来案内
 */

#outpatient.item {
  background-image: url("../_image/index/outpatient.jpg");
}

/** ***************************************************************************
 * 入院案内
 */

#inpatient.item {
  background-image: url("../_image/index/inpatient.jpg");
}

#inpatient.item a {
  color: #16bcd5;
}

/**
 * タイトル
 */

#inpatient.item .title::after {
  color: #16bcd5;
}

/**
 * ボタン
 */

#inpatient.item div.button::before {
  background-image: url("../_image/_common/icon-arrow-4.png");
}

/** ***************************************************************************
 * 下層ページ
 * ************************************************************************* */

#contents {
  width: var(--innerWidth);
  max-width: 1600px;
  container-type: inline-size;
  padding-left: 4px;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  position: relative;
  left: max(calc(50% - var(--innerWidth) / 2), calc(50% - 1600px / 2));
}

#contents .item {
  border-radius: 10px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#contents .item a {
  width: 100%;
  min-height: calc(100cqw / 16 * 9);
  padding: 40px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media screen and (min-width:768px) {

  #contents {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #contents .item {
    width: calc(100% / 3 - 3px);
  }

  #contents .item a {
    min-height: calc(100cqw / 3 / 16 * 9);
  }

}

/**
 * タイトル
 */

#contents .item .title {
  letter-spacing: 1px;
  line-height: 1.5;
  font-family: var(--font-maru-sans);
  font-size: 1.5em;
  font-weight: 700;
}

/**
 * テキスト
 */

@media screen and (min-width:768px) {

  #contents .item div.text {
    max-width: 23em;
    font-size: 0.875em;
  }

}

/**
 * ボタン
 */

#contents .item div.button {
  margin-top: 10px;
  padding: 0.5em 3em 0.625em;
  color: rgb(var(--color-basic));
  border-radius: 8px;
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 0;
  transition: background-color 0.3s ease-in-out 0.0s;
  background-color: rgba(255, 255, 255, 0.75);
}

#contents .item a:hover div.button {
  background-color: rgba(255, 255, 255, 1.0);
}

#contents .item div.button::after {
  content: '';
  width: 0.75em;
  height: 1em;
  margin-left: auto;
  margin-right: 0;
  background: url("../_image/_common/icon-arrow-1.png") 0 0 / 100% 100% no-repeat;
  filter: brightness(0) invert(0);
  position: absolute;
  z-index: 1;
  top: calc(50% - 0.5em);
  right: 0.75em;
}

/** ***************************************************************************
 * 認知症医療
 */

#dementia.item {
  background-image: url("../_image/index/dementia.jpg");
}

/** ***************************************************************************
 * 専門外来・専門治療
 */

#specialty.item {
  background-image: url("../_image/index/specialty.jpg");
}

/** ***************************************************************************
 * 地域生活支援
 */

#life-support.item {
  background-image: url("../_image/index/life-support.jpg");
}

/** ***************************************************************************
 * 病院案内
 * ************************************************************************* */

@media screen and (min-width:768px) {

  #hospital {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto 1fr;
    grid-gap: 40px 5%;
    position: relative;
    z-index: 2;
  }

}

/**
 * タイトル
 */

#hospital .section-title {
  text-align: center;
}

@media screen and (min-width:768px) {

  #hospital .section-title {
    margin-bottom: unset;
    text-align: unset;
    grid-area: 2 / 1 / 3 / 2;
  }

}

/**
 * ロゴ
 */

#hospital div.logo {
  margin-bottom: 20px;
  text-align: center;
}

@media screen and (min-width:768px) {

  #hospital div.logo {
    margin-top: 20%;
    margin-bottom: unset;
    text-align: unset;
    grid-area: 1 / 1 / 2 / 2;
  }

}

/**
 * 内容
 */

@media screen and (min-width:768px) {

  #hospital div.content {
    grid-area: 3 / 1 / 4 / 2;
  }

}

/* ボタン */

#hospital div.content .button {
  text-align: center;
}

@media screen and (min-width:768px) {

  #hospital div.content .button {
    text-align: unset;
  }

}

/**
 * 画像
 */

#hospital div.image {
  max-width: none;
  margin-top: 30px;
  margin-left: -16px;
  margin-right: -16px;
}

@media screen and (min-width:768px) {

  #hospital div.image {
    max-width: 100%;
    margin: unset;
    grid-area: 1 / 2 / 4 / 3;
  }

}

/** ***************************************************************************
 * 記事
 * ************************************************************************* */

#article {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 15px;
  position: relative;
  z-index: 0;
}

#article::after {
  content: '';
  max-width: none;
  width: var(--innerWidth);
  height: 100%;
  background-color: rgb(var(--accentcolor-2));
  position: absolute;
  z-index: -1;
  top: 0;
  left: var(--innerCenter);
}

#article .item a {
  height: 100%;
  padding-left: 15px;
  color: rgb(var(--color-basic));
  text-decoration: none;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  transition: background-color 0.3s ease-in-out 0.0s;
  background-color: rgba(255, 255, 255, 0.75);
}

#article .item a:hover {
  background-color: rgba(255, 255, 255, 1.0);
}

@media screen and (min-width:768px) {

  #article {
    margin-top: -140px;
    padding: 200px 0 60px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3%;
  }

  #article .item {
    width: calc(100% / 2 - 1.5%);
  }

  #article .item a {
    padding-left: 20px;
    gap: 15px;
  }

}

/**
 * タイトル
 */

#article .title {
  padding-bottom: 1em;
  letter-spacing: 1px;
  line-height: 1.5;
  font-family: var(--font-maru-sans);
  font-weight: 700;
  position: relative;
  z-index: 0;
}

#article .title::after {
  content: attr(data-en);
  color: rgb(var(--accentcolor-1));
  line-height: 1;
  font-family: var(--font-alphabet);
  font-size: 0.75em;
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
}

@media screen and (min-width:768px) {

  #article .title {
    font-size: 1.125em;
  }

}

/**
 * アイコン
 */

#article div.icon {
  width: 50px;
  flex-shrink: 0;
  order: -1;
}

@media screen and (min-width:768px) {

  #article div.icon {
    width: auto;
  }

}

/**
 * 画像
 */

#article div.image {
  width: 100px;
  margin-left: auto;
  margin-right: 0;
  flex-shrink: 0;
}

#article div.image img {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

@media screen and (min-width:768px) {

  #article div.image {
    width: 140px;
  }

}

/** ***************************************************************************
 * 採用情報
 * ************************************************************************* */

@media screen and (min-width:768px) {

  #recruit {
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    grid-gap: 40px 5%;
    position: relative;
    z-index: 0;
  }

  #recruit::after {
    content: '';
    max-width: none;
    width: var(--innerWidth);
    background-color: rgb(var(--accentcolor-2));
    position: absolute;
    z-index: -1;
    top: 300px;
    left: var(--innerCenter);
    bottom: 0;
  }

}

/**
 * タイトル
 */

#recruit .section-title {
  text-align: center;
}

@media screen and (min-width:768px) {

  #recruit .section-title {
    margin-bottom: unset;
    text-align: unset;
    grid-area: 2 / 2 / 3 / 3;
  }

}

/**
 * ロゴ
 */

#recruit div.logo {
  margin-bottom: 20px;
  text-align: center;
}

@media screen and (min-width:768px) {

  #recruit div.logo {
    margin-top: 20%;
    margin-bottom: unset;
    text-align: unset;
    grid-area: 1 / 2 / 2 / 3;
  }

}

/**
 * 内容
 */

#recruit div.content .text {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

#recruit div.content .button {
  text-align: center;
}

@media screen and (min-width:768px) {

  #recruit div.content {
    min-width: 70%;
    width: fit-content;
    margin-top: -100px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 40px 40px;
    text-align: unset;
    border-radius: 10px;
    background-color: #fff;
    grid-area: 3 / 1 / 4 / 3;
    position: relative;
    z-index: 1;
  }

}

/**
 * 画像
 */

#recruit div.image {
  max-width: none;
  margin-top: 30px;
  margin-left: -16px;
  margin-right: -16px;
}

@media screen and (min-width:768px) {

  #recruit div.image {
    max-width: 100%;
    margin: unset;
    grid-area: 1 / 1 / 3 / 2;
  }

}
