@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)
}

body.home .front-page-main {
  order: 0;
  width: 100%;
}

body.home .site-footer {
  order: 1;
  width: 100%;
}

.hover-up {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.hover-up:hover {
transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

/* ----------------------------------------------------------------
   共通
---------------------------------------------------------------- */
: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.25);
  --radius: 16px;
}

.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);
}

/* ----------------------------------------------------------------
   top-features 選ばれる理由
---------------------------------------------------------------- */
.top-features {
  position: relative;
  overflow: hidden;
  padding: 120px 0px 100px;
  background: #fff;
}

.top-features::before,
.top-features::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 120%;
  height: 180px;
  background: linear-gradient(90deg, rgba(215, 238, 199, .55), rgba(255,255,255,.4));
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.top-features::before {
  top: -95px;
}

.top-features::after {
  bottom: -110px;
  border-radius: 50% 50% 0 0;
}

.top-features__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.top-features__heading {
  text-align: center;
  margin-bottom: 64px;
}

.top-features__heading span {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .16em;
}

.top-features__heading span::before,
.top-features__heading span::after {
  content: "";
  width: 52px;
  height: 1px;
  background: var(--green);
}

.top-features__heading h2 {
  margin: 0 0 28px;
  color: #202020;
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: .06em;
}

.top-features__heading h2 em {
  color: var(--green);
  font-style: normal;
}

.top-features__heading p {
  margin: 0;
  color: #222;
  font-size: 18px;
  line-height: 2;
  font-weight: 500;
}

.top-features__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.top-features__card {
  position: relative;
  padding: 16px 16px 26px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(0, 0, 0, .08);
  text-align: center;
}

.top-features__icon {
  position: absolute;
  top: -48px;
  left: 50%;
  width: 96px;
  height: 96px;
  padding: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #63a532);
  border: 5px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  transform: translateX(-50%);
  z-index: 2;
  font-size: 36px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    color: #fff;
}

.top-features__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-features__image {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 26px;
  aspect-ratio: 16 / 8.6;
}

.top-features__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-features__card h3 {
  margin: 0;
  padding-bottom: 22px;
  color: var(--green);
  font-size: 25px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--green);
}

.top-features__card p {
  min-height: 136px;
  margin: 28px 0 24px;
  color: #222;
  font-size: 16px;
  line-height: 2.05;
  font-weight: 500;
}

.top-features__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f2f9ed, #eef7e8);
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
}

.top-features__note strong {
  font-size: 22px;
  line-height: 1;
}

.top-features__note small {
  font-size: 13px;
}

.top-features__note-icon {
  font-size: 26px;
  display: none;
}

.top-features__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 64px;
    padding: 12px;
    border-radius: 10px;
    background: var(--green);
    color: #eef7e8;
    font-size: 16px;
    font-weight: 700;
    max-width: 550px;
    margin: 40px auto 20px auto;
    text-decoration: none;
}

.top-features__caption {
  margin: 24px 0 0;
  color: #222;
  font-size: 13px;
}

/* tablet */
@media screen and (max-width: 1024px) {
  .top-features {
    padding: 70px 20px 44px;
  }

  .top-features__cards {
    grid-template-columns: 1fr;
    gap: 72px;
    max-width: 620px;
    margin: 0 auto;
  }

  .top-features__card p {
    min-height: auto;
  }
}

