/*
 Theme Name: BCI Child
 Template: brains-consulting-theme
*/

/* =========================================================
   Members page (CLEAN / single source of truth)
========================================================= */
body.page-template-page-members-php {
  background: #fff;
}

/* sub-headline 下の余計な余白だけ潰す */
body.page-template-page-members-php #sub-headline {
  margin-bottom: 0 !important;
}

body.page-template-page-members-php #sub-headline+* {
  margin-top: 0 !important;
}

/* 白い面 */
body.page-template-page-members-php .p-members {
  background: #fff;
  padding: 56px 0 80px;
}

body.page-template-page-members-php .p-members>.container {
  max-width: 1040px;
  margin: 0 auto;
}

/* =========================================================
   Section spacing (テーマ側の区切り線を殺す)
========================================================= */
body.page-template-page-members-php .p-members__section {
  margin-top: 56px;
  border: 0 !important;
}

body.page-template-page-members-php .p-members__section:first-child {
  margin-top: 0;
}

/* =========================================================
   Heading (EN -> [orange+gray line] -> JP)
   Figma:
   orange: w24 h1 #E55800
   gray  : w960 h1 #F0F0F0 (実質コンテナ幅いっぱいでOK)
========================================================= */
body.page-template-page-members-php .p-members__heading {
  position: relative;
  margin: 0 0 28px;
  padding-top: 44px;
  /* EN + 罫線 + JPまでの余白 */
  line-height: 1.2;

  /* JP: Noto Sans CJK JP Regular 24px #000 */
  font-family: "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #000;
}

/* ENラベル（Company officers / Members） */
body.page-template-page-members-php .p-members__heading::before {
  content: attr(data-en);
  position: absolute;
  left: 0;
  top: 0;

  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  line-height: 1;
  color: #E55800;
  white-space: nowrap;
}

/* 罫線：グレーを全幅、左端24pxだけオレンジ */
body.page-template-page-members-php .p-members__heading::after {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  /* ← Company officers と線の間。ここを増やすと“間が空く” */
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #E55800 24px, #F0F0F0 24px);
}

/* =========================================================
   Grid gap (card horizontal margin)
========================================================= */

/* 役員：270px × 3 / gap 37px */
body.page-template-page-members-php .p-members__section--executive .p-members__grid {
  column-gap: 37px;
}

/* 社員：189px × 4 / gap 68px */
body.page-template-page-members-php .p-members__section--staff .p-members__grid {
  column-gap: 68px;
}

/* =========================================================
   Card (design)
========================================================= */
body.page-template-page-members-php .c-member-card__inner {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

body.page-template-page-members-php .c-member-card__thumb {
  padding: 0;
  background: transparent;
  box-shadow: none !important;
}

body.page-template-page-members-php .c-member-card__thumb img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: none !important;
  filter: none !important;
}

body.page-template-page-members-php .c-member-card__meta {
  margin-top: 12px;
  line-height: 1.35;
}

/* 役職：#000 */
body.page-template-page-members-php .c-member-card__position {
  margin: 0 0 6px;
  font-family: "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #000;
}

/* 名前：Noto Sans CJK JP Regular 21px #000 */
body.page-template-page-members-php .c-member-card__name {
  margin: 0 0 2px;
  font-family: "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 21px;
  font-weight: 400;
  color: #000;
}

/* ローマ字：Noto Sans Light 20px / グレー */
body.page-template-page-members-php .c-member-card__name-en {
  margin: 0;
  font-family: "Noto Sans", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: #9a9a9a;
}

/* =========================================================
   Modal (隠すのが最優先)
========================================================= */
body.page-template-page-members-php .c-member-modal[aria-hidden="true"] {
  display: none !important;
}

body.page-template-page-members-php .c-member-modal[aria-hidden="false"] {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

body.page-template-page-members-php .c-member-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

body.page-template-page-members-php .c-member-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 80px));
  background: #fff;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px) {
  body.page-template-page-members-php .p-members__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  body.page-template-page-members-php .p-members__section--executive .p-members__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Card image size
========================================================= */

/* ===== 役員：270 x 346 ===== */
body.page-template-page-members-php .p-members__section--executive .c-member-card__thumb {
  width: 270px;
  height: 346px;
}

body.page-template-page-members-php .p-members__section--executive .c-member-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 社員：189 x 242 ===== */
body.page-template-page-members-php .p-members__section--staff .c-member-card__thumb {
  width: 189px;
  height: 242px;
}

