/* 関連ツール 入口ページ(/tool)とリーフレット・動画掲載ページ(/tool_d)No.49 水戸 2026-10-25 */
.page-home .section-inner.te-wide {
  max-width: 76%;
}
.te-lead {
  font-size: 0.94vw;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.08em;
  margin: 0 0 2.4vw;
}
.te-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6vw;
}
.te-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 1.6vw 1.8vw 1.8vw;
  border-radius: 16px;
  background: #f0eee8;
  color: #222;
  text-decoration: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.te-card:hover {
  background: #e9e6dd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.te-card:focus-visible {
  outline: 3px solid #f5c800;
  outline-offset: 3px;
}
.te-card__title {
  position: relative;
  padding-right: 1.6em;
  font-size: 1.1vw;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin: 0 0 0.6vw;
}
.te-card__title::after {
  content: "";
  position: absolute;
  top: 0.62em;
  right: 0.4em;
  width: 0.45em;
  height: 0.45em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.te-card:hover .te-card__title::after {
  transform: translateX(0.2em) rotate(45deg);
}
.te-card__desc {
  font-size: 0.86vw;
  line-height: 1.85;
  margin: 0 0 1.2vw;
}
.te-card__thumbs {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.8vw;
}
.te-card__thumbs img {
  display: block;
  height: 9.6vw;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.te-card__thumbs img.is-wide {
  height: auto;
  width: 13vw;
}
.te-card__thumbs--pair img.is-wide {
  width: 15vw;
}

/* /tool_d */
.tl-lead {
  font-size: 0.94vw;
  line-height: 2;
  margin: 0 0 2.4vw;
}
.tl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4vw;
  align-items: start;
}
.tl-item__head {
  margin: 0 0 1.6vw;
  padding: 0.8vw 1vw;
  background: #f0eee8;
  border-radius: 8px;
  font-size: 0.94vw;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}
.tl-item__head span {
  display: block;
}
.tl-item__media {
  display: block;
  margin: 0 0 1vw;
}
.tl-item__media img {
  display: block;
  height: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: opacity 0.25s ease;
}
.tl-item__media:hover img {
  opacity: 0.85;
}
.tl-item__media--leaflet img {
  width: 40%;
}
.tl-item__media--video img {
  width: 100%;
  border-radius: 8px;
}
.tl-item__link {
  font-size: 0.94vw;
  font-weight: 700;
  line-height: 1.7;
  color: #222;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.tl-item__note {
  margin: 1.6vw 0 0;
  font-size: 0.86vw;
  line-height: 1.85;
}
.tl-item__note b {
  display: block;
  margin-bottom: 0.2em;
}
.tl-back {
  margin: 3.2vw 0 0;
  font-size: 0.86vw;
}
.tl-back a {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media only screen and (max-width: 767px) {
  .page-home .section-inner.te-wide {
    max-width: 88%;
  }
  .te-lead, .tl-lead {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .te-grid, .tl-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .tl-grid {
    gap: 32px;
  }
  .te-card {
    padding: 18px 16px 20px;
    border-radius: 12px;
  }
  .te-card:hover {
    transform: none;
  }
  .te-card__title {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .te-card__desc {
    font-size: 12.5px;
    margin-bottom: 14px;
  }
  .te-card__thumbs {
    gap: 8px;
  }
  .te-card__thumbs img {
    height: 26vw;
  }
  .te-card__thumbs img.is-wide,
  .te-card__thumbs--pair img.is-wide {
    width: 40vw;
  }
  .tl-item__head, .tl-item__link {
    font-size: 13px;
  }
  .tl-item__head {
    padding: 8px 10px;
    margin-bottom: 14px;
  }
  .tl-item__note, .tl-back {
    font-size: 12.5px;
    margin-top: 16px;
  }
  .tl-item__media--leaflet img {
    width: 56%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .te-card, .te-card__title::after, .tl-item__media img {
    transition: none;
  }
  .te-card:hover {
    transform: none;
  }
}
