.top_main {
  width    : 100%;
  max-width: 1024px;
  margin   : auto;
}

.mainimg img {
  width  : 100%;
  height : auto;
  display: block;
  margin : 0 auto;
}

@media (max-width: 767px) {
  .mainimg img {
    aspect-ratio   : 16 / 6;
    object-fit     : cover;
    object-position: left;
  }
}

.top_paper_body h2 {
  padding: 2rem 0;
}

.top .container {
  width    : 100%;
  max-width: 1024px;
  margin   : auto;
}

/*-------------
　診療メニュー
-------------*/
.top_info {
  display  : flex;
  flex-wrap: wrap;
  gap      : 2rem;
  margin   : 3rem auto;
}

@media (max-width: 767px) {
  .top_info {
    flex-direction: column;
    padding: 0 1.5rem;
  }
}

.top_info_item {
  flex         : 1 1 calc((100% / 2) - 2rem);
  list-style   : none;
  padding      : 0;
  margin       : 0;
  box-sizing   : border-box;
  display      : flex;
  flex-direction: column;
  gap          : 1.6rem;
  border-radius: 10px;
  padding      : 1rem;
  box-shadow   : 0 0 10px rgba(0, 0, 0, 0.1);
  transition   : all 0.3s ease;
}

@media (max-width: 767px) {
  .top_info_item {
    width: 100%;
    display      : flex;
    flex-direction: column;
  }
}

.top_info_item img {
  width  : 100%;
  height : auto;
  display: block;
  margin : 0 auto;
}



.top .cta {
  padding: 3rem;
  width:100%;
  
}

/* ============================
   医療法人Zion 理念
   =============================*/
.top_philosophy2026 {
  padding: 3rem 1rem 4rem 1rem;
  font-family: var(--mincho);
  text-align: center;
  margin: 0 auto;
  background-color: #fafafa;
}

.top_philosophy2026_lead {
  padding: 1rem 1.2rem;
  margin-bottom: 30px;
}

/* チェックボックス制御 */
.toggle_input {
  display: none !important;
}

/* フレーム本体 (閉じている初期状態) */
.top_philosophy2026_frame {
  display: grid !important;
  grid-template-rows: 250px !important;
  overflow: hidden !important;
  background: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 3.4rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: grid-template-rows 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.philosophy_inner {
  min-height: 0;
}

.gradient_overlay {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 150px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0) 0%, #fafafa 50%);
  margin: -150px auto 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s;
}

.toggle_label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  cursor: pointer;
  margin-top: -80px;
  position: relative;
  z-index: 3;
}

.btn_text_open, .btn_text_close {
  font-weight: bold;
  color: #444;
  font-size: 15px;
}

.btn_text_close {
  display: none;
}

.arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid #444;
  border-bottom: 2px solid #444;
  transform: rotate(45deg);
  margin-top: 10px;
  transition: transform 0.4s;
}

/* --- チェックが入った時の状態変化 --- */
#philosophy_toggle:checked~.top_philosophy2026_frame {
  grid-template-rows: 1fr !important;
  padding-bottom: 40px !important;
}

#philosophy_toggle:checked~.gradient_overlay {
  opacity: 0 !important;
  visibility: hidden !important;
}

#philosophy_toggle:checked~.toggle_label .btn_text_open {
  display: none !important;
}

#philosophy_toggle:checked~.toggle_label .btn_text_close {
  display: block !important;
}

#philosophy_toggle:checked~.toggle_label .arrow {
  transform: rotate(-135deg) !important;
  margin-top: 15px !important;
}

#philosophy_toggle:checked~.toggle_label {
  margin-top: -80px !important;
}

.top_philosophy2026 h4 {
  padding: 40px 0 20px 0;
  font-size: 1.7rem;
  line-height: 2.6rem;
}

.top_philosophy2026 h5 {
  padding: 40px 0 24px 0;
  font-size: 1.3rem;
}

.top_philosophy2026 p {
  line-height: 180%;
}

.top_philosophy2026 ul {
  max-width: 640px;
  margin: auto;
  list-style: none;
  padding: 0;
}

.top_philosophy2026_sign {
  text-align: center;
  display: block;
  padding: 64px 0;
}

@media (max-width: 767px) {
  .top_philosophy2026 h4 {
    font-size: 1.4rem;
  }

  .top_philosophy2026_frame {
    padding: 0 1.5rem;
  }
}

/*-------------
　インバウンドバナー
-------------*/
.inbound {
  padding      : 4rem 1.5rem 0 1.5rem;
  margin       : auto;
  display      : grid;
  place-content: center;
  width        : 100%;
}

.inbound h2 {
  text-align: center;
}

.inbound img {
  width : 100%;
  margin: auto;
}

.inbound_banners {
  display        : flex;
  gap            : var(--space32);
  justify-content: space-between;
  align-items    : stretch;
  max-width      : 1024px;
  margin         : auto;
  margin-top     : 48px;
  gap            : 2rem;
}

@media (max-width: 767px) {
  .inbound_banners {
    display       : flex;
    flex-direction: column;
    width         : 100%;
  }
}

.banners {
  max-width      : 1000px;
  display        : flex;
  justify-content: center;
  align-items    : center;
  margin         : auto;
  margin-bottom  : 4rem;
}

.banners>* {
  padding: 12px 0;
  margin : 6px;
}