.main-view {
  display: flex;
  align-items: center;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

.main-view .container {
  min-height: 7.5rem;
  height: 90vh;
  width: 100%;
  position: relative;
}

.main-view .contents {
  position: absolute;
  top: calc(50% - 2.7rem);
  left: -4rem;
  height: 4.7rem;
  z-index: 1;
}

.main-view .image-box .wrap {
  position: relative;
  height: 92%;
}

.main-view h1 {
  margin-bottom: 0.24rem;
  overflow-y: hidden;
}

.main-view h1 span {
  font-size: 0.277rem;
  color: var(--color-text-navy);
  display: block;
  opacity: 0;
  letter-spacing: 0.06em;
  transform: translateY(0.09rem);
  animation: headingAnimation 0.7s cubic-bezier(0.32, 0.1, 0, 1) forwards;
}

@keyframes headingAnimation {
  from {
    opacity: 0;
    transform: translateY(0.09rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-view h2 {
  display: flex;
  grid-gap: 0.18em;
  font-size: 0.367rem;
  letter-spacing: -0.125em;
  font-weight: 400;
}

.main-view h2 span {
  animation: subHeadingAnimation 580ms ease-in-out forwards;
  opacity: 0;
  display: inline-block;
}

.main-view h2 .beeline:nth-child(1)  { animation-delay: 400ms; }
.main-view h2 .beeline:nth-child(2)  { animation-delay: 455ms; }
.main-view h2 .beeline:nth-child(3)  { animation-delay: 510ms; }
.main-view h2 .beeline:nth-child(4)  { animation-delay: 565ms; }
.main-view h2 .beeline:nth-child(5)  { animation-delay: 620ms; }
.main-view h2 .beeline:nth-child(6)  { animation-delay: 675ms; }
.main-view h2 .beeline:nth-child(7)  { animation-delay: 730ms; }
.main-view h2 .beeline:nth-child(8)  { animation-delay: 785ms; }
.main-view h2 .beeline:nth-child(9)  { animation-delay: 840ms; }
.main-view h2 .beeline:nth-child(10) { animation-delay: 895ms; }
.main-view h2 .beeline:nth-child(11) { animation-delay: 950ms; }
.main-view h2 .beeline:nth-child(12) { animation-delay: 1005ms; }
.main-view h2 .beeline:nth-child(13) { animation-delay: 1060ms; }

@keyframes subHeadingAnimation {
  from {
    opacity: 0;
    transform: translateY(0.05em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-view .logo {
  width: 4.57rem;
}

.main-view .logo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  animation: logoAnimation 2.26s cubic-bezier(0.33, 1, 0.68, 1) 0.38s forwards;
}

@keyframes logoAnimation {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.main-view .entry-box {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(0.09rem);
  animation: entryBoxAnimation 1.3s cubic-bezier(0.32, 0.1, 0, 1) 1.38s forwards;
}

@keyframes entryBoxAnimation {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.main-view .entry-box .button-box {
  width: 3.2rem;
  padding-top: 0.24rem;
}

.main-view .entry-box a {
  width: 3.2rem;
  max-width: none;
  height: 0.72rem;
  background-color: var(--color-background-navy);
  border-radius: 1rem;
  font-size: 0.26rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.25em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-view .entry-box p {
  font-size: 0.13rem;
  letter-spacing: 0.03em;
  text-align: center;
  margin-top: 0.08rem;
}

.main-view .main-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.main-view .image-box {
  width: 67%;
  /* height: 100%; */
  height: 80vh;
  position: absolute;
  top: 0;
  right: 0.3rem;
}

.main-view .main-image::before,
.main-view .main-image::after {
  content: '';
  background-size: cover;
  display: block;
  position: absolute;
}

.main-view .main-image::before {
  width: 100%;
  height: 110%;
  background-color: var(--color-background-purple);
  z-index: -1;
  right: -0.3rem;
  top: -0.4rem;
  opacity: 0.4;
}

.main-view .main-image::after {
  width: 100%;
  height: 110%;
  background-image: url(../assets/portal/index/bg.jpg);
  z-index: -2;
  right: 1.7rem;
  top: -0.16rem;
}

.main-view .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-view .feature {
  position: absolute;
  right: 0.3rem;
  bottom: -0.5rem;
  width: 4.22rem;
}

.main-view .feature img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 1420px) and (min-width: 1121px) {
  .main-view .contents {
    /* left: -3.1rem; */
    left: -3.7rem;
    /* top: 3.8rem; */
    top: 0.8rem;
  }

  .main-view .logo {
    width: 4.6rem;
  }

  .main-view h1 {
    font-size: 0.18rem;
    margin-bottom: 0.12rem;
  }

  .main-view h2 {
    font-size: 0.37rem;
  }

  .main-view .entry-box a {
    width: 2.6rem;
    font-size: 0.24rem;
  }
}

@media screen and (max-width: 1121px) and (min-width: 769px) {
  .main-view .contents {
    /* top: 5.3rem; */
    top: 1.3rem;
    /* left: -3.1rem; */
    left: -3.7rem;
  }
}

.about {
  margin-top: 4em;
}

.about .container {
  position: relative;
  /* max-width: 13rem; */
  max-width: 11rem;
  width: 100%;
  margin: 0 auto;
}

.about h2 {
  line-height: 1.8;
  font-size: 0.27rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.about .head h2 .text {
  position: relative;
  display: inline-block;
}

.about .head h2 .text::before {
  content: '';
  display: inline-block;
  width: 0.427rem;
  height: 0.36rem;
  background-image: url(../assets/portal/index/radial.png);
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: -10px;
  left: -27px;
}

.about .heading-inner p {
  color: var(--color-text-navy);
  font-size: 0.18rem;
  letter-spacing: 0.08em;
}

.about .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  grid-gap: 0.4rem;
}

.about .content {
  position: relative;
}

.about .content .image .about-bg {
  position: relative;
  width: 3.95rem;
}

.about .content .image .about-bg img {
  width: 100%;
  height: auto;
}

.about .content .image .about-bg::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: #F3EFE2;
  position: absolute;
  top: 1em;
  left: 2em;
  z-index: -1;
}

.about .content .image .about-bg::after {
  content: 'ABOUT';
  display: inline-block;
  font-family: "classico-urw", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-text-white);
  font-weight: 500;
  position: absolute;
  bottom: -0.4em;
  right: -0.6em;
  line-height: 1;
}

.about .content .image .speech-bubble {
  background-image: url(../assets/portal/index/speech_bubble.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 1.4575rem;
  height: 0.911rem;
  display: block;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.14rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  opacity: 0;
}

.about .content .image .speech-bubble:first-of-type {
  top: -1.1em;
  left: -7.2em;
}

.about .content .image .speech-bubble:nth-of-type(2) {
  background-image: none;
  top: -3.8em;
  right: -3.7em;
}

.about .content .image .speech-bubble:nth-of-type(3) {
  background-image: none;
  bottom: 4.3em;
  right: -8.7em;
}

.about .content .image .speech-bubble:nth-of-type(2)::before, 
.about .content .image .speech-bubble:nth-of-type(3)::before {
  content: '';
  position: absolute;
  background-image: url(../assets/portal/index/speech_bubble.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  transform: scaleX(-1);
  display: inline-block;
  left: 0;
}

.about.active .content .image .speech-bubble {
  opacity: 0;
  animation: speechBubbleFadeIn 0.6s ease-out forwards;
}

.about.active .content .image .speech-bubble:first-of-type {
  animation-delay: 0s;
}

.about.active .content .image .speech-bubble:nth-of-type(2) {
  animation-delay: 0.2s;
}

.about.active .content .image .speech-bubble:nth-of-type(3) {
  animation-delay: 0.6s;
}

@keyframes speechBubbleFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.about .content .image .speech-bubble:nth-of-type(2)::before {
  width: 1.4638rem;
  height: 0.988rem;
}

.about .content .image .speech-bubble:nth-of-type(3)::before {
  width: 1.2988rem;
  height: 0.8354rem;
}

.about .content .image .speech-bubble:nth-of-type(2) .speech-bubble-text,
.about .content .image .speech-bubble:nth-of-type(3) .speech-bubble-text {
  position: relative;
  z-index: 1;
}

.about .content .image .speech-bubble:nth-of-type(3) .speech-bubble-text {
  right: 9px;
}

.about h2 .weight {
  color: var(--color-text-gold);
  font-size: 0.32rem;
  font-weight: 600;
  white-space: nowrap;
}

.how-to-use {
  padding: 0.4rem 0 0.2rem;
  margin: 5em 0.2rem 0rem;
  /* margin-inline: 5.3em; */
}

.how-to-use .heading {
  text-align: center;
  margin-bottom: 1em;
  /* border-top: 1px solid var(--color-border-light-gray);
  padding-top: 0.6rem; */
}

.how-to-use .heading h3 {
  font-size: 0.34rem;
  color: var(--color-text-navy);
  letter-spacing: 0.06em;
  font-weight: 500;
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.how-to-use .heading h3::before {
  content: 'HOW to use';
  display: block;
  font-family: "classico-urw", sans-serif;
  font-weight: 500;
  font-size: 0.29rem;
  letter-spacing: 0.08em;
  color: var(--color-text-purple);
}

.how-to-use .heading p {
  font-size: 0.18rem;
  color: var(--color-text-black);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-top: 0.16em;
}

.how-to-use .contents {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
  height: 18.85em;
}

.how-to-use .contents h4 {
  font-size: 0.21rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.06em;
  color: var(--color-text-purple);
  position: absolute;
}

.how-to-use .item.match h4 {
  bottom: 6em;
  /* left: 1.2em; */
  left: -2.3em;
}

.how-to-use .item.message h4 {
  top: 2.8em;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap
}

.how-to-use .item.non-daily h4 {
  bottom: 4.8em;
  left: 0.7em;
}

.how-to-use .item {
  position: relative;
}

.how-to-use .item p {
  font-size: 0.18rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.06em;
  color: var(--color-text-navy);
}

.how-to-use .item img {
  display: inline-block;
}

.how-to-use .item::before {
  content:'';
  display: inline-block;
  border-radius: 100em;
  background-color: var(--color-light-gray);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  z-index: -1;
}

.how-to-use .item.match::before {
  width: 1.5508rem;
  height: 1.5508rem;
}

.how-to-use .item.message::before {
  width: 1.3991rem;
  height: 1.399rem;
}

.how-to-use .item.non-daily::before {
  width: 1.7812rem;
  height: 1.781rem;
}

.how-to-use .contents::before,
.how-to-use .contents::after {
  display: inline-block;
  font-size: 0.38rem;
  font-family: "classico-urw", sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-light-navy);
  position: absolute;
  top: 0;
}

.how-to-use .contents::before {
  content: 'START';
  transform: rotate(-24deg);
  top: -0.5em;
  left: -0.5em;
}

.how-to-use .contents::after {
  content: 'GOOL';
  top: -0.5em;
  right: -0.5em;
  transform: rotate(24deg);
}

.how-to-use .item.match img  {
  width: 1.3487rem;
  height: auto;
  position: absolute;
  top: 5.4em;
  right: 3.5em;
}

.how-to-use .item.match p {
  transform: rotate(-10deg);
  position: relative;
  top: 3.1em;
  left: 0.9em;
  font-size: 0.15rem;
}

.how-to-use .item.match p span {
  display: inline-block;
  position: relative;
}

.how-to-use .item.match p .match-text::after {
  content: '';
  display: inline-block;
  background-image: url(../assets/portal/index/matching.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 0.44311rem;
  height: 0.4311rem;
  position: absolute;
  top: -1.2em;
  right: -5.2em;
}

.how-to-use .item.match p .left::before {
  transform: rotate(-45deg);
}

.how-to-use .item.match p .left::after {
  transform: rotate(-58deg);
}

.how-to-use .item.match p .right::before {
  transform: rotate(45deg);
}

.how-to-use .item.match p .right::after {
  transform: rotate(58deg);
}

.how-to-use .item.match p .left::before, 
.how-to-use .item.match p .right::before {
  content: '';
  display: inline-block;
  width: 2px;
  height: 3em;
  background-color: var(--color-background-gold);
  border-radius: 100em;
  position: absolute;
}

.how-to-use .item.match p .left::after, 
.how-to-use .item.match p .right::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 2em;
  background-color: var(--color-background-gold);
  border-radius: 100em;
  position: absolute;
}

.how-to-use .item.match p .left::before {
  top: -1.2em;
  left: -1em;
}

.how-to-use .item.match p .left::after {
  top: 0.1em;
  left: -1.1em;
}

.how-to-use .item.match p .right::before {
  top: -2.5em;
  right: -1.2em;
}

.how-to-use .item.match p .right::after {
  top: -1.2em;
  right: -1.4em;
}

.how-to-use .message::after {
  content: '';
  display: inline-block;
  background-image: url(../assets/portal/index/paper_airplane.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 1.0472rem;
  height: 0.6754rem;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: -3.1em;
  margin: auto;
}

.how-to-use .non-daily img {
  width: 1.845rem;
  height: auto;
  position: absolute;
  top: 5.8em;
  right: 1.2em;
}

.feature .matching-system {
  position: relative;
}

.feature .matching-system-container {
  /* max-width: 13rem; */
  max-width: 11rem;
  margin: 0 auto;
  position: relative;
}

.feature .matching-system-container::before {
  content: 'FEATURES';
  display: inline-block;
  font-family: "classico-urw", sans-serif;
  font-weight: 500;
  /* font-size: 0.62rem; */
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--color-text-white);
  position: absolute;
  top: -0.3em;
  left: 0;
  transform: rotate(-13deg);
  z-index: -1;
}

@media screen and (min-width: 13rem) {
  .feature .matching-system-container::before  {
    /* left: -1.6em; */
    left: -1.3em;
  }
}

@media screen and (max-width: 1299px) {
  .how-to-use {
    margin-inline: 5.3em;
  }

  .feature .matching-system-container::before  {
    left: 0;
  }

  .feature .matching-system-container ul {
    margin-inline: 0.6rem;
  }
}

.feature .matching-system::after {
  content: '';
  display: block;
  width: 100%;
  height: 70%;
  background-color: var(--color-background-light-gray);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
}

.feature .heading {
  text-align: center;
  padding: 0.4rem 0;
}

.feature .heading .description {
  font-size: 0.18rem;
}

.feature .heading h2 {
  font-size: 0.32rem;
  color: var(--color-text-navy);
  letter-spacing: 0.06em;
  font-weight: 500;
  line-height: 1.5;
}

.feature .contents {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feature .contents h3 {
  text-align: center;
  color: var(--color-text-purple);
  font-weight: 600;
  font-size: 0.21rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 0.3em;
}

.feature .contents ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 0.4rem;
  background-color: var(--color-background-white);
  padding: 0.8rem 0.4rem 0.8rem;
  box-sizing: border-box;
}

.feature .contents ul li {
  padding: 0.1rem 0.2rem;
}

/* 独自のマッチングシステム: 見出し（縦書き）とアイコン＋説明文の横並び */
.feature .matching-system .contents ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.14rem;
}

.feature .matching-system .contents ul li h3 {
  /* writing-mode: vertical-rl; */
  text-orientation: upright;
  margin-bottom: 0;
  flex-shrink: 0;
  line-height: 1.35;
}

.feature .matching-system .contents ul li figure {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature .matching-system .contents ul li figure .image {
  margin-bottom: 0.45em;
}

.feature .contents ul li figure .image {
  text-align: center;
  height: 4.8em;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1em;
}

.feature .contents ul li figure .image img {
  width: 0.8rem;
  height: auto;
  object-fit: cover;
}

.feature .contents figcaption {
  line-height: 1.6;
  color: var(--color-text-black);
  font-size: 0.16rem;
  text-align: center;
}

.feature .secret-matching {
  position: relative;
  overflow: hidden;
}

.feature .secret-matching-container {
  /* max-width: 13rem; */
  max-width: 11rem;
  margin: 0 auto;
  position: relative;
}

.feature .secret-matching-container::before, 
.feature .secret-matching-container::after {
  content: "";
  display: block;
  position: absolute;
  width: 100vw;
  z-index: -1;
}

.feature .secret-matching-container::before {
  background-color: var(--color-background-light-gray);
  height: 50%;
  top: 0;

}

.feature .secret-matching-container::after {
  background-color: var(--color-background-white);
  height: 50%;
  bottom: 0;
}

.feature .secret-matching .heading {
  position: relative;
}

.feature .secret-matching .heading::after {
  content: '';
  display: inline-block;
  width: 1.6rem;
  height: 1.8rem;
  background-image: url(../assets/portal/index/bg_secret.png);
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: -0.55em;
  right: 0;
  z-index: -1;
}

@media screen and (min-width: 1300px) {
  .feature .secret-matching .heading::after {
    right: -6em;
  }
}

@media screen and (max-width: 1299px) {
  .feature .secret-matching-container::before {  
    margin-left: 3.6em;
  }

  .feature .secret-matching .heading::after {
    right: 0;
    /* width: 1.3189rem; */
    /* height: 1.4583rem; */
  }

  .feature .secret-matching .secret-matching-container {
    /* margin: 0; */
    margin: 0 auto;
  }

  .feature .security-container {
    /* margin: 0; */
    margin: 0 auto;
  }
}

.feature .secret-matching .container {
  padding-bottom: 0.8rem;
}

.feature .secret-matching ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 0.2rem;
  background-color: var(--color-background-white);
  padding-bottom: 0.2rem;
  box-sizing: border-box;
  width: 100%;
}

@media screen and (max-width: 1299px) {
  .feature .secret-matching ul {
    /* margin-right: 0.4rem; */
    margin-right: 0.57rem;
    padding-left: 0.6rem;
  }
}

.feature .secret-matching ul h3 {
  font-size: 0.18rem;
}

.feature .secret-matching .contents ul li figure .image img {
  width: 0.42rem;
  height: auto;
}

.feature .secret-matching .contents ul li:nth-of-type(2) figure .image img {
  width: 0.63rem;
}

.feature .secret-matching .contents ul li:nth-of-type(3) figure .image img {
  width: 0.8917rem;
}

.feature .secret-matching .contents ul li:nth-of-type(4) figure .image img {
  width: 0.904rem;
}

.feature .secret-matching .contents ul li:nth-of-type(5) figure .image img {
  width: 0.6652rem;
}

.feature .secret-matching .contents ul li:nth-of-type(6) figure .image img, 

.feature .secret-matching .contents ul li:nth-of-type(6) figure .image img, 
.feature .secret-matching .contents ul li:nth-of-type(7) figure .image img, 
.feature .secret-matching .contents ul li:nth-of-type(8) figure .image img {
  width: 0.4222rem;
}

.feature .secret-matching .contents ul li {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  grid-gap: 0.2rem;
}

.feature .secret-matching .contents ul li figure figcaption {
  text-align: center;
  color: var(--color-text-purple);
  font-size: 0.16rem;
}

.feature .secret-matching .contents ul li figure figcaption .note {
  font-size: 0.12rem;
  color: var(--color-text-purple);
}

.feature .secret-matching .etc {
  display: flex;
  justify-content: end;
  position: relative;
}

.feature .secret-matching .etc span {
  font-size: 0.37rem;
  color: var(--color-text-light-navy);
  font-family: "classico-urw", sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  position: absolute;
  top: -1.3em;
  right: 0;
  display: inline-block;
  transform: rotate(-13deg);
}

.feature .container .annotation {
  font-size: 0.12rem;
  display: flex;
  justify-content: end;
  flex-direction: column;
  align-items: end;
  margin-right: 0.8rem;
}

.feature .container .annotation p {
  line-height: 1.4;
  margin-top: 0.03rem;
}

.feature .security {
  position: relative;
  overflow: hidden;
}

.feature .security-container {
  /* max-width: 13rem; */
  max-width: 11rem;
  margin: 0 auto;
  position: relative;
}

@media screen and (max-width: 1299px) {
  .feature .security-container {
    /* max-width: 100%;
    margin: 0; */
  }
}

.feature .security-container::before, 
.feature .security-container::after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  width: 100vw;
  z-index: -1;
}

.feature .security-container::before {
  background-color: var(--color-background-light-gray);
  height: 75%;
  top: 0;
}

.feature .security-container::after {
  background-color: var(--color-background-white);
  height: 25%;
  bottom: 0;
}

.feature .security .heading::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1.8rem;
  background-image: url(../assets/portal/index/bg_security.png);
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  /* top: -0.55em; */
  top: -0.1em;
  z-index: -1;
}

@media screen and (min-width: 13rem) {
  .feature .security .heading::before {
    left: -6em;
  }
}

@media screen and (max-width: 1299px) {
  .feature .security-container::before {
margin-right: 3.6em;
  }
  .feature .security .heading::before {
    left: 0;
    margin-left: 0.2rem;
  }


}

.feature .security .contents {
  position: relative;
  /* display: block; */
  /* margin-bottom: 10em; */
  margin-bottom: 3.6em;
}

.feature .security ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 0.1rem;
  background-color: var(--color-background-white);
  /* padding: 0.6rem 0.4rem 0.2rem; */
  padding-bottom: 0.2rem;
  box-sizing: border-box;
  width: 100%;
}

@media screen and (max-width: 1299px) {
  .feature .security ul {
    margin-left: 0.2rem;
    padding-right: 0.8rem;
  }
}

.feature .security ul li figcaption {
  text-align: center;
  color: var(--color-text-purple);
}

.faq {
  background-color: var(--color-background-light-navy);
}

.faq .heading {
  text-align: center;
  padding: 0.4rem 0 0;
}

.faq .heading .description {
  font-size: 0.18rem;
}

.faq .heading h2 {
  font-size: 0.32rem;
  color: var(--color-text-navy);
  letter-spacing: 0.06em;
  font-weight: 500;
  line-height: 1.5;
}

.faq .container {
  /* max-width: 13rem; */
  max-width: 11rem;
  margin: 0 auto;
  padding: 0.4rem 0.4rem 0.6rem;
}

.faq ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-inline: 0.4rem;
}

.faq li {
  background-color: var(--color-background-white);
  padding: 0.2rem;
  box-sizing: border-box;
  position: relative;
}

.faq li h3 {
  font-size: 0.2rem;
  color: var(--color-text-navy);
  letter-spacing: 0.06em;
  font-weight: 500;
  line-height: 1.5;
  border-bottom: 2px solid var(--color-light-navy);
  margin-bottom: 0.4em;
  padding-bottom: 0.2em;
  position: relative;
}

.faq li h3::before {
  content: '';
  display: inline-block;
  background-image: url(../assets/portal/index/question.png);
  background-size: cover;
  background-repeat: no-repeat;
  width: 0.8421rem;
  height: 0.4183rem;
  position: absolute;
  top: -2.3em;
  left: -3em;
  transform: rotate(-10deg);
  z-index: 1;
}

.faq li p {
  font-size: 0.16rem;
  color: var(--color-text-black);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.faq .more {
  text-align: center;
  margin-top: 3em;
}

.faq .more a {
  font-size: 0.18rem;
  color: var(--color-text-white);
  display: inline-block;
  background-color: var(--color-background-purple);
  color: var(--color-white);
  padding: 0.04rem 0.8rem;
  border-radius: 10em;
  letter-spacing: 0.25em;
}

.registration-box {
  height: 5rem;
  background: transparent url(../assets/portal/bg_signup.jpg) no-repeat repeat center center/cover;
  opacity: 0;
  transition: opacity 1s;
}

@media screen and (min-width: 2018px) {
  .registration-box {
    height: 7rem;
  }
}

.registration-box.active {
  opacity: 1;
}

.registration-box .container {
  margin: 0 auto;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.3rem;
  /* max-width: 13rem; */
  max-width: 11rem;
}

.registration-box .container .entry {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.registration-box .container h2 {
  font-size: 0.23rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  font-weight: 600;
  margin-bottom: 2em;
}

.registration-box .container p {
  font-size: 0.22rem;
  font-weight: 500;
  line-height: 2.1364;
  margin-top: 0.2rem;
}

.registration-box .container h3 {
  font-size: 0.31rem;
  font-weight: 500;
  margin-top: 0.16em;
  letter-spacing: 0.06em;
}

.registration-box .entry-box {
  width: 3.2rem;
  padding-top: 0.24rem;
}

.registration-box .entry-box a {
  width: 3.2rem;
  max-width: none;
  height: 0.72rem;
  background-color: var(--color-background-navy);
  border-radius: 1rem;
  font-size: 0.26rem;
  font-weight: 500;
  color: var(--color-text-white);
  letter-spacing: 0.25em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.registration-box .entry-box span {
  display: block;
  font-size: 0.13rem;
  margin-top: 0.08rem;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .about .head .inner, .about {
    display: block;
  }

  .main-view {
    margin-top: 0;
    margin-bottom: 0;
  }

  .main-view .container {
    width: 100%;
    height: auto;
    margin-top: 0.6rem;
    min-height: 3.76rem;
    overflow: hidden;
  }

  .main-view .image-box .wrap {
    height: auto;
  }

  .main-view .main-image {
    height: 2.1506rem;
  }

  .main-view .logo img {
    width: 2.21rem;
    object-fit: cover;
    position: absolute;
    top: 2.3em;
    left: 0.5em;
    display: inline-block;
    filter: drop-shadow(2px 4px 6px #fff);
  }

  .main-view .main-image img {
    position: absolute;
    top: 0.11rem;
    left: 0.52rem;
  }

  .main-view .main-image::after {
    right: 3em;
    height: 138%;
    top: -1.6em;
  }
  
  .main-view .main-image::before {
    right: 0;
    width: calc(100% - 5em);
    height: 130%;
    top: -0.41rem;
  }

  .main-view h1 span {
    font-size: 0.16rem;
    margin-bottom: 0.1rem;
    letter-spacing: 0.05em;
  }

  .main-view.active h1 span {
    font-size: 0.16rem;
  }

  .main-view .logo {
    margin: 0 auto;
  }

  .main-view h2 {
    font-size: 0.17rem;
    letter-spacing: -0.105em;
    font-weight: 500;
    margin-top: 2.4em;
    margin-left: 0.78em;
    filter: drop-shadow(2px 4px 6px #fff);
  }

  .about .head h2 .text::before {
    width: 0.35rem;
    height: 0.3rem;
    top: -0.5em;
    left: -0.8em;
  }

  .main-view .image-box {
    width: 100%;
    position: initial;
    height: auto;
  }

  .main-view .contents {
    position: absolute;
    z-index: 2;
    top: 3.8em;
    left: 0;
    width: 100%;
  }

  .main-view .contents h1 {
    margin-left: 0.3em;
    filter: drop-shadow(2px 4px 6px #fff);
  }

  .main-view .entry-box {
    margin-top: 0.1rem;
  }

  .main-view .entry-box .button-box {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.8rem;
  }

  .main-view .entry-box .button-box p {
    font-size: 0.12rem;
  }

  .main-view .entry-box a {
    font-size: 0.2rem;
    height: 0.58rem;
    width: 80%;
  }

  .main-view .feature {
    z-index: 1;
    bottom: initial;
    bottom: -0.03rem;
    z-index: 1;
    text-align: right;
    right: 0.1rem;
  }

  .main-view .feature img {
    width: 1.9rem;
  }

  .feature .heading {
    padding: 0.2rem;
  }

  .feature .heading .description {
    font-size: 0.16rem;
  }

  .feature .heading h2 {
    font-size: 0.25rem;
  }

  .about {
    margin-top: 2em;
  }

  .about .container {
    padding: 0 0.2rem;
    box-sizing: border-box;
  }

  .about .inner {
    place-items: initial;
  }

  .about h2 {
    font-size: 0.22rem;
    padding-left: 0.2rem;
    line-height: 1.5;
  }

  .about h2 .weight {
    font-size: 0.27rem;
    line-height: 1.4;
    display: inline-block;
    margin-top: 0.6em;
  }

  .about .head h2::before {
    width: 0.2rem;
    height: 0.2rem;
    top: -0.07rem;
    left: -0.12rem;
  }

  .about .heading-inner {
    margin-bottom: 6em;
  }

  .about .heading-inner p {
    font-size: 0.15rem;
    line-height: 1.5;
  }

  .about .content {
    margin-bottom: 2em;
  }

  .about .description {
    text-align: center;
    line-height: 1.5;
  }

  .about .content .image .about-bg {
    width: 94%;
  }

  .about .content .image .about-bg img {
    width: 100%;
    height: 100%;
    display: block;
  }

  .about .content .image .about-bg::before {
    top: 1em;
    left: 1em;
  }

  .about .content .image .about-bg::after {
    font-size: 0.59rem;
    right: -0.4em;
  }

  .about .content .image .speech-bubble {
    width: 1.2572rem;
    height: 0.8087rem;
  }
  
  .about .content .image .speech-bubble:nth-of-type(2) .speech-bubble-text {
    top: 0;
    left: 5px;
    font-size: 0.12rem;
  }
  
  .about .content .image .speech-bubble:nth-of-type(3) .speech-bubble-text {
    right: -5px;
    top: 0;
    font-size: 0.12rem;
  }

  .about .content .image .speech-bubble:nth-of-type(2)::before {
    width: 1.2884rem;
    height: 0.8287rem;
    top: 2.1em;
    right: 1em;
  }
  
  .about .content .image .speech-bubble:nth-of-type(2)::before {
    top: 0;
  }
  .about .content .image .speech-bubble:nth-of-type(3)::before {
    bottom: inherit;
  }

  .about .content .image .speech-bubble:first-of-type {
    top: -5em;
    left: -0.6em;
    font-size: 0.12rem;
  }
  
  .about .content .image .speech-bubble:nth-of-type(2) {
    background-image: none;
    top: -2.8em;
    right: -1em;

  }
  
  .about .content .image .speech-bubble:nth-of-type(3) {
    background-image: none;
    bottom: inherit;
    top: -6em;
    right: 7.3em;
  }

  .faq .container {
    padding: 0.2rem 0.2rem 0.4rem;
  }

  .faq .heading {
    padding-top: 0.2rem;
    /* padding-bottom: 0.1rem; */
  }

  .faq ul {
    grid-gap: 0.4rem;
  }

  .faq li h3::before {
    top: -2.2em;
    left: -1.6em;
    transform: rotate(0);
  }

  .faq .more {
    margin-top: 2em;
  }

  .how-to-use {
    margin: 0.4rem 0;
    padding: 0;
  }

  .how-to-use .contents {
    height: auto;
    display: block;
    grid-gap: 0.2rem;
    margin-top: 3.6em;
  }

  .how-to-use .heading {
    padding-top: 0.3rem;
  }

  .how-to-use .contents::before, 
  .how-to-use .contents::after {
    font-size: 0.25rem;
  }

  .how-to-use .contents::before {
    top: -50px;
    left: -10px;
  }

  .how-to-use .contents::after {
    top: inherit;
    bottom: -10px;
    transform: rotate(-24deg);
  }

  .how-to-use .heading h3 {
    font-size: 0.28rem;
  }

  .how-to-use .heading h3::before {
    font-size: 0.22rem;
  }

  .how-to-use .contents .item h4 {
    white-space: nowrap;
    font-size: 0.18rem;
  }

  .how-to-use .contents .item.match h4 {
    bottom: 3em;
    left: 2em;
  } 

  .how-to-use .item::before {
    position: inherit;
  }

  .how-to-use .item.match p {
    position: absolute;
    top: -2em;
    left: inherit;
    right: 4em;
    transform: rotate(-13deg);
  }
  
  .how-to-use .item.match::before {
    margin: 0;
    left: calc(100% - 11em);
  }

  .how-to-use .item.match img {
    top: 0.7em;
    right: 0;
  }

  .how-to-use .message::after {
    margin: 0;
  }

  .how-to-use .contents .item.message h4 {
    top: 2.8em;
    left: 7em;
    transform: none;
  }

  .how-to-use .contents .item.message::after {
    top: 38px;
    left: -7px;
  }

  .how-to-use .contents .item.message::after {
    width: 1.2rem;
    height: 0.78rem;
  }

  .how-to-use .item.match p .right::after {
    height: 1.2em;
    top: -0.8em;
    right: -1.2em;
  }

  .how-to-use .item.match p .match-text::after {
    transform: rotate(18deg);
    top: 0.2em;
    right: -4.7em;
    width: 0.4311rem;
    height: 0.4311rem;
  }

  .how-to-use .contents .item.non-daily {
    margin-top: 1em;
  }

  .how-to-use .contents .item.non-daily img {
    top: -0.3em;
    right: 3.2em;
  }

  .how-to-use .contents .item.non-daily::before {
    margin: 0;
    left: calc(100% - 18em);
  }

  .how-to-use .contents .item.non-daily h4 {
    bottom: 4.3em;
    left: 0.7em;
  }

  .feature .matching-system::after {
    z-index: -2;
    height: 42%;
  }

  .feature .secret-matching .container {
    padding-bottom: 0.4rem;
  }

  .feature .matching-system-container::before {
    z-index: -1; 
    font-size: 0.43rem;
    line-height: 1;
    top: 0.3em;
  }

  .feature .matching-system .contents {
    /* margin: 20px; */
    margin: 0 0.2rem 0.2rem;
  }

  .feature .matching-system ul {
    display: flex;
    flex-direction: column;
    padding-block: 0.4rem;
    /* padding-bottom: 0.4rem; */
    margin-inline: 0;
  }

  .feature .matching-system .contents ul li {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }

  .feature .matching-system .contents ul li h3 {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    margin-bottom: 0.15em;
  }

  .feature .matching-system .contents ul li figure .image {
    margin-bottom: 0.35em;
  }

  .feature .secret-matching-container::before {  
    margin-left: 0.1em;
  }

  .feature .secret-matching-container::after {
    height: 63%;
  }

  .feature .secret-matching ul {
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.2rem;
    padding: 0.4rem 0.2rem 0.4rem 0.4rem;
    margin-right: 0.2rem;
  }

  .feature .secret-matching ul li { 
    padding: 0;
  }

  .feature .secret-matching .contents ul li { 
    grid-gap: 0;
  }

  .feature .secret-matching .contents ul li h3 {
    font-size: 0.16rem;
  }

  .feature .secret-matching .contents ul li .image {
    margin-bottom: 0.2em;
  }

  .feature .container .annotation {
    display: block;
    margin-left: 0.3rem;
    margin-right: 0;
  }

  .feature .secret-matching .etc span {
    font-size: 0.36rem;
    top: -1.3em;
    right: 0.4em;
  }

  .feature .security .heading::before {
    width: 0.9725rem;
    height: 1.0905rem;
    top: 0.08em;
    left: 0.2em;
  }

  .feature .security .contents {
    margin-bottom: 1em;
  }

  .feature .security-container::before {
    margin-right: 0.1em;
  }

  .feature .security-container::after {
    height: 40%;
  }

  .feature .security ul {
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.2rem;
    padding: 0.4rem 0.4rem 0.2rem 0.4rem;
    margin-left: 0.2rem;
  }

  .feature .contents ul li {
    padding: 0;
  }

  .feature .contents h3 {
    font-size: 0.18rem;
  }

  .feature .contents ul li figure figcaption p {
    font-size: 0.14rem;
  }

  .feature .container .annotation p {
    font-size: 0.1rem;
  }

  .faq .heading h2 {
    font-size: 0.25rem;
  }
 
  .registration-box {
    height: auto;
    padding-top: 2.2rem;
    padding-bottom: 0.3rem;
    background-image: url(../assets/portal/bg_signup01_sp.jpg), url(../assets/portal/bg_signup02_sp.png);
    background-repeat: no-repeat, no-repeat;
    background-position: top center, bottom center;
    background-size: contain, 100% auto;
  }

  .registration-box .container h2 {
    font-size: 0.16rem;
    text-align: center;
  }

  .registration-box .container h3 {
    font-size: 0.21rem;
  }

  .registration-box .container p {
    font-size: 0.15rem;
    text-align: center;
  }

  .registration-box .entry-box a {
    width: 100%;
    height: 0.5rem;
    font-size: 0.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .registration-box .entry-box span {
    font-size: 0.12rem;
    margin-top: 0.06rem;
  }

  .registration-box .container {
    padding: 0;
    justify-content: center;
  }

  .registration-box img {
    width: 2.8418rem;
    height: auto;
  }
}