/* =========================================================
   Kind Detail Common UI
   葬儀の種類ページで共通利用する汎用UI
========================================================= */

.kind-detail {
  --kind-accent: var(--ceremo-green, #007c3f);
  --kind-accent-dark: #005f31;
  --kind-accent-pale: #eef7f2;
  --kind-bg: #f7f7f4;
  --kind-line: #dedfdc;
  --kind-text: #222;
  --kind-muted: #666;

  color: var(--kind-text);
  font-size: 16px;
  line-height: 1.8;
}

.kind-detail *,
.kind-detail *::before,
.kind-detail *::after {
  box-sizing: border-box;
}

.kind-detail img {
  display: block;
  max-width: 100%;
  height: auto;
}

.kind-inner {
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
}


/* Hero */

.kind-hero {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.kind-hero .kind-inner {
  padding-top: 58px;
  padding-bottom: 58px;
}

.kind-hero__eyebrow,
.kind-section__eyebrow {
  margin: 0 0 8px;
  color: var(--kind-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.kind-hero__title {
  max-width: 680px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.42;
}

.kind-hero__lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.9;
}

.kind-hero__text {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--kind-muted);
  font-size: 14px;
}


/* Sections */

.kind-section {
  padding: 76px 0;
}

.kind-section--muted {
  background: var(--kind-bg);
}

.kind-section__header {
  max-width: 790px;
  margin: 0 0 38px;
}

.kind-section__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.45;
}

.kind-section__lead {
  margin: 16px 0 0;
  color: var(--kind-muted);
  font-size: 15px;
  line-height: 1.9;
}

.kind-section__note {
  margin: 20px 0 0;
  color: var(--kind-muted);
  font-size: 13px;
}


/* Cards */

.kind-card-grid {
  display: grid;
  gap: 22px;
}

.kind-card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kind-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kind-card-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.kind-card {
  min-width: 0;
  padding: 27px 25px;
  background: #fff;
}

.kind-card__number {
  display: block;
  margin-bottom: 9px;
  color: var(--kind-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.kind-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.kind-card__text {
  margin: 11px 0 0;
  color: var(--kind-muted);
  font-size: 14px;
  line-height: 1.85;
}

.kind-card--media {
  padding: 0;
  overflow: hidden;
  border-top: 0;
}

.kind-card__media {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #f4f4f2;
}

.kind-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kind-card__body {
  padding: 25px;
}


/* Note */

.kind-note {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--kind-accent-pale);
  border-left: 3px solid var(--kind-accent);
}

.kind-note p {
  margin: 0;
  font-size: 14px;
}


/* Flow comparison */

.kind-flow-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.kind-flow {
  padding: 28px;
  background: #fff;
  border-top: 2px solid #aaa;
}

.kind-flow--accent {
  border-top-color: var(--kind-accent);
}

.kind-flow__title {
  margin: 0 0 22px;
  font-size: 20px;
}

.kind-flow__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kind-flow__list li {
  position: relative;
  margin: 0;
  padding: 13px 16px;
  background: #f8f8f6;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.kind-flow__list li + li {
  margin-top: 26px;
}

.kind-flow__list li + li::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #777;
  border-bottom: 2px solid #777;
  transform: translateX(-50%) rotate(45deg);
}

.kind-flow__list .is-ceremony {
  background: #eeeeeb;
}

.kind-flow__list .is-farewell {
  background: var(--kind-accent-pale);
  color: var(--kind-accent-dark);
}


/* Links */

.kind-link-row {
  margin-top: 30px;
}

.kind-link-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--kind-accent);
  color: var(--kind-accent-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color .2s ease,
    color .2s ease;
}

.kind-link-button:hover {
  background: var(--kind-accent);
  color: #fff;
}


/* FAQ */

.kind-faq {
  border-top: 1px solid var(--kind-line);
}

.kind-faq-item {
  border-bottom: 1px solid var(--kind-line);
}

.kind-faq-item summary {
  position: relative;
  padding: 22px 52px 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  line-height: 1.65;
}

.kind-faq-item summary::-webkit-details-marker {
  display: none;
}

.kind-faq-item summary::before,
.kind-faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 14px;
  height: 1px;
  background: var(--kind-accent);
}

.kind-faq-item summary::after {
  transform: rotate(90deg);
  transition: transform .2s ease;
}

.kind-faq-item[open] summary::after {
  transform: rotate(0);
}

.kind-faq-item__answer {
  padding: 0 48px 22px 0;
}

