@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&family=Noto+Serif+JP:wght@200..900&display=swap');

/* ==========================================================================
   基本設定
   ========================================================================== */
h2:after {
  display: none !important;
}

p em,
h2 em {
  background: linear-gradient(transparent 70%, #FAEE00 60%);
}

.it-keiei-h3 {
  position: relative;
  background: #194893;
  font-family: "M PLUS 1", sans-serif;
  font-weight: 600;
  font-style: normal;
  text-align: center !important;
  color: #FFF !important;
  width: 420px;
  font-size: 1.4em !important;
  padding: 15px;
  margin: 70px auto !important;
  box-shadow: 0 2px 5px 2px rgba(0, 20, 0, 0.2);
}

.it-keiei-h3:before,
.it-keiei-h3:after {
  position: absolute;
  display: block;
  content: "";
  top: 0;
  left: -16px;
  height: 100%;
  width: 32px;
  background: #F18C38;
  transform: skew(-22deg);
}

.it-keiei-h3:after {
  left: calc(100% - 16px);
}

@media screen and (max-width: 600px) {
  .it-keiei-h3 {
    width: 100%;
  }

  .pc600 {
    display: none;
  }
}

/* ==========================================================================
   原価プロジェクト
   ========================================================================== */

/* トップ */
#cost-project-top {
  background: url('https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/cost-project/top-background.png');
  background-size: cover;
  padding-bottom: 140px;
}

.it-keiei-top-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  padding: 80px 0;
}

.it-keiei-top-wrap h1 {
  color: #FFF;
  margin-bottom: 0px !important;
  padding-bottom: 20px !important;
  font-size: 3em !important;
  font-family: "M PLUS 1", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.it-keiei-top-wrap h1 span {
  display: block;
  font-size: 0.4em;
  padding: 5px;
}

.it-keiei-top-wrap h1 + div {
  color: #FFF;
  border: 1px solid #FFF;
  padding: 10px;
}

.it-keiei-top-wrap .image-wrap {
  position: relative;
  content: "";
  width: 100%;
  height: 300px;
  max-width: 500px;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
  box-shadow: 10px 10px rgba(255, 255, 255, 0.3);
}

.it-keiei-top-wrap .image-wrap img {
  position: absolute;
  left: -10%;
  top: 0;
  max-width: 560px;
  object-position: 100%;
}

.it-keiei-top-wrap a {
  display: block;
  background: #F18C38;
  color: #FFF;
  padding: 15px 25px 18px 25px;
  border-color: transparent;
  margin: 50px auto 0 auto;
  width: 320px;
}

.it-keiei-top-wrap p {
  text-align: center;
  font-weight: bold;
  color: #FFF;
  margin-top: 20px;
  font-size: 1.2em;
}

.it-keiei-top-wrap a.cta-top {
  margin-top: 0 !important;
}

.it-keiei-cta {
  background: #194893;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.it-keiei-cta div {
  color: #FFF;
  font-weight: bold;
  font-size: 2em;
  padding-top: 30px;
  text-align: center;
}

.it-keiei-cta .btn {
  margin-top: 30px !important;
  margin-bottom: 30px !important;
  background: #F18C38;
  color: #FFF;
  border-color: transparent;
  font-size: 1.1em;
}

@media screen and (max-width: 1200px) {
  .it-keiei-top-wrap .title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 55%;
  }

  .it-keiei-top-wrap .image-wrap {
    box-shadow: 0px 0px rgba(255, 255, 255, 0);
    width: 45%;
    text-align: center;
  }
}

