/* キャンペーン一覧全体のスタイル */
.campaign-list-container {
  max-width: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* フィルターセクション */
.campaign-filter {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.post_content h3.filter-title{
      margin-bottom: 1em;
}

/* 新しいフィルターセクションのスタイル */
.filter-section {
  margin-bottom: 1em;
}

.filter-section-title {
  color: #4b5563;
  margin-bottom: 0.5em;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  padding: 0.2em 0.5em;
  border-radius: 4px;
  border: none;
  background-color: #f1f1f1;
  color: #333;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-button.active {
  background-color: #4f46e5;
  color: #fff;
}

.filter-button:hover:not(.active) {
  background-color: #e0e0e0;
}

/* キャンペーン一覧タイトル */
.post_content h2.campaign-list-title {
  margin-bottom: 1em;
}

/* キャンペーンカードのグリッド */
.campaign-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .campaign-grid {
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
  }
}

/* キャンペーンカード */
.campaign-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* カードヘッダー */
.campaign-header {
  padding: 1em;
  background-color: #f8fafc;
  border-bottom: 1px solid #e0e7ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.provider-info-boxouter{
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2em;
}

.provider-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.2em;
}

.provider-name {
  font-size: 1em;
  font-weight: 600;
  color: var(--color_htag);
}

.campaign-type {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}


.campaign-type.fee_discount{
    background-color: #dbeafe;
  color: #1e40af;

}
.campaign-type.free_terminal{
  background-color: #d1fae5;
  color: #065f46;
}

.post_content h3.campaign-title {
    padding: 0;
}

h3.campaign-title {
  font-weight: 600;
  color: #111827;
  margin-top: 8px;
  margin-bottom: 8px;
}

h3.campaign-title::before{
  content:none;
}

.provider-info-log img {
    background: #fff;
}

.service-details-toggle {
  background: none;
  border: none;
  color: var(--color_link);
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}


.toggle-icon {
  margin-left: 4px;
}

.campaign-header-innerbox {
    display: flex;
    justify-content: space-between;
}

/* サービス詳細 */
.service-details {
  padding: 16px;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.service-name {
  font-weight: 600;
  color: #374151;
}

.service-info-grid {
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-info-item {
  flex: 0 0 calc((100% - 3 * 6px) / 4);
  padding: 0.5em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-info-item.sii-long {
  flex: 0 0 calc(((100% - 3 * 6px) / 4) * 2 + 6px);
}




.info-label {
  display: block;
  font-size: 0.8em;
  color: #6b7280;
  margin-bottom: 4px;
}

.info-value{
  line-height:1.5;
}

.info-value small.info-value-small{
  display: block;

}
.info-value-content,.info-value-list{
  font-weight: 500;
  color: #111827;
  font-size: 0.9em;
}

.service-info-item small{

}

.service-details-footer {
  margin-top: 12px;
  text-align: right;
}

.service-link {
  font-size: 0.9em;
  color: #4f46e5;
  text-decoration: none;
}

.service-link:hover {
  color: #4338ca;
  text-decoration: underline;
}

/* キャンペーンコンテンツ */
.campaign-content {
  padding: 16px;
}

.post_content div.campaign-content-top{
  margin-top: 1em;
  margin-bottom: 1em;
}

.campaign-content-top{
  display: flex;
  gap: 12px;
}


.campaign-content-top .campaign-cam_adimg{
  flex: 0 0 calc((100% - 2 * 16px) / 3);
}
.campaign-content-top .campaign-subject{
  flex: 0 0 calc(((100% - 2 * 16px) / 3) * 2 + 16px);
}

.campaign-subject{
    margin-bottom: 1.5em;
}

.campaign-subject-title{
    font-weight: 600;
}

.campaign-subject-list li{
  font-size: 0.9em;
  line-height:1.4;
  color: #6b7280;
}

.campaign-period{
  font-size: 0.9em;
}

.period-label {
  font-weight: 500;
  color: #6b7280;
}

.period-value {
  color: #111827;
}

.campaign-summary {
  font-size: 0.95em;
  color: #6b7280;
  line-height: 1.3;
}

.campaign-header-innerbox-top{
  margin-bottom: 8px;
}

.provider-info-box {

}

.benefits-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

/* アコーディオン */


.accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 16px;
  background-color: #f3f4f6;
  border: none;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
  color: #374151;
  text-align: left;
  cursor: pointer;
  margin-bottom: 8px;
}

.accordion-toggle:hover {
  background-color: #e5e7eb;
}
.campaign-block__accordion{
  margin-top: 8px;
}

.accordion-content {
  display: none;
  padding: 12px 16px;
  background-color: #f9fafb;
  border-radius: 4px;
}


.accordion-content ul, .campaign-conditions-list {
  margin: 0;
  padding-left: 20px;
}

.accordion-content li, .campaign-conditions-list li {
  font-size: 0.9em;
  color: #4b5563;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* フッター */

/* ローディング状態 */
.campaign-items.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* キャンペーンがない場合 */
.no-campaigns {
  background-color: #f9fafb;
  padding: 24px;
  text-align: center;
  border-radius: 8px;
}

.no-campaigns p {
  color: #6b7280;
  font-size: 16px;
  margin: 0;
}

/* エディタースタイル */
.campaign-list-editor {
  padding: 16px;
  border: 1px dashed #ccc;
}

@media screen and (max-width: 959px)  {

.campaign-content-top{
  flex-direction: column;
}

}

@media screen and (max-width: 599px) {

.post_content h3.campaign-title{
  margin-top:0;
  font-size:1em;
}

.provider-info-log{
  display: none;
}

.campaign-header-innerbox {
  flex-direction: column;
}
.service-details-toggle{
  justify-content: center;
}
.campaign-period{
  text-align: center;
}

.service-info-item{
  flex: 0 0 calc(((100% - 3 * 6px) / 4) * 2 + 6px);
}

.service-info-item.sii-long {
    flex: 0 0 100%;
}

.info-value small{
  font-size: 0.75em;
}

}
