@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;700&family=Noto+Sans+JP:wght@300;400;500;700&family=M+PLUS+Rounded+1c:wght@300;400;500;700&display=swap');

/* ==========================================================================
   Design System & Variables (必要なデザイン定義を抽出)
   ========================================================================== */
:root {
  --primary-color: #fb7299;
  /* イラストに合わせた淡い幸せ応援ピンク */
  --primary-hover: #e14d76;
  --secondary-color: #0068b1;
  /* 澄んだ川や空を象徴するブルー */
  --secondary-hover: #004d85;
  --accent-color: #f26f21;
  --accent-hover: #d15611;
  --yellow-color: #fbc02d;
  --yellow-hover: #e3ab1b;
  --bg-content: #ffffff;
  --bg-white: #ffffff;
  --text-color: #333333;
  --text-muted: #666666;
  --text-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* 背景色：黒（高コントラストモード用） */
body.bg-black {
  --bg-content: #121212;
  --text-color: #ffff00;
  --text-muted: #ffffff;
  --text-white: #ffffff;
  --border-color: #ffff00;
  --card-bg: #121212;
  --card-hover-bg: #1e1e1e;
  --primary-color: #ffff00;
  --secondary-color: #00ffff;
  --accent-color: #ff00ff;
  --shadow-sm: none;
  --shadow-md: none;
}

/* 背景色：青（高コントラストモード用） */
body.bg-blue {
  --bg-content: #172a45;
  --text-color: #ffffff;
  --text-muted: #a8b2d1;
  --text-white: #ffffff;
  --border-color: #306090;
  --card-bg: #172a45;
  --card-hover-bg: #233554;
  --primary-color: #64ffda;
  --secondary-color: #00ffff;
  --accent-color: #ffc107;
  --shadow-sm: none;
  --shadow-md: none;
}

#mymainback {
  background: linear-gradient(180deg, rgba(255, 250, 235, 1) 0%, rgba(248, 246, 218, 1) 50%, rgba(225, 247, 198, 1) 100%);
}

#main_header {
  margin: 10px auto 20px;
  background-color: transparent;
  justify-content: flex-start;
  box-sizing: border-box;
}

#main_header h1 {
  font-size: 2.6rem;
  color: var(--primary-color);
  position: relative;
  padding-left: 15px;
  border-left: 6px solid var(--primary-color);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
#main {
  background: var(--bg-content);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  min-width: 0;
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  box-sizing: border-box;
}

#main a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

#main a:hover {
  color: var(--secondary-hover);
  text-decoration: underline;
}

#main button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

/* ==========================================================================
   Slideshow Component
   ========================================================================== */
#top_photo_xml {
  max-width: 100%;
  height: 380px;
  margin-bottom: 25px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.slides-container {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #f8fafc;
  /* スライド画像が収まった際の左右/上下の余白背景色 */
}

.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #f8fafc;
}

.slide-item.active {
  opacity: 1;
  z-index: 1;
}

.slide-item p:first-child {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.slide-item img,
.slide-item p:first-child img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
}

.photo_caption,
.slide-item p:last-child {
  position: relative;
  z-index: 10;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-white);
  padding: 15px 30px;
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0;
  box-sizing: border-box;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

/* Slideshow Controls */
#mpx_control_box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

#main .slide-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: transparent;
  font-size: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

#main .slide-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

/* Prev Chevron (Chevron Left) */
#slide_prev::before {
  content: '';
  width: 10px;
  height: 10px;
  border-left: 3.5px solid var(--text-white);
  border-bottom: 3.5px solid var(--text-white);
  transform: rotate(45deg);
  margin-right: -3px;
  /* Visual alignment nudge */
  display: block;
}

/* Next Chevron (Chevron Right) */
#slide_next::before {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 3.5px solid var(--text-white);
  border-top: 3.5px solid var(--text-white);
  transform: rotate(45deg);
  margin-left: -3px;
  /* Visual alignment nudge */
  display: block;
}

/* Pause/Play Button toggled shapes */
/* Default (Playing state, show Stop square) */
#slide_pause::before,
#slide_pause.playing::before {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--text-white);
  display: block;
  border: none;
  border-radius: 1px;
}

/* Paused state (Show Play triangle) */
#slide_pause.paused::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid var(--text-white);
  background: transparent;
  margin-left: 4px;
  /* Visual alignment nudge */
  display: block;
}

.slide-dots {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 5px;
}

.slide-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: transparent;
  border: 3.5px solid var(--primary-color);
  box-sizing: border-box;
  cursor: pointer;
  transition: var(--transition);
}

