*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html, body{
  overflow-x: hidden;
}

html{ 
  scroll-behavior:smooth; 
}

body{
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  /* background:radial-gradient(900px 380px at 70% 10%, rgba(41,165,152,.10), transparent 60%),
  radial-gradient(700px 320px at 20% 20%, rgba(41,165,152,.08), transparent 55%),
  linear-gradient(#f7f9f8, #f7f9f8); */
}
@media (min-width: 768px) {
    #page .site-main.has-sidebar {
        max-width: 980px;
        margin: 80px auto 20px auto;
        padding: 0 22px;
    }
    .site-main .main-content {
      min-width: 980px;
    }
}

/* 共通レイアウト（ヘッダー／ナビゲーション） */

.header {
  padding: 16px 10px;
  position: relative;
  z-index: 1000;
}

.header-content {
  margin: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
@media (max-width: 768px){
  .header-content {
  margin: 0;
}
}
.header-left {
  font-family: "Zen Maru Gothic", "Noto Sans JP", system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 380px) {
  .site-title {
    width: 85%;
  }
}
.site-name {
  font-size: 22px;
  white-space: nowrap;
  line-height: 1.2;
}

.dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dots i:nth-child(1) { background: #5ea2cd; }
.dots i:nth-child(2) { background: #a385b1; }
.dots i:nth-child(3) { background: #e3b953; }

.header-phone {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
@media (min-width: 768px) {
  a[href^="tel:"] {
      pointer-events: none;
  }
}
.phone-link {
  font-family: "Zen Maru Gothic", "Noto Sans JP", system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #3A8D78;
  font-weight: 700;
  font-size: 24px;
  white-space: nowrap;
}
.phone-link:hover {
  text-decoration: none;
}
.phone-link i {
  font-size: 16px;
}

.hamburger {
  display: none;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: #333333;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: #3A8D78;
}

.nav-btn {
  background: #3A8D78;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 24px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.3s;
  text-decoration: none;
}

.nav-btn:hover {
  opacity: 0.7;
  text-decoration: none;
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  position: relative;
}

.has-dropdown.active .dropdown-toggle {
  color: #3A8D78;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-70%);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.has-dropdown.active .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mega-item {
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 15px;
  transition: all 0.3s;
  background: #ffffff;
  gap: 10px;
}

.mega-item:hover {
  /* transform: translateY(-5px); */
  opacity: 0.9;
}

.mega-img {
  width: 90px;
  height: 60px;
  overflow: hidden;
}

.mega-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .mega-item:hover .mega-img img {
  transform: scale(1.05);
} */

.mega-title {
  color: #333333;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
  transition: 0.3s ease;
}

.mega-item:hover .mega-title {
  color: #3A8D78;
}

.has-dropdown-mobile {
  position: relative;
}

.dropdown-toggle-mobile {
  position: relative;
  cursor: pointer;
}

.dropdown-toggle-mobile::after {
  content: '▼';
  font-size: 10px;
  margin-left: 8px;
  transition: transform 0.3s;
}

.has-dropdown-mobile.active .dropdown-toggle-mobile::after {
  transform: rotate(180deg);
}

.dropdown-menu-mobile {
  list-style: none;
  padding-left: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.has-dropdown-mobile.active .dropdown-menu-mobile {
  max-height: 500px;
}

.nav-mobile {
  position: fixed;
  top: 2%;
  right: -100%;
  width: 95%;
  max-width: 420px;
  background: #3A8D78;
  padding: 80px 0 120px 60px;
  transition: right 0.3s ease;
  z-index: 1001;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
}

.nav-mobile.active {
  right: 2%;
}

.close-wrap {
  position: absolute;
  right: -12px;
  top: -18px;
  width: 80px;
  height: 73px;
  background: #FFFCF4;
  border-top-right-radius: 0;
  border-bottom-left-radius: 30px;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-menu {
  width: 56px;
  height: 56px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}

.x-icon {
  position: relative;
  width: 46px;
  height: 46px;
}

.x-icon::before,
.x-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: #2f8f7a;
  transform-origin: center;
}

.x-icon::before {
  transform: translate(-50%, -50%) rotate(30deg);
}

.x-icon::after {
  transform: translate(-50%, -50%) rotate(-30deg);
}

.nav-mobile-list {
  list-style: none;
  margin-bottom: 30px;
  letter-spacing: 0.075rem;
}

.nav-mobile-list a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.nav-mobile-list a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #afd891;
  display: inline-block;
}
ul.dropdown-menu-mobile a {
  font-size: 15px;
}
ul.dropdown-menu-mobile a::before{
  content: none;
}
.nav-mobile-btn {
  background: #ffffff;
  color: #3A8D78;
  font-weight: 600;
  font-size: 17px;
  padding: 8px 32px;
  border-radius: 25px;
  cursor: pointer;
  margin-bottom: 30px;
  align-self: flex-start;
  text-decoration: none;
}

.nav-mobile-footer {
  list-style: none;
  margin-left: 20px;
}

.nav-mobile-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 980px) {
  .header-content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-phone {
    order: 2;
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 18px 20px;
  }

  .header-left {
    order: 1;
    gap: 12px;
  }

  .site-subtitle {
    font-size: 15px;
  }

  .site-name {
    font-size: 23px;
  }

  .dots {
    gap: 5px;
  }

  .phone-link {
    font-size: 22px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: none;
    cursor: pointer;
    padding: 8px;
    order: 3;
    position: absolute;
    right: 0;
    top: 0;
    background: #FFFCF4;
    width: 80px;
    height: 73px;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 15px;
  }

  .hamburger span {
    width: 32px;
    height: 3px;
    background: #3A8D78;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .nav-desktop {
    display: none;
  }
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  transition: opacity 0.3s;
}
.file-link:hover {
  opacity: 0.7;
}
.pdf-link {
  color: #d32f2f;
}
.word-link {
  color: #2b579a;
}
.excel-link {
  color: #217346;
}
.file-link i {
  font-size: 18px;
}

#page header#top {
  background-color: #F6F6F1;
}
#page main {
    margin-top: 80px;
}
@media (max-width: 768px) {
  #page main,.page-template-default #page main,.blog #page main,.archive #page main {
    margin-top: 50px;
  }
}
#page main .main_grid {
    max-width: 1200px;
    margin: 0 auto 120px;
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 20px;
    align-items: start;
}
#page main .main_grid aside {
    width: 340px;
    .about_corp,.about_disability {
      width: 340px;
      display: inline-flex;
      align-items: center;
      background-color: #3A8D78;
      padding: 0 20px;
      height: 80px;
      border-radius: 20px;
      color: #ffffff;
      font-size: 18px;
      font-weight: 600;
    }
    .list {
      list-style: none;
      padding: 20px 0 20px 20px;
      font-size: 16px;
      margin-bottom: 20px;
    }
}
#page main .main_grid aside .list li {
  margin-bottom: 15px;
}
#page main .main_grid aside .list li:hover {
  opacity: 0.7;
}
aside .list li a {
  color: #333333;
  text-decoration: none;
  font-weight: 600;
}
/*児童施設外部リンクアイコン付与*/
/*サイドメニュー*/
#page main .main_grid aside .list li a[target="_blank"] {
  display: inline-flex;
  align-items: center;
}
#page main .main_grid aside .list li a[target="_blank"]::after {
  content: "";
  width: 13px;
  height: 13px;
  margin-left: 6px;
  background-image: url(../img/icon_link_gr.svg);
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.main_grid section {
    width: 815px;
}
@media (max-width: 767px) {
	#page main .main_grid {
		grid-template-columns: 1fr;
    grid-template-columns: 1fr;
    place-items: center;
    margin: 30px auto;
    gap: 40px;
	}

	/* 順番変更 */
	#page main .main_grid > aside {
		order: 2;
	}
	#page main .main_grid > .main-content {
		order: 1;
	}
  
  #page main .main_grid aside {
    width: 90%;
    .about_corp, .about_disability {
        height: 48px;
        border-radius: 10px;
        width: 100%;
    }
    .list {
        padding: 20px 10px;
    }
  }
  .main_grid section {
    width: 90%;
  }
  .main_grid section section {
    width: 100%;
  }
  section.disability-facility,section.senior-facility {
    width: 100%;
  }
  #page main .main_grid aside .list li {
    margin-bottom: 0;
  }
}