@media screen and (max-width: 600px) {
  #cost-project-top {
    position: static;
    padding: 0;
    height: auto;
  }

  .it-keiei-top-wrap h1 + div {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 20px;
    margin: 20px;
  }

  .it-keiei-top-wrap {
    position: relative;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
  }

  .it-keiei-top-wrap .title-wrap {
    position: static;
    z-index: 2;
    width: 100%;
    background: rgba(31, 72, 147, 0.6);
    padding: 50px 0;
  }

  .it-keiei-top-wrap .image-wrap {
    position: absolute;
    top: 0;
    border-radius: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(1px);
  }

  .it-keiei-top-wrap .image-wrap img {
    object-fit: cover;
    left: 0;
    top: 0;
  }
}

/* お悩み */

/* 背景 */
#cost-project-problems {
  content: "";
  width: 100%;
  height: 340px;
  position: relative;
  background: #FFF;
  background: linear-gradient(90deg, #FFF 0%, #CCE7FF 100%);
}

#cost-project-problems:before {
  position: absolute;
  display: block;
  content: "";
  top: -149px;
  left: 0;
  width: 100vw;
  height: 150px;
  background: linear-gradient(90deg, #FFF 0%, #CCE7FF 100%);
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}

#cost-project-problems div {
  position: absolute;
  width: 540px;
  background: #FFF;
  border: 4px solid #E8EEF8;
  border-radius: 15px;
  top: -100px;
  left: calc(50% - 270px);
  padding: 30px 50px;
  box-shadow: 2px 2px 10px 5px rgba(0, 30, 0, 0.1);
}

#cost-project-problems div h2 {
  color: #1B4A97;
  text-align: center;
  font-size: 1.4em;
  margin-bottom: 20px;
}

#cost-project-problems div ul li {
  position: relative;
  padding: 5px 0 5px 25px;
  border-bottom: 1px dashed #00366B;
  font-weight: bold;
}

#cost-project-problems div ul li:last-child {
  border-bottom-color: transparent;
}

#cost-project-problems div ul li:before {
  display: block;
  position: absolute;
  top: 8px;
  left: 0;
  content: "";
  background: url("https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/cost-project/check.svg");
  background-size: contain;
  width: 18px;
  height: 18px;
}

@media screen and (max-width: 600px) {
  #cost-project-problems:before {
    display: none;
  }

  #cost-project-problems div {
    position: static;
    width: 100%;
    border-radius: 0;
    padding: 30px 10px;
  }
}

#cost-project-about {
  background: #F4F7FF;
}

#cost-project-about h2 {
  position: relative;
  color: #1B4A97;
  text-align: center;
  font-size: 1.4em;
  line-height: 2em;
  padding-top: 50px;
  padding-bottom: 30px;
  max-width: 850px;
  margin: auto;
  margin-bottom: 20px;
  border-bottom: 3px solid #FFF;
}

#cost-project-about h2:before {
  display: block;
  content: "";
  position: absolute;
  top: -20px;
  left: calc(50% - 50px);
  width: 0;
  height: 0;
  border-style: solid;
  border-color: #9BAACA transparent transparent transparent;
  border-width: 40px 50px 0px 50px;
}

.cost-project-about-description {
  max-width: 900px;
  margin: auto;
  background: url("https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/cost-project/about-image.png");
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: center right;
  padding: 20px 0 60px 0;
}

.cost-project-about-description ul {
  background: #FFF;
  outline: 15px solid #FFF;
  margin: 30px 0;
  max-width: 400px;
  font-weight: bold;
  line-height: 2em;
}

.cost-project-about-description ul li:before {
  content: "・";
}

.cost-project-about-description .image-wrap {
  width: 40%;
}

.cost-project-about-description .image-wrap img {
  object-fit: contain;
}

@media screen and (max-width: 600px) {
  #cost-project-about {
    padding-top: 60px;
  }

  #cost-project-about h2 {
    padding: 40px 20px;
    text-align: left;
  }

  .cost-project-about-description {
    padding: 20px;
    padding-top: 220px;
    background-size: 340px;
    background-position: top left;
  }

  .cost-project-about-description p {
    text-align: justify;
  }
}

#cost-project-point {
  background: #F4F7FF;
  padding-top: 20px;
  padding-bottom: 80px;
}