.slide-dot.active {
  background: var(--primary-color);
  transform: none;
}

.slide-dot:hover {
  transform: scale(1.15);
}

/* ==========================================================================
   Shiawase Support Menu (shiawaseMenu)
   ========================================================================== */
.shiawaseMenu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.shiawaseMenu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px 15px;
  background: var(--bg-white);
  border: 3px solid var(--primary-color);
  border-radius: var(--radius-md);
  color: var(--text-color);
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.shiawaseMenu a.sMenu1,
.shiawaseMenu a.sMenu2 {
  border-color: var(--primary-color);
}

.shiawaseMenu a.sMenu1 strong,
.shiawaseMenu a.sMenu2 strong {
  color: var(--primary-color);
}

.shiawaseMenu a.sMenu3 {
  border-color: var(--yellow-color);
}

.shiawaseMenu a.sMenu3 strong {
  color: #c98a00;
}

.shiawaseMenu a.sMenu4 {
  border-color: var(--secondary-color);
}

.shiawaseMenu a.sMenu4 strong {
  color: var(--secondary-color);
}

.shiawaseMenu a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: var(--card-hover-bg);
  text-decoration: none;
}

.shiawaseMenu a.sMenu1:hover,
.shiawaseMenu a.sMenu2:hover {
  color: var(--primary-hover);
}

.shiawaseMenu a.sMenu3:hover {
  color: #a87300;
}

.shiawaseMenu a.sMenu4:hover {
  color: var(--secondary-hover);
}

.shiawaseMenu a strong {
  font-size: 2.0rem;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.shiawaseMenu a strong .category-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
  transition: var(--transition);
}

.shiawaseMenu a:hover strong .category-icon {
  transform: scale(1.1);
}

.shiawaseMenu a span {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: left;
}

/* Contrast Overrides for Menu */
body.bg-black .shiawaseMenu a strong .category-icon,
body.bg-blue .shiawaseMenu a strong .category-icon {
  filter: brightness(1.2) contrast(1.2);
}

body.bg-black .shiawaseMenu a,
body.bg-blue .shiawaseMenu a {
  border-color: var(--primary-color);
  background: var(--bg-content);
}

body.bg-black .shiawaseMenu a:hover,
body.bg-blue .shiawaseMenu a:hover {
  color: var(--primary-color);
}

body.bg-black .shiawaseMenu a strong,
body.bg-blue .shiawaseMenu a strong {
  color: var(--primary-color);
}

/* ==========================================================================
   Content Elements
   ========================================================================== */
.detail_free {
  font-size: 1.6rem;
  line-height: 1.8;
}

.detail_free h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 30px 0 15px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
}

.detail_free p {
  margin-bottom: 15px;
}

.detail_free ul {
  padding-left: 20px;
  margin-bottom: 20px;
  list-style: disc;
}

.detail_free li {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   Ouen Information (新着情報)
   ========================================================================== */
.ouen_information {
  margin-bottom: 35px;
  background-color: #faf9f6;
  /* 周囲と馴染みつつ区別できる淡いナチュラルカラー */
  border: 1px solid #efeae2;
  border-radius: var(--radius-md);
  padding: 25px;
}

.ouen_information h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0 0 18px;
  /* ボックス内のため上のmarginを排除 */
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
}

.ouen_information ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.ouen_information li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.ouen_information li:last-child {
  border-bottom: none;
  /* 最後の区切り線を消してスッキリ見せる */
}

.ouen_information .info_item_left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.ouen_information .article_date {
  color: var(--text-muted);
  font-size: 1.3rem;
  white-space: nowrap;
}

.ouen_information .article_title {
  font-weight: bold;
  color: var(--text-color);
}

.ouen_information .article_title a {
  color: var(--text-color);
  font-weight: bold;
  text-decoration: none;
}

.ouen_information .article_title a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* For new badge styling */
.ouen_information .new_badge {
  background: var(--primary-color);
  color: #fff;
  font-size: 1.1rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  line-height: 1.2;
}

/* Link Box */
.ouen_information .link_box {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.ouen_information .link_ichiran a,
.ouen_information .link_rss a {
  font-size: 1.4rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.ouen_information .link_ichiran a:hover,
.ouen_information .link_rss a:hover {
  color: var(--secondary-hover);
  text-decoration: underline;
}

/* Contact Footer Section inside Main */
#ouen_section_footer {
  margin-top: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

#ouen_section_footer_ttl h2 {
  background: #f1f5f9;
  font-size: 1.6rem;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
  color: var(--text-color);
}

body.bg-black #ouen_section_footer_ttl h2,
body.bg-blue #ouen_section_footer_ttl h2 {
  background: var(--bg-content);
  border-bottom-color: var(--border-color);
}

