@charset "UTF-8";

/* =========================================================
   kk-front.css（front 専用：前立てページ）
   - カードグリッド（枠＝表っぽい）
   - 説明DL
   - dialog
   - FAQは kk-faq.css（ここでは触らない）
   ========================================================= */

.entry-content #front-hero,
.entry-content #front-placket,
.entry-content #front-buttonpos,
.entry-content #front-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: 920px;
}
.entry-content .kk-detail-prose p{
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.9;
  color: #222;
}

.entry-content .kk-note{
  font-size: 12px;
  color: #444;
}

/* ===== グリッド共通：枠（表） ===== */
.entry-content .kk-card-grid{
  margin-top: 16px;
  display: grid;
  gap: 0;                 /* 重要：セル間の隙間をなくす */
  border: 1px solid #333; /* 外枠 */
  background: #fff;
}

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

.entry-content .kk-card__btn{
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
}

/* タイトル：■ */
.entry-content .kk-card__title{
  margin: 0;
  padding: 10px 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid #ddd;
}
.entry-content .kk-card__title::before{
  content: "■";
  display: inline-block;
  margin-right: 8px;
  font-size: 10px;
  vertical-align: middle;
}

/* ===== 前立て：5枚 → 3列（上3/下2） ===== */
.entry-content .kk-card-grid--placket{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.entry-content .kk-card-grid--placket img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 220px;
  margin: 14px auto 10px;
}
/* 3列の右端 */
.entry-content .kk-card-grid--placket .kk-card:nth-child(3n){
  border-right: 0;
}
/* 最下段（最後の2枚） */
.entry-content .kk-card-grid--placket .kk-card:nth-last-child(-n+2){
  border-bottom: 0;
}
/* 下段の右端は5枚目 */
.entry-content .kk-card-grid--placket .kk-card:nth-child(5){
  border-right: 0;
}

/* ===== ボタン位置：3列 ===== */
.entry-content .kk-card-grid--buttonpos{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.entry-content .kk-card-grid--buttonpos img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 260px;
  margin: 14px auto 10px;
}
.entry-content .kk-card-grid--buttonpos .kk-card:nth-child(3n){
  border-right: 0;
}
.entry-content .kk-card-grid--buttonpos .kk-card:nth-last-child(-n+3){
  border-bottom: 0;
}

/* ===== 説明DL ===== */
.entry-content .kk-desc-list{
  margin-top: 18px;
  max-width: 920px;
}
.entry-content .kk-dl{
  margin: 0;
}
.entry-content .kk-dl__row{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e6e6e6;
}
.entry-content .kk-dl__row dt{
  font-weight: 700;
}
.entry-content .kk-dl__row dd{
  margin: 0;
  line-height: 1.9;
}

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

/* ===== dialog ===== */
.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: 900px){
  .entry-content .kk-card-grid--placket,
  .entry-content .kk-card-grid--buttonpos{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-content .kk-card-grid--placket .kk-card,
  .entry-content .kk-card-grid--buttonpos .kk-card{
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
  }
  .entry-content .kk-card-grid--placket .kk-card:nth-child(2n),
  .entry-content .kk-card-grid--buttonpos .kk-card:nth-child(2n){
    border-right: 0;
  }
  .entry-content .kk-card-grid--placket .kk-card:nth-last-child(-n+2),
  .entry-content .kk-card-grid--buttonpos .kk-card:nth-last-child(-n+2){
    border-bottom: 0;
  }

  .entry-content .kk-dl__row{
    grid-template-columns: 1fr;
  }
}

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