#cost-project-point > div {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}

#cost-project-point > div dl {
  background: #FFF;
  max-width: 480px;
  border: 2px solid #CCC;
  border-radius: 15px;
  padding: 15px 24px 20px 24px;
  margin: 10px;
}

#cost-project-point > div dl dt {
  color: #12347C;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  padding-bottom: 5px;
  border-bottom: 2px solid #12347C;
  margin-bottom: 20px;
}

#cost-project-point > div dl dd {
  width: 75%;
  font-size: 0.9em;
  text-align: justify;
}

#cost-project-point > div dl:first-child {
  background-image: url("https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/cost-project/point1.png");
  background-size: 20%;
  background-repeat: no-repeat;
  background-position: 95% 90%;
}

#cost-project-point > div dl:nth-child(2) {
  background-image: url("https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/cost-project/point2.png");
  background-size: 20%;
  background-repeat: no-repeat;
  background-position: 95% 90%;
}

#cost-project-point > div dl:nth-child(3) {
  background-image: url("https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/cost-project/point3.png");
  background-size: 20%;
  background-repeat: no-repeat;
  background-position: 95% 90%;
}

#cost-project-point > div dl:nth-child(4) {
  background-image: url("https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/cost-project/point4.png");
  background-size: 20%;
  background-repeat: no-repeat;
  background-position: 95% 90%;
}

/* フロー */
.it-keiei-flow {
  padding-top: 30px;
  padding-bottom: 30px;
}

.it-keiei-flow p + ol {
  margin-top: 50px;
}

.it-keiei-flow h2 {
  margin-bottom: 30px !important;
}

.it-keiei-flow p {
  text-align: center;
  font-size: 1.1em;
}

.it-keiei-flow p span {
  background: linear-gradient(transparent 0%, #FAEE00 30%);
  font-weight: bold;
}

.cost-project-steps {
  background: #FFF !important;
  border-radius: 15px;
  border: 2px solid #999;
  max-width: 850px;
  width: 100%;
  margin: 50px auto;
  padding-bottom: 30px;
  overflow: hidden;
}

.cost-project-steps h3 {
  position: relative;
  margin-top: 0 !important;
  color: #FFF;
  font-size: 1em !important;
  padding-left: 100px !important;
}

.cost-project-steps h3 dt {
  font-size: 1.2em !important;
  color: #FFF;
}

.cost-project-steps h3 dd {
  font-size: 1em !important;
  font-weight: normal;
  color: #FFF;
}

.cost-project-steps > div {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.cost-project-steps div dl {
  padding: 0 20px;
  text-align: justify;
}

.cost-project-steps div dt {
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 4px solid;
  padding: 5px 0;
  border-image: linear-gradient(to right, rgba(25, 72, 147, 1), #FFF) 1;
}

.cost-project-steps div dd {
  padding: 10px 0;
}

.cost-project-steps hr {
  border-bottom: 1px dashed #CCC;
  background: transparent;
  margin: 15px 0;
}

.cost-project-steps h3:before {
  position: absolute;
  top: 22px;
  left: 0;
  padding: 5px 10px;
  background: #FFF;
  content: "STEP 1";
  font-weight: bold;
  font-size: 1.1em;
  color: #000;
  border-radius: 0 5px 5px 0;
}

#cost-project-step1 {
  background: #4E6CAC;
}

#cost-project-step2 {
  background: #194893;
}

#cost-project-step3 {
  background: #12347C;
}

#cost-project-step1:before {
  content: "STEP 1";
}

#cost-project-step2:before {
  content: "STEP 2";
}

#cost-project-step3:before {
  content: "STEP 3";
}

.cost-project-steps-image {
  position: relative;
  border-radius: 15px 0 0 15px;
  overflow: hidden;
  width: 240px;
  flex-shrink: 0;
}

