/* ==============================
   memorius.jp Front Page Styles
   v1.0 - Placeholder Version
============================== */

/* ---- Design Tokens ---- */
:root {
  --mem-gold:       #C9A96E;
  --mem-gold-dark:  #a8854e;
  --mem-gold-light: #e8d9be;
  --mem-dark:       #1a1a1a;
  --mem-text:       #333;
  --mem-muted:      #666;
  --mem-light-bg:   #faf8f5;
  --mem-border:     #e5e0d8;
  --mem-white:      #fff;
  --mem-max-w:      1200px;
  --mem-radius:     8px;
  --mem-shadow:     0 4px 24px rgba(0,0,0,0.08);
  --mem-shadow-hover: 0 12px 40px rgba(0,0,0,0.14);
}

/* ---- Base Reset for sections ---- */
.mem-hero, .mem-trust, .mem-concept, .mem-templates,
.mem-steps, .mem-cats, .mem-articles, .mem-footer-cta {
  box-sizing: border-box;
}
.mem-hero *, .mem-trust *, .mem-concept *,
.mem-templates *, .mem-steps *, .mem-cats *,
.mem-articles *, .mem-footer-cta * {
  box-sizing: border-box;
}

/* ---- Buttons ---- */
.mem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.28s ease;
  cursor: pointer;
  white-space: nowrap;
}
.mem-btn--gold {
  background: var(--mem-gold);
  color: #fff;
  border: 2px solid var(--mem-gold);
}
.mem-btn--gold:hover {
  background: var(--mem-gold-dark);
  border-color: var(--mem-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.4);
  color: #fff;
  text-decoration: none;
}
.mem-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
}
.mem-btn--outline:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}
.mem-btn--border {
  background: transparent;
  color: var(--mem-gold);
  border: 2px solid var(--mem-gold);
}
.mem-btn--border:hover {
  background: var(--mem-gold);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}
.mem-btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.mem-btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}
.mem-btn--lg {
  padding: 18px 52px;
  font-size: 16px;
}

/* ---- Section Header (共通) ---- */
.mem-section-header {
  text-align: center;
  margin-bottom: 56px;
}
.mem-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--mem-gold);
  margin: 0 0 12px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.mem-section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--mem-dark);
  margin: 0 0 18px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.mem-section-desc {
  font-size: 15px;
  color: var(--mem-muted);
  line-height: 1.9;
  margin: 0;
}
.mem-section-header--light .mem-section-title,
.mem-section-header--light .mem-section-desc {
  color: #fff;
}
.mem-section-header--light .mem-section-label {
  color: var(--mem-gold-light);
}

/* ==============================
   HERO
============================== */
.mem-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mem-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* === PLACEHOLDER背景 ===
   実際の画像に差し替える際はこのgradientをbackground-imageに変更してください
   推奨: 1920×1080px、葬儀・メモリアルムービーの雰囲気の画像
*/
.mem-hero__bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #2c2c3a 0%,
    #3d3527 40%,
    #2a2a2a 70%,
    #1a1a1a 100%
  );
}
.mem-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 60%,
    rgba(0,0,0,0.65) 100%
  );
}
.mem-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 820px;
  margin: 0 auto;
}
.mem-hero__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--mem-gold);
  border: 1px solid var(--mem-gold);
  padding: 5px 20px 5px 22px;
  border-radius: 2px;
  margin-bottom: 28px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.mem-hero__catch {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin: 0 0 28px;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.mem-hero__catch em {
  font-style: normal;
  color: var(--mem-gold);
}
.mem-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  margin: 0 0 44px;
}
.mem-hero__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.mem-hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.mem-hero__scroll span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.mem-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: mem-scroll-line 1.6s ease-in-out infinite;
}
@keyframes mem-scroll-line {
  0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
}

