/**************************************************************
 * solution-details.css
 * 「詳細表示エリア」および「ラベル」のアクティブ／非アクティブ状態に関するスタイル
 **************************************************************/

/*-------------------------------
  1) ラベルのアクティブ／非アクティブ
--------------------------------*/
.no-scroll {
  overflow: hidden; /* 縦横のスクロールを封じる */
  height: 100vh; /* 必要に応じてさらに固定 */
}

/*-------------------------------
  2) ソリューションカード詳細エリア
--------------------------------*/

/* 詳細全体のラッパ - 上書きを防ぐために空にする */
/* .solution-card-detail{
	margin:auto
} */

/* 詳細内容が非表示の時はお問い合わせボタンと詳細を閉じるボタンを確実に非表示にする */
.solution-card-detail[style*="display: none"] .detail-download-button-wrapper,
.solution-card-detail[style*="display: none"] .detail-close-button-wrapper {
  display: none !important;
}

/* 運用型広告など特定のソリューションカードの詳細部分をより強く制御 */
.solution-card-item[data-solution="運用型広告"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="成果報酬型広告"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="インフルエンサーマーケティング"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="バイラルプロモーション"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="SNSメディア運用代行"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="マーケティングコンサルティング"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="マーケティングリサーチ"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="製品企画提案"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="ECモール運用支援"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="自社EC運用支援"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="LP、画像、動画制作"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="マンガクリエイティブ制作"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="AX・システム開発"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="マーケティングシステム制作⓵"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="マーケティングシステム制作⓶"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="プロダクト"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="ECマーケター育成"]
  .solution-card-detail:not(.active),
.solution-card-item[data-solution="未経験人材紹介"]
  .solution-card-detail:not(.active) {
  display: none !important;
}

/* すべてのお問い合わせボタンと詳細を閉じるボタンのデフォルト状態も非表示に */
.detail-download-button-wrapper,
.detail-close-button-wrapper,
div:not(.solution-card-detail) > .detail-download-button-wrapper,
.solution-card-item > .detail-download-button-wrapper,
.solution-card-item > .detail-close-button-wrapper {
  display: none !important;
}

/* 特定のデータ属性を持つカード - 詳細展開時例外処理 */
/* 詳細が開いている場合は例外として表示する */
.solution-card-item[data-solution="SNSメディア運用代行"].expanded
  > .detail-download-button-wrapper,
.solution-card-item[data-solution="SNSメディア運用代行"].expanded
  > .detail-close-button-wrapper,
.solution-card-item[data-solution="バイラルプロモーション"].expanded
  > .detail-download-button-wrapper,
.solution-card-item[data-solution="バイラルプロモーション"].expanded
  > .detail-close-button-wrapper,
.solution-card-item[data-solution="ECモール運用支援"].expanded
  > .detail-download-button-wrapper,
.solution-card-item[data-solution="ECモール運用支援"].expanded
  > .detail-close-button-wrapper,
.solution-card-item[data-solution="自社EC運用支援"].expanded
  > .detail-download-button-wrapper,
.solution-card-item[data-solution="自社EC運用支援"].expanded
  > .detail-close-button-wrapper,
.solution-card-item[data-solution="マーケティングコンサルティング"].expanded
  > .detail-download-button-wrapper,
.solution-card-item[data-solution="マーケティングコンサルティング"].expanded
  > .detail-close-button-wrapper {
  display: flex !important;
}

/* 詳細が閉じている場合は非表示 */
div[data-solution="SNSメディア運用代行"]:not(.expanded)
  > .detail-download-button-wrapper,
div[data-solution="SNSメディア運用代行"]:not(.expanded)
  > .detail-close-button-wrapper,
div[data-solution="バイラルプロモーション"]:not(.expanded)
  > .detail-download-button-wrapper,
div[data-solution="バイラルプロモーション"]:not(.expanded)
  > .detail-close-button-wrapper,
div[data-solution="ECモール運用支援"]:not(.expanded)
  > .detail-download-button-wrapper,
