/* genAI genaiCard */
.genaiCard {
  margin-bottom: 120px;
}

hr {
  margin: 8px 40% 30px 40%;
  width: 20%;
}

.text-bold {
  font-weight: bold;
}

.genaiCard p {
  text-align: center;
  margin-bottom: 40px;
}

.genaiCardBody {
  text-align: left;
  margin-bottom: 80px;
  margin: 0 10% 80px 10%;
}

@media (max-width: 959px) {
  .genaiCardBody {
    margin: 0 0 80px;
  }

  .brPConly {
    display: none;
  }
}

/* genAI genaiExplanation */
.genaiExplanation li {
  list-style-type: disc;
  margin-bottom: 5px;
}

.genaiExplanation li li {
  list-style-type: none;
}

.genaiExplanation .item-text {
  margin-bottom: 10px;
  line-height: 1.5rem;
}

/* genai genaiRules */
.genaiRules {
  flex-wrap: wrap;
  justify-content: center;
}

.genaiRules .item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  background: #f8f8f8;
  margin: 20px 0;
}

.genaiRules .item-img {
  width: 240px;
  height: 180px;
  background: #ffffff;
  margin: 20px 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.genaiRules .item-text {
  flex-basis: 100%;
  margin: 15px 20px 20px;
}

@media (min-width: 960px) {
  .genaiRules .item {
    flex-wrap: nowrap;
  }

  .genaiRules .item-img {
    margin: 20px 15px 20px 20px;
    flex-shrink: 0;
  }

  .genaiRules .item-text {
    flex: 1;
    margin: 20px 20px 20px 0;
  }
}

/* SRE sreExample */
.genaiExample {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.genaiExample .item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-basis: 517px;
  background: #f8f8f8;
  margin: 10px;
}

.genaiExample .item-img {
  width: 160px;
  height: 180px;
  background: #ffffff;
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.genaiExample .item-text {
  flex-basis: 317px;
  margin: 10px;
}

.genaiCard .item-text .title {
  text-align: left;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}

.genaiCard .item-text .body {
  text-align: left;
  font-size: 15px;
}

.genaiCard .item-text .note {
  margin-top: 10px;
  text-align: left;
  font-size: 11px;
}

.genaiExplanation ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

/* genaiPractice */
.genaiPractice {
  margin-bottom: 40px;
}



.genaiPractice>.item {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 959px) {
  .genaiPractice>.item {
    grid-template-columns: 1fr;
  }
}

.genaiPractice .item .item-text {
  padding: 20px;
  border: 1px solid #000;
}

.genaiPractice .item .item-text .subtitle {
  font-size: 14px;
  font-weight: bold;
  text-align: left;
  padding-bottom: 10px;
}

.genaiPractice .item .item-text .title {
  font-size: 20px;
  text-align: left;
  color: #9f1960;
  letter-spacing: 0.1rem;
}

.genaiPractice .item .item-text .title span {
  font-size: 16px;
  padding-left: 15px;
}

.genaiPractice .item .item-text .body {
  text-align: left;
  padding-bottom: 10px;
  border-bottom: 1px solid #dcdddd;
}

.genaiPractice .item .item-text .genaiDevtools .title {
  font-size: 12px;
  color: #4c4c4c;
  padding: 10px 0;
  margin: 0;
}

.genaiPractice .item .item-text .genaiDevtools .text {
  font-size: 12px;
  text-align: left;
}

/* table */
.genaiTable {
  margin-bottom: 120px;
}

.genaiTable p {
  margin-bottom: 20px;
}

.genaiTable table {
  margin-bottom: 40px;
  border-color: #dcdddd;
  font-size: 14px;
  width: 100%;
}

.genaiTable table p {
  margin-left: 0px;
}

.genaiTable table thead tr th {
  background-color: #f5f5f5;
  font-weight: bold;
  padding: 15px;
  min-width: 165px;
}

.genaiTable table tbody tr th,td {
  padding: 15px;
  min-width: 150px;
  text-align: left;
  vertical-align: top;
}

.genaiTable table tbody tr th .title {
  text-align: left;
  font-weight: bold;
  margin-bottom: 10px
}

.genaiTable table tbody tr th .text {
  font-size: 12px;
  text-align: left;
  margin-bottom: 0;
}

.genaiTable .roopEngineering {
  background-color: #FBF7F8;
}

.genaiTable .roopEngineering .title {
  color: #9f1960;
}

.genaiTable .roopEngineering .emphasize {
  font-size: 12px;
  background-color: #9f1960;
  color: #ffffff;
  padding: 5px;
  margin: 10px 0 0 0;
  display: inline-block;
  width: auto;
}

@media screen and (max-width: 959px) {
  .genaiTable table {
    border: 0px solid #dcdddd;
  }

  /* テーブルのヘッダーを非表示 */
  .genaiTable thead {
    display: none;
  }

  /* table・tbody・trをブロック化 */
  .genaiTable,
  .genaiTable tbody,
  .genaiTable tr {
    display: block;
    width: 100%;
  }

  /* trを1つのカードにする */
  .genaiTable tbody tr {
    margin-bottom: 24px;
    border: 1px solid #ddd;
  }

  /* th・tdを縦に並べる */
  .genaiTable tbody th,
  .genaiTable tbody td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 15px;
  }

  /* 最後のセルの下線を消す */
  .genaiTable tbody tr > *:last-child {
    border-bottom: none;
  }

  /* tdの前に項目名を表示 */
  .genaiTable tbody td::before {
    content: attr(data-label);
    display: block;
    color: #9fa0a0;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
  }
}

.genaiTable .item-text {
  text-align: left;
  margin-bottom: 10px;
}

.genaiCard .genaiCardBody .genaiExplanation h3 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

/* genaiGoals */
.genaiGoals {
  background-color: #f5f5f5;
  padding: 30px;
  text-align: left;
}

.genaiGoals .title {
  font-weight: bold;
  margin-bottom: 20px;
}

.genaiGoals ol {
  padding-left: 20px
}

.genaiGoals li {
  list-style-type: decimal;
  margin-bottom: 5px;
  padding-left: 5px;
}

/* genaiDevProcess genaiSteps */
.genaiDevProcess {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 40px;
}

@media screen and (max-width: 959px) {
  .genaiDevProcess {
    grid-template-columns: 1fr;
  }
}

.genaiSteps {
  background-color: #f5f5f5;
  padding: 20px;
  text-align: center;
}

.genaiSteps .title {
  color: #9f1960;
  margin-bottom: 10px;
}

/* genaiFAQ */
.genaiFAQ {
  border-bottom: 1px solid #dcdddd;
  padding: 20px 0;
}

.genaiFAQ:first-child {
  border-top: 1px solid #dcdddd;
}

.genaiQuestion {
  font-weight: bold;
  margin-bottom: 10px
}

.genaiQuestion span {
  color: #9f1960;
}

/* genaigenaiPhases */
/* PC,SP共通 */
* {
  box-sizing: border-box;
}

.genaiPhases {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto 20px;
}

.phase {
  --phase-color: #e8e8e8;

  position: relative;
}

.phase01 {
  --phase-color: #eeeeee;
}

.phase02 {
  --phase-color: #e1e1e1;
}

.phase03 {
  --phase-color: #d5d5d5;
}

.phase04 {
  --phase-color: #a51e4b;
}

.phase-header {
  background: var(--phase-color);
  text-align: center;
}

.phase-number {
  display: block;
  color: #888;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.phase04 .phase-number,
.phase04 h2,
.phase04 .phase-period {
  color: #fff;
}

.phase-header h2 {
  margin: 8px 0;
  color: #111;
  line-height: 1.3;
}

.phase:last-child h2 {
  color: #ffffff;
}

.phase-period {
  display: block;
  color: #888;
  font-size: 18px;
}

.phase-content h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  font-weight: bold;
}

.role {
  border-top: 1px solid #ddd;
  padding: 28px 0;
}

.role:last-child {
  border-bottom: 0;
}

.role h4 {
  margin: 0 0 14px;
  color: #999;
  font-size: 14px;
}

.role p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  min-height: 42px;
}

