@charset "UTF-8";
/*
 * doc-migration.css
 * 乗り換え成功ガイドの公開ページ（2026-09）
 *   対象: /request-info/migration-guide-doc/
 * 共通部分（KV・バッジ・チェック項目・保存/メール）は doc-open.css を使う。
 * このファイルは、このページ固有の入力欄・日程表・事例カードだけを持つ。
 */

/* ==========================================================================
   乗り換え前の不安
   ========================================================================== */
.p-mgFears {
  display: grid;
  gap: 1.6rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}

.p-mgFear {
  padding: 2rem;
  border: 0.1rem solid var(--docOpen-line);
  border-radius: 0.8rem;
  background: #fff;
}

.p-mgFear__title {
  position: relative;
  margin: 0;
  padding-left: 2.4rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--docOpen-navy);
}

/* 見出しの頭に「？」を置いて、不安の列挙であることを示す */
.p-mgFear__title::before {
  content: "？";
  position: absolute;
  top: 0.1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #e5eef2;
  font-size: 1.1rem;
  line-height: 1;
  color: #5b7285;
}

.p-mgFear__txt {
  margin: 1.2rem 0 0;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--docOpen-txt);
}

.p-mgFear__answer {
  margin: 1.4rem 0 0;
  padding: 1.2rem 1.4rem;
  border-radius: 0.6rem;
  background: #f2fbf9;
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--docOpen-txt);
}

.p-mgFear__answerLabel {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #17806f;
}

/* ==========================================================================
   入力（区分・稼働希望日）
   ========================================================================== */
.p-mgInput {
  margin-top: 2.4rem;
  padding: 2rem;
  border: 0.1rem solid #cfe9e3;
  border-radius: 0.8rem;
  background: #f4fbf9;
}

.p-mgInput__row + .p-mgInput__row {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 0.1rem solid #dcece8;
}

.p-mgInput__label {
  display: block;
  margin: 0 0 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--docOpen-navy);
}

.p-mgTypes {
  display: grid;
  gap: 1rem;
}

.p-mgType {
  display: block;
  cursor: pointer;
}

/* ラジオ本体は視覚的に隠すが、フォーカスリングは擬似要素側で出す */
.p-mgType__input {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  margin: -0.1rem;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.p-mgType__body {
  position: relative;
  display: block;
  padding: 1.4rem 1.6rem 1.4rem 4.4rem;
  border: 0.2rem solid #dcece8;
  border-radius: 0.6rem;
  background: #fff;
}

.p-mgType__body::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.6rem;
  width: 1.8rem;
  height: 1.8rem;
  margin-top: -0.9rem;
  border: 0.2rem solid #b8ccc7;
  border-radius: 50%;
  background: #fff;
}

.p-mgType__input:checked + .p-mgType__body {
  border-color: #1f9d88;
  background: #eafaf6;
}

.p-mgType__input:checked + .p-mgType__body::before {
  border-color: #1f9d88;
  border-width: 0.55rem;
}

.p-mgType__input:focus-visible + .p-mgType__body {
  outline: 0.2rem solid #123b5e;
  outline-offset: 0.2rem;
}

.p-mgType__name {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--docOpen-navy);
}

.p-mgType__note {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.3rem;
  color: #5b7285;
}

.p-mgInput__date {
  width: 100%;
  max-width: 28rem;
  padding: 1.2rem 1.4rem;
  border: 0.2rem solid #dcece8;
  border-radius: 0.6rem;
  background: #fff;
  font-family: inherit;
  font-size: 1.6rem;
  color: var(--docOpen-navy);
}

.p-mgInput__date:focus-visible {
  outline: 0.2rem solid #123b5e;
  outline-offset: 0.2rem;
}

.p-mgInput__note {
  margin: 1rem 0 0;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #5b7285;
}

.p-mgEmpty {
  margin: 2rem 0 0;
  padding: 2rem;
  border: 0.1rem dashed #cfe0e5;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  text-align: center;
  color: #5b7285;
}

/* ==========================================================================
   逆算した日程表
   ========================================================================== */
.p-mgSchedule {
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.p-mgStep {
  position: relative;
  padding: 0 0 2rem 2.8rem;
}

/* 縦の導線。最後の項目では下半分を描かない */
.p-mgStep::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  bottom: 0;
  left: 0.65rem;
  width: 0.2rem;
  background: #cfe9e3;
}

