/* ==========================================================================
 * Page Name : 事業内容CSS（共通）
 * File Name : /assets/css/solution.css
 * Created   : 2026-09-24
 * Updated   : 2026-09-24
 *
 * /solution/ 配下の全ページ（事業内容・システム開発・デザイン・ITコンサル等）で
 * 共通して使うセクションパターン集。クラス名はページ名に依存しない汎用名（.sl-*）。
 * ページ固有の調整は assets/css/solution/{page-slug}.css 側に書くこと。
 *
 * body.page-template-solution は WordPress標準の body_class() が
 * テンプレートファイルのパス階層（例: solution/design/website.php）から
 * 自動付与するクラス。/solution/ 配下にファイルを置けば新規ページでも
 * 自動的に付与されるので、共通パーツ（実績・FAQ・採用情報・お知らせ等）への
 * スコープ指定に使う。
 * ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* ========================================
  　下層共通部分
======================================== */
.page.-sl {
  margin-bottom: 120px;
  background-color: var(--color-back-light);
}
@media screen and (max-width: 767px) {
  .page.-sl {
    margin-bottom: 60px;
  }
}

/* MVのブリード（margin-right: calc(-50vw + 50%)）による横スクロール対策
   （sitewideのposition:stickyを壊すため、html/bodyへの指定ではなく/solution/配下のページに限定） */
body.page-template-solution {
  overflow-x: hidden;
}
html:has(body.page-template-solution) {
  overflow-x: hidden;
}

/* -- MV（実績詳細ページのworksSingle-heroRowを流用） -- */
.sl-mv {
  margin-top: 80px;
}
.sl-mv.worksSingle-heroRow .worksSingle-heroRow__text {
  flex: 0 0 50%;
  min-width: 0;
}
.sl-mv .worksSingle-hero__item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: left center;
  border-radius: 40px 0 0 40px;
}
.sl-mv-title {
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  line-height: 1.6;
  letter-spacing: 0.1em;
}
.sl-mv-text {
  margin-top: 25px;
  font-size: 15px;
  line-height: 1.9;
}
@media screen and (max-width: 767px) {
  .sl-mv-title {
    font-size: 20px;
  }
  .sl-mv-text {
    margin-top: 20px;
    font-size: 13px;
  }
  .sl-mv.worksSingle-heroRow .worksSingle-heroRow__media {
    margin-right: calc(-50vw + 50%);
  }
  .sl-mv .worksSingle-hero__item img {
    border-radius: 0;
  }
}

