@charset "utf-8";

@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");

.coming-soon {
  position: relative;
  z-index: 0;
}

.coming-soon img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(70%);
}

.coming-soon h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  color: #fff;
  z-index: 1;
}

/* -----------------
works
-------------------- */
#brog {
  padding-top: 100px;
  background-color: #ecece6;
}

#brog .products-title {
  padding: 30px;
  margin-bottom: 30px;
}

#brog .products-title h2,
#brog .products-title p {
  text-align: center;
}

#brog .section-subtitle {
  border-bottom: 1px #000 solid;
}

#brog ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-left: 30px;
  margin-right: 30px;
}

#brog li {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 120px;
}

#brog img {
  width: 100%;
}

#brog .content-title {
  text-align: start;
}

#brog .website_list p {
  text-align: start;
  font-size: 13px;
  font-weight: bold;
}

#mainvisual {
  position: relative;
  height: 300px;
}

#mainvisual img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

#mainvisual .products-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.products-title h2 {
  color: #fff;
}

.products-title h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #fff;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.products-title p {
  color: #fff;
}

.topics-box .box-text,
.topics-box .box-text02 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* /Users/kuroiwamasahiro/Webデザイン/MONOCHROME/css/brog.css */
.topic-box {
  background: #ecece6;
}

.topics-container {

  max-width: 960px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.topic-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.topics-box {
  background-color: #fff;

  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* グリッドレイアウトで高さを揃える */
}

.topics-box article {
  border-radius: 8px;
}

.topics-box article:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.topic-img-wrapper {
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 アスペクト比 */
  position: relative;
  background-color: #f0f0f0;
}

.topic-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.topic-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.topic-meta .category {
  background-color: #333;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.topic-meta .category a {
  color: #fff;

}

.topic-meta time {
  color: #777;
  font-size: 0.8rem;
}

.topic-title {
  font-size: 1.25rem;
  margin: 0 0 10px 0;
  line-height: 1.4;
  /* 複数行のテキストの高さを揃えるためにflex-growを使用 */
  flex-grow: 1;
}

.topic-excerpt {
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* ページネーションの汎用スタイル */
.nav-links ul {
  background: none;
  margin: 16px auto;
}

.nav-links ul li {
  display: flex;
  padding: 8px;
}

.nav-links ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links li>* {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  height: 45px;
}

.nav-links li>*:not(.dots) {
  width: 45px;
  border-radius: 50%;
  color: #000000;
  background: #efefef;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-links li>.current,
.nav-links li>a:hover {
  color: #ffffff;
  background: #000000;
}

/* 記事フッター・一覧へ戻るボタン */
.post-footer {
  margin: 32px auto;
  padding-top: 40px;
  /* border-top: 1px solid #333; */
  text-align: center;
}

.back-link {
  display: inline-block;
  padding: 14px 48px;
  border: 2px solid #333;
  border-radius: 50px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: all 0.3s ease;
}

.back-link:hover {
  background-color: #333;
  color: #fff;
  border-color: #333;
}


@media (max-width: 768px) {
  .topics-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .topic-title {
    font-size: 1.1rem;
  }
}