div[data-solution="ECモール運用支援"]:not(.expanded)
  > .detail-close-button-wrapper,
div[data-solution="自社EC運用支援"]:not(.expanded)
  > .detail-download-button-wrapper,
div[data-solution="自社EC運用支援"]:not(.expanded)
  > .detail-close-button-wrapper,
div[data-solution="マーケティングコンサルティング"]:not(.expanded)
  > .detail-download-button-wrapper,
div[data-solution="マーケティングコンサルティング"]:not(.expanded)
  > .detail-close-button-wrapper {
  display: none !important;
}

/* 詳細が表示された時だけお問い合わせボタンと詳細を閉じるボタンを表示 */
.solution-card-detail:not([style*="display: none"])
  .detail-download-button-wrapper,
.solution-card-detail:not([style*="display: none"])
  .detail-close-button-wrapper,
.solution-card-detail.active .detail-download-button-wrapper,
.solution-card-detail.active .detail-close-button-wrapper,
.solution-card-detail.active + .detail-download-button-wrapper,
.solution-card-detail.active ~ .detail-close-button-wrapper {
  display: flex !important;
}
.solution-card-detail .solution-detail {
  padding: 0px 26px;
  /* 背景色や枠線などは必要に応じて追記 */
}

/* 修正: 閉じ括弧 } が余分にあったのを削除し、さらに詳細な余白設定を追加 */
.solution-card-detail {
  padding: 0 26px;
  margin: auto;
}

/* 見出し（大項目） */
.detail-heading {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px; /* 160% */
  letter-spacing: 5px;
  margin-bottom: 16px;
}

/* 小見出し（サブタイトル） */
.detail-subtitle {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 4px;
  margin-bottom: 6px;
  display: inline-block; /* インラインブロック要素に変更 */
  padding: 0 8px; /* 左右のパディングを追加 */
  background: #8dcde9;
  margin-bottom: 10px;
}

/* 通常テキスト */
.detail-text {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px; /* 175% */
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}