body.page-template-page-members-php .p-members__section--staff .c-member-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* カードグリッドは 960px 幅で中央寄せ（役員・社員共通） */
body.page-template-page-members-php .p-members__grid {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Grid 強制（テーマ側の1列固定を上書き） ===== */
body.page-template-page-members-php .p-members__grid {
  display: grid !important;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  justify-content: start;
}

/* 役員：270px×3、間37px */
body.page-template-page-members-php .p-members__section--executive .p-members__grid {
  grid-template-columns: repeat(3, 270px) !important;
  column-gap: 37px !important;
  row-gap: 40px !important;
}

/* 社員：189px×4、間68px（= (960 - 189*4) / 3） */
body.page-template-page-members-php .p-members__section--staff .p-members__grid {
  grid-template-columns: repeat(4, 189px) !important;
  column-gap: 68px !important;
  row-gap: 40px !important;
}

/* テーマ側がカードを「1列に固定」してる時の保険 */
body.page-template-page-members-php .p-members__grid>* {
  grid-column: auto !important;
  width: auto !important;
  max-width: none !important;
}

/* 外枠：見出しの左ラインを揃える */
body.page-template-page-members-php .p-members>.container {
  max-width: 1040px;
  margin: 0 auto;
}

/* セクションは外枠いっぱい（見出しはここ基準で左が揃う） */
body.page-template-page-members-php .p-members__section {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

/* グリッドだけ内側に入れる（= ここから左右に余白が出る） */
body.page-template-page-members-php .p-members__grid {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* 役員：270x346、gap 37、左右余白 38 */
body.page-template-page-members-php .p-members__section--executive .p-members__grid {
  max-width: 960px;
  padding-left: 38px;
  padding-right: 38px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: repeat(3, 270px);
  column-gap: 37px;
  row-gap: 40px;
  /* 行間は適宜 */
  justify-content: start;
}

body.page-template-page-members-php .p-members__section--executive .c-member-card__thumb img {
  width: 270px;
  height: 346px;
  object-fit: cover;
  display: block;
}

/* 社員：189x242、左右余白 38、gap は calc(128px/3) */
body.page-template-page-members-php .p-members__section--staff .p-members__grid {
  max-width: 960px;
  padding-left: 38px;
  padding-right: 38px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: repeat(4, 189px);
  column-gap: calc(128px / 3);
  row-gap: 40px;
  justify-content: start;
}

body.page-template-page-members-php .p-members__section--staff .c-member-card__thumb img {
  width: 189px;
  height: 242px;
  object-fit: cover;
  display: block;
}

/* ===============================
   Modal base
=============================== */
.c-member-modal {
  display: none;
}

.c-member-modal.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

/* overlay */
.c-member-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}


/* modal wrapper */
.c-member-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 960px;
  height: 558px;

  background: #fff;
  padding-top: 64px;
  /* 中身で制御する */
  display: flex;
  align-items: center;
}

/* inner layout */
.c-member-modal__inner {
  width: 864px;
  height: 409px;
  margin: 12px auto;

  display: grid;
  grid-template-columns: 320px 1fr;
  column-gap: 40px;
  align-items: start;
}

/* モーダル：クローズボタン */
body.page-template-page-members-php .c-member-modal__close {
  position: absolute;
  top: 40px;
  right: 40px;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 48px;
  /* 太く見えるサイズ */
  line-height: 1;
  font-weight: 800;

  color: #8a8a8a;
  /* デザイン寄りのグレー */
  background: transparent;
  border: none;
  cursor: pointer;
}



/* typography */
.c-member-modal__position {
  font-size: 20px;
  color: #000;
  margin: 0 0 6px;
}

.c-member-modal__name {
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}


.c-member-modal__name-en {
  font-size: 28px;
  font-weight: 300;
  color: #9a9a9a;
  margin: 2px 0 25px;
  line-height: 1.1;

}


.c-member-modal__body {
  font-size: 14px;
  line-height: 1.5;
  color: #000;
}

.c-member-modal__thumb {
  width: 320px;
  height: 409px;
}

.c-member-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================
   Modal SP : 縦長1カラム（スクショの形）
========================= */
@media (max-width: 900px) {

  /* modal全体は表示中だけ fixed */
  body.page-template-page-members-php .c-member-modal[aria-hidden="false"] {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
  }

  body.page-template-page-members-php .c-member-modal__backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, .55) !important;
  }

  /* dialogを「縦長カード」にする（上から下まで使う） */
  body.page-template-page-members-php .c-member-modal[aria-hidden="false"] .c-member-modal__dialog {
    position: fixed !important;
    left: 50% !important;
    top: 16px !important;
    bottom: 16px !important;
    /* ← 下まで使う */
    transform: translateX(-50%) !important;

    width: calc(100% - 32px) !important;
    max-width: 360px !important;
    /* スクショの幅感（必要なら348pxに） */

    height: auto !important;
    /* PCの558pxを殺す */
    padding-top: 0 !important;
    /* PCの64pxを殺す */
    display: block !important;
    /* PCのflexを殺す */

    background: #fff !important;
    overflow-y: auto !important;
    /* スクロールはdialog内 */
    overflow-x: hidden !important;
    /* 横だけ殺す（hiddenは必要） */
    -webkit-overflow-scrolling: touch !important;
  }

  /* ×ボタン（40*40 + グレー太め） */
  body.page-template-page-members-php .c-member-modal__close {
    position: sticky !important;
    /* スクロールしても上に残る */
    top: 0 !important;
    margin-left: auto !important;
    right: 0px;
    width: 40px !important;
    height: 40px !important;
    font-size: 40px !important;
    line-height: 40px !important;
    font-weight: 800 !important;
    color: #8a8a8a !important;
    background: transparent !important;
    border: 0 !important;
    z-index: 2 !important;

    /* 右上っぽい位置 */
    display: block !important;
    padding: 12px 12px 0 0 !important;
    /* タップ領域増やす */
    box-sizing: content-box !important;
  }

  /* 中身：縦積み */
  body.page-template-page-members-php .c-member-modal__inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;

    width: 100% !important;
    height: auto !important;
    /* PCの409pxを殺す */
    margin: 0 !important;
    padding: 18px 18px 24px !important;
    box-sizing: border-box !important;
  }

  /* 画像：上に、中央。大きすぎない */
  body.page-template-page-members-php .c-member-modal__thumb {
    width: 80% !important;
    max-width: 280px !important;
    margin: 0 auto !important;

    height: auto !important;
    aspect-ratio: 245 / 313 !important;
    /* だいたいフィグマ比率 */
    overflow: hidden !important;
    /* 枠からはみ出さない */
    background: #eee !important;
  }

  body.page-template-page-members-php .c-member-modal__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* テキスト（被り防止：marginをきちんと） */
  body.page-template-page-members-php .c-member-modal__content {
    width: 100% !important;
  }

  body.page-template-page-members-php .c-member-modal__position {
    width: 80% !important;
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  body.page-template-page-members-php .c-member-modal__name {
    line-height: 1.2 !important;
    width: 80% !important;
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  body.page-template-page-members-php .c-member-modal__name-en {
    line-height: 1.1 !important;
    width: 80% !important;
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  body.page-template-page-members-php .c-member-modal__body {
    line-height: 1.5 !important;
  }

  /* 長い英数字やURLで幅が壊れないように */
  body.page-template-page-members-php .c-member-modal__body,
  body.page-template-page-members-php .c-member-modal__body * {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

/* =========================================================
   Members grid SP fix (2 columns for both sections)
   ※必ずこのCSSは最後に置く
========================================================= */
@media (max-width: 900px) {

  /* グリッド：役員も社員も2列 */
  body.page-template-page-members-php .p-members__grid {
    max-width: none !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 18px !important;
    row-gap: 28px !important;

    justify-content: start !important;
  }

  /* セクション別に固定pxの指定が残ってるので潰す */
  body.page-template-page-members-php .p-members__section--executive .p-members__grid,
  body.page-template-page-members-php .p-members__section--staff .p-members__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: none !important;
  }

  /* thumbの固定幅/高をやめて、列幅に追従させる */
  body.page-template-page-members-php .c-member-card__thumb {
    width: 100% !important;
    height: auto !important;
  }

  /* 画像は比率を維持してトリミング（役員・社員で比率だけ変える） */
  body.page-template-page-members-php .p-members__section--executive .c-member-card__thumb {
    aspect-ratio: 270 / 346 !important;
    overflow: hidden !important;
  }

  body.page-template-page-members-php .p-members__section--staff .c-member-card__thumb {
    aspect-ratio: 189 / 242 !important;
    overflow: hidden !important;
  }

  body.page-template-page-members-php .c-member-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* 文字がデカすぎる場合の保険（必要なら） */
  body.page-template-page-members-php .c-member-card__name {
    font-size: 16px;
  }

  body.page-template-page-members-php .c-member-card__name-en {
    font-size: 14px;
  }
}

/* 「インタビューを見る」ボタン（丸＋矢印） */
body .client-list .text .c-btn-interview {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 12px !important;

  height: 24px !important;
  padding: 0 14px !important;
  border-radius: 9999px !important;

  background: #222 !important;
  color: #fff !important;

  font-size: 8px !important;
  font-weight: 500 !important;
  line-height: 1 !important;

  text-decoration: none !important;
  background-image: none !important;
  border: 0 !important;
}

/* 右側アイコン（SVG） */
body .client-list .text .c-btn-interview__icon {
  width: 8px;
  height: 8px;
  background: url("assets/arrow-circle-blk.svg") no-repeat center / contain;
}



/* ===============================
   SERVICE：AIプロトタイピング Steps
=============================== */

/* セクション全体 */
body.page-template-template-service-php .ai-proto-steps {
  margin: 32px 0 24px;
  background: transparent;
}

/* リード文 */
body.page-template-template-service-php .ai-proto-steps__lead {
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 24px;
}

/* 4カラム（PC） */
body.page-template-template-service-php .ai-proto-steps__grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 28px;
  overflow: visible;
  /* 矢印が切れないように */
}

/* 1枚のカード（181 x 314） */
body.page-template-template-service-php .ai-proto-steps__item {
  width: 181px;
  height: 314px;
  box-sizing: border-box;
  background: transparent;
  border: none;
  /* li の枠線なし */
  position: relative;
  /* 矢印用 */
  font-size: 11px;
  line-height: 1.6;
  padding: 0;
}

/* オレンジ帯（35px） */
body.page-template-template-service-php .ai-proto-steps__head {
  height: 35px;
  margin: 0 0 4px;
  /* オレンジと白の間の隙間 */
  background: #d56329;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 下の箱全体（白55 + 薄茶224）に外枠だけ付ける */
body.page-template-template-service-php .ai-proto-steps__body {
  height: calc(314px - 35px - 4px);
  /* 279px */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid #d9d4c9;
  background: transparent;
}

/* 白エリア（55px） */
body.page-template-template-service-php .ai-proto-steps__body>p:first-child {
  height: 55px;
  margin: 0;
  padding: 0 7px;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  display: flex;
  align-items: center;

  text-align: left;
  text-indent: 0;
}

/* 薄茶エリア（224px） */
body.page-template-template-service-php .ai-proto-steps__body>p:nth-child(2) {
  height: 224px;
  margin: 0;
  padding: 10px;
  background: #EBE9E2;
  font-size: 11px;
  line-height: 1.8;
  overflow: hidden;

  text-align: left;
  text-indent: 0;
}

/* PC：右向き矢印（SVG） */
body.page-template-template-service-php .ai-proto-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  /* オレンジ帯のだいたい中央 */
  right: -22px;
  width: 16px;
  height: 16px;
  background: url("assets/arrow.svg") no-repeat center / contain;
}

/* 〜960px：2カラム崩しだけ（矢印は PC のまま） */
@media (max-width: 960px) {
  body.page-template-template-service-php .ai-proto-steps__grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  body.page-template-template-service-php .ai-proto-steps__item {
    margin-bottom: 24px;
  }
}

/* 〜767px：SP 縦並び & 下向き矢印 */
@media screen and (max-width: 767px) {

  /* 縦 1 列・横幅いっぱい */
  body.page-template-template-service-php .ai-proto-steps__grid {
    display: block;
    margin: 0 auto;
  }

  body.page-template-template-service-php .ai-proto-steps__item {
    width: 100%;
    max-width: 360px;
    /* 完全フル幅にするなら消してOK */
    margin: 0 auto 48px;
    /* 下に矢印分の余白 */
    height: auto;
    /* 固定 314px を解除 */
  }

  body.page-template-template-service-php .ai-proto-steps__head {
    height: 40px;
    font-size: 12px;
  }

  /* body 外枠：高さ可変 */
  body.page-template-template-service-php .ai-proto-steps__body {
    height: auto !important;
    padding: 0 !important;
  }

  /* 白ボックス：テキストセンター寄せ & 高さ自動 */
  body.page-template-template-service-php .ai-proto-steps__body>p:first-child {
    height: auto !important;
    padding: 10px 12px;
    text-align: center;
    text-indent: 0 !important;
    display: block;
  }

  /* 薄茶：高さ自動で少し短く・センター寄せ */
  body.page-template-template-service-php .ai-proto-steps__body>p:nth-child(2) {
    height: auto !important;
    padding: 12px 12px;
    text-align: center;
    text-indent: 0 !important;
  }

  /* 下向き矢印（PC の右向きを上書き） */
  body.page-template-template-service-php .ai-proto-steps__item:not(:last-child)::after {
    display: block !important;
    left: 50%;
    bottom: -32px;
    top: auto;
    right: auto;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border: 0 !important;
    background: url("assets/arrow-down.svg") no-repeat center / contain;
    content: "";
  }

  body.page-template-template-service-php .ai-proto-steps__item:last-child::after {
    display: none !important;
  }
}

/* =========================================
   SERVICE：Low-code flow（#system-integration 専用）
   ※lc-flow関連CSSはこれ1本だけにする
========================================= */

#system-integration .contents .lc-flow {
  --title: 18px;
  --txt: 11px;

  --card-w: 181px;
  --card-h: 161px;
  --head-h: 32px;
  --tag-h: 35px;
  --dur-h: 38px;

  --gap: 12px;
  --overlap: 46px;

  --orange: #d35b31;
  --line: #D9D4C9;
  --tan: #EBE9E2;

  /* PC用：SVGの左右の張り出し */
  --edge-wide: 10px;

  max-width: 980px;
  margin: 0 auto;
  color: #222;
}

#system-integration .contents .lc-flow,
#system-integration .contents .lc-flow * {
  box-sizing: border-box;
}

