@charset "UTF-8";

/* =========================================================
   kk-back.css（back 専用）
   - 4枚を枠グリッドで均等配置（タイトルズレ対策）
   - dialog
   - FAQは kk-faq.css
   ========================================================= */

.entry-content #back-hero,
.entry-content #back-types,
.entry-content #back-faq{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* 見出し：Cocoon装飾を外して統一 */
.entry-content .kk-detail-h2{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 34px 0 14px !important;
  font-size: 28px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #111 !important;
}

.entry-content .kk-detail-prose{
  max-width: 980px;
}
.entry-content .kk-detail-prose p{
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.9;
  color: #222;
}

.entry-content .kk-detail-note{
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.9;
}

/* CTA */
.entry-content .kk-cta{
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

/* ===== 4種：枠グリッド ===== */
.entry-content .kk-card-grid{
  margin-top: 16px;
  display: grid;
  gap: 0;
  border: 1px solid #333;
  background: #fff;
}

.entry-content .kk-card-grid--back{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.entry-content .kk-card{
  margin: 0;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 右端の枠 */
.entry-content .kk-card-grid--back .kk-card:nth-child(4n){
  border-right: 0;
}
/* 1行だけなので下線を消す */
.entry-content .kk-card-grid--back .kk-card:nth-last-child(-n+4){
  border-bottom: 0;
}

.entry-content .kk-card__btn{
  display: flex;
  flex-direction: column;
  align-items: center;    /* ←中央寄せ（ズレ対策） */
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
}

.entry-content .kk-card__title{
  width: 100%;
  margin: 0;
  padding: 10px 8px 10px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #333; /* タイトルも枠の一部に */
  background: #fff;
}

/* 画像：高さ差を吸収して揃える */
.entry-content .kk-card__btn img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 240px;
  margin: 12px auto 10px;
}

/* 説明：各セルの文章の余白統一 */
.entry-content .kk-card__desc{
  margin: 0;
  padding: 12px 12px 14px;
  font-size: 13px;
  line-height: 1.9;
  border-top: 1px solid #e6e6e6;
  flex: 1;
}

/* dialog（front/pocket と同系） */
.entry-content .kk-dialog{
  border: 0;
  padding: 0;
  width: min(980px, calc(100% - 32px));
  border-radius: 0;
}
.entry-content .kk-dialog::backdrop{
  background: rgba(0,0,0,.45);
}
.entry-content .kk-dialog__inner{
  position: relative;
  background: #fff;
}
.entry-content .kk-dialog__close{
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 40px;
}
.entry-content .kk-dialog__figure{
  margin: 0;
  padding: 18px 18px 14px;
}
.entry-content .kk-dialog__figure img{
  width: 100%;
  height: auto;
  display: block;
}
.entry-content .kk-dialog__figure figcaption{
  margin-top: 10px;
  font-size: 14px;
  color: #111;
  text-align: center;
}

/* responsive */
@media (max-width: 980px){
  .entry-content .kk-card-grid--back{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .entry-content .kk-card-grid--back .kk-card{
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
  }
  .entry-content .kk-card-grid--back .kk-card:nth-child(2n){
    border-right: 0;
  }
  .entry-content .kk-card-grid--back .kk-card:nth-last-child(-n+2){
    border-bottom: 0;
  }
}

@media (max-width: 560px){
  .entry-content #back-hero,
  .entry-content #back-types,
  .entry-content #back-faq{
    padding: 0 14px;
  }
  .entry-content .kk-detail-h2{
    font-size: 24px !important;
  }
  .entry-content .kk-card-grid--back{
    grid-template-columns: 1fr;
  }
  .entry-content .kk-card{
    border-right: 0;
  }
  .entry-content .kk-card:last-child{
    border-bottom: 0;
  }
}