* {
  --font-inter: 'Inter', sans-serif;
  --font-notoserif: 'Noto Serif JP', serif;
  margin: 0;
  padding: 0;
}

button {
  background: transparent;
  border: none;
}

.main {
  font-family: 'Inter', 游ゴシック体, YuGothic, 游ゴシック, 'Yu Gothic',
    メイリオ, sans-serif;
}

.pageTitle {
  color: #14a83b;
  font-family: var(--font-notoserif);
  font-size: 40px;
  font-weight: 600;
  padding-block: 80px 90px;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .pageTitle {
    font-size: 32px;
    padding-block: 60px;
  }
}

/* Search */
.search {
  margin-inline: auto;
  max-width: 1200px;
  padding-bottom: 72px;
}

@media screen and (max-width: 1240px) {
  .search {
    max-width: 95%;
  }
}

.search__inner {
  background: #f5f5f5;
  padding: 60px 40px;
}

.search__text {
  color: #14a83b;
  font-size: 30px;
  font-weight: 600;
  text-align: center;
}

.search__button {
  background: #fff;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  display: grid;
  font-size: 18px;
  grid-template-columns: auto 1fr auto;
  height: 60px;
  margin-inline: auto;
  margin-top: 30px;
  max-width: 350px;
  padding-inline: 10px;
  place-items: center;
  text-align: center;
  transition: background 0.2s;
  width: 100%;
}

.search__button::before {
  content: '';
}

.search__button:hover {
  background: #1c1b1f;
  color: #fff;
}

.search__button:hover .search__buttonIcon svg {
  fill: #fff;
}

.search__buttonText {
  padding-bottom: 4px;
}

.search__buttonIcon svg {
  fill: #1c1b1f;
  justify-self: end;
  padding-top: 3px;
}

@media screen and (max-width: 767px) {
  .search__text {
    font-size: 24px;
  }

  .search__text span {
    display: inline-block;
  }
}

/* Result */
.result {
  display: grid;
  grid-template-columns: 34.33% auto;
  margin-inline: auto;
  max-width: 1200px;
  padding-bottom: 90px;
  row-gap: 40px;
  width: 100%;
}

.result__container {
  align-items: start;
  display: grid;
  height: 460px;
  overflow-y: auto;
  padding-right: 16px;
  row-gap: 16px;
}

.result__container::-webkit-scrollbar {
  background: #e8e8e8;
  border-radius: 100px;
  width: 6px;
}

.result__container::-webkit-scrollbar-thumb {
  background: #868686;
  border-radius: 5px;
  width: 6px;
}

.result__textArea {
  border: 1px solid #d7d7d7;
}

.result__textAreaInner {
  padding: 24px;
}

.result__map #map {
  aspect-ratio: 788 / 593;
  height: 100%;
  width: 100%;
}

.result__head {
  font-size: 24px;
  line-height: 1.4;
  padding-bottom: 16px;
  text-align: center;
}

.resultBox {
  border: 1px solid #c4c4c4;
  padding: 20px;
}

.resultBox__name {
  font-size: 20px;
  line-height: 1.2;
}

.resultBox__address {
  font-size: 16px;
  line-height: 1.2;
  margin-top: 10px;
}

.resultBox__info {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 8px;
  margin-top: 4px;
}

.resultBox__time {
  align-items: center;
  display: flex;
  gap: 7px;
}

.resultBox__separator {
  color: #c4c4c4;
}

.resultBox__link {
  align-items: center;
  border: 1px solid;
  border-radius: 5px;
  background-color: #14a83b;
  color: #fff;
  display: grid;
  font-size: 16px;
  grid-template-columns: auto 1fr auto;
  height: 40px;
  justify-content: center;
  justify-self: center;
  margin-top: 10px;
  padding-bottom: 1px;
  padding-inline: 14px;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.resultBox__link::before {
  content: '';
}

.resultBox__linkIcon {
  background: #14a83b;
  border-radius: 9999em;
  height: 14px;
  justify-self: end;
  position: relative;
  width: 14px;
}

/* .resultBox__linkIcon::after {
    content: url("../images/icon/icon_chevron-right-white.svg");
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-47%, -48%) scale(0.4);
} */

.resultBox__linkIcon svg {
  left: 50%;
  position: absolute;
  stroke: #fff;
  top: 50%;
  transform: translate(-47%, -50%) scale(0.4);
}

.resultBox__link:hover {
  background: #fff;
  color: #14a83b;
}

.resultBox__link:hover .resultBox__linkIcon {
  background: #14a83b;
}

.resultBox__link:hover .resultBox__linkIcon svg {
  stroke: #fff;
}

@media screen and (max-width: 1240px) {
  .result {
    max-width: 95%;
  }
}

@media screen and (max-width: 992px) {
  .result {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .result {
    padding-bottom: 72px;
  }

  .result__head {
    font-size: 20px;
  }

  .resultBox__name {
    font-size: 16px;
  }

  .resultBox__address {
    font-size: 13px;
    margin-top: 10px;
  }

  .resultBox__info {
    font-size: 13px;
    gap: 8px;
  }

  .resultBox__link {
    font-size: 14px;
  }

  .result__map #map {
    aspect-ratio: 1;
  }
}

.cemetery-link {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  align-items: center; /* 中央揃え */
  text-align: center; /* テキストも中央揃え */
  text-decoration: none; /* デフォルトのリンクスタイルを解除 */
}

.cemetery-icon {
  display: inline-block;
  position: relative;
}

.pin-icon {
  display: block;
  width: 56px; /* アイコンの幅 */
  height: 48px; /* アイコンの高さ */
  position: relative;
  /* bottom: 24px; ピンの下部を中心に揃えるための調整（高さの半分） */
}

.cemetery-name {
  font-size: 14px;
  font-weight: bold;
  background-color: #fff;
  border-radius: 4px;
}

.yNHHyP-marker-view {
  position: relative; /* 位置を相対的に指定 */
}

.yNHHyP-marker-view:hover {
  z-index: 100; /* ホバー時に z-index を大きく設定 */
}
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* LINE遷移用ボタン */
.nearbutton {
  background-color: #14a83b;
  border: 1px solid;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-notoserif);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 0.875rem;
  text-align: center;
  transition: all 0.3s ease;
}
.nearbutton:hover {
  background-color: #fff;
  border-color: #14a83b;
  color: #14a83b;
}
.nearbutton span {
  display: inline-block;
}

@media (max-width: 992px) {
  .nearbutton {
    max-width: 100%;
    width: 100%;
  }
}
.noNearbyText {
  font-size: 14px;
  text-align: center;
}