/* 文字が消される事故保険（テーマ側で opacity/visibility を触ってる場合） */
#system-integration .contents .lc-flow .lc-card__head,
#system-integration .contents .lc-flow .lc-card__body {
  opacity: 1 !important;
  visibility: visible !important;
}

/* --------------------
   上段タグ（PC）
-------------------- */
#system-integration .contents .lc-flow__tags {
  display: grid;
  grid-template-columns: var(--card-w) calc(var(--card-w)*2 + var(--gap)) var(--card-w);
  column-gap: var(--gap);
  align-items: center;
  justify-content: center;
  margin: 0 0 36px;
}

#system-integration .contents .lc-flow__tags-spacer {
  height: var(--tag-h);
}

#system-integration .contents .lc-flow .lc-tag {
  height: var(--tag-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#system-integration .contents .lc-flow .lc-tag span {
  font-size: var(--txt);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

#system-integration .contents .lc-flow .lc-tag::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--edge-wide) * -1);
  right: calc(var(--edge-wide) * -1);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  z-index: 1;
}

/* ★URLは確実に“絶対パス”推奨（環境で相対がズレるのを防ぐ） */
#system-integration .contents .lc-flow .lc-tag--main::before {
  background-image: url("assets/lc-tag-lecture.svg");
}

#system-integration .contents .lc-flow .lc-tag--support::before {
  background-image: url("assets/lc-tag-support.svg");
}

