@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: #5F6F7A;
  --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-products
---------------------------------------------------------------- */
.top-products {
  /* background: #f8f8f7; */
  padding: 72px 0 88px;
}

.top-products__main {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  align-items: center;
  background: #fff;
  min-height: 360px;
}

.top-products__text {
  padding: 56px 0 56px 48px;
}

.top-products__label {
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: .16em;
  color: #89a2b7;
}

.top-products__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.12;
  letter-spacing: .03em;
  color: #C5D8E5;
  font-weight: 500;
}

.top-products__title span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .5em;
  color: #222;
}

.top-products__lead {
  margin: 0 0 22px;
  font-size: 16px;
  letter-spacing: .12em;
  color: #222;
}

.top-products__desc {
  max-width: 420px;
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: .08em;
  color: #333;
}

.top-products__link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid #222;
  font-size: 13px;
  letter-spacing: .12em;
  color: #222;
  text-decoration: none;
}

.top-products__link span {
  width: 34px;
  height: 1px;
  background: #222;
  position: relative;
}

.top-products__link span::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid #222;
  border-right: 1px solid #222;
  transform: rotate(45deg);
}

.top-products__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
}

.top-products__gallery {
  width: min(1180px, 92%);
  margin: 72px auto 0;
  text-align: center;
}

.top-products__gallery h3 {
  margin: 0 0 42px;
  font-size: 22px;
  letter-spacing: .08em;
  font-weight: 400;
  color: #111;
}

.top-products__gallery h3::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 18px auto 0;
  background: #9fb4c7;
}

.top-products__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.top-products__card {
  background: #eee;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.top-products__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .top-products {
    padding: 56px 0 64px;
  }

  .top-products__main {
    grid-template-columns: 1fr;
  }

  .top-products__text {
    padding: 40px 24px;
  }

  .top-products__image {
    order: -1;
  }

  .top-products__image img {
    height: auto;
  }

  .top-products__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .top-products__gallery {
    margin-top: 56px;
  }

  .top-products__gallery h3 {
    font-size: 18px;
  }
}

/* ----------------------------------------------------------------
   ブランドメッセージ
---------------------------------------------------------------- */
body.home,
body.home main {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.top-brand-message {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 24px;
  overflow: hidden;
  background: #fff;
  text-align: center;
}

.top-brand-message::before,
.top-brand-message::after {
  position: absolute;
  content: "";
  width: clamp(120px, 18vw, 280px);
  height: 1px;
  background: var(--theme);
  opacity: .7;
}

.top-brand-message::before {
  top: 38px;
  left: 0;
}

.top-brand-message::after {
  right: 0;
  bottom: 38px;
}

.top-brand-message__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 980px;
  margin: 0 auto;
}

.top-brand-message__title {
  margin: 0;
  color: #1f1f1f;
  font-size: clamp(25px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .08em;
}

.top-brand-message__title::after {
  display: block;
  width: 52px;
  height: 1px;
  margin: 28px auto 0;
  background: var(--theme-dark);
  content: "";
}

.top-brand-message__logo:not(:empty) {
  display: flex;
  justify-content: center;
  margin: 34px auto 0;
}

.top-brand-message__logo img {
  width: auto;
  max-width: min(220px, 60vw);
  max-height: 88px;
  object-fit: contain;
}

.top-brand-message__body {
  margin-top: 34px;
  color: #333;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2.15;
  letter-spacing: .06em;
}

.top-brand-message__logo:not(:empty) + .top-brand-message__body {
  margin-top: 28px;
}

.top-brand-message__body p,.top-brand-message__body h1 {
  margin: 0;
}

.top-brand-message__body p + p {
  margin-top: 22px;
}

.top-brand-message__body strong {
  color: var(--theme-dark);
  font-size: 1.12em;
  font-weight: 700;
}

@media (max-width: 767px) {
  .top-brand-message {
    padding: 64px 20px 68px;
  }

  .top-brand-message::before,
  .top-brand-message::after {
    width: 72px;
  }

  .top-brand-message::before {
    top: 26px;
  }

  .top-brand-message::after {
    bottom: 26px;
  }

  .top-brand-message__title {
    max-width: 100%;
    font-size: 24px;
    letter-spacing: .05em;
    overflow-wrap: anywhere;
  }

  .top-brand-message__title::after {
    margin-top: 22px;
  }

  .top-brand-message__body {
    width: 100%;
    max-width: 100%;
    margin-top: 28px;
    line-height: 2;
    letter-spacing: .03em;
    overflow-wrap: anywhere;
  }

  .top-brand-message__body br {
    display: none;
  }
}

/* ----------------------------------------------------------------
   流れ：セクション全体
---------------------------------------------------------------- */
.as-aboutLink {
  position: relative;
  overflow: hidden;
  /* min-height: 560px; */
  padding: 72px 4vw 64px;
  background: #F8FBFD;
}

.as-aboutLink__bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.as-aboutLink__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.as-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;
}

