/* ============================================================
   Kuropon カスタムブロック - フロントエンドスタイル
   ============================================================ */

/* ============================================================
   装飾ボックス
   ============================================================ */
.kb-box {
  margin: 1.75em 0;
  border-radius: 8px;
  padding: 16px 20px;
  border-left: 4px solid;
}
.kb-box--point   { background: #edfcfb; border-color: #5ecfca; }
.kb-box--memo    { background: #fffde7; border-color: #f4c400; }
.kb-box--caution { background: #fff8e1; border-color: #ff9800; }
.kb-box--warning { background: #fdecea; border-color: #e53935; }
.kb-box--note    { background: #f3f0ff; border-color: #7c4dff; }

.kb-box__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 8px;
  color: #1a1a1a;
}
.kb-box__icon { font-size: 1.1rem; }
.kb-box__content {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #333;
  margin: 0;
}

/* ============================================================
   CTA
   ============================================================ */
.kb-cta {
  margin: 2em 0;
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
}
.kb-cta--teal { background: linear-gradient(135deg, #5ecfca 0%, #2a9e99 100%); color: #fff; }
.kb-cta--pink { background: linear-gradient(135deg, #e8448a 0%, #c0306a 100%); color: #fff; }
.kb-cta--dark { background: #1a1a1a; color: #fff; }

.kb-cta__heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}
.kb-cta__text {
  font-size: 0.9375rem;
  margin: 0 0 20px;
  opacity: 0.9;
  line-height: 1.7;
}
.kb-cta__btn-wrap { display: flex; justify-content: center; }
.kb-cta__btn {
  display: inline-block;
  padding: 12px 32px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.8);
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.kb-cta--dark .kb-cta__btn { background: rgba(255,255,255,0.1); }
.kb-cta__btn:hover {
  background: rgba(255,255,255,0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   プロフィールカード
   ============================================================ */
.kb-profile-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #f4fbfb;
  border: 1px solid #b8e5e3;
  border-radius: 12px;
  padding: 20px;
  margin: 1.75em 0;
}
.kb-profile-card__avatar { flex-shrink: 0; }
.kb-profile-card__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #5ecfca;
}
.kb-profile-card__avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #d0f0ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.kb-profile-card__info { flex: 1; min-width: 0; }
.kb-profile-card__name { font-weight: 700; font-size: 1.0625rem; margin: 0 0 4px; color: #0d3535; }
.kb-profile-card__role { font-size: 0.8125rem; color: #5ecfca; font-weight: 600; margin: 0 0 10px; }
.kb-profile-card__bio  { font-size: 0.875rem; color: #3a6e6c; line-height: 1.7; margin: 0; }

@media (max-width: 480px) {
  .kb-profile-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================================
   比較テーブル
   ============================================================ */
.kb-comparison { margin: 1.75em 0; overflow-x: auto; }
.kb-comparison__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.kb-comparison__table th,
.kb-comparison__table td {
  padding: 10px 14px;
  border: 1px solid #b8e5e3;
  text-align: center;
}
.kb-comparison__th-label { background: #f4fbfb; }
.kb-comparison__th--left  { background: #5ecfca; color: #fff; font-weight: 700; }
.kb-comparison__th--right { background: #e8448a; color: #fff; font-weight: 700; }
.kb-comparison__label { font-weight: 600; background: #f4fbfb; color: #0d3535; text-align: left; }
.kb-comparison__cell--left  { background: #edfcfb; }
.kb-comparison__cell--right { background: #fdeef4; }

/* ============================================================
   FAQ
   ============================================================ */
.kb-faq { margin: 1.75em 0; }
.kb-faq__item {
  border: 1px solid #b8e5e3;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.kb-faq__q {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: #f4fbfb;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0d3535;
  font-family: inherit;
  transition: background 0.2s;
}
.kb-faq__q:hover { background: #d0f0ee; }
.kb-faq__q[aria-expanded="true"] { background: #5ecfca; color: #fff; }
.kb-faq__q[aria-expanded="true"] .kb-faq__icon { color: #fff; }
.kb-faq__q[aria-expanded="true"] .kb-faq__chevron { transform: rotate(180deg); }
.kb-faq__icon {
  font-weight: 800;
  color: #5ecfca;
  font-size: 1rem;
  flex-shrink: 0;
  min-width: 20px;
}
.kb-faq__icon--a { color: #e8448a; }
.kb-faq__q-text { flex: 1; }
.kb-faq__chevron { transition: transform 0.2s; flex-shrink: 0; font-size: 0.75rem; }
.kb-faq__a {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #b8e5e3;
}
.kb-faq__a[hidden] { display: none; }
.kb-faq__a-text { font-size: 0.9375rem; line-height: 1.75; color: #3a6e6c; flex: 1; }

/* ============================================================
   星レーティング
   ============================================================ */
.kb-rating {
  background: #f4fbfb;
  border: 1px solid #b8e5e3;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 1.75em 0;
}
.kb-rating__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: #0d3535;
  border-bottom: 2px solid #b8e5e3;
  padding-bottom: 8px;
}
.kb-rating__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #d0f0ee;
}
.kb-rating__item:last-of-type { border-bottom: none; }
.kb-rating__label { font-size: 0.875rem; color: #3a6e6c; min-width: 100px; flex-shrink: 0; }
.kb-rating__stars { display: flex; gap: 2px; flex: 1; }
.kb-rating__star { font-size: 1.1rem; color: #d0d0d0; }
.kb-rating__star--on { color: #f4c400; }
.kb-rating__score { font-size: 0.875rem; font-weight: 700; color: #0d3535; min-width: 30px; text-align: right; }
.kb-rating__total {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 0;
  margin-top: 8px;
  border-top: 2px solid #b8e5e3;
}
.kb-rating__total-label { font-size: 0.875rem; font-weight: 700; color: #0d3535; min-width: 100px; }
.kb-rating__score--total { font-size: 1rem; color: #5ecfca; }
.kb-rating__comment { font-size: 0.875rem; color: #5a7a78; line-height: 1.7; margin: 14px 0 0; font-style: italic; }

/* ============================================================
   タイムライン
   ============================================================ */
.kb-timeline { margin: 1.75em 0; padding-left: 8px; }
.kb-timeline__item {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 24px;
}
.kb-timeline__item:last-child { padding-bottom: 0; }
.kb-timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.kb-timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5ecfca;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #5ecfca;
  z-index: 1;
  flex-shrink: 0;
  margin-top: 4px;
}
.kb-timeline__marker::after {
  content: '';
  display: block;
  width: 2px;
  flex: 1;
  background: #b8e5e3;
  margin-top: 6px;
}
.kb-timeline__item:last-child .kb-timeline__marker::after { display: none; }
.kb-timeline__content { flex: 1; min-width: 0; padding-bottom: 8px; }
.kb-timeline__date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #5ecfca;
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}
.kb-timeline__title { font-size: 0.9375rem; font-weight: 700; color: #0d3535; margin: 0 0 6px; }
.kb-timeline__body  { font-size: 0.875rem; color: #3a6e6c; line-height: 1.7; margin: 0; }

/* ============================================================
   吹き出し
   ============================================================ */
.kb-balloon {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 1.25em 0;
}
.kb-balloon--right { flex-direction: row-reverse; }
.kb-balloon__avatar { flex-shrink: 0; text-align: center; }
.kb-balloon__img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #b8e5e3;
  display: block;
}
.kb-balloon__avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d0f0ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.kb-balloon__name {
  display: block;
  font-size: 0.6875rem;
  color: #7ab5b3;
  margin-top: 4px;
  text-align: center;
}
.kb-balloon__bubble {
  position: relative;
  background: #f4fbfb;
  border: 1px solid #b8e5e3;
  border-radius: 12px;
  padding: 12px 16px;
  max-width: calc(100% - 90px);
}
.kb-balloon__bubble::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -9px;
  border: 8px solid transparent;
  border-right-color: #b8e5e3;
  border-left: 0;
}
.kb-balloon__bubble::after {
  content: '';
  position: absolute;
  top: 17px;
  left: -7px;
  border: 7px solid transparent;
  border-right-color: #f4fbfb;
  border-left: 0;
}
.kb-balloon--right .kb-balloon__bubble::before {
  left: auto; right: -9px;
  border-right-color: transparent;
  border-left-color: #b8e5e3;
  border-right: 0; border-left: 8px solid #b8e5e3;
}
.kb-balloon--right .kb-balloon__bubble::after {
  left: auto; right: -7px;
  border-right-color: transparent;
  border-left-color: #f4fbfb;
  border-right: 0; border-left: 7px solid #f4fbfb;
}
.kb-balloon__text { font-size: 0.9375rem; line-height: 1.7; color: #1a1a1a; margin: 0; }

/* ============================================================
   カラムレイアウト
   ============================================================ */
.kb-columns {
  display: grid;
  column-gap: 24px;
  row-gap: 16px;
  margin: 1.75em 0;
}
.kb-columns--2 { grid-template-columns: repeat(2, 1fr); }
.kb-columns--3 { grid-template-columns: repeat(3, 1fr); }

.kb-columns__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0d3535;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #b8e5e3;
}
.kb-columns__body { font-size: 0.875rem; color: #3a6e6c; line-height: 1.7; margin: 0; }

/* カード */
.kb-columns--card .kb-columns__item {
  background: #fff;
  border: 1px solid #b8e5e3;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(94,207,202,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.kb-columns--card .kb-columns__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94,207,202,0.18);
}
/* ボーダー */
.kb-columns--border { gap: 0; }
.kb-columns--border .kb-columns__item {
  padding: 0 20px;
  border-right: 1px solid #b8e5e3;
}
.kb-columns--border .kb-columns__item:first-child { padding-left: 0; }
.kb-columns--border .kb-columns__item:last-child  { padding-right: 0; border-right: none; }
/* 比較 */
.kb-columns--compare { gap: 0; }
.kb-columns--compare .kb-columns__item {
  padding: 18px;
  background: #f4fbfb;
}
.kb-columns--compare .kb-columns__item:first-child {
  border-radius: 10px 0 0 10px;
  border-right: 2px solid #5ecfca;
}
.kb-columns--compare .kb-columns__item:last-child {
  border-radius: 0 10px 10px 0;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .kb-columns--2,
  .kb-columns--3 { grid-template-columns: 1fr; }
  .kb-columns--border .kb-columns__item {
    padding: 12px 0;
    border-right: none;
    border-bottom: 1px solid #b8e5e3;
  }
  .kb-columns--border .kb-columns__item:last-child { border-bottom: none; }
  .kb-columns--compare .kb-columns__item:first-child {
    border-radius: 10px 10px 0 0;
    border-right: none;
    border-bottom: 2px solid #5ecfca;
  }
  .kb-columns--compare .kb-columns__item:last-child {
    border-radius: 0 0 10px 10px;
  }
}
@media (min-width: 601px) and (max-width: 768px) {
  .kb-columns--3 { grid-template-columns: repeat(2, 1fr); }
}
