/* LP001: neutral business design. Mobile base, tablet at 768px, desktop at 1024px. */
.case-more {
  margin-top: 32px;
  padding: 24px;
  background: #edf3f9;
  border-radius: 4px;
  text-align: center;
}

.case-more p {
  margin-bottom: 20px;
  font-weight: 700;
}

.case-more .button {
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .case-more {
    padding: 32px;
  }
}

.case-gallery {
  margin-block: 24px;
  container-type: inline-size;
}

.case-gallery-window {
  overflow: hidden;
  display: grid;
  gap: 12px;
}

.case-gallery-track {
  display: flex;
  width: max-content;
}

.case-gallery-group {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  padding-right: 12px;
}

.case-gallery-photo {
  flex: 0 0 auto;
  width: max(100px, calc((100cqw - 84px) / 8));
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dce1e5;
  border: 1px solid #cbd2d9;
  border-radius: 4px;
  color: #526478;
  font-size: 0.75rem;
  text-align: center;
}

.case-gallery-track {
  animation: case-strip-left 40s linear infinite;
}

.case-gallery-track.moves-right {
  animation-direction: reverse;
}

@keyframes case-strip-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

#fv-title span {
  display: inline-block;
}

/* 文字の下半分をマーカー表示。折り返した行ごとに背景を複製する。 */
.text-marker,
#fv-title span {
  color: inherit;
  background-color: transparent;
  background-image: linear-gradient(var(--highlight), var(--highlight));
  background-repeat: no-repeat;
  background-size: 100% 0.4em;
  background-position: left bottom 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.text-marker {
  padding: 0;
  font: inherit;
}

#flow .flow-heading-text {
  min-width: 0;
  font: inherit;
  line-height: 1.5;
}

.lp-section {
  padding-block: 48px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.fv-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

#fv {
  background: #eef4fa;
  border-top: 1px solid var(--line);
  padding-block: 36px 44px;
}

#fv h1 {
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: 0.015em;
}

#fv .section-label {
  font-size: 0.7rem;
  letter-spacing: 0.025em;
}

#fv p:not(.section-label) {
  font-size: 1.1rem;
  font-weight: 500;
}

#fv .button+p {
  margin: 20px 0 0;
  font-size: 0.8rem;
}

.fv-layout .fv-visual {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 6px;
}

.fv-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

#fv .fv-contact .fv-phone {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .fv-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fv-label {
  grid-area: label;
  margin-bottom: 0;
}

.fv-visual {
  grid-area: visual;
}

.fv-copy {
  grid-area: copy;
  min-width: 0;
}

.fv-layout {
  grid-template-areas: 'label' 'title' 'visual' 'copy';
}

#maintenance .image-frame,
#renewal .image-frame,
#design .image-frame {
  order: -1;
}

#fv #fv-title {
  grid-area: title;
  margin-bottom: 0;
}

#problem,
#reason,
#design,
#flow {
  background: var(--surface);
}

#problem h3 {
  color: var(--primary);
}

#problem li::marker {
  color: var(--primary);
}

#service .card {
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

#service .card h3 {
  margin: 22px 0 12px;
  color: var(--primary);
}

#service .card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
}

#service .card a::after {
  content: '';
  width: 24px;
  aspect-ratio: 1 / 1;
  background-color: var(--primary);
  -webkit-mask: url('../../common/img/icon-arrow-circle-right.svg') center / contain no-repeat;
  mask: url('../../common/img/icon-arrow-circle-right.svg') center / contain no-repeat;
  margin-left: 12px;
}

.cta {
  background: var(--primary);
  color: white;
}

.cta h2 {
  max-width: 820px;
}

.cta .section-label,
.cta .phone {
  color: white;
}

.cta .section-label::before {
  background: var(--highlight);
}

.cta .button+p {
  font-size: 0.8rem;
  margin: 24px 0 0;
}

.cta :focus-visible {
  outline-color: var(--highlight);
}

#reason .card {
  border: 1px solid var(--primary);
}

#reason h3 {
  color: var(--primary);
}

#maintenance ul,
#design ul {
  padding: 20px 20px 20px 40px;
  background: #edf3f9;
  border-radius: 4px;
  font-weight: bold;
}

#renewal .steps {
  margin-top: 32px;
}

#renewal .steps li {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #edf3f9;
  font-weight: 800;
  text-align: center;
}

#renewal .steps li::before {
  content: '';
  width: 24px;
  aspect-ratio: 1 / 1;
  background-color: var(--primary);
  -webkit-mask: url('../../common/img/icon-check-circle.svg') center / contain no-repeat;
  mask: url('../../common/img/icon-check-circle.svg') center / contain no-repeat;
  margin-right: 6px;
}

#case .card {
  padding: 20px;
}

#case .card>p:first-child {
  display: inline-block;
  font-size: 0.75rem;
  background: #eaf1f9;
  color: var(--primary);
  padding: 4px 10px;
  margin-bottom: 18px;
  font-weight: 700;
}

#case .card h3 {
  font-size: 1.05rem;
}

#case .card dt::before {
  content: '•';
  color: var(--primary);
  font-weight: 700;
  margin-right: 6px;
}

