@charset "UTF-8";

/* ============================================================ */
/* variables */
/* ============================================================ */
:root {
  --main-color: #10954d;
  --main-color-rgb: 16, 149, 77;
  --sub-color: #e5f1d4;
  --pale-color: #f8f4e9;
  --pale-color-rgb: 248, 244, 233;
  --deep-color: #f2ece0;
  --base-color: #453211;

  --center-color: #10954d;
  --kakeyu-color: #3b76b3;
  --houden-color: #2cb2c2;
  --izumino-color: #cc5d39;
  --home-care-color: #72af43;

  --color-primary: var(--main-color);

  --theme-color: #10954d; /* デフォルト（センター） */
  body.theme-kakeyu {
    --theme-color: #3b76b3;
  }
  body.theme-houden {
    --theme-color: #2cb2c2;
  }
  body.theme-izumino {
    --theme-color: #cc5d39;
  }
  body.theme-home-care {
    --theme-color: #72af43;
  }

  /* フォントの変数 */
  --font-jp:
    "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo,
    sans-serif;
  --font-en: "Plus Jakarta Sans", sans-serif;
  --font-mixed: var(--font-en), var(--font-jp);

  /* トランジション変数 */
  --transition-speed: 0.3s;
  --transition-ease: ease-in-out;
  --transition-base: all var(--transition-speed) var(--transition-ease);
}

/* フォントユーティリティ */
.font-jp {
  font-family: var(--font-jp);
}
.font-en {
  font-family: var(--font-en);
}

/* ============================================================ */
/* base */
/* ============================================================ */
* html body {
  background: url(null) fixed;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  &.is-locked {
    overflow-y: hidden;
  }
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--base-color);
  font-size: 1.6rem;
  line-height: 1.8;
  font-weight: 400;
  font-style: normal;
  font-family: var(--font-mixed);
  overflow-wrap: break-word;
  text-size-adjust: 100%;
  font-feature-settings: "palt";
  letter-spacing: 1.6px;
}

/* li {
  list-style: none;
} */

a {
  color: #333;
  cursor: pointer;
  line-height: inherit;
  transition: all 0.3s ease-in-out;
  text-decoration: none;

  &:link,
  &:visited,
  &:active {
    color: #333;
    text-decoration: none;
  }
  &:hover {
    color: #666;
    opacity: 0.8;
    text-decoration: none;
  }

  /* PC時のみ電話番号リンクを無効化 */
  &[href*="tel:"] {
    @media (min-width: 751px) {
      pointer-events: none;
      cursor: default;
      text-decoration: none;
    }
  }
}

/* ============================================================ */
/* 表示切り替えユーティリティ */
/* ============================================================ */
.sp {
  display: block;
  @media screen and (min-width: 1025px) {
    display: none !important;
  }
}
.sp480 {
  display: block;
  @media screen and (min-width: 480px) {
    display: none;
  }
}
.tablet {
  display: block;
  @media screen and (min-width: 768px) {
    display: none;
  }
}
.pc {
  display: none;
  @media screen and (min-width: 1025px) {
    display: block;
  }
}

/* ============================================================ */
/* img / layout components */
/* ============================================================ */
.thum,
.image,
.banner {
  margin: 0 auto;
  text-align: center;
}
.main-logo {
  margin: 0 auto;
}

::selection {
  color: #383838;
  background: rgba(0, 0, 0, 0.1);
  text-shadow: none;
}
::-moz-selection {
  color: #383838;
  background: rgba(0, 0, 0, 0.1);
  text-shadow: none;
}

/* ============================================================ */
/* buttons */
/* ============================================================ */
.btn,
.btn_arrow {
  /* text-align: center; */
  height: auto;
  margin: 2em auto;
  & a {
    display: inline-block;
    background: var(--theme-color);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    border: 2px solid var(--theme-color);
    border-radius: 8px;
    margin: 0 auto;
    padding: 0.5em 1.5em;
    @media screen and (min-width: 480px) {
      padding: 0.5em 3em;
    }
    &:hover {
      opacity: 1;
      color: var(--theme-color);
      background: #fff !important;
    }
  }

  &.color-center {
    & a {
      background: var(--center-color);
      border-color: var(--center-color);
      &:hover {
        color: var(--center-color);
      }
    }
  }
  &.color-kakeyu {
    & a {
      background: var(--kakeyu-color);
      border-color: var(--kakeyu-color);
      &:hover {
        color: var(--kakeyu-color);
      }
    }
  }
  &.color-houden {
    & a {
      background: var(--houden-color);
      border-color: var(--houden-color);
      &:hover {
        color: var(--houden-color);
      }
    }
  }
  &.color-izumino {
    & a {
      background: var(--izumino-color);
      border-color: var(--izumino-color);
      &:hover {
        color: var(--izumino-color);
      }
    }
  }
  &.color-home-care {
    & a {
      background: var(--home-care-color);
      border-color: var(--home-care-color);
      &:hover {
        color: var(--home-care-color);
      }
    }
  }
}

.btn_arrow a {
  position: relative;
  background: var(--main-color);
  color: #fff;
  padding: 0.5em 3.5em 0.5em 2.5em;
  @media screen and (min-width: 1025px) {
    padding: 0.5em 2.3em 0.5em 1em;
    font-size: 1.5rem;
  }

  &::before {
    position: absolute;
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    top: 50%;
    right: 1.5em;
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.3s ease;
  }
  &:hover {
    background: #fff;
    color: var(--main-color);
    &::before {
      right: 1em;
      border-top: 2px solid var(--main-color);
      border-right: 2px solid var(--main-color);
    }
  }
}

.vacancy_btn {
  text-align: center;
  margin: 2em auto;
  & a {
    position: relative;
    display: inline-block;
    color: #fff;
    background: var(--main-color);
    font-size: 1.6rem;
    border: 2px solid var(--main-color);
    border-radius: 0 12px 0 0;
    padding: 0.5em 4em 0.5em 2em;
    &::before {
      position: absolute;
      content: "";
      background: url(../img/icon/icon_key.svg) center / contain no-repeat;
      width: 15px;
      height: 15px;
      right: 2em;
      top: 50%;
      transform: translateY(-50%);
    }
  }
}

.btn_area {
  & .arrow_btn {
    margin: 0.5em;
    @media screen and (min-width: 768px) {
      display: inline-block;
    }
    & a {
      position: relative;
      display: block;
      background: #fff;
      font-size: 1.4rem;
      border-radius: 0 12px 0 0;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
      padding: 0.5em 2em 0.5em 0.5em;
      &::before {
        position: absolute;
        content: "";
        background: url(../img/icon/icon_arrow_circle.svg) center / contain
          no-repeat;
        width: 15px;
        height: 15px;
        right: 0.5em;
        top: 50%;
        transform: translateY(-50%);
      }
    }
  }
}

.rich_btn_area {
  margin: 1em 0;

  & ul {
    display: flex;
    justify-content: center;
    gap: 0.5em 1em;
    flex-wrap: wrap;
  }
  & a {
    font-size: 1.4rem;
  }
}

/* ============================================================ */
/* layout */
/* ============================================================ */
.wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.inner {
  width: 100%;
  padding: 0 1em;
  margin: 0 auto;
  @media screen and (min-width: 768px) {
    padding: 0 2em;
  }
  @media screen and (min-width: 1025px) {
    max-width: 1200px;
    &.narrow {
      max-width: 980px;
    }
    &.wide {
      max-width: 1400px;
    }
  }
  &::after {
    content: "";
    clear: both;
    display: block;
  }
}

