﻿/* =============================================
   6つの安心ポイント - 6anshin.css
   YESパソコン学院 矢巾校
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ---- セクション全体 ---- */
.anshin-section {
  padding: 20px 20px 70px;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.anshin-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.anshin-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(173, 216, 230, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---- セクションタイトル ---- */
.anshin-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  color: #3a3a5c;
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: 0.05em;
}

.anshin-title-sub {
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: #f07fa0;
  font-weight: 500;
  margin: 0 0 48px;
  letter-spacing: 0.08em;
}

.anshin-title-sub span {
  display: inline-block;
  padding: 3px 18px;
  border-radius: 20px;
  background: rgba(240, 127, 160, 0.1);
}

/* ---- カードグリッド ---- */
.anshin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- 各カード ---- */
.anshin-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(100, 100, 160, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.anshin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(100, 100, 160, 0.15);
}

/* ---- カード上部カラーバー ---- */
.anshin-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 10px;
}

.anshin-card:nth-child(1) .anshin-card-header { background: linear-gradient(135deg, #ffd6e0, #ffb3c6); }
.anshin-card:nth-child(2) .anshin-card-header { background: linear-gradient(135deg, #d6eaff, #aed4ff); }
.anshin-card:nth-child(3) .anshin-card-header { background: linear-gradient(135deg, #d6ffed, #a8f0cc); }
.anshin-card:nth-child(4) .anshin-card-header { background: linear-gradient(135deg, #fff3d6, #ffe4a0); }
.anshin-card:nth-child(5) .anshin-card-header { background: linear-gradient(135deg, #e8d6ff, #cfaaff); }
.anshin-card:nth-child(6) .anshin-card-header { background: linear-gradient(135deg, #d6f4ff, #a0e8ff); }

/* ---- ポイント番号バッジ ---- */
.anshin-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.anshin-badge-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  color: #3a3a5c;
  line-height: 1;
  letter-spacing: 0.03em;
}

.anshin-badge-num {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #3a3a5c;
  line-height: 1.1;
}

/* ---- カードタイトル ---- */
.anshin-card-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.0rem;
  font-weight: 700;
  color: #3a3a5c;
  line-height: 1.4;
  margin: 0;
}

/* ---- 写真枠 ---- */
.anshin-photo-area {
  width: calc(100% - 32px);
  margin: 16px 16px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f8;
  border: 2px dashed #d8d8e8;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.anshin-photo-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 160px;
  border-radius: 10px;
}

/* 写真未設定時のプレースホルダー */
.anshin-photo-placeholder {
  text-align: center;
  color: #b0b0c8;
  padding: 20px;
}

.anshin-photo-placeholder .ph-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 6px;
}

.anshin-photo-placeholder .ph-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  display: block;
}

/* ---- カード本文 ---- */
.anshin-card-body {
  padding: 14px 18px 20px;
  flex: 1;
}

.anshin-card-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  color: #555570;
  line-height: 1.8;
  margin: 0 0 10px;
}

/* ---- 料金リスト（Point③専用） ---- */
.anshin-price-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.anshin-price-list li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  color: #3a3a5c;
  font-weight: 500;
  background: linear-gradient(135deg, #fffbe8, #fff3cc);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.anshin-price-list li::before {
  content: '★';
  color: #f0b040;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ---- アイコン絵文字 ---- */
.anshin-icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* =============================================
   スマートフォン対応
   ============================================= */

@media (max-width: 768px) {
  .anshin-section {
    padding: 40px 14px 50px;
  }

  .anshin-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .anshin-title {
    font-size: 1.15rem;
  }

  .anshin-card-title {
    font-size: 0.95rem;
  }

  .anshin-photo-area {
    min-height: 140px;
  }

  .anshin-card-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .anshin-card-header {
    padding: 10px 16px 10px;
  }

  .anshin-badge {
    width: 46px;
    height: 46px;
  }

  .anshin-badge-num {
    font-size: 1.2rem;
  }
}
