/* User LP (利用者向け) */

/* --- 共通：写真（サイトの角丸・枠線に合わせる） --- */
.lp-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
}

.lp-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: middle;
}

/* --- Hero --- */
.lp-user .hero {
  min-height: auto;
  padding: 112px 24px 58px;
}

.lp-user .hero-inner--split {
  width: 100%;
  max-width: 1120px;
  min-height: clamp(460px, calc(100svh - 220px), 600px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  position: relative;
  isolation: isolate;
}

.lp-user .hero-inner--split::before {
  content: '';
  position: absolute;
  inset: -70px 22% -70px -70px;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(26, 39, 68, 1) 0%,
    rgba(26, 39, 68, 0.94) 50%,
    rgba(26, 39, 68, 0.18) 100%
  );
  pointer-events: none;
}

.lp-user .hero-badge {
  margin-top: 0;
  order: 3;
  max-width: 560px;
  position: relative;
  z-index: 2;
}

.lp-user .hero-copy {
  order: 1;
  max-width: 590px;
  position: relative;
  z-index: 2;
}

.lp-user .lp-figure--hero {
  order: 2;
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 0;
  width: min(55%, 610px);
  height: min(58svh, 500px);
  min-height: 360px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  opacity: 0.96;
}

.lp-user .lp-figure--hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 39, 68, 0.38), rgba(26, 39, 68, 0.02) 58%);
  pointer-events: none;
}

.lp-user .lp-figure--hero img {
  height: 100%;
  object-position: center 28%;
}

@media (min-width: 768px) {
  .lp-user .hero-cta-group {
    flex-direction: row;
    max-width: 540px;
  }

  .lp-user .hero-cta-group .btn-primary,
  .lp-user .hero-cta-group .btn-secondary {
    flex: 1;
  }

  .lp-user .hero-inner--split {
    display: flex;
  }

  .lp-user .hero-copy {
    order: unset;
  }

  .lp-user .lp-figure--hero {
    order: unset;
  }

  .lp-user .hero-badge {
    margin-top: -2px;
    order: unset;
  }

  .lp-user .lp-figure--hero img {
    aspect-ratio: auto;
  }
}

@media (max-width: 767px) {
  .lp-user .hero-inner--split {
    min-height: auto;
    padding: 52px 0 0;
  }

  .lp-user .hero-inner--split::before {
    inset: 0 -24px -36px -24px;
    background: linear-gradient(
      180deg,
      rgba(26, 39, 68, 0.96) 0%,
      rgba(26, 39, 68, 0.9) 48%,
      rgba(26, 39, 68, 0.7) 100%
    );
  }

  .lp-user .lp-figure--hero {
    inset: 0 -24px -36px -24px;
    width: auto;
    height: auto;
    min-height: 0;
    transform: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 0.34;
  }

  .lp-user .lp-figure--hero::after {
    background: rgba(26, 39, 68, 0.18);
  }

  .lp-user .lp-figure--hero img {
    height: 100%;
  }
}

/* --- お困りごと：サポート場面を先に見せて内容を想像しやすくする --- */
.scene-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-rows: repeat(2, minmax(150px, 1fr));
  gap: 12px;
  margin: 6px 0 34px;
}

.lp-figure--scene {
  position: relative;
  border: 1px solid var(--border);
  background: var(--white);
}

.lp-figure--scene-main {
  grid-row: 1 / span 2;
}

.lp-figure--scene img {
  height: 100%;
  min-height: 100%;
}

.lp-figure--scene-main img {
  object-position: center 34%;
}

.lp-figure--scene figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 10px;
  background: rgba(253, 251, 248, 0.9);
  border: 1px solid rgba(221, 213, 200, 0.72);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--navy);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

@media (max-width: 559px) {
  .scene-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
    margin-bottom: 32px;
  }

  .lp-figure--scene {
    min-height: 176px;
  }

  .lp-figure--scene-main {
    grid-row: auto;
    min-height: 236px;
  }

  .lp-figure--scene img {
    height: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
  }

  .lp-figure--scene figcaption {
    left: 10px;
    bottom: 10px;
    font-size: 0.78rem;
  }
}

/* --- ASSISTANとは：料金と写真をひとまとまりに --- */
.service-panel {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
}

.service-panel .price-block {
  margin: 0;
  border-radius: 0;
  grid-template-columns: 1fr;
  min-height: 100%;
}