/* PC */
@media (min-width: 960px) {
  .genaiPhases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
  }

  .phase {
    min-width: 0;
  }

  /* 矢羽の見出し */
  .phase-header {
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0,
        calc(100% - 36px) 0,
        100% 50%,
        calc(100% - 36px) 100%,
        0 100%,
        36px 50%);
  }

  /* 一番左だけ左側の切り欠きをなくす */
  .phase:first-child .phase-header {
    clip-path: polygon(0 0,
        calc(100% - 36px) 0,
        100% 50%,
        calc(100% - 36px) 100%,
        0 100%);
  }

  .phase-header h2 {
    font-size: 18px;
  }

  .phase-number , .phase-period {
    font-size: 14px;
  }

  .phase-content {
    padding: 20px;
  }

  .phase-content h3 {
    min-height: 80px;
  }

  .role {
    padding: 20px 0;
    text-align: left;
  }
}

/* SP */
@media (max-width: 959px) {
  .genaiPhases {
    display: block;
  }

  .phase {
    width: 100%;
    margin-bottom: 20px;
  }

  /* 見出し */
  .phase-header {
    position: relative;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    clip-path: none;
  }

    .phase-header::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -30px;
      width: 100%;
      height: 30px;
      background: var(--phase-color);
      clip-path: polygon(0 0,
        100% 0,
        50% 100%);
    }

  .phase-number {
    font-size: 14px;
  }

  .phase-header h2 {
    margin: 4px 0;
    font-size: 16px;
  }

  .phase-period {
    font-size: 14px;
  }

  /* 本文 */
  .phase-content {
    padding: 20px 0;
  }

  .phase-content h3 {
    margin: 20px 0 10px;
    font-size: 16px;
  }

  .role {
    padding: 10px 0;
    text-align: left;
  }

  .role h4 {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .role p {
    font-size: 14px;
    min-height: unset;
  }
}

/* .contactBanner */
.contactBanner {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contactBanner a {
  background-image: none;
  text-decoration: none;
}

.contactBanner a:hover {
  text-decoration: underline #ffffff;
}

.contactBanner p {
  margin: 0;
}

.ctaButton {
  width: 284px !important;
  justify-content: center;
  font-size: 16px;
  padding: 20px;
}

.ctaButton:after {
  content: ">";
  font-size: 16px;
  margin-left: 10px;
}

@media screen and (max-width: 768px) {
  .contactBanner {
    flex-direction: column;
    align-items: center;
  }
}