/* ==========================================================================
   Service Detail Page - detail.css
   NOKID Corporate Site v3.1
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables & Base
   -------------------------------------------------------------------------- */
:root {
  --sd-font-stack: "Zen Kaku Gothic New", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --sd-color-text: #0f0f0f;
  --sd-color-text-sub: #0f0f0f;
  --sd-color-bg-main: #F7F7F7;
  --sd-color-bg-white: #FFFFFF;
  --sd-color-accent: #0f0f0f;
  --sd-color-dark: #111111;
  --sd-color-border: #E0E0E0;
  --sd-color-border-light: #CCCCCC;
  --sd-color-text-muted: #0f0f0f;
  --sd-color-divider: #333333;
  --sd-inner-width: none;
  --sd-inner-width-wide: none;
  --sd-inner-pad-x: 28px;
  --sd-transition: 0.3s ease;
}

.sd-Page {
  font-family: var(--sd-font-stack);
  color: var(--sd-color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sd-Page *,
.sd-Page *::before,
.sd-Page *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Common Section Elements
   -------------------------------------------------------------------------- */
.sd-Section_Inner {
  max-width: var(--sd-inner-width);
  margin: 0 auto;
  padding: 80px var(--sd-inner-pad-x);
}

.sd-Section_Inner--wide {
  max-width: var(--sd-inner-width-wide);
}



/* --------------------------------------------------------------------------
   SEC-1: Hero (.sd-Hero) は末尾の「サービス詳細ヒーロー（2-C）」で定義
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   New CTA buttons (.sd-Btn)
   -------------------------------------------------------------------------- */




/* Primary (filled black) */

/* Secondary (outlined on dark) */

/* Legacy .sd-Btn block removed — unified into new system above */





/* --------------------------------------------------------------------------
   Stats Bar (.sd-Stats)
   -------------------------------------------------------------------------- */
.sd-Stats {
  background-color: var(--sd-color-dark);
}

.sd-Stats .sd-Section_Inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px var(--sd-inner-pad-x);
}

.sd-Stats_Item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.sd-Stats_Value {
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.sd-Stats_Label {
  font-size: 14px;
  font-weight: 400;
  color: var(--sd-color-text-muted);
  margin-top: 4px;
}

.sd-Stats_Divider {
  width: 1px;
  height: 48px;
  background-color: var(--sd-color-divider);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   SEC-2: Client Logos (.sd-Clients)
   -------------------------------------------------------------------------- */
.sd-Clients {
  background-color: var(--sd-color-bg-white);
  padding: 40px 0;
}

.sd-Clients_Logos {
  max-width: var(--sd-inner-width-wide);
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.sd-Clients_Logos .clients {
  height: 82px;
  position: relative;
}
@media screen and (max-width:1024px) {
  .sd-Clients_Logos .clients {
    height: 16vw;
  }
}

.sd-Clients_Logos .clients .logo {
  height: 28px;
  display: inline-flex;
  position: absolute;
  will-change: transform;
}
@media screen and (max-width:1024px) {
  .sd-Clients_Logos .clients .logo {
    height: 5.5vw;
  }
}

.sd-Clients_Logos .clients .logo img {
  width: auto;
  height: 100%;
}

.sd-Clients_Logos .clients .logo.top {
  top: 0;
  left: -20px;
}

.sd-Clients_Logos .clients .logo.bottom {
  bottom: 0;
  right: -20px;
}

/* --------------------------------------------------------------------------
   SEC-3: Works (.sd-Works)
   -------------------------------------------------------------------------- */
.sd-Works {
  background-color: var(--sd-color-bg-main);
}

.sd-Works_Grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sd-Works_Grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 1024px) {
  .sd-Works_Grid,
  .sd-Works_Grid--4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.sd-Works_Card {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  transition: transform var(--sd-transition);
}

.sd-Works_Card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.sd-Works_Card:hover {
  transform: translateY(-2px);
}

.sd-Works_Card--link:hover .sd-Works_Title {
  color: var(--sd-color-accent);
}

.sd-Works_Card--link:hover .sd-Works_ArrowBadge {
  background-color: var(--sd-color-accent);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.sd-Works_Thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--nk-r-m);
  background-color: var(--sd-color-border);
}

.sd-Works_TagRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.sd-Works_TagRow .sd-Works_Tag {
  margin-bottom: 0;
}

.sd-Works_ArrowBadge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #0F0F0F;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding-left: 1px;
  transition: background-color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.sd-Works_Thumb img,
.sd-Works_Thumb video,
.sd-Works_Thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  transition: transform 0.6s ease;
}

/* ACF の動画を出す場合のラッパー（archive-works.php と同じ .video 構造） */
.sd-Works_Thumb .video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* 角丸の縁で黒が弧状に透けるため、地に近いグレーにする */
  background-color: #e0e0e0;
}

.sd-Works_Thumb video,
.sd-Works_Thumb iframe,
.sd-Works_Thumb img {
  object-fit: cover;
}

.sd-Works_Card:hover .sd-Works_Thumb img,
.sd-Works_Card:hover .sd-Works_Thumb video {
  transform: scale(1.07);
}

.sd-Works_Body {
  padding: 18px 2px 0;
}

.sd-Works_Tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background-color: #0F0F0F;
  border: none;
  padding: 4px 10px;
  border-radius: var(--nk-r-s);
  margin-bottom: 12px;
}

.sd-Works_Client {
  font-size: 12px;
  font-weight: 500;
  color: var(--sd-color-text-sub);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.sd-Works_Title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sd-color-text);
  margin: 0 0 14px;
  line-height: 1.7;
  letter-spacing: .04em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media screen and (max-width: 1024px) {
  .sd-Works_Title { font-size: 14px; line-height: 1.65; letter-spacing: .03em; }
}



/* Works -- Case Study Variant */
.sd-Works--case .sd-Works_Stats {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--sd-color-border);
  margin-top: 12px;
}

.sd-Works_StatItem {
  text-align: center;
}

.sd-Works_StatValue {
  font-size: 24px;
  font-weight: 700;
  color: var(--sd-color-text);
  line-height: 1.3;
}

.sd-Works_StatLabel {
  font-size: 12px;
  color: var(--sd-color-text-sub);
}

