/* =============================================
   Dry Ice Pet Memorial LP - Standalone Styles
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #3d3a37;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}

img {
  max-width: 100%;
  height: auto;
}

/* アクセシビリティ: 視覚的に非表示だがスクリーンリーダー・SEOに有効 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 700;
}

.sp-only { display: inline; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sp-only { display: none; }
}

/* =============================================
   Color Variables
   ============================================= */
:root {
  --pet-primary: #6b8f71;      /* 落ち着いた緑 */
  --pet-primary-light: #e8f0e9;
  --pet-warm: #f5f0eb;          /* 温かみのあるベージュ */
  --pet-warm-dark: #ede5dc;
  --pet-text: #3d3a37;
  --pet-text-light: #7a756f;
  --pet-accent: #c4956a;        /* 温かいゴールド */
  --pet-bg-soft: #faf8f5;
  --pet-border: #e8e4df;
}

/* =============================================
   Section共通
   ============================================= */
.section-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading__en {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pet-text-light);
  margin-bottom: 8px;
  font-weight: 400;
}
.section-heading__title {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.section-heading__sub {
  font-size: 14px;
  color: var(--pet-text-light);
  margin-top: 12px;
  line-height: 1.7;
}

/* =============================================
   1. ファーストビュー
   ============================================= */
.fv {
  background: linear-gradient(165deg, #f7f4f0 0%, #eee9e3 50%, #e8e2da 100%);
  color: var(--pet-text);
  padding: 48px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv__bg-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.fv__bg-leaf {
  position: absolute;
  opacity: 0.06;
}
.fv__bg-leaf--1 {
  top: 10%;
  left: -5%;
  width: 200px;
  animation: floatGentle 8s ease-in-out infinite;
}
.fv__bg-leaf--2 {
  bottom: 15%;
  right: -3%;
  width: 160px;
  animation: floatGentle 10s ease-in-out 2s infinite;
}
.fv__bg-leaf--3 {
  top: 60%;
  left: 10%;
  width: 120px;
  animation: floatGentle 12s ease-in-out 4s infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.fv__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.fv__illust {
  margin-bottom: 24px;
}
.fv__illust-svg {
  width: 120px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.fv__badge {
  display: inline-block;
  background: var(--pet-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.fv__title {
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.fv__title em {
  font-style: normal;
  color: var(--pet-primary);
}

.fv__lead {
  font-size: 15px;
  color: var(--pet-text-light);
  line-height: 1.9;
  margin-bottom: 32px;
}

.fv__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pet-primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(107, 143, 113, 0.25);
}
.fv__cta-btn:hover {
  background: #5a7d60;
  transform: translateY(-2px);
}
.fv__cta-note {
  display: block;
  font-size: 12px;
  color: var(--pet-text-light);
  margin-top: 12px;
}

/* =============================================
   2. 共感セクション
   ============================================= */
.empathy {
  background: #fff;
  padding: 64px 20px;
}

.empathy__message {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  line-height: 2;
  color: var(--pet-text);
}
.empathy__message p {
  margin-bottom: 20px;
}
.empathy__message p:last-child {
  margin-bottom: 0;
}

.empathy__illust {
  text-align: center;
  margin-bottom: 32px;
}
.empathy__illust svg {
  width: 80px;
  height: auto;
}

/* =============================================
   3. 選ばれる理由
   ============================================= */
.reasons {
  background: var(--pet-bg-soft);
  padding: 72px 20px;
}

.reasons__grid {
  display: grid;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.reasons__card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--pet-border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.reasons__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(61, 58, 55, 0.06);
}

.reasons__card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reasons__card-icon svg {
  width: 48px;
  height: 48px;
}

.reasons__card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--pet-text);
}

.reasons__card-text {
  font-size: 14px;
  color: var(--pet-text-light);
  line-height: 1.8;
}

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

/* =============================================
   4. 量の目安テーブル
   ============================================= */
.guide {
  background: #fff;
  padding: 72px 20px;
}

.guide__intro {
  text-align: center;
  font-size: 14px;
  color: var(--pet-text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.guide__table-wrap {
  max-width: 640px;
  margin: 0 auto;
  overflow-x: auto;
}

.guide__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.guide__table thead {
  background: var(--pet-primary);
  color: #fff;
}
.guide__table th {
  padding: 12px 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}
.guide__table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--pet-border);
  text-align: center;
}
.guide__table tbody tr:nth-child(even) {
  background: var(--pet-bg-soft);
}
.guide__table tbody tr:hover {
  background: var(--pet-primary-light);
}

.guide__note {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 12px;
  color: var(--pet-text-light);
  line-height: 1.7;
}

/* =============================================
   5. 安置のポイント
   ============================================= */
.tips {
  background: var(--pet-warm);
  padding: 72px 20px;
}

.tips__list {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.tips__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  border: 1px solid var(--pet-border);
}

.tips__item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pet-primary-light);
  border-radius: 50%;
}
.tips__item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--pet-primary);
}

.tips__item-body {
  flex: 1;
}
.tips__item-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--pet-text);
}
.tips__item-text {
  font-size: 13px;
  color: var(--pet-text-light);
  line-height: 1.7;
}

