.top {
  margin-top: 780px;
}

.section__title {
  font-family: "Arial";
  font-size: 2.8rem;
  display: inline-block;
  background: linear-gradient(90deg, #000000, #f21d89);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Firefox対応 */
  text-fill-color: transparent;
  letter-spacing: 0.08em;
  position: relative;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.section__title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  /* 左揃え */
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, #000000, #f21d89, #000000);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(242, 29, 137, 0.6);
  animation: line-glow 3s infinite linear;
  background-size: 200% auto;
}

@keyframes line-glow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .section__title {
    font-size: 2rem;
    /* スマホ向けに縮小 */
    letter-spacing: 0.05em;
  }

  .section__title::after {
    width: 70px;
    /* 下線も短く調整 */
    height: 4px;
    bottom: -10px;
  }
}

@media (max-width: 480px) {
  .section__title {
    font-size: 1.6rem;
    /* 小さい画面向け */
    letter-spacing: 0.04em;
  }

  .section__title::after {
    width: 50px;
    height: 3px;
    bottom: -8px;
  }
}


/****************************
スライダー部分のCSS start
****************************/

#container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-right: 90px solid;
  border-bottom: 70px solid;
  border-image: linear-gradient(90deg, #000000, #f21d89) 1;
  background: linear-gradient(90deg, #000000, #f21d89);
  border-radius: 0 0 170px 0;
}

#slides {
  position: relative;
  width: 100%;
  height: 100%;

}

.slide {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;

}

/* 共通デザイン */
.title {
  text-align: center;
  margin: 0.5em 0;
}

.title-text {
  font-family: "Noto Serif JP", "游明朝", YuMincho, "Hiragino Mincho ProN", serif;
  font-weight: 700;
  line-height: 1.3;
  display: inline-block;
  word-break: keep-all;

  color: #fff;
  /* 白文字ベース */
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.6),
    /* 影で見やすさUP */
    0 0 12px rgba(66, 135, 245, 0.6);
  /* 青系グロー効果 */
}


/* h1のスタイル */
h1.title .title-text {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  /* 画面幅に応じて自動調整 */
  letter-spacing: 0.05em;
  padding-bottom: 0.2em;
}

h1.title .title-text {
  position: relative;
}

h1.title .title-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #000000, #f21d89);
}

/* h4のスタイル */
h4.title .title-text {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: #ffffff;
  /* サブ見出しは少し柔らかい色 */
  margin-top: 0.3em;
}


/* 各スライド内のサブタイトル h4 */
.slide h4.title {
  top: 60%;
  padding: 0px 0px 0px 30px;

}




.slide .title {
  position: absolute;
  top: calc(50% - 0.5em);
  left: 20px;
  z-index: 2;
  padding-top: 5px;
  font-family: 'Reem Kufi', sans-serif;
  font-size: 5em;
  color: white;
  overflow: hidden;
}


.slide .title .title-text {
  display: block;
  transform: translateY(1.2em);
  transition: transform 1s ease-in-out;
}

.slide .slide-partial {
  position: absolute;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 1s ease-in-out;
}

.slide .slide-partial img {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease-in-out;
}

.slide-left {
  top: 0;
  left: 0;
  transform: translateX(-100%);
}

.slide-left img {
  top: 0;
  right: 0;
  object-position: 100% 50%;
  transform: translateX(50%);
}

.slide-right {
  top: 0;
  right: 0;
  transform: translateX(100%);
  transition-delay: 0.2s;
}

.slide-right img {
  top: 0;
  left: 0;
  object-position: 0% 50%;
  transition-delay: 0.2s;
  transform: translateX(-50%);
}

.slide.active .title .title-text {
  transform: translate(0);
  transition-delay: 0.3s;
}

.slide.active .slide-partial,
.slide.active .slide-partial img {
  transform: translateX(0);
}

#slide-select {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-family: 'Reem Kufi', sans-serif;
  font-size: 1.5em;
  font-weight: lighter;
  color: white;
  list-style: none;
}

#slide-select li {
  position: relative;
  cursor: pointer;
  margin: 0 5px;
}

#slide-select li.prev:hover {
  transform: translateX(-2px);
}

#slide-select li.next:hover {
  transform: translateX(2px);
}

.selector {
  height: 14px;
  width: 14px;
  border: 2px solid white;
  background-color: transparent;
  transition: background-color 0.5s ease-in-out;
}