/* --------------------------------------------------------------------------
   SEC-3.5: Gallery (.sd-Gallery)
   -------------------------------------------------------------------------- */
.sd-Gallery {
  background-color: var(--sd-color-bg-white);
}



/* --------------------------------------------------------------------------
   SEC-4: Service (.sd-Service)
   -------------------------------------------------------------------------- */
.sd-Service {
  background-color: var(--sd-color-bg-white);
}

/* Block: Alternating Image + Text Layout */
.sd-Block {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

.sd-Block:last-child {
  margin-bottom: 0;
}

.sd-Block--imgLeft {
  flex-direction: row;
}

.sd-Block--imgRight {
  flex-direction: row-reverse;
}

.sd-Block--fullWidth {
  flex-direction: column;
}

/* 画像を持たないブロック。テキストが1カラムで間延びしないよう幅を抑える */
.sd-Block--textOnly {
  display: block;
}
.sd-Block--textOnly .sd-Block_Text {
  max-width: 46em;
}

.sd-Block_Image {
  flex: 1;
  min-width: 0;
  border-radius: var(--nk-r-m);
  overflow: hidden;
  /* 5:3 は縦が勝ちすぎるので 16:9 へ。ブロックの縦を約 7% 圧縮する */
  aspect-ratio: 16 / 9;
}

.sd-Block_Image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-Block--fullWidth .sd-Block_Image {
  flex: none;
  width: 100%;
}

/* 補足注記（CSS未定義だったため html の font-size を継承して SP で 4.9px になっていた） */
.sd-Block_SmallNote {
  margin: -16px 0 48px;
  max-width: 60em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sd-color-text-sub);
}

.sd-Block_Text {
  flex: 1;
  min-width: 0;
}

.sd-Block_Title {
  font-size: 20px;
  font-weight: 700;
  color: var(--sd-color-text);
  margin-bottom: 16px;
  line-height: 1.5;
  letter-spacing: .03em;
}

.sd-Block_Body {
  font-size: 15px;
  font-weight: 400;
  color: var(--sd-color-text-sub);
  line-height: 1.9;
  letter-spacing: .04em;
  margin-bottom: 20px;
  max-width: 46em;
}

.sd-Block_Body:last-child {
  margin-bottom: 0;
}

/* ブロック見出し 18 / 本文 M 14（SP） */
@media screen and (max-width: 1024px) {
  .sd-Block_Title { font-size: 18px; }
  .sd-Block_Body { font-size: 14px; }
}

.sd-Block_Tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ガイドは「角丸はサムネイルの6pxのみ・罫は2px」。ピル型はガイド外なので角を落とす */
.sd-Block_Tag {
  font-size: 13px;
  color: var(--sd-color-text-sub);
  border: 2px solid var(--sd-color-border-light);
  border-radius: 0;
  padding: 4px 12px;
  white-space: nowrap;
  transition: background-color var(--sd-transition), color var(--sd-transition);
}

.sd-Block_Tag:hover {
  background-color: var(--sd-color-bg-main);
}

/* --------------------------------------------------------------------------
   SEC-5: Flow (.sd-Flow)
   -------------------------------------------------------------------------- */
.sd-Flow {
  background-color: var(--sd-color-bg-main);
}

.sd-Flow_Steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.sd-Flow_Step {
  position: relative;
}



.sd-Flow_Title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sd-color-text);
  margin-bottom: 8px;
  line-height: 1.7;
  letter-spacing: .04em;
}

.sd-Flow_Duration {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sd-color-text-sub);
  background-color: var(--sd-color-bg-main);
  padding: 3px 10px;
  border-radius: var(--nk-r-s);
  margin-bottom: 10px;
}

.sd-Flow_Desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--sd-color-text-sub);
  line-height: 1.7;
}

.sd-Flow_Note {
  font-size: 14px;
  color: var(--sd-color-text-sub);
  text-align: center;
  margin-top: 32px;
  line-height: 1.75;
  letter-spacing: .03em;
}

/* --------------------------------------------------------------------------
   SEC-6: Pricing (.sd-Pricing)
   -------------------------------------------------------------------------- */
.sd-Pricing {
  background-color: var(--sd-color-bg-white);
}

.sd-Pricing_Amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--sd-color-text);
  text-align: center;
  line-height: 1.3;
}

.sd-Pricing_Note {
  font-size: 14px;
  color: var(--sd-color-text-sub);
  text-align: center;
  margin-top: 24px;
  line-height: 1.75;
  letter-spacing: .03em;
}

/* 概算見積もりページ（/estimate/）への導線 */
.sd-Pricing_EstimateLink {
  margin-top: 16px;
  text-align: center;
}
.sd-Pricing_EstimateLink a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--sd-color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sd-Pricing_EstimateLink_Chev {
  display: inline-flex;
  width: 14px;
  height: 8px;
}
.sd-Pricing_EstimateLink_Chev svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: square;
}

/* Pricing Tier Cards */
.sd-Pricing_Tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

/* tier count modifiers */
.sd-Pricing_Tiers--2col { grid-template-columns: repeat(2, 1fr); }
.sd-Pricing_Tiers--3col { grid-template-columns: repeat(3, 1fr); }
.sd-Pricing_Tiers--4col { grid-template-columns: repeat(4, 1fr); }

