:root {
  --detail-width: 1012px;
  --narrow-width: 770px;
  --detail-blue: #0080ec;
  --detail-dark: #333;
}

.detail-container,
.narrow-container {
  width: min(calc(100% - 48px), var(--detail-width));
  margin-inline: auto;
}

.narrow-container { max-width: var(--narrow-width); }

.phone-hero { padding: 31px 0 42px; }

.phone-hero__inner {
  min-height: 405px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.phone-hero h1 {
  margin: 0 0 30px;
  line-height: 1;
}

.phone-hero h1 span {
  display: block;
  font-size: clamp(48px, 5vw, 65px);
}

.phone-hero h1 small {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  letter-spacing: .05em;
}

.phone-hero__content > p {
  margin: 0 0 29px;
  font-size: 16px;
  line-height: 1.88;
  letter-spacing: .025em;
}

.phone-hero__image {
  width: 100%;
  align-self: start;
  margin: 34px -19px 0 -24px;
}

.detail-button {
  width: 100%;
  max-width: 410px;
  min-height: 54px;
  padding: 15px 15px 15px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  color: #fff;
  border-radius: 999px;
  background: var(--detail-blue);
  font-size: 20px;
  font-weight: 700;
  transition: opacity .2s, transform .2s;
}

.detail-button span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--detail-blue);
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
  padding-left: 1px;
  padding-top: 1px;
}

.detail-button:hover,
.detail-button:focus-visible { opacity: .8; transform: translateY(-2px); }

.overview { padding: 24px 0 0; text-align: center; }

.overview h2,
.comparison h2,
.steps h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.55;
}

.overview__features {
  width: min(100%, 650px);
  margin: 31px auto 69px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-content: center;
}

.overview__features li {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: #fff;
  border-radius: 50%;
  background: #333;
  padding: 0.5rem;
}

.feature-icon { height: 57px; display: grid; place-items: center; }
.feature-icon img { width: 54px; max-height: 54px; object-fit: contain; }
.overview__features b { margin-top: 3px; font-size: 18px; line-height: 1.4; }

.overview h3 { margin: 0 0 25px; font-size: 34px; }

.overview__problems {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 22px 35px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 25px;
  text-align: left;
  border-radius: 10px;
  background: #f7f7f7;
  font-size: 18px;
  font-weight: 600;
}

.overview__problems li {
  display: flex;
  align-items: center;
}

.overview__problems li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  color: #fff;
  border-radius: 50%;
  background: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  vertical-align: -2px;
  padding-top: 4px;
}

.down-arrow {
  width: 80px;
  aspect-ratio: 118 / 74;
  display: block;
  margin: 35px auto 21px;
  background: url("/service/ibeeconnect/images/phone-number/down-arrow.webp") center / contain no-repeat;
}

.efficiency {
  position: relative;
  overflow: hidden;
  padding: 58px 0 82px;
  color: #fff;
  background: var(--detail-blue);
}

.efficiency::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(38 150 238 / 88%), rgb(38 150 238 / 88%)), url("/service/ibeeconnect/images/phone-number/efficiency-background.webp") center 50% / cover no-repeat;
}

.efficiency__inner { position: relative; }

.efficiency h2 {
  margin: 0 0 50px;
  text-align: center;
  font-size: 34px;
  line-height: 1.45;
}

