/* Vendor prefix
--------------------------------- */
.s_inner {
  width: 100%;
  max-width: 990px;
  margin: 0 auto;
}

#alliance01 .l-tile {
  margin-top: 30px;
}
#alliance01 .l-tile h4 {
  margin-top: 30px;
}
#alliance01 .l-tile .c-regularText {
  margin-top: 20px;
}
#alliance01 .l-tile .l-tile__item:first-child h4, #alliance01 .l-tile .l-tile__item:first-child p {
  color: #12802f;
}
#alliance01 .l-tile .l-tile__item:nth-child(2) h4, #alliance01 .l-tile .l-tile__item:nth-child(2) p {
  color: #400042;
}
#alliance01 .l-tile .l-tile__item:last-child h4, #alliance01 .l-tile .l-tile__item:last-child p {
  color: #a15e00;
}

.boxWorries {
  background: #f2f2f2;
}
.boxWorries .s_inner {
  width: 90%;
}
.boxWorries .listBox {
  text-align: center;
  margin-top: 20px;
}
.boxWorries .listBox .c-list {
  display: inline-block;
  text-align: left;
}
.boxWorries .c-imgAuto {
  background: #fff;
  padding: 20px;
}

.c-table table.c-table__content td {
  width: 50%;
}

.bg01 {
  background: #f5f5f5;
  padding: 10px 0 60px;
}

.mt0 {
  margin-top: 0;
}

.c-modal .l-grid {
  margin-bottom: 0;
}
.c-modal .l-grid .l-grid {
  margin-top: 0;
}
.c-modal .l-grid .l-grid .l-grid__item {
  margin-bottom: 0;
}
.c-modal .c-subText {
  margin-top: 0;
}
.c-modal hr {
  margin: 10px 0;
}

[data-js-modal]{z-index: 5001;}

@media screen and (min-width: 768px) {
  .boxWorries {
    padding: 50px 0;
    margin-top: 60px;
  }
  .boxWorries .c-imgAuto {
    padding: 20px;
  }
  .c-table table.c-table__content {
    font-size: 18px;
  }
  .vsp {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .c-mainVisual__background img {
    -o-object-position: 50% 100%;
       object-position: 50% 100%;
  }
  #alliance01 .l-tile .l-tile__item {
    margin-bottom: 40px;
  }
  .boxWorries {
    padding: 30px 0;
    margin-top: 40px;
  }
  .boxWorries .c-imgAuto {
    padding: 10px;
  }
  .c-modal__inner {
    max-height: calc(100vh - 100px);
    margin: 70px auto 30px;
  }
  .vpc {
    display: none;
  }
}
@media screen and (max-width: 400px) {
  .btnList01 .c-btn {
    width: 100%;
    margin-right: 0;
  }
}

