/* Chip Block基本スタイル */
.chip-block {
  font-family: var(--custom-font-family);
  display: inline-block;
  font-weight: 400;
  line-height: 1.4;
  box-sizing: border-box;
  max-width: 100%;
  white-space: nowrap;
  text-decoration: none;
}

.chip-block span {
  display: inline-block;
}

/* 背景色設定 */
.chip-bg-white {
  background-color: var(--custom-background-color-white);
}

.chip-bg-gray {
  background-color: var(--custom-background-color-gray);
}

.chip-bg-blue {
  background-color: var(--custom-background-color-blue);
}

.chip-bg-navy {
  background-color: var(--custom-background-color-navy);
}

/* テキスト色設定 */
.chip-text-primary {
  color: var(--custom-text-primary);
}

.chip-text-secondary {
  color: var(--custom-text-secondary);
}

.chip-text-tertiary {
  color: var(--custom-text-tertiary);
}

/* 角丸設定 */
.chip-radius-full {
  border-radius: 9999px;
}

.chip-radius-none {
  border-radius: 0;
}

/* 枠線設定 */
.chip-border {
  border: 1px solid var(--custom-text-primary);
  border-style: solid;
}

/* ブルー・ネイビー背景の場合の枠線色 */
.chip-bg-blue.chip-border,
.chip-bg-navy.chip-border {
  border-color: var(--custom-text-secondary);
}

/* シャドウ設定 */
.chip-shadow {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
}

/* パディング設定 */
.chip-padding-small {
  padding: 0.5rem 1.5rem;
}

.chip-padding-medium {
  padding: 1rem 2rem;
}

.chip-padding-large {
  padding: 1.2rem 3rem;
}

.chip-padding-max {
  width: 100%;
  display: block;
  text-align: center;
  padding: 1rem 2rem;
}

/* テキストサイズ設定（paragraph.cssと同じ） */
.chip-block.text-size-extraBody1 {
  font-size: 24px;
  line-height: 1.6;
}

.chip-block.text-size-extraBody2 {
  font-size: 20px;
  line-height: 1.6;
}

.chip-block.text-size-body1 {
  font-size: 16px;
  line-height: 1.6;
}

.chip-block.text-size-body2 {
  font-size: 14px;
  line-height: 1.6;
}

.chip-block.text-size-description {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

/* 文字装飾設定 */
.chip-block.chip-text-weight-normal {
  font-weight: 400 !important;
}

.chip-block.chip-text-weight-bold {
  font-weight: 700 !important;
}

/* WordPress エディタ内での調整 */
.wp-block-custom-blocks-chip {
  margin: 0.5rem 0;
}

/* レスポンシブ対応（paragraph.cssと同じ値） */
@media (max-width: 1024px) {
  .chip-block.text-size-extraBody1 {
    font-size: 20px;
  }

  .chip-block.text-size-extraBody2 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .chip-padding-small {
    padding: 0.4rem 1.2rem;
  }

  .chip-padding-medium {
    padding: 0.8rem 1.6rem;
  }

  .chip-padding-large {
    padding: 1rem 2.4rem;
  }

  .chip-padding-max {
    padding: 0.8rem 1.6rem;
  }

  /* テキストサイズのレスポンシブ調整（paragraph.cssと同じ） */
  .chip-block.text-size-extraBody1 {
    font-size: 18px;
  }

  .chip-block.text-size-extraBody2 {
    font-size: 16px;
  }

  .chip-block.text-size-body1 {
    font-size: 14px;
  }

  .chip-block.text-size-body2 {
    font-size: 12px;
  }

  .chip-block.text-size-description {
    font-size: 11px;
  }
}

/* フォーカス効果（アクセシビリティ） */
.chip-block:focus {
  outline: 2px solid var(--custom-text-primary);
  outline-offset: 2px;
}
