@charset "UTF-8";

/* --- 1. 全体コンテナ --- */
.customCardContainer {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  grid-template-rows: auto auto auto 1fr auto;
  justify-content: center;
  gap: 18px;
  margin: 40px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* --- 2. カード本体 --- */
.customCard {
  grid-row: span 5;
  display: grid;
  grid-template-rows: subgrid;
}

.customCardInner {
  grid-row: span 5;
  display: grid;
  grid-template-rows: subgrid;
  width: 100%;
  border: 1.5px solid #000;
  border-radius: 16px;
  padding: 24px;
  background-color: #fff;
  text-align: center;
  box-sizing: border-box;
}

/* --- 3. 各パーツの配置 --- */

.customCardHeader {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customCardHeader .customCardTitle {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #000;
}

.customCardImage {
  grid-row: 2;
  width: 130px;
  height: 130px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customCardImage img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.customCardDivider {
  grid-row: 3;
  width: 100%;
  border: 0;
  border-top: 1.5px solid #000;
}

/* --- 4. 中央テキストエリア --- */
.customCardBody {
  grid-row: 4;
  width: 100%;
  text-align: left;
  margin-top: -20px;
}

.customCardText, .customCardNote {
  font-size: 14px;
}

.customCardCaution li {
  font-size: 14px;
  padding-left: 1em;
  text-indent: -1em;
}

.customCardCaution li::before {
  content: "※";
}

/* --- 5. 下部パーツエリア --- */
.customCardBtnArea {
  grid-row: 5;
  width: 100%;
}

.customCardBtnList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.customCard .customCardBtn {
  margin: 0 auto !important;
}
.customCard .customCardBtn a,
.customCard .customCardBtn a:visited {
  display: block;
  padding: 6px 30px;
  color: #fff !important;
  text-decoration: none;
}

.customCardFooterCaution {
  font-size: 12px;
  margin-top: 10px;
  padding-left: 1em;
  text-indent: -1em;
}
.customCardFooterCaution::before {
  content: "※";
}

.customCardBtn {
  background-color: #008eed;
  color: #fff;
  max-width: 300px;
  margin: 1em auto 0;
  text-align: center;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
}
.customCardBtn:hover {
  opacity: 0.5;
}

.customCardBtn a[target="_blank"]:after {
  content: " ";
  width: 10px;
  height: 10px;
  background-image: url(/merchant/support/logo/img/icon_blank-white.png);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 10px 10px;
  margin-left: 6px;
  display: inline-block;
}

/* --- 6. レスポンシブ：3→2→1のカラム切り替え --- */

/* 2列表示 */
@media (max-width: 1060px) {
  .customCardContainer {
    grid-template-columns: repeat(2, 300px);
  }
}

/* 1列表示（スマホ） */
@media (max-width: 767px) {
  .customCardContainer {
    grid-template-columns: 300px;
    grid-template-rows: auto;
    gap: 16px;
  }
  .mainContents .customCardBtn{
    max-width: 240px;
    font-size: 14px;
  }
  .customCardBody {
    margin-bottom: 0 auto;
  }

  .customCardDivider {
    margin: 0 auto;
  }
}