/* 2026-07 家族信託LP修正版（index2.html・index3.html共用） */

.risk-graph-img {
  position: relative;
}

.risk-graph-img > img {
  display: block;
  width: 100%;
  height: auto;
}

.risk-graph-img picture,
.risk-graph-img picture img {
  display: block;
  width: 100%;
  height: auto;
}

.risk-copy--revised {
  text-align: justify;
  text-justify: inter-character;
}

.risk-copy-note {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding-top: 1rem;
  font-size: .7rem;
  line-height: 1.4;
  text-align: left;
}

.risk-legend-item--dementia-count {
  color: #6c8bac;
}

.risk-legend-item--total-count {
  color: #df9665;
}

.overview-text {
  line-height: 1.65;
  min-width: 0;
}

.overview-item {
  display: grid;
  grid-template-columns: auto max-content minmax(0, 1fr);
  align-items: center;
}

.overview-role {
  width: auto;
  margin: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.faq-cost-block p + p {
  margin-top: 1em;
}

.faq-cost-heading {
  margin-bottom: .15em;
}

.faq-cost-list {
  margin-bottom: .15em;
  text-align: left;
}

.faq-cost-list li {
  display: grid;
  grid-template-columns: 1em minmax(0, 1fr);
}

.faq-cost-list li::before {
  content: "・";
}

.faq-cost-note {
  white-space: normal;
}

.faq-cost-closing {
  margin-top: 1.5em !important;
}

.compare-notes {
  margin-top: 1.7vw;
  color: #333;
  font-size: 1.4rem;
  line-height: 1.75;
  text-align: left;
}

.compare-notes p {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: .5em;
  align-items: start;
}

.compare-notes p + p {
  margin-top: .8vw;
}

.compare-notes strong {
  color: #075f50;
}

@media screen and (max-width: 767px) {
  .overview-item {
    display: grid;
    grid-template-columns: 2rem max-content minmax(0, 1fr);
    column-gap: .5rem;
    align-items: center;
  }

  .overview-item img {
    width: 2rem;
  }

  .overview-role {
    font-size: 1rem;
  }
}

@media screen and (min-width: 768px) {
  .risk-copy-note {
    font-size: 1.3rem;
    font-weight: 300;
  }

  .risk-legend {
    width: fit-content;
    max-width: 100%;
    grid-template-columns: max-content max-content;
    column-gap: 3vw;
    row-gap: .5vw;
  }

  .flow-grid {
    align-items: start;
  }

  .flow-item {
    grid-template-rows: 6vw 12vw 6.5vw auto;
    width: 100%;
    height: 100%;
  }

  .flow-num {
    align-self: start;
    margin-bottom: 0;
    line-height: 1;
  }

  .flow-head {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    height: 100%;
    margin-bottom: 0;
    padding-bottom: 1vw;
  }

  .flow-text {
    align-self: start;
  }

  .flow-arrow {
    align-self: start;
    height: 12vw;
    margin-top: 6vw;
  }
}

@media (max-width: 767px) {
  .compare-notes {
    margin-top: 4vw;
    font-size: .75rem;
    line-height: 1.7;
  }
}

/* Dropbox版の基本レイアウトを復元（index3.html共用） */
@media screen and (min-width: 768px) {
  .page-index3 .cta-head::after {
    transform: rotate(120deg);
  }

  .page-index3 .cta-box {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-index3 .cta-btn {
    width: 55vw;
  }

  .page-index3 a.cta-btn img {
    width: 11vw;
  }

  .page-index3 .cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-index3 .cta--stack .cta-btn img {
    right: -3%;
    bottom: -2%;
  }

  .page-index3 .cta--stack .cta-item:last-child .cta-btn img {
    width: 11vw;
  }

  .page-index3 .freeze-label {
    font-size: 2.1rem;
  }

  .page-index3 .movie-bubble {
    background: url("../images/img13.png") center center / cover no-repeat;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media screen and (max-width: 767px) {
  .page-index3 .cta-box {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .page-index3 .cta-btn {
    width: 90vw;
  }

  .page-index3 .cta-badge {
    left: .3rem;
  }

  .page-index3 .cta-text {
    font-size: 1rem;
    letter-spacing: normal;
  }

  .page-index3 .cta--stack .cta-btn img {
    right: -3%;
    bottom: -9%;
  }

  .page-index3 .cta--stack .cta-item:last-child .cta-btn img {
    width: 20vw;
  }

  .page-index3 .talk {
    padding: 9rem 0 7rem;
  }

  .page-index3 .talk-bubble {
    left: 12vw;
    top: -7.5rem;
    width: 60vw;
  }

  .page-index3 .portal-btn {
    padding: .5rem 2rem;
  }

  .page-index3 .portal-btn-text {
    font-size: 1rem;
  }
}
