/* The self-search comparison is scoped to avoid the LP's utility/reset styles. */
.self-search {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 32px 52px;
  color: #fffaf0;
  background: radial-gradient(ellipse at 50% 58%, #315c4c 0, #183e32 48%, #102e26 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}
.self-search::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .35;
  background-image: linear-gradient(#d7e9d90d 1px, transparent 1px), linear-gradient(90deg, #d7e9d90d 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.self-search :where(h2, h3, p, ol, li, figure) {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
  letter-spacing: normal;
}
.self-search-inner { max-width: 1100px; margin: 0 auto; }
.self-search-heading p { color: #c6d9cd; font-size: 16px; line-height: 1.6; letter-spacing: .08em; }
.self-search-heading h2 {
  display: inline-block;
  position: relative;
  margin-top: 10px;
  padding-bottom: 16px;
  color: #fffaf0;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .06em;
}
.self-search-heading h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 24px);
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: #e7b875;
}
.self-search-stage { position: relative; height: 550px; margin-top: 36px; }
.self-search-steps { list-style: none; }
.self-search-card {
  position: absolute;
  z-index: 2;
  width: 24%;
  min-height: 164px;
  padding: 18px 20px;
  border: 1px solid #fff8e4b3;
  border-radius: 18px;
  background: #fffaf0;
  color: #183e32;
  box-shadow: 0 8px 24px #061a2333;
  text-align: left;
}
.self-search-card-1 { left: 0; bottom: 24px; }
.self-search-card-2 { left: 0; top: 110px; }
.self-search-card-3 { left: 38%; top: 0; }
.self-search-card-4 { right: 0; top: 110px; }
.self-search-card-5 { right: 0; bottom: 24px; }
.self-search-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.self-search-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #28654b;
  font: 700 15px/1 Arial, sans-serif;
  letter-spacing: .03em;
}
.self-search .self-search-icon {
  display: block;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #53816a;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.self-search-card h3 { margin-top: 10px; font-size: clamp(18px, 2vw, 24px); font-weight: 800; line-height: 1.4; letter-spacing: -.025em; }
.self-search-card p { margin-top: 6px; color: #55665a; font-size: 15px; font-weight: 500; line-height: 1.6; }
.self-search-couple {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 25%;
  width: 50%;
}
.self-search-couple::before {
  content: "";
  position: absolute;
  inset: 12% -12% -7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #d5e9d91a, transparent 68%);
}
.self-search .self-search-couple img { display: block; position: relative; width: 100%; height: auto; max-width: 100%; }
.self-search .self-search-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.self-search-arrows > path { fill: none; stroke: #b0cbb6; stroke-width: 3; stroke-linecap: round; marker-end: url(#self-search-arrow); }
.self-search-arrows marker path { fill: none; stroke: #e7b875; stroke-width: 1.6; stroke-linejoin: round; }
.self-search-mobile-link, .self-search-mobile-turn, .self-search-mobile-route { display: none; }
.self-search-conclusion { position: relative; z-index: 2; margin-top: 28px !important; font-size: clamp(18px, 2.1vw, 25px); font-weight: 700; line-height: 1.7; }
.self-search-conclusion strong { display: inline-block; margin-left: .16em; color: #f2c287; font-size: 1.9em; font-weight: 800; line-height: 1.2; }
@media (min-width: 769px) and (max-width: 960px) {
  .self-search { padding-right: 24px; padding-left: 24px; }
  .self-search-card { padding: 16px 14px; }
  .self-search-card p { font-size: 14px; }
  .self-search-card-5 h3 span { display: block; }
}
@media (max-width: 768px) {
  .self-search { padding: 40px 16px 38px; }
  .self-search-inner { max-width: 500px; }
  .self-search-heading p { font-size: 14px; letter-spacing: .015em; }
  .self-search-heading h2 { margin-top: 8px; font-size: clamp(28px, 7vw, 36px); }
  .self-search-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 16px; height: auto; margin-top: 28px; }
  .self-search-steps { display: contents; }
  .self-search .self-search-arrows { display: none; }
  .self-search-card { position: relative; inset: auto; width: auto; min-width: 0; min-height: 154px; padding: 13px 12px; border-radius: 14px; }
  .self-search-card-1 { grid-column: 1; grid-row: 1; }
  .self-search-card-2 { grid-column: 2; grid-row: 1; }
  .self-search-card-3 { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: 64%; min-width: 180px; min-height: 142px; }
  .self-search-card-4 { grid-column: 1; grid-row: 4; }
  .self-search-card-5 { grid-column: 2; grid-row: 4; }
  .self-search-number { width: 28px; height: 28px; font-size: 13px; }
  .self-search .self-search-icon { width: 28px; height: 28px; }
  .self-search-card h3 { margin-top: 9px; font-size: clamp(16px, 4.4vw, 20px); line-height: 1.45; }
  .self-search-card p { margin-top: 5px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
  .self-search-card-5 h3 span { display: block; }
  .self-search-couple { position: relative; grid-column: 1 / -1; grid-row: 3; bottom: auto; left: auto; width: 100%; margin: -4px 0; }
  .self-search-couple::before { inset: 12% 0 -7%; }
  .self-search .self-search-couple img { width: 90%; margin: 0 auto; }
  .self-search-mobile-link { display: block; position: absolute; top: 50%; left: calc(100% + 3px); width: 10px; height: 2px; background: #b0cbb6; }
  .self-search-mobile-link::after { content: ""; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; border-top: 2px solid #e7b875; border-right: 2px solid #e7b875; transform: rotate(45deg); }
  .self-search .self-search-mobile-turn { display: block; position: absolute; top: calc(100% + 3px); right: 48%; width: 60%; height: 20px; fill: none; stroke: #b0cbb6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .self-search .self-search-mobile-route { display: block; position: absolute; left: 0; top: -24px; width: 100%; height: calc(100% + 48px); fill: none; stroke: #b0cbb6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .self-search-conclusion { margin-top: 28px !important; font-size: 16px; line-height: 1.8; }
  .self-search-conclusion strong { display: block; margin: 4px 0 0; font-size: 36px; }
}
