* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  color: #000;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.logo {
  padding: 4px 0 3px;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  overflow: hidden;
  background: #333;
}

.navbar a {
  display: block;
  padding: 14px 16px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.navbar a:hover {
  color: #000;
  background: #ddd;
}

.container {
  max-width: 1000px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px;
  background: #b0ab9b;
}

.section {
  width: 95%;
  margin: 0 auto;
  padding-top: 68px;
  scroll-margin-top: 48px;
}

.section h2 {
  margin: 0 0 22px;
  font-size: 26px;
}

.item-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-left: 20px;
}

.item {
  width: calc(50% - 10px);
  margin-bottom: 20px;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.item img {
  max-width: 100%;
  max-height: 200px;
  margin-bottom: 10px;
  object-fit: contain;
  border-radius: 5px;
  cursor: pointer;
}

.item video {
  width: 100%;
  max-height: 240px;
  margin-bottom: 10px;
  background: #111;
  border-radius: 5px;
}

.item h3 {
  margin: 4px 0 14px;
  font-size: 20px;
}

.item p {
  margin: 0 0 14px;
  line-height: 1.6;
}

.item a { font-weight: normal; }

.wide-item { width: 100%; }

footer {
  width: 95%;
  margin: 55px auto 0;
  padding-bottom: 8px;
}

.img-preview {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.82);
}

.img-preview.open { display: grid; }

.img-preview img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}

.img-preview button {
  position: absolute;
  top: 12px;
  right: 20px;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 42px;
  cursor: pointer;
}

.detail-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 24px 70px;
}

.detail-page h1 { margin-bottom: 8px; }

.detail-page .back-link {
  display: inline-block;
  margin-bottom: 24px;
}

.detail-page .detail-block {
  margin-bottom: 34px;
}

.detail-page img,
.detail-page video {
  max-width: 100%;
  max-height: 520px;
  margin: 10px 0;
}

.detail-page p {
  max-width: 820px;
  line-height: 1.6;
}

@media screen and (max-width: 700px) {
  .logo {
    padding: 5px 6px;
    font-size: 22px;
  }

  .navbar a {
    width: 100%;
    padding: 9px 12px;
    text-align: left;
  }

  .container { padding: 10px; }

  .section {
    width: 100%;
    padding-top: 45px;
  }

  .item-container { padding-left: 0; }

  .item {
    width: 100%;
    margin-bottom: 12px;
  }
}
