body {
  margin: 0;
  min-height: 100vh;
  background-color: #1a1a1a;
  background-image: url('../images/bg_01_red.png');
  background-position: center 300px;
  background-size: contain;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

.display-pc {
  display: block;
}
.display-sp {
  position: relative;
  width: 100%;
  display: none;
  z-index: 2;
}

.text-white {
  background: linear-gradient(to bottom, #ffffff 0%, #edebe7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shindan-container {
  padding: 20px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  margin-bottom: auto;
}

.shindan-char {
  position: absolute;
  width: auto;
  z-index: -1;
  user-select: none;
}

.shindan-char.shindan-char01 {
  top: 400px;
  left: -120px;
  width: auto;
  height: 500px;
}

.shindan-char.shindan-char02 {
  top: 300px;
  right: -160px;
  width: auto;
  height: 500px;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('../images/text_back.png');
  background-repeat: repeat-y;
  background-size: contain;
  background-position: center;
  padding-bottom: 10px;
  margin-top: -20px;
}
.header .header-title {
  margin-top: -30px;
}
.header .header-title h1 {
  display: none;
}
.header .header-title .title-image {
  max-width: 460px;
  width: 100%;
  height: auto;
}
.header .header-summary {
  margin-top: -50px;
  font-size: 32px;
}

#shindan-app {
  min-height: 532px;
}

.shindan-page {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.shindan-card {
  margin-top: 20px;
  width: 100%;
  max-width: 825px;
  height: 512px;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.shindan-card-bg {
  background-image: url('../images/shindan_text_frame.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.shindan-progress {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.shindan-progress-start {
  margin-bottom: -2px;
}

.shindan-progress-bar {
  width: 309px;
  height: 22px;
}

.shindan-question {
  width: 100%;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  height: 250px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.shindan-question p {
  text-align: left;
  font-size: 28px;
}

.shindan-question.shindan-question-start {
  background-color: transparent;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shindan-question.shindan-question-start img {
  width: 100%;
  height: auto;
  max-width: 540px;
  pointer-events: none;
  user-select: none;
}

.button {
  border: none;
  cursor: pointer;
  color: transparent;
  font-size: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.shindan-buttons {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.shindan-answer {
  position: relative;
  width: 232px;
  height: 80px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}
.shindan-answer.is-disabled {
  pointer-events: none;
  opacity: 0.7;
  cursor: default;
  touch-action: none;
}

.shindan-answer::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -22px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  width: 277px;
  height: 123px;
}

.shindan-answer.is-yes::before {
  background-image: url(../images/btn_yes.png);
}

.shindan-answer.is-no::before {
  background-image: url(../images/btn_no.png);
}

.shindan-answer.is-neutral::before {
  background-image: url(../images/btn_other.png);
}

.result-card {
  text-align: center;
}

.shindan-result-label {
  font-size: 32px;
}

.shindan-result-lead {
  font-size: 18px;
}

.shindan-result-name {
  width: 100%;
  margin-bottom: 10px;
}
.shindan-result-name p {
  font-size: 30px;
}

.shindan-result-content {
  width: 100%;
  margin-top: 20px;
  display: flex;
  align-items: center;
}

.shindan-result-image {
  width: 40%;
  height: 100%;
  position: relative;
  z-index: 0;
}

.shindan-result-image img {
  width: 120%;
  height: 100%;
  object-fit: cover;
  left: -40px;
  top: -40px;
  position: absolute;
  user-select: none;
}

.shindan-result-image .shindan-result-line {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: stretch;
  background-image: url('../../img/txt_bg.png');
  background-size: contain;
  z-index: 2;
}

.shindan-result-image .shindan-result-line p {
  font-size: 20px;
  text-align: left;
}

.shindan-result-main {
  width: 60%;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.shindan-result-main p.shindan-result-description {
  font-size: 16px;
}

.shindan-result-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.shindan-result-share {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
  height: 75px;
}

.shindan-share-x {
  border-radius: 999px;
  width: 60px;
  height: 60px;
  display: block;
  margin-left: 10px;
}
.shindan-share-x img {
  width: 60px;
  height: 60px;
}

.share-text {
  font-size: 14px;
}
.shindan-question.shindan-question-result {
  padding: 20px;
}
.shindan-result-reset {
  flex-shrink: 0;
  position: relative;
  width: 258px;
  height: 60px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  display: block;
}

.shindan-result-reset::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  width: 294px;
  height: 96px;
  background-image: url('../images/btn_one_more.png');
}

.start-card {
  text-align: center;
}

.shindan-start-button {
  position: relative;
  width: 384px;
  height: 114px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.shindan-start-button::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -21px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  height: 160px;
  aspect-ratio: 223 / 83;
  background-image: url('../images/btn_start_shindan.png');
}

.shindan-start-button:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.flex {
  gap: 16px;
  max-width: 800px;
  margin: 40px auto 0;
}

.flex img {
  width: 100%;
  height: auto;
}

.links {
  margin-top: 40px;
  display: flex;
  justify-items: center;
  justify-content: center;
  gap: 24px;
}

.links a {
  width: 100%;
  max-width: 460px;
  height: auto;
}

.links img {
  width: 100%;
  max-width: 460px;
  height: auto;
}

.footer {
  margin-top: auto;
  width: auto;
  padding: 40px 20px;
  text-align: center;
}

@media screen and (max-width: 1200px) {
  body {
    background-position: center 30vw;
    background-size: initial;
  }
}

@media screen and (max-width: 855px) {
  #shindan-app {
    min-height: 512px;
  }
  .shindan-result-content {
    margin-top: 10px;
  }
  .shindan-question {
    height: 230px;
  }
  .shindan-answer {
    width: 200px;
    height: 64px;
  }
  .shindan-answer::before {
    width: 242px;
    top: -20px;
    left: -20px;
  }
}

@media screen and (max-width: 768px) {
  .display-pc {
    display: none;
  }
  .display-sp {
    display: block;
  }

  .shindan-card {
    padding: 20px;
    max-width: 672px;
    max-height: 960px;
    justify-content: space-between;
  }
  .shindan-progress-bar {
    margin-top: 16px;
    width: 230px;
    height: 16px;
  }
  .shindan-progress-bar img {
    width: 100%;
  }

  .shindan-question {
    font-size: 22px;
    max-width: 330px;
    height: 180px;
  }
  .shindan-question p {
    font-size: 18px;
  }
  .header .header-title .title-image {
    max-width: 380px;
  }
  .header .header-summary {
    font-size: 22px;
  }
  .shindan-card-bg {
    background-image: url('../images/shindan_text_frame_sp.png');
  }
  .shindan-char.shindan-char01 {
    height: 400px;
    top: 56vw;
  }
  .shindan-char.shindan-char02 {
    top: 42vw;
    height: 460px;
  }
  .shindan-buttons {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 10px;
  }
  .shindan-answer {
    width: 154px;
    height: 52px;
  }
  .shindan-answer::before {
    width: 188px;
    top: -29px;
    left: -18px;
  }
  .flex {
    flex-direction: column;
    max-width: 240px;
  }
  .links {
    flex-direction: column;
    padding: 0 6vw;
  }
  .links a {
    margin: 0 auto;
    max-width: 320px;
  }
  .shindan-question.shindan-question-start {
    padding: 0;
  }
  .shindan-buttons.shindan-buttons-start {
    margin-bottom: 30px;
  }
  .shindan-start-button {
    width: 246px;
    height: 74px;
  }
  .shindan-start-button::before {
    width: 276px;
    top: -37px;
    left: -15px;
  }
  .shindan-card.result-card {
    max-width: 370px;
    justify-content: center;
    padding: 20px;
  }
  .shindan-result-label {
    font-size: 20px;
    margin-top: 20px;
  }
  .shindan-result-lead {
    font-size: 14px;
    margin-bottom: 0px;
  }
  .shindan-result-name {
    background-image: url('../../img/txt_bg.png');
    background-size: contain;
    position: absolute;
    z-index: 2;
    bottom: -30px;
    left: 0;
    padding: 0px 20px;
    margin: 0;
    width: auto;
  }
  .shindan-result-name p {
    font-size: 20px;
  }
  .shindan-result-content {
    flex-direction: column;
    gap: 0px;
    margin-top: 0px;
  }
  .shindan-result-image {
    height: 190px;
    width: 100%;
  }
  .shindan-result-image img {
    position: static;
    width: 100%;
    transform: scale(1.4);
    transform-origin: center 0px;
    object-fit: contain;
    margin-top: -40px;
  }
  .shindan-result-image .shindan-result-line {
    background-image: url('../../img/txt_bg.png');
    background-size: contain;
    bottom: 4px;
    padding: 0 20px;
  }

  .shindan-result-image .shindan-result-line p {
    font-size: 14px;
  }
  .shindan-result-main {
    width: 100%;
    max-width: 370px;
  }
  .shindan-result-main p.shindan-result-description {
    font-size: 14px;
  }
  .shindan-result-actions {
    justify-content: space-between;
    max-width: 370px;
    margin-top: 10px;
  }
  .shindan-result-share {
    height: 50px;
  }
  .share-text {
    font-size: 12px;
  }
  .shindan-share-x {
    width: 40px;
    height: 40px;
    margin-left: 20px;
  }
  .shindan-share-x img {
    width: 40px;
    height: 40px;
  }
  .shindan-result-reset {
    width: 160px;
    height: 37px;
  }
  .shindan-result-reset::before {
    width: 182px;
    height: 62px;
    left: -12px;
    top: -7px;
  }
}

@media screen and (max-width: 620px) {
  .header .header-summary {
    font-size: 22px;
  }
  .shindan-char.shindan-char01 {
    height: 300px;
  }
  .shindan-char.shindan-char02 {
    right: -120px;
    height: 340px;
  }
}

@media screen and (max-width: 560px) {
  .header .header-title .title-image {
    max-width: 320px;
  }
  .header .header-summary {
    font-size: 18px;
  }
  .shindan-result-image {
    height: 40vw;
  }
}

@media screen and (max-width: 460px) {
  .shindan-card {
    height: 128vw;
  }
  #shindan-app {
    min-height: 110vw;
  }
  .header .header-summary {
    margin-top: -40px;
    font-size: 16px;
  }
  .shindan-progress {
    margin-bottom: 16px;
  }
  .shindan-answer {
    width: 116px;
    height: 34px;
  }
  .shindan-answer::before {
    width: 140px;
    top: -40px;
    left: -12px;
  }
  .shindan-question {
    padding: 20px 10px;
  }
  .shindan-question.shindan-question-result {
    padding: 10px;
  }
  .shindan-result-label {
    font-size: 16px;
    margin-top: 20px;
  }
  .shindan-result-lead {
    font-size: 12px;
  }
  .shindan-result-name p {
    font-size: 18px;
  }
  .shindan-result-image {
    height: 58vw;
  }
  .shindan-question {
    height: 60vw;
  }
  .shindan-question p {
    font-size: 18px;
  }
  .shindan-result-main p.shindan-result-description {
    font-size: 12px;
  }
  .shindan-question.shindan-question-result {
    height: 36vw;
  }
  .shindan-result-share {
    height: 55px;
    gap: 4px;
  }
  .shindan-share-x {
    width: 34px;
    height: 34px;
    margin-left: 10px;
  }
  .shindan-share-x img {
    width: 34px;
    height: 34px;
  }
  .flex {
    margin: 20px auto 0;
    padding: 0 20vw;
    gap: 8px;
  }
  .links {
    margin-top: 20px;
    padding: 0 16vw;
  }
}

@media screen and (max-width: 360px) {
  .shindan-result-label {
    font-size: 14px;
    margin-top: 10px;
  }
  .shindan-result-name p {
    font-size: 14px;
  }
  .shindan-result-image {
    height: 54vw;
  }
  .shindan-result-image .shindan-result-line p {
    font-size: 12px;
  }
  .shindan-card.result-card {
    padding: 10px;
  }
  .shindan-result-share {
    height: 46px;
  }
  .share-text {
    font-size: 10px;
  }
  .shindan-share-x {
    width: 30px;
    height: 30px;
    padding-left: 0px;
    margin-left: 0px;
  }
  .shindan-share-x img {
    width: 30px;
    height: 30px;
  }
  .shindan-start-button {
    width: 160px;
    height: 48px;
  }
  .shindan-start-button::before {
    width: 180px;
    top: -52px;
    left: -10px;
  }
  .shindan-result-reset {
    width: 122px;
    height: 30px;
  }
  .shindan-result-actions {
    padding: 0 10px;
    margin-bottom: -2px;
  }
  .shindan-result-reset::before {
    width: 140px;
    height: 46px;
    top: -4px;
    left: -9px;
  }
}

@media screen and (min-width: 1919px) {
  body {
    background-size: cover;
    background-position: center top;
  }
}

@media screen and (max-width: 260px) {
  .shindan-start-button {
    width: 120px;
    height: 34px;
  }
  .shindan-start-button::before {
    width: 134px;
    top: -60px;
    left: -7px;
  }
}