/* === 保守性向上レイヤー === */

/* ============================================================================
   Den-SHOW Design System 1.0 RC2
   File: assets/css/v1-rc2-maintainability.css
   --------------------------------------------------------------------------
   Purpose:
   RC2で確定したブランド文言・Hero階層・問い合わせ導線・保守性改善を
   既存のLayer Architectureへ追加する最終調整レイヤー。

   Architecture Rule:
   - tokens.css / layout.css / effects.css / motion.css / components.css は基盤。
   - 本ファイルは公開直前の統合レイヤーとして、Businessページ横断の
     共通ルールのみを記述する。
   - 個別ページ固有の視覚表現は、可能な限り .ds-page--xxx Modifier で管理する。

   Brand Rule:
   - TOPのみMotionあり。
   - Businessページは固定画像Hero + 静的Overlay。
   - 事業色は背景・カード・CTAではなく、見出し補助線やMotionに限定する。

   @since 1.0.0-rc2
============================================================================ */

/* --------------------------------------------------------------------------
   Business Hero Shared Quality
   --------------------------------------------------------------------------
   Purpose:
   Commerce / Technology / Social Value のHeroが暗くなりすぎないよう、
   Placeと同等の視認性へ揃える。画像は固定、Light Trailsは使用しない。
--------------------------------------------------------------------------- */
.ds-page--commerce .ds-business-hero,
.ds-page--technology .ds-business-hero--technology,
.ds-page--social-value .ds-business-hero--social-value {
  min-height: clamp(560px, 70vh, 760px) !important;
}

.ds-page--commerce .ds-business-hero__image img,
.ds-page--technology .ds-business-hero--technology .ds-business-hero__image img,
.ds-page--social-value
  .ds-business-hero--social-value
  .ds-business-hero__image
  img {
  filter: saturate(0.86) contrast(1.03) brightness(0.76) !important;
}

.ds-page--commerce .ds-business-hero__overlay,
.ds-page--technology .ds-business-hero--technology .ds-business-hero__overlay,
.ds-page--social-value
  .ds-business-hero--social-value
  .ds-business-hero__overlay {
  opacity: 0.86 !important;
}

/* === レスポンシブ・環境別調整 === */

@media (max-width: 760px) {
  .ds-page--commerce .ds-business-hero,
  .ds-page--technology .ds-business-hero--technology,
  .ds-page--social-value .ds-business-hero--social-value {
    min-height: auto !important;
    padding-top: 124px !important;
    padding-bottom: 72px !important;
  }
}

/* --------------------------------------------------------------------------
   Business Kicker / Green Divider
   --------------------------------------------------------------------------
   Purpose:
   Placeで確立した緑のアクセントを全Businessページへ統一適用する。
   事業色ではなく、Den-SHOW共通のブランドアクセントとして扱う。
--------------------------------------------------------------------------- */
.ds-page--business-detail .ds-business-hero .ds-kicker,
.ds-page--technology .ds-business-hero--technology .ds-kicker,
.ds-page--social-value .ds-business-hero--social-value .ds-kicker,
.ds-page--business-detail .ds-business-future .ds-kicker,
.ds-page--technology .ds-technology-future .ds-kicker,
.ds-page--social-value .ds-social-future .ds-kicker {
  color: var(--ds-green-bright, #35e18a) !important;
}

.ds-page--business-detail .ds-business-hero .ds-kicker::after,
.ds-page--technology .ds-business-hero--technology .ds-kicker::after,
.ds-page--social-value .ds-business-hero--social-value .ds-kicker::after {
  content: "";
  display: block;
  width: min(92px, 22vw);
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(
    90deg,
    var(--ds-green-bright, #35e18a),
    transparent
  );
  box-shadow: 0 0 18px rgba(53, 225, 138, 0.28);
}

/* --------------------------------------------------------------------------
   Social Value / PRISON ART Partner Display
   --------------------------------------------------------------------------
   Purpose:
   ShoPro × 伝ＳＨＯＷの共同性を読みやすく大きく見せる。
   ただし主役は企業ロゴではなく、共創から生まれる社会価値である。
--------------------------------------------------------------------------- */
.ds-social-partner {
  display: block !important;
  width: 100% !important;
  max-width: 560px !important;
  padding: 18px 20px !important;
  border-radius: 24px !important;
  font-size: clamp(14px, 1.35vw, 18px) !important;
  line-height: 1.75 !important;
  letter-spacing: 0.08em !important;
  text-align: center !important;
}

.ds-social-partner span {
  display: inline-block;
  padding: 2px 0;
  color: var(--ds-green-bright, #35e18a);
  font-size: 1.35em;
  line-height: 1;
}

.ds-button--social {
  margin-right: auto !important;
  margin-left: auto !important;
  align-self: center !important;
}

/* --------------------------------------------------------------------------
   Floating Contact Button
   --------------------------------------------------------------------------
   Purpose:
   ページ下部CTAへ到達する前でも問い合わせ導線を常時提供する。
   邪魔にならない右下固定ボタンとして実装する。
--------------------------------------------------------------------------- */
.ds-floating-contact {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--ds-green-soft, #8cc85f),
    var(--ds-green, #4dbb62)
  );
  color: #031006 !important;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  box-shadow: 0 18px 48px rgba(35, 160, 78, 0.28);
  transform: translateZ(0);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    opacity 0.28s ease;
}

.ds-floating-contact:hover,
.ds-floating-contact:focus-visible {
  box-shadow: 0 22px 60px rgba(35, 160, 78, 0.36);
  transform: translateY(-3px);
}

.ds-floating-contact__arrow {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 760px) {
  .ds-floating-contact {
    right: 14px;
    bottom: 14px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   Accessibility / Focus Ring
   --------------------------------------------------------------------------
   Purpose:
   キーボード操作時に現在位置が分かるよう、ブランドトーンに合う
   フォーカス表示を提供する。
--------------------------------------------------------------------------- */
.ds-page a:focus-visible,
.ds-page button:focus-visible {
  outline: 2px solid var(--ds-green-bright, #35e18a);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Hero Title Divider
   --------------------------------------------------------------------------
   Purpose:
   User-approved rule: place the green divider between the main Hero title
   and the lead copy on Place / Commerce / Technology / Social Value.
--------------------------------------------------------------------------- */
.ds-page--business-detail .ds-business-hero .ds-kicker::after,
.ds-page--technology .ds-business-hero--technology .ds-kicker::after,
.ds-page--social-value .ds-business-hero--social-value .ds-kicker::after {
  display: none !important;
}

.ds-page--business-detail .ds-business-hero__title::after,
.ds-page--technology .ds-business-hero__title::after,
.ds-page--social-value .ds-business-hero__title::after {
  content: "";
  display: block;
  width: min(96px, 24vw);
  height: 1px;
  margin-top: clamp(18px, 2.2vw, 28px);
  background: linear-gradient(
    90deg,
    var(--ds-green-bright, #35e18a),
    transparent
  );
  box-shadow: 0 0 18px rgba(53, 225, 138, 0.28);
}