.base {
  padding: 2.5em 0;
  @media screen and (min-width: 480px) {
    padding: 3em 0;
  }
  @media screen and (min-width: 768px) {
    padding: 4em 0;
  }
  @media screen and (min-width: 1025px) {
    padding: 5em 0;
  }
}

.align-center {
  text-align: center;
}

/* ============================================================ */
/* header */
/* ============================================================ */
.main-header {
  width: 100%;
  background: var(--pale-color);
  padding: 10px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  box-shadow: 0 0 5px 0 rgb(0 0 0 / 30%);
  @media screen and (min-width: 1025px) {
    padding: 0;
    box-shadow: none;
  }

  & .header_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  & .header-name {
    @media screen and (min-width: 1025px) {
      padding: 1em;
    }
  }

  & .main-logo {
    margin: 0;

    @media screen and (min-width: 1025px) {
      display: contents;
    }

    /* @media screen and (min-width: 375px) {
      width: 320px;
    }
    @media screen and (min-width: 480px) {
      width: 400px;
    }
    @media screen and (min-width: 768px) {
      width: 450px;
    }
    @media screen and (min-width: 1025px) {
      width: 590px;
      padding: 0 0.8em;
    }
    @media screen and (min-width: 1200px) {
      width: 660px;
    }
    @media screen and (min-width: 1300px) {
      width: 750px;
    } */
  }

  & a {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
  }

  & img {
    /* display: block; */
    width: 37px;
    margin: 0 10px 0 0;
    @media screen and (min-width: 1025px) {
      width: 60px;
    }
  }

  & .small {
    display: block;
    text-align: left;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.4;
    @media screen and (min-width: 1025px) {
      font-size: 12px;
    }
  }

  & .name {
    display: block;
    text-align: left;
    font-size: clamp(1.5rem, 1.5vw + 0.6rem, 24px);
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: var(--theme-color);
    font-weight: bold;

    @media screen and (min-width: 480px) {
      br {
        display: none;
      }
    }
  }
}

/* hamburger */
.hamburger {
  width: 32px;
  height: 22px;
  position: relative;
  z-index: 1000;
  & button {
    width: 100%;
    height: 100%;
    outline: none;
  }
  & span {
    height: 2px;
    width: 100%;
    display: block;
    background: var(--base-color);
    transition: all 0.3s ease-in-out;
    position: absolute;
    left: 0;
    &:first-of-type {
      top: 0;
    }
    &:nth-of-type(2) {
      top: 50%;
      transform: translateY(-50%);
    }
    &:nth-of-type(3) {
      bottom: 0;
    }
  }
  &.is-open {
    & span:first-of-type {
      top: 10px;
      transform: rotate(25deg);
    }
    & span:nth-of-type(2) {
      opacity: 0;
    }
    & span:nth-of-type(3) {
      top: 10px;
      transform: rotate(-25deg);
      left: 0;
    }
  }
}

.spnav {
  @media screen and (min-width: 480px) {
    width: 350px;
  }
  & .link_btn_area {
    padding: 0 1em 1em;
    margin: 0;
  }
  & .link_btn {
    text-align: center;
    margin: 0 0 0.3em;
    &:first-child {
      margin: 0 0.3em 0.3em 0;
    }
    & a {
      display: block;
      width: 100%;
      background: var(--sub-blue);
      color: #fff;
      padding: 0.5em;
    }
    &:nth-of-type(3) a {
      background: #e39f42;
    }
    &:nth-of-type(1),
    &:nth-of-type(2) {
      flex-grow: 1;
    }
    &:nth-of-type(3) {
      flex-grow: 3;
    }
  }
  & .list_link_area {
    margin: 0 0 1em 1em;
    & li {
      position: relative;
      display: inline-block;
      font-size: 1.3rem;
      padding: 0 1em;
      &::before {
        position: absolute;
        content: "";
        background-color: var(--main-color);
        width: 7px;
        height: 7px;
        border-radius: 50%;
        left: 2px;
        top: 10px;
      }
    }
  }
}

/* ============================================================ */
/* nav-menu & facility logic */
/* ============================================================ */

.nav_inner {
  margin-bottom: 1em;

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

.nav-menu {
  @media screen and (min-width: 1025px) {
    display: flex;
    justify-content: center;
    gap: 2em;

    .theme-top &,
    .theme-center &,
    .theme-recruit &,
    .theme-division & {
      background: #fff;
      display: flex;
      justify-content: center;
      gap: 2em;
    }
    .theme-kakeyu &,
    .theme-houden &,
    .theme-izumino &,
    .theme-home-care & {
      background: var(--theme-color);
    }
  }
}

.menu-item-wrapper {
  display: block;
  border-bottom: 1px solid #ddd;
  @media screen and (min-width: 1025px) {
    display: none;
    &.is-current-facility {
      display: block;
    }
  }
}

.facility-accordion {
  display: block;
  border-bottom: 1px solid #ccc;
  @media screen and (min-width: 1025px) {
    display: none;
    &.is-current-facility {
      display: block;
    }
  }
}

.facility-trigger {
  font-size: 1.8rem;
  display: block;
  padding: 1em 0;
  font-weight: bold;
  position: relative;
  cursor: pointer;
  margin: 0;
  @media screen and (min-width: 1025px) {
    display: none;
  }

  &::before,
  &::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 14px;
    height: 2px;
    background-color: #333;
    transition: 0.3s ease-in-out;
    transform-origin: center;
  }
  &::before {
    transform: translateY(-50%) rotate(90deg);
  }
  &::after {
    transform: translateY(-50%) rotate(0deg);
  }

  &.is-open {
    &::before {
      transform: translateY(-50%) rotate(135deg);
    }
    &::after {
      transform: translateY(-50%) rotate(45deg);
    }
  }
  & span {
    font-size: 1.5rem;
    margin-right: 0.5em;
  }
}

/* Facility Groups Logic */
.center-group {
  & .facility-trigger::before,
  & .facility-trigger::after {
    background-color: var(--center-color);
  }
  & .facility-trigger,
  & .sp-top-link a {
    color: var(--center-color);
  }
  & .nav_ttl_p::before {
    background-color: var(--center-color);
  }
  & .nav_ttl_p::after {
    border-top: 1.5px solid #fff;
    border-right: 1.5px solid #fff;
  }
}
.kakeyu-group {
  & .facility-trigger::before,
  & .facility-trigger::after {
    background-color: var(--kakeyu-color);
  }
  & .facility-trigger,
  & .sp-top-link a {
    color: var(--kakeyu-color);
  }
  & .nav_ttl_p::before {
    background-color: var(--kakeyu-color);

    @media screen and (min-width: 1025px) {
      background-color: #fff;
    }
  }
  & .nav_ttl_p::after {
    @media screen and (min-width: 1025px) {
      border-top: 1.5px solid var(--kakeyu-color);
      border-right: 1.5px solid var(--kakeyu-color);
    }
  }
  & .nav_ul_menu li::before {
    background: var(--kakeyu-color);
  }
}
.houden-group {
  & .facility-trigger::before,
  & .facility-trigger::after {
    background-color: var(--houden-color);
  }
  & .facility-trigger,
  & .sp-top-link a {
    color: var(--houden-color);
  }
  & .nav_ttl_p::before {
    background-color: var(--houden-color);

    @media screen and (min-width: 1025px) {
      background-color: #fff;
    }
  }
  & .nav_ttl_p::after {
    @media screen and (min-width: 1025px) {
      border-top: 1.5px solid var(--houden-color);
      border-right: 1.5px solid var(--houden-color);
    }
  }
  & .nav_ul_menu li::before {
    background: var(--houden-color);
  }
}
.izumino-group {
  & .facility-trigger::before,
  & .facility-trigger::after {
    background-color: var(--izumino-color);
  }
  & .facility-trigger,
  & .sp-top-link a {
    color: var(--izumino-color);
  }
  & .nav_ttl_p::before {
    background-color: var(--izumino-color);

    @media screen and (min-width: 1025px) {
      background-color: #fff;
    }
  }
  & .nav_ttl_p::after {
    @media screen and (min-width: 1025px) {
      border-top: 1.5px solid var(--izumino-color);
      border-right: 1.5px solid var(--izumino-color);
    }
  }
  & .nav_ul_menu li::before {
    background: var(--izumino-color);
  }
}
.home-care-group {
  & .facility-trigger::before,
  & .facility-trigger::after {
    background-color: var(--home-care-color);
  }
  & .facility-trigger,
  & .sp-top-link a {
    color: var(--home-care-color);
  }
  & .nav_ttl_p::before {
    background-color: var(--home-care-color);

    @media screen and (min-width: 1025px) {
      background-color: #fff;
    }
  }
  & .nav_ttl_p::after {
    @media screen and (min-width: 1025px) {
      border-top: 1.5px solid var(--home-care-color);
      border-right: 1.5px solid var(--home-care-color);
    }
  }
  & .nav_ul_menu li::before {
    background: var(--home-care-color);
  }
}

