@charset "utf-8";

/* content */
/* ---------------
  common 
------------------*/
:root {
  --spp: 24px;
  --tbp: 32px;
  --pcp: 48px;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

.container {
  max-width: calc(1200px + var(--pcp) * 2);
  margin-right: auto;
  margin-left: auto;
  padding: 0 var(--spp);
}

.pc_only {
  display: none;
}

.text_center {
  text-align: center;
}

@media all and (min-width: 767px) {
  .container {
    padding: 0 var(--tbp);
  }

  .sp_only {
    display: none;
  }

  .pc_only {
    display: initial;
  }
}

@media all and (min-width: 1024px) {
  .container {
    padding: 0 var(--pcp);
  }
}

@media all and (min-width: 1280px) {
  :root {
    scroll-padding-top: 180px;
  }
}

/* デザインの関係でCSS上書き */
.footer-navigation {
  margin-top: 0!important;
}

main {
  background-image: 
      linear-gradient(to right, #ffadba 1px, transparent 1px),
      linear-gradient(to bottom, #ffadba 1px, transparent 1px);
  background-size: 10px 10px;
  padding-bottom: 120px;
}

.enclosed_text_wrap {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translate(0, 20px);
  transition: .4s all ease;
}

.enclosed_text_wrap:has(.done) {
  opacity: 1;
  transform: translate(0);
}

.enclosed_text {
  background-color: #fff;
  color: #000;
  line-height: 1.4;
  padding-top: 4px;
  padding-right: 8px;
  padding-bottom: 4px;
  padding-left: 8px;
  margin-top: -1px;
  display: block;
  width: fit-content;
  position: relative;
  text-box-trim: trim-both;
  letter-spacing: .5px;
}

.enclosed_text::before {
  display: block;
  content: "";
  width: calc(100% + 1px * 2);
  height: calc(100% + 1px * 2);
  position: absolute;
  bottom: -1px;
  left: -1px;
  z-index: -1;
  background-color: #000;
}

/*.enclosed_text::after {
  display: block;
  content: "";
  width: calc(100% + 1px * 2);
  height: calc(100% + 1px * 2);
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 2;
  background-color: #000;
  transition: .4s width ease;
}

.enclosed_text.done::after {
  width: 0;
}
*/

.enclosed_text_wrap .enclosed_text:first-child {
  padding-top: 8px;
  margin-top: 0;
}

.enclosed_text_wrap .enclosed_text:last-child {
  padding-bottom: 8px;
}

.cl_img_box {
  border: 2px solid #000;
  border-radius: 37.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5%;
  aspect-ratio: 1/1;
  background-color: #fff;
}

/* -------------------
  KV
---------------------- */
.cl_kv {
  padding: 35px 0 60px;
}

.cl_kv_copy {
  font-size: 36px;
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.cl_kv_copy_ajust {
  display: inline-block;
  width: 1px;
}

.cl_kv_lead {
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 24px;
}

.cl_kv1 .cl_img_box {
  margin-bottom: 24px;
}

.ck_kv_ttl {
  margin-bottom: 24px;
  font-feature-settings: "palt";
}

.cl_mixed_size_enclosed_text {
  display: inline-flex;
  align-items: flex-end; 
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translate(0, 20px);
  transition: .4s all ease;
}

.cl_mixed_size_enclosed_text:has(.done) {
  opacity: 1;
  transform: translate(0);
}

.cl_mixed_block {
  background-color: white;
  font-weight: 700;
  line-height: 1; /* 余計な隙間をなくす */
  position: relative;
}

.cl_mixed_block::before {
  display: block;
  content: "";
  width: calc(100% + 1px * 2);
  height: calc(100% + 1px * 2);
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: -1;
  background-color: #000;
}

/*.cl_mixed_block::after {
  display: block;
  content: "";
  width: calc(100% + 1px * 2);
  height: calc(100% + 1px * 2);
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 2;
  background-color: #000;
  transition: width .25s ease;
}*/

.cl_mixed_size_enclosed_text .cl_mixed_block:last-child::after {
  transition: width .15s ease .25s;
}

/*.cl_mixed_block.done::after {
  width: 0;
}*/

.ck_kv_ttl_small {
  font-size: 24px;
  padding: 12px 0 8px 8px;
}

.ck_kv_ttl_large {
  font-size: 50px;
  padding: 8px 8px 0;
  text-box-trim: trim-end;
}

.ck_kv_ttl_large span {
  font-size: 32px;
}

@media all and (min-width: 767px) {
  main {
    background-size: 14px 14px;
  }

  .cl_kv {
    padding: 110px 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .cl_kv1 {
    padding-right: min(80px, 13%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .cl_kv2 {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: end;
    gap: 80px;
  }

  .cl_kv_copy {
    margin-bottom: 24px;
  }

  .cl_kv_lead {
    font-size: 15px;
  }

  .ck_kv_ttl_small {
    padding: 16px 0 12px 8px;
    font-size: min(44px, 3vw);
  }

  .ck_kv_ttl_large {
    padding: 16px 8px 0;
    font-size: min(96px, 8vw);
  }

  .ck_kv_ttl_large span {
    font-size: min(64px, 6vw);
  }

  .cl_img_box {
    border-radius: 30px;
    border: 3px solid #000;
  }
}

/* ---------------------
  アンカーリンク
------------------------- */
.cl_anav_list {
  text-align: center;
  list-style: none;
  font-size: 34px;
  padding: 0 0 60px;
  margin: 0;
  line-height: 1.2;
}

.cl_anav_link {
  display: block;
  max-width: 390px;
  border-radius: 999px;
  padding: 22px 15px 20px;
  border: 2px solid #000;
  background-color: #fff;
  text-decoration: none;
  transition: .3s all;
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  margin: 0 auto 20px;
}

.cl_anav_link:hover {
  border: 2px solid rgba(0, 0, 0, 0.6);
  color: rgba(0, 0, 0, 0.6);;
}

@media all and (min-width: 767px) {
  .cl_anav_list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 140px;
  }

  .cl_anav_link {
    padding: 33px 10px 30px;
    font-size: min(26px, 1.8vw);
    margin-bottom: 0;
  }
}

/* ---------------------
  qa
------------------------- */
.cl_qa {
  margin-bottom: 80px ;
}

.cl_qa:last-child {
  margin-bottom: 0;
}

.cl_qa_header {
  position: relative;
}

.cl_qa_number {
  font-size: 42px;
  width: 85px;
  border-radius: 22px;
  position: absolute;
  top: -5px;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cl_qa_number span {
  transform: translate(0, 6px);
}

.cl_qa_ttl {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 18px
}

.cl_qa_desc {
  font-size: 13.6px;
  margin-bottom: 20px;
}

.cl_qa_desc_ajust1 {
  width: 205px;
}

.cl_qa_desc_ajust2 {
  width: 192px
}

.cl_qa_desc .enclosed_text::after {
  transition: width .4s ease .1s;
}

.cl_qa .cl_img_box:not(.cl_qa_number) {
  width: 80%;
  margin: 0 auto;
}

.cl_img_box.qasec1 {
  padding: 30px;
}

.cl_img_box.qasec2 {
  padding: 50px;
}

/* スライダーの大枠（矢印を含むコンテナ） */
.slider_wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-top: -15px;
}

/* コンテンツの外枠（白背景・角丸・枠線） */
.cl_content_frame {
  background-color: #ffffff;
  border: 2px solid #000;
  border-radius: 37.5px;
  padding: 38px;
  overflow: hidden; /* 中身がはみ出ないように */
}

/* 
 * Splideのトラック部分
 * ここに高さを変化させるトランジションを設定します。
 */
.splide__track {
  /* 横の移動アニメーション（デフォルト400ms, イージング）と完全に一致させます */
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* QとAのマークのデザイン */
.cl_badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
  margin-right: 16px;
  padding-top: 2px;
}
.cl_badge-q {
  background-color: #000;
  color: #fff;
}
.cl_badge-a {
  background-color: #bfbfbf;
  color: #fff;
}

/* コンテンツ内のレイアウト */
.cl_qa_item {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.cl_qa_item:last-child {
  margin-bottom: 0;
}
.cl_qa_text_container {
  flex-grow: 1;
}
.cl_qa_title {
  font-size: 13.5px;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}
.cl_qa_description {
  font-size: 10.5px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}
.cl_qa_description:has(img) {
  margin-bottom: 15px;
}

/* 
 * 矢印ボタンのカスタマイズ 
 * 外枠の中央（slider-wrapperの上下中央）に配置
 */
.splide__arrow {
  background: #fff;
  border: 2px solid #000;
  width: 40px;
  height: 40px;
  opacity: 1;
}
.splide__arrow:hover {
  background: #000;
  opacity: 1!important;
}
.splide__arrow svg {
  fill: #000;
  width: 13px;
  height: 13px;
}

.splide__arrow:hover svg {
  fill: #fff;
}
/* デフォルトの矢印位置をオーバーライド */
.splide__arrow--prev {
  left: -20px; 
}
.splide__arrow--next {
  right: -20px;
}

/* ページネーション（ドット）を非表示にする場合は以下を使用 */
.splide__pagination {
  display: none;
}

/* 
 * スライド自体の高さをリセットし、コンテンツに合わせる。
 * active時以外でも高さを正しく計算できるようにするため。
 */
.splide__slide {
  height: max-content;
}

@media all and (min-width: 767px) {
  .cl_qa {
    margin-bottom: 150px ;
  }

  .cl_qa_header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
    align-items: center;
    gap: 44px;
  }

  .cl_qa_ttl {
    font-size: 38px;
    margin-bottom: 15px;
  }

  .cl_qa_desc {
    font-size: 16px;
  }

  .cl_qa_desc_ajust1 {
    width: 230px;
  }

  .cl_qa_desc_ajust2 {
    width: 212px;
  }

  .cl_qa .cl_img_box:not(.cl_qa_number) {
    width: 50%;
    margin: 0;
    padding: 70px;
  }

  .cl_qa .cl_img_box.qasec2 {
    padding: 90px;
  }

  .cl_qa_description img {
    width: 80%;
  }

  .cl_content_frame {
    border-radius: 30px;
    border: 3px solid #000;
  }

  .splide__arrow {
    border: 3px solid #000;
  }
}

@media all and (min-width: 1024px) {
  .cl_qa_number {
    font-size: 96px;
    right: 50%;
    transform: translate(50%, -40%);
    width: 190px;
    height: 160px;
    aspect-ratio: auto;
  }

  .cl_qa_number span {
    transform: translate(0, 9px);
  }

  .slider_wrapper {
    padding: 0 80px; /* スマホ時の矢印スペース調整 */
    margin: -50px auto 0;
  }

  .cl_content_frame {
    padding: 60px;
    border-radius: 50px;
    max-width: 848px;
  }

  .cl_qa_item {
    margin-bottom: 30px;
  }

  .cl_qa_title {
    font-size: 18px;
  }

  .cl_qa_description {
    font-size: 14px;
  }

  .splide__arrow {
    width: 100px;
    height: 100px;
  }

  .splide__arrow svg {
    width: 24px;
    height: 24px;
  }

  .splide__arrow--prev {
    left: -120px; 
  }
  .splide__arrow--next {
    right: -120px;
  }
}