/* テンプレート詳細ページのスタイル */

/* ページヘッダー */
.page-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 40px 0 20px;
}

/* コンテナ */
.template-single {
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  max-width: 896px;
}

/* 一覧へ戻るリンク */
.template-list-link {
  margin-bottom: 24px;
}

.template-list-link a {
  color: #1F2023;
  font-size: 0.875rem;
  text-decoration: none;
}

.template-list-link a::before {
  content: "❮";
  margin-right: 0.5em;
  color: #333;
  font-size: 1.2em;
}

.template-list-link a:hover {
  color: #55555D;
}

/* ヘッダー */
.template-single .entry-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
}

.template-single .template-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.template-type-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
}

.template-type-badge.type-free {
  background: linear-gradient(135deg, #10b981, #059669);
}

.template-type-badge.type-premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.template-type-badge.type-exclusive {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.template-single .entry-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 15px 0 0;
  line-height: 1.4;
  color: #263943;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #2376D0, #25ACCA 43%, #20CD7A) 5;
}

/* アイキャッチ画像 */
.template-featured-image {
  margin-bottom: 30px;
  text-align: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 12px;
  padding: 20px;
}

.template-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* コンテンツ */
.template-single .entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.template-single .entry-content p {
  margin-bottom: 20px;
}

.template-single .entry-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.template-single h2 {
  font-size: 1rem;
}

.template-single h3 {
  padding-left: 10px;
  border-left-width: 4px;
  border-left-style: solid;
  border-right-width: 4px;
  border-right-style: solid;
  border-image: linear-gradient(2.3deg, #2376D0, #25ACCA 43%, #20CD7A) 5;
  font-size: 1.25rem;
  background-color: white;
  margin: 25px 0 15px;
}

/* アクションセクション */
.template-action-section {
  margin-top: 40px;
  padding-top: 40px;
}

.template-cta-box {
  display: flex;
  justify-content: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #27292d;
}

.btn-template-action {
  display: inline-block;
  padding: 8px 16px;
  background: #4de878;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 180px;
}

.btn-template-action:hover {
  background: #44c167;
  color: #1F2023;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .template-single {
    padding: 20px;
  }

  .template-single .entry-title {
    font-size: 1.5rem;
  }

  .template-featured-image {
    padding: 15px;
  }

  .template-cta-box {
    padding: 30px 20px;
    flex-direction: column;
  }

  .template-cta-box > div {
    width: 100%;
  }

  .btn-template-action {
    padding: 14px 32px;
    font-size: 16px;
    width: 100%;
    display: block;
  }

}

@media screen and (max-width: 480px) {
  .template-single .entry-title {
    font-size: 1.25rem;
  }

  .template-cta-box {
    padding: 25px 15px;
  }

  .btn-template-action {
    padding: 12px 24px;
    font-size: 15px;
  }
}