.service-panel .price-main {
  border-right: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-right: 0;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.service-panel .price-ext {
  padding-left: 0;
}

.lp-figure--panel {
  border: 0;
  border-radius: 0;
  background: var(--white);
}

.lp-figure--panel img {
  object-position: center 38%;
}

.service-lead-after-panel {
  margin-top: 24px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .service-panel {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    align-items: stretch;
  }

  .lp-figure--panel,
  .lp-figure--panel img {
    height: 100%;
    min-height: 100%;
  }

  .lp-figure--panel img {
    aspect-ratio: auto;
    min-height: 240px;
  }
}

/* --- ご家族の方へ：note-box 内に写真を組み込む --- */
.note-box--with-photo {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.note-box--with-photo .lp-figure--note {
  border-radius: 6px 6px 0 0;
}

.note-box--with-photo .lp-figure--note img {
  aspect-ratio: 16 / 9;
  max-height: 200px;
}

.note-box--with-photo .note-box-text {
  padding: 20px 18px 22px;
}

.note-box--with-photo .note-box-text p {
  margin: 10px 0 0;
}

@media (min-width: 600px) {
  .note-box--with-photo {
    grid-template-columns: minmax(160px, 36%) 1fr;
    align-items: stretch;
  }

  .note-box--with-photo .lp-figure--note {
    border-radius: 6px 0 0 6px;
    height: 100%;
  }

  .note-box--with-photo .lp-figure--note img {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .note-box--with-photo .note-box-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 22px;
  }
}

/* --- 既存スタイル --- */
html.lp-user { font-size: 18px; }
.lp-user .hero-title { font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: 12px; }
.lp-user .hero-subtitle { line-height: 1.8; margin-bottom: 24px; }
.lp-user .hero-desc { line-height: 1.9; margin-bottom: 32px; }
.lp-user .hero-badge { color: rgba(255,255,255,0.35); }
.lp-user .section-label { font-size: 0.68rem; }
.lp-user .section-title { font-size: clamp(1.35rem, 4vw, 1.9rem); line-height: 1.6; }
.lp-user .section-lead { line-height: 2; }
.lp-user .site-logo { font-size: 1.1rem; }
.lp-user .site-logo span { font-size: 0.6rem; }
.lp-user .header-cta { font-size: 0.75rem; padding: 9px 18px; }
.lp-user .fade-in { transform: translateY(24px); }
.lp-user .message-quote { font-size: clamp(1.05rem, 3vw, 1.25rem); line-height: 2; margin-bottom: 28px; }
.lp-user .message-body { line-height: 2; }
.lp-user .message-sig-name { font-size: 1.05rem; }
.lp-user .faq-question { line-height: 1.7; }
.lp-user .faq-answer p { line-height: 2; }
.lp-user .point-list li { line-height: 1.75; }
.lp-user .note-box { line-height: 1.85; }
.lp-user .note-box strong { font-size: 0.95rem; }

.worry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 0;
}
.worry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.worry-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.worry-text { font-size: 0.88rem; color: var(--text-mid); line-height: 1.75; }

.price-block {
  background: var(--navy);
  border-radius: 6px;
  padding: 28px 32px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.price-main { border-right: 1px solid rgba(255,255,255,0.12); padding-right: 28px; }
.price-ext { padding-left: 28px; display: flex; align-items: center; }
.price-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; margin-bottom: 8px; }
.price-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; color: var(--gold-light); line-height: 1; }
.price-unit { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 6px; }
.price-ext-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; margin-bottom: 6px; }
.price-ext-num { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-light); }
.price-ext-unit { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

.point-list { list-style: none; margin: 24px 0; }
.point-list li {
  padding: 14px 0 14px 32px; position: relative; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; color: var(--text); line-height: 1.75;
}
.point-list li::before {
  content: '✓'; position: absolute; left: 0; top: 14px; color: var(--gold); font-weight: 500;
}

.lp-user .note-box {
  background: var(--beige);
  border: 1px solid var(--beige-dark);
  color: var(--text-mid);
}
.lp-user .note-box strong { color: var(--navy); }

@media (max-width: 600px) {
  html.lp-user { font-size: 17px; }
  .worry-grid { grid-template-columns: 1fr; }
  .price-block { grid-template-columns: 1fr; }
  .price-main {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-right: 0;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .price-ext { padding-left: 0; }
  .lp-user .hero {
    padding-bottom: 56px;
    min-height: auto;
  }
}
