@charset "UTF-8";

.hero-slider {
  margin: 0 0 30px
}

.hero-slider__inner {
  position: relative;
  width: 100%;
  max-width: 70rem;
  margin: 0 auto
}

.hero-slider__inner .swiper {
  width: 100%
}

.hero-slider__inner .swiper-wrapper {
  align-items: center
}

.hero-slider__inner .swiper:not(.swiper-initialized) .swiper-slide {
  margin-right: 10px
}

.campaign-slider:not(.swiper-initialized) .swiper-slide {
  margin-right: 10px
}

.topics-slider:not(.swiper-initialized) .swiper-slide {
  margin-right: 10px
}

.service-slider:not(.swiper-initialized) .swiper-slide {
  margin-right: 10px
}

.guide-slider:not(.swiper-initialized) .swiper-slide {
  margin-right: 10px
}

.pickup-slider:not(.swiper-initialized) .swiper-slide {
  margin-right: 10px
}

.hero-slider__inner .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(550px, calc(100% - 64px)) !important;
  aspect-ratio: 2 / 1;
  height: auto
}

.hero-slider__link {
  display: block;
  width: 100%;
  height: 100%
}

.hero-slider__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.6rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18)
}

.hero-slider__pagination {
  margin-top: 16px;
  text-align: center
}

.hero-slider__pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background-color: #ccc;
  opacity: 1
}

.hero-slider__pagination .swiper-pagination-bullet-active {
  background-color: var(--mac-red)
}

.hero-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .9);
  box-shadow: 0 0 8px rgba(0, 0, 0, .15);
  cursor: pointer
}

.hero-slider__nav--prev {
  left: 50px
}

.hero-slider__nav--next {
  right: 50px
}

.hero-slider__nav::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-top: 2px solid #666;
  border-right: 2px solid #666;
  transform: rotate(-135deg)
}

.hero-slider__nav--next::before {
  transform: rotate(45deg)
}

.home-latest-notice {
  margin: 0 0 40px
}

