/* ==========================================================================
 * Page Name : 事業内容_システム開発配下 共通CSS
 * File Name : /assets/css/solution/system-detail.css
 * Created   : 2026-10-19
 * Updated   : 2026-10-20
 *
 * /solution/system/xxx/ 配下の全ページで読み込む（inc/files.php の sl_is_system_child_page()）。
 * マークアップは /parts/solution/system/detail/ 。クラス名は .sy-* で統一。
 * 個別ページだけの調整が必要になった場合は、
 * assets/css/solution/system-{slug}.css（例：system-offshore.css）を追加して差分のみ記述すること。
 * ※ /solution/system/（システム開発トップ）のCSSとは別物。トップ側とは読み込み条件・ファイルを分けている。
 *
 * 余白・配色のルール（値は下の .page.-sy のカスタムプロパティで一元管理）
 *   - セクション間の余白：--sy-space（PC 100px / SP 60px）
 *   - 背景色つきのセクション（お悩み・オフショア・活用技術・FAQ）は上辺を角丸にした「帯」：--sy-band-radius
 *   - 白いカード：--sy-card-radius ＋ --sy-card-shadow
 *   - 見出し：--sy-heading-size（PC 30px / SP 20px）
 * ========================================================================== */

.page.-sy {
  --sy-space: 100px;
  --sy-band-radius: 60px;
  --sy-card-radius: 24px;
  --sy-card-shadow: 0 6px 20px rgba(88, 72, 73, 0.08);
  --sy-heading-size: 30px;
  --sy-heading-spacing: 0.15em;
}
@media screen and (max-width: 767px) {
  .page.-sy {
    --sy-space: 60px;
    --sy-band-radius: 30px;
    --sy-card-radius: 15px;
    --sy-heading-size: 20px;
    --sy-heading-spacing: 0.06em;
  }
}

/* -- 共通見出し（各セクションのh2） -- */
.sy-heading,
.sy-about-title,
.page.-sy .pr-faq-title {
  font-size: var(--sy-heading-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--sy-heading-spacing);
}
.sy-heading,
.page.-sy .pr-faq-title {
  text-align: center;
}

/* -- 背景色つきの帯（上辺だけ角丸） -- */
.sy-issue,
.sy-offshore,
.sy-tech {
  padding-block: var(--sy-space);
  border-radius: var(--sy-band-radius) var(--sy-band-radius) 0 0;
}

/* -- 横長ボタン（common-buttonの幅違い） -- */
.common-button.sy-button-wide {
  width: auto;
  min-width: 300px;
  gap: 30px;
}
@media screen and (max-width: 767px) {
  .common-button.sy-button-wide {
    min-width: 0;
    width: 100%;
    max-width: 300px;
  }
}

/* ========================================
  リード文（ページ冒頭のキャッチ）
  背面に英字（watermark）を薄く敷き、ページ最初のキャッチとして見せる
======================================== */
.sy-lead {
  position: relative;
  isolation: isolate;
  margin-top: var(--sy-space);
  padding-block: 40px;
  text-align: center;
}
.sy-lead-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  transform: translate(-50%, -50%);
  font-family: "Poppins", sans-serif;
  /* 英字の長さはページごとに違うため、画面幅に合わせて縮める */
  font-size: min(150px, 10vw);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-back-dark);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.sy-lead-catch {
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  line-height: 1.8;
  letter-spacing: 0.12em;
}
.sy-lead-text {
  margin-top: 24px;
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  line-height: 2.2;
  letter-spacing: 0.06em;
}
@media screen and (max-width: 767px) {
  .sy-lead {
    padding-block: 20px;
    text-align: left;
  }
  .sy-lead-watermark {
    font-size: 9vw;
  }
  .sy-lead-catch {
    font-size: 19px;
    line-height: 1.7;
    letter-spacing: 0.06em;
  }
  .sy-lead-text {
    margin-top: 16px;
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.04em;
  }
  /* PC用の改行はスマホでは外して自然に折り返す */
  .sy-lead br {
    display: none;
  }
}

/* ========================================
  〇〇とは？（白いカード：左テキスト／右に図 or 画像）
======================================== */
.sy-about {
  margin-top: 60px;
  padding: 60px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 60px;
  align-items: center;
  background-color: var(--color-white);
  border-radius: var(--sy-card-radius);
  box-shadow: var(--sy-card-shadow);
}
.sy-about-text {
  margin-top: 24px;
  font-size: 15px;
  line-height: 2;
}
.sy-about-text p + p {
  margin-top: 1.4em;
}
.sy-about-img {
  aspect-ratio: 4 / 3;
  border-radius: 15px;
  overflow: hidden;
}
.sy-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sy-about-img.-placeholder {
  background-color: var(--color-border-beige);
}