/* -- お悩み解決カード（3枚・円形画像） -- */
.sl-onayami {
  margin-top: 80px;
  padding: 80px 0;
  background-color: var(--color-back-dark);
}
.sl-onayami-title {
  text-align: center;
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.sl-onayami-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.sl-onayami-list > li {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 0 3px rgba(247, 234, 218, 1);
}
.sl-onayami-heading {
  min-height: 60px;
  text-align: center;
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  line-height: 1.6;
}
.sl-onayami-img {
  margin-top: 25px;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(88, 72, 73, 0.12);
}
.sl-onayami-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sl-onayami-text {
  margin-top: 25px;
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  line-height: 1.8;
}
@media screen and (max-width: 767px) {
  .sl-onayami {
    padding: 40px 0;
  }
  .sl-onayami-title {
    font-size: 22px;
  }
  .sl-onayami-list {
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sl-onayami-list > li {
    padding: 30px 20px;
  }
  .sl-onayami-heading {
    min-height: 0;
  }
}

/* -- 制作範囲（カード＋アコーディオン＋CTAボックス） -- */
.sl-scope {
  margin-top: 80px;
}
.sl-scope-title {
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
}
.sl-scope-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 30px;
}
.sl-scope-list > li {
  overflow: hidden;
  background-color: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 0 3px rgba(88, 72, 73, 0.12);
}
.sl-scope-img {
  aspect-ratio: 4 / 3;
}
.sl-scope-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sl-scope-list > li.ac-item {
  cursor: pointer;
}
.sl-scope-head {
  margin-top: 20px;
  padding: 0 25px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.sl-scope-label {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
}
.sl-scope-arrow {
  flex: 0 0 auto;
  width: 12px;
  height: 8px;
  position: relative;
  transition: transform 0.3s ease;
}
.sl-scope-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  border: solid var(--color-main);
  border-width: 0 2px 2px 0;
  width: 8px;
  height: 8px;
  transform: rotate(45deg) translate(-2px, -2px);
}
.sl-scope-arrow.ac-icon-active {
  transform: rotate(180deg);
}
.sl-scope-list .ac-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.sl-scope-text {
  padding: 0 25px 25px;
  font-size: 13px;
  font-weight: var(--font-weight-regular);
  line-height: 1.8;
  color: var(--color-text-sub, #585555);
}
.sl-scope-cta {
  margin-top: 40px;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-back-dark);
  border-radius: 40px;
}
.sl-scope-cta__text {
  margin-bottom: 40px;
  font-size: 26px;
  letter-spacing: 0.15em;
}
@media screen and (max-width: 767px) {
  .sl-scope-title {
    font-size: 20px;
  }
  .sl-scope-list {
    margin-top: 25px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sl-scope-cta {
    margin-top: 30px;
    padding: 40px 10px;
    border-radius: 15px;
  }
  .sl-scope-cta__text {
    margin-bottom: 20px;
    font-size: 20px;
  }
}

/* -- こだわり（横長カード・左画像／右テキスト） -- */
.sl-kodawari {
  margin-top: 80px;
  padding: 80px 0;
  background-color: var(--color-back-dark);
}
.sl-kodawari-title {
  text-align: center;
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.sl-kodawari-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sl-kodawari-list > li {
  display: flex;
  align-items: stretch;
  min-height: 260px;
  background-color: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 0 3px rgba(247, 234, 218, 1);
  overflow: hidden;
}
.sl-kodawari-img {
  flex: 0 0 40%;
}
.sl-kodawari-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sl-kodawari-body {
  flex: 1;
  min-width: 0;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sl-kodawari-head {
  display: flex;
  align-items: baseline;
  gap: 15px;
}
.sl-kodawari-num {
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  color: var(--custom-color-2, #e50012);
}
.sl-kodawari-heading {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
}
.sl-kodawari-text {
  margin-top: 15px;
  font-size: 15px;
  font-weight: var(--font-weight-regular);
  line-height: 1.9;
  color: var(--color-text-sub, #585555);
}
@media screen and (max-width: 767px) {
  .sl-kodawari {
    padding: 40px 0;
  }
  .sl-kodawari-title {
    font-size: 22px;
  }
  .sl-kodawari-list {
    gap: 20px;
  }
  .sl-kodawari-list > li {
    flex-direction: column;
    min-height: 0;
    border-radius: 15px;
  }
  .sl-kodawari-img {
    flex-basis: auto;
    aspect-ratio: 4 / 3;
  }
  .sl-kodawari-body {
    padding: 20px;
  }
  .sl-kodawari-num {
    font-size: 22px;
  }
  .sl-kodawari-heading {
    font-size: 18px;
  }
  .sl-kodawari-text {
    margin-top: 10px;
    font-size: 13px;
  }
}

/* -- 制作の流れ（番号付きステップ・縦ライン） -- */
.sl-flow {
  margin-top: 80px;
}
.sl-flow-title {
  text-align: center;
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.sl-flow-list {
  margin-top: 30px;
  counter-reset: sl-flow;
}
.sl-flow-list > li {
  position: relative;
  padding-left: 55px;
  padding-bottom: 40px;
}
.sl-flow-list > li:last-of-type {
  padding-bottom: 0;
}
.sl-flow-list > li::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 19px;
  width: 2px;
  background-color: var(--color-back-dark);
}
.sl-flow-list > li:last-of-type::before {
  content: none;
}
.sl-flow-list > li::after {
  content: counter(sl-flow, decimal-leading-zero);
  counter-increment: sl-flow;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--custom-color-2, #e50012);
  color: var(--color-white);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
}
.sl-flow-listTitle {
  padding-top: 8px;
  font-size: 18px;
  font-weight: var(--font-weight-bold);
}
.sl-flow-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
}
@media screen and (max-width: 767px) {
  .sl-flow-title {
    font-size: 22px;
  }
}

/* -- テーブル型情報（対応可能なツール等でworks-overviewを流用） -- */
.sl-tools {
  margin-top: 80px;
}
.sl-tools-title {
  text-align: center;
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.sl-tools .works-overview {
  margin-top: 15px;
}
.sl-tools .works-overview__row {
  grid-template-columns: 190px 1fr;
}
.sl-tools .works-overview__row dt {
  white-space: nowrap;
}
@media screen and (max-width: 767px) {
  .sl-tools-title {
    font-size: 22px;
  }
  .sl-tools .works-overview__row {
    grid-template-columns: 1fr;
  }
  .sl-tools .works-overview__row dt {
    white-space: normal;
  }
}

/* -- 事業内容カード（アイコン＋カテゴリ名＋内訳リスト） -- */
.sl-business {
  margin-top: 80px;
}
.sl-business-title {
  text-align: center;
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.sl-business-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.sl-business-list > li {
  padding: 30px;
  background-color: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 0 3px rgba(88, 72, 73, 0.12);
}
.sl-business-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-back-dark);
  text-decoration: none;
}
.sl-business-head img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.sl-business-head span {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  transition: opacity 0.3s ease;
}
.sl-business-head:hover span {
  opacity: 0.6;
}
.sl-business-items {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sl-business-items > li {
  padding-left: 1.1em;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}
.sl-business-items > li::before {
  content: "・";
  position: absolute;
  top: 0;
  left: 0;
}
.sl-business-items a {
  color: var(--color-main);
  text-decoration: underline;
}
.sl-business-items a:hover {
  text-decoration: none;
}
@media screen and (max-width: 767px) {
  .sl-business {
    margin-top: 60px;
  }
  .sl-business-title {
    font-size: 22px;
  }
  .sl-business-list {
    margin-top: 25px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sl-business-list > li {
    padding: 20px;
  }
}

/* -- 実績／よくあるご質問／採用情報／お知らせ（共通パーツ）の間隔・背景を統一 -- */
body.page-template-solution .works-related {
  margin-top: 80px;
}
body.page-template-solution .works-related__title::after {
  content: none;
}
body.page-template-solution .pr-faq {
  margin-top: 80px;
}
body.page-template-solution .parts-pagefoot {
  margin-top: 80px;
  background-color: var(--color-back-light);
}
body.page-template-solution .frontpage-news {
  background-color: var(--color-back-light);
  padding: 80px 0;
}

.sl-about {
  margin-top: 80px;
}

.sl-about-text {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.8;
}

@media screen and (max-width: 767px) {
  .sl-about {
    margin-top: 60px;
  }
  .sl-about-title {
    font-size: 20px;
  }
  .sl-about-text {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.8;
  }
  /* PC用の改行はスマホでは外して自然に折り返す */
  .sl-about-text br {
    display: none;
  }
}

/* -- FAQ回答内の遷移ボタン（中央寄せ） -- */
#acMenu .ac-menu .sl-faq-btnbox {
  display: flex;
  justify-content: center;
  padding: 20px 0 30px;
}

.-mt0 {
  margin-top: 0;
}
