/* --- 神社セクションのスタイル --- */
.shrine-section {
  margin: 60px auto;
  text-align: center;
  max-width: 1000px;
  padding: 0 20px;
}

.shrine-title {
  font-family: "Open Sans", serif;
  font-size: 36px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: #333;
}

.shrine-subtitle {
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 40px;
  display: block;
}

.shrine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  text-align: left;
}

.shrine-item {
  margin-bottom: 20px;
}

.shrine-name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  color: #333;
}

/* 神社アイコン（鳥居） */
.shrine-name::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  background-color: #997758;
  /* アイコンの色 */
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6v2h2v10h2V8h4v10h2V8h4v10h2V8h2V6H2m5-4v2h10V2H7z'/%3E%3C/svg%3E") no-repeat center center;
  mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6v2h2v10h2V8h4v10h2V8h4v10h2V8h2V6H2m5-4v2h10V2H7z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.shrine-address,
.shrine-access {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 5px;
  color: #333;
}

.shrine-access {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.shrine-tel {
  color: #404040;
}

/* ルートボタンのデザイン改修 */
.shrine-route-btn {
  display: inline-flex;
  align-items: center;
  background: #997758;
  /* 白文字が映える背景色 */
  padding: 4px 18px;
  margin-left: 12px;
  text-decoration: none;
  color: #ffffff !important;
  /* 白文字 */
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.3s;
  font-weight: 500;
}

/* 車アイコン */
.shrine-route-btn::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.15-3.42c.12-.33.42-.58.78-.58h10.13c.37 0 .66.25.78.58L19 11H5z'/%3E%3C/svg%3E") no-repeat center center;
  mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.15-3.42c.12-.33.42-.58.78-.58h10.13c.37 0 .66.25.78.58L19 11H5z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.shrine-route-btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

@media screen and (max-width: 750px) {
  .shrine-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .shrine-section {
    margin: 40px auto;
    text-align: left;
  }

  .shrine-title {
    text-align: center;
    font-size: 28px;
  }

  .shrine-subtitle {
    text-align: center;
    margin-bottom: 30px;
  }

  .shrine-route-btn {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }

  .shrine-address {
    font-size: 15px !important;
  }

  .shrine-tel {
    text-decoration: underline;
  }
}