@charset "UTF-8";

/*===========================================================================*/
/* 1. Followup Message
/*===========================================================================*/
.followup_message {
  display: flex;
  width: 90%;
  margin: 7em auto;
}

.followup_message dt,
.followup_message dd {
  width: 50%;
}

.followup_message dd .c-h2 {
  padding-left: 3.4em;
  font-size: 26px;
  font-family: "Noto Serif JP", serif;
}

.followup_message dd .c-h2 > span::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 2.5rem;
  height: 1.1rem;
  border-top: #6db7e7 solid .3rem;
}

.followup_message dd p {
  width: 78%;
  margin: 2.5rem auto 2.5em;
  text-align: justify;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .08em;
}

.followup_message dd p.l_t {
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 600;
}

.ttlbtm {
	text-align: center;
	font-weight: 600;
	font-size: 1.5rem;
	letter-spacing: 0.08em;
	margin: -2.5em 0 1.5em;
}

/*===========================================================================*/
/* 2. Slider
/*===========================================================================*/
.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4.5 / 3;
  margin: 0 auto;
  background-color: #f9f9f9;
}

.slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.dots {
  position: absolute;
  bottom: -30px;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #cccccc;
  animation: dot-highlight 12s infinite;
}

.slide {
  animation: fade 12s infinite;
}

/* Animation Delays */
.slide-1, .dot-1 { animation-delay: 0s; }
.slide-2, .dot-2 { animation-delay: 4s; }
.slide-3, .dot-3 { animation-delay: 8s; }

@keyframes fade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  33%  { opacity: 1; }
  43%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes dot-highlight {
  0%   { background-color: #cccccc; }
  10%  { background-color: #6bb4d9; }
  33%  { background-color: #6bb4d9; }
  43%  { background-color: #cccccc; }
  100% { background-color: #cccccc; }
}

/*===========================================================================*/
/* 3. Grid / Facility & Card
/*===========================================================================*/
.grid_container {
  width: 90%;
  margin: 7em auto;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: 50px;
  row-gap: 60px;
}

.card {
  display: flex;
  flex-direction: column;
}

.image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 25px;
  overflow: hidden;
}

.image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h2 {
  height: 80px;
  margin-bottom: 20px;
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: center;
}

.card p {
  margin-top: 1.5em;
  font-feature-settings: 'pwid' on, 'palt' on;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .08em;
  text-align: left;
}


/*===========================================================================*/
/* 5. Features
/*===========================================================================*/
.features-container {
  display: flex;
  gap: 60px;
  width: 90%;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}

.feature-image {
  width: 100%;
  margin-bottom: 30px;
}

.feature-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.feature-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  background-color: #78B1DC;
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
}

.feature-title {
  margin-bottom: 30px;
  font-family: "Noto Serif JP", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
}

.feature-text {
  margin-top: 1.5em;
  font-feature-settings: 'pwid' on, 'palt' on;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .08em;
}

/*===========================================================================*/
/* 6. Accordion
/*===========================================================================*/
.accordion {
  width: 90%;
  margin: 0 auto 16px;
}

.accordion:last-child {
  margin: 0 auto 12em;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background-color: #f7f7f7;
  border-radius: 8px;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header:hover {
  background-color: #f0f0f0;
}

.icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border-radius: 50%;
}

.icon::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 1.5px;
  background-color: #5ba3ff;
}

.icon::after {
  content: "";
  position: absolute;
  width: 1.5px;
  height: 20px;
  background-color: #5ba3ff;
  transition: transform 0.3s ease;
}

details[open] .icon::after {
  transform: rotate(90deg);
}

.accordion-content {
  padding: 32px 16px;
  color: #111;
  font-size: 15px;
  line-height: 2.2;
}

.accordion-content p {
  margin-top: 0;
  margin-bottom: 1.5em;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

/*===========================================================================*/
/* 7. Media Queries
/*===========================================================================*/
@media (min-width: 1024px) {
  .facility-grid {
    /* auto-fitをやめて3列固定にする */
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .ttlbtm {
	text-align: center;
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: 0.08em;
	margin: -1.5em 0 1.5em;
  }	
  .followup_message {
    display: block;
    width: 90%;
    margin: 4em auto 2em;
  }
  
  .followup_message dt,
  .followup_message dd {
    width: 100%;
  }
  
  .followup_message dd .c-h2 {
    margin-top: 1.5em;
    padding-left: 0.8em;
    font-size: 1.9rem;
  }
  
  .followup_message dd p {
    width: 94%;
    font-feature-settings: 'pwid' on, 'palt' on;
    font-size: 15px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: .08em;
    text-align: justify;
  }
  
  .grid_container {
    width: 90%;
    margin: 5em auto;
  }
  
  .card h2 {
    margin: 1em 0;
    font-size: 1.9rem;
  }
  
  .info-flex-container {
    flex-direction: column;
  }
  
  .info-label {
    width: 100px;
    padding: 15px;
  }
  
  .info-content {
    padding: 15px;
  }

  .features-container {
    flex-direction: column;
    gap: 50px;
  }
  .accordion-header {
   font-size: 18px;
  } 
  .feature-title {
  font-size: 1.9rem;
  }
}