@charset "UTF-8";

/* カラー変数 */
:root {
  --primary-color: #233BB5;
  --ma-primary-color: #216fb8;
  --base-color: #4f4e4e;
  --accent-color: #FCA005;

  --ma-primary-color-2: #1c5386;
  --ma-primary-color-3: #eff2f8;
}

/* ヒーロー */
.hero {
  background-image: url(../../img/ma_hero-bg_sp.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height:100%;
  position: relative;
}

.hero::before {
  content: '';
  background: rgba(255, 255, 255, 0.7);
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 600px;
  top: 0;
  left: 0;
  opacity: 0.5;
}

.hero_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 600px;
  padding: 64px 0;
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: auto;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__title--top {
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.07em;
  color: var(--ma-primary-color);
}

.hero__title--gray {
  font-weight: 600;
  color: var(--ma-primary-color-2);
}

.hero__title--blue {
  font-weight: 600;
  color: var(--ma-primary-color);
}

.hero__title--bottom {
  font-weight: 600;
  font-size: 14px;
  line-height: 2;
  color: var(--base-color);
}

/* セクションタイトル */
.title {
  color: var(--ma-primary-color);
  font-weight: 600;
  font-size: 24px;
  text-align: center;
}

.title span {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ma-primary-color-2);
}

/* 「問題」セクション */
.problem {
  display: flex;
  flex-direction: column;
  gap: 44px;
  width: 100%;
}

.problem__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
}

.problemCards {
  display: flex;
  flex-direction: column;
  gap: calc(14px + 18.5px);
  padding-top: 18.5px;
  width: 100%;
}

.problemCard {
  background-color: #fff;
}

.problemCard label {
  background-color: var(--ma-primary-color-2);
  color: #fff;
}

.problemCard h3 {
  color: var(--ma-primary-color);
}

.problemCard img {
  width: 160px;
  margin: auto;
}

.problemArrow {
  color: var(--ma-primary-color-2);
}

.problemText {
  color: var(--base-color);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
}

.problemList {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
}

.problemList__title {
  position: relative;
  padding: 12px;
  color: #fff;
  background-color: var(--ma-primary-color);
  border-radius: 5px;
  width: 100%;
  text-align: center;
  max-width: 520px;
}

.problemList__title:before {
  content: "";
  position: absolute;
  top: 98%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 0;
  border-top: 10px solid var(--ma-primary-color);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.problemList__title span {
  font-weight: 600;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0.05em;
}

.problemList__body {
  font-size: 16px;
}

.problemImage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.problemImage__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--base-color);
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.05em;
}

.problemImage__head span {
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: 0.05em;
  color: var(--ma-primary-color-2);
}

.problemImage__body {
  position: relative;
}

.problemImage__body img {
  z-index: -1;
  width: 100%;
  height: auto;
  margin: 0 auto;
  max-width: 520px;
}

.problemImage__label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: start;
  position: absolute;
  bottom: 20px;
}

.problemImage__label span {
  font-weight: 700;
  font-size: 16px;
  background-color: var(--ma-primary-color);
  color: #fdfdfc;
  padding: 8px;
}

/* 「ポイント」セクション */
.point {
  display: flex;
  flex-direction: column;
  gap: 44px;
  width: 100%;
}

.point__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
}

.pointCards {
  display: flex;
  flex-direction: column;
  gap: calc(14px + 18.5px);
  padding-top: 18.5px;
  width: 100%;
}

.pointCard {
  background-color: var(--ma-primary-color-3);
}

.pointCard label {
  background-color: var(--ma-primary-color-2);
  color: #fff;
}

.pointCard h3 {
  color: var(--base-color);
}

.pointCard h3 span {
  display: block;
  color: var(--ma-primary-color);
  font-size: 20px;
}