.cost-project-steps-image:before {
  position: absolute;
  display: block;
  content: "";
  height: 100%;
  width: 50%;
  right: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

#cost-project-step3 .cost-project-steps-image + div {
  display: none;
}

@media screen and (max-width: 600px) {
  #cost-project-flow p {
    font-size: 1em;
  }

  .cost-project-steps > div {
    flex-wrap: wrap;
  }

  .cost-project-steps-image {
    border-radius: 5px;
    margin: 10px auto 20px auto;
  }

  .cost-project-steps-image:before {
    display: none;
  }

  .cost-project-steps {
    border-radius: 0;
  }

  .cost-project-steps h3 {
    padding-left: 80px !important;
  }

  #cost-project-step1:before {
    content: "STEP \A 1";
    white-space: pre;
    text-align: center;
  }

  #cost-project-step2:before {
    content: "STEP \A 2";
    white-space: pre;
    text-align: center;
  }

  #cost-project-step3:before {
    content: "STEP \A 3";
    white-space: pre;
    text-align: center;
  }
}

#it-keiei-other {
  background: #F4F7FF;
  padding: 30px 0;
}

#it-keiei-other > div {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 900px;
  margin: 40px auto;
  background: #FFF;
  border: 2px solid #CCC;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 2px 5px 10px 2px rgba(0, 30, 0, 0.1);
}

#it-keiei-other div dl {
  margin: 0 20px;
}

#it-keiei-other div dl dt {
  font-size: 1.2em;
  font-weight: bold;
  color: #12347C;
  text-align: center;
  width: 400px;
  padding-top: 15px;
  flex-shrink: 0;
}

#it-keiei-other div dl dd {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px 10px 20px 10px;
}

#it-keiei-other div dl dt div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  color: #FFF;
  background: #12347C;
  padding: 10px 10px 12px 10px;
  margin: 10px 0;
}

#it-keiei-other .btn {
  margin-top: 20px !important;
  padding-top: 0 !important;
}

#it-keiei-other div .image-wrap {
  max-width: 400px;
}

#it-keiei-other div .image-wrap img {
  object-fit: contain;
}

@media screen and (max-width: 600px) {
  #it-keiei-other div {
    flex-wrap: wrap-reverse;
    margin: 0 auto;
    border-radius: 0;
  }

  #it-keiei-other div dl {
    margin: 0;
  }

  #it-keiei-other div dl dt {
    font-size: 1.1em;
    width: 100%;
  }

  #it-keiei-other div dl dd {
    margin: 0;
  }
}

/* ==========================================================================
   お悩み相談
   ========================================================================== */
#free-consultation-top {
  background: #1A4792;
  background: linear-gradient(90deg, #1A4792 50%, #22D3EE);
}

#free-consultation-top em {
  background: #FD9134;
  padding: 10px;
  padding-top: 0;
  margin-right: 10px;
  border-radius: 10px;
}

#free-consultation-about {
  padding: 20px 0;
  background: #E9EFF8;
}

.it-keiei-h3.free-consultation-h3 {
  background: #5474A2 !important;
}

.it-keiei-h3.free-consultation-h3:before,
.it-keiei-h3.free-consultation-h3:after {
  background: #F18C38;
}

.management-analysis-soudan {
  display: flex;
  justify-content: space-between;
  border: 1px solid #5779AA;
  background: #FFF;
  padding: 30px;
  max-width: 1000px;
  min-height: 250px;
  margin: 20px auto;
}

.time-charge {
  margin-top: 80px;
}

.management-analysis-soudan dl {
  width: 60%;
}

.management-analysis-soudan dt {
  position: relative;
  color: #1A4792;
  font-size: 1.5em;
  font-weight: bold;
  padding: 0 0 20px 65px;
  border-bottom: 2px solid #1A4792;
}