.selector.current {
  background-color: white;
}

.codepen-link-container {
  position: absolute;
  bottom: 15px;
  right: 3px;
  z-index: 10;
  display: flex;
  flex-direction: column-reverse;
  /* ボタン→線→文字 */
  align-items: center;
}

.codepen-link {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  background-image: url('../img/kaigofukushi.png');
  background-position: center center;
  background-size: cover;
  transition: all 0.25s;
  display: block;
}

.codepen-link:hover {
  opacity: 0.8;
  box-shadow: 0 2px 6px #0c0c0c;
}

/* ボタンの上に線＋文字 */
.codepen-link-overlay {
  display: flex;
  flex-direction: column;
  /* 上から文字→線 */
  align-items: center;
  margin-bottom: 10px;
  /* ボタンとの距離 */
}

.codepen-link-overlay .line {
  width: 2px;
  /* 線の太さ */
  height: 200px;
  /* 線の長さを長く */
  background-color: #000;
  /* 線の色 */
  display: block;
}

.codepen-link-overlay .label {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  margin-bottom: 6px;
  /* 線との間隔 */
  transform: translateX(0px) translateY(-60px) rotate(0.25turn);
  /* Y方向に上げる */
}



.slide {
  opacity: 0;
  pointer-events: none;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/******************************
スライダー部分のCSS end
******************************/


#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #000000, #f21d89);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.intro-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

/* ロゴ初期位置：右奥（小さく）、回転付きで中央へ */
/* ロゴ初期位置：右奥（小さく）、中央へ回転しながら移動 */
/*.intro-logo {
  width:150px;
  opacity:0;
  transform: translateX(200px) scale(0.5) rotate(0deg);
  animation: logoMove 1.8s forwards;
}

@keyframes logoMove {
  0% {
    opacity:0;
    transform: translateX(200px) scale(0.5) rotate(0deg);
  }
  50% {
    opacity:1;
    transform: translateX(100px) scale(0.75) rotate(180deg); 
  }
  100% {
    transform: translateX(0) scale(1) rotate(360deg); 
    opacity:1;
  }
}*/
.intro-logo {
  width: 150px;
  opacity: 0;
  transform: translateX(200px) scale(0.5) rotate(0deg);
  animation: logoMove 1.8s forwards ease-in-out;
}

/* スムーズな回転＋移動＋拡大 */
@keyframes logoMove {
  0% {
    opacity: 0;
    transform: translateX(200px) scale(0.5) rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(360deg);
    /* 中央到着までずっと回転 */
  }
}


/* 文字 */
.intro-name {
  display: flex;
  flex-direction: row;
  font-size: 2.5rem;
  font-weight: 800;
  align-items: center;
}

.intro-name span {
  opacity: 0;
  transform: translateY(30px);
  background: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: letterUp 0.5s forwards;
}

/* 文字の順番にアニメーション遅延（ロゴ到着後） */
.intro-name span:nth-child(1) {
  animation-delay: 1.8s;
}

.intro-name span:nth-child(2) {
  animation-delay: 1.9s;
}

.intro-name span:nth-child(3) {
  animation-delay: 2s;
}

.intro-name span:nth-child(4) {
  animation-delay: 2.1s;
}

.intro-name span:nth-child(5) {
  animation-delay: 2.2s;
}

.intro-name span:nth-child(6) {
  animation-delay: 2.3s;
}

.intro-name span:nth-child(7) {
  animation-delay: 2.4s;
}

.intro-name span:nth-child(8) {
  animation-delay: 2.5s;
}

.intro-name span:nth-child(9) {
  animation-delay: 2.6s;
}

.intro-name span:nth-child(10) {
  animation-delay: 2.7s;
}

.intro-name span:nth-child(11) {
  animation-delay: 2.8s;
}

.intro-name span:nth-child(12) {
  animation-delay: 2.9s;
}

/* 文字上昇アニメーション */
@keyframes letterUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 初期状態：下に隠れて透明 */
.hidden-content {
  opacity: 0;
  transform: translateY(50px);
  /* 下に50pxずらす */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 表示状態：元の位置で表示 */
.visible-content {
  opacity: 1;
  transform: translateY(0);
}

/* main-content 初期状態：下に隠れて透明 */
#main-content {
  opacity: 0;
  transform: translateY(100px);
  /* 下に100pxずらす */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 表示状態：下から上がってくる */
#main-content.show-content {
  opacity: 1;
  transform: translateY(0);
}


/***********************************
感想のCSS start
***********************************/
/* ===== ABOUT セクション ===== */




/* ABOUT セクション横並び */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  /* スマホ対応 */
}

