@charset "utf-8";


.container {
    /* width: min(1120px, 92vw); */
    margin-inline: auto;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 16px)
}

.row {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    flex-wrap: wrap
}

.muted {
    color: var(--muted)
}

/* ----------------------------------------------------------------
   共通
---------------------------------------------------------------- */
:root{
  --color-main-dark: #536257;
  --color-accent: #bfa37a;
  --color-bg: #f7f5f1;
  --color-bg-soft: #fcfbf8;
  --color-text: #333;
  --color-text-light: #666;
  --color-border: #e5e0d8;
  --color-white: #fff;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --radius: 16px;
}

.funeral-top{
  color: var(--color-text);
  background: transparent;
  line-height: 1.8;
  font-size: 16px;
}

.funeral-top *{
  box-sizing: border-box;
}

.funeral-top img{
  max-width: 100%;
  height: auto;
  display: block;
}

.funeral-top a{
  text-decoration: none;
  transition: .3s;
}

.top-plan,
.top-flow{
  padding-left: 20px;
  padding-right: 20px;
}

.section-heading{
  text-align: center;
  margin-bottom: 42px;
}

.section-heading__title{
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.4;
  color: var(--color-main-dark);
  font-weight: 700;
}

/* ----------------------------------------------------------------
   ボタン
---------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border: 1px solid transparent;
}

.btn--outline{
  background: transparent;
  color: var(--color-main-dark);
  border: 1px solid #333;
}

.btn--outline:hover{
  background: #333;
  color: var(--color-white);
}

/* ----------------------------------------------------------------
   プラン概要
   ※ heroの直下につながる前提
---------------------------------------------------------------- */
.top-plan{
  padding-top: 32px;
  padding-bottom: 60px;
  background: transparent;
}

.top-plan__lead{
  margin: 0 auto 30px;
  text-align: center;
}

.top-plan__box{
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.top-plan__text {
    height: 100%;
}

img.top-plan__img {
    object-fit: cover;
    width: 100%;
}

.top-plan__items {
    padding: 30px;
}

.top-plan__price{
  padding: 28px 20px;
  background: linear-gradient(180deg, var(--main-05purple) 0%, #ffffff 100%);
  text-align: center;
  height: auto;
}

.top-plan__price-label{
  margin: 0 0 8px;
  color: var(--color-text-light);
  font-size: 14px;
}

.top-plan__price-main{
  margin: 0;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.2;
  color: var(--main-purple);
  font-weight: 800;
}

.top-plan__price-main span{
  font-size: .45em;
  font-weight: 600;
}

.top-plan__price-sub{
  margin: 8px 0 0;
  font-weight: 700;
  color: var(--color-text);
}

.top-plan__items h3{
  margin: 0 0 16px;
  font-size: 27px;
  color: var(--main-purple);
  line-height: 1.5;
  font-weight: bold;
}

.top-plan__items ul{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-plan__items li{
  position: relative;
  padding-left: 20px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: bold;
  background-color: var(--main-05purple);
  padding: 10px;
  border-bottom: 0.5px solid var(--main-70purple);
}

.top-plan__items li::before{
  /* content: "・"; */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--main-purple);
  font-weight: 700;
}

.top-plan__note{
  margin: 20px 0 0;
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
}

.top-plan__link{
  margin-top: 28px;
  text-align: center;
}

/* ----------------------------------------------------------------
   流れ：セクション全体
---------------------------------------------------------------- */
.top-flow {
  padding: 80px 20px;
  background: #fff;
}

.top-flow__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 50px; /* PCは少し狭めて5つ収める */
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 1100px;
}

.top-flow__item {
  position: relative;
  text-align: center;
  border: 0.5px solid var(--main-purple);
}

/* ステップ間の大きな矢印（PC） */
.top-flow__item:not(:last-child)::after {
content: "▶";
    position: absolute;
    top: 50%;
    right: -35px;
    font-size: 20px;
    color: var(--main-purple);
    font-weight: bold;
    z-index: 10;
}

.top-flow__img {
  margin-bottom: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.top-flow__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.top-flow__item:hover .top-flow__img img {
  transform: scale(1.05);
}

/* 数字とタイトルをまとめる */
.top-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.top-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  color: var(--main-purple);
  font-size: 16px;
  font-weight: 700;
  background: var(
  --main-20purple);
}

.top-flow__step h3 {
  margin: 0;
  font-size: 18px; /* 5枚並びなので少し小さめに調整 */
  color: #333;
  font-weight: bold;
  line-height: 1.4;
  padding: 10px;
}

/* ----------------------------------------------------------------
   レスポンシブ
---------------------------------------------------------------- */

/* タブレット：1024px以下 */
@media (max-width: 1024px) {
  .top-flow__list {
    gap: 30px;
  }
  .top-flow__item:not(:last-child)::after {
    font-size: 20px;
    right: -25px;
  }
  .top-flow__step h3 {
    font-size: 14px;
  }
}

/* スマホ：767px以下 */
@media (max-width: 767px) {
  .top-flow__list {
    grid-template-columns: 1fr; /* 縦1列に */
    gap: 40px;
  }

  .top-flow__item {
    display: flex; /* 横に並べる */
    align-items: center;
    gap: 20px;
    text-align: left;
  }

  /* ステップ間の矢印（スマホ：下向き） */
  .top-flow__item:not(:last-child)::after {
    content: "▼";
    top: auto;
    bottom: -35px;
    left: calc(50% - 20px); /* 画像の中心あたり */
    right: auto;
    font-size: 24px;
  }

  .top-flow__img {
    flex: 0 0 100px; /* 画像の幅を固定 */
    margin-bottom: 0;
  }

  .top-flow__step {
    flex-direction: row; /* 数字と文字を横に */
    align-items: center;
    gap: 12px;
    width: 100%;
    display: grid;
    grid-template-columns: 50px 1fr;
  }

  .top-flow__step h3 {
    font-size: 18px;
    padding: 0;
  }


  .top-plan__items {
    padding: 30px 0;
  }

  .top-plan__items h3 {
    font-size: 22px;
  }
}
/* ----------------------------------------------------------------
   ヘッダー・フッターとのつながり調整
---------------------------------------------------------------- */
/* 直前のheroや上セクションとの間が空きすぎる場合に使う */
.funeral-top > section:first-child .section-heading{
  margin-top: 0;
}

/* 最後のセクションとフッターの間を自然に */
.funeral-top > section:last-child{
  margin-bottom: 0;
}

/* ----------------------------------------------------------------
   レスポンシブ
---------------------------------------------------------------- */
@media (max-width: 1024px){
  .top-plan__box{
    grid-template-columns: 1fr;
  }

}

@media (max-width: 767px){
  .top-plan,
  .top-flow{
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-plan{
    padding-top: 24px;
    padding-bottom: 50px;
  }

  .top-plan__box{
    padding: 20px;
  }

  .top-plan__items ul{
    grid-template-columns: 1fr;
  }
}
/*----------------------------------------------------------------
front-page.php 安心ポイントセクション
----------------------------------------------------------------*/

/* 安心ポイントセクション */
.fureai-points {
    background: #fff;
    padding: 80px 0px !important;
    font-family: "Noto Serif JP", serif;
}

.fureai-points__inner {
    /* max-width: 1000px; */
    margin: 0 auto;
    padding: 0;
}

.fureai-points__title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.fureai-points__title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--main-purple);
    margin: 15px auto 0;
}