.facility-list {
  @media screen and (max-width: 1024px) {
    display: none;
  }
  @media screen and (min-width: 1025px) {
    display: flex;
    gap: 0.5em 0.5em;
    margin-bottom: 0.5em;
    flex-wrap: wrap;

    &.ft-item {
      /* フッター用*/
      justify-content: space-between;
      margin-bottom: 2em;

      & a {
        /* フッター用*/
        padding: 0.4em 1.3em;
        border-radius: 8px;
        color: #fff !important;
        &:hover {
          background: #fff !important;
        }
      }
      & .center-node a {
        background: var(--center-color);
        &:hover {
          color: var(--center-color) !important;
        }
      }
      & .kakeyu-node a {
        background: var(--kakeyu-color);
        &:hover {
          color: var(--kakeyu-color) !important;
        }
      }
      & .houden-node a {
        background: var(--houden-color);
        &:hover {
          color: var(--houden-color) !important;
        }
      }
      & .izumino-node a {
        background: var(--izumino-color);
        &:hover {
          color: var(--izumino-color) !important;
        }
      }
      & .home-care-node a {
        background: var(--home-care-color);
        &:hover {
          color: var(--home-care-color) !important;
        }
      }
    }

    & a {
      padding: 0.2em 0.8em;
      border: 2px solid;
      background: #fff;
      border-radius: 10rem;
      font-weight: bold;
      font-size: 1.3rem;

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

      &:hover,
      .current & {
        color: #fff !important;
        opacity: 1;
      }
    }
    & .center-node a {
      border-color: var(--center-color);
      color: var(--center-color);
      &:hover,
      .center-node.current & {
        background: var(--center-color);
      }
    }
    & .kakeyu-node a {
      border-color: var(--kakeyu-color);
      color: var(--kakeyu-color);
      &:hover,
      .kakeyu-node.current & {
        background: var(--kakeyu-color);
      }
    }
    & .houden-node a {
      border-color: var(--houden-color);
      color: var(--houden-color);
      &:hover,
      .houden-node.current & {
        background: var(--houden-color);
      }
    }
    & .izumino-node a {
      border-color: var(--izumino-color);
      color: var(--izumino-color);
      &:hover,
      .izumino-node.current & {
        background: var(--izumino-color);
      }
    }
    & .home-care-node a {
      border-color: var(--home-care-color);
      color: var(--home-care-color);
      &:hover,
      .home-care-node.current & {
        background: var(--home-care-color);
      }
    }
  }
}

/* nav_ttl_p and icons */
.nav_ttl_p {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding-left: 1.5em;

  @media screen and (min-width: 1025px) {
    /* 1025px以上かつ、特定のクラスを持たない場合は、子（擬似要素）を隠す */
    /* liが特定のクラスを持っていない場合、この中の擬似要素を消す */
    li:not(.has-megamenu):not(.menu-item-has-children) & {
      &::before,
      &::after {
        display: none !important;
      }
    }
  }

  & > a::before,
  & > span::before {
    display: none !important;
  }

  &::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    border-radius: 50%;
    background-color: #333;
    z-index: 1;
    transition: 0.3s;

    @media screen and (min-width: 1025px) {
      background-color: #fff;
    }
  }

  &::after {
    content: "";
    position: absolute;
    left: 8.5px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-top: 1.5px solid #fff;
    border-right: 1.5px solid #fff;
    transform: translateY(-50%) rotate(45deg);
    z-index: 2;

    @media screen and (min-width: 1025px) {
      border-top: 1.5px solid #333;
      border-right: 1.5px solid #333;
      top: 48%;
      transform: translateY(-50%) rotate(135deg);
    }
  }

  & a {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--base-color);
    padding: 0.3em 0;
    position: relative;
    width: 100%;

    @media screen and (min-width: 1025px) {
      font-size: 1.7rem;
      padding: 0.6em 0;

      body:not(.theme-top, .theme-center, .theme-recruit, .theme-division) & {
        color: #fff;
      }

      &:hover {
        opacity: 1;
      }

      .menu-item-has-children &::after,
      .has-megamenu &::after {
        position: absolute;
        content: "";
        bottom: -31px;
        right: 0;
        left: 0;
        margin: 0 auto;
        width: 16px;
        height: 16px;
        background: #fff;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        visibility: hidden;
        opacity: 0;
        transition:
          opacity 0.3s ease-in-out,
          visibility 0.3s ease-in-out !important;
        z-index: 999;
      }
    }
  }
  .menu-item-has-children &.is-open a,
  .has-megamenu &.is-open a {
    &::after {
      visibility: visible;
      opacity: 1;
    }
  }
}

.menu-item-has-children > .nav_ttl_p .acc-icon,
.has-megamenu > .nav_ttl_p .acc-icon {
  @media screen and (max-width: 1024px) {
    position: absolute;
    right: 15px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    display: block;
    background-image:
      linear-gradient(var(--base-color), var(--base-color)),
      linear-gradient(var(--base-color), var(--base-color));
    background-repeat: no-repeat;
    background-size:
      2px 100%,
      100% 2px;
    background-position: center;
    transition: 0.3s;
  }
}
.menu-item.is-open > .nav_ttl_p .acc-icon {
  @media screen and (max-width: 1024px) {
    transform: translateY(-50%) rotate(45deg);
  }
}

.menu-item-has-children {
  position: relative;

  /* 親のdivで表示制御 */
  .nav_ul_wrap {
    display: none; /* 初期は非表示 */
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  /* ホバー時に親divを表示 */
  &:hover > .nav_ul_wrap {
    display: block;
  }

  .nav_ul_menu {
    border-radius: 25px;
    padding: 2.5em;
    background: #fff;

    @media screen and (min-width: 1025px) {
      width: 700px;
      transform: translateX(-40%);
      float: left;
      box-shadow: 0px 0px 8px rgba(69, 50, 17, 0.3);
    }

    & li {
      position: relative;
      padding-left: 1em;

      @media screen and (min-width: 1025px) {
        display: inline-block;
        margin-right: 2em;
        margin-bottom: 0.5em;
        padding-left: 0;

        & a {
          padding-left: 1.5em;
          position: relative;
          font-size: 1.8rem;
          color: var(--base-color);
          font-weight: bold;

          &::before {
            content: "";
            position: absolute;
            left: 5px;
            top: 50%;
            width: 12px;
            height: 12px;
            transform: translateY(-50%);
            border-radius: 50%;
            background-color: var(--theme-color);
            z-index: 1;
          }
          &::after {
            content: "";
            position: absolute;
            left: 8.5px;
            top: 50%;
            width: 4px;
            height: 4px;
            border-top: 1.5px solid #fff;
            border-right: 1.5px solid #fff;
            transform: translateY(-50%) rotate(45deg);
            z-index: 2;
          }

          &:hover {
            color: var(--theme-color);
          }
        }
      }

      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 10px;
        height: 10px;
        transform: translateY(-50%);
        border-radius: 50%;

        @media screen and (min-width: 1025px) {
          display: none;
        }
      }
    }
  }
}