/* -- 「とは？」右側のイラスト／図：右カラム幅に収め、中央に置く -- */
.sy-visual {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

/* hub：中心の丸（赤）と周囲4つの丸（白）を点線の円と十字でつなぐ（一元管理のイメージ。基幹システム開発のみ） */
.sy-hub {
  position: relative;
  aspect-ratio: 1;
  color: var(--color-border-beige);
}
.sy-hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sy-hub-core,
.sy-hub-node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
}
.sy-hub-core {
  top: 50%;
  left: 50%;
  width: 40%;
  aspect-ratio: 1;
  background-color: var(--color-main);
  color: var(--color-white);
  font-size: 16px;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(229, 0, 18, 0.25);
}
.sy-hub-node {
  width: 27%;
  aspect-ratio: 1;
  background-color: var(--color-back-light);
  border: 1px solid var(--color-border-beige);
  color: var(--text-main-color);
  font-size: 13px;
}
.sy-hub-node.-n1 { top: 13.5%; left: 50%; }
.sy-hub-node.-n2 { top: 50%; left: 86.5%; }
.sy-hub-node.-n3 { top: 86.5%; left: 50%; }
.sy-hub-node.-n4 { top: 50%; left: 13.5%; }

/* イラスト画像は切り抜かずにそのまま表示 */
.sy-visual > img {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 767px) {
  .sy-about {
    margin-top: 30px;
    padding: 28px 20px 32px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sy-about-text {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.9;
  }
  .sy-visual {
    max-width: 300px;
  }
  .sy-hub {
    max-width: 260px;
  }
  .sy-hub-core {
    font-size: 13px;
  }
  .sy-hub-node {
    font-size: 12px;
  }
}

/* ========================================
  お悩み事例（課題・要望 → 提案 → 効果）
  1事例＝白いボックス。左に番号と見出し、右に3ステップを縦のタイムラインで並べる
======================================== */
.sy-issue {
  margin-top: var(--sy-space);
  background-color: var(--color-back-dark);
}
.sy-issue-list {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: var(--sy-space);
}
.sy-issue-item {
  padding: 50px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 60px;
  background-color: var(--color-white);
  border-radius: var(--sy-card-radius);
  box-shadow: var(--sy-card-shadow);
}
.sy-issue-num {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.2em;
  color: var(--color-main);
}
.sy-issue-num span {
  display: block;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.sy-issue-title {
  margin-top: 18px;
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  line-height: 1.6;
  letter-spacing: 0.08em;
}

/* タイムライン：課題（ネガティブ）→ 提案（転換）→ 効果（ポジティブ）
   サイト共通色の 青 → 緑 → コーポレートレッド で温度が上がっていく配色 */
.sy-issue-steps {
  position: relative;
  display: grid;
  gap: 28px;
}
.sy-issue-steps::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 13px;
  width: 2px;
  background: linear-gradient(var(--color-blue), var(--color-green), var(--color-main));
}
.sy-issue-step {
  position: relative;
  padding-left: 56px;
}
.sy-issue-step.-issue {
  --sy-step-color: var(--color-blue);
  --sy-step-back: var(--color-blue-back);
}
.sy-issue-step.-proposal {
  --sy-step-color: var(--color-green);
  --sy-step-back: var(--color-green-back);
}
.sy-issue-step.-effect {
  --sy-step-color: var(--color-main);
  --sy-step-back: var(--color-back-pink);
}
/* 線上のリング */
.sy-issue-step::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 28px;
  height: 28px;
  border: 6px solid var(--sy-step-color);
  border-radius: 50%;
  background-color: var(--color-white);
}
.sy-issue-label {
  width: fit-content;
  padding: 4px 18px;
  background-color: var(--sy-step-color);
  border-radius: 9999px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.sy-issue-text {
  margin-top: 10px;
  padding: 18px 22px;
  background-color: var(--sy-step-back);
  border-radius: 12px;
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* 末尾の誘導バナー
   -legacy：レガシーシステム移行支援へ。遷移先の紺をアクセントに残しつつ、淡いグレーブルーの面にする
   -contact：お問い合わせへ。コーポレートレッドの面に白いボタン */
.sy-issue-banner {
  margin-top: var(--sy-space);
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  border-radius: 40px;
  text-align: center;
}
.sy-issue-banner.-legacy {
  --sy-legacy-navy: #142855;
  --sy-legacy-navy-dark: #041949;
  background: linear-gradient(135deg, var(--color-blue-back) 0%, #dfe5ef 100%);
  color: var(--sy-legacy-navy);
}
.sy-issue-banner.-contact {
  background-color: var(--color-main);
  color: var(--color-white);
}
/* 赤地の上なので、ボタンは白地＋赤文字（ホバーで共通の濃色へ） */
.sy-issue-banner.-contact .common-button {
  background-color: var(--color-white);
  color: var(--color-main);
}
.sy-issue-banner.-contact .common-button__icon::before {
  background-color: var(--color-main);
}
.sy-issue-banner.-contact .common-button:hover,
.sy-issue-banner.-contact .common-button:focus-visible {
  color: var(--color-white);
}
.sy-issue-banner.-contact .common-button:hover .common-button__icon::before,
.sy-issue-banner.-contact .common-button:focus-visible .common-button__icon::before {
  background-color: var(--color-white);
}
.sy-issue-banner-text {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  line-height: 1.8;
  letter-spacing: 0.1em;
}
.sy-issue-banner-sub {
  margin-top: -10px;
  font-size: 15px;
  line-height: 1.9;
}
.sy-issue-banner.-legacy .common-button {
  background-color: var(--sy-legacy-navy);
}
.sy-issue-banner.-legacy .common-button::before {
  background-color: var(--sy-legacy-navy-dark);
}

@media screen and (max-width: 767px) {
  .sy-issue-list {
    margin-top: 45px;
  }
  .sy-issue-item {
    padding: 28px 18px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sy-issue-num span {
    display: inline;
    margin-left: 6px;
    font-size: 32px;
  }
  .sy-issue-title {
    margin-top: 8px;
    font-size: 17px;
    letter-spacing: 0.05em;
  }
  .sy-issue-steps {
    gap: 20px;
  }
  .sy-issue-steps::before {
    left: 10px;
  }
  .sy-issue-step {
    padding-left: 40px;
  }
  .sy-issue-step::before {
    width: 22px;
    height: 22px;
    border-width: 5px;
  }
  .sy-issue-label {
    padding: 3px 14px;
    font-size: 13px;
  }
  .sy-issue-text {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.9;
  }
  .sy-issue-banner {
    padding: 35px 15px;
    border-radius: 15px;
  }
  .sy-issue-banner-text {
    font-size: 15px;
  }
  .sy-issue-banner-text br {
    display: none;
  }
  .sy-issue-banner-sub {
    font-size: 13px;
    text-align: left;
  }
}

/* ========================================
  実装機能例（.sl-onayami-list を流用した差分のみ）
======================================== */
.sy-feature {
  padding-block: var(--sy-space);
}
.sy-feature-list > li {
  justify-content: flex-start;
  box-shadow: var(--sy-card-shadow);
}
.sy-feature-list .sl-onayami-heading {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.sy-feature-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-back-dark);
  box-shadow: none;
}
.sy-feature-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.sy-feature-icon.-placeholder {
  background-color: var(--color-border-beige);
}
.sy-feature-list .sl-onayami-text {
  font-size: 13px;
}
.sy-feature-note {
  margin-top: 50px;
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  line-height: 1.8;
}
@media screen and (max-width: 767px) {
  .sy-feature-list .sl-onayami-heading {
    min-height: 0;
    font-size: 16px;
  }
  .sy-feature-icon {
    width: 80px;
    height: 80px;
  }
  .sy-feature-icon img {
    width: 40px;
    height: 40px;
  }
  .sy-feature-note {
    margin-top: 30px;
    font-size: 16px;
  }
}

/* ========================================
  活用技術（2カラムのカード：上に横長の画像、下に技術名と説明）
  技術名は英字を大きく見せ、カードの上辺にコーポレートレッドの短い線を置く
======================================== */
.sy-tech {
  margin-top: var(--sy-space);
  /* 研究開発らしい寒色の帯。下の白いブロック（開発環境など）と切り替える */
  background-color: var(--color-blue-back);
}
.sy-tech-lead {
  margin: 24px auto 0;
  max-width: 820px;
  text-align: center;
  font-size: 15px;
  line-height: 2;
}
.sy-tech-list {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.sy-tech-item {
  position: relative;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--color-white);
  border-radius: var(--sy-card-radius);
  box-shadow: var(--sy-card-shadow);
}
.sy-tech-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 40px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background-color: var(--color-main);
}
.sy-tech-name {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  letter-spacing: 0.04em;
}
.sy-tech-full {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-sub-color);
  letter-spacing: 0.04em;
}
.sy-tech-text {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-beige);
  font-size: 14px;
  line-height: 1.9;
}
.sy-tech-img {
  order: -1;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
}
.sy-tech-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ロゴ画像など、切り抜かずに全体を見せたい場合 */
.sy-tech-img.-contain {
  padding: 15% 18%;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-beige);
}
.sy-tech-img.-contain img {
  object-fit: contain;
}
.sy-tech-img.-placeholder {
  display: grid;
  place-items: center;
  background-color: var(--color-blue-back);
  font-family: "Poppins", sans-serif;
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: var(--color-border-blue);
}
@media screen and (max-width: 767px) {
  .sy-tech-lead {
    margin-top: 16px;
    text-align: left;
    font-size: 14px;
  }
  .sy-tech-list {
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sy-tech-item {
    padding: 20px 20px 28px;
    gap: 20px;
  }
  .sy-tech-item::before {
    left: 20px;
  }
  .sy-tech-name {
    font-size: 20px;
  }
  .sy-tech-text {
    font-size: 13px;
  }
  .sy-tech-img.-placeholder {
    font-size: 32px;
  }
}

/* ========================================
  オフショア開発
======================================== */
.sy-offshore {
  /* トップページ「事業内容」と同じ薄緑 */
  background-color: var(--color-green-back);
}
.sy-offshore-box {
  position: relative;
  padding: 45px 50px 50px;
  background-color: var(--color-white);
  border-radius: 15px;
  box-shadow: var(--sy-card-shadow);
}
/* ボックス下の下向き三角 */
.sy-offshore-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 74px;
  height: 28px;
  background-color: var(--color-white);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}