.time-charge dt:before {
  position: absolute;
  left: 0;
  top: 0;
  content: "";
  width: 50px;
  height: 50px;
  background-image: url("https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/free-consultation/charge.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.management-data dt:before {
  position: absolute;
  left: 0;
  top: 0;
  content: "";
  width: 50px;
  height: 50px;
  background-image: url("https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/free-consultation/data.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.cost-management dt:before {
  position: absolute;
  left: 0;
  top: 0;
  content: "";
  width: 50px;
  height: 50px;
  background-image: url("https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/free-consultation/cost.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.management-analysis-soudan dd {
  position: relative;
  max-width: 600px;
  padding: 20px;
  padding-bottom: 0;
}

.management-analysis-soudan dd div {
  position: absolute;
  left: 20px;
  bottom: -40px;
  font-size: 0.8em;
  max-width: 90%;
  color: #5779AA;
}

.management-analysis-soudan dd sup {
  font-size: 0.8em;
  vertical-align: top;
}

.management-analysis-soudan dd div:before {
  content: "※ ";
}

.management-analysis-soudan dd span {
  font-size: 0.8em;
}

.management-analysis-soudan > div {
  border: 1px solid #5779AA;
  color: #5779AA;
  background: #DAEDE5;
  width: 35%;
}

.management-analysis-soudan > div div {
  color: #FFF;
  background: #5779AA;
  padding: 10px 20px;
  text-align: center;
  font-size: 1.2em;
}

.management-analysis-soudan > div p {
  text-align: right;
  padding-right: 20px;
}

.management-analysis-soudan ul {
  padding: 20px;
}

.management-analysis-soudan ul li {
  line-height: 2em;
}

.management-analysis-soudan ul li:before {
  content: "● ";
}

/* ==========================================================================
   経営分析コンサルティング
   ========================================================================== */

/* トップ */
#management-analysis-top {
  background: #000000;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 50%, rgba(34, 2, 166, 1) 100%);
}

#management-analysis-top .image-wrap img {
  left: 0;
}

#management-analysis-about {
  background: #EEE;
  padding: 20px 0;
  padding-bottom: 80px;
}

#management-analysis-about > div,
#free-consultation-about .about-descript {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

#management-analysis-about > div div,
#free-consultation-about .about-descript div {
  margin: 20px;
}

#management-analysis-about > div div:first-child {
  margin-top: 0;
}

#management-analysis-about > div div:nth-child(3) {
  padding-bottom: 30px;
  border-bottom: 2px solid #999;
}

#management-analysis-about > div div ul {
  font-weight: bold;
  color: #5779AA;
  font-size: 1.2em;
  margin-bottom: 10px;
}

#management-analysis-about > div div p {
  padding-left: 15px;
}

#management-analysis-top figure img {
  border-radius: 20px 0 0 20px;
  max-width: 500px;
}

#management-analysis-about figure,
#free-consultation-about .about-descript figure {
  max-width: 400px;
  box-shadow: 5px 5px 15px -9px #777777;
  outline: 8px solid #FFF;
}

#management-analysis-merit {
  background-image: url("https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/management-analysis/merit-background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
  padding: 20px 0;
}

#management-analysis-merit > ul {
  display: flex;
  align-items: center;
  flex-direction: column;
}

#management-analysis-merit > ul li {
  border: 1px solid #5779AA;
  padding: 30px;
  background: #FFF;
  margin: 15px 0;
  width: 100%;
  max-width: 800px;
}

#management-analysis-merit dl {
  border: 1px solid #5779AA;
  background: #DAEDE5;
  border-radius: 20px;
  color: #5779AA;
  margin: 20px auto 80px auto;
  padding: 30px;
  width: 100%;
  max-width: 800px;
}

#management-analysis-merit dl li {
  padding: 3px 0;
}

#management-analysis-merit dl dt {
  font-weight: bold;
  padding-bottom: 15px;
  font-size: 1.2em;
}

#management-analysis-merit dl dd ul li:before {
  content: "● ";
}