/* Gutenberg のファイルブロック用スタイル（拡張子で色分け） */
/* 拡張子ごとの色付け */
main a[href$=".pdf"] {
  margin-left: 8px;
  margin-right: 8px; 
  margin-bottom: 4px; 
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  transition: opacity 0.3s;
  text-decoration: underline;
  color: #3A8D78;
}

main a[href$=".doc"],
main a[href$=".docx"] {
  margin-left: 8px;
  margin-right: 8px;  
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  transition: opacity 0.3s;
  text-decoration: underline;
}

main a[href$=".xls"],
main a[href$=".xlsx"] {
  margin-left: 8px;
  margin-right: 8px;  
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  transition: opacity 0.3s;
  text-decoration: underline;
}
main a[href$=".pdf"]:hover,
main a[href$=".doc"]:hover,
main a[href$=".docx"]:hover,
main a[href$=".xls"]:hover,
main a[href$=".xlsx"]:hover {
  opacity: 0.7;
}


/* PDF */
.file-link.pdf-link::before,
main a[href$=".pdf"]::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 18px;
  display: inline-block;
  content: "\f1c1";
  color: #d32f2f;
}

/* Word */
.file-link.word-link::before,
main a[href$=".doc"]::before,
main a[href$=".docx"]::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 18px;
  display: inline-block;
  content: "\f1c2";
  color: #2b579a; 
}

