@charset "UTF-8";

/* PRFW004623: TOPページ申込導線（/contents/mspk.html のデザインを踏襲） */
:root {
  --top-green: #00a987;
  --top-green-dark: #008d70;
  --top-blue: #1a4fc0;
  --top-orange: #ff7878;
  --top-orange-dark: #e45f5f;
  --top-ink: #1a1d24;
  --top-ink-sub: #56616f;
  --top-line: #dde4ee;
  --top-bg: #f3f7fc;
}

#slider .slider_content img {
  width: 100%;
  height: auto;
}

.top-apply,
.top-modal,
.top-fixcta {
  color: var(--top-ink);
  font-size: 15px;
  line-height: 1.7;
}

.top-apply {
  position: relative;
  margin: 40px 0;
  padding: 36px 24px 28px;
  overflow: hidden;
  background: #f2f2f2 url("/contents/img/mspk/bg@2x.png") center / cover no-repeat;
  border-radius: 8px;
  box-sizing: border-box;
}

.top-apply__title {
  margin: 0;
  color: var(--top-ink);
  font-size: 27px;
  font-weight: bold;
  line-height: 1.45;
  text-align: center;
}

.top-apply__title::after {
  display: block;
  width: 48px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--top-green);
  content: "";
}

.top-apply__cards {
  display: flex;
  gap: 16px;
  margin-top: 26px;
}

.top-apply__card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  padding: 24px 20px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(10, 35, 82, 0.08);
  box-sizing: border-box;
}

.top-apply__card--have { background: #eaf8f5; }
.top-apply__card--none { background: #fffafa; }

.top-apply__cardhead {
  display: flex;
  align-items: center;
  min-height: 62px;
  margin-bottom: 18px;
  gap: 10px;
}

.top-apply__cardhead svg {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
}

.top-apply__cardhead b {
  font-size: 16px;
  line-height: 1.45;
}

#container a.top-apply__button,
.top-modal a.top-apply__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 54px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.top-apply__button::after {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

#container a.top-apply__button--primary,
.top-modal a.top-apply__button--primary { background: var(--top-green); }

#container a.top-apply__button--secondary,
.top-modal a.top-apply__button--secondary { background: var(--top-orange); }

#container a.top-apply__button:hover,
.top-modal a.top-apply__button:hover { color: #fff; opacity: 0.85; }

.top-apply__sub,
.top-modal__sub {
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
}

#container .top-apply__textlink,
.top-modal .top-apply__textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--top-green);
  font-weight: bold;
}

.top-apply__textlink::after {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.top-apply__note,
.top-apply__cardnote,
.top-apply__foot {
  color: var(--top-ink-sub);
  font-size: 12px;
}

.top-apply__note,
.top-apply__cardnote { margin: 7px 0 0; text-align: center; }
.top-apply__cardnote { margin-top: 14px; }
.top-apply__foot { margin: 20px 0 0; text-align: center; }

.top-apply__steps {
  margin-top: 26px;
  padding: 22px 20px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(10, 35, 82, 0.08);
}

.top-apply__steps-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.top-apply__steps-title::before,
.top-apply__steps-title::after {
  width: 24px;
  height: 2px;
  background: var(--top-green);
  content: "";
}

.top-apply__steps-title em { color: var(--top-green); font-style: normal; }

.top-apply__steps-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-apply__steps-list li {
  position: relative;
  flex: 1 1 0;
  text-align: center;
}

.top-apply__steps-list li:not(:last-child)::after {
  position: absolute;
  top: 44px;
  right: -5px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #c7d0dc;
  border-bottom: 2px solid #c7d0dc;
  content: "";
  transform: rotate(-45deg);
}

.top-apply__steps-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border-radius: 50%;
  background: #e2f4ef;
  color: var(--top-green);
  font-size: 16px;
  font-weight: bold;
}

.top-apply__steps-list svg {
  display: block;
  width: 32px;
  height: 32px;
  margin: 9px auto 7px;
}

.top-apply__steps-list b { font-size: 13px; }

.top-fixcta {
  position: fixed;
  z-index: 900;
  right: 0;
  top: 50%;
  width: 132px;
  transform: translate(120%, -50%);
  transition: transform 0.28s ease;
}

.top-fixcta.is-visible { transform: translate(0, -50%); }

.top-fixcta__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 24px 14px;
  border: 0;
  border-radius: 16px 0 0 16px;
  background: #fff;
  box-shadow: -4px 4px 18px rgba(10, 35, 82, 0.2);
  color: var(--top-blue);
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  cursor: pointer;
}

.top-fixcta__button::after {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.top-fixcta__button:hover { background: var(--top-blue); color: #fff; }

.top-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(10, 26, 54, 0.55);
  box-sizing: border-box;
}

.top-modal.is-open { display: flex; }

.top-modal__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: auto;
  padding: 32px 36px 28px;
  border-radius: 9px;
  background: #fff;
  box-sizing: border-box;
}

.top-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--top-ink-sub);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.top-modal__close:hover { background: var(--top-bg); }
.top-modal__title { margin: 0 0 20px; padding-right: 44px; font-size: 24px; font-weight: bold; }
.top-modal__cards { display: flex; gap: 14px; }

.top-modal__card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  padding: 20px 18px 22px;
  border: 1px solid var(--top-line);
  border-radius: 7px;
  text-align: center;
  box-sizing: border-box;
}

.top-modal__card > svg { width: 54px; height: 54px; margin: 0 auto 10px; }
.top-modal__card > b { margin-bottom: 18px; font-size: 16px; line-height: 1.5; }
.top-modal__card--have > b { color: var(--top-green); }
.top-modal__card--none > b { color: var(--top-orange-dark); }
.top-modal__cardnote { margin: 14px 0 0; color: var(--top-ink-sub); font-size: 12px; }
.top-modal__foot { width: fit-content; max-width: 100%; margin: 18px auto 0; color: var(--top-ink-sub); font-size: 12px; }
.top-modal__foot p { margin: 3px 0; }
.top-modal__foot a { color: var(--top-blue); text-decoration: underline; }
body.top-modal-open { overflow: hidden; }

.top-fixcta__button:focus-visible,
.top-modal button:focus-visible,
.top-modal a:focus-visible,
.top-apply a:focus-visible {
  outline: 3px solid #ffb300;
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .top-fixcta {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -4px 16px rgba(10, 35, 82, 0.16);
    transform: translateY(120%);
  }

  .top-fixcta.is-visible { transform: translateY(0); }
  .top-fixcta__button { flex-direction: row; min-height: 52px; padding: 10px 18px; border-radius: 999px; background: var(--top-green); box-shadow: none; color: #fff; }
}

@media (max-width: 767px) {
  .top-apply { margin: 30px 0; padding: 30px 16px 24px; }
  .top-apply__title { font-size: 22px; }
  .top-apply__cards,
  .top-modal__cards { flex-direction: column; }
  .top-apply__cardhead { min-height: 0; }
  .top-apply__steps-list { flex-direction: column; gap: 8px; }
  .top-apply__steps-list li { padding-bottom: 26px; }
  .top-apply__steps-list li:last-child { padding-bottom: 0; }
  .top-apply__steps-list li:not(:last-child)::after { top: auto; right: auto; bottom: 7px; left: 50%; transform: rotate(45deg); }
  .top-modal__panel { padding: 26px 20px 22px; }
  .top-modal__title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .top-fixcta { transition: none; }
}