.sy-offshore-title {
  text-align: center;
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.sy-offshore-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.sy-offshore-list > li {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-green-back);
  border-radius: 10px;
}
/* お悩みアイコン（it-consultingのSVGをマスクにして緑で塗る） */
.sy-offshore-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background-color: var(--color-green);
  -webkit-mask: url("../../images/solution/it-consulting/icon-mood-sad.svg") center / contain no-repeat;
  mask: url("../../images/solution/it-consulting/icon-mood-sad.svg") center / contain no-repeat;
}
.sy-offshore-sub {
  font-size: 12px;
  color: var(--text-sub-color);
}
.sy-offshore-main {
  margin-top: 2px;
  font-size: 17px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
}
.sy-offshore-lead {
  margin: 70px 0 0;
  text-align: center;
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.sy-offshore-em {
  color: var(--color-green);
  border-bottom: 3px solid var(--color-green);
}
/* ボタンは緑地（ホバーは共通の濃色） */
.sy-offshore-btn {
  margin-top: 40px;
  text-align: center;
}
.sy-offshore .common-button {
  background-color: var(--color-green);
}
@media screen and (max-width: 767px) {
  .sy-offshore-box {
    padding: 30px 15px;
  }
  .sy-offshore-box::after {
    width: 56px;
    height: 22px;
  }
  .sy-offshore-title {
    font-size: 17px;
    letter-spacing: 0.05em;
  }
  .sy-offshore-list {
    margin-top: 20px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sy-offshore-main {
    font-size: 15px;
  }
  .sy-offshore-lead {
    margin: 50px 0 0;
    font-size: 19px;
    letter-spacing: 0.08em;
  }
}

/* ========================================
  実績（3カラムグリッド）
======================================== */
.sy-works {
  padding-top: var(--sy-space);
}
.sy-works-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
.sy-works-more {
  margin-top: 50px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .sy-works-list {
    margin-top: 25px;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .sy-works-more {
    margin-top: 30px;
  }
}

/* ========================================
  主な開発環境実績（.sl-tools／.works-overview を流用した差分のみ）
======================================== */
.page.-sy .sy-env {
  margin-top: var(--sy-space);
}
.sy-env .works-overview__row {
  grid-template-columns: 240px 1fr;
  padding: 18px 30px;
  border-top: none;
}
.sy-env .works-overview__row:last-child {
  border-bottom: none;
}
.sy-env .works-overview__row:nth-child(odd) {
  background-color: var(--color-back-dark);
}
.sy-env-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.sy-env-values > li::before {
  content: "・";
}
@media screen and (max-width: 767px) {
  .sy-env .works-overview__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 15px;
  }
}

/* ========================================
  よくあるご質問／事業内容（共通パーツ）の余白をこのページのリズムに合わせる
======================================== */
.page.-sy .pr-faq {
  margin-top: var(--sy-space);
  padding-block: var(--sy-space);
  border-radius: var(--sy-band-radius) var(--sy-band-radius) 0 0;
}
.page.-sy .sl-business {
  margin-top: var(--sy-space);
}
