@charset "utf-8";

.haebaru-page {
  --green: #20ad3b;
  --pale: #f8f7e7;
  color: #222;
}
.haebaru-page *,
.haebaru-page *::before,
.haebaru-page *::after {
  box-sizing: border-box;
}
.haebaru-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.haebaru-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 768px) {
  .haebaru-page .haebaru-hero {
    height: min(25vw, 500px) !important;
  }

  .haebaru-page .haebaru-hero > img {
    display: block;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
  }
}
.haebaru-hero__inner {
  position: absolute;
  z-index: 1;
  top: 62%;
  right: 0;
  bottom: auto;
  left: 0;
  width: 90%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
  transform: translateY(-50%);
}
.haebaru-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.haebaru-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 55px;
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
.haebaru-side {
  border-right: 1px solid #b9d9bb;
  padding-top: 90px;
}
.haebaru-side nav {
  position: sticky;
  top: 160px;
}

@media (max-width: 1333px) and (min-width: 768px) {
  .haebaru-side nav {
    top: 120px;
  }
}
.haebaru-side a {
  display: block;
  padding: 18px 20px;
  font-size:115%;
  color: #222;
  font-weight: 600;
  text-decoration: none;
}
.haebaru-side a.is-current,
.haebaru-side a:hover {
  background: #e7f3e1;
  color: #158c2b;
}
.haebaru-main {
  min-width: 0;
  padding-bottom: 110px;
}
.haebaru-section {
  padding-top: 70px;
  scroll-margin-top: 90px;
}
.haebaru-heading {
  width: 260px;
  margin: 0 auto 45px;
  text-align: center;
  font-weight: 400;
}
.haebaru-heading span {
  display: block;
  padding: 8px 16px;
  background:#22ac38;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}
.haebaru-heading small {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.22em;
}
.haebaru-lead {
/*  max-width: 760px;*/
  margin: -10px auto 32px;
  text-align: center;
  line-height: 2;
}
.haebaru-news__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.haebaru-news__all-link {
  color: #168e2a;
  font-size: 13px;
  text-decoration: none;
}

.haebaru-news__category-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.haebaru-news__category-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 6px 14px;
  border-radius: 100px;
  background: #a6ada7;
  color: #fff !important;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.haebaru-news__category-link:hover {
  background: #168e2a;
  color: #fff;
}
.haebaru-news__list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #bfd7c2;
  list-style: none;
}
.haebaru-news__list li {
  border-bottom: 1px solid #bfd7c2;
}
.haebaru-news__list a {
  display: grid;
  grid-template-columns: 115px 90px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 18px 8px;
  color: #222;
  text-decoration: none;
}
.haebaru-news__cat {
  padding: 4px 8px;
  border-radius: 20px;
  background: #a6ada7;
  color: #fff;
  font-size: 11px;
  text-align: center;
}
.haebaru-news__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.haebaru-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 18px;
}
.haebaru-feature img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  border-radius: 12px;
}
.haebaru-feature h3 {
  margin: 12px 0 5px;
  font-size: 16px;
}
.haebaru-feature p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}
.haebaru-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: 30px;
}
.haebaru-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.7;
}
.haebaru-table th,
.haebaru-table td {
  padding: 12px 5px;
  border-bottom: 1px dotted #aaa;
  text-align: left;
  vertical-align: top;
}
.haebaru-table th {
  width: 95px;
  white-space: nowrap;
}
.haebaru-info-grid__image {
  width: 100%;
  border-radius: 12px;
}
.haebaru-map {
  min-height: 380px;
  object-fit: cover;
}
.haebaru-map-link {
  display: block;
  width: max-content;
  margin: 22px 0 0 auto;
  padding: 7px 15px;
  border: 1px solid #69bd78;
  color: #39a54d;
  font-size: 12px;
  text-decoration: none;
}
.haebaru-wide-inner {
  width: 90%;
  max-width: 950px;
  margin: auto;
}
.haebaru-contact {
  padding: 65px 0 80px;
  background:#fffeee;
  scroll-margin-top: 90px;
}
.haebaru-contact .haebaru-heading {
  margin-bottom: 40px;
}
.haebaru-contact__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.haebaru-contact__buttons > a {
  min-height: 125px;
  border: 1px solid #a6cfa8;
  border-radius: 12px;
  background: #fff;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-decoration: none;
}
.haebaru-contact__buttons strong {
  color: var(--green);
  font-size: 42px;
}
.haebaru-contact__buttons strong img {
  width:50px;
}
.haebaru-contact__buttons b {
  display: block;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.haebaru-contact__buttons small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.haebaru-recruit {
  padding: 75px 0;
}
.haebaru-recruit a {
  display: flex;
  min-height: 185px;
  align-items: center;
  justify-content: space-between;
  padding: 40px 55px;
  border-radius: 0 22px 22px 22px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
}
.haebaru-recruit b,
.haebaru-recruit small,
.haebaru-recruit em {
  display: block;
  font-style: normal;
}
.haebaru-recruit b {
  font-size: 22px;
}
.haebaru-recruit small {
  font-size: 9px;
}
.haebaru-recruit em {
  margin-top: 25px;
  font-size: 15px;
}
.haebaru-recruit strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 20px;
}