/* dropdowns logic */
.nav_cnt,
.nav_ul_menu,
.sub-menu {
  display: none;
  position: relative;
  width: 100%;
  @media screen and (max-width: 1024px) {
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0.5em 0 0.5em 2em;
    font-size: 1.4rem;
    a {
      padding: 0.3em 0;
      display: block;
    }
  }
  @media screen and (min-width: 1025px) {
    display: block !important;
    position: absolute;
    top: calc(100% + 30px);
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.3s ease-in-out,
      visibility 0.3s ease-in-out !important;
  }
}

.has-megamenu:hover > .nav_cnt,
.menu-item-has-children:hover > .nav_ul_menu,
.nav_cnt.is-open,
.nav_ul_menu.is-open {
  @media screen and (min-width: 1025px) {
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* megamenu */
.megamenu-panel {
  background: #fff;
  border-radius: 10px;
  padding: 1.5em;

  @media screen and (min-width: 1025px) {
    width: 90%;
    max-width: 1200px;
    border-radius: 25px;
    padding: 2.5em;
    box-shadow: 0px 0px 8px rgba(69, 50, 17, 0.3);
  }
}

.megamenu-facilities {
  @media screen and (min-width: 1025px) {
    margin-bottom: 2em;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.5em;
  }

  & .facility-card {
    border-radius: 15px;
    overflow: hidden;

    @media screen and (min-width: 1025px) {
      width: 25%;
      display: flex;
      flex-direction: column;
      transition: opacity 0.3s ease-in-out;
    }

    & .img-box {
      display: none;

      @media screen and (min-width: 1025px) {
        display: block;
        overflow: hidden;
      }

      & img {
        aspect-ratio: 3 / 2;
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;

        @media screen and (min-width: 1025px) {
          scale: 1;
          transition:
            scale 0.5s ease-in-out,
            opacity 0.3s ease-in-out;
        }
      }
    }

    &:hover .img-box img {
      @media screen and (min-width: 1025px) {
        scale: 1.1;
      }
    }

    & .facility-name {
      font-weight: bold;
      font-size: 1.6rem;
      color: #fff;
      width: 100%;
      padding: 0.5em 1em;
      border-radius: 0 10px 10px 0;

      @media screen and (min-width: 1025px) {
        font-size: 1.8rem;
        border-radius: 0;
      }

      & span {
        font-size: 1.4rem;
      }
    }

    &.theme-kakeyu .facility-name {
      background: var(--kakeyu-color);
    }
    &.theme-houden .facility-name {
      background: var(--houden-color);
    }
    &.theme-izumino .facility-name {
      background: var(--izumino-color);
    }
    &.theme-home-care .facility-name {
      background: var(--home-care-color);
    }
  }

  /* トップ本文中 */
  &.top_item {
    display: flex;
    flex-direction: column;
    gap: 1em;
    /* margin-top: -4em; */

    @media screen and (min-width: 1025px) {
      flex-direction: unset;
      gap: 1.5em;
    }

    & .facility-card {
      display: flex;
      align-items: stretch;

      & .facility-name {
        display: flex;
        align-items: center;
      }
    }
    .img-box {
      display: block;
      width: 45%;

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

.megamenu-links {
  margin: 0 auto 1em;
  padding-left: 1em;

  @media screen and (min-width: 1025px) {
    width: 700px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 3em;
    padding-left: 0;
  }

  & li {
    padding-left: 1.5em;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      left: 5px;
      top: 50%;
      width: 12px;
      height: 12px;
      transform: translateY(-50%);
      border-radius: 50%;
      background-color: var(--main-color);
      z-index: 1;
    }
    &::after {
      content: "";
      position: absolute;
      left: 8.5px;
      top: 50%;
      width: 4px;
      height: 4px;
      border-top: 1.5px solid #fff;
      border-right: 1.5px solid #fff;
      transform: translateY(-50%) rotate(45deg);
      z-index: 2;
    }
  }
  & a {
    color: var(--base-color);
    font-weight: bold;
    font-size: 1.5rem;

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

      &:hover {
        color: var(--theme-color);
      }
    }
  }
}

.megamenu-bottom {
  margin: 0 auto 1em;

  @media screen and (min-width: 1025px) {
    width: 700px;
  }

  & a {
    display: block;
    background: var(--center-color);
    border: 2px solid var(--main-color);
    color: #fff;
    text-align: center;
    font-weight: bold;
    position: relative;
    padding: 0.5em;
    border-radius: 10px;
    font-size: 1.5rem;

    @media screen and (min-width: 1025px) {
      font-size: 1.7rem;
    }
  }
  & a:hover {
    background: #fff;
    color: var(--center-color);
    opacity: 1;
  }
}

/* mobile specific nav */
.main-nav {
  @media screen and (max-width: 1024px) {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    height: 100vh;
    background: var(--pale-color);
    z-index: 999;
    transition: right 0.4s ease;
    overflow-y: auto;
    padding: 60px 1em 2em;
  }
}
body.show-nav {
  .main-nav {
    right: 0;
  }
  .overlay {
    display: block;
  }
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
}

.facility-content {
  @media screen and (max-width: 1024px) {
    display: none;
    padding-bottom: 1em;
    & .is-open + .nav_ul_menu,
    & .is-open + .nav_cnt,
    & .is-open > .nav_ul_menu,
    & .is-open > .nav_cnt {
      display: block;
    }
  }
}

.header-right {
  @media screen and (min-width: 1025px) {
    padding: 1em 1em 0;
  }
}

.header-info {
  @media screen and (min-width: 1025px) {
    text-align: right;
  }
}

.info_area {
  @media screen and (min-width: 1025px) {
    display: flex;
    gap: 1em;
    align-items: center;
    margin-bottom: 1em;

    & .info_btn {
      display: flex;
      gap: 0.5em;
      align-items: center;
    }
    & a {
      font-size: 1.2rem;
      padding-left: 1.8em;
      position: relative;

      @media screen and (min-width: 1325px) {
        font-size: 1.5rem;
        padding-left: 1.5em;
      }
    }
    & a::before {
      content: "";
      position: absolute;
      left: 5px;
      top: 50%;
      width: 14px;
      height: 14px;
      transform: translateY(-50%);
      border-radius: 50%;
      background-color: var(--main-color);
      z-index: 1;
    }
    & a::after {
      content: "";
      position: absolute;
      left: 8.5px;
      top: 50%;
      width: 5px;
      height: 5px;
      border-top: 1.5px solid #fff;
      border-right: 1.5px solid #fff;
      transform: translateY(-50%) rotate(45deg);
      z-index: 2;
    }
  }
}

.nav_info {
  margin: 0 auto;
}
.info_phone {
  background: var(--main-color);
  color: #fff;
  border-radius: 15px;
  padding: 0.7em 1em;
  display: flex;
  align-items: center;
  margin: 0 auto 1em;
  flex-direction: column;
  font-weight: bold;

  @media screen and (min-width: 1025px) {
    flex-direction: row;
    display: inline-flex;
    gap: 1em;
    padding: 0.2em 1em;
  }
  @media screen and (min-width: 1325px) {
    padding: 0em 1em;
  }

  & .number {
    & a {
      font-size: 2.3rem;
      position: relative;
      display: flex;
      align-items: baseline;
      gap: 0.5rem;
      color: #fff;

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

    & a::before {
      content: "";
      background: url(../img/icon/icon_phone.svg) no-repeat 0 0 / cover;
      left: 0;
      top: 0;
      width: 2.2rem;
      height: 2.2rem;
    }
    & span {
      font-weight: normal;
      font-size: 1.3rem;
    }
  }

  & .time {
    background: #fff;
    color: var(--main-color);
    border-radius: 30px;
    font-size: 1.4rem;
    padding: 0.2em 1em;
  }
}

.search-box {
  position: relative;
  margin-bottom: 2em;

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

  & #search-txt {
    background: #fff;
    border-radius: 50px;
    border: 1px solid var(--base-color);
    padding: 1rem 2rem;

    @media screen and (min-width: 1025px) {
      width: 400px;
    }
  }

  & #s-btn-area {
    position: absolute;
    right: 0.8rem;
    top: 0.6rem;
    background: var(--base-color);
    width: 39px;
    height: 32px;
    border-radius: 20px;
    padding: 1rem;

    @media screen and (min-width: 1025px) {
      width: auto;
      height: auto;
      border-radius: 50px;
      padding: 0.5rem 2rem;
    }

    & span {
      width: 16px;
      height: auto;

      @media screen and (min-width: 1025px) {
        width: auto;
        color: #fff;
        font-size: 1.5rem;
      }
    }
  }
}
.btn_search {
  background: var(--base-color);
  width: 40px;
  height: 40px;
  border-radius: 20px;
  padding: 1rem;
  cursor: pointer;
}
.input_search {
  position: absolute;
  top: 3em;
  right: -100%;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 10;

  &.is_open {
    right: 0;
    visibility: visible;
    opacity: 1;
  }
}

.header-link {
  margin-bottom: 2em;

  & .linklist01 {
    margin-bottom: 0.5em;

    & li {
      & a {
        position: relative;
        display: block;
        padding: 0.2em 0 0.2em 1.3em;
        color: var(--base-color);
        font-size: 1.1em;
        font-weight: bold;

        &::before {
          content: "";
          position: absolute;
          left: 0;
          top: 50%;
          width: 15px;
          height: 15px;
          transform: translateY(-50%);
          border-radius: 50%;
          background-color: var(--main-color);
          z-index: 1;
          transition: 0.3s;
        }
        &::after {
          content: "";
          position: absolute;
          left: 3.3px;
          top: 50%;
          width: 6px;
          height: 6px;
          border-top: 1.5px solid #fff;
          border-right: 1.5px solid #fff;
          transform: translateY(-50%) rotate(45deg);
          z-index: 2;
        }
      }
    }
  }
  & .linklist02 {
    & li {
      & a {
        position: relative;
        display: block;
        padding: 0.2em 0 0.2em 1.3em;
        color: var(--base-color);

        &::before {
          content: "";
          position: absolute;
          left: 0;
          top: 50%;
          width: 12px;
          height: 12px;
          transform: translateY(-50%);
          border-radius: 50%;
          background-color: var(--main-color);
          z-index: 1;
          transition: 0.3s;
        }
        &::after {
          content: "";
          position: absolute;
          left: 3.5px;
          top: 50%;
          width: 4px;
          height: 4px;
          border-top: 1.5px solid #fff;
          border-right: 1.5px solid #fff;
          transform: translateY(-50%) rotate(45deg);
          z-index: 2;
        }
      }
    }
  }
}

.jcqhc {
  display: flex;
  flex-direction: row-reverse;

  & a {
    width: 75px;

    & img {
      width: 100%;
      height: auto;
    }
  }
}

/* ============================================================ */
/* 追従ボタン */
/* ============================================================ */
.fix-btn {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -2px;
  z-index: 99;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0 0.3em;

  @media screen and (min-width: 1025px) {
    left: unset;
    right: -2px;
    bottom: unset;
    top: 210px;
    flex-direction: column;
    gap: 0.5em 0;
  }
}
.fix-btn-item {
  & a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    font-weight: bold;
    border: 2px solid var(--kakeyu-color);
    border-radius: 10px 10px 0 0;
    padding: 0.7em 1em;
    font-size: 1.4rem;

    @media screen and (min-width: 1025px) {
      justify-content: flex-start;
      border-radius: 50px 0 0 50px;
      padding: 0.8em 1em 0.8em 1.5em;
      font-size: 1.6rem;
      line-height: 2.1rem;
    }

    &:hover {
      opacity: 1;
    }
  }

  & .fix-btn-icon {
    transition: all 0.3s ease-in-out;
  }

  &.calendar a {
    background: #fff;
    color: var(--kakeyu-color);

    &:hover {
      background: var(--kakeyu-color);
      color: #fff;
    }

    & .fix-btn-icon {
      color: var(--kakeyu-color);
    }
    &:hover .fix-btn-icon {
      color: #fff;
    }
  }
  &.rehab a {
    background: var(--kakeyu-color);
    color: #fff;

    &:hover {
      background: #fff;
      color: var(--kakeyu-color);
    }

    & .fix-btn-icon {
      color: #fff;
    }
    &:hover .fix-btn-icon {
      color: var(--kakeyu-color);
    }
  }
}

.fix-btn-icon {
  display: inline-block;
  width: 20px;
  height: 20px;

  @media screen and (min-width: 1025px) {
    width: 40px;
    height: 40px;
  }
}

.fix-btn-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ============================================================ */
/* common content / utility */
/* ============================================================ */
.content {
  width: 100%;
  position: relative;
  margin: 0 auto;
}
.bg_color {
  background: var(--pale-color);
}
section {
  background: #fff;
}
.txt {
  font-size: 1.6rem;
  font-weight: 400;
}
.img_100 {
  margin: 2em 0;
}

/* ============================================================ */
/* ttl */
/* ============================================================ */
.font_m {
  font-size: 1.8rem;
  margin-bottom: 0.3em;
  @media screen and (min-width: 1025px) {
    font-size: 2rem;
  }
}
.font_l {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 1em;
  line-height: 1.4;
  @media screen and (min-width: 1025px) {
    font-size: 2.4rem !important;
  }
  & .en {
    display: block;
    color: var(--theme-color);
    font-size: 1.4rem;
  }
}
.font_ll {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--theme-color);
  margin-bottom: 1em;
  @media screen and (min-width: 1025px) {
    font-size: 2.8rem;
  }
}

