/*-----------------------------------------------全体------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*--------------------------iPhoneスクロール背景画像エラーによる対応にて変更箇所---------------------------*/
html {
  overscroll-behavior: none;
  overflow-x: hidden;
}

/* 画面全体 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #444139;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 246);
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/*---------------------------------------↑ここまで↑------------------------------*/

/* 画像などのリセット */

img {
  max-width: 100%;
  height: auto;
}

.topimg {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: block !important;
}

.topimg-sp {
  display: none !important;
}

/*-----------------------------------------------ヘッダー------------------------------------------------*/

header {
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

/*-----------------------------------------------メイン------------------------------------------------*/

main {
  flex: 1;
  font-size: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3em;
}

/* 中央コンテンツ */

.text-block {
  text-align: center;
}

.button-43 {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 310px;
  height: 85px;
  margin: 10px;
  margin-left: 10px;
  padding: .9em 2em;
  border: none;
  border-radius: 20px;
  background-color: darksalmon;
  color: #fff;
  font-weight: 600;
  font-size: 1em;
}

.button-43 a {
  text-decoration: none;
}

.button-43:hover {
  background-color: rgb(255, 243, 238);
  color: darksalmon;
}

.pc-only {
  display: none;
}


/* 画像 */
img {
  width: 100%;
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.wrapper {
  width: 100%;
}

/*-----------------------------------------------挨拶------------------------------------------------*/

.sub-title {
  text-align: center;
  
  font-size: 38px;
  letter-spacing: 0.15em;
  color: darksalmon;
  padding: 0 .4em .2em;
  border-bottom: 1.5px solid darksalmon;
  justify-content: center;
  width: 80%;
  margin: 0 auto;
}

.message {
  display: flex;
  width: 75%;
  margin: 0 auto;
  align-items: center;
}

.message1 {
  width: 65%;
}

.message-manager {
  display: flex;
  width: 90%;
  margin: 0 auto;
  align-items: center;

}

.message-manager img {
  margin-top: 0;
}

/*-----------------------------------------------理念------------------------------------------------*/




.message-2 {
  flex-direction: column;
  align-items: flex-start;
}

.message-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.list {
  flex-direction: column;
  align-items: flex-start;
  list-style: disc;
  padding-left: 1.5em;
  margin-right: 1em;
}

.list li {
  margin-bottom: 0.8em;
}

/*-----------------------------------------------看護体制------------------------------------------------*/

.table {
  width: 75%;
  margin: 0 auto;
  border-collapse: collapse;
  border: 2px solid darksalmon;
  background-color: #fff;
}

.table td {
  border: 1px solid darksalmon;
  padding: 0.6em 1em;
}

.table td:first-child {
  background-color: darksalmon;
  color: #fff;
  text-align: center;
  font-weight: bold;
  border: 1px solid white;
}

/*----小見出し----*/
.heading-38 {
  position: relative;
  padding: .5em 1.2em .5em 40px;
  color: #444139;
  line-height: 1.6;
}

.heading-38::before,
.heading-38::after {
  display: inline-block;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #e9967a;
  content: '';
}

.heading-38::before {
  top: 0.75em;
  left: 0;
}

.heading-38::after {
  top: 0.95em;
  left: 8px;
}

.message3 {
  width: 94%;
  margin-left: 10px;
}

/*------数字はインデント文字数を表している------*/
.hang-indent5 {
  display: block;
  padding-left: 5em;
  text-indent: -5em;
}

.hang-indent2 {
  display: block;
  padding-left: 2em;
  text-indent: -2em;
}
.hang-indent1 {
  display: block;
  padding-left: 1em;
  text-indent: -1em;
}

/*-----------------------------------------------先輩インタビュー------------------------------------------------*/

.box-019 {
    position: relative;
    margin-top: 1em;
    margin-right: 1em;
    padding: 1.8em 1.5em 1em 1.5em;
    border: 2px solid #e9967a;
    border-radius: 10px;
    background-color: #fff;
}

.box-019 > div {
    position: absolute;
    top: -1.15em;
    left: -.5em;
    padding: .4em 1.4em;
    border-radius: 25px;
    background-color: #e9967a;
    color: #fff;
    font-size: .9em;
}

.box-019 > div::before {
    position: absolute;
    bottom: -8px;
    left: 10%;
    transform: translateX(-50%);
    width: 16px;
    height: 9px;
    background-color: #e9967a;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
}

.box-019 p {
    margin: 0;
}

.message img{
  margin-top: 70px;
}

@media (max-width: 400px) {
    .box-019 > div {
        font-size: .85em;
        padding: .4em .5em;
    }
}

/*-----------------------------------------------フッター------------------------------------------------*/

footer {
  background-color: darksalmon;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.footerlogo {
  flex-direction: column;
  align-items: center;
  width: auto;
  margin: 0;
}

.copyright-text {
  text-align: center;
  width: 100%;
}

.footer-content {
  justify-content: center;
  gap: 30px;
}

.footer-map {
  display: block;
  margin: 0;
  width: 400px;
  height: 300px;
}

footer img {
  width: auto;
  max-width: 300px;
  margin-top: 0 !important;
}

.address {
font-size:24px;
color: #fff;
}

/*-----------------------------------------------トップへ戻る------------------------------------------------*/

.to-top {
  position: fixed;
  bottom: 20px;
  right: 5px;
  width: 250px;
  display: block;
  transition: opacity 0.2s;
}

.to-top img {
  width: 100%;
  height: auto;
  margin: 0;
}


/*-----------------------------------------------レスポンシブ（タブレット）------------------------------------------------*/

@media screen and (1024px <=width) {

  /* メディアクエリは一例です。作成しているサイトのものを使ってください */
  /* SP用の改行を隠します */
  .sp-only {
    display: none;
  }

  /* PC用の改行を表示します */
  .pc-only {
    display: block;
  }
}


@media (max-width: 1024px) {
  .css-slider {
    max-width: 100%;
  }

  main {
    font-size: 22px;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  }

  .button-43 {
    width: 230px;
    height: 60px;
    font-size: 0.8em;
    margin-left: 5px;
    padding: 0.8em 1.6em;
    border-radius: 10px;
  }


  li a {
    font-size: 24px;
  }

  .sub-title {
    font-size: 28px;
    width: 90%;
  }

  .message {
    width: 90%;
  }

  .message img{
  margin-top: 0px;
}

  .message-manager {
    flex-direction: column;
  }

  .message-manager img {
    order: -1;
    width: 70% !important;
    max-width: 500px;
    margin-bottom: 10px;
  }

  .message1 {
    width: 90%;
  }

  .message:has(.staff-img) {
    flex-direction: column;
    align-items: center;
  }

  .staff-img {
    width: 80% !important;
    max-width: 500px;
  }

  .idea {
    font-size: 22px;
  }

  .table {
    width: 90%;
  }

  footer .message-2 {
    align-items: center;
  }

  .footer-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .footer-content .footerlogo {
    width: auto;
  }

  .footer-map {
    width: 45%;
    height: 250px;
  }

  footer img {
  width: auto;
  max-width: 250px;
}

  .address {
font-size:22px;
}

}

/*-----------------------------------------------レスポンシブ（スマホ）------------------------------------------------*/

@media (max-width: 600px) {

  .topimg-sp {
    display: block !important;
  }

  .topimg {
    display: none !important;
  }

  header {
    height: auto;
    font-family: メイリオ, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
    text-align: center;
  }

  header h1 {
    font-size: 18px;
  }


  main {
    font-size: 14px;
  }

  .button-43 {
    width: 150px;
    height: 40px;
    max-width: 150px;
    font-size: 0.85em;
    padding: 0.8em 1.2em;
    margin: 5px auto;
    border-radius: 8px;
  }


  ul {
    flex-wrap: wrap;
    gap: 8px;
  }

  li {
    margin-right: 0;
  }

  li a {
    font-size: 16px;
  }

  .sub-title {
    font-size: 20px;
    width: 95%;
    letter-spacing: 0.08em;
  }

  .message {
    flex-direction: column;
    width: 95%;
  }

  .message img{
  margin-top: 0px;
}

  .message-row {
    flex-direction: column;
  }

  .message1 {
    width: 90%;
  }

  .message3 {
    width: 93%;
  }

  .idea {
    font-size: 18px;
  }

  .table {
    width: 95%;
    font-size: 14px;
  }

  img {
    max-width: 100%;
  }

  .to-top {
    width: 100px;
  }

  .heading-38 {
    padding-left: 28px;
  }

  .heading-38::before {
    top: 0.5em;
    width: 13px;
    height: 13px;
  }

  .heading-38::after {
    top: 0.7em;
    left: 5px;
    width: 13px;
    height: 13px;
  }

  .staff-img {
    width: 60% !important;
    max-width: 250px;
  }

  .message-manager {
    flex-direction: column;
  }

  .message-manager img {
    order: -1;
    width: 60% !important;
    max-width: 250px;
    margin-bottom: 10px;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-map {
    width: 100%;
    height: 220px;
  }

  footer img {
  width: auto;
  max-width: 200px;
}

  .address {
font-size:18px;
}

}

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

/* スライダー全体の枠 */
.css-slider {
width: 100%;
/* max-width: 1000px;  ショップに合わせた最大横幅 */
margin: 0 auto;
overflow: hidden;/*枠からはみ出した画像を切る */
}
/*画像を横に並べる中身 */
.slider-inner {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
gap: 0;
width: 400%;/*画像数（実質3枚+ループ用1枚）× 100% */
list-style: none;
padding: 0;
margin: 0;
animation: slide-anim 15s infinite;/*合計時間：（3秒+2秒）×3枚 = 15秒 */
will-change: transform;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
.slider-inner li {
width: 25%;/*100% ÷ 全画像数（ループ用含め4枚） */
flex-shrink: 0;
margin: 0;
}
.slider-inner li img {
width: 100%;
max-width: 100%;
height: auto;
display: block;
margin: 0;
}
/*スライドの動きを指定（静止時間を作るための記述） */
@keyframes slide-anim {
0%             { transform: translate3d(-75%, 0, 0); animation-timing-function: step-start; } /*ループ画像位置でスタート */
0.01%, 20%     { transform: translate3d(0, 0, 0); }       /*即スナップ→1枚目表示(3秒間) */
33.33%, 53.33% { transform: translate3d(-25%, 0, 0); }   /*2枚目へ移動(2秒) ＋ 表示(3秒間) */
66.67%, 86.67% { transform: translate3d(-50%, 0, 0); }   /*3枚目へ移動(2秒) ＋ 表示(3秒間) */
100%           { transform: translate3d(-75%, 0, 0); }   /*ループ用(1枚目と同じ)へ移動(2秒) */
}
/*マウスを乗せたときに止める設定 */
.css-slider:hover .slider-inner {
animation-play-state: paused;
}