:root {
  --hero-max-width: 100%;
  --zoom-scale: 2;
  --zoom-duration: 320ms;
}

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  background-color: #fcfcfc;
  color: #333;
}

/* 看板（ヘッダー）のデザイン */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-link {
  color: #444 !important;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #5dbc7d !important; /* メインカラーの緑 */
}

/* 資料リストのデザイン */
.list-group-item {
  border-left: none;
  border-right: none;
  padding: 1.5rem;
  transition: background-color 0.2s;
}

.list-group-item:hover {
  background-color: #f8fdf9;
}

.list-group-item h5 {
  color: #2c3e50;
  font-weight: bold;
  margin-bottom: 0.2rem;
}

/* 管理画面用の調整 */
.admin-card {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.img-managed {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

footer {
  border-top: 5px solid #5dbc7d;
}

/* 画像ズーム用 */
.hero-zoom-wrap picture {
  display: block;
}

.hero-zoom-wrap {
  position: relative;
  width: 100%;
  max-width: var(--hero-max-width);
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 0.5rem;
  touch-action: none;
}

.hero-zoom-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  transform-origin: 50% 50%;
  transition: filter var(--zoom-duration) ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
}

.hero-zoom-wrap.is-zoomed {
  cursor: grab;
}

.hero-zoom-wrap.is-zoomed.is-dragging {
  cursor: grabbing;
}

.hero-zoom-wrap.is-zoomed .hero-zoom-image {
  filter: saturate(1.06);
}

.zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.95;
  z-index: 3;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .hero-zoom-wrap {
    border-radius: 0.25rem;
  }

  .zoom-hint {
    font-size: 0.75rem;
    bottom: 0.5rem;
  }
}