@charset "utf-8";

/* =========================
   直葬とはページ（紫テーマ）
========================= */
#page-service {
    --service-main: rgb(88, 5, 133);
    --service-main-light: #a86ccf;
    --service-main-soft: #f6f0fb;
    --service-border: #e5d8f1;
    --service-text: #2e2e2e;
    --service-muted: #666;
}

/* セクション */
#page-service section {
    padding: 80px 0;
}

#page-service .fureai-container {}

/* 見出し */
#page-service .section-heading {
    margin-bottom: 36px;
    text-align: center;
}

#page-service .fureai-section-title {}

#page-service .fureai-section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--service-main), var(--service-main-light));
    transform: translateX(-50%);
    border-radius: 999px;
}

/* -------------------------
   直葬とは
------------------------- */
#page-service .service-intro {
    background: linear-gradient(180deg, #fff 0%, var(--service-main-soft) 100%);
}

.service-intro__box {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    width: 100%;
}

.service-intro__box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-intro__text {
    font-size: 16px;
    line-height: 2;
}

.service-intro__text p:last-child {
    margin-bottom: 0;
}

#page-service .service-intro__text span {
    background: linear-gradient(transparent 65%, rgba(168, 108, 207, 0.25) 65%);
    font-weight: 700;
}

/* フロー枠 */
#page-service .service-intro__chart {
    margin-top: 60px;
    padding: 30px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(88, 5, 133, 0.08);
}

#page-service .service-intro__chart-title {
    /* text-align: center; */
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--service-main);
}

/* フロー */
#page-service .service-flow {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border: 1px solid #aaa;
}

#page-service .service-flow__item {
    background: var(--main-05purple);
    border-right: 1px solid #aaa;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

#page-service .service-flow__item:last-child {
    border-right: none;
}

#page-service .service-flow__label {
    writing-mode: vertical-rl;
    font-size: 28px;
    font-weight: 700;
    color: var(--service-main);
}

/* 斜線（省略） */
#page-service .service-flow__item--diag {
    background:
        linear-gradient(to top right, transparent 49%, #aaa 50%, transparent 51%),
        #f3f3f3;
}

#page-service .service-flow__item--diag .service-flow__label {
    color: #000;
    font-size: 26px;
}

/* -------------------------
   メリット
------------------------- */
#page-service .service-merit {
    background: #fff;
}

#page-service .service-merit__inner>p {
    font-size: 16px;
    line-height: 2;
}

/* カード */
#page-service .service-merit__list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

#page-service .service-merit__item {
    padding: 22px 16px;
    background: linear-gradient(180deg, #fff, #f9f4fc);
    border: 1px solid var(--service-border);
    text-align: center;
    box-shadow: 0 8px 20px rgba(88, 5, 133, 0.08);
}

#page-service .service-merit__num {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--service-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

#page-service .service-merit__label {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
}

/* 補足ボックス */
#page-service .service-merit__lead {
    margin-top: 30px;
    padding: 20px;
    background: var(--service-main-soft);
    border-left: 4px solid var(--service-main);
}

/* -------------------------
   レスポンシブ
------------------------- */
@media (max-width: 1024px) {
    #page-service .service-flow {
        grid-template-columns: repeat(4, 1fr);
    }

    #page-service .service-merit__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #page-service section {
        padding: 60px 0;
    }

    .service-intro__box {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
    }

    .service-intro__box img {
        height: 250px;
        object-fit: cover;
        order: 1;
    }

    .service-intro__box .service-intro__text {
        order: 2;
    }

    #page-service .service-flow {
        grid-template-columns: repeat(8, 1fr);
    }

    #page-service .service-merit__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #page-service .service-merit__list {
        grid-template-columns: 1fr;
    }

    #page-service .service-flow {
        grid-template-columns: 1fr;
    }

    #page-service .service-flow__label {
        writing-mode: horizontal-tb;
    }

    #page-service .service-flow__item {
        min-height: 30px;
        border-right: none;
        border-bottom: 0.5px solid
    }

    #page-service .service-flow__item:last-child {
        border-bottom: none;
    }
}







.small-category-block {
  margin-top: 32px;
}

.small-category-block.is-hidden {
  display: none;
}

.small-category-detail {
  border: 1px solid #d9dfe8;
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.small-category-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.small-category-head__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.small-category-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
}

.small-category-lead {
  margin-bottom: 24px;
  line-height: 1.9;
  font-size: 16px;
}

.small-category-detail__top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.small-category-detail__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.small-category-detail__meta .info-grid,
.product-item-card__info .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  background: #fafbfd;
}

.info-box h5 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.info-text {
  margin: 0;
  line-height: 1.9;
  white-space: pre-line;
}

.small-category-products {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.product-item-card {
  border: 1px solid #d9dfe8;
  border-radius: 18px;
  padding: 22px;
  background: #fff;
}

.product-item-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.product-item-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef3f8;
  font-size: 14px;
  font-weight: 700;
}

.product-chip--type {
  background: #f4f6fa;
}

.product-item-card__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  flex: 1 1 auto;
}

.product-item-card__body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-bottom: 18px;
  align-items: start;
}

.product-item-card__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

.tds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1f3b73;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.tds-button:hover {
  color: #fff;
  opacity: 0.9;
}

.tds-button--sm {
  min-width: auto;
  padding: 8px 14px;
  font-size: 14px;
}

.spec-toggle-btn {
  appearance: none;
  border: 1px solid #cfd6df;
  background: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
}

.spec-toggle-btn:hover {
  background: #f7f9fc;
}

.spec-content {
  display: none;
  margin-top: 16px;
}

.spec-content.is-open {
  display: block;
}

.spec-table-container {
  border: 1px solid #dde3ea;
  border-radius: 16px;
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.spec-row:not(:last-child) {
  border-bottom: 1px solid #e8edf3;
}

.spec-label,
.spec-value {
  padding: 14px 16px;
}

.spec-label {
  background: #f6f8fb;
  font-weight: 700;
}

.spec-value {
  background: #fff;
}

@media (max-width: 991px) {
  .small-category-detail__top,
  .product-item-card__body,
  .small-category-detail__meta .info-grid,
  .product-item-card__info .info-grid,
  .spec-row {
    grid-template-columns: 1fr;
  }

  .small-category-title {
    font-size: 26px;
  }

  .product-item-card__title {
    font-size: 22px;
  }

  .small-category-detail,
  .product-item-card {
    padding: 20px;
  }
}