@charset "UTF-8";

/* //////////////////////////////// 
スマホ
//////////////////////////////////*/
/* -------------------------------- 
まずはじめに
-----------------------------------*/
.summary {
  background: var(--background-color);
  padding: 2rem 0;
}
.summary .speech__babble p {
  padding-top: 0.5rem;
}
.summary .speech__babble p span {
  font-weight: bold;
  -webkit-text-emphasis: filled;
  text-emphasis: filled;
}
.summary .strong {
  text-align: center;
  padding: 3rem 0 6rem;
  background: url(../img/service/summary_bg.png) no-repeat center top;
  background-size: contain;
}
.summary__link {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4rem;
  align-items: center;
}
.summary__link-btn {
  width: 80%;
  position: relative;
}
.summary__link-btn::before {
  content: "";
  width: 50%;
  height: 100px;
  display: block;
  position: absolute;
  top: -45px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  transition: all 0.3s;
}
.summary__link-btn:nth-of-type(1)::before {
  background: url(../img/service/suggestion.svg) no-repeat center;
  background-size: contain;
}
.summary__link-btn:nth-of-type(2)::before {
  width: 35%;
  height: 100px;
  background: url(../img/service/search.svg) no-repeat center;
  background-size: contain;
}
.summary__link-btn a {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.3;
  padding: 4rem 0 3rem;
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--primary-color);
  transition: all 0.3s;
}
.summary__link-btn a:hover,
.summary__link-btn a:active {
  box-shadow: none;
  transform: translate(8px, 8px);
}
.summary__link-btn:has(a:hover)::before,
.summary__link-btn:has(a:active)::before {
  transform: translateX(-50%) translate(8px, 8px);
}
.summary__link-btn a span {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1em 0 0;
}
/* -------------------------------- 
介護施設の無料紹介所
-----------------------------------*/
.referral__flow-wrap {
  padding: 2.5rem 0;
}
.referral__flow-wrap h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  padding-bottom: 1em;
}
.referral__flow {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6rem;
  margin-bottom: 3rem;
}
.referral__flow-items {
  width: 100%;
  background: var(--background-color);
  border-radius: 20px;
  padding: 2rem 0;
  position: relative;
}
.referral__flow-items::after {
  content: "";
  width: 2rem;
  height: 2rem;
  display: block;
  margin: 0 auto;
  background: url(../img/icon/arrow.svg) no-repeat center;
  background-size: contain;
  transform: rotate(90deg) translateX(-47%);
  position: absolute;
  bottom: -5rem;
  left: 47%;
  transition: all 0.5s ease;
  /* animation: arrowBounce 1s ease-in-out infinite; */
}
/* @keyframes arrowBounce {
  0%    { bottom: -5rem; }
  50%   { bottom: -5.5rem; }
  100%  { bottom: -5rem; }
} */
.referral__flow-items:last-of-type::after {
  content: none;
}

.referral__flow-items h5 {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
}
.referral__flow-items p {
  width: 91%;
  margin: 2rem auto 0;
}
.referral__flow-items .referral__flow-items-img {
  width: 40%;
  max-width: 200px;
  /* height: 120px; */
  margin-top: 2rem;
}
.referral__flow-items.referral__flow-items-img img {
  width: 100%;
  height: 100%;
}
.referral__flow-items:nth-of-type(2) .referral__flow-items-img {
  width: 50%;
  margin-top: 3rem;
}
.referral__flow-items:nth-of-type(3) .referral__flow-items-img {
  width: 40%;
  height: fit-content;
}
.referral__flow-items:nth-of-type(4) .referral__flow-items-img {
  width: 30%;
}
.referral__flow-items:last-of-type .referral__flow-items-img {
  width: 40%;
}
.referral__contact {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.referral__contact .btn a {
  width: 20em;
}
.referral__contact-tel.contact-link {
  display: none;
}
/* -------------------------------- 
ぴったりんく
-----------------------------------*/
#pittarink p:nth-of-type(2) {
  margin: 2rem 0;
}
.pittarink__point-lists {
  width: 100%;
  padding: 5rem 5% 3rem;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}
.pittarink__point-item {
  width: 100%;
  padding: 3rem 2rem 2rem;
  background-color: #fff;
  border-radius: 15px;
  position: relative;
}
.pittarink__point-item h4 {
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  width: fit-content;
  padding: 1.5rem 2rem 1.5rem 1.5rem;
  background: url(../img/service/point__bg2.png) no-repeat right center;
  background-size: contain;
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
}
.pittarink__point-item h4 span {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 3px;
}
.pittarink__strength {
  padding: 3rem 0;
}
.pittarink__strength h4 {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}
.pittarink__strength h4 span {
  text-emphasis: filled;
  text-emphasis-color: var(--primary-color);
}
.pittarink__strength-lists {
  width: 100%;
  margin: 2rem 0;
}
.pittarink__strength-item {
  width: 100%;
  padding: 1.5rem 1rem;
  /* height: 12rem; */
  border: 2px dashed var(--primary-color);
  border-radius: 18px;
  margin-bottom: 2rem;
}
.pittarink__strength-item h5 {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 1em;
}
.pittarink__strength-item p span {
  font-size: 0.8rem;
}
.pittarink__link {
  width: 70%;
}
.pittarink__link-lp {
  text-align: center;
}
.pittarink__link-lp a {
  text-decoration: underline;
}

