/* ===== 共通パーツ: header / footer / btn / page-title / section-heading / cta ===== */

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-color-bg-white);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin-inline: auto;
  padding: 10px 127px 10px 31px;
  min-height: 99px;
}
.site-header__logo img { width: 264px; height: auto; }

.gnav__list { display: flex; align-items: center; }
.gnav__item { position: relative; }
.gnav__item::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 75px; background: var(--color-color-border-default);
}
.gnav__item:first-child::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 75px; background: var(--color-color-border-default);
}
.gnav__link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 116px; padding: 0 6px;
  color: var(--color-color-text-main);
  transition: opacity .2s;
}
.gnav__link:hover { opacity: .7; }
.gnav__icon img { width: 68px; height: 50px; object-fit: contain; }
.gnav__label { white-space: nowrap; }
.menu-btn { display: none; }

@media (max-width: 1200px) {
  .site-header__inner { padding-right: 24px; }
}
/* TAB・SP(980px以下): ハンバーガー＋ドロワー */
@media (max-width: 980px) {
  .site-header__inner { min-height: 64px; height: 64px; padding: 11px 20px 11px 16px; }
  .site-header__logo img { width: 190px; height: auto; }

  .menu-btn {
    display: block; position: relative; z-index: 120;
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--color-color-bg-light);
  }
  .menu-btn span {
    position: absolute; left: 10px; width: 16px; height: 2.5px; border-radius: 1px;
    background: var(--color-color-brand-primary);
    transition: transform .25s, opacity .25s, top .25s;
  }
  .menu-btn span:nth-child(1) { top: 11px; }
  .menu-btn span:nth-child(2) { top: 17px; }
  .menu-btn span:nth-child(3) { top: 23px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { top: 17px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

  .gnav {
    position: fixed; inset: 64px 0 0 0; z-index: 110;
    background: var(--color-color-bg-white);
    padding: 24px 20px 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .gnav.is-open { opacity: 1; visibility: visible; transform: none; }
  .gnav__list { flex-direction: column; align-items: stretch; }
  .gnav__item::before, .gnav__item:first-child::before { display: none; }
  .gnav__item::after {
    top: auto; bottom: 0; right: 0; left: 0; transform: none;
    width: auto; height: 1px;
  }
  .gnav__link { flex-direction: row; gap: 16px; width: auto; padding: 14px 4px; }
  .gnav__icon img { width: 52px; height: auto; }
  .gnav__label { font-size: 16px; font-weight: 700; }
  body.is-menu-open { overflow: hidden; }
}
@media (max-width: 767px) {
  .site-header__logo img { width: 152px; height: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 300px; max-width: 100%; height: 62px;
  padding: 0 16px 0 34px; border-radius: 31px;
  color: var(--color-color-text-inverse);
  transition: background-color .2s, transform .2s;
}
.btn__label { flex: 1; text-align: left; }
.btn__arrow {
  flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; font-size: 14px; line-height: 1; font-weight: 700;
}
.btn--primary { background: var(--color-color-brand-primary); box-shadow: 0 4px 0 rgba(62, 148, 85, .35); }
.btn--primary:hover { background: var(--color-color-brand-primary-hover); }
.btn--primary .btn__arrow { color: var(--color-color-brand-primary); }

.btn--secondary {
  width: 320px; height: 68px; padding: 16px 16px 16px 34px; border-radius: 34px;
  background: var(--color-color-brand-secondary);
  box-shadow: 0 4px 0 rgba(201, 127, 58, .35);
}
.btn--secondary:hover { transform: translateY(2px); box-shadow: 0 2px 0 rgba(201, 127, 58, .35); }
.btn--secondary .btn__label { text-align: center; }
.btn--secondary .btn__arrow { width: 30px; height: 30px; color: var(--color-color-brand-primary); }

@media (max-width: 767px) {
  .btn { width: 260px; height: 56px; padding-left: 28px; }
  .btn--secondary { width: 260px; height: 52px; padding: 10px 14px 10px 28px; border-radius: 26px; }
  .btn--secondary .btn__arrow { width: 26px; height: 26px; }
}

/* ---------- page-title / breadcrumb ---------- */
.page-title {
  position: relative; overflow: hidden;
  background: var(--color-color-bg-base);
  min-height: 244px; padding: 67px 0 56px;
}
.page-title__cloud { position: absolute; left: 0; top: 0; width: 100%; height: 56px; pointer-events: none; }
.page-title__cloud img { position: absolute; left: -0.28%; top: 0; width: 100.56%; max-width: none; height: 114.29%; }
.breadcrumb { max-width: 1180px; margin: 0 auto; padding-top: 0; color: var(--color-color-text-mute); position: relative; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; height: 40px; }
.breadcrumb__list li + li::before { content: '＞'; margin: 0 .5em; font-size: .85em; }
.breadcrumb a:hover { color: var(--color-color-brand-primary); }
.page-title__body { text-align: center; margin-top: 26px; }
.page-title__en { color: var(--color-color-brand-primary); }
.page-title__title { color: var(--color-color-text-main); margin-top: 0; }

@media (max-width: 1240px) { .breadcrumb { margin-inline: 30px; } }
@media (max-width: 767px) {
  .page-title { min-height: 236px; padding: 40px 0 40px; }
  .page-title__cloud { height: 32px; }
  .page-title__cloud img { left: -1.03%; width: 102.06%; height: 125%; }
  .breadcrumb { margin-inline: 20px; }
  .breadcrumb__list { font-size: 13px; }
  .page-title__body { margin-top: 20px; }
}

/* ---------- section-heading ---------- */
.section-heading { text-align: center; }
.section-heading__en { color: var(--color-color-brand-primary); }
.section-heading__title { color: var(--color-color-text-main); margin-top: 0; }
.section-heading__lead { color: var(--color-color-text-mute); margin-top: 24px; }
@media (max-width: 767px) { .section-heading__lead { margin-top: 16px; } }

/* ---------- tags ---------- */
.tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; height: 30px; padding: 0 14px; border-radius: 15px;
  color: #fff; white-space: nowrap;
}
.tag--omuta  { background: var(--color-color-brand-primary); }
.tag--miyama { background: var(--color-color-brand-secondary); }
.tag--required, .tag--optional {
  min-width: 60px; height: 26px; border-radius: 13px;
}
.tag--required { background: var(--color-color-semantic-error); }
.tag--optional { background: var(--color-color-semantic-mute); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  background: #5fb87a; color: #fff; text-align: center;
  padding: 96px 20px;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; position: relative; z-index: 1; }
.cta__heading { display: flex; flex-direction: column; gap: 4px; }
.cta__title { font-size: 36px; }
.cta__card {
  position: relative; display: flex; align-items: center; gap: 24px;
  width: 640px; max-width: 100%; min-height: 148px; padding: 24px 32px 24px 30px;
  background: #fff; color: var(--color-color-text-main);
  border-radius: 18px; text-align: left;
  transition: transform .2s;
}
.cta__card:hover { transform: translateY(-2px); }
.cta__icon img { width: 68px; height: 50px; object-fit: contain; }
.cta__text { flex: 1; display: flex; flex-direction: column; }
.cta__card-title { font-size: 20px; line-height: 1.5; }
.cta__card-desc { color: var(--color-color-text-sub); margin-top: 2px; }
.cta__arrow {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-color-brand-primary); color: #fff;
}
.cta__deco { position: absolute; }
.cta__deco--butterfly { left: 13.3%; top: 80px; width: 83px; transform: rotate(5.5deg); }
.cta__deco--bird { right: 6.5%; bottom: 0; width: 84px; }
@media (max-width: 767px) {
  .cta { padding: 64px 20px; }
  .cta__inner { gap: 28px; }
  .cta__title { font-size: 24px; }
  .cta__card { flex-wrap: wrap; gap: 12px 16px; min-height: 0; padding: 20px; }
  .cta__icon img { width: 52px; height: auto; }
  .cta__text { flex: 1 1 60%; }
  .cta__card-title { font-size: 17px; }
  .cta__arrow { width: 36px; height: 36px; }
  .cta__deco--butterfly { left: 12px; top: 20px; width: 52px; }
  .cta__deco--bird { right: 8px; width: 56px; }
}

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--color-color-bg-white); padding: 108px 0 24px; }
.pagetop {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--color-color-brand-primary); color: #fff;
  transition: opacity .2s;
}
.pagetop:hover { opacity: .85; }
.pagetop__arrow { font-size: 16px; line-height: 1.2; }
.pagetop__text { font-size: 11px; font-weight: 900; letter-spacing: .06em; line-height: 1.5; }

