/* ------------------------------
  page: service
  section: common
------------------------------ */
.service-heading {
  font-size: 24px;
  color: var(--color-main);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}
.service-heading .number {
  font-size: 60px;
}

@media (max-width: 599px) {
  .service-heading {
    font-size: 21px;
  }
  .service-heading .number {
    font-size: 40px;
  }
}

/* ------------------------------
  page: service
  section: about
------------------------------ */
.service-about {
  position: relative;
  margin-bottom: 100px;
}
.service-about__image {
  position: absolute;
  content: "";
  top: 168px;
  right: 0;
  width: 48%;
  height: 70%;
  object-fit: cover;
  filter: grayscale();
}

.service-about__heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-main);
}

.service-about__content {
  position: relative;
  line-height: 2;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding-right: 58%;
}

@media (max-width: 899px) {
  .service-about__image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
  }
  .service-about__content {
    padding-right: 0;
  }
}

@media (max-width: 599px) {
  .service-about__heading {
    font-size: 21px;
  }
}

@media (max-width: 540px) {
  .service-about {
    margin-bottom: 0;
  }
  .service-about__heading {
    font-size: 18px;
  }
}

/* ------------------------------
  page: service
  section: nayami
------------------------------ */
.service-nayami {
  position: relative;
  background-color: #e6e6e6;
}
.service-nayami-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 50px;
  max-width: 720px;
  margin-inline: auto;
}
.service-nayami-list__item {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: calc((100% - 100px) / 3);
  aspect-ratio: 173 / 200;
  background-color: #333;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.service-nayami-list__item:nth-child(4),
.service-nayami-list__item:nth-child(5) {
  margin-top: -20px;
}

/* color */
.service-nayami-list__item:nth-child(1),
.service-nayami-list__item:nth-child(5) {
  background-color: #03004c;
}
.service-nayami-list__item:nth-child(2),
.service-nayami-list__item:nth-child(4) {
  background-color: #00449b;
}
.service-nayami-list__item:nth-child(3) {
  background-color: #231815;
}

.service-nayami-list__item p {
  line-height: 1.5;
  font-size: 14px;
  color: white;
  white-space: nowrap;
}

.service-nayami-list__item .br-sp {
  display: none;
}

@media (max-width: 746px) {
  .service-nayami-list {
    gap: 0 20px;
  }
  .service-nayami-list__item:nth-child(4),
  .service-nayami-list__item:nth-child(5) {
    margin-top: -30px;
  }
  .service-nayami-list__item p {
    font-size: 12px;
  }
}

@media (max-width: 699px) {
  .service-nayami-list {
    gap: 0 10px;
  }
  .service-nayami-list__item:nth-child(4),
  .service-nayami-list__item:nth-child(5) {
    margin-top: -40px;
  }
  .service-nayami-list__item {
    width: calc((100% - 20px) / 3);
  }
}

@media (max-width: 560px) {
  .service-nayami-list__item:nth-child(4),
  .service-nayami-list__item:nth-child(5) {
    margin-top: -30px;
  }
  .service-nayami-list__item p {
    font-size: 10px;
  }
  .service-nayami-list__item .br-sp {
    display: block;
  }
}

@media (max-width: 470px) {
  .service-nayami-list__item:nth-child(4),
  .service-nayami-list__item:nth-child(5) {
    margin-top: -20px;
  }
}

/* ------------------------------
  page: service
  section: approach
------------------------------ */
.service-approach__content {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 40px;
  align-items: center;
  padding: 0 60px;
}

@media (max-width: 799px) {
  .service-approach__content {
    grid-template-columns: 1fr;
  }
  .service-approach__image {
    width: 60%;
    margin: 0 auto;
  }
}

@media (max-width: 599px) {
  .service-approach__content {
    padding: 0;
  }
  .service-approach__image {
    width: 80%;
  }
}

/* ------------------------------
  page: service
  section: feature
------------------------------ */
.service-feature-list {
  display: grid;
  gap: 32px;
  counter-reset: item;
}
.service-feature-list__item {
  position: relative;
  display: flex;
  gap: 60px;
  align-items: center;
  padding: 40px 40px 40px 130px;
  background: linear-gradient(#285490, #10386b);
  color: #fff;
  counter-increment: item;
}
.service-feature-list__item:nth-child(odd) {
  flex-direction: row-reverse;
}

/* %表示のテキスト */
.service-feature-list__bigtext {
  width: 32%;
  color: #bf9c46;
}
.service-feature-list__bigtext-title {
  font-size: 26px;
  white-space: nowrap;
}
.service-feature-list__bigtext-number {
  font-family: "All-Round-Gothic";
  font-size: 120px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.service-feature-list__bigtext-number span {
  font-size: 64px;
}

/* テキスト */
.service-feature-list__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.03em;
}
.service-feature-list__title {
  position: relative;
  font-size: 24px;
  font-weight: 700;
}
.service-feature-list__title::before {
  position: absolute;
  top: -0.375em;
  left: -1.375em;
  content: "0" counter(item);
  font-family: "All-Round-Gothic";
  font-weight: 100;
  font-size: 70px;
  color: #c9caca;
}

@media (max-width: 899px) {
  .service-feature-list__item {
    gap: 60px;
    padding: 24px 24px 24px 100px;
  }
  .service-feature-list__bigtext {
    width: 32%;
  }
  .service-feature-list__bigtext-title {
    font-size: 21px;
    line-height: 1.5;
  }
  .service-feature-list__bigtext-number {
    font-size: 80px;
  }
  .service-feature-list__bigtext-number span {
    font-size: 44px;
  }
  .service-feature-list__title {
    font-size: 21px;
  }
  .service-feature-list__title::before {
    font-size: 60px;
  }
}

@media (max-width: 799px) {
  .service-feature-list {
    gap: 50px;
  }
  .service-feature-list__item {
    padding: 40px 24px;
    flex-direction: column-reverse !important;
    gap: 20px;
  }
  .service-feature-list__bigtext {
    width: 100%;
    text-align: center;
  }
  .service-feature-list__item:nth-child(odd) .service-feature-list__bigtext {
    margin-left: auto;
  }
  .service-feature-list__item:nth-child(even) .service-feature-list__bigtext {
    margin-right: auto;
  }
  .service-feature-list__title::before {
    position: absolute;
    top: -108px;
    left: auto;
    right: 0px;
    font-size: 70px;
  }
}

/* 改行調整 */
.service-feature-list-br {
  display: none;
}
@media (max-width: 420px) {
  .service-feature-list-br {
    display: block;
  }
}

/* ボタン */
.service-feature-button {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}
.service-feature-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: var(--color-main);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
}
.service-feature-button__link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ------------------------------
  page: service
  section: flow
------------------------------ */
.service-flow {
  background-color: #e6e6e6;
  margin-bottom: 40px;
}

.service-flow-heading {
  font-weight: 700;
  font-size: 24px;
  border-bottom: 1px solid currentColor;
  margin-bottom: 3rem;
}

.service-flow-list {
  display: flex;
}
.service-flow-list__item,
.service-flow-list__arrow {
  flex: 1;
}
.service-flow-list__arrow {
  display: flex;
  justify-content: center;
  align-items: center;
}
.service-flow-list__arrow span {
  width: 0;
  height: 0;
  border-style: solid;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 26px solid #004098;
  border-right: 0;
}
.service-flow-list__item {
  display: flex;
  justify-content: center;
  border: 2px solid #004098;
  background-color: #fff;
  padding: 2rem 0 1.5rem;
}
.service-flow-list__item p {
  writing-mode: vertical-rl;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 21px;
}
.service-flow-list__item p.u-ls-25 {
  letter-spacing: 2.5em;
}

.service-flow-note {
  margin-top: 4rem;
}
.service-flow-note p {
  position: relative;
  padding-left: 1rem;
  font-size: 14px;
}
.service-flow-note p::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "■";
}

