@charset "UTF-8";

.content {
  padding: 70px 0 0 0;
  @media screen and (min-width: 1025px) {
    padding: 144px 0 0 0;
  }
}

/* ページタイトルエリア */
.page-ttl {
  background: url(../img/bg-subttl.png) no-repeat center center / cover;
  position: relative;
  color: #fff;
  margin-bottom: 1em;

  @media screen and (min-width: 768px) {
    margin-bottom: 2em;
  }
  @media screen and (min-width: 1025px) {
    margin-bottom: 5em;
  }

  &::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(var(--main-color-rgb), 0.4);
  }

  .pageTtl {
    font-size: 2rem;
    padding: 1.5em 0;
    line-height: 1.4em;
    position: relative;

    @media screen and (min-width: 768px) {
      font-size: 2.3rem;
    }
    @media screen and (min-width: 1025px) {
      font-size: 3rem;
    }
  }
}

/* パンくずリスト */
.pankuz {
  @media screen and (min-width: 1025px) {
    background: rgba(255, 255, 255, 0.6);
    position: relative;

    .breadcrumbs {
      font-size: 1.3rem;
      padding: 0.5em;

      a,
      span {
        color: var(--theme-color);
        font-weight: bold;
      }
      a:hover {
        text-decoration: underline;
      }
    }
  }
}

/* メインコンテンツレイアウト */
.main-content {
  padding: 0 1em;

  @media screen and (min-width: 1025px) {
    display: flex;
    justify-content: center;
    margin-bottom: 5em;
    position: relative;
  }

  .main-sec {
    margin-bottom: 5em;

    @media screen and (min-width: 1025px) {
      width: calc(100% - 280px - 4%);
      max-width: 800px;
      margin-right: 4%;
      position: relative;
    }
  }

  /* サイドバーなしの場合 */
  &.sb-none .main-sec {
    @media screen and (min-width: 1025px) {
      margin-right: 0;
    }
  }
}

/* サイドナビセクション */
.nav-sec {
  max-width: 500px;
  margin: 0 auto 3em;

  @media screen and (min-width: 1025px) {
    width: 280px;
    margin: 0;

    .sticky-box {
      position: -webkit-sticky;
      position: sticky;
      top: 0;
    }
  }

  .parent-name {
    border-bottom: 1px solid var(--theme-color);
    padding-bottom: 1em;

    @media screen and (min-width: 1025px) {
      font-size: 2rem;
    }

    .en {
      text-transform: uppercase;
      @media screen and (min-width: 1025px) {
        font-size: 1.2rem;
      }
    }
  }
}

/* カテゴリーリストのアイコン調整 */
.side-menu .s-navi .page_item a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  gap: 12px;
  color: #453211;
  text-decoration: none;
  font-size: 1.4rem;
}

.side-menu .s-navi .side_icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-menu .s-navi .side_icon svg {
  width: 100%;
  height: auto;
}

/* 施設リスト：2列グリッド配置 */
.s-navi.facility {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2列 */
  gap: 10px;
  padding: 0;
  list-style: none;
}

.s-navi.facility .facility_item a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 5px;
  border-radius: 4px;
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.3;
  text-decoration: none;
  height: 100%;
  transition: opacity 0.2s;
}

.s-navi.facility .facility_item a:hover {
  opacity: 0.8;
}

/* 施設別背景色（theme.jsonの変数を使用） */
.btn-kakeyu {
  background-color: var(--wp--preset--color--color-kakeyu);
}
.btn-houden {
  background-color: var(--wp--preset--color--color-houden);
}
.btn-izumino {
  background-color: var(--wp--preset--color--color-izumino);
}
.btn-home-care {
  background-color: var(--wp--preset--color--color-home-care);
}

/* アクティブ（絞り込み中）のスタイル（必要に応じて枠線を付ける等） */
.s-navi.facility .facility_item a.active {
  outline: 3px solid rgba(0, 0, 0, 0.2);
  outline-offset: -3px;
}

/* PICK UP & スライダー */
.pickup-sec {
  margin-bottom: -37px;
}

.has-slider {
  margin-bottom: 2em;
}

.page-sl-trim {
  position: relative;
  margin-bottom: 1em;

  &::before {
    content: "";
    display: block;
    padding-top: 50%;
  }

  img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    object-fit: cover;
  }
}

/* お知らせ・投稿ボックス */
.sub .tab_box,
.sub .post-box {
  border-top: none;
  margin-bottom: 3em;
}