.about__content {
  flex: 1 1 450px;
}

.about__image {
  flex: 1 1 400px;
  text-align: center;
}

.about__image img {
  width: 100%;
  max-width: 500px;
  border-radius: 0% 10%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.section01 {
  display: flex;
  justify-content: center; /* 横方向中央 */
  align-items: center;     /* 縦方向中央 */
          /* 画面の高さに合わせる */
}

.section01__text {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }
    .top {
  margin-top: 1000px;
}
}

/*****************************
施設紹介セクションのCSS start
*****************************/
.facility-inner {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
}

/* 写真 */
.facility-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.facility-image {
  width: 100%;
  border-radius: 0% 10%;
  object-fit: cover;
  box-shadow: 0 6px 20px rgb(37 35 36 / 60%);
}

/* 文章＋ボタン */
.facility-content {
  flex: 1;
  position: relative;
  padding-top: 20px;
  /* 背景と文字の間隔 */
  z-index: 2;
  /* 背景より前面 */
}

/* 背景の長方形を文章から写真にかける */
#facility {
  position: relative;
  /* 背景をセクション内で絶対配置するため */
}

.facility-bg-rectangle {
  position: absolute;
  top: 248px;
  left: 10px;
  width: 99%;
  height: 180px;
  background-color: rgba(242, 29, 137, 0.4);
  border-radius: 0% 52%;
  z-index: 0;
}

.facility-btn:hover {
    transform: translateY(0) scale(1.1);
    box-shadow: 0 6px 20px rgba(242, 29, 137, 0.6);
}

/* 他の要素は z-index を上げて前面に */
.facility-inner,
.facility-image-wrapper,
.facility-content {
  position: relative;
  z-index: 1;
}

/* ボタン */
.facility-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #000000, #f21d89);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.facility-btn:hover {
  background-color: #d11772;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .facility-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .facility-image-wrapper {
    max-width: 100%;
  }

  .facility-bg-rectangle {
    left: 0;
    width: 100%;
    height: 150px;
  }
}


/*****************************
施設紹介セクションのCSS end
*****************************/
/***********************************
採用情報のCSS start
***********************************/
/* セクション内横並び */
.recruit-inner {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap; /* スマホで縦並び */
  position: relative;
}

/* 背景の長方形（文章から伸ばす） */
.recruit-bg-rectangle {
  position: absolute;
  top: 160px;
  left: 10px;
  width: 99%;
  height: 180px;
  background-color: rgba(242, 29, 137, 0.4);
  border-radius: 0% 52%;
  z-index: 0; /* 最背面 */
}

/* 文章部分 */
.recruit-content {
  flex: 1;
  position: relative;
  padding-top: 20px;
  z-index: 2; /* 背景より前面 */
}

/* ボタン */
.recruit-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #000000, #f21d89);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.recruit-btn:hover {
  transform: translateY(0) scale(1.1);
  box-shadow: 0 6px 20px rgba(242, 29, 137, 0.6);
  background-color: #d11772;
}

/* 写真部分 */
.recruit-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  z-index: 1;
}

.recruit-image {
  width: 100%;
  border-radius: 0% 10%;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(37, 35, 36, 0.6);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .recruit-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .recruit-image-wrapper {
    max-width: 100%;
  }

  .recruit-bg-rectangle {
    left: 0;
    width: 100%;
    height: 150px;
  }
}

/***********************************
採用情報のCSS end
***********************************/

/******************************
NewsセクションのCSS start
******************************/
#news {
  position: relative; /* 背景画像の上にコンテンツを重ねる場合 */
  background-image: url('../img/green_leaf.png'); /* ここに画像パスを指定 */
  background-size: cover;   /* セクション全体に画像を拡大 */
  background-position: center; /* 中心に配置 */
  background-repeat: no-repeat; /* 繰り返さない */
  padding: 80px 0; /* 上下の余白を調整 */
  color: #ffffff; /* 文字色を白にして見やすくする */
}
#news::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* 黒の半透明 */
  z-index: 0;
}

