/**
 * Memorial Option LP Styles
 * メモリアルオプションLP専用スタイル
 *
 * URL: /option-memorial/
 */

/* ===== BODY/LAYOUT STYLES (memorial-option-lp is added to body) ===== */
/* フッター前の余白を解消（このLPのみに適用） */
body.memorial-option-lp .memorial-lp {
  margin-bottom: 0;
}

body.memorial-option-lp .l-footer,
body.memorial-option-lp footer {
  margin-top: 0 !important;
  /* padding-topは維持（フッター内部の余白は必要） */
}

/* ===== RESET & BASE ===== */
.memorial-lp {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.7;
  font-size: 15px;
  box-sizing: border-box;
}

.memorial-lp *,
.memorial-lp *::before,
.memorial-lp *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.memorial-lp img {
  max-width: 100%;
  display: block;
}

/* ===== SECTIONS ===== */
.memorial-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.memorial-section__inner {
  max-width: 800px;
  margin: 0 auto;
}

.memorial-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.memorial-section__label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: #c9a96e;
  margin-bottom: 12px;
  font-weight: 700;
}

.memorial-section__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 12px;
}

.memorial-section__title--accent {
  color: #c9a96e;
}

.memorial-section__subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ===== CONDITIONS BOX ===== */
.memorial-section__conditions {
  max-width: 500px;
  margin: 24px auto 0;
  padding: 20px 24px;
  background: #f9f7f4;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
}

.memorial-section__conditions-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  font-size: 14px;
}

.memorial-section__conditions-list {
  margin: 0;
  padding-left: 24px;
  list-style-type: decimal;
}

.memorial-section__conditions-list li {
  margin-bottom: 12px;
}

.memorial-section__conditions-list li:last-child {
  margin-bottom: 0;
}

.memorial-section__conditions-example {
  color: #888;
  font-size: 12px;
}

.memorial-section__conditions-warning {
  color: #c9756e;
  font-size: 12px;
}

.memorial-section__conditions-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e2dd;
  font-size: 12px;
  color: #888;
}

/* ===== HERO ===== */
.memorial-lp .memorial-hero {
  padding-top: 60px; /* SPヘッダーの高さ分を確保 */
  background: #f9f6f0;
}

/* SP: 縦積みレイアウト */
.memorial-hero__inner {
  display: block;
}

.memorial-hero__image {
  width: 100%;
  overflow: hidden;
  background: #f9f6f0;
}

.memorial-hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

.memorial-hero__text {
  padding: 40px 20px 48px;
  text-align: center;
  background: #fff;
}

.memorial-hero__catch {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  color: #333;
  word-break: keep-all;
  overflow-wrap: normal;
}

.memorial-hero__sub {
  font-size: 13px;
  line-height: 1.9;
  color: #666;
  margin-bottom: 32px;
  word-break: keep-all;
}

.memorial-hero__sub strong {
  color: #c9a96e;
  font-weight: 700;
}

/* PC: 左右2カラムレイアウト */
@media (min-width: 768px) {
  .memorial-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
  }

  .memorial-hero__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .memorial-hero__image {
    flex: 0 0 auto;
    width: 420px;
    max-width: 42%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  }

  .memorial-hero__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .memorial-hero__text {
    flex: 1;
    max-width: 600px;
    padding: 0;
    text-align: left;
    background: transparent;
  }

  .memorial-hero__catch {
    font-size: 32px;
    line-height: 1.6;
    margin-bottom: 24px;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .memorial-hero__sub {
    font-size: 15px;
    margin-bottom: 40px;
    word-break: keep-all;
  }
}

/* ===== BUTTONS ===== */
.memorial-btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  border: none;
}

.memorial-btn--primary {
  background: #c9a96e;
  color: #fff;
}

.memorial-btn--primary:hover {
  background: #b8944f;
}

.memorial-btn--large {
  padding: 18px 48px;
  font-size: 16px;
}

.memorial-btn--store {
  display: block;
  width: 100%;
  padding: 16px 24px;
  margin-bottom: 12px;
  background: #c9a96e;
  color: #fff;
  border-radius: 8px;
  text-align: center;
}

.memorial-btn--store:hover {
  background: #b8944f;
}

/* ===== BENEFITS ===== */
.memorial-benefits {
  background: #fafafa;
}

.memorial-benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.memorial-benefit-card {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
}

.memorial-benefit-card__number {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #c9a96e;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.memorial-benefit-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f9f6f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.memorial-benefit-card__icon svg {
  width: 32px;
  height: 32px;
  color: #c9a96e;
}

.memorial-benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
  line-height: 1.6;
}

.memorial-benefit-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.memorial-benefit-card__highlight {
  color: #c9a96e;
  font-weight: 700;
}

/* ===== MEMORIAL OPTION ===== */
.memorial-option {
  background: #f9f6f0;
}

.memorial-option__grid {
  display: block;
}

.memorial-option__photo {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 32px;
  overflow: hidden;
}

.memorial-option__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.memorial-option__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.memorial-option__item {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
}

.memorial-option__item-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #f9f6f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.memorial-option__item-icon svg {
  width: 24px;
  height: 24px;
  color: #c9a96e;
}