.single .news_ttl {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* ページネーション */
.pagenate {
  text-align: center;
  padding-top: 5em;

  span,
  a {
    border: 2px solid var(--main-color);
    border-radius: 30px;
    font-weight: 700;
    padding: 0.4em 0.7em;
  }

  span {
    color: var(--main-color);
  }

  a {
    background: var(--main-color);
    color: #fff;
  }
}

/* サイトマップ */
/* .sitemapBox {
  @media screen and (min-width: 1025px) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .smItem {
    margin-bottom: 1.5em;

    @media screen and (min-width: 1025px) {
      width: 48%;
      margin-bottom: 3em;
    }

    &.grid {
      @media screen and (min-width: 1025px) {
        width: 100%;
      }
    }

    &.no-margin {
      margin-bottom: 0;
    }

    &.has-sub {
      padding-left: 1em;
      
      .smTtl a {
        font-size: 1.05em;
        color: var(--sub-blue);
      }
    }

    .smTtl {
      margin-bottom: 0.8em;
      line-height: 1.4em;
      font-size: 1.1em;
      font-weight: 600;
      color: var(--main-color);

      a {
        color: var(--main-color);
      }
    }

    .sitemapList {
      padding-left: 1.5em;

      a {
        padding: 0.4em 0;
        display: block;
        line-height: 1.3em;
        position: relative;

        &::before {
          position: absolute;
          content: "";
          background: url(../img/icon/icon_arrow_circle.svg) center / contain no-repeat;
          width: 9px;
          height: 9px;
          left: -1em;
          top: 50%;
          transform: translateY(-50%);
        }
      }
    }
  }
} */

/* 扉ページの下層リスト */
.subList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;

  li {
    width: 100%;
    margin-bottom: 0.8em;

    @media screen and (min-width: 768px) {
      width: 49%;
    }

    a {
      display: flex;
      align-items: center;
      background: var(--theme-color);
      color: #fff;
      padding: 0.5em 2em 0.5em 1em;
      font-weight: 600;
      height: 100%;
      position: relative;
      border-radius: 8px;

      &::before {
        position: absolute;
        font-family: "icomoon";
        content: "\f054";
        width: 1em;
        height: 1em;
        right: 0.8em;
        top: 50%;
        transform: translateY(-50%);
        color: #fff;
        line-height: 1em;
        transition: all 0.3s ease-in-out;
      }

      &:hover::before {
        right: 0.5em;
      }
    }
  }
}

/* サイドバーナビゲーション */
.s-navi {
  .page_item_has_children > a {
    /* pointer-events: none; */
  }

  .page_item {
    position: relative;
    padding-left: 1.5em;
    transition: all 0.3s ease-in-out;

    &.current_page_item > a {
      color: var(--theme-color);
    }

    /* &.page_item_has_children {
      &::before {
        content: "";
        width: 10px;
        height: 10px;
        border-top: solid 2px var(--main-color);
        border-right: solid 2px var(--main-color);
        position: absolute;
        left: 0;
        top: 1em;
        transform: rotate(45deg);
        transition: all 0.3s ease-in-out;
      }

      &.is-open {
        &::before {
          transform: rotate(135deg);
        }
        .children {
          margin-bottom: 1em;
          visibility: visible;
          height: auto;
          opacity: 1;
        }
      }

      .children {
        transition: all 0.3s ease-in-out;
        visibility: hidden;
        height: 0;
        opacity: 0;

        .page_item a {
          font-size: 1.45rem;
          padding: 0.3em 0;
          font-weight: 400;
          position: relative;

          &::before {
            content: "";
            position: absolute;
            width: 10px;
            height: 2px;
            background: var(--main-color);
            top: 50%;
            transform: translateY(-50%);
            left: -1.5em;
          }
        }
      }
    } */

    & > a {
      padding: 0.5em 0;
      display: block;
      font-weight: 700;
    }
  }
}

/* パスワード保護・検索結果 */
.post-password-form input[type="password"],
.searchform input[type="text"] {
  border: 1px solid var(--theme-color);
  margin-bottom: 1em;
}

.post-password-form input[type="submit"],
.searchform input[type="submit"] {
  font-weight: bold;
  display: inline-block;
  letter-spacing: 0.075em;
  min-width: 200px;
  color: #fff;
  background: var(--theme-color);
  border: 2px solid var(--theme-color);
  margin: 0 auto;
  padding: 12px 1em;
  transition: all 0.3s ease-in-out;
}

.post-password-form input[type="submit"]:hover,
.searchform input[type="submit"]:hover {
  background: #fff;
  color: var(--theme-color);
}

.searchform {
  padding-top: 2em;
}

/* イベントカレンダー */
.xo-event-calendar table.xo-month {
  .month-event-title {
    color: var(--main-color) !important;
    background-color: #fff !important;
    text-align: center !important;
    font-size: 1.5em !important;
    font-weight: 700;
  }

  .month-dayname td div.today {
    color: var(--sub-orange) !important;
  }
}

/* 投稿タイトル */
.news_single_ttl {
  font-size: 2rem;
  margin-bottom: 2em;
}
