/* 基本フォント設定 */
body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background-color: #f9f7f4;
  color: #3a3a3a;
  line-height: 1.8;
  overflow-x: hidden;
  padding-top: 0;
}

/* ページローダー */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
  text-align: center;
}

.loader-circle {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #5db1e9;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-size: 1.2rem;
  color: #5db1e9;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* メインラッパー */
.main-wrapper {
  overflow: hidden;
}

/* ナビゲーション */
.navbar {
  padding: 15px 0;
  transition: all 0.4s ease;
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
  font-weight: 700;
}

.brand-text {
  background: linear-gradient(45deg, #3ca0e7, #7bcbff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  position: relative;
  margin: 0 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link i {
  margin-right: 5px;
  font-size: 1.1em;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #5db1e9, #7bcbff);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  color: #5db1e9;
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* ヒーローセクション - 修正部分 */
.hero-section {
  background-color: #fdfaf4 !important; /* 優先度を高める */
  overflow: hidden;
  position: relative;
}

.hero-content {
  z-index: 2;
}

.hero-content .content-box {
  background-color: rgba(255, 255, 255, 0.9) !important; /* 透明度を下げる */
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  color: #333 !important; /* テキスト色を強制 */
}

.hero-section h1 {
  font-weight: 700;
  color: #3a3a3a !important;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-section .lead {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #333 !important; /* テキスト色を強制 */
}

.highlight-text {
  color: #5db1e9 !important;
  font-weight: 600;
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 2rem;
}

.hero-image {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  object-fit: contain;
}

.display-4 {
  font-weight: 700;
  color: #3a3a3a;
  margin-bottom: 1.5rem;
  position: relative;
}

.display-4::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #5db1e9, #7bcbff);
  margin: 15px auto 0;
}

.content-box {
  max-width: 700px;
  margin: 0 auto;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* スクロールダウンアイコン */
.scroll-down-icon {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 3;
}

.scroll-down-icon a {
  display: block;
  font-size: 2rem;
  color: #5db1e9;
  transition: all 0.3s ease;
}

.scroll-down-icon a:hover {
  color: #3ca0e7;
  transform: translateY(5px);
}

/* コンテンツコンテナ */
.content-container {
  background-color: #ffffff;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 40px;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

/* セクション共通 */
.section-wrapper {
  margin-bottom: 5rem;
  padding: 20px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #5db1e9, #7bcbff);
  border-radius: 50%;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(93, 177, 233, 0.3);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #3a3a3a;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #5db1e9, #7bcbff);
}

/* 施設紹介スタイル */
.facility-intro {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.facility-image, .facility-text {
  flex: 1 1 48%;
  position: relative;
}

.facility-image {
  padding-right: 2rem;
}

.reverse .facility-image {
  padding-right: 0;
  padding-left: 2rem;
  order: 2;
}

.reverse .facility-text {
  order: 1;
}

.facility-shape {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd166, #ffb347);
  z-index: -1;
  opacity: 0.7;
}

.facility-shape.alt {
  top: auto;
  bottom: -15px;
  right: -15px;
  left: auto;
  background: linear-gradient(135deg, #5db1e9, #9eebfd);
}

.rounded-image {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bubble-quote {
  background-color: #f9f9f9;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.bubble-quote::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}

.facility-intro .bubble-quote::before {
  top: 40px;
  left: -10px;
  border-top: 10px solid transparent;
  border-right: 15px solid #f9f9f9;
  border-bottom: 10px solid transparent;
}

.reverse .bubble-quote::before {
  top: 40px;
  left: auto;
  right: -10px;
  border-right: none;
  border-left: 15px solid #f9f9f9;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* 活動ブロック */
.activity-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #3a3a3a;
  position: relative;
  display: inline-block;
}

.activity-title::before, .activity-title::after {
  content: '★';
  color: #ffd166;
  font-size: 1.2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.activity-title::before {
  left: -30px;
}

.activity-title::after {
  right: -30px;
}

.activity-block {
  margin-bottom: 3rem;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.activity-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #5db1e9, #7bcbff);
  border-radius: 50%;
  margin-right: 15px;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(93, 177, 233, 0.3);
}

/* イメージギャラリー */
.image-gallery {
  margin-top: 20px;
}

.gallery-item {
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

/* その他の活動ブロック */
.activity-other-block {
  margin: 4rem 0;
}

.activity-card {
  background-color: #f9f9f9;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 30px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.activity-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.activity-card-img {
  border-radius: 15px;
  overflow: hidden;
}

.activity-card-img img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.activity-card:hover .activity-card-img img {
  transform: scale(1.05);
}

/* 情報ボックス */
.info-box {
  background-color: #f9f9f9;
  border-radius: 20px;
  padding: 30px;
  margin: 3rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.info-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #3a3a3a;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(93, 177, 233, 0.3);
  padding-bottom: 10px;
}

.info-title i {
  margin-right: 10px;
  color: #5db1e9;
}

/* 空間ブロック */
.space-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #3a3a3a;
  position: relative;
  display: inline-block;
}

.space-title i {
  margin-right: 10px;
  color: #5db1e9;
}

.space-block {
  margin-bottom: 3rem;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.space-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.space-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #5db1e9, #7bcbff);
  border-radius: 50%;
  margin-right: 15px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(93, 177, 233, 0.3);
}

/* 特別活動 */
.special-activities {
  margin: 3rem 0;
}

.activity-special-card {
  background-color: #f9f9f9;
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.activity-special-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.activity-special-img {
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
}

.activity-special-img img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.activity-special-card:hover .activity-special-img img {
  transform: scale(1.03);
}

/* 訪問支援 */
.support-intro {
  background-color: #f9f9f9;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.support-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #5db1e9, #7bcbff);
  border-radius: 50%;
  margin-right: 15px;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(93, 177, 233, 0.3);
}

.support-content {
  line-height: 1.8;
}

.support-notes {
  background-color: #f9f9f9;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(93, 177, 233, 0.1);
  border-radius: 50%;
  margin-right: 15px;
  color: #5db1e9;
  font-size: 1.2rem;
  float: left;
}

/* お問い合わせ */
.contact-cards {
  margin: 3rem 0;
}

.contact-card {
  background-color: #f9f9f9;
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(93, 177, 233, 0.2);
  padding-bottom: 15px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #5db1e9, #7bcbff);
  border-radius: 50%;
  margin-right: 15px;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(93, 177, 233, 0.3);
}

.contact-body {
  padding: 15px 0;
}

.contact-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(93, 177, 233, 0.1);
  border-radius: 50%;
  margin-right: 15px;
  color: #5db1e9;
  font-size: 1.2rem;
}

/* フッター */
.footer {
  background-color: #5db1e9;
  color: #fff;
  padding: 60px 0 30px;
  position: relative;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 2rem;
}

.footer-nav ul li {
  padding: 0 15px;
  margin-bottom: 10px;
}

.footer-nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-nav ul li a:hover {
  color: #eaf7ff;
  text-decoration: underline;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* トップに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5db1e9;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #5db1e9;
  color: #fff;
  transform: translateY(-5px);
}

/* アニメーション */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
  .facility-image, .facility-text {
    flex: 1 1 100%;
  }
  
  .facility-image {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .reverse .facility-image {
    padding-left: 0;
    margin-bottom: 2rem;
  }
  
  .hero-image-container {
    height: 50vh;
  }
  
  .hero-section {
    height: auto;
    min-height: 100vh;
  }
  
  .activity-special-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .activity-title::before, .activity-title::after {
    display: none;
  }
  
  .content-container {
    padding: 20px;
    margin-top: 1rem;
  }
  
  .activity-block, .space-block, .info-box, .support-intro, .support-notes {
    padding: 20px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}