#news .section__inner {
  position: relative;
  z-index: 1;
}


/******************************
NewsセクションのCSS end
******************************/


/******************************
お問い合わせセクションのCSS start
******************************/
/* 横並びレイアウト */
.contact-inner {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap; /* スマホ時に縦並び */
  position: relative;
  flex-direction: row-reverse; /* 写真←→テキストを反転 */
}

/* 左側 → 今回は写真になる */
.contact-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  z-index: 1;
}

.contact-image {
  width: 100%;
  border-radius: 0% 10%;
  object-fit: cover;
}

/* 右側 → 今回はテキストになる */
.contact-content {
  flex: 1;
  position: relative;
  padding-top: 20px;
  z-index: 2;
  text-align: left;
}

/* ボタン */
/* ボタングループ横並び */
.contact-btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* スマホで折り返し */
  margin-top: 20px;
}

/* 既存ボタンのスタイルを流用 */
.contact-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(90deg, #000000, #f21d89);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(0) scale(1.1);
  box-shadow: 0 6px 20px rgba(242, 29, 137, 0.6);
  background-color: #d11772;
}

/* 電話ボタン用（アイコン＋少し強調） */
.phone-btn {
  background: linear-gradient(90deg, #ffc700, rgb(242 29 29 / 81%));
}
.phone-btn:hover {
  background: #f21d89;
}


/* 背景（施設・採用と統一感） */
.contact-bg-rectangle {
  position: absolute;
  top: 150px;
  left: 10px;
  width: 99%;
  height: 180px;
  background-color: rgba(242, 29, 137, 0.4);
  border-radius: 0% 52%;
  z-index: 0; /* 最背面 */
}

/* スマホ対応 */
@media (max-width: 768px) {
  .contact-inner {
    flex-direction: column; /* スマホ時は縦並びに戻す */
    align-items: flex-start;
  }

  .contact-image-wrapper {
    max-width: 100%;
  }

  .contact-bg-rectangle {
    left: 0;
    width: 100%;
    height: 150px;
  }
}
/******************************
お問い合わせセクションのCSS end
******************************/

/*******************************
historyのCSS start
*******************************/
.history {
  padding: 60px 20px;
  background: #f9f9f9;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #000000, #f21d89);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* タイムラインと写真の横並び */
.history-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

/* タイムライン */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.timeline li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 30px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #f21d89;
  border-radius: 50%;
}

.timeline-date {
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
  color: #333;
}

.timeline p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* 写真 */
.history-photo {
  flex: 0 0 300px; /* 写真の幅 */
  text-align: right;
}

.history-photo img {
  border-radius: 0% 10%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  max-width: 500px;
  height: auto;
  display: block;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .history-photo img {
    max-width: 100%;        /* 画面幅に合わせる */
    border-radius: 5%;      /* 角丸を少し控えめに */
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .history-container {
    flex-direction: column;
  }
  
  .history-photo {
    order: -1; /* 写真を上に */
    text-align: center;
    margin-bottom: 30px;
  }

  .timeline li {
    padding-left: 20px;
  }
}

/*******************************
serviceのCSS start
*******************************/
/* サービスグリッド */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* カードとアイコンをまとめるラッパー */
.service-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* サービスカード */
.service-card {
  background: #F44336;
  padding: 30px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  font-size: 18px;
  color: #ffffff;
  font-weight: 800;
  border-radius: 0px 20px;
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
  width: 100%;
}
/* タイトル */
.service-title {
  font-size: 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

/* アイコン（カード外、独立） */
.service-icon {
    width: 250px;
    height: auto;
    object-fit: contain;
    margin-top: 10px;
    background: none;
}
.service-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #000000, #f21d89);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.service-btn:hover {
  transform: translateY(0) scale(1.1);
  box-shadow: 0 6px 20px rgba(242, 29, 137, 0.6);
  background-color: #d11772;
}

/* 親コンテナを中央寄せ */
.service-btn-wrapper {
  text-align: center;
}


/* スマホ対応 */
@media screen and (max-width: 600px) {
  .service-card {
    padding: 20px 15px;
  }
  .service-title {
    font-size: 18px;
  }
  .service-icon {
    width: 200px;
    height: auto;
  }
    
}

@media screen and (max-width: 900px) {
.intro-logo {
    width: 90px;
  }
  .intro-name {
    font-size: 1.5rem;
  }
}