.as-aboutLink__slash {
  position: absolute;
  top: -10%;
  left: 38%;
  width: 160px;
  height: 125%;
  background: rgba(197, 216, 229, 0.35);
  transform: skewX(-30deg);
  z-index: 2;
}

.as-aboutLink__inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
}

.as-aboutLink__head {
  max-width: 600px;
}

.as-aboutLink__en {
  margin: 0 0 22px;
  color: var(--theme);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.as-aboutLink__title {
  margin: 0 0 32px;
  color: #1f1f1f;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.as-aboutLink__lead {
  position: relative;
  margin: 0;
  /* padding-left: 28px; */
  color: #222;
  font-size: 17px;
  line-height: 2.1;
  letter-spacing: 0.08em;
}
/* 
.as-aboutLink__lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 2px;
  height: 72px;
  background: var(--theme);
} */

.as-aboutLink__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 92px;
}

.as-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;
}

.as-aboutLink__card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

.as-aboutLink__icon {
  color: var(--theme);
  font-size: 40px;
  line-height: 1;
}

.as-aboutLink__card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.as-aboutLink__card small {
  display: block;
  color: var(--theme);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.as-aboutLink__card span.small {
  /* display: block; */
  font-size: 10px;
  color: #000;
}

.as-aboutLink__card i {
  color: var(--theme);
  font-size: 28px;
  font-style: normal;
  text-align: right;
}

@media screen and (max-width: 1200px) {
  .as-aboutLink__cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 64px;
  }

  .as-aboutLink__bg {
    width: 70%;
  }
}

@media screen and (max-width: 767px) {
  .as-aboutLink {
    min-height: auto;
    padding: 0 20px 56px;
  }

  .as-aboutLink__bg {
    position: relative;
    inset: auto;
    width: calc(100% + 40px);
    height: auto;
    margin: 0 -20px 34px;
    opacity: 1;
  }

  .as-aboutLink__bg img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: center;
  }

  .as-aboutLink__overlay {
    display: none;
  }

  .as-aboutLink__slash {
    left: 62%;
    width: 90px;
  }

  .as-aboutLink__en {
    margin: 0 0 12px;
  }

  .as-aboutLink__lead br {
    display: none;
  }

  .as-aboutLink__cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 42px;
  }

  .as-aboutLink__card {
    min-height: 96px;
    grid-template-columns: 44px 1fr 24px;
    padding: 20px 18px;
  }

  .as-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: 20px 0 20px 0;
  position: relative;
  z-index: 10;
  margin: 0 auto;
  /* border-top: 1px solid var(--theme); */
  border-bottom: 1px solid var(--theme);
}

.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(--theme);
}

.top-news__text {
  flex: 1;
}

@media (max-width: 767px) {
  .top-news__link {
    flex-direction: column;
    gap: 8px;
  }

  .top-news__date {
    flex: none;
  }
}
