body.service-modal-open {
  overflow:hidden
}

.service-hero {
  padding:46px 20px 36px;
  text-align:center;
  background:radial-gradient(circle at 15% 20%,rgba(138,189,104,.18),transparent 25%),radial-gradient(circle at 84% 70%,rgba(110,177,137,.14),transparent 28%),#f2f7ef
}

.service-hero__en {
  margin:0 0 8px;
  color:#6f9a55;
  font-size:12px;
  font-weight:bold;
  letter-spacing:.2em
}

.service-hero h1 {
  margin:0
}

.service-hero>p:last-child {
  max-width:820px;
  margin:14px auto 0;
  color:#5d675f;
  font-size:15px;
  line-height:1.9
}

.service-map-section {
  padding:36px 16px 72px;
  background:linear-gradient(180deg,#fffef9,#f5f8f1)
}

.service-map-section__inner {
  width:min(980px,100%);
  margin:0 auto
}

.service-map {
  position:relative;
  width:100%
}

.service-map__image {
  display:block;
  width:100%;
  height:auto;
  border-radius:24px;
  box-shadow:0 18px 44px rgba(54,79,56,.14)
}

.service-map-section__hint {
  margin-top:16px;
  color:#5e7652;
  font-size:14px;
  text-align:center
}

.service-hotspot {
  position:absolute;
  z-index:3;
  padding:0;
  background:transparent;
  border:0;
  border-radius:28px;
  cursor:pointer
}

.service-hotspot:before {
  content:"";
  position:absolute;
  inset:-4px;
  border:3px solid transparent;
  border-radius:inherit;
  transition:.22s
}

.service-hotspot:hover:before,.service-hotspot:focus-visible:before {
  border-color:rgba(255,255,255,.92);
  box-shadow:0 0 0 7px rgba(114,176,83,.22);
  transform:scale(1.02)
}

.service-hotspot:focus-visible {
  outline:none
}

.service-hotspot--consult {
  left: 5.2%;
  top: 15.0%;
  width: 28.5%;
  height: 9.2%;
}

.service-hotspot--guide {
  left: 65.8%;
  top: 19.1%;
  width: 29.2%;
  height: 9.4%;
}

.service-hotspot--day {
  left: 8.9%;
  top: 35.4%;
  width: 38.2%;
  height: 9.4%;
}

.service-hotspot--home {
  left: 60.3%;
  top: 42.7%;
  width: 30.7%;
  height: 9.7%;
}

.service-hotspot--shortstay {
  left: 4.6%;
  top: 62.6%;
  width: 30.0%;
  height: 11.2%;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.service-modal.open {
  opacity:1;
  visibility:visible
}

.service-modal__overlay {
  position:absolute;
  inset:0;
  background:rgba(16,34,23,.7);
  backdrop-filter:blur(8px)
}

.service-modal__warp {
  position:absolute;
  left:var(--warp-x,50%);
  top:var(--warp-y,50%);
  width:24px;
  height:24px;
  border-radius:50%;
  pointer-events:none;
  background:radial-gradient(circle,rgba(255,255,255,.98),rgba(164,224,132,.9) 30%,rgba(114,176,83,.38) 58%,transparent 72%);
  transform:translate(-50%,-50%) scale(0);
  opacity:0
}

.service-modal.open .service-modal__warp {
  animation:serviceWarp .72s ease-out forwards
}

@keyframes serviceWarp {
  18% {
    opacity:1
  }

  100% {
    transform:translate(-50%,-50%) scale(34);
    opacity:0
  }

}

.service-modal__panel {
  position: relative;
  z-index: 1;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fffefb;
  border-radius: 0;
  box-shadow: none;
  transform: scale(0.98);
  transition: transform 0.25s ease;
}

.service-modal.open .service-modal__panel {
  transform:scale(1)
}

.service-modal__close {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 10;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #ffffff;
  background: #2f6d3c;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(31, 66, 39, 0.25);
  font-size: 30px;
  cursor: pointer;
}

.service-modal__visual:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(30,62,41,.18),rgba(30,62,41,.5))
}

.service-modal__content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 18px 54px 0;
  overflow: hidden;
}

.service-modal__eyebrow {
  flex: 0 0 auto;
  margin: 0 64px 2px 0;
  color: #77a356;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.service-modal__title {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0 68px 10px 0;
  color: #1f3526;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.3;
}