@media (max-width: 899px) {
  .service-flow-list__arrow {
    flex: 0 0 40px;
  }
  .service-flow-list__arrow span {
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 15px;
  }
}

@media (max-width: 799px) {
  .service-flow-list__item p {
    font-size: 18px;
    line-height: 1.3;
    padding-right: 4px;
  }
}

@media (max-width: 699px) {
  .service-flow-list__arrow {
    flex: 0 0 30px;
  }
  .service-flow-list__item p {
    font-size: 17px;
  }
}

@media (max-width: 599px) {
  .service-flow-list__item {
    padding: 1rem 0 0.5rem;
  }
  .service-flow-list__item.--lg {
    flex: 0 0 50px !important;
  }
  .service-flow-list__arrow {
    flex: 0 0 16px;
  }
  .service-flow-list__arrow span {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 9px;
  }
  .service-flow-list__item p {
    font-size: 12px;
    line-height: 1.2;
  }
  .service-flow-note p {
    padding-left: 1rem;
    font-size: 12px;
  }
}

/* ------------------------------
  page: service
  section: profile
------------------------------ */
.service-profile {
  margin: 40px 0 60px;
}
.service-profile-grid {
  display: grid;
  grid-template-columns: 30% 43%;
  gap: 40px;
  padding: 40px 0;
}
.service-profile__image {
  display: inline-block;
}
.service-profile-text__name {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}
.service-profile-text__detail {
  display: grid;
  gap: 0.5rem;
  font-weight: 400;
}

@media (max-width: 899px) {
  .service-profile-grid {
    grid-template-columns: 40% 50%;
  }
}

@media (max-width: 699px) {
  .service-profile-grid {
    grid-template-columns: 1fr;
  }
}