.p-mgStep:last-child::before {
  display: none;
}

.p-mgStep::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 0.3rem solid #1f9d88;
  border-radius: 50%;
  background: #fff;
}

.p-mgStep.-golive::after {
  background: #1f9d88;
}

.p-mgStep__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
}

.p-mgStep__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #17806f;
}

.p-mgStep__date {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--docOpen-navy);
}

.p-mgStep__dur {
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: #e5eef2;
  font-size: 1.2rem;
  color: #5b7285;
}

.p-mgStep__hdg {
  margin: 0.6rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--docOpen-navy);
}

.p-mgStep__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  margin: 0.8rem 0 0;
}

.p-mgStep__who {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
  color: #5b7285;
}

.p-mgStep__txt {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--docOpen-txt);
}

/* ==========================================================================
   準備の進捗
   ========================================================================== */
.p-mgReady {
  margin-top: 3.2rem;
  padding: 2rem;
  border: 0.1rem solid var(--docOpen-line);
  border-radius: 0.8rem;
  background: #fff;
}

.p-mgReady__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.p-mgReady__hdg {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--docOpen-navy);
}

.p-mgReady__count {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #17806f;
}

.p-mgReady__bar {
  margin-top: 1rem;
  height: 0.8rem;
  border-radius: 999px;
  background: #e5eef2;
  overflow: hidden;
}

.p-mgReady__barFill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: #1f9d88;
  transition: width 0.2s ease-out;
}

.p-mgReady__lead {
  margin: 1.2rem 0 0;
  font-size: 1.4rem;
  line-height: 1.7;
  color: #5b7285;
}

/* ==========================================================================
   3ステップの詳細
   ========================================================================== */
.p-mgSteps {
  display: grid;
  gap: 1.6rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}

.p-mgStepCard {
  padding: 2rem;
  border: 0.1rem solid var(--docOpen-line);
  border-radius: 0.8rem;
  background: #fff;
}

.p-mgStepCard__head {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.p-mgStepCard__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--docOpen-navy);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.p-mgStepCard__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--docOpen-navy);
}

.p-mgStepCard__sub {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: #5b7285;
}

/* 各ステップにかかる期間。逆算ツールの中だけにあってカード側に無かったため、
   本文でも読めるようにしている（他社POSからの乗り換えの場合の目安）。 */
.p-mgStepCard__term {
  /* PCではカードがグリッドなので、放っておくと帯状に伸びる。 */
  display: inline-flex;
  justify-self: start;
  align-items: center;
  margin: 1.4rem 0 0;
  padding: 0.5rem 1.2rem;
  border-radius: 0.4rem;
  background: #eef7f4;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  color: #17806f;
}

.p-mgStepCard__termVal {
  margin-left: 0.8rem;
  padding-left: 0.8rem;
  border-left: 0.1rem solid #bfe0d7;
  font-size: 1.4rem;
  color: var(--docOpen-navy);
}

.p-mgStepCard__txt {
  margin: 1.4rem 0 0;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--docOpen-txt);
}

.p-mgStepCard__list {
  margin: 1.4rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 0.1rem solid #e6f1ee;
  list-style: none;
}

.p-mgStepCard__list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--docOpen-txt);
}

.p-mgStepCard__list li + li {
  margin-top: 0.6rem;
}

.p-mgStepCard__list li::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 0.4rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #1f9d88;
}

/* ==========================================================================
   乗り換え事例
   ========================================================================== */
.p-mgCases {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.p-mgCase {
  padding: 2rem;
  border: 0.1rem solid var(--docOpen-line);
  border-radius: 0.8rem;
  background: #fff;
}

.p-mgCase__from {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: #e5eef2;
  font-size: 1.2rem;
  font-weight: 700;
  color: #5b7285;
}

.p-mgCase__shop {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--docOpen-navy);
}

.p-mgCase__meta {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.3rem;
  color: #5b7285;
}

.p-mgCase__quote {
  position: relative;
  margin: 1.4rem 0 0;
  padding: 1.2rem 1.4rem;
  border-radius: 0.6rem;
  background: #f2fbf9;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  color: #17806f;
}

.p-mgCase__rows {
  margin-top: 1.4rem;
  display: grid;
  gap: 1.2rem;
}

