@media (min-width: 768px) {
  .visible-sp {
    display: none !important;
  }
}

.visible-md {
  display: none !important;
}

@media (min-width: 768px) {
  .visible-md {
    display: block !important;
  }
}

/* cta */
.cta__txt {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: bold;
  line-height: 34px;
  text-align: center;
  color: #023b76;
}

.cta__btn {
  position: relative;
  display: block;
  width: 96%;
  max-width: 330px;
  padding: 10px 0;
  margin: 0 auto;
  border-radius: 4px;
  background-color: #023b76;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  font-size: 20px;
  font-weight: bold;
  line-height: 30px;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: center;
}

.cta__btn:visited,
.cta__btn:hover {
  color: #ffffff;
}

.cta__btn::before {
  position: absolute;
  top: -6px;
  left: -6px;
  display: block;
  width: 48px;
  height: 28px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-image: url(/branchera/assets/about/icon-free@2x.png);
  content: "";
}

/* container */
.container {
  width: 92%;
  /* max-width: 358px; */
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .container {
    max-width: 580px;
  }
}

.about {
  font-family: "Noto Sans JP", sans-serif;
}

/* mv */
.mv {
  padding: 0 0 40px;
  background-color: #ffed80;
}

.mv h1 {
  margin: 0 auto 40px;
  text-align: center;
}

/* benefit */
.benefit {
  padding: 0 0 60px;
  background-color: #ffed80;
}

@media screen and (min-width: 768px) {
  .benefit {
    padding-bottom: 80px;
  }
}

.benefit h2 {
  text-align: center;
}

.benefit__item {
  padding: 30px 14px 40px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

@media screen and (min-width: 768px) {
  .benefit__item {
    padding: 40px 14% 50px;
  }
}

.benefit__item:not(:last-of-type) {
  margin-bottom: 20px;
}

@media screen and (min-width: 768px) {
  .benefit__item:not(:last-of-type) {
    margin-bottom: 30px;
  }
}

.benefit__item h3 {
  width: 88px;
  margin: 0 auto 10px;
  border-radius: 13px;
  background-color: #023b76;
  font-size: 12px;
  font-weight: bold;
  line-height: 18px;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-align: center;
}

.benefit__item h4 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: bold;
  line-height: 26px;
  text-align: center;
  color: #333333;
}

.benefit__item h4 span {
  display: block;
  padding: 2px 0 0;
  font-size: 22px;
  font-weight: bold;
  line-height: 28px;
  color: #206dba;
}

.benefit__txt {
  font-size: 16px;
  font-weight: normal;
  line-height: 24px;
}

.benefit__btn {
  display: block;
  width: 100%;
  max-width: 306px;
  padding: 10px;
  margin: 0 auto;
  border-radius: 4px;
  background-color: #95cdfd;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  font-size: 18px;
  font-weight: bold;
  line-height: 26px;
  color: #023b76;
  text-align: center;
}

.benefit__btn:visited,
.benefit__btn:hover {
  color: #023b76;
}

.benefit__item--1 .wrap {
  position: relative;
  max-width: 330px;
  margin: 16px auto 0;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .benefit__item--1 .wrap {
    max-width: 334px;
    margin-top: 30px;
  }
}

@media screen and (min-width: 768px) {
  .benefit__item--1 .wrap .img {
    width: 346px;
    height: 278px;
  }
}

.benefit__item--1 .badge {
  position: absolute;
  top: -26px;
  right: -18px;
}

@media screen and (min-width: 768px) {
  .benefit__item--2 h4 {
    margin-bottom: 20px;
  }
}

.benefit__item--2 .img {
  margin: 0 0 20px;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .benefit__item--2 .img {
    margin-bottom: 30px;
  }
}

.benefit__item--3 {
  margin-bottom: 40px !important;
}

@media screen and (min-width: 768px) {
  .benefit__item--3 {
    margin-bottom: 60px !important;
  }
}

.benefit__item--3 h4 {
  margin-bottom: 0;
}

.benefit__item--3 .img {
  text-align: center;
}

.benefit__item--4 {
  margin-top: 40px;
}

@media screen and (min-width: 768px) {
  .benefit__item--4 {
    margin-top: 60px;
  }
}

.benefit__item--4 h4 {
  margin-bottom: 12px;
}

@media screen and (min-width: 768px) {
  .benefit__item--4 h4 {
    margin-bottom: 30px;
  }
}

.benefit__item--4 .img {
  text-align: center;
}

.benefit__item--5 h4 {
  margin-bottom: 20px;
}

.benefit__item--5 .img {
  text-align: center;
}

/* modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  transition: 0.3s;
  width: 100%;
  height: 100%;
  padding: 60px 16px;
  background: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  box-sizing: border-box;
  text-align: center;
  overflow: auto;
  opacity: 0;
  z-index: 100;
}

.modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  background-color: #95cdfd;
  border-radius: 50%;
  cursor: pointer;
  content: "";
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 28px;
  background: #023b76;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-container {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 700px;
  width: 100%;
}

.modal-content {
  padding: 40px 16px;
  border-radius: 10px;
  background: #ffffff;
}

.modal-content > .txt {
  padding: 0 0 20px;
  margin: 0 0 20px;
  border-bottom: 2px solid #dfeaf5;
  font-size: 18px;
  font-weight: bold;
  text-align: left;
  line-height: 30px;
}

@media screen and (min-width: 768px) {
  .modal-content > .txt {
    padding: 0 0 30px;
    margin: 0 0 26px;
    text-align: center;
  }
}

.modal-content h5 {
  font-size: 18px;
  font-weight: bold;
  line-height: 20px;
  color: #ef7900;
  text-align: center;
}

.modal-content .get h5 {
  margin: 0 0 16px;
}

@media screen and (min-width: 768px) {
  .modal-content .get h5 {
    margin-bottom: 12px;
  }
}

.modal-content .get .img {
  margin-bottom: 26px;
}

.modal-content .use h5 {
  margin: 0 0 8px;
}

@media screen and (min-width: 768px) {
  .modal-content .use h5 {
    margin-bottom: 12px;
  }
}

.modal-content .use .txt {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 30px;
  text-align: left;
}

@media screen and (min-width: 768px) {
  .modal-content .use .txt {
    margin-bottom: 26px;
    text-align: center;
  }
}

.modal-content .use .img {
  margin-bottom: 0;
}

/* message */
.message {
  padding: 60px 0;
  background-color: #e5f0f7;
}

@media screen and (min-width: 768px) {
  .message {
    padding: 80px 0 50px;
  }
}

@media screen and (min-width: 768px) {
  .message .container {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
}

.message__logo {
  margin: 0 0 24px;
  text-align: center;
}

.message h2 {
  margin: 0 0 20px;
  text-align: center;
}

.message__txt p {
  font-size: 14px;
  font-weight: 500;
  line-height: 30px;
}

.message__txt p:not(:last-of-type) {
  margin: 0 0 20px;
}

/* flow */
.flow {
  padding: 0 0 60px;
  background-color: #e5f0f7;
}

@media screen and (min-width: 768px) {
  .flow {
    padding-bottom: 80px;
  }
}

.flow__inner {
  padding: 30px 14px 40px;
  border-radius: 10px;
  background-color: #ffffff;
}

@media screen and (min-width: 768px) {
  .flow__inner {
    padding: 40px 30px;
  }
}

.flow h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: bold;
  line-height: 30px;
  color: #023b76;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .flow h2 {
    margin-bottom: 30px;
  }
}

.flow__list {
  max-width: 330px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .flow__list {
    max-width: 100%;
  }
}

.flow__item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .flow__item {
    padding: 0 11%;
  }
}

.flow__item .img {
  width: 96px;
}

@media screen and (min-width: 768px) {
  .flow__item .img {
    width: 170px;
  }
}

.flow__item .wrap {
  width: calc(100% - 96px);
  padding: 0 0 0 14px;
}

@media screen and (min-width: 768px) {
  .flow__item .wrap {
    width: calc(100% - 170px);
    padding-left: 34px;
  }
}

.flow__item .step {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: bold;
  line-height: 20px;
  color: #ffa345;
}

.flow__item .txt {
  font-size: 16px;
  font-weight: bold;
  line-height: 24px;
  color: #333333;
}

.flow__line {
  margin: 20px 0;
}

.flow__line img {
  vertical-align: middle;
}

/* faq */
.faq {
  padding: 0 0 60px;
  background-color: #e5f0f7;
}

@media screen and (min-width: 768px) {
  .faq {
    padding-bottom: 100px;
  }
}

.faq h2 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
  color: #023b76;
}

.faq__list {
  margin: 0 0 40px;
}

@media screen and (min-width: 768px) {
  .faq__list {
    margin-bottom: 60px;
  }
}

.faq__item {
  border-radius: 4px;
  font-size: 16px;
  line-height: 24px;
}

.faq__item:not(:last-of-type) {
  margin: 0 0 20px;
}

.faq__item .question {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px 48px 8px 14px;
  border: 1px solid #023b76;
  border-radius: 4px;
  background-color: #ffffff;
  font-weight: bold;
  color: #023b76;
  text-align: left;
  cursor: pointer;
}

@media screen and (min-width: 768px) {
  .faq__item .question:hover {
    opacity: 0.7;
  }
}

.faq__item .question::after {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  transition: transform 0.3s;
  display: block;
  width: 12px;
  height: 6px;
  background-image: url(/branchera/assets/about/faq-icon-open.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  content: "";
  animation: faq-close 0.3s ease-out forwards;
}

.faq__item .question::-webkit-details-marker {
  display: none;
}

.faq__item .answer {
  display: block;
  transform: translateY(-10px);
  transition: transform 0.5s, opacity 0.5s;
  padding: 16px 14px 20px;
  margin: 0;
  border-left: 1px solid #023b76;
  border-right: 1px solid #023b76;
  border-bottom: 1px solid #023b76;
  border-radius: 0 0 4px 4px;
  background-color: #ffffff;
  color: #333333;
  opacity: 0;
}

.faq__item[open] .question::after {
  animation: faq-open 0.3s ease-out forwards;
}

@keyframes faq-open {
  from {
    transform: rotate(0deg) translateY(-50%);
  }
  to {
    transform: rotate(180deg) translateY(50%);
  }
}

@keyframes faq-close {
  from {
    transform: rotate(180deg) translateY(50%);
  }
  to {
    transform: rotate(0deg) translateY(-50%);
  }
}

.faq__item[open] .answer {
  transform: none;
  opacity: 1;
}
