@charset "UTF-8";

/* ==========================================================================
   topics-enquete.css（アンケート抽選会用）
   ========================================================================== */

/* ==========================================================================
   1. アンケート抽選会 当選者発表セクション用
   ========================================================================== */
.topics-winner-box {
  background-color: #fcfbfa;
  border: 1px solid #e6dfd7;
  border-radius: 6px;
  padding: 25px 30px;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(161, 132, 78, 0.04);
  text-align: center;
}
.topics-winner-title {
  font-size: 17px;
  font-weight: bold;
  color: #222222;
  border-left: 4px solid #a1844e;
  padding-left: 12px;
  margin-top: 0;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
h3.topics-winner-title {
  display: inline-block;
  border-left: none;
  padding-left: 0;
  background-color: #008000;
  color: #ffffff;
  padding: 6px 20px;
  font-size: 18px;
  border-radius: 4px;
}
.topics-winner-table-wrapper {
  margin-top: 25px;
  text-align: center; /* ← ここを center に変更します */
}
.topics-winner-table-wrapper h4 {
  font-size: 16px;
  font-weight: bold;
  color: #222222;
  border-left: 4px solid #a1844e; /* 金色の線を復活 */
  padding-left: 10px;
  margin-top: 0;
  margin-bottom: 12px;
  
  /* ▼ テキストの左側に線を追従させるための3行 ▼ */
  display: inline-block; /* 見出しの横幅を文字の長さにぴったり合わせる */
  text-align: left;      /* 線と文字の関係は左揃えをキープする */
  margin-inline: auto;   /* inline-block化された見出し自体を中央に寄せる */
}

.topics-winner-table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 25px;
  border-collapse: collapse;
  border: 1px solid #e6dfd7;
  text-align: center;
  font-size: 15px;
}
.topics-winner-table th {
  padding: 10px;
  border: 1px solid #e6dfd7;
  background-color: #edebe8;
  color: #333333;
  font-weight: bold;
}
.topics-winner-table td {
  padding: 10px;
  border: 1px solid #e6dfd7;
  color: #444444;
  vertical-align: middle;
}
.topics-winner-table td.initial-name {
  font-weight: bold;
}
.topics-winner-table td.bg-light-flat {
  vertical-align: middle;
  background-color: #fcfbfa;
}
.topics-winner-list {
  list-style: none;
  padding-left: 4px;
  margin: 0;
}
.topics-winner-list li {
  font-size: 15px;
  color: #444444;
  line-height: 2;
  position: relative;
  padding-left: 18px;
  letter-spacing: 0.08em;
  border-bottom: 1px dashed #edebe8;
}
.topics-winner-list li:last-child {
  border-bottom: none;
}
.topics-winner-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background-color: #a1844e;
}

/* ==========================================================================
   [レスポンシブ] タブレット・スマホ対応 (max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .topics-winner-box {
    padding: 20px 18px;
    margin: 20px 0;
  }
  .topics-winner-title {
    font-size: 15px;
    padding-left: 10px;
    margin-bottom: 15px;
  }
  h3.topics-winner-title {
    font-size: 15px;
    padding: 5px 14px;
    margin-bottom: 15px;
  }
  .topics-winner-table {
    font-size: 13px;
    margin-bottom: 15px;
  }
  .topics-winner-table th,
  .topics-winner-table td {
    padding: 8px 5px;
  }
  .topics-winner-list li {
    font-size: 14px;
    line-height: 2.2;
    padding-left: 15px;
  }
}