@charset "UTF-8";

/* ===== 導入リード文 ===== */
.service_intro {
  text-align: center;
  line-height: 2;
  font-size: 1.5rem;
  font-weight: 700;
}

.service_intro p:first-child {
  margin-bottom: 36px;
}

/* ===== カード一覧 ===== */
.service_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.service_card {
  position: relative;
  min-height: 365px;
  border-radius: 16px;
  padding: 24px;
  color: var(--white);
  background-color: var(--card-color);
  border: 4px solid var(--white);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15);
}

.service_card_label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.service_card_num {
  flex-shrink: 0;
  font-family: "Atma", cursive;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--black);
  font-weight: 700;
}

.service_card_en {
  font-family: "Atma", cursive;
  font-size: 2.185rem;
  font-weight: 600;
  line-height: 1;
}

.service_card_title {
  margin-bottom: 16px;
  line-height: 0;
}

.service_card_title img {
  width: auto;
  /*height: 42px;*/
  display: block;
  position: relative;
  z-index: 1;
}

.service_card_body {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.service_card_text {
  padding-right: 225px;
  font-size: 1.125rem;
  line-height: 1.65;
}

.service_card_img {
  position: absolute;
  right: -15px;
  top: 95px;
  width: 245px;
  height: 245px;
  border-radius: 50%;
  border: 4px solid var(--card-color);
  overflow: hidden;
}

.service_card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ===== カードごとの色 ===== */
.service_card--1 { --card-color: #96D354; }
.service_card--2 { --card-color: #EB284C; }
.service_card--3 { --card-color: #F54D3D; }
.service_card--4 { --card-color: #EF8534; }
.service_card--5 { --card-color: #9D4EB0; }
.service_card--6 { --card-color: #45BAD1; }
.service_card--7 { --card-color: #28AA6D; }
.service_card--8 { --card-color: #FFC138; }

.service_card--8 .service_card_text {
  padding-right: 0;
}


/* ===== カレンダー誘導セクション ===== */
.calendar_cta {
  background-color: var(--main-dark);
}

.calendar_cta_panel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  background-color: #F5B92D;
  border-radius: 8px;
  padding: 32px 48px 60px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.calendar_cta_body {
  flex: 1;
  color: var(--black);
}

.calendar_cta_label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.calendar_cta_label .en {
  font-family: "Atma", cursive;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.calendar_cta_label .jp {
  font-size: 1.25rem;
  font-weight: 700;
}

/* 「//」プレフィックス（CSSで描画＝文字化けしない） */
.calendar_cta_label .jp::before {
  content: "// ";
}

.calendar_cta_title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.calendar_cta_text {
  font-size: 1.25rem;
  font-weight: 600;
}

.calendar_cta_btn {
  position: absolute;
  left: 56px;
  bottom: -25px;
  box-shadow: 0 5px 0 var(--white);
}

.calendar_cta_btn:hover {
  box-shadow: 0 0 0 var(--white);
}

.calendar_cta_img {
  flex-shrink: 0;
  width: 420px;
  padding: 8px;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.calendar_cta_img img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 768px) {

  .service_list {
    grid-template-columns: 1fr;
  }

  .service_intro {
    font-size: 1.1rem;
  }

  .service_card_en {
    font-size: 1.65rem;
  }

  /* タイトル画像は #2・#5 以外を 47px に統一 */
  .service_card_title img {
    height: 47px;
  }
  .service_card--2 .service_card_title img,
  .service_card--5 .service_card_title img {
    height: auto;
  }

  .service_card_img {
    width: 160px;
    height: 160px;
    top: auto;
    bottom: -40px;
  }

  /* flex を解除（画像はabsoluteなのでOK） */
  .service_card_body {
    display: block;
  }

  .service_card_text {
    padding-right: 0;
    font-size: 1.1rem;
  }

  /* 1文目（最初のp）は全幅。2文目以降だけ右下の円画像をよける */
  .service_card_text p + p {
    padding-right: 150px;
  }

  /* #8 は画像が無いので余白不要 */
  .service_card--8 .service_card_text p + p {
    padding-right: 0;
  }

  /* #2 は2文目まで全幅、3文目だけ右をよける */
  .service_card--2 .service_card_text p:nth-child(2) {
    padding-right: 0;
  }

  .calendar_cta_panel {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 32px 24px 56px;
  }

  /* en の下で「//（jp）」を改行（flex横並びをやめて縦積み） */
  .calendar_cta_label {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  /* 文字サイズはTOPの代理人カレンダーエリアに合わせる */
  .calendar_cta_label .en { font-size: 2.5rem; }
  .calendar_cta_label .jp { font-size: 1.1rem; }
  .calendar_cta_title { font-size: 1.5rem; }
  .calendar_cta_text { font-size: 1.1rem; }

  .calendar_cta_img {
    width: 100%;
    order: -1;
  }

  .calendar_cta_btn {
    left: 24px;
    bottom: -22px;
  }
}
