/*
 * Demo (Webサイトデザイン一覧) styles.
 * Follows the same design language as works-demo.css / service-pages.css
 * and reuses their tokens. Loaded only on the demo templates.
 */

.asolvan-demo-page .section-container,
.asolvan-demo-detail .section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ===== Page header ===== */
.demo-page-header {
  text-align: center;
  margin-bottom: 20px;
}

.demo-page-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--asolvan-dark, #1a1a1a);
  margin: 0;
  line-height: 1.3;
}

.demo-page-intro {
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 1.02rem;
  line-height: 1.9;
  color: #555;
  text-align: center;
}

/* ===== Grid ===== */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.demo-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ===== Card ===== */
.demo-card {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.demo-card:hover {
  border-color: var(--asolvan-orange, #ff6b35);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.12);
  transform: translateY(-4px);
}

.demo-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--asolvan-orange, #ff6b35);
  color: #fff;
}

.demo-card-badge.is-new {
  background: #2b8ae0;
}

.demo-card-badge.is-人気,
.demo-card-badge.is-popular {
  background: #e0568a;
}

.demo-card-badge.is-おすすめ,
.demo-card-badge.is-recommended {
  background: var(--asolvan-orange, #ff6b35);
}

.demo-card-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  overflow: hidden;
}

.demo-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
  font-weight: 600;
  font-size: 0.9rem;
}

.demo-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.demo-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--asolvan-dark, #1a1a1a);
  margin: 0 0 10px 0;
}

.demo-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.demo-card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0f0f0;
  color: #666;
}

.demo-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #666;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.demo-card-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.demo-card-cta .btn-outline,
.demo-card-cta .btn-primary {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
}

.demo-card-cta .btn-outline {
  border: 1px solid var(--asolvan-orange, #ff6b35);
  color: var(--asolvan-orange, #ff6b35);
  background: transparent;
}

.demo-card-cta .btn-outline:hover {
  background: var(--asolvan-orange, #ff6b35);
  color: #fff;
}

.demo-card-cta .btn-primary {
  background: var(--asolvan-orange, #ff6b35);
  color: #fff;
}

.demo-card-cta .btn-primary:hover {
  background: #e85a28;
}

/* Compact related card */
.demo-card-compact .demo-card-body {
  padding: 14px 16px;
}

.demo-card-compact .demo-card-title {
  font-size: 1rem;
  margin: 0;
}

.demo-empty-notice {
  text-align: center;
  color: #777;
  padding: 40px 0;
}

/* ===== Hero Showcase (Phase 3): 完成イメージを最初に見せる ===== */
.demo-hero-showcase {
  margin-bottom: 24px;
}

.demo-hero-showcase-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: start;
}

.demo-hero-showcase-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #e5e5e5;
}

.demo-hero-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-hero-showcase-item.is-mobile {
  aspect-ratio: 9 / 16;
}

.demo-hero-showcase-item.is-mobile img {
  aspect-ratio: 9 / 16;
}

.demo-hero-showcase-item figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #666;
  background: #fff;
  border-top: 1px solid #eee;
}

/* ===== Detail hero ===== */
.demo-detail-hero {
  margin-bottom: 8px;
}

.demo-detail-hero-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #f0f0f0;
}