.dot_ttl {
  position: relative;
  font-size: 1.6rem;
  padding-left: 1em;
  &::before {
    position: absolute;
    content: "";
    background-color: var(--main-color);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: 0;
    top: 12px;
  }
}

/* お知らせ一覧 */

/* トップページ用 */
.top_news {
  background: var(--deep-color);

  .theme-top &,
  .theme-center & {
    background: var(--sub-color);
  }
}

/* 共通 */
.news_list_box {
  & .news_ttl {
    font-size: 1em;
    width: calc(100% - 1em);
    padding-top: 0.1em;
    padding-left: 1.5em;
    line-height: 1.5;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      width: 12px;
      height: 12px;
      transform: translateY(-50%);
      border-radius: 50%;
      background-color: var(--theme-color);
      z-index: 1;
    }
    &::after {
      content: "";
      position: absolute;
      left: 3.5px;
      top: 50%;
      width: 4px;
      height: 4px;
      border-top: 1.5px solid #fff;
      border-right: 1.5px solid #fff;
      transform: translateY(-50%) rotate(45deg);
      z-index: 2;
    }
  }
  & .news_list {
    position: relative;
    & a {
      padding: 0.8em 0;
      @media screen and (min-width: 1025px) {
        padding: 1em 0;
      }
    }
  }
}

