/* ===========================================
   Deliverables — 導入後素材一覧（8アイテム + サンプル画像2枚）
   - process.css の番号バッジパターンを踏襲
   - 4列グリッド（モバイル2列）
   =========================================== */

.deliverables {
  background-color: var(--color-bg-soft);
  position: relative;
  overflow-x: clip;
}

/* 背景：ライム×スカイの淡いブロブ */
.deliverables::before {
  content: '';
  position: absolute;
  top: 14%;
  left: -8%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 210, 53, 0.10) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: csrBlobFloat 26s ease-in-out infinite -4s;
}

.deliverables::after {
  content: '';
  position: absolute;
  bottom: 6%;
  right: -8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 190, 240, 0.10) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: csrBlobFloat 30s ease-in-out infinite;
}

.deliverables > .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   8アイテムグリッド
   ============================================================ */
.deliverables__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin: var(--space-5) 0 var(--space-5);
  padding: 0;
  list-style: none;
  counter-reset: deliv;
}

@media (min-width: 640px) {
  .deliverables__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

@media (min-width: 1024px) {
  .deliverables__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin: var(--space-6) 0 var(--space-6);
  }
}

/* 個別アイテム */
.deliverables__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-4) var(--space-3) var(--space-3);
  background: linear-gradient(160deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(245, 250, 252, 0.92) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(34, 190, 240, 0.16);
  box-shadow:
    0 4px 14px rgba(0, 99, 138, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    border-color 0.3s var(--ease-out);
  overflow: hidden;
  min-height: 158px;
}

@media (min-width: 768px) {
  .deliverables__item {
    padding: var(--space-4);
  }
}

.deliverables__item::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(179, 210, 53, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
  opacity: 0.5;
}

.deliverables__item:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 40px rgba(0, 99, 138, 0.14),
    0 6px 14px rgba(34, 190, 240, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  border-color: rgba(34, 190, 240, 0.45);
}

.deliverables__item:hover::before {
  transform: scale(1.6);
  opacity: 0.95;
}

/* 番号バッジ */
.deliverables__num {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-accent-sky);
  background: rgba(34, 190, 240, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}

/* アイコン */
.deliverables__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(34, 190, 240, 0.16) 0%,
    rgba(0, 99, 138, 0.08) 100%);
  border-radius: 14px;
  color: var(--color-text);
  transition:
    transform 0.4s var(--ease-out),
    background 0.3s var(--ease-out);
  animation: csrIconFloat 7s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(34, 190, 240, 0.10);
}

.deliverables__item:nth-child(2n) .deliverables__icon {
  animation-delay: -1.5s;
}

.deliverables__item:nth-child(3n) .deliverables__icon {
  animation-delay: -3s;
}

.deliverables__item:nth-child(5n) .deliverables__icon {
  animation-delay: -4.5s;
}

.deliverables__item:hover .deliverables__icon {
  transform: scale(1.1) rotate(-3deg);
  background: linear-gradient(135deg,
    rgba(34, 190, 240, 0.28) 0%,
    rgba(0, 99, 138, 0.16) 100%);
}

.deliverables__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-text);
  transition: stroke 0.3s var(--ease-out);
}

.deliverables__item:hover .deliverables__icon svg {
  stroke: var(--color-accent-sky);
}

/* タイトル */
.deliverables__item h3 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 0 0.375rem;
  line-height: 1.45;
}

@media (min-width: 1024px) {
  .deliverables__item h3 {
    font-size: 1rem;
  }
}

/* 説明 */
.deliverables__item p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--color-text-sub);
  margin: 0;
}

/* ============================================================
   サンプル画像（フィギュア2枚並び）
   ============================================================ */
.deliverables__samples {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

@media (min-width: 768px) {
  .deliverables__samples {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-6);
  }
}

.deliverables__sample {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(34, 190, 240, 0.16);
  box-shadow:
    0 16px 40px rgba(0, 99, 138, 0.10),
    0 4px 12px rgba(0, 99, 138, 0.05);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.deliverables__sample:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 48px rgba(0, 99, 138, 0.16),
    0 8px 16px rgba(0, 99, 138, 0.08);
}

.deliverables__sample picture,
.deliverables__sample img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.deliverables__sample img {
  transition: transform 6s ease-out;
}

.deliverables__sample:hover img {
  transform: scale(1.04);
}

.deliverables__sample figcaption {
  padding: var(--space-2) var(--space-3) var(--space-3);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--color-text-sub);
  background: rgba(255, 255, 255, 0.7);
}

.deliverables__sample figcaption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

/* ============================================================
   *マーク + 注記凡例（ドローン規制等）
   ============================================================ */
.deliverables__mark {
  display: inline-block;
  font-size: 0.55em;
  font-weight: 700;
  color: var(--color-accent-sky);
  margin-left: 1px;
  vertical-align: super;
  line-height: 1;
}

.deliverables__note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 880px;
  margin: var(--space-4) auto 0;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, rgba(245, 250, 252, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
  border: 1px solid rgba(0, 99, 138, 0.10);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-text-sub);
}

.deliverables__note strong {
  color: var(--color-text);
  font-weight: 700;
}

.deliverables__note-mark {
  flex-shrink: 0;
  display: inline-block;
  font-weight: 800;
  color: var(--color-accent-sky);
  font-size: 0.875rem;
  line-height: 1.55;
  min-width: 1.2em;
}

@media (min-width: 768px) {
  .deliverables__note {
    font-size: 0.875rem;
    margin-top: var(--space-5);
  }
}