#management-analysis-merit em {
  background: linear-gradient(transparent 70%, #FAEE00 60%);
  font-weight: bold;
}

.it-keiei-h3.management-analysis-h3 {
  background: #555 !important;
}

.it-keiei-h3.management-analysis-h3:before,
.it-keiei-h3.management-analysis-h3:after {
  background: red;
}

.it-keiei-about-techs {
  display: flex;
  justify-content: space-between;
  margin: 80px auto;
  border: 1px solid #12347C;
  background: #FFF;
  box-shadow: 3px 4px 7px -2px #777777;
  max-width: 1000px;
}

.it-keiei-about-techs div {
  font-size: 1.2em;
  display: flex;
  color: #12347C;
  font-weight: bold;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  text-align: center;
}

.it-keiei-about-techs div a.link {
  margin: 30px 0;
}

#sec_flow > p {
  margin-bottom: 50px;
}

@media screen and (max-width: 600px) {
  #management-analysis-about > div div ul {
    font-size: 1em;
  }

  #management-analysis-top {
    margin: 0;
  }

  #management-analysis-top figure img {
    max-width: 1000px;
  }

  #management-analysis-top figure {
    max-width: 1000px;
    width: 100%;
  }

  #management-analysis-merit > ul li {
    margin: 0;
  }

  #management-analysis-merit > dl {
    margin: 0;
    border-radius: 0;
  }

  #management-analysis-about {
    padding: 10px 0;
  }

  #management-analysis-about div {
    flex-wrap: wrap-reverse;
    justify-content: center;
  }

  .it-keiei-about-techs {
    flex-wrap: wrap-reverse;
  }
}

/* ==========================================================================
   メインページ
   ========================================================================== */
#it-keiei-main-top {
  background: #000;
  color: #FFF;
}

#it-keiei-main-top > div {
  position: relative;
  max-width: 1200px;
  margin: auto;
  background: url('https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/top/top-image.png');
  background-size: contain;
  background-position: bottom 0 left 280px;
  background-repeat: no-repeat;
}


#it-keiei-main-top > div:after {
  display: block;
  content: "";
  position: absolute;
  width: 30px;
  height: 100%;
  top: 0;
  right: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

/* --- 修正箇所: h1 → .main-banner-content --- */
#it-keiei-main-top div .main-banner-content {
  background: #000000;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
  width: 60%;
  padding: 80px 0;
  padding-left: 100px;
}

/* --- 修正箇所: strong → h1 --- */
#it-keiei-main-top div .main-banner-content h1 {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 4.2em;
  position: relative;
  margin-bottom: 50px;
  color: #FFF; /* 明示的に指定 */
  font-weight: bold; /* strongの太字を維持 */
}

/* --- 修正箇所: h1 p → .main-banner-content p --- */
#it-keiei-main-top div .main-banner-content p {
  font-size: 1.4em;
  padding-left: 10px;
}

/* --- 修正箇所: h1 figure → .main-banner-content figure --- */
#it-keiei-main-top div .main-banner-content figure {
  width: 420px;
  margin-bottom: 30px;
}

#it-keiei-main-top div .main-banner-content figure img {
  object-fit: contain;
}

/* --- 修正箇所: strong:before/after → h1:before/after --- */
#it-keiei-main-top div .main-banner-content h1:before {
  position: absolute;
  display: block;
  content: "";
  background: rgba(255, 255, 255, 0.5);
  height: 12px;
  width: 270px;
  left: 0;
  bottom: -25px;
}

#it-keiei-main-top div .main-banner-content h1:after {
  position: absolute;
  display: block;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.5) 100%);
  height: 12px;
  width: 130px;
  left: 270px;
  bottom: -25px;
}


#it-keiei-main-about .it-keiei-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 0;
  background-color: #1A4792;
  background-image: url('https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/top/top-background.png');
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  color: #FFF;
}

