/*▼QUEST＋FLOW共通背景▼*/

.be-work-flow {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  color: #fff;
  background-color: #111;
  background-image: url("../img/backgrounds/bg5.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: clamp(56px, 6vw, 96px) 16px;
}

.be-work-flow,
.be-work-flow * {
  box-sizing: border-box;
}

.be-work-flow__inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.be-flow {
  margin-top: clamp(72px, 8vw, 120px);
}
.be-flow__contact-label{
text-align:center;
margin-bottom:1em;
}

.be-panel__button {
  display: flex;
  justify-content: center;
}

.be-panel__button .be-action-btn {
  width: min(865px, 100%);
}

/*▼QUESTセクション 修正版▼*/

.be-quest-frame {
  position: relative;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(36px, 4vw, 56px);
  background: rgba(0, 10, 18, 0.78);
  box-shadow:
    0 0 18px rgba(80, 194, 194, 0.28),
    inset 0 0 28px rgba(80, 194, 194, 0.12);
}

.be-quest-frame::before,
.be-quest-frame::after,
.be-quest-frame .corner-frame__overlay::before,
.be-quest-frame .corner-frame__overlay::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  pointer-events: none;
  z-index: 3;
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 16px rgba(80, 194, 194, 0.65));
}

.be-quest-frame::before {
  top: -5px;
  left: -5px;
}

.be-quest-frame::after {
  top: -5px;
  right: -5px;
}

.be-quest-frame .corner-frame__overlay::before {
  bottom: -5px;
  left: -5px;
}

.be-quest-frame .corner-frame__overlay::after {
  bottom: -5px;
  right: -5px;
}

.be-quest-frame .corner-frame__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.be-quest-frame .corner-frame__body {
  position: relative;
  z-index: 1;
}

.be-quest__title-row {
  display: grid;
  grid-template-columns: clamp(100px, 16vw, 220px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
      margin-bottom: clamp(16px, 5vw, 20px);
}

.be-quest__icon img,
.be-quest__title-image img,
.be-quest__sub-title img {
  display: block;
  width: 100%;
  height: auto;
}

.be-quest__text {
  line-height: 2;
}

.be-quest__gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
      margin: clamp(16px, 4vw, 20px) 0;
}

.be-quest__gallery figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.be-quest__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.be-quest__sub-title {
  width: min(500px, 100%);
  margin: clamp(28px, 4vw, 48px) 0 clamp(16px, 2vw, 24px);
}

.be-app-grid {
  margin: clamp(16px, 3vw, 20px) 0;
  padding: 15px;
  background: rgba(25, 25, 36, 0.85);
}

.be-app-grid__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin:5px
}

.be-app {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 132px;
  padding: 14px 8px;
  text-align: center;
  color: #fff;
  background: rgba(31, 78, 189, 0.18);
}

.be-app img {
  display: block;
  width: clamp(44px, 5vw, 72px);
  height: auto;
}

.be-app span {
  font-weight: 700;
  font-size: 0.9rem;
}

.be-app--more span {
  font-size: 2.2rem;
  line-height: 1;
}

.be-quest__note {
  position: relative;
  margin: 0;
  padding: 1em 1.2em 1em 2.4em;
  line-height: 1.8;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.28);
}

.be-quest__note::before {
  content: "※";
  position: absolute;
  left: 1em;
  top: 1em;
  color: #9d7dc5;
  font-weight: 700;
}

.be-quest-accordion {
  margin-top: clamp(24px, 4vw, 48px);
  color: #fff;
}

.be-quest-accordion summary {
  cursor: pointer;
  padding: 1em 1.2em;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
}

.be-quest-accordion__body {
  padding: 1.2em;
}

.be-quest-accordion__body ul {
  margin-top: 0;
}

.be-quest__contact-btn {
  border-radius: 4px;
}

/*▼FLOWセクション 修正版▼*/

.be-flow-frame {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.be-flow-steps {
  padding: 0;
  list-style: none;
  margin-bottom:2em;
}

.be-flow-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
  background: transparent;
}

.be-flow-step + .be-flow-step {
  margin-top: 42px;
}

.be-flow-step__rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.be-flow-step__rail::after {
  content: "";
  position: absolute;
  top: 56px;
  bottom: -42px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 1px dashed rgba(255, 255, 255, 0.26);
}

.be-flow-step:last-child .be-flow-step__rail::after {
  display: none;
}

.be-flow-step__num {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: 48px;
  height: 48px;
  color: #fff;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid #53e7ef;
  box-shadow:
    0 0 8px rgba(83, 231, 239, 0.72),
    inset 0 0 8px rgba(83, 231, 239, 0.18);
}

.be-flow-step__num span {
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.be-flow-step__num strong {
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 800;
}

.be-flow-step__main {
  min-width: 0;
}

.be-flow-step__title {
  position: relative;
  margin: 0 0 14px;
  padding: 0 16px 12px 0;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.35;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.be-flow-step__title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: #28d8ef;
}

.be-flow-step__title::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border: 1px solid #28d8ef;
  border-radius: 50%;
  background: #061824;
  box-sizing: border-box;
}

