/* =========================================================
   One-day Funeral
   /kind/ichinichiso/
========================================================= */

.kind-detail--one-day {
  --kind-accent: #6f6550;
  --kind-accent-dark: #514936;
  --kind-accent-pale: #f6f3ed;
}


/* HERO
--------------------------------------------------------- */

.kind-detail--one-day .one-day-hero {
  min-height: 500px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(
      90deg,
      rgba(255,255,255,.98) 0%,
      rgba(255,255,255,.92) 40%,
      rgba(255,255,255,.42) 67%,
      rgba(255,255,255,.08) 100%
    ),
    url("/wp/wp-content/themes/ceremony/images/page/ichinichiso_hero_01_pc.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}


/* 一日葬 / 2日葬 比較
--------------------------------------------------------- */

.kind-detail--one-day .one-day-format-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.kind-detail--one-day .one-day-format-card {
  padding: 28px;
  background: #fff;
  border: 1px solid #e3dfd6;
  border-radius: 12px;
}

.kind-detail--one-day .one-day-format-card--accent {
  border-color: rgba(111, 101, 80, .32);
  background: var(--kind-accent-pale);
}

.kind-detail--one-day .one-day-format-card__label {
  margin: 0 0 6px;
  color: var(--kind-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.kind-detail--one-day .one-day-format-card__title {
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.5;
}

.kind-detail--one-day .one-day-format-card__flow {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.kind-detail--one-day .one-day-format-card__flow li {
  position: relative;
  padding: 12px 14px 12px 38px;
  background: #fff;
  border-radius: 8px;
}

.kind-detail--one-day .one-day-format-card__flow li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kind-accent);
  transform: translateY(-50%);
}

.kind-detail--one-day .one-day-format-card__flow li.is-main {
  font-weight: 700;
}


/* 選ばれる理由
--------------------------------------------------------- */

.kind-detail--one-day .one-day-reason-note {
  margin-top: 30px;
  padding: 22px 24px;
  border-left: 4px solid var(--kind-accent);
  background: #fff;
}

.kind-detail--one-day .one-day-reason-note p {
  margin: 0;
}

.kind-detail--one-day .one-day-reason-note p + p {
  margin-top: 8px;
}

.kind-detail--one-day .one-day-reason-note__title {
  font-weight: 700;
}


/* FLOW
--------------------------------------------------------- */

.kind-detail--one-day .one-day-flow-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.kind-detail--one-day .one-day-flow-group {
  padding: 28px;
  border: 1px solid #e4e0d8;
  border-radius: 12px;
  background: #fff;
}

.kind-detail--one-day .one-day-flow-group--accent {
  background: var(--kind-accent-pale);
  border-color: rgba(111, 101, 80, .22);
}

.kind-detail--one-day .one-day-flow-group__header {
  margin-bottom: 24px;
}

.kind-detail--one-day .one-day-flow-group__header h3 {
  margin: 7px 0 0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.5;
}

.kind-detail--one-day .one-day-flow-group__step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--kind-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/*
 * 一日葬の流れは共通 .kind-flow__list を併用しない。
 * circle と縦線を同じ軸（--one-day-flow-axis）で描画し、
 * PC/SPともズレないようにする。
 */
.kind-detail--one-day .one-day-flow-list {
  --one-day-flow-axis: 7px;

  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kind-detail--one-day .one-day-flow-list > li {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 14px 14px 14px 32px;
  border: 0;
  border-radius: 0;
  background: rgba(248, 247, 244, .78);
  box-shadow: none;
}

/* circle */
.kind-detail--one-day .one-day-flow-list > li::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: var(--one-day-flow-axis);
  top: 23px;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  border: 2px solid var(--kind-accent);
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

/* vertical line */
.kind-detail--one-day .one-day-flow-list > li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: var(--one-day-flow-axis);
  top: 27px;
  bottom: -18px;
  width: 1px;
  background: rgba(111, 101, 80, .28);
  transform: translateX(-50%);
}

.kind-detail--one-day .one-day-flow-list strong {
  display: block;
  margin: 0 0 4px;
  color: #20201d;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

.kind-detail--one-day .one-day-flow-list span {
  display: block;
  margin: 0;
  color: #5f5f5a;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
}


/* 比較表
--------------------------------------------------------- */

.kind-detail--one-day .one-day-comparison-table-wrap {
  margin-top: 38px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.kind-detail--one-day .one-day-comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: #fff;
}

.kind-detail--one-day .one-day-comparison-table th,
.kind-detail--one-day .one-day-comparison-table td {
  padding: 17px 18px;
  border-bottom: 1px solid #e4e0d8;
  text-align: left;
  vertical-align: middle;
  line-height: 1.7;
}

.kind-detail--one-day .one-day-comparison-table thead th {
  background: var(--kind-accent-pale);
  color: var(--kind-accent-dark);
  font-weight: 700;
}

.kind-detail--one-day .one-day-comparison-table tbody th {
  width: 22%;
  font-weight: 700;
}


/* 見積もり
--------------------------------------------------------- */

.kind-detail--one-day .one-day-estimate-list {
  display: grid;
  gap: 42px;
  margin-top: 42px;
}


/* SP
--------------------------------------------------------- */

@media screen and (max-width: 767px) {

  .kind-detail--one-day .one-day-hero {
    min-height: auto;
    padding-top: 68vw;
    align-items: flex-end;
    background-image:
      linear-gradient(
        180deg,
        rgba(255,255,255,0) 30%,
        rgba(255,255,255,.88) 62%,
        #fff 82%
      ),
      url("/wp/wp-content/themes/ceremony/images/page/ichinichiso_hero_01_sp.webp");
    background-position: center top;
    background-size: 100% auto;
  }

  .kind-detail--one-day .one-day-format-compare,
  .kind-detail--one-day .one-day-flow-groups {
    grid-template-columns: 1fr;
  }

  .kind-detail--one-day .one-day-format-card,
  .kind-detail--one-day .one-day-flow-group {
    padding: 22px 18px;
  }

  .kind-detail--one-day .one-day-reason-note {
    padding: 18px;
  }

  .kind-detail--one-day .one-day-flow-list {
    gap: 12px;
  }

  .kind-detail--one-day .one-day-flow-list > li {
    padding: 13px 12px 13px 30px;
  }

  .kind-detail--one-day .one-day-flow-list > li::before {
    top: 22px;
  }

  .kind-detail--one-day .one-day-flow-list > li:not(:last-child)::after {
    top: 26px;
    bottom: -16px;
  }
}