/* ==============================
   TRUST BAR
============================== */
.mem-trust {
  background: var(--mem-white);
  border-bottom: 1px solid var(--mem-border);
  padding: 0;
}
.mem-trust__inner {
  max-width: var(--mem-max-w);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding: 0 24px;
}
.mem-trust__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}
.mem-trust__num {
  font-size: 30px;
  font-weight: 800;
  color: var(--mem-gold);
  line-height: 1.1;
  display: block;
  margin-bottom: 6px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.mem-trust__num small {
  font-size: 14px;
  font-weight: 700;
}
.mem-trust__label {
  font-size: 12px;
  color: var(--mem-muted);
  letter-spacing: 0.04em;
}
.mem-trust__sep {
  width: 1px;
  background: var(--mem-border);
  margin: 16px 0;
}

/* ==============================
   CONCEPT
============================== */
.mem-concept {
  padding: 96px 24px;
  background: var(--mem-white);
}
.mem-concept__grid {
  max-width: var(--mem-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.mem-concept__card {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid var(--mem-border);
  border-radius: var(--mem-radius);
  transition: all 0.28s ease;
  background: var(--mem-white);
}
.mem-concept__card:hover {
  box-shadow: var(--mem-shadow-hover);
  transform: translateY(-6px);
  border-color: var(--mem-gold-light);
}
.mem-concept__card--center {
  border-color: var(--mem-gold);
  border-width: 2px;
  background: var(--mem-light-bg);
}
.mem-concept__icon-wrap {
  margin-bottom: 24px;
}
/* === PLACEHOLDERアイコン ===
   実際の画像（400×400px）に差し替えてください
   .mem-concept__icon-phをimgタグに変えてください
*/
.mem-concept__icon-ph {
  width: 80px;
  height: 80px;
  background: var(--mem-light-bg);
  border: 2px solid var(--mem-gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto;
}
.mem-concept__card--center .mem-concept__icon-ph {
  background: #fff;
  border-color: var(--mem-gold);
}
.mem-concept__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--mem-dark);
  margin: 0 0 14px;
}
.mem-concept__text {
  font-size: 14px;
  color: var(--mem-muted);
  line-height: 1.85;
  margin: 0;
}

/* ==============================
   LOTTIE TEMPLATES
============================== */
.mem-templates {
  background: var(--mem-dark);
}
.mem-templates__bg {
  padding: 96px 24px;
  max-width: var(--mem-max-w);
  margin: 0 auto;
}
.mem-templates__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.mem-tpl-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--mem-radius);
  overflow: hidden;
  transition: all 0.28s ease;
}
.mem-tpl-card:hover {
  border-color: var(--mem-gold);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.mem-tpl-card--coming {
  opacity: 0.5;
  cursor: default;
}
.mem-tpl-card--coming:hover {
  transform: none;
  box-shadow: none;
}
.mem-tpl-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.mem-tpl-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #2a2a2a;
}
.mem-tpl-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.mem-tpl-card:hover .mem-tpl-card__thumb img {
  transform: scale(1.04);
}
/* === PLACEHOLDERサムネイル ===
   実際のスクリーンショット（800×450px）に差し替えてください
*/
.mem-tpl-card__thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3020 100%);
  border: 1px dashed rgba(201,169,110,0.4);
}
.mem-tpl-card__thumb-ph span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(201,169,110,0.6);
  text-align: center;
  line-height: 1.6;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.mem-tpl-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--mem-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 2px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.mem-tpl-card__body {
  padding: 20px;
}
.mem-tpl-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.4;
}
.mem-tpl-card__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0 0 14px;
}
.mem-tpl-card__more {
  font-size: 13px;
  color: var(--mem-gold);
  font-weight: 600;
}
.mem-templates__cta {
  text-align: center;
}

/* ==============================
   HOW IT WORKS (STEPS)
============================== */
.mem-steps {
  padding: 96px 24px;
  background: var(--mem-light-bg);
}
.mem-steps__list {
  max-width: var(--mem-max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.mem-steps__item {
  flex: 1;
  text-align: center;
  padding: 40px 24px;
  background: var(--mem-white);
  border: 1px solid var(--mem-border);
  border-radius: var(--mem-radius);
  position: relative;
  transition: all 0.28s ease;
}
.mem-steps__item:hover {
  box-shadow: var(--mem-shadow);
  transform: translateY(-4px);
}
.mem-steps__arrow {
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--mem-gold);
  padding: 0 12px;
  margin-top: 80px;
  opacity: 0.7;
}
.mem-steps__num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--mem-gold);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 16px;
}
/* === PLACEHOLDERステップアイコン ===
   実際のイラスト（200×200px）に差し替えてください
*/
.mem-steps__icon-ph {
  width: 64px;
  height: 64px;
  background: var(--mem-light-bg);
  border: 2px solid var(--mem-gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}
.mem-steps__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--mem-dark);
  margin: 0 0 10px;
  line-height: 1.4;
}
.mem-steps__text {
  font-size: 13px;
  color: var(--mem-muted);
  line-height: 1.8;
  margin: 0 0 14px;
}
.mem-steps__link {
  font-size: 13px;
  color: var(--mem-gold);
  font-weight: 600;
  text-decoration: none;
}
.mem-steps__link:hover {
  text-decoration: underline;
}