.service-modal__video {
  flex: 0 0 auto;
  display: none;
  width: min(900px, 100%);
  aspect-ratio: 16 / 9;
  max-height: 360px;
  margin: 0 auto 8px;
  overflow: hidden;
  background: #17251b;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(31, 66, 39, 0.18);
}

.service-modal__video.is-visible {
  display: block;
}

.service-modal__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.service-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  padding: 8px 16px 36px 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}


.service-modal__close-button,.service-action-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 24px;
  color:#fff;
  background:linear-gradient(135deg,#79af58,#4f8b55);
  border:0;
  border-radius:999px;
  font-family:inherit;
  font-weight:bold;
  text-decoration:none
}

.service-detail-section {
  margin:0 0 26px;
  padding:22px 20px;
  background:#fbfdf9;
  border:1px solid #dce8dc;
  border-radius:18px
}

.service-detail-section h3 {
  margin:0 0 14px;
  color:#2f6d3c;
  font-size:22px
}

.service-detail-section h4 {
  margin:22px 0 10px;
  color:#46744a;
  font-size:17px
}

.service-detail-section p,.service-detail-section li {
  color:#44554d;
  font-size:15px;
  line-height:1.9
}

.service-detail-section p {
  margin:0 0 16px
}

.service-note {
  background:#eef7ea;
  border-left:7px solid #77a356
}

.service-catch {
  color:#2f6d3c!important;
  font-size:19px!important;
  font-weight:bold
}

.service-wide-image {
  margin:18px 0
}

.service-wide-image img {
  width:100%;
  height:auto;
  border-radius:16px
}

.service-photo-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:0 0 26px
}

.service-photo-grid--four {
  grid-template-columns:repeat(4,minmax(0,1fr))
}

.service-photo-grid figure {
  margin:0
}

.service-photo-grid img {
  width:100%;
  height:190px;
  object-fit:cover;
  border-radius:14px
}

.service-photo-grid figcaption,.service-wide-image figcaption {
  margin-top:8px;
  color:#667269;
  font-size:13px;
  text-align:center
}

.service-example-grid,.service-activity-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:16px
}