/* 背景を暗くするレイヤーの設定 */
#nav-overlay {
  @media screen and (min-width: 1025px) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* 暗さの度合い（0.5 = 50%） */
    z-index: 90; /* ナビゲーション（z-index: 100）より下に配置 */
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    pointer-events: none; /* 下のコンテンツをクリックできるようにする場合は調整 */
  }
}

/* メニューが開いている時に動くクラス */
#nav-overlay.is-active {
  @media screen and (min-width: 1025px) {
    opacity: 1;
    visibility: visible;
  }
}

.news-faci-list {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  flex-wrap: wrap;
  margin-bottom: 1em;

  & li {
    width: calc(50% - 0.25em);

    @media screen and (min-width: 1025px) {
      width: calc(24% - 0.25em);
    }

    &.kakeyu a {
      color: var(--kakeyu-color);
      &:hover {
        background-color: var(--kakeyu-color);
      }
      @media screen and (min-width: 1025px) {
        border-color: var(--kakeyu-color);
      }
    }
    &.houden a {
      color: var(--houden-color);
      &:hover {
        background-color: var(--houden-color);
      }
      @media screen and (min-width: 1025px) {
        border-color: var(--houden-color);
      }
    }
    &.izumino a {
      color: var(--izumino-color);
      &:hover {
        background-color: var(--izumino-color);
      }
      @media screen and (min-width: 1025px) {
        border-color: var(--izumino-color);
      }
    }
    &.home-care a {
      color: var(--home-care-color);
      &:hover {
        background-color: var(--home-care-color);
      }
      @media screen and (min-width: 1025px) {
        border-color: var(--home-care-color);
      }
    }
  }
  & a {
    display: block;
    text-align: center;
    padding: 0.3em 1em;
    background: #fff;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.3rem;

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

    &:hover {
      color: #fff !important;
      opacity: 1;
    }
  }
}

/* ============================================================ */
/* layout - flx_box */
/* ============================================================ */
.flx_box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1em;
}

.flx_2cols .flx_item {
  width: 100%;
  margin-bottom: 1em;
  @media screen and (min-width: 480px) {
    width: calc(100% / 2 - 0.5em);
    margin: 0 1em 1em 0;
    &:nth-child(2n) {
      margin-right: 0;
    }
  }
  @media screen and (min-width: 768px) {
    width: calc(100% / 2 - 1em);
    margin: 0 2em 2em 0;
    &:nth-child(2n) {
      margin-right: 0;
    }
  }
}

.flx_3cols .flx_item {
  @media screen and (min-width: 480px) {
    width: calc(100% / 3 - 0.5em);
    margin: 0 0.5em 1em 0;
    &:nth-child(3n) {
      margin-right: 0;
    }
  }
  @media screen and (min-width: 768px) {
    width: calc(100% / 3 - 1em);
    margin: 0 1em 2em 0;
    &:nth-child(3n) {
      margin-right: 0;
    }
  }
}

/* ============================================================ */
/* mainvisual & swiper */
/* ============================================================ */
.mainvisual {
  position: relative;
}

.mv-slider img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 20% 90%;
  @media screen and (min-width: 600px) {
    height: 70vh;
  }
}

.mv-content-overlay {
  background: var(--pale-color);
  padding: 2em 0;

  @media screen and (min-width: 1025px) {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline;
    z-index: 100;
    background: rgba(var(--pale-color-rgb), 0.95);
    border-top-left-radius: 40px;
    padding: 2.5em 1.5em;
  }

  & .catch {
    color: var(--theme-color);
    font-size: 1.9rem;
    margin-bottom: 0.5em;

    @media screen and (min-width: 1025px) {
      font-size: 2.8rem;
    }
  }
}
.top-summary {
  background: var(--pale-color);
  font-size: 1.5rem;
  padding: 1.5em 0 3em;

  @media screen and (min-width: 1025px) {
    padding: 5em 0 5em;
  }
}

/* ============================================================ */
/* tabs */
/* ============================================================ */
.tab_btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 0.5em;
  margin-bottom: 0.5em;

  @media screen and (min-width: 768px) {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-bottom: 5px;
  }
  & a {
    width: calc(100% / 2 - 0.5em);
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--theme-color);
    text-align: center;
    background: var(--pale-color);
    border-radius: 12px;
    padding: 0.5em;
    display: flex;
    align-items: center;
    gap: 0.7em;
    border: 2px solid var(--pale-color);

    @media screen and (min-width: 768px) {
      width: 100%;
      font-size: 1.3rem;
      border: none !important;
      border-radius: 12px 12px 0 0;
      flex-direction: column;
      gap: 0.5em;
      padding: 1em 0.5em 0.5em;
      color: var(--base-color);
      &::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 5px;
        bottom: 0;
        left: 0;
        background: var(--pale-color);
        transition: all 0.3s ease-in-out;
      }
    }

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

    &.active,
    &:hover {
      background: #fff;
      border: 2px solid var(--theme-color);
      opacity: 1;

      @media screen and (min-width: 768px) {
        color: var(--theme-color);
        position: relative;

        &::before {
          bottom: -5px;
          background: #fff;
        }
      }
    }
  }
}

.tab_box {
  display: none;
  background: #fff;
  padding: 1em 1.5em;
  border-radius: 12px;

  @media screen and (min-width: 768px) {
    border-radius: 0 0 12px 12px;
  }

  &.is-active {
    display: block;
  }
}

/* タブアイコン全体のサイズ調整 */
.tab_btn-fig {
  width: 30px; /* デザインに合わせて調整 */
  height: 30px;

  @media screen and (min-width: 1025px) {
    margin: 0 auto 5px; /* アイコンを中央寄せ、テキストとの間隔 */
    width: 60px;
    height: 60px;
  }
}

.tab_btn-fig svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* アイコンの色制御 */
.tab_btn a .tab_btn-fig {
  /* 施設ごとのテーマカラー（--color-primary）を適用 */
  color: var(--theme-color);
  transition: color 0.3s ease;
}

/* アクティブなタブやホバー時の色を変えたい場合 */
.tab_btn a.active .tab_btn-fig,
.tab_btn a:hover .tab_btn-fig {
  /* アクティブ時は色を濃くしたり、白抜きにしたりする場合はここで調整 */
  /* color: #333; */
}

/* ============================================================ */
/* news */
/* ============================================================ */
/* お知らせエリア全体 */
.news_list a {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
  text-decoration: none;
  color: var(--base-color);
  transition: background 0.3s;

  @media screen and (min-width: 768px) {
    align-items: flex-start;
  }
}
.top_news .news_list:last-child a {
  border-bottom: none;
}

/* 左側：日付と施設ラベルのエリア */
.news_info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 0.1em;
  min-width: 280px; /* 総合トップでのラベル表示幅を確保 */
}

@media screen and (min-width: 768px) {
  .news_info {
    margin-bottom: 0;
  }
}