/* Excel */
.file-link.excel-link::before,
main a[href$=".xls"]::before,
main a[href$=".xlsx"]::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 18px;
  display: inline-block;
  content: "\f1c3"; 
  color: #217346;
}
button {
  transition: 0.3s ease;
}
button:hover {
  opacity: 0.7;
}

/*お知らせ詳細ページ*/
.single #page .site-container {
    max-width: 980px;
    margin: 0 auto 20px auto;
    padding: 0 22px;
}
/*404ページ*/
.error404 #page main {
    max-width: 980px;
    margin: 0 auto 20px auto;
    padding: 0 22px;
}
section.error-404 {
    margin: 7rem 0;
}
.search-form .search-submit {
    background: #3A8D78;
}
.button {
    background: #3A8D78;
}
a.button.btn-404 {
    margin-top: 2rem;
}
.breadcrumb {
  background-color: #e8f3ef;
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 0;
  font-size: 14px;
  color: #333333;
  opacity: 0.7;
}
.breadcrumb-item {
  color: #333333;
  text-decoration: none;
  display: inline;
}
.breadcrumb-item:hover:not(.current) {
  color: #3A8D78;
  text-decoration: underline;
}
.breadcrumb-item.current {
  color: #333333;
}
.breadcrumb-separator {
  margin: 0 10px;
  color: #999;
}
@media (max-width: 1280px) {
  .breadcrumb-inner {
    padding: 10px 15px;
  }
  .breadcrumb-separator {
    margin: 0 6px;
  }
}
p.txt_note {
  padding: 2rem 0;
  text-align: center;
}
figure.wp-block-image.is-style-default {
    max-width: 550px;
    margin: 0 auto 70px auto;
    height: auto;
}

figure.wp-block-image.is-style-default img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}
/*404*/
section.error-404 h2.page-title {
    margin-bottom: 1rem;
}