/* ============================================================
   DIFO — func-detail.css  機能詳細ページ専用スタイル
   共通スタイルは common.css を参照
   ============================================================ */

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.fd-section--light { background: var(--neutral-light); }
.fd-section--white { background: var(--white); }

/* ============================================================
   INTRO: テキスト + 画像の2カラム分割レイアウト
   ============================================================ */
.fd-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 60px;
}

/* img-left: 画像を左・テキストを右に配置 */
.fd-intro--img-left .fd-intro__img  { order: -1; }

/* ── Text side ── */
.fd-intro__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--neutral-dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 10px 0 18px;
}

.fd-intro__desc {
  font-size: 0.95rem;
  color: var(--neutral-medium);
  line-height: 1.85;
}

/* ── Image side ── */
.fd-intro__img {
  border-radius: var(--radius);
  overflow: hidden;
}

/* ============================================================
   IMAGE PLACEHOLDER
   ============================================================ */
.fd-img-placeholder {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.fd-img-placeholder--sim {
  background: linear-gradient(135deg, #0e2a40 0%, #2f7ab6 100%);
}

.fd-img-placeholder--hub {
  background: linear-gradient(135deg, #0d3a3a 0%, #1e6b7a 50%, #23d6c9 100%);
}

.fd-img-placeholder--analytics {
  background: linear-gradient(135deg, #1a2f4e 0%, #256d85 60%, #2f7ab6 100%);
}

.fd-img-placeholder--studio {
  background: linear-gradient(135deg, #0e2040 0%, #1e3a5f 50%, #2f7ab6 100%);
}

.fd-img-placeholder__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.fd-img-placeholder__icon {
  width: 80px;
  height: 80px;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.25));
}

.fd-img-placeholder__label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   BACK BUTTON
   ============================================================ */
.fd-back {
  margin-bottom: 40px;
}

.fd-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: gap 0.2s var(--ease), color 0.2s;
}

.fd-back__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.fd-back__btn:hover {
  color: var(--primary-hover);
  gap: 10px;
}

.fd-back__btn:hover svg {
  transform: translateX(-3px);
}

/* ============================================================
   FEATURE ITEMS GRID (2 × 2)
   ============================================================ */
.fd-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ── Item card ── */
.fd-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(47, 122, 182, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.fd-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* white セクション上ではカードに薄い tint を付ける */
.fd-section--white .fd-item {
  background: var(--primary-bg);
  border-left-color: var(--secondary-color);
}

.fd-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-dark);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 10px;
}

.fd-item p {
  font-size: 0.875rem;
  color: var(--neutral-medium);
  line-height: 1.85;
  margin: 0;
}

/* ============================================================
   SERVICE CTA (fd-items 右下)
   ============================================================ */
.fd-service {
  margin-top: 32px;
  text-align: right;
}

.fd-service__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: gap 0.2s var(--ease), color 0.2s;
}

.fd-service__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.fd-service__btn:hover {
  color: var(--primary-hover);
  gap: 10px;
}

.fd-service__btn:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .fd-intro {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
  }

  /* モバイルでは img-left も画像を下に配置 */
  .fd-intro--img-left .fd-intro__img {
    order: 0;
  }
}

@media (max-width: 760px) {
  .fd-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .fd-intro__title {
    font-size: 1.5rem;
  }

  .fd-item {
    padding: 20px 20px 20px 18px;
  }

  .fd-img-placeholder__icon {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .fd-intro {
    gap: 28px;
    margin-bottom: 32px;
  }

  .fd-intro__desc {
    font-size: 0.9rem;
  }

  .fd-back {
    margin-bottom: 28px;
  }
}
