/* =========================
   Top (投稿一覧)
========================= */





/* =========================
   Hero
========================= */

/* .hero {
  position: relative;    
  height: 300px;      
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
} */
.hero {
  position: relative;
  height: 300px;   /* ← 高さは親だけ */
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
}

.hero-bg {
  position: absolute;
  inset: 0;        /* ← 親いっぱいに広がる */
  background-size: cover;
  background-position: center;
}





.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  color: #fff;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 10px;
}

.hero-sub {
  font-size: 16px;
  opacity: 0.9;
}




.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0 18px;
}

.search-form input[type="text"] {
  flex: 1;
  min-width: 180px;
}

.search-form select {
  width: 140px;
}

.search-form button {
  border: none;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}

.search-form button:hover {
  opacity: 0.92;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.item {
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.item a {
  display: block;
}

/* 正方形サムネ */
.item a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f2f2f2;
}

.item .title {
  margin: 10px 12px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
}

.item .js-like-btn {
  margin: 8px 10px 12px;
}

/* Responsive */
@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .search-form select {
    width: 100%;
  }
}
@media (max-width: 420px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}


/* =========================
   Search Box
========================= */

.search-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0 22px;
  padding: 14px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 14px;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}

.search-input-wrap:focus-within {
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0,0,0,.05);
}

.search-input-wrap .icon {
  font-size: 14px;
  color: #777;
}

.search-input-wrap input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
}

/* controls */
.search-controls {
  display: flex;
  gap: 8px;
}

.search-controls select {
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

.search-btn {
  border: none;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
}

.search-btn:hover {
  opacity: 0.9;
}

/* =========================
   Responsive
========================= */

@media (max-width: 820px) {
  .search-box {
    flex-direction: column;
    align-items: stretch;
  }

  .search-controls {
    width: 100%;
  }

  .search-controls select,
  .search-btn {
    flex: 1;
  }
}






.search-input-wrap .icon {
  font-size: 14px;
  color: #999;     /* グレー */
  display: flex;
  align-items: center;
}


.search-clear-wrap {
  margin-top: -10px;
  margin-bottom: 18px;
  text-align: right;
}

.search-clear {
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.search-clear:hover {
  text-decoration: underline;
  color: #111;
}


