@charset "utf-8";
/* CSS Document */

/*===============================================
  共通
===============================================*/
img {
  display: block;
  width: 100%;
  height: auto;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/*===============================================
  pc（min-width: 737px）
===============================================*/
@media screen and (min-width: 737px) {
  div#famipay-cp2602 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background-color: rgba(0, 159, 232, 0.4);
    height: 100%;
    /* min-height: 100vh; */
    color: #313131;
    box-sizing: border-box;
    z-index: 100;
    position: relative;
  }
}

/* div#contents {
  position: relative;
  background-color: #b81c0d;
  background-image: repeating-conic-gradient(from 10deg at 50% 100%, rgba(242, 126, 43, 1) 0deg, rgba(214, 21, 16, 1) 20deg, rgba(242, 126, 43, 1) 40deg);
  background-image: url("./bg_pc02.webp");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
} */

div#famipay-cp2602 .tit_area {
  /* width: calc(100vw - 0.7%); */
  /* margin: 0 calc(50% - 50vw); */
  height: 175px;
  background-size: 35px 35px;
  /* background-color: #008933; */
  background-color: #391B09;
}
div#famipay-cp2602 h1 {
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  text-align: center;
  font-size: clamp(1.6rem, 0.172rem + 3.1vw, 2.5rem);
  padding-top: 1.8rem;
  line-height: 1.3;
  color: #fff;
}
div#famipay-cp2602 .h1_sub {
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  text-align: center;
  font-size: clamp(0.95rem, 0.474rem + 1.03vw, 1.25rem);
  margin-top: 1rem;
  color: #fff;
}

/* --- KV --- */
.kv-area {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.campaign-container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* --- grid --- */
.campaign-grid {
  display: grid;
  gap: 100px;
  grid-template-columns: repeat(2, 1fr);
}

/* --- card --- */
.campaign-card {
  display: block;
  text-decoration: none;
  color: #333;
  position: relative;
  transition: transform 0.3s ease;
  transition: all 0.3s ease;
  overflow: hidden;
  overflow: visible;
  opacity: 0;
  transform: translateY(30px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}
.card-inner {
  background: #fff;
  border: 3px solid #381A08;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 10px rgba(56, 26, 8, 0.6);
}
.card-image {
  width: 100%;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-content {
  padding: 15px 20px 20px;
}

.campaign-title {
  font-size: clamp(0.9rem, 0.384rem + 1.12vw, 1.225rem);
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #000;
}
.campaign-title > span {
  font-size: 85%;
}

.campaign-period {
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(0.9rem, 0.821rem + 0.17vw, 0.95rem);
  color: #333;
  border-top: 1px dotted #381A08;
  padding-top: 8px;
  /* background: #f4f4f4; */
  padding: 5px 10px;
  /* border-radius: 4px; */
}
.campaign-period dt {
  font-weight: bold;
  margin-right: 0.5em;
}
.campaign-period dd {
  margin: 0;
}

.card-arrow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 50px 50px;
  border-color: transparent transparent #381A08 transparent;
  transition: border-color 0.3s;
}
.card-arrow::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

/* hover */
.campaign-card:hover {
  transform: scale(1.05) translateY(0) !important;
  text-decoration: none;
  z-index: 10;
  transition: all 0.3s ease;
}
.campaign-card:hover .card-inner {
  border-color: #381A08;
}


/*===============================================
  sp（max-width:736px）
===============================================*/
@media screen and (max-width:736px) {
  div#famipay-cp2602 {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    background-color: rgba(0, 159, 232, 0.2);
  }
  div#famipay-cp2602 .tit_area {
    width: 100vw;
  }
  .w90 {
    margin: 0 15px;
  }

  /* div#contents {
    background-color: #b81c0d;
    background-image: repeating-conic-gradient(from 10deg at 50% 100%, rgba(242, 126, 43, 1) 0deg, rgba(214, 21, 16, 1) 20deg, rgba(242, 126, 43, 1) 40deg);
  } */
   
  div#famipay-cp2602 .tit_area {
    width: 100vw;
    height: 200px;
    background-size: 30px 30px;
  }
  div#famipay-cp2602 h1 {
    padding-top: 1.5rem;
  }
  div#famipay-cp2602 .h1_sub {
    margin-top: 0.8rem;
  }

  /* --- KV --- */
  .campaign-container {
    padding: 30px 10px;
  }
  /* --- grid --- */
  .campaign-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  /* --- card --- */
  .card-content {
    padding: 10px 15px 15px;
  }

  .campaign-period dd {
    margin: 0;
    letter-spacing: -0.06em;
  }

  .card-arrow {
    border-width: 0 0 40px 40px;
  }
  .card-arrow::after {
    bottom: -34px;
    right: 6px;
    width: 10px;
    height: 10px;
  }

  /* hover */
  .campaign-card:hover {
    transform: scale(1.02) translateY(0) !important;
  }
}