.pointContents {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pointContents__img {
  height: 180px;
  width: auto;
}

.pointContents__img--key {
  height: 140px;
  width: auto;
}

.pointText {
  color: var(--base-color);
  font-weight: 600;
  font-size: 14px;
  padding-left: clamp(14px, 3vw, 16px);
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-indent: -1em;
}

.awardHistory {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.awardHistory__title {
  color: var(--ma-primary-color-2);
  font-size: 20px;
  font-weight: 600;
  width: 100%;
}

.awardHistory__text {
  color: var(--base-color);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
}

.awardHistory__images {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.award {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--base-color);
}

.award img {
  width: 120px;
}

.awardHistory__list {
  font-size: 14px;
}

.awardHistory__list--col {
  display: none;
}

/* 「事例」セクション */
.caseStudy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.caseStudy__wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.caseStudyCard {
  background-color: #fff;
}

.caseStudy__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.caseStudy__title {
  position: relative;
  padding: 12px;
  color: #fff;
  background-color: var(--ma-primary-color);
  border-radius: 5px;
  width: 100%;
  text-align: center;
  max-width: 320px;
}

.caseStudy__title:before {
  content: "";
  position: absolute;
  top: 98%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 0;
  border-top: 10px solid var(--ma-primary-color);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.caseStudy__title span {
  font-weight: 600;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0.05em;
}

.caseStudy__header label {
  background-color: var(--ma-primary-color-2);
}

.caseStudy__header img {
  width: 120px;
}

.caseStudy__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.caseStudy__label {
  font-size: 16px;
  color: var(--ma-primary-color-2);
  font-weight: 600;
}

.caseStudy__text {
  color: var(--base-color);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
}

.caseStudy__list {
  font-size: 14px;
}

/* 「流れ」セクション */
.chart {
  display: flex;
  justify-content: center;
}

.chart img {
  width: 100%;
  max-width: 460px;
}

/* 「料金」セクション */
.price {
  display: flex;
  flex-direction: column;
  gap: 44px;
  width: 100%;
}

.price__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
}

.price__title {
  color: var(--base-color);
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ma-primary-color-2);
}

.price__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  font-size: 14px;
}

.price__note {
  font-size: 12px;
  padding-top: 4px;
}

.price__body p {
  color: var(--base-color);
  font-weight: 600;
  line-height: 1.6;
}

.priceTable {
  width: 100%;
}

.priceTable caption {
  color: var(--ma-primary-color-2);
}

.priceTable thead {
  background-color: var(--ma-primary-color-2);
  color: #fff;
}

.priceTable .table__body {
  background-color: #fff;
  color: var(--base-color);
}

.priceCards {
  display: flex;
  flex-direction: column;
  gap: calc(14px + 18.5px);
  padding-top: 18.5px;
  width: 100%;
}

.priceCard {
  background-color: #fff;
}

.priceCard label {
  background-color: var(--ma-primary-color-2);
  color: #fff;
}

.priceCard h3 {
  color: var(--ma-primary-color);
}

.priceContents {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  flex-grow: 1;
}

.figure {
  display: flex;
  flex-direction: column;
  height: 200px;
}

.figure__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--base-color);
  font-size: 14px;
}

.figure__item--full {
  height: 100%;
}

.figure__item--split:first-child {
  height: calc(100%*3/15);
}

.figure__item--split:nth-child(2) {
  height: calc(100%*12/15);
}

.graph {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e1e9ff;
  width: 88px;
  border: 2px solid var(--ma-primary-color);
  font-weight: 600;
  text-align: center;
  height: 100%;
}

.figure__item--split:first-child .graph {
  border-bottom: none;
}

.figure__item--split:nth-child(2) .graph {
  border-top: 2px dashed #738dbd;
  background-color: #ededfd;
}

.formula {
  font-weight: 600;
}

.formula span {
  font-weight: 600;
  color: var(--ma-primary-color);
}

.total {
  font-weight: 600;
  font-size: 14px;
  color: var(--base-color);
}

.total span {
  color: var(--ma-primary-color);
  font-size: 16px;
  font-weight: 600;
  margin-left: 4px;
}

/* 「フォーム」セクション */
.formTitle span {
  color: var(--base-color);
}

.consultation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  width: 100%;
}

.formContents {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 700px;
  margin: auto;
}

.formContents img {
  width: 180px;
}

.formContentsCard {
  background-color: #fff;
  font-size: 14px;
  max-width: 400px;
}