/* 追記：パートナーカテゴリー */
.partnerCategory__list { margin-top: 20px; color: #333; font-size: 14px; line-height: 1.3; }
.partnerCategory__list .c-list__item { padding-top: 3px; padding-bottom: 3px; }

/* 追記：パートナーカテゴリー説明文の太字 */
#alliance01 .l-tile .c-regularText { font-weight: 700; }

/* 追記：パートナーカテゴリー説明文の文字色（既存のID指定を上書き） */
#alliance01 .l-tile .l-tile__item:first-child p { color: #666666; }
#alliance01 .l-tile .l-tile__item:nth-child(2) p { color: #666666; }
#alliance01 .l-tile .l-tile__item:last-child p { color: #666666; }

/* 追記：メインビジュアルのタイトル（共通CSSを上書き） */
.c-mainVisual--lv2 .c-mainVisual__category + .c-mainVisual__title { color: #fff; }
@media screen and (min-width: 768px) {
  .c-mainVisual--lv2 .c-mainVisual__category + .c-mainVisual__title { width: 42%; margin-left: 58%; }
}

/* 追記：パートナーカテゴリーのタイル間余白（ラッパー左右の余白＝タイル間の余白） */
@media screen and (min-width: 768px) {
  .s_inner.l-tile--doubleGutter { box-sizing: border-box; padding-right: 30px; padding-left: 30px; }
  .s_inner.l-tile--doubleGutter .l-tile__item { padding-right: 30px; padding-left: 30px; }
}

/* 追記：パートナーカテゴリーのラッパーの max-width を解除 */
.s_inner.l-tile--doubleGutter { max-width: none; }

/* 追記：c-featureArea__boxを画像左・テキスト右のレイアウトに変更（SPは縦並び） */
.serendie-featureBox { padding: 0; overflow: hidden; }
.serendie-featureBox__img img { display: block; width: 100%; height: auto; }
.serendie-featureBox__body { padding: 30px; }
@media screen and (min-width: 768px) {
  .serendie-featureBox { display: flex; align-items: stretch; }
  .serendie-featureBox__img { flex: 0 0 35%; max-width: 35%; }
  .serendie-featureBox__img picture { display: block; height: 100%; }
  .serendie-featureBox__img img { height: 100%; object-fit: cover; }
  .serendie-featureBox__body { display: flex; flex: 1 1 0; flex-direction: column; justify-content: center; min-width: 0; padding: 45px 70px; }
}

/* 追記：パートナーカテゴリーの背景色ブロック（画像の代替） */
.partnerCategory__block { box-sizing: border-box; padding: 24px 16px; color: #fff; text-align: center; }
.partnerCategory__block--ai { background: linear-gradient(135deg, #5a2a96, #7b45b8); }
.partnerCategory__block--solution { background: linear-gradient(135deg, #94540f, #c27a1f); }
.partnerCategory__block--integration { background: linear-gradient(135deg, #0f7a5e, #1a9e7c); }
.partnerCategory__blockEn { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.partnerCategory__blockJa { margin: 8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.partnerCategory__blockLead { margin: 12px 0 0; font-size: 14px; line-height: 1.5; }

/* 追記：背景色ブロック内のテキスト色（既存のID指定を上書き） */
#alliance01 .l-tile .l-tile__item:first-child .partnerCategory__block p,
#alliance01 .l-tile .l-tile__item:nth-child(2) .partnerCategory__block p,
#alliance01 .l-tile .l-tile__item:last-child .partnerCategory__block p { color: #fff; }

/* 追記：パートナーカテゴリーのブロック（背景色ブロック・説明文・リスト）の縦幅を3列で揃える（subgrid） */
@media screen and (min-width: 768px) {
  .s_inner.l-tile--doubleGutter { display: grid; grid-template-columns: repeat(3, 1fr); }
  .s_inner.l-tile--doubleGutter .l-tile__item { display: grid; grid-row: span 3; grid-template-rows: subgrid; width: auto; }
  .s_inner.l-tile--doubleGutter .partnerCategory__block { display: flex; flex-direction: column; justify-content: center; }
}

/* 追記：パートナーカテゴリーのブロックの四隅を45度に切り落とす */
.partnerCategory__block { clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }

/* 追記：c-featureArea__box内c-catchTextのSP時のフォント調整 */
@media screen and (max-width: 767px) {
  .serendie-featureBox__body .c-catchText { font-size: 26px; line-height: 1.3; }
}

/* 追記：l-inner--large直後のl-sectionの上paddingを半分に（60px → 30px） */
.l-inner--large > .l-section:first-child { padding-top: 30px; }
@media screen and (max-width: 767px) {
  .l-inner--large > .l-section:first-child { padding-top: 0; }
}

/* 追記：トップのfeatureBoxを「左：英字見出し3行／右：説明文」のレイアウトに変更（高さ240px、左40％・右60％） */
.serendie-featureBox__title { display: flex; justify-content: center; box-sizing: border-box; padding: 30px 30px 0; }
.serendie-featureBox__titleText { margin: 0; font-family: "Noto Sans", "Noto Sans JP", sans-serif; font-size: 32px; font-weight: 700; line-height: 1; text-align: left; }
@media screen and (min-width: 768px) {
  .serendie-featureBox--text { height: 240px; }
  .serendie-featureBox--text .serendie-featureBox__title { display: flex; flex: 0 0 40%; align-items: center; justify-content: center; max-width: 40%; padding: 0 40px; }
  .serendie-featureBox--text .serendie-featureBox__titleText { font-size: 40px; }
  .serendie-featureBox--text .serendie-featureBox__body { flex: 0 0 60%; max-width: 60%; padding: 30px 70px 30px 0; }
}