.p-mgCase__row {
  padding-left: 1.2rem;
  border-left: 0.3rem solid #dfe7ea;
}

.p-mgCase__row.-solution {
  border-left-color: #1f9d88;
}

.p-mgCase__rowLabel {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #5b7285;
}

.p-mgCase__row.-solution .p-mgCase__rowLabel {
  color: #17806f;
}

.p-mgCase__rowTxt {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--docOpen-txt);
}

.p-mgCase__link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #17806f;
}

.p-mgCase__link::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  margin-left: 0.8rem;
  border-top: 0.2rem solid currentColor;
  border-right: 0.2rem solid currentColor;
  transform: rotate(45deg);
}

/* ==========================================================================
   サポート一覧
   ========================================================================== */
.p-mgSupports {
  display: grid;
  gap: 1.6rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}

.p-mgSupport {
  padding: 1.8rem 2rem;
  border-radius: 0.8rem;
  background: var(--docOpen-bg);
}

.p-mgSupport__title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--docOpen-navy);
}

.p-mgSupport__txt {
  margin: 0.8rem 0 0;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--docOpen-txt);
}

/* ==========================================================================
   PC
   ========================================================================== */
@media screen and (min-width: 768px) {
  .p-mgFears {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.2rem;
  }

  .p-mgFear {
    display: flex;
    flex-direction: column;
    padding: 2.4rem;
  }

  .p-mgFear__answer {
    margin-top: auto;
  }

  .p-mgInput {
    padding: 2.4rem;
  }

  .p-mgTypes {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }

  .p-mgStep {
    padding-left: 3.2rem;
  }

  .p-mgStep__date {
    font-size: 1.6rem;
  }

  .p-mgStep__hdg {
    font-size: 1.6rem;
  }

  .p-mgSteps {
    gap: 2rem;
    margin-top: 3.2rem;
  }

  .p-mgStepCard {
    padding: 2.8rem;
  }

  .p-mgCases {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .p-mgCase {
    display: flex;
    flex-direction: column;
    padding: 2.4rem;
  }

  .p-mgCase__link {
    margin-top: auto;
    padding-top: 1.6rem;
  }

  .p-mgSupports {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ==========================================================================
   画像
   文字だけのページになっていたため、配布資料の写真を各所に置いている。
   いずれも情報を持たない添え物なので alt は内容の説明にとどめる。
   ========================================================================== */
/* 写真は主役ではないので、帯として高さを固定して切り出す。
   aspect-ratio だと横幅が広いPCで高くなりすぎる */
.p-mgStepCard__img,
.p-mgCase__img {
  display: block;
  width: calc(100% + 4rem);
  height: 15rem;
  margin: -2rem -2rem 1.8rem;
  max-width: none;
  border-radius: 0.8rem 0.8rem 0 0;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .p-mgCase__img {
    width: calc(100% + 4.8rem);
    height: 17rem;
    margin: -2.4rem -2.4rem 2rem;
  }

  /* PCでは写真を横に置く。1カラムのまま上に敷くと元画像（640px幅）を
     引き伸ばすことになり、構図も上下に切れてしまうため */
  .p-mgStepCard {
    display: grid;
    grid-template-columns: 24rem 1fr;
    gap: 0 2.4rem;
    align-items: start;
    padding: 2.4rem;
  }

  .p-mgStepCard__img {
    grid-row: 1 / span 3;
    width: 100%;
    height: 100%;
    min-height: 18rem;
    margin: 0;
    border-radius: 0.6rem;
  }

  .p-mgStepCard__head,
  .p-mgStepCard__txt,
  .p-mgStepCard__list {
    grid-column: 2;
  }

  .p-mgStepCard__txt {
    margin-top: 1.2rem;
  }

}

/* サポート一覧の写真。カードが文字だけで続くため、
   左に正方形のサムネイルを置いて視線の起点を作っている（2026-09追加） */
.p-mgSupport {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0 1.6rem;
  align-items: start;
}

.p-mgSupport__img {
  grid-row: 1 / span 2;
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .p-mgSupport {
    grid-template-columns: 8.8rem 1fr;
    gap: 0 2rem;
  }

  .p-mgSupport__img {
    width: 8.8rem;
    height: 8.8rem;
  }
}
