@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;
}

/* ----------------------------------------------------------------
   introduction
---------------------------------------------------------------- */
.about__inner.kyoei-container {
    max-width: 800px !important;
}

/* ----------------------------------------------------------------
   流れ：セクション全体
---------------------------------------------------------------- */
.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 news
---------------------------------------------------------------- */
.top-news {
  padding: 0 0 60px 0;
  position: relative;
  z-index: 10;
  margin: 0 auto;
  background-color: #f2f2f2;
}

.top-news__head {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.top-news__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.4;
}

.top-news__archive {
  text-decoration: none;
}

.top-news__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-news__item {
  border-bottom: 0.5px solid #ddd;
}

.top-news__link {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
}

.top-news__date {
  flex: 0 0 110px;
  color: red;
}

.top-news__text {
  flex: 1;
}

@media (max-width: 767px) {
  .top-news__link {
    flex-direction: column;
    gap: 8px;
  }

  .top-news__date {
    flex: none;
  }
}