/* ==============================
   CATEGORIES
============================== */
.mem-cats {
  padding: 96px 24px;
  background: var(--mem-white);
}
.mem-cats .mem-section-header {
  max-width: var(--mem-max-w);
  margin: 0 auto 56px;
}
.mem-cats__grid {
  max-width: var(--mem-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mem-cat-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--mem-border);
  border-radius: var(--mem-radius);
  text-decoration: none;
  color: var(--mem-text);
  background: var(--mem-white);
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}
.mem-cat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--mem-gold);
  transform: scaleY(0);
  transition: transform 0.28s ease;
  transform-origin: bottom;
}
.mem-cat-card:hover {
  box-shadow: var(--mem-shadow);
  border-color: var(--mem-gold-light);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--mem-text);
}
.mem-cat-card:hover::before {
  transform: scaleY(1);
}
.mem-cat-card__icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}
.mem-cat-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--mem-dark);
  margin: 0 0 10px;
  line-height: 1.5;
}
.mem-cat-card__desc {
  font-size: 13px;
  color: var(--mem-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.mem-cat-card__arrow {
  margin-top: 16px;
  font-size: 14px;
  color: var(--mem-gold);
  font-weight: 700;
  display: block;
}

/* ==============================
   RECENT ARTICLES
============================== */
.mem-articles {
  background: var(--mem-light-bg);
  padding: 96px 24px;
}
.mem-articles__inner {
  max-width: var(--mem-max-w);
  margin: 0 auto;
}
.mem-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.mem-art-card {
  background: var(--mem-white);
  border-radius: var(--mem-radius);
  overflow: hidden;
  border: 1px solid var(--mem-border);
  transition: all 0.28s ease;
}
.mem-art-card:hover {
  box-shadow: var(--mem-shadow-hover);
  transform: translateY(-4px);
}
.mem-art-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.mem-art-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8e0d5;
}
.mem-art-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.mem-art-card:hover .mem-art-card__thumb img {
  transform: scale(1.04);
}
.mem-art-card__thumb-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e0d5, #d5c9b8);
}
.mem-art-card__cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--mem-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mem-art-card__body {
  padding: 18px 20px 20px;
}
.mem-art-card__date {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 8px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.mem-art-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--mem-dark);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mem-articles__cta {
  text-align: center;
}

/* ==============================
   FOOTER CTA
============================== */
.mem-footer-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2620 50%, #1a1a1a 100%);
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mem-footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.mem-footer-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.mem-footer-cta__title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin: 0 0 20px;
  letter-spacing: 0.03em;
}
.mem-footer-cta__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin: 0 0 44px;
}
.mem-footer-cta__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 960px) {
  .mem-concept__grid,
  .mem-templates__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mem-steps__list {
    flex-wrap: wrap;
    gap: 20px;
  }
  .mem-steps__arrow { display: none; }
  .mem-steps__item { flex: 0 0 calc(50% - 10px); }
  .mem-cats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mem-hero__catch { font-size: 30px; }
  .mem-hero__sub { font-size: 14px; }
  .mem-hero__btns { flex-direction: column; align-items: center; }
  .mem-btn { width: 100%; max-width: 300px; justify-content: center; }

  .mem-trust__inner { flex-wrap: wrap; }
  .mem-trust__item { flex: 0 0 50%; }
  .mem-trust__sep { display: none; }

  .mem-concept__grid,
  .mem-templates__grid,
  .mem-cats__grid,
  .mem-articles__grid {
    grid-template-columns: 1fr;
  }

  .mem-section-title { font-size: 22px; }
  .mem-section-desc { font-size: 14px; }

  .mem-steps__item { flex: 0 0 100%; }

  .mem-footer-cta__title { font-size: 22px; }
  .mem-footer-cta__btns { flex-direction: column; align-items: center; }

  .mem-hero, .mem-concept, .mem-templates__bg,
  .mem-steps, .mem-cats, .mem-articles, .mem-footer-cta {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .mem-sp-br { display: inline; }
}
@media (min-width: 769px) {
  .mem-sp-br { display: none; }
}