/* 各アイテムの並び */
.fureai-points__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.fureai-point-item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 番号バッジ */
.fureai-point-item__number {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--main-purple);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
}

/* 画像エリア */
.fureai-point-item__image {
    flex: 0 0 30%;
    max-width: 250px;
    aspect-ratio: 4 / 3;
}

.fureai-point-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* テキストエリア */
.fureai-point-item__body {
    flex: 1;
    padding: 25px 40px;
}

.fureai-point-item__title {
    font-size: 1.4rem;
    color: var(--main-purple);
    margin-bottom: 10px;
    font-weight: bold;
}

.fureai-point-item__text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .fureai-point-item {
        flex-direction: column;
    }
    .fureai-point-item__image {
        max-width: 100%;
        width: 100%;
    }
    .fureai-point-item__body {
        padding: 20px;
    }
    .fureai-point-item__title {
        font-size: 1.2rem;
    }
}


/*----------------------------------------------------------------
front-page.php FAQ
----------------------------------------------------------------*/
.fureai-faq {
  padding: 80px 20px;
}

.fureai-faq__inner {
  width: min(100%, 960px);
  margin: 0 auto;
}

.fureai-faq__heading {
  text-align: center;
  margin-bottom: 40px;
}

.fureai-faq__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
}

.fureai-faq__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #6b7280;
}

.fureai-faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fureai-faq__item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.fureai-faq__question {
  width: 100%;
  padding: 24px 28px;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.fureai-faq__question:hover {
  background: var(--main-20purple);
}

.fureai-faq__question-label {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--main-purple);
}

.fureai-faq__question-text {
  flex: 1 1 auto;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: #1f2937;
  padding-right: 40px;
}

.fureai-faq__icon {
  position: absolute;
  right: 28px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s ease;
}

.fureai-faq__question.is-open .fureai-faq__icon {
  transform: translateY(-30%) rotate(-135deg);
}

.fureai-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.fureai-faq__answer.is-open {
  grid-template-rows: 1fr;
}

.fureai-faq__answer-inner {
  overflow: hidden;
  border-top: 1px solid #e5e7eb;
  padding: 0 28px;
}

.fureai-faq__answer.is-open .fureai-faq__answer-inner {
  padding-top: 20px;
  padding-bottom: 24px;
}

.fureai-faq__answer-inner p {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: #4b5563;
}

@media (max-width: 767px) {
  .fureai-faq {
    padding: 64px 20px;
  }

  .fureai-faq__heading {
    margin-bottom: 32px;
  }

  .fureai-faq__question {
    padding: 20px 20px;
    align-items: flex-start;
  }

  .fureai-faq__question-text {
    font-size: 17px;
    line-height: 1.7;
    padding-right: 36px;
  }

  .fureai-faq__icon {
    right: 20px;
    width: 12px;
    height: 12px;
  }

  .fureai-faq__answer-inner {
    padding: 0 20px;
  }

  .fureai-faq__answer-inner p {
    font-size: 14px;
    line-height: 1.9;
  }
}