/* =============================================
   6. ご注文の流れ
   ============================================= */
.flow {
  background: #fff;
  padding: 72px 20px;
}

.flow__steps {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.flow__step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  position: relative;
}
.flow__step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 72px;
  bottom: 0;
  width: 2px;
  background: var(--pet-border);
}

.flow__step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pet-primary-light);
  color: var(--pet-primary);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pet-primary);
}

.flow__step-body {
  flex: 1;
  padding-top: 4px;
}
.flow__step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--pet-text);
}
.flow__step-text {
  font-size: 14px;
  color: var(--pet-text-light);
  line-height: 1.7;
}

/* =============================================
   7. よくあるご質問
   ============================================= */
.faq {
  background: var(--pet-bg-soft);
  padding: 72px 20px;
}

.faq__list {
  max-width: 640px;
  margin: 0 auto;
}

.faq__item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--pet-border);
  overflow: hidden;
}

.faq__q {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pet-text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}
.faq__q:hover {
  background: var(--pet-bg-soft);
}
.faq__q::before {
  content: 'Q';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pet-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.faq__q::marker {
  display: none;
}

.faq__a {
  padding: 0 24px 18px 64px;
  font-size: 14px;
  color: var(--pet-text-light);
  line-height: 1.8;
}

.faq__item[open] .faq__q {
  background: var(--pet-primary-light);
}

/* =============================================
   8. クロージング CTA
   ============================================= */
.closing {
  background: linear-gradient(165deg, #f7f4f0 0%, #ede5dc 100%);
  padding: 72px 20px;
  text-align: center;
}

.closing__illust {
  margin-bottom: 24px;
}
.closing__illust svg {
  width: 64px;
  height: auto;
}

.closing__title {
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--pet-text);
}

.closing__text {
  font-size: 14px;
  color: var(--pet-text-light);
  line-height: 1.9;
  max-width: 520px;
  margin: 0 auto 32px;
}

.closing__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pet-primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(107, 143, 113, 0.25);
}
.closing__cta-btn:hover {
  background: #5a7d60;
  transform: translateY(-2px);
}

.closing__note {
  font-size: 12px;
  color: var(--pet-text-light);
  margin-top: 12px;
}

/* =============================================
   固定CTAバー (スマホ)
   ============================================= */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--pet-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.fixed-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--pet-primary);
  color: #fff;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 12px rgba(107, 143, 113, 0.3);
}

@media (min-width: 768px) {
  .fixed-cta {
    display: none;
  }
}

/* =============================================
   Mid CTA
   ============================================= */
.mid-cta {
  background: var(--pet-primary-light);
  padding: 40px 20px;
  text-align: center;
}
.mid-cta__text {
  font-size: 14px;
  color: var(--pet-text-light);
  margin-bottom: 16px;
}
.mid-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pet-primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.2s;
}
.mid-cta__btn:hover {
  background: #5a7d60;
  transform: translateY(-2px);
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fv__inner {
  animation: fadeInUp 0.8s ease-out both;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 639px) {
  .reasons__grid {
    grid-template-columns: 1fr;
  }
  .guide__table {
    font-size: 13px;
  }
  .guide__table th,
  .guide__table td {
    padding: 10px 10px;
  }
}

/* =============================================
   Accessibility
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
