:root {
  --g: #3f7d3a;
  --g2: #e9f2e4;
  --ink: #1f2a1c;
  --line: #dfe6da;
  --bg: #f7f9f5;
  --top: 150px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP',sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.top header {
  background: var(--g);
  color: #fff;
  padding: 18px 16px 14px;
  text-align: center;
}

.top header h1 {
  margin: 0;
  font-size: clamp(19px,3.2vw,28px);
  letter-spacing: .04em;
  line-height: 1.4;
}

.top header p {
  margin: 4px 0 0;
  font-size: clamp(13px,1.8vw,15px);
  opacity: .92;
}

.top nav {
  background: rgba(247,249,245,.97);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}

.top nav .in {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  text-decoration: none;
  color: var(--g);
  border: 1px solid var(--g);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  white-space: nowrap;
  transition: background .15s,color .15s;
}

.chip:hover {
  background: var(--g2);
}

.chip.on {
  background: #d6ead0;
  color: #2d6a2d;
  border-color: #7fb377;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

.cat {
  scroll-margin-top: calc(var(--top) + 8px);
}

.cat h2 {
  font-size: 21px;
  border-left: 6px solid var(--g);
  padding-left: 10px;
  margin: 32px 0 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(130px,1fr));
  gap: 12px;
}

@media (min-width:1000px) {
  .grid {
    grid-template-columns: repeat(8,1fr);
  }
}

.card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  transition: box-shadow .15s;
}

.card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

.ph {
  padding: 10px;
}

.ph img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.card figcaption {
  font-size: 12.5px;
  padding: 6px 8px 8px;
  border-top: 1px solid var(--line);
  text-align: center;
  word-break: break-all;
}

#lb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 16px;
}

#lb.on {
  display: flex;
}

#lb div {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  max-width: min(520px,100%);
  width: 100%;
  text-align: center;
}

#lb img {
  width: 100%;
  height: auto;
}

#lb p {
  margin: 8px 0 0;
  font-weight: bold;
  font-size: 17px;
}

.note-parts {
  text-align: center;
  font-size: 13px;
  color: #5d6858;
  padding: 0 16px;
  margin: 8px 0 0;
}

.note-parts a {
  color: #2d6a2d;
  text-decoration: underline;
}

.note-parts a:hover {
  color: #3f7d3a;
}

.scenes-sec {
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 40px 16px 40px;
}

.scenes-sec .in {
  max-width: 1200px;
  margin: 0 auto;
}

.scenes-sec h2 {
  font-size: 24px;
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: .04em;
}

.scenes-sec .lead {
  text-align: center;
  font-size: 15px;
  color: #40503c;
  margin: 0 auto 28px;
  max-width: 760px;
  line-height: 1.8;
}

.scenes {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

@media (max-width:1000px) {
  .scenes {
    grid-template-columns: repeat(2,1fr);
  }
}

.scene {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  transition: box-shadow .2s,transform .2s;
}

.scene:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.scene__img {
  position: relative;
}

.scene__img img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.scene__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--c);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  padding: 2px 10px;
  border-radius: 99px;
}

.f-landscape {
  --c: #005933;
}

.f-fruit {
  --c: #e77734;
}

.f-livestock {
  --c: #005ca1;
}

.f-civil {
  --c: #5b5b5b;
}

.scene figcaption {
  padding: 12px 16px 16px;
}

.scene figcaption b {
  display: block;
  font-size: 15px;
}

.scene figcaption span {
  display: block;
  font-size: 13px;
  color: #556b57;
  margin-top: 2px;
}

.scenes-note {
  font-size: 12px;
  color: #556b57;
  text-align: right;
  margin: 10px 0 0;
}

.back-wrap {
  background: #fff;
  text-align: center;
  padding: 8px 16px 56px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--g);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(45,106,45,.3);
  transition: background .2s,transform .2s;
}

.back-btn:hover {
  background: #2d6a2d;
  transform: translateY(-2px);
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

#lb.wide div {
  max-width: 1000px;
}

#lb p small {
  display: block;
  font-weight: normal;
  font-size: 13px;
  color: #556b57;
}

@media (max-width:700px) {
  .scenes {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .scenes-sec h2 {
    font-size: 20px;
  }
  .scenes-sec .lead {
    font-size: 14px;
    text-align: left;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width:600px) {
  .top header {
    padding: 12px 16px 10px;
  }
  .top nav {
    padding: 8px 0;
  }
  .top nav .in {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 16px;
  }
  .grid {
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
  }
  .card figcaption {
    font-size: 12px;
  }
  .cat h2 {
    font-size: 19px;
  }
}