/* =============================================================================
   Pet Funeral Detail Page CSS - 温かみのあるデザイン
   ファイル名: pet-funeral-detail.css
============================================================================= */

/* ===== カラーパレット ===== */
:root {
  --primary-color: #7eb3d3;        /* 優しい水色 */
  --secondary-color: #f4a896;      /* 温かいコーラル */
  --accent-color: #a8d5ba;         /* 柔らかいグリーン */
  --text-dark: #333333;            /* ダークグレー */
  --text-medium: #666666;          /* ミディアムグレー */
  --text-light: #999999;           /* ライトグレー */
  --bg-light: #fafbfc;             /* 明るい背景 */
  --bg-warm: #fff9f5;              /* 温かい背景 */
  --border-color: #e8ecef;         /* ボーダー */
  --shadow-color: rgba(0,0,0,0.08);
}

/* ===== 基本設定 ===== */
.l-mainContent {
  background: var(--bg-light);
  padding: 30px 0 60px;
}

.l-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== パンくずリスト ===== */
.pet-funeral-breadcrumb {
  background: #fff;
  padding: 15px 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 6px var(--shadow-color);
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  color: var(--text-medium);
}

.breadcrumb-list li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--text-light);
  font-weight: bold;
}

.breadcrumb-list a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-list a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.breadcrumb-list .current {
  color: var(--text-dark);
  font-weight: 500;
}

/* ===== メインコンテナ ===== */
.pet-funeral-detail {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px var(--shadow-color);
}

/* ===== ヘッダーセクション ===== */
.pet-funeral-detail__header {
  background: linear-gradient(135deg, var(--bg-warm) 0%, #fff 100%);
  padding: 35px 30px 30px;
  border-bottom: 3px solid var(--primary-color);
}

.pet-funeral-detail__title {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-dark);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

.title-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.pet-funeral-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.pet-funeral-detail__area {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-medium);
}

.icon-location {
  font-size: 18px;
}

.pet-funeral-detail__area a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.pet-funeral-detail__area a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-service {
  background: linear-gradient(135deg, var(--accent-color) 0%, #b8dfcb 100%);
  color: #2d5f3e;
}

/* ===== メインビジュアル ===== */
.pet-funeral-detail__visual {
  position: relative;
  width: 100%;
  background: var(--bg-light);
}

.pet-funeral-detail__image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

.pet-funeral-detail__visual--no-image {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-image-placeholder {
  text-align: center;
  color: var(--text-light);
}

.placeholder-icon {
  font-size: 80px;
  display: block;
  margin-bottom: 15px;
  opacity: 0.5;
}

.placeholder-text {
  font-size: 16px;
  display: block;
}

/* ===== お問い合わせ情報ボックス ===== */
.contact-info-box {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #f7b9a9 100%);
  padding: 25px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-label {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  opacity: 0.9;
}

.contact-phone,
.contact-website {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.contact-phone {
  color: var(--primary-color);
}

.contact-website {
  color: var(--secondary-color);
}

.contact-phone:hover,
.contact-website:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ===== セクション共通スタイル ===== */
.pet-funeral-detail__section {
  padding: 40px 30px;
  border-bottom: 1px solid var(--border-color);
}

.pet-funeral-detail__section:last-child {
  border-bottom: none;
}

.pet-funeral-detail__heading {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-dark);
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
}

.heading-icon {
  font-size: 28px;
}

/* ===== コンテンツ ===== */
.pet-funeral-detail__content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-medium);
}

.pet-funeral-detail__content p {
  margin-bottom: 1.5em;
}

.pet-funeral-detail__content p:last-child {
  margin-bottom: 0;
}

/* ===== サービスグリッド ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: var(--bg-warm);
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  transition: all 0.3s;
}

.service-item:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-color);
  border-color: var(--secondary-color);
}

.service-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.service-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

/* ===== 基本情報テーブル ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.info-table tr {
  border-bottom: 1px solid var(--border-color);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table th {
  background: linear-gradient(135deg, var(--bg-light) 0%, #f0f4f7 100%);
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  width: 140px;
  vertical-align: top;
  font-size: 14px;
}

.info-table td {
  padding: 15px 20px;
  color: var(--text-medium);
  line-height: 1.7;
  font-size: 15px;
}

.info-table a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.info-table a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* ===== 地図 ===== */
.pet-funeral-detail__map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--shadow-color);
}

.map-link-wrapper {
  margin-top: 15px;
  text-align: center;
}

.btn-map {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(126, 179, 211, 0.3);
}

.btn-map:hover {
  background: #6ba1c0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(126, 179, 211, 0.4);
}

/* ===== 情報セクション ===== */
.info-section {
  background: var(--bg-warm);
}

.info-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.info-item {
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid var(--accent-color);
  transition: all 0.3s;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-color);
  border-color: var(--secondary-color);
}

.info-item h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.info-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-medium);
  margin: 0;
}

/* ===== CTAセクション ===== */
.pet-funeral-detail__cta {
  background: linear-gradient(135deg, #e8f4f8 0%, #fff 100%);
  padding: 50px 30px;
}

.cta-box {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-dark);
  margin: 0 0 15px;
}

.cta-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-medium);
  margin: 0 0 30px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-icon {
  font-size: 20px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #f7b9a9 100%);
  color: #fff;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #f29583 0%, var(--secondary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(244, 168, 150, 0.4);
}

.btn--secondary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8fc4df 100%);
  color: #fff;
}

.btn--secondary:hover {
  background: linear-gradient(135deg, #6ba1c0 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(126, 179, 211, 0.4);
}

/* ===== 関連葬儀社リスト ===== */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.related-item {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.related-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px var(--shadow-color);
  transform: translateY(-4px);
}

.related-item__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-light);
}

.related-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-item:hover .related-item__image img {
  transform: scale(1.05);
}

.no-image-small {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e8ecef 100%);
  font-size: 48px;
  color: var(--text-light);
}

.related-item__content {
  padding: 20px;
}

.related-item__title {
  font-size: 17px;
  font-weight: bold;
  margin: 0 0 12px;
}

.related-item__title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.related-item__title a:hover {
  color: var(--primary-color);
}

.related-item__area,
.related-item__phone {
  font-size: 14px;
  color: var(--text-medium);
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
  .pet-funeral-detail__title {
    font-size: 26px;
  }
  
  .pet-funeral-detail__header,
  .pet-funeral-detail__section,
  .pet-funeral-detail__cta {
    padding: 25px 20px;
  }
  
  .contact-info-box {
    flex-direction: column;
    gap: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .info-table th {
    width: 100px;
    font-size: 13px;
  }
  
  .info-table td {
    font-size: 14px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .related-list {
    grid-template-columns: 1fr;
  }
  
  .info-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .l-container {
    padding: 0 15px;
  }
  
  .pet-funeral-detail__title {
    font-size: 22px;
    gap: 8px;
  }
  
  .title-icon {
    font-size: 28px;
  }
  
  .pet-funeral-detail__heading {
    font-size: 20px;
  }
  
  .contact-phone,
  .contact-website {
    font-size: 16px;
    padding: 10px 20px;
  }
  
  .info-table th,
  .info-table td {
    padding: 12px 15px;
  }
  
  .cta-title {
    font-size: 24px;
  }
}