.be-flow-step__content {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  min-height: 210px;
  background: transparent;
}

.be-flow-step__image {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.52);
}

.be-flow-step__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.be-flow-step__body {
  display: flex;
  align-items: center;
  padding: 22px 32px;
  background: rgba(0, 0, 0, 0.52);
}

.be-flow-step__body p {
  margin: 0;
  color: #fff;
  line-height: 1.9;
  font-size: clamp(0.9rem, 1vw, 1rem);
}

@media screen and (max-width: 959px) {

.be-quest__icon {
width:30%;
margin:auto;
}

  .be-work-flow {
    background-attachment: scroll;
    padding: 48px 16px;
  }

  .be-work-flow .title_back2 {
    font-size: clamp(72px, 20vw, 100px);
  }

  .be-work-flow .title_front2 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .be-quest-frame {
    padding: 28px 18px;
  }

  .be-quest-frame::before,
  .be-quest-frame::after,
  .be-quest-frame .corner-frame__overlay::before,
  .be-quest-frame .corner-frame__overlay::after {
    width: 38px;
    height: 38px;
    border-width: 6px;
  }

  .be-quest__title-row {
display:block;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
  }

  .be-quest__gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .be-app-grid__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .be-recommend__list {
    grid-template-columns: 1fr;
  }

.be-flow-frame {
  width: 100%;
}

.be-flow-step {
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
}

.be-flow-step + .be-flow-step {
  margin-top: 34px;
}

.be-flow-step__rail::after {
  top: 46px;
  bottom: -34px;
}

.be-flow-step__num {
  width: 44px;
  height: 44px;
}

.be-flow-step__num span {
  font-size: 0.54rem;
}

.be-flow-step__num strong {
  font-size: 1.08rem;
}

.be-flow-step__title {
  font-size: 1rem;
  padding-right: 12px;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.be-flow-step__title::after {
  right: 10px;
}

.be-flow-step__image img {
  min-height: 220px;
}

.be-flow-step__body {
  padding: 18px 18px 20px;
}

.be-flow-step__body p {
  font-size: 0.95rem;
  line-height: 1.85;
}

  .point-band {
    --person-w: 120px;
    --badge-w: 72px;
    padding: 88px 16px 120px;
    text-align: center;
margin-bottom:2em;
  }

  .point-band__badge {
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
  }

  .point-band__person {
    right: 50%;
    top: auto;
    bottom: -8px;
    transform: translateX(50%);
    width: 120px;
  }
}
@media screen and (max-width: 600px) {

.be-flow-step__content {
  grid-template-columns: 1fr;
}
.point-band__person{display:none;}
 .point-band{
    --person-w: 5vw!important;
    --badge-w : 72px;
    padding: 16px calc(var(--person-w) + 12px) 16px calc(var(--badge-w) + 14px);
  }

}
/*▼QUEST＋FLOW 追加補正▼*/

/* アコーディオン：左の標準三角を消して、右端に矢印を出す */
.be-quest-accordion summary {
  position: relative;
  list-style: none;
  padding: 1em 3em 1em 1.2em;
}

.be-quest-accordion summary::-webkit-details-marker {
  display: none;
}

.be-quest-accordion summary::after {
  content: "▲";
  position: absolute;
  right: 1.2em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  color: #fff;
}

.be-quest-accordion:not([open]) summary::after {
  content: "▼";
}


.be-recommend {
  position: relative;
  margin: clamp(22px, 4vw, 30px) 0;
  padding: clamp(24px, 3vw, 36px) clamp(28px, 4vw, 48px);
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 4px;
}

.be-recommend__label {
  position: absolute;
  top: 0;
  left: 32px;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 0.8em;
  color: #fff;
  background: #061824;
  text-align: left;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.4;
}

.be-recommend__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.be-recommend__list li {
  position: relative;
  padding-left: 1.7em;
  color: #fff;
  font-weight: 700;
}

.be-recommend__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #20d7c4;
  font-weight: 900;
}


/* QUEST/FLOW内のボタンだけ、元の赤→オレンジ系の横長ボタンに寄せる */
.be-work-flow .be-action-btn--red {
  width: min(865px, 100%);
  min-height: 52px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff4b55 0%, #ffb640 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .18);
}

.be-work-flow .be-action-btn--red:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}


/* POINT帯：人物画像が自然に外へ出るように微調整 */
.point-band {
  overflow: visible;
  min-height: 76px;
}

.point-band__person {
  right: clamp(16px, 4vw, 48px);
  top: -58px;
  width: clamp(190px, 22vw, 280px);
}


/* SP調整 */
@media screen and (max-width: 959px) {
  .be-recommend {
    padding: 32px 20px 24px;
  }

  .be-recommend__label {
    left: 20px;
    font-size: 0.9rem;
  }

  .be-recommend__list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .be-work-flow .be-action-btn--red {
    width: 100%;
  }

  .point-band__person {
    right: 50%;
    top: auto;
    bottom: -8px;
    transform: translateX(50%);
    width: 120px;
  }

  .be-flow-frame {
    width: 100%;
  }
}