/* --------------------
   PC：4カラム
-------------------- */
#system-integration .contents .lc-flow__gridWrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, var(--card-w));
  column-gap: var(--gap);
  row-gap: 0;
  align-items: start;
  justify-content: center;
  padding-top: 6px;
  padding-bottom: calc(var(--dur-h) - var(--overlap) + 6px);
}

/* ループ（absolute） */
#system-integration .contents .lc-flow__loop {
  position: absolute;
  top: -22px;
  left: calc((var(--card-w)*2) + (var(--gap) * 1.5));
  transform: translateX(-50%);
  width: 56px;
  z-index: 10;
  pointer-events: none;
}

/* カード */
#system-integration .contents .lc-flow .lc-card {
  width: var(--card-w);
  height: var(--card-h);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

#system-integration .contents .lc-flow .lc-card__head {
  height: var(--head-h);
  background: var(--tan);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--txt);
  font-weight: 700;
  line-height: 1;
  width: 100%;
}

#system-integration .contents .lc-flow .lc-card__body {
  height: calc(var(--card-h) - var(--head-h));
  padding: 6px 14px;
  font-size: var(--txt);
  line-height: 1.4;
  width: 100%;
}

/* PC：位置固定（段落ち防止） */
#system-integration .contents .lc-flow .lc-card--s1 {
  grid-column: 1;
  grid-row: 1;
}