@media screen and (max-width: 1024px) {
  .sd-Pricing_Tiers,
  .sd-Pricing_Tiers--2col,
  .sd-Pricing_Tiers--3col,
  .sd-Pricing_Tiers--4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media screen and (max-width: 640px) {
  .sd-Pricing_Tiers,
  .sd-Pricing_Tiers--2col,
  .sd-Pricing_Tiers--3col,
  .sd-Pricing_Tiers--4col {
    grid-template-columns: 1fr;
  }
}

.sd-Pricing_Tier {
  background-color: var(--sd-color-bg-white);
  border: 1px solid var(--sd-color-border);
  border-radius: var(--nk-r-m);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.sd-Pricing_Tier_Name {
  font-size: 16px;
  letter-spacing: .03em;
  font-weight: 700;
  color: var(--sd-color-text);
  line-height: 1.5;
  margin: 0 0 6px;
}

.sd-Pricing_Tier_Scope {
  font-size: 13px;
  color: var(--sd-color-text-sub);
  line-height: 1.5;
  margin: 0 0 18px;
}

.sd-Pricing_Tier_Divider {
  height: 1px;
  background-color: var(--sd-color-border);
  margin-bottom: 18px;
}

.sd-Pricing_Tier_Label {
  font-size: 12px;
  color: var(--sd-color-text-sub);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.sd-Pricing_Tier_Price {
  font-size: 20px;
  font-weight: 700;
  color: var(--sd-color-text);
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.sd-Pricing_Tier_Duration {
  font-size: 15px;
  font-weight: 500;
  color: var(--sd-color-text);
  line-height: 1.4;
  margin: 0;
}

/* --------------------------------------------------------------------------
   SEC-7: FAQ (.sd-Faq)
   -------------------------------------------------------------------------- */
.sd-Faq {
  background-color: var(--sd-color-bg-main);
}

.sd-Faq_Item {
  border-bottom: 1px solid var(--sd-color-border);
}

.sd-Faq_Item:first-child {
  border-top: 1px solid var(--sd-color-border);
}

.sd-Faq_Q {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--sd-color-text);
  cursor: pointer;
  list-style: none;
  line-height: 1.6;
  transition: color var(--sd-transition);
}

.sd-Faq_Q::-webkit-details-marker {
  display: none;
}

.sd-Faq_Q::marker {
  display: none;
  content: "";
}

.sd-Faq_Q:hover {
  color: var(--sd-color-accent);
}

.sd-Faq_QIcon {
  font-size: 16px;
  font-weight: 700;
  color: var(--sd-color-text);
  flex-shrink: 0;
  width: 28px;
}

.sd-Faq_QText {
  flex: 1;
}

.sd-Faq_Toggle {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: auto;
}

.sd-Faq_Toggle::before,
.sd-Faq_Toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--sd-color-text-sub);
  transition: transform var(--sd-transition);
}

.sd-Faq_Toggle::before {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.sd-Faq_Toggle::after {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

/* Open state: rotate plus to minus */
.sd-Faq_Item[open] .sd-Faq_Toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sd-Faq_A {
  padding: 0 0 20px 40px;
  font-size: 15px;
  font-weight: 400;
  color: var(--sd-color-text);
  line-height: 1.9;
  letter-spacing: .04em;
  animation: sd-faqSlideDown 0.3s ease forwards;
}

@media screen and (max-width: 1024px) {
  .sd-Faq_A { font-size: 14px; }
}

@keyframes sd-faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sd-Faq_AIcon {
  font-size: 16px;
  font-weight: 700;
  color: var(--sd-color-accent);
  margin-right: 8px;
}

/* --------------------------------------------------------------------------
   SEC-8: Other Services (.sd-OtherServices)
   -------------------------------------------------------------------------- */
.sd-OtherServices {
  background-color: var(--sd-color-bg-white);
}

.sd-OtherServices_Grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sd-OtherServices_Card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  transition: transform var(--sd-transition);
}

.sd-OtherServices_Card:hover {
  transform: translateY(-2px);
}

.sd-OtherServices_Thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--nk-r-m);
  background-color: var(--sd-color-border);
}

.sd-OtherServices_Thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.sd-OtherServices_Card:hover .sd-OtherServices_Thumb img {
  transform: scale(1.07);
}

.sd-OtherServices_Body {
  padding: 18px 2px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* alias for older markup */

.sd-OtherServices_TitleRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sd-OtherServices_Title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sd-color-text);
  margin: 0;
  line-height: 1.7;
  letter-spacing: .04em;
  flex: 1;
}
@media screen and (max-width: 1024px) {
  .sd-OtherServices_Title { font-size: 14px; line-height: 1.65; letter-spacing: .03em; }
}

.sd-OtherServices_TitleRow .sd-Works_ArrowBadge {
  margin-top: 2px;
}

.sd-OtherServices_Card:hover .sd-Works_ArrowBadge {
  background-color: var(--sd-color-accent);
  transform: translateY(-2px);
}

.sd-OtherServices_Card:hover .sd-OtherServices_Title {
  color: var(--sd-color-accent);
}

.sd-OtherServices_Catch {
  font-size: 12px;
  font-weight: 400;
  color: var(--sd-color-text-sub);
  line-height: 1.8;
  letter-spacing: .04em;
  margin: 0 0 14px;
  flex: 1;
}

.sd-OtherServices_Card .sd-TextLink {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   SEC-9: Articles (.sd-Articles) — LAB のカード（lab/style.css）を並べる
   -------------------------------------------------------------------------- */
.sd-Articles {
  background-color: var(--sd-color-bg-main);
}





/* --------------------------------------------------------------------------
   SEC-10: CTA Bottom (.sd-CtaBottom)
   -------------------------------------------------------------------------- */




/* --------------------------------------------------------------------------
   Text Link (.sd-TextLink)
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   1行あたりの文字数制限（読みやすさ改善）
   -------------------------------------------------------------------------- */
.sd-Faq_QText,
.sd-Faq_AText { max-width: 46em; }

.sd-Pricing_Note,
.sd-Flow_Note { max-width: 60em; }

/* --------------------------------------------------------------------------
   Responsive: Mobile (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  /* Section inner */
  .sd-Section_Inner {
    padding: 60px 5.21vw;
  }

  
  
  /* Stats bar */
  .sd-Stats .sd-Section_Inner {
    flex-wrap: wrap;
    gap: 24px;
    padding: 32px 5.21vw;
  }

  .sd-Stats_Item {
    flex: 0 0 calc(50% - 12px);
    padding: 0;
  }

  .sd-Stats_Value {
    font-size: 36px;
  }

  .sd-Stats_Divider {
    display: none;
  }

  /* Client logos */
  .sd-Clients_Logos {
    gap: 24px;
  }

  .sd-Clients_Logos img {
    height: 24px;
  }

  /* Works grid */
  .sd-Works_Grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Gallery grid */
  
  
  /* Service blocks */
  .sd-Block,
  .sd-Block--imgLeft,
  .sd-Block--imgRight {
    flex-direction: column;
    gap: 24px;
  }

  .sd-Block {
    margin-bottom: 48px;
  }

  .sd-Block_Image,
  .sd-Block_Text {
    flex: none;
    width: 100%;
  }

  /* Flow steps */
  .sd-Flow_Steps {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }


  /* Pricing */
  .sd-Pricing_Amount {
    font-size: 36px;
  }

  /* FAQ */
  .sd-Faq_Q {
    padding: 16px 0;
  }

  .sd-Faq_A {
    padding: 0 0 16px 0;
  }

  /* Other Services grid */
  .sd-OtherServices_Grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* CTA Bottom */
  
  
  
  }