.demo-detail-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.demo-detail-hero-body {
  position: relative;
  margin-top: 4px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.demo-detail-hero-body .demo-card-badge {
  position: static;
  display: inline-block;
  margin-bottom: 10px;
}

.demo-detail-hero-body h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 700;
  color: var(--asolvan-dark, #1a1a1a);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.demo-base-notice {
  font-weight: 600;
}

/* ===== Sub-page gallery (about/service/news/contact) ===== */
.demo-subpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.demo-subpage-shot {
  margin: 0;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.demo-subpage-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #e0e0e0;
}

.demo-subpage-shot figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

/* ===== Mobile preview (uploads/demo/{slug}/mobile.webp) =====
 * mobile.webp already contains its own iPhone mockup (generated with the
 * device frame baked into the image). Show it as-is — no second frame, no
 * added padding/background, no object-fit crop, no border-radius on the
 * image itself. Just the image, at its natural aspect ratio, capped at a
 * readable width. Same markup/CSS on desktop and mobile. */
.demo-mobile-preview {
  text-align: center;
}

.demo-mobile-frame {
  margin: 16px auto 0;
}

.demo-mobile-frame img {
  display: block;
  max-width: 440px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ===== Pricing ===== */
.demo-pricing-note {
  font-size: 0.88rem;
  color: #777;
  margin: 0 0 20px 0;
}

.demo-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.demo-price-block h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--asolvan-dark, #1a1a1a);
  margin: 0 0 12px 0;
}

.demo-price-block.is-recommended {
  position: relative;
  border: 2px solid var(--asolvan-orange, #ff6b35);
  border-radius: 8px;
  padding: 18px 18px 10px;
  background: #fff8f4;
}

.demo-price-recommend-badge {
  position: absolute;
  top: -13px;
  left: 18px;
  background: var(--asolvan-orange, #ff6b35);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

.demo-price-table {
  margin: 0;
}

/* ===== Process ===== */
.demo-flow {
  margin: 0;
  padding-left: 22px;
}

.demo-flow li {
  font-size: 0.98rem;
  line-height: 2;
  color: #444;
}

/* ===== CTA / service link ===== */
.demo-detail-cta {
  text-align: center;
}

.demo-service-back {
  margin: 16px 0 0 0;
}

.demo-service-back a {
  color: var(--asolvan-orange, #ff6b35);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.demo-service-back a:hover {
  text-decoration: underline;
}

/* ===== Phase 2: 営業資料強化セクション (2026-09-04 Founder Review) ===== */

/* 誰向けか / 課題 / 制作後の印象 */
.demo-trust-block {
  background: #fff8f4;
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 8px;
  padding: 28px 28px 8px;
}

.demo-trust-target {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--asolvan-dark, #1a1a1a);
  line-height: 1.8;
  margin: 0 0 20px 0;
}

.demo-trust-problem h4,
.demo-trust-impression h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--asolvan-dark, #1a1a1a);
  margin: 0 0 10px 0;
}

.demo-problem-list {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

.demo-problem-list li {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 4px;
}

.demo-problem-list li::marker {
  color: var(--asolvan-orange, #ff6b35);
}

.demo-trust-impression p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #444;
  margin: 0 0 20px 0;
}

/* 更新できる箇所 / サポート */
.demo-editable-list,
.demo-support-list {
  margin: 12px 0 0 0;
  padding-left: 20px;
}

.demo-editable-list li,
.demo-support-list li {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 4px;
}

.demo-period-line {
  font-size: 0.98rem;
  color: #444;
  margin: 0 0 8px 0;
}

.demo-delivery-note {
  font-size: 0.9rem;
  color: #777;
  margin: 16px 0 0 0;
  text-align: center;
}

/* 価値訴求ブロック（価格ではなく価値） */
.demo-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0 32px 0;
}

.demo-value-block {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 22px;
}

.demo-value-block.is-recommended {
  background: #fff8f4;
  border: 2px solid var(--asolvan-orange, #ff6b35);
}

.demo-value-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eee;
  color: #555;
  margin-bottom: 10px;
}

.demo-value-tag.is-recommended {
  background: var(--asolvan-orange, #ff6b35);
  color: #fff;
}

.demo-value-block p {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--asolvan-dark, #1a1a1a);
  margin: 0;
}

/* 比較表: 通常制作 vs サブスク制作 */
.demo-comparison-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--asolvan-dark, #1a1a1a);
  margin: 0 0 14px 0;
}

.demo-comparison-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
}

.demo-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.demo-comparison-table th,
.demo-comparison-table td {
  border: 1px solid #e0e0e0;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.demo-comparison-table thead th {
  background: #f5f5f5;
  font-weight: 700;
  color: var(--asolvan-dark, #1a1a1a);
}

.demo-comparison-table thead th.is-recommended {
  background: var(--asolvan-orange, #ff6b35);
  color: #fff;
  position: relative;
}

.demo-comparison-table thead th.is-recommended span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

.demo-comparison-table tbody th {
  background: #fafafa;
  font-weight: 700;
  white-space: nowrap;
}

.demo-comparison-table td.is-recommended {
  background: #fff8f4;
  font-weight: 600;
}

/* ===== Phase 3: 感情設計セクション (2026-09-04 二回目 Founder Review) ===== */

/* ⑦ 共感導入（オーナー目線） */
.demo-empathy-intro {
  border: none;
  padding: 0;
  margin: 8px 0 36px 0;
}

.demo-empathy-intro p {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--asolvan-dark, #1a1a1a);
  font-weight: 500;
  margin: 0;
}

/* ④ ペルソナ・チェックリスト（このデザインを選ぶ会社） */
.demo-persona-block {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px 28px;
}

.demo-persona-checklist,
.demo-included-list {
  list-style: none;
  margin: 12px 0 0 0;
  padding: 0;
}

.demo-persona-checklist li,
.demo-included-list li {
  position: relative;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--asolvan-dark, #1a1a1a);
  font-weight: 600;
  padding-left: 28px;
  margin-bottom: 8px;
}

.demo-persona-checklist li::before,
.demo-included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--asolvan-orange, #ff6b35);
  font-weight: 700;
}

.demo-included-list {
  margin-top: 14px;
  border-top: 1px dashed #ddd;
  padding-top: 14px;
}

.demo-included-list li {
  font-size: 0.88rem;
  font-weight: 500;
  color: #555;
  padding-left: 24px;
  margin-bottom: 6px;
}

/* ⑤ STEP形式の制作フロー */
.demo-flow-period {
  font-size: 1rem;
  color: var(--asolvan-dark, #1a1a1a);
  margin: 0 0 20px 0;
}

.demo-flow-period strong {
  color: var(--asolvan-orange, #ff6b35);
  font-size: 1.2rem;
}

.demo-flow-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.demo-flow-step {
  width: 100%;
  max-width: 480px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-left: 4px solid var(--asolvan-orange, #ff6b35);
  border-radius: 8px;
  padding: 16px 22px;
  text-align: center;
}

.demo-flow-step-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--asolvan-orange, #ff6b35);
  margin-bottom: 6px;
}

.demo-flow-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--asolvan-dark, #1a1a1a);
  margin: 0 0 6px 0;
}

.demo-flow-step p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

.demo-flow-arrow {
  font-size: 1.3rem;
  color: var(--asolvan-orange, #ff6b35);
  line-height: 1;
  padding: 2px 0;
}

/* ⑥ Works との相互リンク */
.demo-related-work {
  text-align: center;
}

.demo-related-work-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 32px;
  background: #fff8f4;
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.demo-related-work-link:hover {
  background: var(--asolvan-orange, #ff6b35);
}

.demo-related-work-link:hover .demo-related-work-label,
.demo-related-work-link:hover .demo-related-work-title {
  color: #fff;
}

.demo-related-work-label {
  font-size: 0.8rem;
  color: #999;
  transition: color 0.3s ease;
}

.demo-related-work-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--asolvan-dark, #1a1a1a);
  transition: color 0.3s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .asolvan-demo-page .section-container,
  .asolvan-demo-detail .section-container {
    padding: 40px 16px;
  }

  .demo-grid,
  .demo-grid-compact {
    grid-template-columns: 1fr;
  }

  .demo-pricing-grid {
    grid-template-columns: 1fr;
  }

  .demo-card-cta {
    flex-direction: column;
  }

  .demo-value-grid {
    grid-template-columns: 1fr;
  }

  .demo-comparison-table {
    font-size: 0.85rem;
  }

  .demo-comparison-table th,
  .demo-comparison-table td {
    padding: 8px 10px;
  }

  .demo-hero-showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .demo-empathy-intro p {
    font-size: 1.02rem;
  }

  .demo-flow-step {
    max-width: 100%;
  }
}