.flow-comparison {
  width: min(100%, 700px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px;
}

.flow-card {
  padding: 0 29px 24px;
  color: #444;
  border-radius: 12px;
  background: #fff;
}

.flow-card h3 {
  width: calc(100% + 18px);
  margin: -15px -9px 12px;
  padding: 6px 15px;
  color: #fff;
  border-radius: 999px;
  background: #999;
  text-align: center;
  font-size: 18px;
}

.flow-card--ibee h3 { background: var(--detail-blue); }

.flow-card li {
  min-height: 58px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
}

.flow-card li:not(:last-child) { margin-bottom: 10px; }

.flow-card li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 54px;
  bottom: -13px;
  color: #444;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.flow-card li img { width: 40px; height: 40px; object-fit: contain; }
.flow-card--ibee li { color: #278dde; }

.comparison { padding: 71px 0 65px; text-align: center; }
.comparison h2 { margin-bottom: 3rem; }

.service-summary {
  width: min(100%, 600px);
  margin: 0 auto 58px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-summary__card {
  min-height: 235px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(0 0 0 / 8%);
}

.service-summary__card h3 {
  width: 80%;
  margin: -21px auto 18px;
  padding: 9px 14px;
  color: #fff;
  border-radius: 999px;
  background: #888;
  font-size: 18px;
  line-height: 1.55;
}

.service-summary__card--ibee {
  position: relative;
  z-index: 1;
  border: 2px solid var(--detail-blue);
  box-shadow: none;
}

.service-summary__card--ibee h3 { background: var(--detail-blue); }

.service-summary__card ul {
  padding: 3px 42px 24px;
  text-align: left;
  font-size: 18px;
  line-height: 1.8;
}

.service-summary__card li::before { content: "・"; margin-left: -.7em; }
.service-summary__card p { margin: 77px 15px 0; font-size: 18px; }

.comparison-table-image {
  width: min(100%, 760px);
  display: block;
  margin-inline: auto;
}

.comparison-table-image img { width: 100%; }

.use-cases { padding: 50px 0 74px; }
.use-cases .narrow-container { max-width: 870px; }
.use-cases h2 { margin: 0 0 27px; text-align: center; font-size: 34px; }
.use-cases__list { display: grid; gap: 39px; }

.use-case {
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 17px rgb(0 0 0 / 8%);
}

.use-case > h3 {
  margin: 0;
  padding: 8px 20px;
  color: #fff;
  background: #248df0;
  text-align: center;
  font-size: 20px;
}

.use-case__body {
  min-height: 212px;
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: center;
  gap: 31px;
  padding: 23px 35px;
}

.use-case__body > img { width: 100%; border-radius: 4px; }
.use-case h4 { margin: 0 0 11px; font-size: 18px; line-height: 1.6; }
.use-case p { margin: 0; font-size: 16px; line-height: 1.75; }

.steps {
  position: relative;
  padding: 6rem 0 7rem;
  text-align: center;
}

.steps .narrow-container { max-width: 760px; }

.steps h2 {
  margin: 0 0 18px;
  color: #3a3a3a;
  font-size: 2.25rem;
  line-height: 1.5;
  font-weight: 700;
}

.steps__lead {
  margin: 0 0 56px;
  color: #3a3a3a;
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 600;
}

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

.step-card {
  min-height: 160px;
  position: relative;
  padding: 35px 30px 70px;
  display: grid;
  grid-template-columns: 1fr 2fr 4fr;
  align-items: center;
  gap: 1.5rem;
  overflow: visible;
  text-align: left;
  background: transparent;
  filter: drop-shadow(0 7px 10px rgb(0 0 0 / 14%));
}

.step-card:last-child {
  padding-bottom: 3rem;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}

.step-card:last-child::before { clip-path: none; }

.step-card__number,
.step-card > img,
.step-card > div { position: relative; z-index: 2; }

.step-card__number {
  color: #0f6ae6;
  font-size: 3.75rem;
  line-height: 1;
  font-weight: 600;
}

.step-card > img { width: 100%; }

.step-card h3 {
  margin: 0;
  padding-bottom: 0.5rem;
  color: #3a3a3a;
  font-size: 1.75rem;
  line-height: 1.5;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  color: #3a3a3a;
  font-size: .9375rem;
  line-height: 2;
  font-weight: 500;
}

.detail-cta {
  padding: 65px 0 72px;
  color: #fff;
  background: var(--detail-blue);
  text-align: center;
}

.detail-cta h2 { margin: 0 0 15px; font-size: 34px; line-height: 1.55; }
.detail-cta p { margin: 0 0 27px; font-size: 18px; line-height: 1.8; }

.detail-button--white {
  color: var(--detail-blue);
  background: #fff;
}

.detail-button--white span { color: #fff; background: var(--detail-blue); }

@media (max-width: 900px) {
  .phone-hero__inner { grid-template-columns: 1fr 1fr; }
  .phone-hero__content > p { font-size: 14px; }
}

@media (max-width: 800px) {
  .detail-container,
  .narrow-container { width: min(calc(100% - 36px), var(--detail-width)); }
  .detail-button { min-width: 0; width: min(100%, 390px); margin-inline: auto; padding-left: 18px; font-size: 18px; }
  .overview { padding-top: 32px; }
  .overview h2,
  .comparison h2 { font-size: 28px; }
  .overview__features { max-width: 410px; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 50px; }
  .overview__features li { width: 100%; max-width: 170px; justify-self: center; }
  .overview h3 { font-size: 29px; line-height: 1.5; }
  .overview__problems { grid-template-columns: 1fr; padding: 18px; font-size: 16px; }
  .flow-comparison { grid-template-columns: 1fr; max-width: 360px; gap: 45px; }
  .efficiency { padding-block: 50px 65px; }
  .efficiency h2 { font-size: 21px; }
  .comparison { padding-block: 60px 40px; }
  .comparison-table-image { width: min(100%, 480px); }
  .use-case__body { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .use-case__body > img { max-width: 360px; margin-inline: auto; }
  .detail-cta { padding-block: 55px 62px; }
  .detail-cta h2 { font-size: 21px; }
}

@media (max-width: 700px) {
  .phone-hero { padding: 22px 0 40px; }
  .phone-hero__inner { display: flex; flex-direction: column; min-height: 0; gap: 0; }
  .phone-hero__content { display: contents; }
  .phone-hero h1 { order: 2; margin-bottom: 22px; }
  .phone-hero h1 span { font-size: clamp(42px, 14vw, 58px); }
  .phone-hero h1 small { font-size: 30px; }
  .phone-hero__image { order: 3; width: 100%; margin: 0 0 28px; }
  .phone-hero__content > p { order: 4; margin-bottom: 22px; font-size: 14px; line-height: 1.85; }
  .phone-hero__content > p br { display: none; }
  .phone-hero .detail-button { order: 5; }
}

@media (max-width: 768px) {
  .steps { padding: 0 20px 80px; }
  .steps .narrow-container { width: 100%; }
  .steps h2 { margin-bottom: 0; padding-top: 5rem;}
  .steps__lead { margin-bottom: 40px;}

  .step-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 24px 48px;
    text-align: center;
  }

  .step-card::before {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
  }

  .step-card:last-child { padding-bottom: 3rem; }
  .step-card:last-child::before { clip-path: none; }
  .step-card__number { font-size: 3rem; }
  .step-card > img { width: min(100%, 260px); margin-inline: auto; }
  .step-card h3 { font-size: 1.5rem; }
  .step-card p { font-size: 1rem; text-align: left; padding-bottom: 2rem; }
  .step-last-card p { padding-bottom: 0; }
}

@media (max-width: 460px) {
  .overview__features { gap: 12px; }
  .overview__features b { font-size: 18px; }
  .feature-icon img { width: 47px; max-height: 47px; }
  .service-summary { grid-template-columns: 1fr; gap: 55px; width: min(100%, 300px); }
  .service-summary__card { min-height: 225px; }
  .service-summary__card ul { padding-inline: 42px;}
  .service-summary__card p { margin-top: 72px; }
}
