/* =========================================================
   葬儀費用 見積もり例
========================================================= */

.ceremo-estimate-example {
  --estimate-green: #007c3f;
  --estimate-green-dark: #005f31;
  --estimate-green-light: #f2f8f4;
  --estimate-text: #222;
  --estimate-sub: #666;
  --estimate-line: #dedfdc;
  width: min(100%, 980px);
  margin: 56px auto;
  color: var(--estimate-text);
  font-size: 16px;
  line-height: 1.8;
}

.ceremo-estimate-example * { box-sizing: border-box; }

.ceremo-estimate-example__header {
  margin-bottom: 30px;
  text-align: center;
}

.ceremo-estimate-example__eyebrow {
  margin: 0 0 8px;
  color: var(--estimate-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

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

.ceremo-estimate-example__subtitle {
  margin: 8px 0 0;
  color: var(--estimate-sub);
  font-size: 15px;
}

.ceremo-estimate-example__venue {
  display: inline-block;
  margin: 14px 0 0;
  padding: 5px 14px;
  background: var(--estimate-green-light);
  color: #444;
  font-size: 14px;
}

.ceremo-estimate-example__venue strong { color: var(--estimate-green); }

.ceremo-estimate-example__accordions {
  display: grid;
  gap: 12px;
}

.ceremo-estimate-accordion {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--estimate-line);
  border-radius: 8px;
}

.ceremo-estimate-accordion__summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.ceremo-estimate-accordion__summary::-webkit-details-marker { display: none; }

.ceremo-estimate-accordion__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #fff;
  background: var(--estimate-green);
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ceremo-estimate-accordion__heading { min-width: 0; }

.ceremo-estimate-accordion__title {
  display: block;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}

.ceremo-estimate-accordion__heading small {
  display: block;
  margin-top: 2px;
  color: var(--estimate-sub);
  font-size: 12px;
  font-weight: 400;
}

.ceremo-estimate-accordion__summary-total {
  color: var(--estimate-green);
  font-size: 16px;
  white-space: nowrap;
}

.ceremo-estimate-accordion__action { justify-self: end; }

.ceremo-estimate-accordion__action-closed,
.ceremo-estimate-accordion__action-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--estimate-green);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
}

.ceremo-estimate-accordion__action-open { display: none; }
.ceremo-estimate-accordion[open] .ceremo-estimate-accordion__action-closed { display: none; }
.ceremo-estimate-accordion[open] .ceremo-estimate-accordion__action-open { display: inline-flex; }

.ceremo-estimate-accordion__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--estimate-green-dark);
  border-radius: 50%;
  font-size: 20px;
  
  line-height: 1;
  font-weight: 400;
}

.ceremo-estimate-accordion__summary:focus-visible {
  outline: 3px solid rgba(0, 124, 63, .25);
  outline-offset: -3px;
}

@media (hover: hover) {
  .ceremo-estimate-accordion__summary:hover { background: #fbfdfb; }
}

.ceremo-estimate-accordion__panel {
  padding: 4px 18px 20px;
  border-top: 1px solid #ecece8;
}

.ceremo-estimate-accordion__description {
  margin: 0 0 14px;
  padding: 14px 0 2px;
  color: var(--estimate-sub);
  font-size: 13px;
  line-height: 1.8;
}

.ceremo-estimate-accordion__description p { margin: 0 0 4px; }

.ceremo-estimate-items { margin: 0; }

.ceremo-estimate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  padding: 14px 4px;
  border-bottom: 1px solid #ecece8;
}

.ceremo-estimate-item__label {
  min-width: 0;
  font-weight: 500;
}

.ceremo-estimate-item__note {
  display: block;
  margin-top: 5px;
  color: var(--estimate-sub);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 400;
}

.ceremo-estimate-item__price {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.ceremo-estimate-section-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 15px 16px;
  background: var(--estimate-green-light);
}