#system-integration .contents .lc-flow .lc-card--s2 {
  grid-column: 2;
  grid-row: 1;
}

#system-integration .contents .lc-flow .lc-card--s3 {
  grid-column: 3;
  grid-row: 1;
}

#system-integration .contents .lc-flow .lc-card--s4 {
  grid-column: 4;
  grid-row: 1;
}

/* 期間バー（PC：2行目に重ね） */
#system-integration .contents .lc-flow .lc-flow__dur {
  height: var(--dur-h);
  margin-top: calc(var(--overlap) * -1);
  position: relative;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  /* PCだけの見た目余白 */
}

#system-integration .contents .lc-flow .lc-flow__dur--s1 {
  grid-column: 1 / 2;
  grid-row: 2;
  padding-left: 0;
  padding-right: 6px;
}

#system-integration .contents .lc-flow .lc-flow__dur--s23 {
  grid-column: 2 / 4;
  grid-row: 2;
}

#system-integration .contents .lc-flow .lc-flow__dur--s4 {
  grid-column: 4 / 5;
  grid-row: 2;
  padding-left: 6px;
  padding-right: 0;
}

#system-integration .contents .lc-flow .lc-dur {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#system-integration .contents .lc-flow .lc-dur span {
  font-size: var(--txt);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

#system-integration .contents .lc-flow .lc-dur::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--edge-wide) * -1);
  right: calc(var(--edge-wide) * -1);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  z-index: 1;
}