.kind-faq-item__answer p {
  margin: 0;
  color: var(--kind-muted);
  font-size: 14px;
  line-height: 1.9;
}


/* Estimate list */

.kind-estimate-list > .ceremo-estimate-example + .ceremo-estimate-example {
  margin-top: 54px;
}


/* Master-driven plan cards */

.kind-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.kind-plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 26px;
  background: #fff;
  border-top: 2px solid var(--kaso-accent);
}

.kind-plan-card__label {
  display: block;
  margin-bottom: 6px;
  color: var(--kaso-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.kind-plan-card__title {
  margin: 0;
  color: var(--kaso-accent);
  font-size: 22px;
  line-height: 1.5;
}

.kind-plan-card__prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.kind-plan-price {
  margin: 0;
  padding: 14px;
  background: #f8f8f6;
}

.kind-plan-price__label {
  display: block;
  margin-bottom: 4px;
  color: var(--kind-muted);
  font-size: 12px;
}

.kind-plan-price strong {
  display: block;
  font-size: 20px;
  line-height: 1.4;
}

.kind-plan-price small {
  display: block;
  margin-top: 2px;
  color: var(--kind-muted);
  font-size: 11px;
}

.kind-plan-card__link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--kind-line);
  color: var(--kaso-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}


/* =========================================================
   Tablet
========================================================= */

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

  .kind-card-grid--3 {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   Smartphone
========================================================= */

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

  .kind-detail {
    font-size: 15px;
  }

  .kind-inner {
    width: min(100% - 32px, 1080px);
  }

  .kind-section {
    padding: 54px 0;
  }

  .kind-section__header {
    margin-bottom: 28px;
  }

  .kind-hero {
    min-height: 0;
  }

  .kind-hero .kind-inner {
    padding-top: 0;
    padding-bottom: 36px;
  }

  .kind-hero__title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .kind-hero__lead {
    margin-top: 18px;
    font-size: 15px;
  }

  .kind-card-grid--2,
  .kind-card-grid--auto,
  .kind-flow-compare,
  .kind-plan-grid {
    grid-template-columns: 1fr;
  }

  .kind-flow {
    padding: 22px 18px;
  }

  .kind-faq-item summary {
    padding: 19px 42px 19px 0;
  }

  .kind-faq-item__answer {
    padding-right: 0;
  }

  .kind-plan-card__prices {
    grid-template-columns: 1fr 1fr;
  }

}

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

  .kind-plan-card__prices {
    grid-template-columns: 1fr;
  }

}



/* =========================================================
   火葬式を選ぶ前に確認したいこと
========================================================= */

.kind-check-card {
  padding: 0;
  overflow: hidden;
}

.kind-check-card__media {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f3f0;
}

.kind-check-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kind-check-card__content {
  padding: 24px 20px 26px;
}


/* =========================================================
   Smartphone
========================================================= */

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

  .kind-check-card {
    position: relative;
    min-height: 150px;
    padding: 20px;
    overflow: visible;
  }

  /*
   * SPでは画像をカード全幅にせず、
   * 見出し右側のサムネイルとして配置
   */
  .kind-check-card__media {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 112px;
    aspect-ratio: 16 / 9;

    border-radius: 4px;
  }

  .kind-check-card__content {
    padding: 0;
  }

  .kind-check-card .kind-card__number {
    padding-right: 130px;
  }

  .kind-check-card .kind-card__title {
    min-height: 62px;
    padding-right: 130px;
  }

  .kind-check-card .kind-card__text {
    margin-top: 16px;
    padding-right: 0;
  }

}


/* かなり狭い端末 */

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

  .kind-check-card__media {
    right: 16px;
    width: 96px;
  }

  .kind-check-card {
    padding: 18px 16px;
  }

  .kind-check-card .kind-card__number,
  .kind-check-card .kind-card__title {
    padding-right: 110px;
  }

}




/* =========================================================
   Kind Detail Common UI - Comparison table
   kind-detail-common.css へ追加
========================================================= */

.kind-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.kind-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.kind-table th,
.kind-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--kind-line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.7;
}

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

.kind-table tbody th {
  width: 190px;
  font-weight: 700;
}

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

  .kind-table {
    min-width: 620px;
  }

  .kind-table th,
  .kind-table td {
    padding: 14px 15px;
    font-size: 13px;
  }

  .kind-table thead th:first-child,
  .kind-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
  }

  .kind-table thead th:first-child {
    background: var(--kind-accent-pale);
  }

}