.detail-content[data-area="strategy"] .solution-card-detail,
.detail-content[data-area="strategy"] .solution-card-detail .solution-detail {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  overflow: visible;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.detail-content[data-area="strategy"] .solution-card-detail .detail-flex {
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}

.detail-content[data-area="strategy"] .solution-card-detail .detail-image {
  width: min(34%, 320px) !important;
  height: auto !important;
  max-height: none;
  object-fit: cover;
}

.detail-content[data-area="strategy"] .solution-card-detail .detail-whitebox,
.detail-content[data-area="strategy"] .solution-card-detail .sns-detail-whitebox {
  width: auto !important;
  min-width: 0;
  height: auto !important;
  min-height: 0;
  align-items: flex-start;
  overflow: visible;
}

.detail-content[data-area="strategy"] .solution-card-detail .detail-whitebox-text,
.detail-content[data-area="strategy"] .solution-card-detail .marketing-detail-whitebox-text,
.detail-content[data-area="strategy"] .solution-card-detail .sns-detail-whitebox-text {
  overflow: visible;
}

/* Keep expanded solution details readable across all business area pages. */
.detail-content .solution-card-detail,
.detail-content .solution-card-detail .solution-detail {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  overflow: visible;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.detail-content .solution-card-detail .detail-flex {
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}

.detail-content .solution-card-detail .detail-image {
  width: min(34%, 320px) !important;
  height: auto !important;
  max-height: none;
  object-fit: cover;
}

.detail-content .solution-card-detail .detail-whitebox,
.detail-content .solution-card-detail .sns-detail-whitebox {
  width: auto !important;
  min-width: 0;
  height: auto !important;
  min-height: 0;
  align-items: flex-start;
  overflow: visible;
}

.detail-content .solution-card-detail .detail-whitebox-text,
.detail-content .solution-card-detail .marketing-detail-whitebox-text,
.detail-content .solution-card-detail .sns-detail-whitebox-text {
  overflow: visible;
}

.detail-strong {
  color: #de021e;
  font-family: "BIZ UDGothic";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px; /* 160% */
  letter-spacing: 5px;
  margin-bottom: 20px;
}

/* 画像 + 白背景ボックスを横に並べる親コンテナ */
.detail-flex {
  display: flex;
  margin-top: 30px;
  margin-bottom: 30px;
  gap: 20px;
  align-items: flex-start;
}

/* 左側の画像 */
.detail-image {
  width: auto !important;
  height: 394px !important;
  object-fit: cover;
  flex-shrink: 0;
}

/* 右側の白背景コンテナ（デフォルト・PC用） */
.detail-whitebox {
  display: flex;
  width: 376px;
  height: 393px;
  padding: 20px 16px;
  padding-bottom: 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 28px;
}

/* 白背景コンテナ内のテキスト */
.detail-whitebox-text {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 1px;
  text-align: left;
  margin: 0;
}

/* インフルエンサーマーケティングなどで使うテキスト */
.marketing-detail-whitebox-text {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 3.2px;
  text-align: left;
  margin: 0;
}

/* SNSメディア運用代行などで使うテキスト */
.sns-detail-whitebox-text {
  color: #333;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 35px;
  letter-spacing: 3.2px;
  text-align: left;
  margin: 0;
}

/* SNSメディア運用代行などで使う白背景コンテナ（デフォルト・PC用） */
.sns-detail-whitebox {
  display: flex;
  width: 342px;
  height: 390px;
  padding: 0px 25px;
  padding-bottom: 0px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
}

/* ダウンロードボタンのラッパー */
.detail-download-button-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 40px 0;
  padding-bottom: 30px;
}

/* ダウンロードボタン本体 */
.detail-download-button {
  color: #fff;
  text-align: center;
  font-family: "BIZ UDGothic";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 5px;
  padding: 20px 60px;
  border-radius: 14px;
  background: #00a0e9;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ホバー効果 */
.detail-download-button:hover {
  background: #2391c4; /* 少し明るい赤色 */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(222, 2, 30, 0.3);
}

/* アクティブ（クリック）効果 */
.detail-download-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(222, 2, 30, 0.3);
}

/* 画像エリアのスタイル */
.detail-image-area {
  margin: 30px 0;
}

/* 画像が設定された場合のスタイル */
.detail-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*========================================
  ▼ ここからメディアクエリ（レスポンシブ対応）▼
=========================================*/

/* タブレットサイズ以下（例: 1024px以下）で white-box の幅・高さを自動調整 */
/* 必要に応じてブレイクポイントや値を調整してください */
/* モバイルサイズ以下（例: 767px以下）で画像を非表示にする */
@media screen and (max-width: 767px) {
  .detail-image {
    display: none !important;
  }

  .detail-flex {
    /* 画像が消えるので、縦並びを確実にしておく */
    flex-direction: column;
  }

  /* 白背景ボックスは全幅で高さも可変に */
  .detail-whitebox,
  .sns-detail-whitebox {
    width: 100% !important;
    height: auto !important;
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .detail-download-button {
    font-size: 16px;
    padding: 40px 20px;
    width: 80%; /* モバイルでは横幅を制限 */
    letter-spacing: 3px;
  }
  .detail-image-area {
    height: 250px; /* タブレット用に高さを調整 */
  }
}

@media screen and (max-width: 490px) {
  .detail-text {
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px; /* 175% */
    margin-bottom: 22px;
  }
  .detail-subtitle {
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px; /* 175% */
    letter-spacing: 2px;
    margin-bottom: 6px;
    display: inline-block;
    padding: 0 8px;
    background: #8dcde9;
    margin-bottom: 10px;
  }
  .detail-heading {
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 3px;
    margin-bottom: 16px;
  }
  .detail-download-button {
    font-size: 12px;
    padding: 18px 16px;
    width: 90%;
    letter-spacing: 2px;
  }
  .detail-image-area {
    height: 200px; /* スマートフォン用に高さを調整 */
  }
  .marketing-detail-whitebox-text {
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: 2.2px;
    text-align: left;
    margin: 0;
  }
}