.formContentsList {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.formContents p {
  color: var(--base-color);
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  text-align: center;
}

.form__title,
.policy__link {
  color: var(--ma-primary-color);
}

.form__label--must,
.form__button {
  background-color: var(--ma-primary-color);
}

.lineCard {
  background-color: #fff;
}

.line {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.line__text {
  font-size: 16px;
  color: var(--base-color);
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.line__image {
  width: 160px;
}

@media (min-width: 576px) {
  /* 「問題」セクション */
  .problemCards {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 14px;
  }
  
  .problemCard {
    width: calc((100% - 14px)/2);
  }

  /* 「ポイント」セクション */
  .pointCards {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 14px;
  }
  
  .pointCard {
    width: calc((100% - 14px)/2);
  }

  .awardHistory {
    align-items: center;
  }

  .awardHistory__title {
    text-align: center;
  }

  .awardHistory__images {
    flex-direction: row;
    margin-bottom: 18px;
  }

  .award {
    flex-direction: column;
    font-size: 14px;
    text-align: center;
  }

  .award img {
    height: 110px;
    width: auto;
  }

   /* 「フォーム」セクション */
  .formContents {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .formContentsCard {
    width: calc(100% - (18px + 180px));
  }
}

@media (min-width: 768px) {
  /* ヒーロー */
  .hero {
    background-image: url(../../img/ma_hero-bg_pc.jpg);
    background-position-x: center;
    background-position-y: 0%;
  }

  .hero::before {
    height: 700px;
  }

  .hero_wrapper {
    justify-content: end;
    align-items: unset;
    height: 700px;
    padding: 82px 32px;
  }

  .hero__title--top {
    font-size: 44px;
  }

  .hero__title--bottom {
    font-size: 24px;
  }

  /* タイトル */
  .title {
    font-size: 30px;
  }
  
  .title span {
    font-size: 18px;
  }

  /* 「問題」セクション */
  .problem {
    gap: 56px;
  }

  .problem__wrapper {
    gap: 36px;
  }

  .problemCards {
    column-gap: 16px;
  }
  
  .problemCard {
    width: calc((100% - 16px*2)/3);
  }

  .problemText {
    font-size: 16px;
  }

  .problemList__title span {
    font-size: 20px;
  }

  .problemList__body {
    display: flex;
    gap: 24px;
  }

  .problemImage__head {
    font-size: 24px;
    gap: 10px;
  }

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

  .problemImage__label span {
    font-size: 24px;
    padding: 12px;
  }

  /* 「ポイント」セクション */
  .point {
    gap: 56px;
  }

  .point__wrapper {
    gap: 36px;
  }

  .pointCards {
    column-gap: 16px;
  }
  
  .pointCard {
    width: calc((100% - 16px)/2);
  }

  .pointText {
    font-size: 16px;
  }

  .awardHistory {
    gap: 36px;
  }

  .awardHistory__title {
    font-size: 24px;
  }

  .awardHistory__text {
    font-size: 16px;
  }

  .awardHistory__images {
    gap: 20px;
  }

  .award {
    font-size: 16px;
  }

  /* 「事例」セクション */
  .caseStudy {
    flex-direction: row;
    align-items: start;
    gap: 20px;
  }

  .caseStudy__header img {
    width: 140px;
  }

  .caseStudy__label {
    font-size: 18px;
  }
  
  .caseStudy__text {
    font-size: 16px;
  }
  
  .caseStudy__list {
    font-size: 16px;
  }

  /* 「流れ」セクション */
  .chart img {
    max-width: 660px;
  }

  /* 「料金」セクション */
  .price {
    gap: 56px;
  }

  .price__wrapper {
    gap: 36px;
  }

  .price__title {
    font-size: 20px;
  }

  .price__body {
    gap: 36px;
    font-size: 18px;
  }

  .price__note {
    font-size: 14px;
  }

  .priceCards {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 16px;
  }
  
  .priceCard {
    width: calc((100% - 16px)/2);
  }

  .figure__item {
    font-size: 16px;
  }

  .total {
    font-size: 16px;
  }

  .total span {
    font-size: 18px;
  }

  /* 「フォーム」セクション */
  .formContents {
    font-size: 16px;
  }

  .formContents img {
    width: 280px;
  }

  .formContentsCard {
    width: calc(100% - (18px + 280px));
    font-size: 16px;
  }

  .formContents p {
    font-size: 16px;
  }

  .line {
    flex-direction: row;
    gap: 44px;
  }
  
  .line__text {
    font-size: 18px;
  }
  
  .line__image {
    width: 100px;
  }
}

@media (min-width: 992px) {
  /* 「問題」セクション */
  .problemImage__body img {
    padding-right: 80px;
  }

  .problemImage__label {
    right: -160px;
    bottom: 30px;
  }

  /* 「ポイント」セクション */
  .pointCard {
    width: calc((100% - 16px*2)/3);
  }

  .pointCard h3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 84px;
  }

  .award {
    flex-direction: row;
    font-size: 14px;
    text-align: left;
  }

  .awardHistory__list--row {
    display: none;
  }

  .awardHistory__list--col {
    display: flex;
    font-size: 12px;
  }
}