.ceremo-estimate-section-total span { font-weight: 700; }
.ceremo-estimate-section-total strong {
  color: var(--estimate-green);
  font-size: 20px;
  white-space: nowrap;
}

.ceremo-estimate-grand-total {
  margin-top: 24px;
  padding: 22px 26px;
  color: var(--estimate-green-dark);
  background: var(--estimate-green-light);
  border-radius: 8px;
}

.ceremo-estimate-grand-total__formula {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.ceremo-estimate-grand-total__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #fff;
  background: var(--estimate-green);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ceremo-estimate-grand-total__operator {
  color:#007c3f;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.ceremo-estimate-grand-total__main {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 26px;
}

.ceremo-estimate-grand-total__main span {
  font-size: 18px;
  font-weight: 700;
}

.ceremo-estimate-grand-total__main strong {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.3;
}

.ceremo-estimate-related { margin-top: 24px; }
.ceremo-estimate-related__title { margin: 0 0 10px; font-size: 17px; }
.ceremo-estimate-related__list { display: grid; gap: 8px; }
.ceremo-estimate-related__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #f7f7f5;
}
.ceremo-estimate-related__item strong { color: var(--estimate-green); white-space: nowrap; }

.ceremo-estimate-example__notes {
  margin-top: 20px;
  color: var(--estimate-sub);
  font-size: 12px;
  line-height: 1.75;
}
.ceremo-estimate-example__notes p { margin: 4px 0; }

.ceremo-estimate-example__after {
  margin: 20px 0 0;
  padding: 16px 18px;
  background: #f7f7f5;
  font-size: 14px;
}

@media screen and (max-width: 767px) {
  .ceremo-estimate-example { width: 100%; margin: 36px auto; font-size: 14px; }
  .ceremo-estimate-example__header { margin-bottom: 22px; }
  .ceremo-estimate-example__title { font-size: 23px; }

  .ceremo-estimate-accordion__summary {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 76px;
    padding: 13px 12px;
  }

  .ceremo-estimate-accordion__number {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 12px;
  }

  .ceremo-estimate-accordion__heading { grid-column: 2; grid-row: 1; }
  .ceremo-estimate-accordion__title { font-size: 15px; }

  .ceremo-estimate-accordion__summary-total {
    grid-column: 2;
    grid-row: 2;
    margin-top: 3px;
    font-size: 14px;
  }

  .ceremo-estimate-accordion__action {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }

  .ceremo-estimate-accordion__action-closed,
  .ceremo-estimate-accordion__action-open {
    flex-direction: column-reverse;
    gap: 3px;
    font-size: 11px;
  }

  .ceremo-estimate-accordion__action-icon { width: 28px; height: 28px; font-size: 20px; }
  .ceremo-estimate-accordion__panel { padding: 4px 12px 14px; }
  .ceremo-estimate-item { gap: 8px; padding: 12px 2px; }
  .ceremo-estimate-item__label { font-size: 13px; line-height: 1.65; }
  .ceremo-estimate-item__price { font-size: 13px; }
  .ceremo-estimate-section-total { gap: 8px; padding: 12px; }
  .ceremo-estimate-section-total span { font-size: 13px; }
  .ceremo-estimate-section-total strong { font-size: 16px; }
  .ceremo-estimate-grand-total { padding: 18px 14px; }
  .ceremo-estimate-grand-total__formula { gap: 7px; margin-bottom: 10px; }
  .ceremo-estimate-grand-total__number { width: 30px; height: 30px; flex-basis: 30px; font-size: 13px; }
  .ceremo-estimate-grand-total__operator { font-size: 17px; }
  .ceremo-estimate-grand-total__main { flex-direction: column; align-items: center; gap: 2px; }
  .ceremo-estimate-grand-total__main span { font-size: 15px; }
  .ceremo-estimate-related__item { flex-direction: column; gap: 2px; }
}

@media screen and (max-width: 420px) {
  .ceremo-estimate-item { grid-template-columns: 1fr; }
  .ceremo-estimate-item__price { text-align: right; }
}