#system-integration .contents .lc-flow .lc-dur--left::before {
  background-image: url("assets/lc-dur-1month.svg");
}

#system-integration .contents .lc-flow .lc-dur--mid::before {
  background-image: url("assets/lc-dur-1toNmonths.svg");
}

#system-integration .contents .lc-flow .lc-dur--right::before {
  background-image: url("assets/lc-dur-operating.svg");
}

/* PCではSP用を確実に消す */
@media (min-width: 901px) {

  #system-integration .contents .lc-flow__middle-sp,
  #system-integration .contents .lc-flow__support-sp {
    display: none !important;
  }
}

/* =========================
   SP：1カラム + 右バーかぶせ（28px）
========================= */
@media (max-width: 900px) {

  #system-integration .contents .lc-flow {
    --dur-w: 28px;
    --edge-wide: 0px;
    /* ★1か月/稼働〜が欠ける根本原因を殺す */
    max-width: none;
    margin: 0;
    padding: 0 16px;
  }

  /* 見出し（あなた指定） */
  #system-integration .contents .lc-flow .lc-tag span {
    color: #d35b31 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  /* support-sp も同じ見出し */
  #system-integration .contents .lc-flow__support-sp {
    color: #d35b31 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin: 10px 0 8px;
  }

  /* 上段タグ：SPはテキストだけ（supportは上では消す） */
  #system-integration .contents .lc-flow__tags {
    display: block;
    margin: 0 0 12px;
  }

  #system-integration .contents .lc-flow__tags-spacer {
    display: none;
  }

  #system-integration .contents .lc-flow .lc-tag {
    height: auto;
    justify-content: flex-start;
    margin: 0 0 6px;
  }

  #system-integration .contents .lc-flow .lc-tag::before {
    display: none !important;
    content: none !important;
  }

  #system-integration .contents .lc-flow .lc-tag--support {
    display: none !important;
  }

  /* 本体：1カラム（幅予約しない） */
  #system-integration .contents .lc-flow__gridWrap {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 18px;
    padding: 0;
    position: relative;
  }

  /* ループはSPは不要 */
  #system-integration .contents .lc-flow__loop {
    display: none !important;
  }

  /* カード：横フル。paddingはカードに入れない（head/bodyが細くなる原因） */
  #system-integration .contents .lc-flow .lc-card {
    width: 100% !important;
    height: auto !important;
    grid-column: 1 !important;
    position: relative;
  }

  /* ★本文だけ右余白を足す（バーかぶせ対策） */
  #system-integration .contents .lc-flow .lc-card__body {
    height: auto !important;
    line-height: 1.7 !important;
    padding-right: calc(var(--dur-w) + 14px) !important;
  }

  /* 真ん中矢印 */
  #system-integration .contents .lc-flow__middle-sp {
    grid-column: 1;
    width: 44px;
    height: auto;
    margin: -6px auto -2px;
    display: block;
  }

  /* 期間バー：同じセルに置いて右端へ＝かぶせる */
  #system-integration .contents .lc-flow .lc-flow__dur {
    grid-column: 1 !important;
    justify-self: end;
    align-self: stretch;
    width: var(--dur-w) !important;
    height: 100% !important;
    margin-top: 0 !important;
    padding: 0 !important;
    /* PCの 0 6px を殺す */
    z-index: 5;
  }

  /* durの背景は必ず 28px に収める */
  #system-integration .contents .lc-flow .lc-dur {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  #system-integration .contents .lc-flow .lc-dur::before {
    left: 0 !important;
    right: 0 !important;
    inset: 0 !important;
    background-size: 100% 100%;
  }

  /* 縦書き */
  #system-integration .contents .lc-flow .lc-dur span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: .08em;
    font-size: 11px;
    white-space: normal;
  }

  /* SP用SVG */
  #system-integration .contents .lc-flow .lc-dur--left::before {
    background-image: url("assets/lc-dur-1month-v.svg");
  }


  #system-integration .contents .lc-flow .lc-dur--mid::before {
    background-image: url("assets/lc-dur-1toNmonths-v.svg");
  }

  #system-integration .contents .lc-flow .lc-dur--right::before {
    background-image: url("assets/lc-dur-operating-v.svg");
  }

  /* 行の割当（classベースで固定） */
  #system-integration .contents .lc-flow .lc-card--s1 {
    grid-row: 1;
  }

  #system-integration .contents .lc-flow .lc-flow__dur--s1 {
    grid-row: 1;
  }

  #system-integration .contents .lc-flow .lc-card--s2 {
    grid-row: 2;
  }

  #system-integration .contents .lc-flow .lc-flow__dur--s23 {
    grid-row: 2 / 5;
  }

  /* s2〜矢印〜s3まで跨ぐ */

  #system-integration .contents .lc-flow__middle-sp {
    grid-row: 3;
  }

  #system-integration .contents .lc-flow .lc-card--s3 {
    grid-row: 4;
  }

  #system-integration .contents .lc-flow__support-sp {
    grid-row: 5;
  }

  #system-integration .contents .lc-flow .lc-card--s4 {
    grid-row: 6;
  }

  #system-integration .contents .lc-flow .lc-flow__dur--s4 {
    grid-row: 6;
  }
}