#case .card>p:last-child a {
  display: flex;
  align-items: center;
  padding-top: 16px;
  font-size: 0.8rem;
  font-weight: 700;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.steps {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.steps li {
  padding: 22px;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.steps h3 {
  display: flex;
  align-items: center;
  color: var(--primary);
  line-height: 1;
}

.steps h3 span {
  display: block;
  width: fit-content;
  margin-right: 5px;
  padding: 4px;
  background: var(--primary);
  border-radius: 2px;
  color: white;
  font-size: 65%;
}

.steps p {
  margin: 0;
  font-size: 0.9rem;
}

#faq .container {
  max-width: 880px;
}

#faq summary {
  display: flex;
  gap: 16px;
  align-items: baseline;
  list-style: none;
  font-size: 0.95rem;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::before {
  content: 'Q';
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
}

#faq summary::after {
  content: '+';
  margin-left: auto;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.3rem;
}

#faq details[open] summary::after {
  content: '−';
}

#faq details p {
  padding-left: 32px;
  color: var(--muted);
}

#line-cta {
  background: #f5f7f8;
}

#line-cta .container {
  padding: 24px;
  background: #edf3f9;
  border-radius: 4px;
}

#line-cta h2 {
  font-size: 1.5rem;
}

#final-cta h3 {
  font-size: 1rem;
}

#final-cta .detail-layout>div {
  border-top: 1px solid #ffffff4d;
  padding-top: 24px;
}

#contact {
  background: var(--surface);
}

.form-wrap {
  max-width: 820px;
}

#contact-form {
  background: white;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 28px;
}

#contact-form .field:first-child {
  margin-top: 0;
}

#confirm-button {
  width: 100%;
}

.form-state {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  margin-block: 24px;
  border-radius: 4px;
}

#form-confirm {
  border: 0;
  padding: 0;
  margin: 0;
}

#confirm-values {
  border-top: 1px solid var(--line);
}

#confirm-values dd {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

#topics-error {
  color: #ad2929;
}

@media (min-width: 768px) {
  .lp-section {
    padding-block: 60px;
  }

  #fv {
    padding-block: 52px;
  }

  #fv h1 {
    max-width: 780px;
  }

  .fv-layout .fv-visual {
    aspect-ratio: 16/7;
  }

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

  #flow .steps,
  #renewal .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  #contact-form {
    padding: 40px;
  }

  .cta .container>p:not(.section-label) {
    max-width: 760px;
  }
}

@media (min-width: 1024px) {
  .lp-section {
    padding-block: 72px;
  }

  #fv {
    padding-block: 64px;
  }


  #fv h1 {
    font-size: 2.4rem;
  }


  #flow .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #renewal .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 画像枠内の比較ラベル。枠のサイズ・比率には影響しない。 */
#case .comparison-label {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 2px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

#case .comparison-label--before {
  background: #526478;
}

#case .comparison-label--after {
  background: var(--primary);
}

@media (min-width: 1025px) {
  .fv-layout {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: 'label visual' 'title visual' 'copy visual';
    gap: 0 48px;
  }

  #fv .fv-label {
    margin-bottom: 14px;
  }

  #fv #fv-title {
    margin-bottom: 24px;
  }

  .fv-layout .fv-visual {
    min-height: 450px;
    aspect-ratio: auto;
  }
}

/* 人物画像は専用の列に収め、セクション下端に合わせる。 */
.cta.cta-illustrated {
  padding-bottom: 0;
}

.cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.cta-copy {
  min-width: 0;
}

.cta-phone-block {
  margin-top: 24px;
}

.cta-phone-block p {
  font-size: 0.8rem;
}

.cta-visual {
  width: min(100%, 260px);
  aspect-ratio: 4 / 5;
  justify-self: end;
  --image-fit: contain;
  --image-position: right bottom;
}

@media (min-width: 768px) {
  .cta-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 32px;
  }

  .cta-copy {
    padding-bottom: 60px;
  }

  .cta-visual {
    width: min(100%, 360px);
  }
}

@media (min-width: 1024px) {
  .cta-copy {
    padding-bottom: 72px;
  }
}

@media (max-width: 768px) {
  :is(#cta01, #cta02, #final-cta) .cta-phone-block p {
    text-align: center;
  }

  #final-cta .cta-phone-block h3 {
    margin-bottom: 0;
    text-align: center;
  }

  .cta.cta-illustrated {
    padding-bottom: 32px;
  }

  .cta-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.8fr);
    grid-template-areas: 'intro visual' 'actions actions';
    gap: 0 12px;
    isolation: isolate;
  }

  .cta-copy {
    display: contents;
  }

  .cta-intro {
    grid-area: intro;
    min-width: 0;
  }

  .cta-intro h2 {
    font-size: clamp(1.1rem, 3.7vw, 1.65rem);
  }

  .cta-intro>p:not(.section-label) {
    font-size: 0.85rem;
  }

  .cta-layout .cta-visual {
    grid-area: visual;
    width: 100%;
    align-self: end;
    transform: translateY(28px);
    pointer-events: none;
    z-index: 0;
  }

  .cta-actions {
    grid-area: actions;
    position: relative;
    z-index: 1;
  }

  .cta-actions .button {
    width: 100%;
  }

  .cta .button+p {
    text-align: center;
  }

}