.news_info .date {
  font-weight: 500;
  font-size: 1.1rem;

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

/* 右側：タイトルとアイコンのエリア */
.news_body {
  display: flex;
  flex-direction: column;
  width: 100%;

  @media screen and (min-width: 1025px) {
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-direction: row-reverse;
    width: 100%;
  }
}

.news_ttl {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: bold;
  margin: 0;
}

/* 施設ラベル（総合トップのみ表示される想定） */
.facility_label {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 12px;
  color: #fff;
  font-weight: normal;
  margin: 0 0.3em;
}

/* 施設ごとの背景色 */
.facility_label.kakeyu {
  background-color: var(--kakeyu-color);
}
.facility_label.houden {
  background-color: var(--houden-color);
}
.facility_label.izumino {
  background-color: var(--izumino-color);
}
.facility_label.home-care {
  background-color: var(--home-care-color);
}

/* 各施設ページでのメインカラー定義（bodyクラスを利用） */
body.theme-kakeyu {
  --color-primary: var(--kakeyu-color);
}
body.theme-houden {
  --color-primary: var(--houden-color);
}
body.theme-izumino {
  --color-primary: var(--izumino-color);
}
body.theme-home-care {
  --color-primary: var(--home-care-color);
}
body.theme-top,
body.theme-center {
  --color-primary: #3a71a9;
} /* 総合のデフォルト色 */

/* アイコンを囲むスパン */
.news_category_icons {
  display: flex;
  gap: 5px; /* モバイル時のラベル間隔 */
  flex-shrink: 0;

  .svg_icon_wrapper {
    display: inline-block;
    color: var(--theme-color);
    transition: color 0.3s ease;
    line-height: 1;

    /* --- 1024px以下（デフォルト）：テキストラベル表示 --- */
    svg {
      display: none; /* SVGを隠す */
    }

    &::after {
      display: inline-block;
      content: attr(data-label); /* PHPのdata-labelを表示 */
      font-size: 11px;
      padding: 5px 8px;
      border-radius: 12px;
      background-color: var(--pale-color);
      font-weight: bold;
      white-space: nowrap;
    }

    /* --- 1025px以上：アイコン表示へ切り替え --- */
    @media screen and (min-width: 1025px) {
      width: 40px;
      height: 40px;
      background: var(--pale-color);
      padding: 0.4em;
      border-radius: 30px;

      svg {
        display: block; /* SVGを表示 */
        width: 100%;
        height: 100%;
      }

      &::after {
        display: none; /* テキストラベルを隠す */
      }
    }
  }
}

.important-wrap {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid #d53636; /* 重要カラー */
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 40px;

  @media screen and (min-width: 1025px) {
    flex-direction: row;
  }
}

.im-ttl {
  background: #d53636;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.6rem;
  padding: 0.3em 0;

  @media screen and (min-width: 1025px) {
    writing-mode: vertical-rl; /* 縦書き */
    letter-spacing: 0.2em;
    width: 60px;
  }
}

.im-list-wrap {
  flex: 1;
  padding: 10px 20px;
}

/* ============================================================ */
/* contents */
/* ============================================================ */
.top-summary-text {
  line-height: 2em;

  @media screen and (min-width: 1025px) {
    text-align: center;
    font-size: 1.7rem;
  }
}

.top_facility {
  background: var(--pale-color);
}

.top_map {
  background: var(--sub-color);

  & .map_frame {
    aspect-ratio: 16 / 9;

    & iframe {
      width: 100%;
      height: 100%;
    }
  }
}

.top_faci-info {
  background: var(--pale-color);
}
.faci_info_layout {
  width: 100%; /* これが重要：innerの幅を超えないようにする */
  box-sizing: border-box;

  /* 列の箱 */
  .faci_info_col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%; /* 中身の幅を親に合わせる */
    min-width: 0; /* Grid内での予期せぬ幅肥大化を防ぐおまじない */
  }

  .info_card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5em;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1em;

    @media screen and (min-width: 1025px) {
      padding: 2.5em;
      margin-bottom: 0;
    }
  }

  /* --- PCサイズ（1025px以上） --- */
  @media screen and (min-width: 1025px) {
    display: grid;
    grid-template-columns: 1fr; /* デフォルト（スマホ）は1列 */
    gap: 20px;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;

    &.is-kakeyu {
      /* エリアの定義：accessが右側で2行分(row)占有する */
      grid-template-areas:
        "facility access"
        "visitation      visitation";

      .card-visitation {
        grid-area: visitation;
      }
      .card-access {
        grid-area: access;
      }
      .card-facility {
        grid-area: facility;
      }

      /* アクセスのカードの中身を縦いっぱいに広げる設定 */
      .card-access {
        height: 100%;
        display: flex;
        flex-direction: column;
      }

      /* マップエリアを flexible にして、余った高さを埋めるようにする */
      .card-access .map_area {
        flex: 1; /* これで住所やボタンを下に押し出し、高さを自動調整します */
        min-height: 200px; /* 最低限の高さ */
        aspect-ratio: auto; /* 高さが可変になるので固定比率を解除 */
      }
    }

    &.is-izumino {
      /* エリアの定義：accessが右側で2行分(row)占有する */
      grid-template-areas:
        "visitation access"
        "facility   access"
        "rehab      rehab";

      .card-visitation {
        grid-area: visitation;
      }
      .card-facility {
        grid-area: facility;
      }
      .card-access {
        grid-area: access;
      }
      .card-rehab {
        grid-area: rehab;
      }

      /* アクセスのカードの中身を縦いっぱいに広げる設定 */
      .card-access {
        height: 100%;
        display: flex;
        flex-direction: column;
      }

      /* マップエリアを flexible にして、余った高さを埋めるようにする */
      .card-access .map_area {
        flex: 1; /* これで住所やボタンを下に押し出し、高さを自動調整します */
        min-height: 200px; /* 最低限の高さ */
        aspect-ratio: auto; /* 高さが可変になるので固定比率を解除 */
      }
    }
  }
}

/* ★下段の通所リハビリカード（rehab） */
.rehab_card {
  /* PCでは2列分を占有（全幅） */
  @media screen and (min-width: 1025px) {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 10px; /* 左右カラムとの間隔調整 */
  }
}

/* マップエリア */
.map_area {
  aspect-ratio: 16 / 9;
  max-width: 100%;
  margin-bottom: 1em;
  overflow: hidden;

  iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
  }
}

/* 外来診療情報 */
.clinic_tags {
  margin-bottom: 1em;
  padding: 1em 0;
  border-top: 2px solid var(--pale-color);
  border-bottom: 2px solid var(--pale-color);

  ul {
    display: grid;
    /* 基本は3列（スマホでは1列〜2列にするのが一般的です） */
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0;
    list-style: none;

    @media screen and (max-width: 767px) {
      grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
    }
  }

  li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2em 1em;
    border: 2px solid var(--theme-color); /* 施設カラー */
    color: var(--theme-color);
    font-weight: bold;
    font-size: 1.4rem;
    text-align: center;
    background: #fff;
    border-radius: 4px; /* 必要に応じて */

    /* 2カラム（または全幅）にしたい項目 */
    &.is-fullwidth {
      grid-column: span 2; /* 2列分を占有 */

      /* もし「リハビリテーション科」のように極端に長いなら全幅（3列分）でもOK */
      /* grid-column: 1 / -1; */
    }
  }
}

.hours_info {
  margin-bottom: 1em;
}
.hours_info-list {
  margin-bottom: 1em;

  li {
    font-weight: bold;
    padding-left: 1em;
    position: relative;

    &::before {
      position: absolute;
      content: "";
      width: 10px;
      height: 10px;
      left: 0;
      top: 0.7em;
      border-radius: 5px;
      background: var(--theme-color);
    }
  }
  span {
    font-weight: normal;
    font-size: 1.5rem;
  }
}

.closed_days {
  font-size: 1.4rem;
}

.map_area {
  aspect-ratio: 16 / 9; /* 4/3より少し横長の方が収まりが良いかもしれません */
  max-width: 100%;
  margin-bottom: 1em;
  overflow: hidden; /* はみ出し防止 */

  iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
  }
}