#ouen_section_footer_detail {
  padding: 20px;
  font-size: 1.4rem;
  line-height: 1.6;
}

.sf_name_bu {
  font-weight: bold;
  margin-right: 10px;
}

.sf_name {
  font-weight: bold;
  color: var(--primary-color);
}

.sf_tel,
.sf_fax {
  display: inline-block;
  margin-right: 20px;
  margin-top: 8px;
}

.sf_email {
  margin-top: 15px;
}

.sf_email a {
  display: inline-block;
  padding: 8px 22px;
  background: #fdf2f4;
  /* 淡く優しいピンク */
  color: #d45d7d;
  /* 馴染みやすい落ち着いたピンク */
  border: 1px solid #fbc2cf;
  border-radius: 20px;
  /* 角を丸くしてより優しい印象に */
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

.sf_email a:hover {
  background: #fbc2cf;
  color: #ffffff;
  text-decoration: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-item {
  background: #fdfdfd;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-item-title {
  font-weight: bold;
  font-size: 1.6rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  border-left: 4px solid var(--secondary-color);
  padding-left: 8px;
  line-height: 1.2;
}

.contact-item-info {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.contact-item-desc {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.4;
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  margin-top: auto;
}

/* ==========================================================================
   Facility Information Cards ("はじめのいっぽ" & "にこにこ")
   ========================================================================== */
.facility-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.facility-card {
  border-radius: var(--radius-md);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-width: 2px;
  border-style: dashed;
}

.facility-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.facility-card.ippo {
  border-color: var(--yellow-color);
  background: linear-gradient(135deg, #fffee6 0%, #fff9cc 100%);
}

.facility-card.nikoniko {
  border-color: #0068b1;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
}

.facility-badge {
  display: inline-block;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.ippo .facility-badge {
  background-color: var(--yellow-color);
  color: #4a3f35;
}

.nikoniko .facility-badge {
  background-color: #0068b1;
}

.facility-title {
  font-size: 2.0rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.ippo .facility-title {
  color: #c98a00;
}

.nikoniko .facility-title {
  color: #0068b1;
}

.facility-desc {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.facility-details {
  font-size: 1.3rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Contrast Overrides for Facility Cards */
body.bg-black .facility-card {
  background: var(--bg-content) !important;
  border-style: solid !important;
  border-color: var(--primary-color) !important;
}

body.bg-black .facility-title {
  color: var(--primary-color) !important;
}

body.bg-black .facility-badge {
  background-color: var(--primary-color) !important;
  color: var(--bg-main) !important;
}

body.bg-blue .facility-card {
  background: var(--bg-content) !important;
  border-style: solid !important;
  border-color: var(--primary-color) !important;
}

body.bg-blue .facility-title {
  color: var(--primary-color) !important;
}

body.bg-blue .facility-badge {
  background-color: var(--primary-color) !important;
  color: var(--bg-main) !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 900px) {
  .facility-container {
    grid-template-columns: 1fr;
  }

  .shiawaseMenu {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .shiawaseMenu {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .shiawaseMenu a {
    padding: 15px 10px;
  }

  .shiawaseMenu a strong {
    font-size: 1.6rem;
  }

  .shiawaseMenu a strong .category-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 4px;
  }

  .shiawaseMenu a span {
    font-size: 1.4rem;
  }

  #top_photo_xml {
    height: 240px;
  }

  .slide-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .slide-item p:first-child {
    position: relative;
    inset: auto;
    width: 100%;
    height: 180px;
    border-radius: 10px 10px 0 0;
  }

  .slide-item img,
  .slide-item p:first-child img {
    position: relative;
    inset: auto;
    height: 100% !important;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
  }

  .photo_caption,
  .slide-item p:last-child {
    position: relative;
    z-index: 10;
    width: 100%;
    background: #333333;
    color: var(--text-white);
    padding: 8px 12px;
    font-size: 1.4rem;
    line-height: 1.4;
    margin: 0;
    box-sizing: border-box;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    flex-grow: 1;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 670px) {
  #main {
    padding: 10px !important;
  }

  #main_header h1 {
    font-size: 2.2rem;
    padding: 10px 0 10px 12px;
  }
}


.gaiyoTxt {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1.6;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
  margin-bottom: 20px;
}