@media (max-width: 900px) {

  /* SPはSVG背景を使わない */
  #system-integration .contents .lc-flow .lc-dur::before {
    content: none !important;
    background: none !important;
  }

  /* 28px固定の“形”をCSSで作る */
  #system-integration .contents .lc-flow .lc-dur {
    --notch: 2px;
    /* ←Vの深さ。6〜10pxで合わせて */
    background: var(--dur-bg, #d35b31);
    clip-path: polygon(0 0,
        50% var(--notch),
        100% 0,
        100% calc(100% - var(--notch)),
        50% 100%,
        0 calc(100% - var(--notch)));
  }

  /* 色だけ分岐（必要なら微調整） */
  #system-integration .contents .lc-flow .lc-dur--left {
    --dur-bg: #FF6200;
  }

  #system-integration .contents .lc-flow .lc-dur--mid {
    --dur-bg: #e55800;
  }

  #system-integration .contents .lc-flow .lc-dur--right {
    --dur-bg: #b44800;
  }
}

/* =========================
   LC-FLOW SP : デザイン数値FIX
========================= */
@media (max-width: 900px) {

  /* title 18px（念のため） */
  #system-integration .contents .lc-flow__title {
    font-size: 18px !important;
  }

  /* head 32px 固定 */
  #system-integration .contents .lc-flow .lc-card__head {
    height: 32px !important;
    padding: 0 12px !important;
    line-height: 1 !important;
  }

  /* body：1行=30px / 2行=50px（行数で自動） */
  #system-integration .contents .lc-flow .lc-card__body {
    /* 右のdur(28px)がかぶる前提の逃げ */
    padding: 0 14px !important;
    padding-right: 42px !important;

    /* 行数で高さが変わるように line-height * N で作る */
    line-height: 25px !important;
    /* 1行=25px */
    min-height: 30px !important;
    /* 1行の最低高 */
    max-height: 50px !important;
    /* 2行で打ち止め */
    overflow: hidden !important;

    display: flex !important;
    align-items: center !important;
    /* 縦センター */
  }

  /* 真ん中矢印：高さ17px、上下マージンほぼなし */
  #system-integration .contents .lc-flow .lc-flow__middle-sp {
    height: 17px !important;
    width: auto !important;
    /* 画像比率維持 */
    margin: 0 auto !important;
    /* 上下ゼロ */
    display: block !important;
  }

  /* カード間の余白（詰め） */
  #system-integration .contents .lc-flow .lc-flow__gridWrap {
    row-gap: 12px !important;
    /* “ほぼなし”に寄せるなら 10〜14 */
  }

  /* 保守・技術支援 見出しも同様に詰める */
  #system-integration .contents .lc-flow .lc-flow__support-sp {
    margin: 6px 0 4px !important;
    /* ここをさらに詰めるなら 4px 0 2px */
    line-height: 1.1 !important;
  }
}

@media (max-width: 900px) {

  /* 真ん中の矢印：上下の“行間”も含めてゼロ寄せ */
  #system-integration .contents .lc-flow .lc-flow__middle-sp {
    margin: -6px auto -6px !important;
    /* まだ空くなら -10px まで */
    line-height: 0 !important;
  }

  /* 矢印が入る前後の行だけ詰めたい場合（全体row-gapは触らない） */
  #system-integration .contents .lc-flow .lc-card--s2 {
    margin-bottom: -6px !important;
  }

  #system-integration .contents .lc-flow .lc-card--s3 {
    margin-top: -6px !important;
  }
}