.service-example-grid--two {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.service-example-grid article,.service-activity-grid article {
  padding:16px;
  background:#f4f9f1;
  border:1px solid #d9e7d6;
  border-radius:14px
}

.service-example-grid h4,.service-activity-grid h4 {
  margin:0 0 8px;
  color:#2f6d3c
}

.service-example-grid p,.service-activity-grid p {
  margin:0;
  font-size:14px
}

.service-table-scroll {
  width:100%;
  overflow-x:auto
}

.service-table-scroll table {
  min-width:600px
}

@media(max-width:1000px) {
  .service-photo-grid--four {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

}

@media(max-width:820px) {
  .service-modal__panel {
    grid-template-columns:1fr
  }

  .service-modal__visual {
    min-height:28dvh
  }

}

@media(max-width:767px) {
  .service-hero {
    padding:34px 16px 28px
  }

  .service-hero__en {
    font-size:10px
  }

  .service-hero h1 {
    font-size:26px
  }

  .service-hero>p:last-child {
    font-size:14px;
    text-align:left
  }

  .service-map-section {
    padding:20px 0 44px
  }

  .service-map__image {
    border-radius:0;
    box-shadow:none
  }

  .service-map-section__hint {
    padding:0 14px;
    font-size:12px
  }

  .service-modal {
    padding:0
  }

  .service-modal__panel {
    width:100%;
    height:100dvh;
    border-radius:0
  }

  .service-modal__close {
    top:10px;
    right:10px;
    width:42px;
    height:42px
  }

  .service-modal__visual {
    min-height:24dvh
  }

  .service-modal__content {
    padding:22px 14px 16px
  }

  .service-modal__title {
    font-size:26px
  }

  .service-detail-section {
    margin-bottom:18px;
    padding:17px 14px
  }

  .service-detail-section h3 {
    font-size:19px
  }

  .service-detail-section p,.service-detail-section li {
    font-size:14px
  }

  .service-example-grid,.service-example-grid--two,.service-activity-grid,.service-photo-grid,.service-photo-grid--four {
    grid-template-columns:1fr
  }

  .service-photo-grid img {
    height:auto;
    max-height:320px
  }

}

.visually-hidden {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important
}



/* ========================================
   全画面モーダル 最終上書き
======================================== */

.service-modal {
  padding: 0;
}

.service-modal__panel {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border-radius: 0;
}

@media screen and (max-width: 820px) {
  .service-modal__panel {
    display: block;
    grid-template-columns: none;
  }

  .service-modal__content {
    padding: 18px 14px 0;
  }

}

@media screen and (max-width: 767px) {
  .service-modal__content {
    padding: 14px 10px 0;
  }

  .service-modal__eyebrow {
    margin-right: 54px;
    font-size: 10px;
  }

  .service-modal__title {
    margin-right: 54px;
    font-size: 25px;
  }

  .service-modal__video {
    width: 100%;
    height: auto;
    max-height: none;
    margin-bottom: 4px;
    border-radius: 10px;
  }

  .service-modal__body {
    padding: 12px 8px 28px 0;
  }

  .service-modal__close {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    font-size: 27px;
  }
}


/* 動画がないサービスはタイトル直下から本文を開始 */
.service-modal__video:not(.is-visible) + .service-modal__body {
  padding-top: 0;
}


/* ========================================
   タイトル下説明文削除後の最終調整
======================================== */

@media screen and (max-width: 820px) {
  .service-modal__content {
    padding: 14px 14px 0;
  }

  .service-modal__title {
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 767px) {
  .service-modal__content {
    padding: 10px 10px 0;
  }

  .service-modal__eyebrow {
    margin: 0 54px 2px 0;
    font-size: 10px;
  }

  .service-modal__title {
    margin: 0 54px 8px 0;
    font-size: 25px;
    line-height: 1.25;
  }

  .service-modal__video {
    width: 100%;
    height: auto;
    max-height: none;
    margin-bottom: 4px;
  }

  .service-modal__body {
    padding-top: 6px;
  }

  .service-modal__video:not(.is-visible) + .service-modal__body {
    padding-top: 0;
  }
}

/* ========================================
   サービス説明ブロック
   スクロール順フェードイン
======================================== */

.service-fade-block {
  opacity: 0;
  transform: translateY(28px);
  visibility: hidden;

  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    visibility 0s linear 0.7s;

  transition-delay:
    var(--fade-delay, 0ms);

  will-change:
    opacity,
    transform;
}

.service-fade-block.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;

  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    visibility 0s;

  transition-delay:
    var(--fade-delay, 0ms);
}

/*
  フェードイン前にクリックできることを防止
*/
.service-fade-block:not(.is-visible) {
  pointer-events: none;
}

.service-fade-block.is-visible {
  pointer-events: auto;
}

/*
  スマホでは移動量を少し小さくします
*/
@media screen and (max-width: 767px) {
  .service-fade-block {
    transform: translateY(20px);

    transition-duration:
      0.58s;
  }

  .service-fade-block.is-visible {
    transform: translateY(0);
  }
}

/*
  端末で「視差効果を減らす」が
  有効な場合はアニメーションを停止
*/
@media (
  prefers-reduced-motion: reduce
) {
  .service-fade-block,
  .service-fade-block.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: none;
  }
}

/* ========================================
   サービス詳細内の表サイズ調整
======================================== */

/*
  表の外枠
*/
.service-modal .service-table-scroll {
  width: 100%;
  margin: 14px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/*
  共通CSSの min-width: 600px を解除
*/
.service-modal .service-table-scroll table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
}

/*
  共通CSSの display:block を解除
*/
.service-modal .overview-table th,
.service-modal .overview-table td,
.service-modal .compare-table th,
.service-modal .compare-table td {
  display: table-cell;
  width: auto;
  padding: 12px 14px;
  border: 1px solid #d7e2d6;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: normal;
}

/*
  通常の2列表
  左側の項目名を文字幅に合わせる
*/
.service-modal .overview-table th {
  width: 1%;
  min-width: 88px;
  color: #2f6d3c;
  background: #eef7ea;
  font-weight: 700;
  white-space: nowrap;
}

/*
  右側の説明欄は残り幅を使用
*/
.service-modal .overview-table td {
  width: auto;
  background: #ffffff;
  white-space: normal;
}

/*
  比較表
  グループホームなどの3列表
*/
.service-modal .compare-table {
  width: 100%;
  min-width: 520px;
  table-layout: auto;
}

/*
  比較表の見出し
*/
.service-modal .compare-table th {
  min-width: 90px;
  color: #2f6d3c;
  background: #eef7ea;
  font-weight: 700;
  white-space: nowrap;
}

/*
  比較表の説明欄
*/
.service-modal .compare-table td {
  min-width: 140px;
  background: #ffffff;
  white-space: normal;
}

/*
  スマートフォン
*/
@media screen and (max-width: 767px) {
  .service-modal .service-table-scroll {
    margin: 10px 0;
  }

  .service-modal .overview-table {
    width: 100%;
    min-width: 0;
  }

  .service-modal .overview-table th,
  .service-modal .overview-table td,
  .service-modal .compare-table th,
  .service-modal .compare-table td {
    padding: 10px 9px;
    font-size: 13px;
    line-height: 1.65;
  }

  /*
    通常表の項目欄を必要以上に広げない
  */
  .service-modal .overview-table th {
    min-width: 72px;
    max-width: 112px;
    white-space: normal;
  }

  /*
    比較表のみ横スクロールを許可
  */
  .service-modal .compare-table {
    min-width: 500px;
  }
}

/* ========================================
   サービス詳細：動画・本文を一体スクロール
   最終修正版 v13
======================================== */

body.service-modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.service-modal__panel {
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.service-modal__content {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  overflow: visible !important;
  padding-bottom: 36px !important;
}

.service-modal__eyebrow,
.service-modal__title,
.service-modal__video,
.service-modal__body {
  position: static !important;
}

.service-modal__body {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-bottom: 48px !important;
  overscroll-behavior: auto !important;
  scrollbar-gutter: auto !important;
  -webkit-overflow-scrolling: auto !important;
}

/*
  YouTube iframeが縦スワイプを奪わないようにする。
  動画は自動再生・ミュート表示専用。
*/
.service-modal__video,
.service-modal__video iframe {
  touch-action: pan-y !important;
}

.service-modal__video iframe {
  pointer-events: none !important;
}

@media screen and (max-width: 767px) {
  .service-modal__content {
    min-height: 100dvh !important;
    padding: 10px 10px 30px !important;
  }

  .service-modal__video {
    margin-bottom: 10px !important;
  }

  .service-modal__body {
    padding: 6px 0 56px !important;
  }
}


/* ========================================
   サービス詳細 最終修正 v14
   ・閉じるボタンを常時固定表示
   ・ブロック単位の表示演出を復旧
======================================== */

/*
  閉じるボタンはスクロールパネル外に配置済み。
  モーダル全体を基準として常に右上へ固定します。
*/
.service-modal > .service-modal__close {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top)) !important;
  right: max(10px, env(safe-area-inset-right)) !important;
  z-index: 5005 !important;
  display: grid !important;
  place-items: center;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

.service-modal:not(.open) > .service-modal__close {
  pointer-events: none !important;
}

/*
  パネルのtransformはfixed要素の基準を変える原因になるため解除。
  モーダル自体のフェード表示だけを使用します。
*/
.service-modal__panel,
.service-modal.open .service-modal__panel {
  transform: none !important;
}

/*
  本文ブロックの初期状態。
  スクロールで表示範囲へ入るとis-visibleが付与されます。
*/
.service-modal .service-fade-block {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition:
    opacity 0.68s ease,
    transform 0.68s cubic-bezier(.2, .75, .2, 1),
    visibility 0s linear 0.68s;
  transition-delay: var(--fade-delay, 0ms);
  will-change: opacity, transform;
  pointer-events: none;
}

.service-modal .service-fade-block.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.68s ease,
    transform 0.68s cubic-bezier(.2, .75, .2, 1),
    visibility 0s;
  transition-delay: var(--fade-delay, 0ms);
  pointer-events: auto;
}

@media screen and (max-width: 767px) {
  .service-modal > .service-modal__close {
    width: 44px !important;
    height: 44px !important;
    font-size: 28px !important;
  }

  .service-modal .service-fade-block {
    transform: translateY(22px);
  }

  .service-modal .service-fade-block.is-visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-modal .service-fade-block,
  .service-modal .service-fade-block.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    pointer-events: auto;
  }
}