#it-keiei-main-about {
  background: #E9EFF8;
  padding-bottom: 50px;
}

#it-keiei-main-about .it-keiei-description h2 {
  color: #FFF !important;
  margin-bottom: 30px;
  padding: 0;
}

#it-keiei-main-about .it-keiei-description div {
  line-height: 2em;
  margin-bottom: 20px;
  font-size: 1.1em;
}

#it-keiei-strength {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #000;
  background-image: url('https://www.techs-s.com/wp-content/themes/technoa/img/product/it-keiei/top/about-background.png');
  background-position: top right;
  background-repeat: no-repeat;
  padding: 100px 0 120px 0;
}

#it-keiei-strength h2 {
  width: 100%;
  max-width: 600px;
  margin: auto;
  margin-bottom: 30px;
  padding: 10px;
  background: #FFF100;
  color: #000;
}

#it-keiei-strength div {
  width: 100%;
  max-width: 550px;
  color: #FFF;
  margin: 20px 0;
  line-height: 2em;
  font-size: 1.1em;
}

#about-free-consultation {
  padding: 80px 0;
}

#about-free-consultation h2 {
  margin-bottom: 0;
  font-size: 1.5em;
}

#about-free-consultation h2 div {
  background: #12347C;
  color: #FFF;
  padding: 10px;
  margin: 20px auto;
  max-width: 500px;
}

.main-free-consultation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 950px;
  border: 2px solid #DDD;
  box-shadow: 0 2px 5px 1px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  background: #FFF;
  margin: auto;
  padding: 25px;
  flex-wrap: wrap;
}

.main-free-consultation figure {
  width: 40%;
}

.main-free-consultation div {
  line-height: 2em;
  width: 60%;
  display: flex;
  justify-content: center;
}

.main-consultation-merits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.main-consultation-merits dl {
  border: 1px solid #DDD;
  border-radius: 20px;
  background: #FFF;
  overflow: hidden;
  margin: 50px 20px;
}

.main-consultation-merits dl dt {
  background: #D7494D;
  text-align: center;
  color: #FFF;
  line-height: 1.8em;
  font-weight: bold;
  font-size: 1.1em;
  padding: 10px;
}

.main-consultation-merits dl dd {
  padding: 25px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-consultation-merits dl dd div:first-child,
.main-consultation-merits dl dd div:nth-child(2) {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid #5474A2;
  font-weight: bold;
  width: 300px;
  height: 80px;
  line-height: 2em;
}

.main-consultation-merits dl dd div:first-child {
  position: relative;
  margin-bottom: 60px;
}

.main-consultation-merits dl dd div:first-child:before {
  display: inline-block;
  content: "";
  position: absolute;
  width: 100px;
  height: 60px;
  bottom: -55px;
  background: #D7494D;
  clip-path: polygon(0% 50%, 20% 50%, 20% 30%, 80% 30%, 80% 50%, 100% 50%, 50% 100%);
}

.main-consultation-merits dl dd div:nth-child(2) {
  background: #DAEDE5;
  color: #5474A2;
}

.main-consultation-merits dl dd div:nth-child(3) {
  display: flex;
  margin: 20px auto;
  line-height: 2em;
}

.main-consultation-merits dl dd figure {
  max-width: 200px;
}

#about-free-consultation .btn,
#main-analysis .btn,
#main-cost-ptoject .btn {
  display: block;
  margin: 50px auto;
  font-size: 1.2em;
  max-width: 450px;
  padding: 30px;
}

.btn:hover {
  text-decoration: none;
}

.btn span {
  display: block !important;
  font-size: 0.8em;
  padding-top: 5px;
}

#main-analysis,
#main-cost-ptoject {
  padding: 80px 0;
}

#main-analysis h2,
#main-cost-ptoject h2 {
  line-height: 2em;
  font-size: 1.5em;
}