@media (max-width: 900px) {

  /* 保守・技術支援（support見出し）の上下余白を詰める */
  #system-integration .contents .lc-flow .lc-flow__support-sp {
    margin: 4px 0 4px !important;
    /* まだ空くなら 0 0 2px */
  }

  /* 見出しの直後のカード(Version1.0)が離れてるなら更に詰める */
  #system-integration .contents .lc-flow .lc-card--s4 {
    margin-top: -6px !important;
    /* まだ空くなら -10px */
  }
}

@media (max-width: 900px) {

  /* 保守・技術支援（support見出し）の上下余白を詰める */
  #system-integration .contents .lc-flow .lc-flow__support-sp {
    margin: 4px 0 4px !important;
    /* まだ空くなら 0 0 2px */
  }

  /* 見出しの直後のカード(Version1.0)が離れてるなら更に詰める */
  #system-integration .contents .lc-flow .lc-card--s4 {
    margin-top: -6px !important;
    /* まだ空くなら -10px */
  }
}

@media (max-width: 900px) {

  /* ここで調整 */
  #system-integration .contents .lc-flow {
    --dur-gap: 6px;
    /* 1本目(1か月)と2本目の間に欲しい隙間 */
    --s23-down: 14px;
    /* 2本目を下に伸ばす量 */
    --s4-up: 10px;
    /* 3本目を上に伸ばす量 */
  }

  /* まず全durは“素の高さ100%”に戻す */
  #system-integration .contents .lc-flow .lc-flow__dur {
    height: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* 2本目：上には伸ばさず、上に隙間だけ作って、下だけ伸ばす */
  #system-integration .contents .lc-flow .lc-flow__dur--s23 {
    margin-top: var(--dur-gap) !important;
    /* ←ここが隙間 */
    height: calc(100% - var(--dur-gap) + var(--s23-down)) !important;
    margin-bottom: calc(var(--s23-down) * -1) !important;
    /* 下に伸ばす */
  }

  /* 3本目：上だけ伸ばす（2本目に“つながる”） */
  #system-integration .contents .lc-flow .lc-flow__dur--s4 {
    height: calc(100% + var(--s4-up)) !important;
    margin-top: calc(var(--s4-up) * -1) !important;
  }

  /* 背景SVGも伸びた高さに追従 */
  #system-integration .contents .lc-flow .lc-dur,
  #system-integration .contents .lc-flow .lc-dur::before {
    height: 100% !important;
  }

  /* 継ぎ目が見える時の保険（上下1pxだけ余分に） */
  #system-integration .contents .lc-flow .lc-dur::before {
    inset: -1px 0 !important;
  }
}

#system-integration .contents .lc-flow__title {
  margin: 24px 0 24px !important;
  /* 上 下 */
}

.domains-nav__title {
  font-size: 14px;
}

/* PC時だけ右端ブロックに余白を追加して、左との隙間を広げる */
@media (min-width: 1024px) {
  .domains-nav__item.-item-06 {
    margin-left: 12px;
  }
}

@media screen and (min-width: 768px) {
  .domains-nav__item.-full {
    width: 180px;
  }
}

/* 一番右のブロックだけ矢印背景を消す */
.domains-nav__item.-item-06,
.domains-nav__item.-item-06>a {
  background-image: none;
}

@media screen and (max-width: 767px) {

  /* 一番下の要素だけ矢印を消す */
  .domains-nav>.domains-nav__list>li:last-child::before {
    background: none !important;
  }
}

/* =========================================================
   Header nav-sub CTA buttons
========================================================= */

/* nav-sub 共通（先） */
#header .header-nav .nav-sub li.contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  line-height: 1;
  white-space: nowrap;
  padding: 0 12px 0 14px;
  border-radius: 15px;
  font-weight: 500;
}

/* 採用情報（後・上書き） */
#header .header-nav .nav-sub li.contact-recruit a {
  background: #E55800;
  color: #fff;

  background-image: url(img/icon-external.svg);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;

  padding-right: 28px;
}

/* hover */
#header .header-nav .nav-sub li.contact a:hover,
#header .header-nav .nav-sub li.contact-recruit a:hover {
  opacity: .85;
}

/* 採用情報ボタンの after を消す */
#header .header-nav .nav-sub li.contact-recruit a::after {
  content: none;
}

/* =========================================================
   Single & Blog List (Sidebar removed, full width)
========================================================= */
body.single #c-main-2col,
body.page-template-all-post-php #c-main-2col,
body.page-template-all-post #c-main-2col {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 100% !important;
}