.memorial-option__item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.memorial-option__item p {
  font-size: 13px;
  color: #777;
}

.memorial-option__price-box {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0d5c3;
}

.memorial-option__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.memorial-option__price-row--free {
  background: #c9a96e;
  color: #fff;
}

.memorial-option__price-row--paid {
  background: #fff;
  color: #333;
}

.memorial-option__price-label {
  font-size: 14px;
}

.memorial-option__price-note {
  font-size: 12px;
  opacity: 0.85;
  display: block;
  margin-top: 2px;
}

.memorial-option__price-value {
  font-size: 20px;
  font-weight: 700;
}

.memorial-option__price-tax {
  font-size: 12px;
  font-weight: 400;
}

/* ===== STEPS ===== */
.memorial-steps {
  background: #fff;
}

.memorial-steps__list {
  position: relative;
}

.memorial-steps__item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  position: relative;
}

.memorial-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 72px;
  bottom: 0;
  width: 2px;
  background: #e0d5c3;
}

.memorial-steps__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #c9a96e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.memorial-steps__content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.memorial-steps__content p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.memorial-steps__notice {
  margin-top: 32px;
  padding: 16px 20px;
  background: #fff5f5;
  border: 1px solid #e8c0c0;
  border-radius: 8px;
  color: #c0392b;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* ===== SCHEDULE ===== */
.memorial-schedule {
  background: #fafafa;
}

.memorial-schedule__tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.memorial-schedule__tab {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #c9a96e;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #c9a96e;
  transition: all 0.2s;
}

.memorial-schedule__tab.is-active {
  background: #c9a96e;
  color: #fff;
}

.memorial-schedule__content {
  display: none;
}

.memorial-schedule__content.is-active {
  display: block;
}

.memorial-timeline {
  position: relative;
  padding-left: 32px;
}

.memorial-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #ddd;
}

.memorial-timeline__item {
  position: relative;
  padding: 0 0 28px 0;
}

.memorial-timeline__item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9a96e;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #c9a96e;
}

.memorial-timeline__time {
  font-size: 13px;
  font-weight: 700;
  color: #c9a96e;
  margin-bottom: 4px;
}

.memorial-timeline__desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.memorial-schedule__point {
  margin-top: 16px;
  padding: 16px 20px;
  background: #f9f6f0;
  border-radius: 8px;
  font-size: 14px;
  color: #666;
}

.memorial-schedule__point strong {
  color: #c9a96e;
}

/* ===== FAQ ===== */
.memorial-faq {
  background: #fff;
}

.memorial-faq__item {
  border-bottom: 1px solid #eee;
}

.memorial-faq__question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  user-select: none;
}

.memorial-faq__badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #c9a96e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.memorial-faq__text {
  flex: 1;
}

.memorial-faq__toggle {
  flex-shrink: 0;
  font-size: 20px;
  color: #bbb;
  transition: transform 0.3s;
}

.memorial-faq__item.is-open .memorial-faq__toggle {
  transform: rotate(45deg);
}

.memorial-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0 0 44px;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.memorial-faq__item.is-open .memorial-faq__answer {
  max-height: 500px;
  padding: 0 0 20px 44px;
}

.memorial-faq__answer strong {
  color: #c0392b;
}

.memorial-faq__doc-list {
  margin-top: 8px;
  padding-left: 0;
  list-style: none;
}

.memorial-faq__doc-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
  font-size: 14px;
  color: #555;
}

.memorial-faq__doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a96e;
}

.memorial-faq__condition-list {
  margin: 12px 0;
  padding-left: 24px;
  list-style-type: decimal;
}

.memorial-faq__condition-list li {
  margin-bottom: 8px;
}

.memorial-faq__note {
  margin-top: 12px;
  font-size: 13px;
  color: #888;
}

/* ===== CTA CLOSING ===== */
.memorial-cta-closing {
  background: #2c2c2c;
  color: #fff;
  text-align: center;
}

.memorial-cta-closing .memorial-section__title {
  color: #fff;
}

.memorial-cta-closing .memorial-section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.memorial-cta-closing__mini-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.memorial-cta-closing__mini-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.memorial-cta-closing__num {
  width: 28px;
  height: 28px;
  background: #c9a96e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.memorial-cta-closing__arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
}

.memorial-cta-closing__buttons {
  max-width: 400px;
  margin: 0 auto 24px;
}

.memorial-cta-closing__note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

/* ===== FOOTER ===== */
.memorial-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: #999;
  background: #1a1a1a;
}

/* ===== FLOATING CTA (Mobile) ===== */
.memorial-floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.memorial-floating-cta .memorial-btn {
  display: block;
  width: 100%;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .memorial-lp {
    font-size: 16px;
  }

  .memorial-hero__catch {
    font-size: 34px;
  }

  .memorial-section__title {
    font-size: 28px;
  }

  .memorial-benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .memorial-option__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .memorial-option__photo {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .memorial-floating-cta {
    display: block;
  }

  .memorial-section {
    padding: 48px 20px;
  }

  .memorial-hero__text {
    padding: 32px 20px 40px;
  }

  /* フローティングCTAの分、下部に余白を追加 */
  .memorial-footer {
    padding-bottom: 80px;
  }
}