.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; padding-inline: 20px; }

.recruit {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  width: 1072px; max-width: 100%; padding: 26px 36px;
  background: var(--color-color-bg-light); border-radius: 16px;
}
.recruit__text { display: flex; flex-direction: column; gap: 6px; }
.recruit__en { color: var(--color-color-brand-primary); }
.recruit__desc { color: var(--color-color-text-mute); }
.recruit__action { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.recruit__note { color: var(--color-color-text-mute); text-align: center; }

.fnav { display: flex; align-items: center; justify-content: space-between; width: 1180px; max-width: 100%; }
.fnav__logo img { width: 250px; height: auto; }
.fnav__list { display: flex; align-items: center; gap: 32px; color: var(--color-color-text-brown); font-size: 14px; }
.fnav__list a:hover { color: var(--color-color-brand-primary); }
.site-footer__divider { width: 1180px; max-width: 100%; height: 1px; margin: 0; border: 0; background: var(--color-color-border-default); }
.site-footer__bottom { display: flex; justify-content: space-between; width: 1180px; max-width: 100%; color: var(--color-color-text-mute); }
.site-footer__privacy:hover { color: var(--color-color-brand-primary); }

@media (max-width: 980px) {
  .recruit { flex-direction: column; align-items: flex-start; }
  .recruit__action { align-self: center; }
  .fnav { flex-direction: column; gap: 24px; }
  .fnav__list { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
}
@media (max-width: 767px) {
  .site-footer { padding-top: 48px; }
  .site-footer__inner { align-items: stretch; gap: 0; padding-inline: 20px; }
  .pagetop { width: 52px; height: 52px; top: -26px; }
  .pagetop__arrow { font-size: 15px; line-height: 1.1; }
  .pagetop__text { font-size: 6px; letter-spacing: .08em; font-weight: 700; }

  .recruit { width: 100%; padding: 18px 20px 20px; border-radius: 14px; gap: 0; }
  .recruit__en { font-size: 10px; }
  .recruit__title { font-size: 17px; line-height: 1.55; margin-top: 2px; }
  .recruit__desc { font-size: 12.5px; margin-top: 8px; }
  .recruit__action { align-self: stretch; align-items: flex-start; margin-top: 18px; gap: 10px; }
  .recruit__note { font-size: 10.5px; text-align: left; }

  .fnav { align-items: flex-start; gap: 20px; margin-top: 8px; padding-top: 24px; }
  .fnav__logo img { width: 180px; }
  .fnav__list {
    display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 0 20px; width: 100%;
    font-size: 13px; font-weight: 700; font-family: 'Rounded Mplus 1c Bold', 'Rounded Mplus 1c', sans-serif;
  }
  .fnav__list li { padding-block: 0; line-height: 32px; }
  .fnav__list li:nth-child(3) { order: 3; } /* 幼稚園・認定こども園とは */
  .fnav__pc { display: none; }
  .site-footer__divider { margin-top: 24px; }
  .site-footer__bottom { flex-direction: column; gap: 4px; margin-top: 12px; }
  .site-footer__privacy { font-size: 12px; }
  .site-footer__copy { font-size: 11px; text-align: center; }
}