/* ============================================================ */
/* banner */
/* ============================================================ */
.banner_area {
  display: flex;
  flex-direction: column;
  gap: 0.5em;

  @media screen and (min-width: 768px) {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 1.5em 2%;

    & li {
      width: 32%;
    }
  }
}

/* ============================================================ */
/* footer */
/* ============================================================ */
.main-footer {
  width: 100%;
  background: #fff;
  padding: 4em 0 4em;
  border-top: 4px solid var(--theme-color);
  position: relative;

  & .page_top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    transform: translateY(-50%);

    @media screen and (min-width: 1025px) {
      justify-content: flex-end;
    }

    & a {
      font-size: 1.5rem;
      font-weight: bold;
      position: relative;
      background: #fff;
      padding: 0.7em 2.5em 0.7em 3.5em;
      border-radius: 50px;
      box-shadow: 2px 4px 8px rgba(69, 50, 17, 0.15);

      @media screen and (min-width: 1025px) {
        padding: 0.7em 1.5em 0.7em 3.5em;
        border-top-left-radius: 50px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 50px;
      }

      &:hover {
        opacity: 1;
        box-shadow: 0px 0px 8px rgba(69, 50, 17, 0.3);
      }

      &::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 50%;
        width: 30px;
        height: 30px;
        transform: translateY(-50%);
        border-radius: 50%;
        background-color: var(--theme-color);
        z-index: 1;
      }
      &::after {
        content: "";
        position: absolute;
        left: 20px;
        top: calc(50% - -2px);
        width: 10px;
        height: 10px;
        border-top: 1.5px solid #fff;
        border-right: 1.5px solid #fff;
        transform: translateY(-50%) rotate(-45deg);
        z-index: 2;
      }
    }
  }

  & .hsptl-box {
    @media screen and (min-width: 1025px) {
      display: flex;
      justify-content: space-between;
    }
  }
  & .site-info {
    @media screen and (min-width: 1025px) {
      width: 60%;
    }
  }
  & .hsptl-info {
    @media screen and (min-width: 1025px) {
      width: 40%;
    }
  }

  & .footer_logo {
    width: 330px;
    margin: 0 auto 1em;
    @media screen and (min-width: 1025px) {
      width: 100%;
    }
    & a {
      display: flex;

      @media screen and (min-width: 1025px) {
        gap: 1em;
      }
    }
    & img {
      width: 50px;

      @media screen and (min-width: 1025px) {
        width: 80px;
        margin: 0;
      }
    }
    & .faci-name p {
      display: block;
    }
    & .small {
      font-size: 1.1rem;
      line-height: 1.3em;

      @media screen and (min-width: 1025px) {
        font-size: 1.2rem;
      }
    }
    & .middle {
      color: var(--theme-color);
      font-size: 1.3rem;
      font-weight: bold;
      line-height: 1.3em;

      @media screen and (min-width: 1025px) {
        font-size: 1.5rem;
      }
    }
    & .name {
      color: var(--theme-color);
      font-weight: bold;
      font-size: 2rem;
      line-height: 1.5em;

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

      & span {
        font-size: 1.6rem;
      }
    }
  }
  & .footer_contact {
    font-size: 1.2rem;
    margin-bottom: 1em;
    text-align: center;

    @media screen and (min-width: 1025px) {
      text-align: left;
      font-size: 1.4rem;
      margin-bottom: 2em;
    }
  }
  & .mark-img {
    width: 190px;
    margin: 0 auto 0.5em;

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

  & .copy {
    text-align: center;
    font-size: 1rem;
    @media screen and (min-width: 768px) {
      font-size: 1.2rem;
    }
    @media screen and (min-width: 1025px) {
      text-align: left;
    }
  }

  & .ft-link {
    display: flex;
    gap: 2em;
    justify-content: space-between;
  }
  & .ft-link-list {
    @media screen and (min-width: 1025px) {
      display: flex;
      flex-wrap: wrap;
      gap: 0em 1em;

      & a {
        font-size: 1.5rem;
        padding-left: 1em;
        display: block;
        position: relative;

        &::before {
          position: absolute;
          content: "";
          width: 8px;
          height: 8px;
          border-radius: 10px;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          background: var(--main-color);
        }
      }
    }
  }
}

/* ============================================================ */
/* font_btn (Accessibility) */
/* ============================================================ */
.font_btn {
  @media screen and (min-width: 1025px) {
    background-color: #fff;
    color: var(--base-color);
    border-radius: 10px;
    padding: 0 1em;
    display: flex;
    align-items: center;
    & span,
    & button {
      font-size: 1.1rem;
    }
    & button {
      font-weight: 700;
      &:nth-of-type(1) {
        font-size: 14px;
        margin: 0 0.5em;
        padding: 0 0.8em;
        position: relative;

        &::before,
        &::after {
          content: "|";
          position: absolute;
          color: var(--pale-color);
        }
        &::before {
          left: 0;
        }
        &::after {
          right: 0;
        }
      }
      &:nth-of-type(2) {
        font-size: 18px;
      }
    }
  }
}
/* ------------------------------------------------------------ */
/* form  */
/* ------------------------------------------------------------ */
.form_box {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.form_box .wpcf7-spinner {
  display: none;
}
.form_box .hissu {
  display: inline-block;
  padding: 5px;
  margin: 0 5px;
  font-size: 0.8em;
  line-height: 1;
  color: #fff;
  background: var(--main-color);
}
.form_box dl {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1em 0;
}
.form_box dt {
  width: 100%;
  font-weight: bold;
  padding: 5px 0;
  @media screen and (min-width: 480px) {
    width: 25%;
    padding-right: 1em;
  }
}
.form_box dd {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  @media screen and (min-width: 480px) {
    width: 75%;
  }
}
.form_box span {
  display: inline-block;
  margin: 0 5px;
}
.form_box .wpcf7-form-control-wrap {
  width: 100%;
}
.form_box .wpcf7-acceptance {
  margin-bottom: 10px;
}
.form_box .note {
  padding: 5px;
  font-size: 0.8em;
  color: var(--main-color);
  letter-spacing: 0;
}
.form_box input[type="tel"],
.form_box input[type="text"],
.form_box input[type="email"],
.form_box select,
.form_box textarea {
  border: 1px solid #bfbfbf;
  vertical-align: middle;
}
.form_box input[type="text"].sizeS {
  width: 40%;
  max-width: 150px;
}
.form_box label.select {
  width: 100%;
  position: relative;
}
.form_box label.select::before {
  content: "▼";
  display: block;
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
  font-size: 0.7em;
}
.form_box label.select select {
  padding-right: 2em;
}
.form_box label.check,
.form_box label.radio {
  display: inline-block;
  margin-right: 1em;
}
.submit-item {
  text-align: center;
  padding: 2em 0;
}
.submit-item input[type="button"],
.submit-item input[type="reset"],
.submit-item input[type="back"],
.submit-item input[type="submit"] {
  font-weight: bold;
  display: inline-block;
  letter-spacing: 0.075em;
  min-width: 200px;
  color: #fff;
  background: var(--main-color);
  border: 2px solid var(--main-color);
  margin: 0 auto;
  padding: 12px 1em;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.submit-item input[type="button"]:hover,
.submit-item input[type="reset"]:hover,
.submit-item input[type="back"]:hover,
.submit-item input[type="submit"]:hover {
  background: #fff;
  color: var(--main-color);
}
.submit-item input[type="submit"] {
  margin-bottom: 0.5em;
}
.submit-item input[type="submit"]:disabled,
.submit-item input[type="submit"]:disabled:hover {
  background: #808080;
  border: 2px solid #808080;
  color: #fff;
}