/* sp */
@media screen and (max-width: 767px) {
  .top-features {
    padding: 56px 16px 40px;
  }

  .top-features__heading {
    margin-bottom: 56px;
  }

  .top-features__heading span {
    gap: 18px;
    font-size: 18px;
  }

  .top-features__heading span::before,
  .top-features__heading span::after {
    width: 32px;
  }

  .top-features__heading p {
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
  }

  .top-features__heading p br {
    display: none;
  }

  .top-features__card {
    padding: 14px 14px 22px;
  }

  .top-features__icon {
            top: -42px;
        width: 84px;
        height: 84px;
        padding: 16px;
        font-size: 30px;
  }

  .top-features__card h3 {
    font-size: 21px;
  }

  .top-features__card p {
    font-size: 15px;
  }

  .top-features__card p br {
    display: none;
  }

  .top-features__note {
    font-size: 15px;
  }

  .top-features__note strong {
    font-size: 25px;
  }
}
/* ----------------------------------------------------------------
   流れ：セクション全体
---------------------------------------------------------------- */
.vg-aboutLink {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 72px 4vw 64px;
  background: #f7f8f6;
}

.vg-aboutLink__bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.vg-aboutLink__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vg-aboutLink__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0.98) 0%,
    rgba(255,255,255,0.92) 34%,
    rgba(255,255,255,0.35) 58%,
    rgba(255,255,255,0.05) 100%
  );
  z-index: 1;
}

.vg-aboutLink__slash {
  position: absolute;
  top: -10%;
  left: 38%;
  width: 160px;
  height: 125%;
  background: rgba(34, 112, 45, 0.18);
  transform: skewX(-30deg);
  z-index: 2;
}

.vg-aboutLink__inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
}

.vg-aboutLink__head {
  max-width: 600px;
}

.vg-aboutLink__en {
  margin: 0 0 22px;
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.vg-aboutLink__title {
  margin: 0 0 32px;
  color: #1f1f1f;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.vg-aboutLink__lead {
  position: relative;
  margin: 0;
  padding-left: 28px;
  color: #222;
  font-size: 17px;
  line-height: 2.1;
  letter-spacing: 0.08em;
}

.vg-aboutLink__lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 2px;
  height: 72px;
  background: var(--green);
}

.vg-aboutLink__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 92px;
}

.vg-aboutLink__card {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  min-height: 118px;
  padding: 24px 20px;
  color: #1f1f1f;
  text-decoration: none;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.vg-aboutLink__card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

.vg-aboutLink__icon {
  color: var(--green);
  font-size: 40px;
  line-height: 1;
}

.vg-aboutLink__card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.vg-aboutLink__card small {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.vg-aboutLink__card span.small {
  /* display: block; */
  font-size: 10px;
  color: #000;
}

.vg-aboutLink__card i {
  color: var(--green);
  font-size: 28px;
  font-style: normal;
  text-align: right;
}

@media screen and (max-width: 1200px) {
  .vg-aboutLink__cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 64px;
  }

  .vg-aboutLink__bg {
    width: 70%;
  }
}

@media screen and (max-width: 767px) {
  .vg-aboutLink {
    min-height: auto;
    padding: 56px 20px;
  }

  .vg-aboutLink__bg {
    width: 100%;
    opacity: 0.28;
  }

  .vg-aboutLink__overlay {
    background: rgba(255,255,255,0.88);
  }

  .vg-aboutLink__slash {
    left: 62%;
    width: 90px;
  }

  .vg-aboutLink__en {
    margin: 0 0 12px;
  }

  .vg-aboutLink__lead br {
    display: none;
  }

  .vg-aboutLink__cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 42px;
  }

  .vg-aboutLink__card {
    min-height: 96px;
    grid-template-columns: 44px 1fr 24px;
    padding: 20px 18px;
  }

  .vg-aboutLink__card strong {
    font-size: 17px;
  }
}

/* ----------------------------------------------------------------
   ヘッダー・フッターとのつながり調整
---------------------------------------------------------------- */
/* 直前の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: 60px 0 60px 0;
    position: relative;
    z-index: 10;
    margin: 0 auto;
    border-top: 1px solid var(--green);
}

.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: var(--green);
}

.top-news__text {
  flex: 1;
}

@media (max-width: 767px) {
  .top-news__link {
    flex-direction: column;
    gap: 8px;
  }

  .top-news__date {
    flex: none;
  }
}