@media (max-width: 767px) {
  .haebaru-hero {
    height: 250px;
  }
  .haebaru-layout {
    display: block;
    width: 90%;
  }
  .haebaru-side {
    border: 0;
    padding: 25px 0 0;
  }
  .haebaru-side nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #cfe5d1;
  }
  .haebaru-side a {
    padding: 10px 8px;
    background: #f5faf4;
    font-size: 12px;
    text-align: center;
  }
  .haebaru-main {
    padding-bottom: 60px;
  }
  .haebaru-section {
    padding-top: 55px;
  }
  .haebaru-heading {
    width: 230px;
    margin-bottom: 32px;
  }
  .haebaru-heading span {
    font-size: 20px;
  }
  .haebaru-news__list a {
    grid-template-columns: 90px 1fr;
    gap: 8px;
  }
  .haebaru-news__cat {
    width: max-content;
  }
  .haebaru-news__title {
    grid-column: 1/-1;
    white-space: normal;
  }
  .haebaru-features {
    grid-template-columns: 1fr 1fr;
    gap: 28px 14px;
  }
  .haebaru-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  #outline .haebaru-info-grid__image {
    order: -1;
  }
  .haebaru-map {
    min-height: 300px;
  }
  .haebaru-contact__buttons {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .haebaru-recruit {
    padding: 45px 0;
  }
  .haebaru-recruit a {
    min-height: 150px;
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .haebaru-hero {
    height: 250px;
  }
  .haebaru-hero h1 {
    font-size: 22px;
  }
  .haebaru-features {
    grid-template-columns: 1fr;
  }
  .haebaru-feature h3 {
    font-size: 15px;
  }
  .haebaru-feature p {
    font-size: 12px;
  }
  .haebaru-contact__buttons > a {
    min-height: 105px;
  }
  .haebaru-contact__buttons b {
    font-size: 18px;
  }
  .haebaru-recruit em {
    margin-top: 18px;
    font-size: 12px;
  }
}

/* 電話番号の受付時間 */
.haebaru-contact__buttons a .haebaru-contact__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 5px;
  margin-top: 5px;
  font-size: clamp(11px, 1.2vw, 16px);
  line-height: 1.6;
}

.haebaru-contact__buttons a .haebaru-contact__hours-label {
  display: block;
  white-space: nowrap;
}

.haebaru-contact__buttons a .haebaru-contact__hours-time {
  display: block;
  white-space: nowrap;
}

.haebaru-contact__buttons a .haebaru-contact__hours-time > span {
  display: block;
}

/* Googleマップ
------------------------------------------ */
.haebaru-page #access .googlemap-box {
  width: 100%;
}

.haebaru-page #access #google-map {
  width: 100%;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .haebaru-page #access #google-map {
    height: 300px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .haebaru-page #access #google-map {
    height: 240px;
  }
}

@media (max-width: 767px) {
  .haebaru-news__controls {
    align-items: flex-end;
    gap: 10px;
  }

  .haebaru-news__category-links {
    gap: 5px;
  }

  .haebaru-news__category-link {
    min-width: 62px;
    padding: 5px 10px;
    font-size: 10px;
  }
}