/* ==========================================================================
   TOP-style Enhancements
   ========================================================================== */

/* --------------------------------------------------------------------------
   Background Letters (.sd-Bgletters)
   -------------------------------------------------------------------------- */
.sd-Works,
.sd-Service,
.sd-Faq {
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   セクション見出しは common.css の .nk-SecHead（英字＋カーソル＋›› 日本語＋MORE）
   -------------------------------------------------------------------------- */

/* Legacy .btn rules removed — replaced by .sd-Btn system above */


/* ==========================================================================
   Service Hub Page (.sh-*) — 2カラム / 余白統一 v3.2
   .sub-Wrapper が左右 50px パディングを持つ前提で、各セクションは同じラインに揃える
   ========================================================================== */
.sh-Page {
  font-family: var(--sd-font-stack);
  color: var(--sd-color-text);
}

/* Section base: 上下余白 */
.sh-Section {
  position: relative;
  padding: 96px 0;
}
.sh-Section + .sh-Section { padding-top: 32px; }

@media screen and (max-width: 1024px) {
  .sh-Section {
    padding: 56px 0;
  }
  .sh-Section + .sh-Section { padding-top: 16px; }
}

/* 水平インナー: .sw-Heading_Content と同じ max-width: none で中央寄せ統一 */
.sh-Section_Inner {
  max-width: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* 共通セクションヘッダー: Label / Title / Desc */
/* ==========================================================================
   Section: Business Group (2事業 × 2サービス構造の括り)
   ========================================================================== */
/* 見出しブロックを廃止したので、先頭の罫は宙に浮く。出さない。 */
/* ヘッダーは「大ナンバー」＋「ラベル/タイトル/リード」の2カラム */
/* 連番(01/02)を廃止したので1カラム。96pxの数字用カラムは残さない。 */
/* 大ナンバー — Jost 細字大判で立たせる */
/* ==========================================================================
   Section: Services Grid (2カラム 大画像)
   ========================================================================== */

/* サムネ: 16:9 横長、TOP Works Archive と同じ枠縮小ホバー */


/* カード番号 (左上) — 緑ボーダー 20px の内側に配置 */

/* Body は画像の下に通常配置 */

/* ==========================================================================
   Section: Feature (One-Stop) - 左右2カラム / 画像を可能な限り大きく
   ========================================================================== */

/* マーカー見出し (js-markerText と共存): 行間を広く、上下余白で塊感を出す */
.sh-Feature_Title.js-markerText {
  font-size: 2.0rem;
  line-height: 2.3;
  margin: 0 0 32px;
}

@media screen and (max-width: 1024px) {
  .sh-Feature_Title.js-markerText {
    font-size: 4.0rem;
    line-height: 2.0;
    margin: 0 0 22px;
  }
}












/* ==========================================================================
   Responsive: Tablet (600px - 1024px)
   1024px以下の1カラム化を打ち消し、多カラムを維持する層
   下限を600pxのauto-fillにすることで768px境界の崖を無くす
   ========================================================================== */
@media screen and (min-width: 600px) and (max-width: 1024px) {
  /* (1) 縦余白のみ調整（左右はテーマ共通の 5.21vw に統一済み） */
  .sd-Section_Inner { padding-top: 64px; padding-bottom: 64px; }
  .sd-Stats .sd-Section_Inner { padding-top: 36px; padding-bottom: 36px; }
  
  /* (2) グリッドの多カラム復帰（auto-fillで幅に応じて自動追従） */
  .sd-Works_Grid,
  .sd-Works_Grid--4col    { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
  .sd-OtherServices_Grid  { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

      .sd-Pricing_Tiers,
  .sd-Pricing_Tiers--2col,
  .sd-Pricing_Tiers--3col,
  .sd-Pricing_Tiers--4col { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* (4) Flow ステップの横並び維持（2段組） */
  .sd-Flow_Steps {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 16px;
  }

  /* (5) rem由来の文字サイズ暴走の抑制（600px時点で1rem=7.8pxのため） */
          .sh-Feature_Title.js-markerText { font-size: 20px; }



}

/* ==========================================================================
   Responsive: Tablet (769px - 1024px)
   600-768pxでは横幅が足りないため、2カラム系はこちらに限定
   ========================================================================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  /* サービス紹介ブロックの2カラム（600-768pxでは縦積みのまま） */
  .sd-Block,
  .sd-Block--imgLeft  { flex-direction: row; gap: 32px; }
  .sd-Block--imgRight { flex-direction: row-reverse; gap: 32px; }
  .sd-Block_Image,
  .sd-Block_Text      { flex: 1; width: auto; }
  .sd-Block--fullWidth { flex-direction: column; }
  .sd-Block--fullWidth .sd-Block_Image { flex: none; width: 100%; }

  /* Flowは3段組に */
  .sd-Flow_Step { flex: 0 0 calc(33.333% - 11px); }
}

/*===================================================================*/
/* サービスページの見出し圧縮とパンくず（WORKS と同じ体系）
   works/style.css と同内容。css.php の elseif で両者は同時に読み込まれない
   ため、サービス側にも持たせる必要がある。
/*===================================================================*/



/*-------------------------------------------------------------------*/
/* サムネイル拡大（.works-Index にスコープ。TOPページ／works-Single の
   関連実績カードには影響させない） */
/*-------------------------------------------------------------------*/
.works-Index .sw-WorksArchive{
  column-gap: 20px;
  row-gap: 34px;
}
.works-Index .sw-WorksArchive_Item{
  max-width: none;
}
.works-Index .sw-WorksArchive_Thumbnail::after{
  display: none;
}
.works-Index .sw-WorksArchive_Thumbnail figure img,
.works-Index .sw-WorksArchive_Thumbnail .video video,
.works-Index .sw-WorksArchive_Thumbnail .video iframe{
  object-fit: cover;
}
/* rem だと html{font-size:1.3vw}（1024px以下）で 375px 時に 7.3px まで
   縮んでしまうため px で指定する。 */
.works-Index .sw-WorksArchive_Title p{
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .04em;
}
@media screen and (max-width:1024px) {
  .works-Index .sw-WorksArchive_Title p{
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: .03em;
  }
}

/*-------------------------------------------------------------------*/
/* /works/ 一覧の各作品カテゴリを非表示（意図しないカテゴリ表示の再発対策）*/
/*-------------------------------------------------------------------*/
.works-Index .sw-WorksArchive_Category {
  display: none;
}

/*-------------------------------------------------------------------*/
/* タブレット（600〜1024px）                                          */
/* common.css の .sw-WorksArchive は 1024px 以下で 1カラムになるため、  */
/* 940px 幅の巨大サムネが縦に並んでしまう。auto-fill で幅に追従させる。 */
/* .works-Index 配下に限定しているので TOP・関連実績には影響しない。    */
/*-------------------------------------------------------------------*/
@media screen and (min-width: 600px) and (max-width: 1024px) {
  .works-Index .sw-WorksArchive{
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    column-gap: 20px;
    row-gap: 28px;
  }
  .works-Index .sw-WorksArchive_Item{
    max-width: none;
  }
  /* ヘッダーの上余白が 22vw だと 1024px で 225px になり、
     1件目が折り返しの下へ落ちる。固定値で頭打ちにする。 */
    .sub-Wrapper--worksSingle{
    padding-top: 132px;
  }

  /* html{font-size:1.3vw}（common.css・1024px以下）により rem 指定が
     この帯域で肥大する。1024px では .en が 85px とデスクトップの
     圧縮版 44px を大きく超えるため、px で頭打ちにする。 */
          .works-Index{
    margin-top: 20px;
  }
}

/*-------------------------------------------------------------------*/
/* 背景の巨大文字を薄く                                               */
/* common.css は rgba(15,15,15,.1) の8方向シャドウで輪郭を作っている。 */
/* 一覧では主役がサムネなので輪郭を落として気配だけ残す。             */
/*-------------------------------------------------------------------*/

/*-------------------------------------------------------------------*/
/* 並び替えセレクトの見切れ対策                                       */
/* 幅指定が無く 35px まで潰れて「新しい順」が「新し」で切れていた。    */
/*-------------------------------------------------------------------*/
.works-Index .wf-Sort{
  flex: 0 0 auto;
}
.works-Index .wf-Sort_Select{
  width: auto;
  min-width: max-content;
  flex: 0 0 auto;
}

/*-------------------------------------------------------------------*/
/* カードのホバー                                                     */
/* 緑ボーダーを外したため common.css の「枠が閉じる」演出が効かない。 */
/* 代わりに ズーム + 暗幕 を同期させる。                               */
/*-------------------------------------------------------------------*/
.works-Index .sw-WorksArchive_Thumbnail{
  overflow: hidden;
  background-color: #0f0f0f;
}

/* mask-size の縮小（緑枠前提の演出）は打ち消す */
.works-Index .sw-WorksArchive_Link[href]:hover + .sw-WorksArchive_Thumbnail figure,
.works-Index .sw-WorksArchive_Link[href]:hover + .sw-WorksArchive_Thumbnail .video{
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* 暗幕（::after を緑ボーダーから転用） */
.works-Index .sw-WorksArchive_Thumbnail::after{
  display: block;
  border: 0;
  background-color: #0f0f0f;
  opacity: 0;
  z-index: 2;
}

@media (hover: hover) {
  .works-Index .sw-WorksArchive_Thumbnail figure img,
  .works-Index .sw-WorksArchive_Thumbnail .video video,
  .works-Index .sw-WorksArchive_Thumbnail .video iframe{
    transition: transform .7s cubic-bezier(.22, .61, .36, 1);
  }
  .works-Index .sw-WorksArchive_Thumbnail::after{
    transition: opacity .45s ease;
  }

  .works-Index .sw-WorksArchive_Link[href]:hover + .sw-WorksArchive_Thumbnail figure img,
  .works-Index .sw-WorksArchive_Link[href]:hover + .sw-WorksArchive_Thumbnail .video video,
  .works-Index .sw-WorksArchive_Link[href]:hover + .sw-WorksArchive_Thumbnail .video iframe{
    transform: scale(1.07);
  }
  .works-Index .sw-WorksArchive_Link[href]:hover + .sw-WorksArchive_Thumbnail::after{
    opacity: .34;
  }
}

/* 動きを減らす設定の環境では拡大とスライドを止める */
@media (prefers-reduced-motion: reduce) {
  .works-Index .sw-WorksArchive_Thumbnail figure img,
  .works-Index .sw-WorksArchive_Thumbnail .video video,
  .works-Index .sw-WorksArchive_Thumbnail .video iframe,
  .works-Index .sw-WorksArchive_Title p{
    transition: none;
  }
}

/*-------------------------------------------------------------------*/
/* 事例詳細 本文                                                      */
/* ・画像はコンテナ幅いっぱいに、できるだけ大きく                      */
/* ・テキストは行長を抑える（改修前は 18px × 1240px = 69字/行）        */
/* ・2枚並び（wp-block-columns）に gap が無く密着していたので隙間を追加 */
/*-------------------------------------------------------------------*/

/* テキスト系だけ読みやすい幅に絞って中央に置く。画像は絞らない。 */
.works-Single .sw-Content > p,
.works-Single .sw-Content > h2,
.works-Single .sw-Content > h3,
.works-Single .sw-Content > h4,
.works-Single .sw-Content > ul,
.works-Single .sw-Content > ol,
.works-Single .sw-Content > blockquote,
.works-Single .sw-Content > .wp-block-buttons{
  max-width: 44em;
  margin-left: 0;
  margin-right: auto;
}

.works-Single .sw-Content > p{
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: .05em;
}
.works-Single .sw-Content > h2{
  font-size: 24px;
  line-height: 1.6;
  margin-top: 72px;
  margin-bottom: 18px;
}
.works-Single .sw-Content > h3{
  font-size: 19px;
  line-height: 1.7;
  margin-top: 48px;
  margin-bottom: 14px;
}
.works-Single .sw-Content > h2:first-child{
  margin-top: 0;
}

/* 画像は左右を詰めて最大幅で見せる。
   common.css の .sw-Content .wp-block-image{max-width:960px!important; display:table}
   をここでだけ打ち消す（ブログ等の .sw-Content には影響しない）。 */
.works-Single .sw-Content .wp-block-image{
  width: 100%;
  max-width: 100% !important;
  display: block;
  margin: 40px 0;
}
.works-Single .sw-Content .wp-block-image img{
  width: 100%;
  height: auto;
  display: block;
}

/* 画像どうしが続く場合は必ず間を空ける */
.works-Single .sw-Content .wp-block-image + .wp-block-image{
  margin-top: 24px;
}

/* 2枚以上の横並び（columns）に隙間を入れる */
.works-Single .sw-Content .wp-block-columns{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
}
.works-Single .sw-Content .wp-block-column{
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}
.works-Single .sw-Content .wp-block-column .wp-block-image{
  margin-top: 0;
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .works-Single .sw-Content .wp-block-columns{
    flex-direction: column;
    gap: 16px;
  }
  .works-Single .sw-Content > p{
    font-size: 15px;
    line-height: 1.9;
  }
  .works-Single .sw-Content > h2{
    font-size: 20px;
    margin-top: 48px;
  }
  .works-Single .sw-Content > h3{
    font-size: 17px;
    margin-top: 32px;
  }
  .works-Single .sw-Content .wp-block-image{
    margin-top: 28px;
    margin-bottom: 28px;
  }
}

/*-------------------------------------------------------------------*/
/* 「もっと事例を表示する」ボタン（11行を超えたら自動読み込みから交代） */
/* カテゴリチップと同じ 角丸なし・2pxボーダー・反転ホバー で揃える。   */
/*-------------------------------------------------------------------*/
.works-Index .wf-More{
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.works-Index .wf-More_Btn{
  min-width: 340px;
  min-height: 60px;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid #0f0f0f;
  background-color: transparent;
  color: #0f0f0f;
  text-decoration: none;
  cursor: pointer;
}
.works-Index .wf-More_Label{
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  line-height: 1;
}
.works-Index .wf-More_Icon{
  flex: none;
  display: block;
}
@media (hover: hover) {
  .works-Index .wf-More_Btn{
    transition: color .3s, background-color .3s;
  }
  .works-Index .wf-More_Btn:hover{
    background-color: #0f0f0f;
    color: #fff;
  }
  .works-Index .wf-More_Icon{
    transition: transform .3s;
  }
  .works-Index .wf-More_Btn:hover .wf-More_Icon{
    transform: translateY(3px);
  }
}
/* 読み込み中は操作を止めて矢印を回す */
.works-Index .wf-More.is-loading .wf-More_Btn{
  pointer-events: none;
  opacity: .55;
}
.works-Index .wf-More.is-loading .wf-More_Icon{
  animation: wfMoreSpin .9s linear infinite;
}
@keyframes wfMoreSpin{
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .works-Index .wf-More.is-loading .wf-More_Icon{
    animation: none;
  }
}
@media screen and (max-width:1024px) {
  .works-Index .wf-More{
    margin-top: 9.11vw;
  }
  .works-Index .wf-More_Btn{
    min-width: 0;
    width: 100%;
    max-width: 420px;
    min-height: 56px;
  }
  .works-Index .wf-More_Label{
    font-size: 14px;
  }
}
/* ボタンが出ている間はフォールバックのページャを場所ごと畳む */
.works-Index.is-infinite .wf-More + .wp-pagenavi{
  display: none;
}

/*-------------------------------------------------------------------*/
/* 一覧でも背景の巨大文字（WORKS）は出さない                          */
/* common.css の .pc_b{display:block!important} に勝つため !important  */
/*-------------------------------------------------------------------*/
.sub-Wrapper--works .sub-Bgletters,

.sub-Wrapper--works > .nk-Breadcrumb{
  margin-top: 28px;
  margin-bottom: 18px;
}

/*===================================================================*/
/* サービス一覧：スタイルガイドに合わせた文字組み
   ・ラベルは Jost 12px / ls .20em
   ・セクション見出し34px → 事業26px → カード20px の3段で階層を作る
   ・本文は15px以上。連番(01/02)は廃止
/*===================================================================*/
.sh-Feature_Title,
.sh-Feature_Title.js-markerText{
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.45;
}

@media screen and (max-width:1024px) {
  .sh-SectionHead_Title,
  .sh-Feature_Title,
  .sh-Feature_Title.js-markerText{ font-size: 26px; line-height: 1.6; }
          }

/*===================================================================*/
/* サービス個別ページ：スタイルガイドへの整合
   ・ヒーロー38 → ブロック20 の階層に整理する。
   ・セクション見出しは common.css の .nk-SecHead（44px / SP 32px）を使う。
/*===================================================================*/
/* ラベル類はガイドどおり 700。400 のままだと本文と見分けがつかない */
.sd-Block_Tag{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.sd-Pricing_Tier_Scope{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

/* 本文の下限15px */
.sd-Flow_Desc{
  font-size: 15px;
  line-height: 1.9;
}

@media screen and (max-width: 1024px) {
  .sd-Flow_Desc{ font-size: 15px; }
}

/* サービス一覧（.svx-*）のスタイルは hub.css に移した */


/*===================================================================*/
/* サービス一覧：取引クライアント
   ・トップと同じロゴ帯（13088px / 4096px の横長画像）を流用する。
   ・画面幅を超えるので、上下の帯を逆方向にゆっくり流す。
   ・動きを減らす設定では止めて、静止画として見せる。
/*===================================================================*/
.sh-Clients{
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid #cfcfcf;
}
.sh-Clients .nk-SecHead{ margin-bottom: 18px; }
.sh-Clients_Lead{
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: #0f0f0f;
  max-width: 640px;
}
.sh-Clients_Body{
  margin-top: 38px;
  /* 帯は画面幅いっぱいに流したいので、左右の余白ぶんだけ外へ出す */
  margin-left: -28px;
  margin-right: -28px;
  overflow: hidden;
}
/* 個別ページの帯と同じ組み方。1枚だけを動かすと折り返しで空白が出るため、
   同じ画像を並べて -50% まで送り、継ぎ目なくループさせる。 */
.sh-Clients_Band{ overflow: hidden; }
.sh-Clients_Band + .sh-Clients_Band{ margin-top: 20px; }
.sh-Clients_Strip{
  display: flex;
  width: max-content;
  /* 上段（画像の幅が下段の約0.65倍）も下段（140s）と同じ速さで流れるよう、幅に合わせて 91s にする */
  animation: shClientsFlow 91s linear infinite;
}
.sh-Clients_Strip--rev{
  animation-name: shClientsFlowRev;
  animation-duration: 140s;
}
.sh-Clients_Strip img{
  height: 42px;
  width: auto;
  max-width: none;
  display: block;
}
.sh-Clients_Strip--rev img{ height: 34px; }
@keyframes shClientsFlow{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@keyframes shClientsFlowRev{
  from{ transform: translateX(-50%); }
  to{ transform: translateX(0); }
}
@media screen and (max-width:1024px) {
  .sh-Clients{ margin-top: 62px; padding-top: 40px; }
  .sh-Clients_Lead{ font-size: 15px; }
  .sh-Clients_Body{ margin-left: -5.21vw; margin-right: -5.21vw; margin-top: 28px; }
  .sh-Clients_Band + .sh-Clients_Band{ margin-top: 15px; }
  .sh-Clients_Strip img{ height: 30px; }
  .sh-Clients_Strip--rev img{ height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-Clients_Strip{ animation: none; }
}

/*===================================================================*/
/* ヒーロー直下のクライアント帯（A案・2行）
   ・見出しは置かず、ロゴだけを地色のまま薄く流す。
   ・1行目は左へ、2行目は右へ。逆方向に動かすと帯が止まって見えない。
   ・同じ画像を並べて -50% 移動させ、継ぎ目なくループさせる。
     2行目の画像は幅が短いので4枚並べて隙間を作らない。
/*===================================================================*/
.sd-Clients{
  padding: 34px 0 38px;
  background: #F7F7F7;
}
.sd-Clients_Band{ overflow: hidden; }
.sd-Clients_Band + .sd-Clients_Band{ margin-top: 20px; }
.sd-Clients_Strip{
  display: flex;
  width: max-content;
  /* 上段（画像の幅が下段の約0.65倍）も下段（140s）と同じ速さで流れるよう、幅に合わせて 91s にする */
  animation: sdClientsFlow 91s linear infinite;
}
.sd-Clients_Strip--rev{
  animation-name: sdClientsFlowRev;
  animation-duration: 140s;
}
.sd-Clients_Strip img{
  height: 42px;
  width: auto;
  max-width: none;
  display: block;
}
.sd-Clients_Strip--rev img{ height: 34px; }
@keyframes sdClientsFlow{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@keyframes sdClientsFlowRev{
  from{ transform: translateX(-50%); }
  to{ transform: translateX(0); }
}
@media screen and (max-width:1024px) {
  .sd-Clients{ padding: 24px 0 28px; }
  .sd-Clients_Band + .sd-Clients_Band{ margin-top: 15px; }
  .sd-Clients_Strip img{ height: 30px; }
  .sd-Clients_Strip--rev img{ height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-Clients_Strip{ animation: none; }
}

/*===================================================================*/
/* FLOW：本文の体裁
/*===================================================================*/
.sd-Flow_Desc{
  grid-row: 4;
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: .03em;
  color: #0f0f0f;
}

/* SPは横に5つ置けない。道を縦に倒し、点はそのまま左に打つ。 */
@media screen and (max-width:1024px) {
  .sd-Flow_Steps{
    display: block;
    border-top: 0;
  }
  .sd-Flow_Step{
    grid-template-rows: none;
    grid-template-columns: 13px minmax(0, 1fr);
    column-gap: 18px;
    padding: 0 0 26px;
  }
  .sd-Flow_Step::before{
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 4px;
  }
  /* 縦に倒した道。次の点まで下へ引く。 */
  .sd-Flow_Step::after{
    top: 10px;
    bottom: -10px;
    left: 5.5px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .sd-Flow_Step:last-child{ padding-bottom: 0; }
  .sd-Flow_Duration{ grid-column: 2; grid-row: 1; }
  .sd-Flow_Title{ grid-column: 2; grid-row: 2; margin: 8px 0 8px; font-size: 14px; line-height: 1.65; letter-spacing: .03em; }
  .sd-Flow_Desc{ grid-column: 2; grid-row: 3; font-size: 14px; }
  /* MICROはSPで上げる規定に合わせる */
  .sd-Flow_Note{ font-size: 14px; }
}

/*===================================================================*/
/* サービス詳細ヒーロー（2-C「サービスの目次」）                          */
/*   PC : 左カラム560px（パンくず・英字・h1・リード・相談・目次）｜SCROLL｜右に動画（角丸12px）
/*   SP : 英字・h1・動画（高さ200px）・リード・目次・SCROLL の縦積み
/*   ヘッダーは明るい地の上（include/header-context.php で onLight）。
/*   動画枠はグリッド／固定高で最初から大きさを確保する（CLSなし）。
/*===================================================================*/
.sd-Hero{
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 560px 80px minmax(0, 1fr);
  min-height: max(760px, 100svh);
  padding: 120px var(--sd-inner-pad-x) 56px;
  background: #F7F7F7;
  color: #0f0f0f;
}
.sd-Hero a{ color: #0f0f0f; text-decoration: none; }
@media (hover: hover) {
  .sd-Hero a:hover{ opacity: .7; }
}
.sd-Hero_Left{
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding-top: 30px;
}
.sd-Hero_En{
  margin: 28px 0 0;
  font-family: 'Jost', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  color: #0f0f0f;
}
/* 長い英字は、左カラム560pxに1行で収まるようページごとに字サイズを下げる */
.sd-Page[data-service="characterdesign"] .sd-Hero_En{ font-size: 48px; }
.sd-Page[data-service="ip-development"] .sd-Hero_En{ font-size: 56px; }
.sd-Page[data-service="ip-collab"] .sd-Hero_En{ font-size: 50px; }
/* h1 の2行目（キービジュアルイラスト企画制作）が560pxを超えて「作」だけ落ちるので、このページだけ下げる */
.sd-Page[data-service="characterdesign"] .sd-Hero_Title{ font-size: 34px; }
.sd-Hero_Cur{ animation: sdHeroBlink 1.1s steps(1) infinite; }
@keyframes sdHeroBlink{ 50%{ opacity: 0; } }
.sd-Hero_Title{
  margin: 10px 0 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  color: #0f0f0f;
}
/* h1 の文字列にある <br class="sp_b"> を PC でも効かせる（「・」の後で改行） */
.sd-Hero_Title br.sp_b{ display: inline !important; }
.sd-Hero_Catch{
  margin: 0;
  max-width: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .06em;
  color: #0f0f0f;
}
/* 見た目は common.css の .nk-Btn（テキストリンク型）。ここは配置と文字サイズだけ */
.sd-Hero_Cta{
  align-self: flex-start;
  margin-top: 6px;
  font-size: 15px;
}
.sd-Hero_Toc{
  margin-top: auto;
  padding-top: 20px;
}
.sd-Hero_TocList{
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid #0f0f0f;
}
.sd-Hero_TocLink{
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 2px solid #cfcfcf;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
}
.sd-Hero_TocList li:last-child .sd-Hero_TocLink{ border-bottom-color: #0f0f0f; }
.sd-Hero_TocLink.is-current{
  background: #0f0f0f;
  color: #fff;
  border-bottom-color: #0f0f0f;
}
.sd-Hero a.sd-Hero_TocLink.is-current{ color: #fff; }
.sd-Hero_TocNum,
.sd-Hero_TocMark{
  font-family: 'Jost', 'Zen Kaku Gothic New', sans-serif;
  font-size: 12px;
  font-weight: 700;
}
.sd-Hero_TocNum{ letter-spacing: .12em; }
.sd-Hero_Scroll{
  grid-column: 2;
  align-self: end;
  justify-self: start;
  margin-left: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.sd-Hero_ScrollText{
  font-family: 'Jost', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}
.sd-Hero_ScrollLine{
  position: relative;
  display: block;
  width: 2px;
  height: 72px;
  background: #cfcfcf;
  overflow: hidden;
}
.sd-Hero_ScrollLine::after{
  content: "";
  position: absolute;
  left: 0;
  top: -28px;
  width: 2px;
  height: 28px;
  background: #0f0f0f;
  animation: sdHeroScroll 1.8s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes sdHeroScroll{ to{ top: 72px; } }
.sd-Hero_Media{
  grid-column: 3;
  position: relative;
  min-height: 0;
  border-radius: var(--nk-r-l);
  overflow: hidden;
  background: #e9e9e9;
}
.sd-Hero_Media video,
.sd-Hero_Media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .sd-Hero_Cur{ animation: none; }
  .sd-Hero_ScrollLine::after{ animation: none; top: 0; }
}

@media screen and (max-width:1024px) {
  .sd-Hero{
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 72px 5.21vw 28px;
  }
  .sd-Hero_Left{
    display: contents;
  }
  .sd-Hero .nk-Breadcrumb,
  .sd-Hero_Cta{ display: none; }
  .sd-Hero_En{
    order: 1;
    margin: 0;
    font-size: 44px;
    letter-spacing: .03em;
    white-space: normal;
  }
  .sd-Page[data-service="characterdesign"] .sd-Hero_En{ font-size: 40px; }
  .sd-Page[data-service="ip-development"] .sd-Hero_En{ font-size: 34px; white-space: nowrap; }
  .sd-Page[data-service="ip-collab"] .sd-Hero_En{ font-size: 30px; white-space: nowrap; }
  .sd-Hero_Title{
    order: 2;
    margin: 12px 0 0;
    font-size: 24px;
    letter-spacing: .03em;
  }
  .sd-Page[data-service="characterdesign"] .sd-Hero_Title{ font-size: 21px; }
  .sd-Hero_Media{
    order: 3;
    flex-shrink: 0;
    height: 200px;
    margin-top: 20px;
    border-radius: 10px;
  }
  .sd-Hero_Catch{
    order: 4;
    margin-top: 26px;
    font-size: 14px;
    line-height: 1.85;
    letter-spacing: .04em;
  }
  .sd-Hero_Toc{
    order: 5;
    margin-top: 18px;
    padding-top: 0;
  }
  .sd-Hero_TocLink{
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 10px 12px;
    font-size: 13px;
  }
  .sd-Hero_TocMark{ display: none; }
  .sd-Hero_Scroll{
    order: 6;
    align-self: center;
    margin: 18px 0 0;
    gap: 8px;
  }
  .sd-Hero_ScrollText{ font-size: 11px; writing-mode: horizontal-tb; }
  .sd-Hero_ScrollLine{ height: 44px; }
  .sd-Hero_ScrollLine::after{ top: -18px; height: 18px; animation-name: sdHeroScrollSp; }
}
@keyframes sdHeroScrollSp{ to{ top: 44px; } }

/* タブレット幅（520〜1024px）：ヘッダーのロゴが vw で大きくなる（下端 ≒ 14.2vw）ので、
   ヒーローの上余白をロゴの下まで取り、パンくずも出す（390px の SP は従来どおり）。 */
@media screen and (min-width:520px) and (max-width:1024px) {
  .sd-Hero{ padding-top: calc(14.2vw + 28px); }
  .sd-Hero .nk-Breadcrumb{
    display: block;
    order: 0;
    margin: 0 0 18px;
  }
}


/* キャラクターデザイン：ヒーローは横長（16:9）のイラスト。枠は他ページと同じ。人物は中央にいるので中央で切る */
.sd-Page[data-service="characterdesign"] .sd-Hero_Media{ background: #fff; }