#main-analysis h2 div,
#main-cost-ptoject h2 div {
  background: #12347C;
  color: #FFF;
  width: 100%;
  max-width: 500px;
  margin: 10px auto;
}

#main-analysis > div,
#main-cost-ptoject > div {
  border: 1px solid #DDD;
  border-radius: 20px;
  background: #FFF;
  display: flex;
  align-items: center;
  padding: 30px;
  max-width: 1000px;
  margin: auto;
}

#main-analysis > div figure,
#main-cost-ptoject > div figure {
  width: 400px;
  flex-shrink: 0;
}

#main-analysis > div p,
#main-cost-ptoject > div p {
  padding: 20px;
  font-size: 1.1em;
}

#main-analysis {
  background: #F4F7FF;
}

#main-cost-ptoject {
  background: #EAEFFF;
}

@media screen and (max-width: 1120px) {
  #it-keiei-main-top div .main-banner-content h1 {
    font-size: 3.5em;
  }

  #it-keiei-main-top div {
    width: 100%;
    background-size: auto 100%;
    background-position: 50px 0;
  }

  #it-keiei-main-top div:before {
    top: 0;
    height: 100%;
  }

  #it-keiei-main-top div .main-banner-content h1:before {
    width: 200px;
    left: 0;
  }

  #it-keiei-main-top div .main-banner-content h1:after {
    width: 100px;
    left: 200px;
  }

  .main-free-consultation {
    justify-content: center;
    max-width: 500px;
  }

  .main-free-consultation figure {
    width: 100%;
    max-width: 300px;
  }

  .main-free-consultation div {
    width: 100%;
    max-width: 500px;
    padding: 20px;
  }

  .main-free-consultation div br {
    display: none;
  }

  #main-analysis > div,
  #main-cost-ptoject > div,
  .main-free-consultation {
    flex-wrap: wrap;
  }

  #main-analysis > div p,
  #main-cost-ptoject > div p,
  .main-consultation-merits dl dt,
  #it-keiei-strength div,
  #it-keiei-main-about .it-keiei-description div {
    font-size: 1em;
  }

  #main-analysis > div figure,
  #main-cost-ptoject > div figure {
    width: 100%;
    max-width: 400px;
  }
}

@media screen and (max-width: 700px) {
  #it-keiei-main-top div {
    background-size: cover;
  }

  #it-keiei-main-top div .main-banner-content {
    width: 100%; /* h1 → .main-banner-content */
  }

  #it-keiei-main-top div .main-banner-content p {
    font-size: 1.2em; /* h1 p → .main-banner-content p */
    padding-left: 5px;
  }

  #it-keiei-main-top div .main-banner-content figure {
    width: 300px; /* h1 figure → .main-banner-content figure */
    margin-bottom: 20px;
  }

  #about-free-consultation .btn,
  #main-analysis .btn,
  #main-cost-ptoject .btn {
    font-size: 1em;
    padding: 12px 10px 10px 10px;
  }

  #it-keiei-main-about .it-keiei-description h2 {
    font-size: 1.4em;
  }

  #main-analysis h2,
  #main-cost-ptoject h2,
  #about-free-consultation h2,
  #it-keiei-strength h2 {
    font-size: 1.2em;
  }

  #it-keiei-main-top div h1 p {
    font-size: 1.2em;
    padding-left: 5px;
  }
}

@media screen and (max-width: 420px) {
  #it-keiei-main-top div {
    background-position: center;
  }

  #it-keiei-main-top div:before,
  #it-keiei-main-top div:after {
    display: none;
  }

  #it-keiei-main-top div .main-banner-content {
    padding: 50px 25px;
    background: rgba(0, 0, 0, 0.6);
  }

  .it-keiei-description div,
  #it-keiei-strength div {
    padding: 20px;
  }

  .it-keiei-description div br {
    display: none;
  }

  #main-analysis div,
  #main-cost-ptoject div {
    border-radius: 0;
  }
}