/* //////////////////////////////// 
タブレット
//////////////////////////////////*/

@media screen and (width>=550px) {
  /* -------------------------------- 
まずはじめに
-----------------------------------*/
  .summary {
    padding: 3rem 0;
  }
  .summary__link {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    column-gap: 2rem;
    row-gap: auto;
  }
  .summary__link-btn {
    max-width: 300px;
  }
  /* -------------------------------- 
介護施設の無料紹介所
-----------------------------------*/
  .referral__flow {
    width: 80%;
    max-width: 470px;
    margin: 0 auto 3rem;
  }
  .referral__contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .referral__contact-tel.tel-link {
    display: none;
  }
  .referral__contact-tel.contact-link {
    display: block;
  }

  /* -------------------------------- 
ぴったりんく
-----------------------------------*/
  .pittarink__summary {
    width: fit-content;
    margin: 0 auto;
  }
  .pittarink__point-lists {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 2rem;
  }
  .pittarink__point-item {
    width: 70%;
    max-width: 350px;
  }
  .pittarink__point-item:nth-of-type(3) {
    padding: 3.5rem 2rem 3rem;
  }
  .pittarink__strength h4 {
    font-size: 1.3rem;
  }
  .pittarink__strength-item {
    padding: 2rem 3rem;
    margin-bottom: 3rem;
  }
  .pittarink__strength-item h5 {
    text-align: left;
  }
  .pittarink__link {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    column-gap: 1rem;
  }
  .pittarink__link-lp {
    width: 45%;
    min-width: 260px;
  }
}

/* //////////////////////////////// 
PC
//////////////////////////////////*/

@media screen and (width>=950px) {
  /* -------------------------------- 
  まずはじめに
  -----------------------------------*/
  .summary .strong {
    padding: 6rem 0 8rem;
  }
  .summary__link {
    justify-content: center;
    gap: 3rem;
  }
  .summary__link-btn a span {
    font-size: 1.3rem;
  }
  /* -------------------------------- 
  介護施設の無料紹介所
  -----------------------------------*/
  .referral__flow-wrap h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .referral__flow {
    width: 100%;
    max-width: 750px;
    position: relative;
    left: 50px;
    gap: 0;
  }
  .referral__flow::before {
    content: "";
    position: absolute;
    left: -80px;
    top: -30px;
    bottom: 22px;
    width: 2px;
    border-left: 2px dashed var(--primary-color);
    z-index: 0;
  }
  .referral__flow-items {
    width: 100%;
    padding: 2rem 3rem 2rem 2rem;
    position: relative;
    background: var(--background-color);
    border-radius: 20px;
    margin: 0 0 5rem;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 5%;
  }
  .referral__flow-items div {
    width: 65%;
  }
  .referral__flow-items div h5 {
    text-align: left;
  }
  .referral__flow-items h5 br {
    display: none;
  }
  .referral__flow-items div p {
    width: 100%;
    margin: 1rem 0 0;
  }
  .referral__flow-items::before {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    position: absolute;
    left: -110px;
    top: 1em;
    transform: translateY(-50%);
    z-index: 2;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .referral__flow-items:first-of-type::before {
    content: "1";
  }
  .referral__flow-items:nth-of-type(2)::before {
    content: "2";
  }
  .referral__flow-items:nth-of-type(3)::before {
    content: "3";
  }
  .referral__flow-items:nth-of-type(4)::before {
    content: "4";
  }
  .referral__flow-items:last-of-type::before {
    content: "5";
  }
  .referral__flow-items::after {
    content: none;
  }
  .referral__flow-items .referral__flow-items-img {
    width: 25%;
    height: fit-content;
    margin-top: 0 !important;
  }
  .referral__flow-items:nth-of-type(3) .referral__flow-items-img {
    width: 23%;
    margin-left: 1rem;
  }
  .referral__flow-items:nth-of-type(4) .referral__flow-items-img {
    width: 20%;
    margin-left: 2rem;
  }
  .referral__flow-items:last-of-type .referral__flow-items-img {
    width: 22%;
    margin-left: 1.5rem;
  }

  .referral__flow-items .referral__flow-items-img img {
    object-position: center;
  }
  /* -------------------------------- 
  ぴったりんく
  -----------------------------------*/

  .pittarink__point-lists {
    column-gap: 3%;
    padding: 5rem calc((100% - 850px) / 2) 3rem;
  }
  .pittarink__point-item {
    max-width: 400px;
    padding: 4rem 2rem 3rem;
  }
  .pittarink__point-item:nth-of-type(n + 2):nth-of-type(n-4) {
    padding: 4.5rem 2rem 4rem;
  }
  .pittarink__point-item h4 {
    font-size: 1.1rem;
  }
  .pittarink__point-item h4 span {
    font-size: 2rem;
    font-weight: 600;
  }
  .pittarink__strength-lists {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  .pittarink__strength h4,
  .pittarink__strength h4 span {
    font-size: 1.4rem;
  }
  .pittarink__strength-item h5 {
    font-size: 1.3rem;
  }
  .pittarink__strength-item p span {
    font-size: 1rem;
  }
  .pittarink__link {
    justify-content: center;
    column-gap: 3rem;
  }
  .pittarink__link-lp {
    width: 40%;
  }
}