.home-latest-notice .contents-wrapper > div{
  border-radius: 8px;
  border: 1px solid #FAE0DC;
  /* ここがポイント */
  max-height: calc( (12px * 2 + 2.5em) * 3 + 24px ); /* ざっくり3件分 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.home-latest-notice__link {
  display: block;
  padding: 12px 21px;
  background-color: #fef7f7;
  text-decoration: none;
  box-sizing: border-box
}

.home-latest-notice__date {
  display: block;
  margin-bottom: 2px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #6C6C6C
}

.home-latest-notice__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  color: #333
}

.contents-wrapper--topics {
  max-width: 70rem;
  margin: 0 auto;
}

.contents-wrapper--topics .topics-slider {
  width: 100%;
  overflow: hidden;
  padding: 0
}

.home-topics {
  margin: 0 0 40px
}

.home-topics__title {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #333
}

.topics-slider {
  width: 100%
}

.topics-slider .swiper-slide {
  width: 252px !important
}

.topics-slider__slide {
  width: 252px
}

.topics-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit
}

.topics-card__thumb {
  width: 252px;
  height: 126px;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7
}

.topics-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.topics-card__title {
  margin: 0;
  font-size: 1.5rem;
  color: #333
}

.contents-wrapper--campaign {
  max-width: 70rem;
  margin: 0 auto
}

.contents-wrapper--campaign .campaign-slider {
  width: 100%;
  overflow: hidden;
  padding: 0
}

.home-campaign {
  margin: 0 0 40px
}

.home-campaign__title {
  margin: 0 0 20px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #333
}

.campaign-slider {
  width: 100%
}

.campaign-slider .swiper-slide {
  width: 252px !important
}

.campaign-slider__slide {
  width: 252px
}

.campaign-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit
}

.campaign-card__thumb {
  width: 252px;
  height: 126px;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7
}

.campaign-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.campaign-card__title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.45;
  color: #333
}

.contents-wrapper--service {
  max-width: 70rem;
  margin: 0 auto;
}

.home-service {
  margin: 0 0 40px
}

.home-service__title {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #333
}

.service-slider {
  width: 100%;
  overflow: hidden
}

.service-slider .swiper-slide {
  width: 200px !important
}

.service-slider__slide {
  width: 200px
}

.service-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit
}

.service-card__thumb {
  width: 200px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  background: #f7f7f7
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.service-card__title {
  margin: 0;
  font-size: 1.5rem;
  color: #333
}

.home-renewal {
  margin: 0 0 40px
}

.home-renewal__title {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  box-sizing: border-box
}

.home-renewal__list {
  box-sizing: border-box;
  border-top: 1px solid #EDEDED
}

.renewal-item {
  border-bottom: 1px solid #EDEDED
}

.renewal-item__link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px 0;
  text-decoration: none;
  color: inherit
}

.renewal-item__thumb {
  width: 120px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  background: #f7f7f7
}

.renewal-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.renewal-item__body {
  min-width: 0
}

.renewal-item__name {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.renewal-item__meta {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333
}

.renewal-item__meta time {
  font-weight: 500
}

.renewal-item__meta-text {
  margin-left: 6px
}

.home-grand-menu {
  margin: 0 0 40px
}

.home-grand-menu__title {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  box-sizing: border-box
}

.grand-menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  box-sizing: border-box
}

.grand-menu-card {
  flex: 1 1 calc((100% - 20px) / 3);
  min-width: 110px;
  max-width: var(--km-grandmenu-w);
  width: auto;
  height: auto;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px
}

.grand-menu-card__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 100 / 67;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7
}

.grand-menu-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.grand-menu-card__label {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #333;
  text-align: left
}

.contents-wrapper--guide {
  max-width: 70rem;
  margin: 0 auto;
}

.home-guide {
  margin: 0 0 40px
}

.home-guide__title {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #333
}

.guide-slider {
  width: 100%;
  overflow: hidden
}

.guide-slider .swiper-slide {
  width: 200px !important
}

.guide-slider__slide {
  width: 200px
}

.guide-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit
}

.guide-card__thumb {
  width: 200px;
  height: 128px;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7
}

.guide-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.guide-card__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: #333
}

.home-guide__cta {
  margin-top: 18px;
  text-align: center
}

.home-guide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #333;
  color: #333;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none
}

.home-guide__btn:focus-visible {
  outline: 2px solid rgba(216, 0, 20, .35);
  outline-offset: 3px
}

.contents-wrapper--pickup {
  max-width: 70rem;
  margin: 0 auto;
}

.home-pickup {
  margin: 0 0 40px
}

.home-pickup__title {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #333
}

.pickup-slider {
  width: 100%;
  overflow: hidden
}

.pickup-slider .swiper-slide {
  width: 180px !important
}

.pickup-slider__slide {
  width: 180px
}

.pickup-card {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit
}

.pickup-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #fff
}

.home-recruit {
  margin: 22px 0 40px
}

.home-recruit__title {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  box-sizing: border-box
}

.home-recruit__grid {
  display: flex;
  gap: 14px;
  box-sizing: border-box
}

.home-recruit__item {
  flex: 1;
  min-width: 0
}

.home-recruit-card {
  display: block;
  color: inherit;
  text-decoration: none
}

.home-recruit-card__thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 16 / 9;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .08)
}

.home-recruit-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover
}

.home-recruit-card__ph {
  width: 100%;
  height: 100%;
  background: #f3f3f3
}

.home-recruit-card__caption {
  margin: 10px 2px 0;
  font-size: 1.5rem;
  line-height: 1.4
}
@media (max-width:768px) {

  .contents-wrapper--topics,
  .contents-wrapper--campaign,
  .contents-wrapper--service,
  .contents-wrapper--guide,
  .contents-wrapper--pickup {
    padding-left: 18px
  }

  .hero-slider {
    padding: 16px 0 24px
  }

  .grand-menu-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px
  }

  .grand-menu-card {
    max-width: initial !important;
    width: 100% !important
  }

  .grand-menu-card__label {
    font-size: 1.3rem
  }
}

@media (max-width:520px) {
  .home-recruit__grid {
    flex-direction: column
  }

  .hero-slider__nav--prev {
    left: 8px
  }

  .hero-slider__nav--next {
    right: 8px
  }
}

:root {
  /* ▼ スライダー表示枚数調整（指定どおり） */
  /* 最新情報（topics）：2.5枚 → 2枚 */
  --km-topics-w: calc((100% - 10px) / 2);
  /* キャンペーン（未指定のため現状維持） */
  --km-campaign-w: clamp(200px, 70vw, 252px);
  /* サービス・設備：3.5枚 → 3枚 */
  --km-service-w: calc((100% - 20px) / 3);
  /* 各種ご案内：3.5枚 → 3枚 */
  --km-guide-w: calc((100% - 20px) / 3);
  /* ピックアップ：3.5枚 → 3枚 */
  --km-pickup-w: calc((100% - 20px) / 3);

  --km-grandmenu-w: clamp(110px, 30vw, 200px)
}

.topics-slider .swiper-slide,
.topics-slider__slide {
  width: var(--km-topics-w) !important
}

.topics-slider .topics-card__thumb {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 1
}

.topics-slider .topics-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.campaign-slider .swiper-slide,
.campaign-slider__slide {
  width: var(--km-campaign-w) !important
}

.campaign-slider .campaign-card__thumb {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 1
}

.campaign-slider .campaign-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.service-slider .swiper-slide,
.service-slider__slide {
  width: var(--km-service-w) !important
}

.service-slider .service-card__thumb {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 1
}

.service-slider .service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.guide-slider .swiper-slide,
.guide-slider__slide {
  width: var(--km-guide-w) !important
}

.guide-slider .guide-card__thumb {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 25 / 16
}

.guide-slider .guide-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.pickup-slider .swiper-slide,
.pickup-slider__slide {
  width: var(--km-pickup-w) !important
}

.pickup-slider .pickup-card {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1
}

.pickup-slider .pickup-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.grand-menu-grid {
  flex-wrap: wrap
}

.grand-menu-card {
  flex: 1 1 calc((100% - 20px) / 3);
  min-width: 110px;
  max-width: var(--km-grandmenu-w);
  width: auto
}

.grand-menu-card__thumb {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 100 / 67;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7
}

.grand-menu-card__thumb img,
.grand-menu-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}
/* === Swiper の%幅計算が効かない環境向け保険 === */
.topics-slider .swiper-wrapper,
.campaign-slider .swiper-wrapper,
.service-slider .swiper-wrapper,
.guide-slider .swiper-wrapper,
.pickup-slider .swiper-wrapper {
  width: 100%;
}
