﻿* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #000;
  line-height: 1.7;
}

html, body {
  height: 100%;
  overflow: hidden;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#pageWrapper {
  transition: opacity 0.4s ease;
}

#pageWrapper.is-hide {
  opacity: 0;
}

.scroll {
  height: 100dvh;
  overflow-y: auto; /* ← ここだけスクロール */
  -webkit-overflow-scrolling: touch; /* iPhone対策 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.25);
}

.scroll::-webkit-scrollbar {
  display: none;
}

.scroll_inner {
  background-color: #fff;
}


main > .styles_areasWrapper__XBIxU {
  background-color: #fff;
}

.styles_wrapper__Q3D_X {
  min-width: 145px;
}

.kv {
  background-color: #FFFFFF;
  width: 100%;
  height: 100%;
  padding: 13px 5.5px 39px;
  position: relative;
  overflow: hidden;
}

.kv .curve{
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 32.69px;
}

.logo_wrapper {
  width: 364px;
  height: 230px;
  padding: 8px 14.5px;
  margin: 0 auto;
  position: relative;
}

.logo_wrapper .content {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
  text-align: center;
}

.logo_wrapper .background {
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
}

.logo_wrapper .content .title {
  font-weight: 600;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 5%;
  text-align: center;
  color: #1a1a1a;
}

.logo_wrapper .content .title span {
  font-size: 22px;
  color: #ff554b;
}

.top_about {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #fef3ca;
  padding: 0 16px 32px;
  position: relative;
}

.top_about_h2 {
  font-weight: 600;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0%;
  text-align: center;
  color: #1a1a1a;
}


.top_about_list {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.top_about_list .list {
  width: 100%;
  background-color: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0px 0px 12px 0px #c0a56b40;
  display: flex;
  align-items: center;
  gap: 16px;
}

.top_about_list .list p {
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
  letter-spacing: 0%;
  color: #1a1a1a;
}

.diagnosis {
  padding: 0;
  align-self: stretch;
  width: 100%;
}

.diagnosis__inner {
  margin: 0 auto;
  position: relative;
}

.diagnosis__title {
  font-weight: 600;
  font-size: 26px;
  line-height: 150%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  color: #1a1a1a;
}

.diagnosis__lead {
  margin: 0 0 32px;
  text-align: center;
  color: #666;
}

.progress {
  margin-bottom: 28px;
}

.progress__text {
  margin-bottom: 8px;
  font-weight: 700;
  text-align: right;
}

.progress__bar {
  width: 100%;
  height: 10px;
  background: #e8ebf2;
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar-fill {
  width: 0%;
  height: 100%;
  background: #1dbca7;
  transition: width 0.3s ease;
}

.questionCard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0px 0px 12px 0px #c0a56b40;
}

.questionCard__q_title {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
}

.questionCard__number {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 120px;
  background: #fcc800;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.questionCard__title {
  font-size: 16px;
  flex: 1;
  font-weight: 600;
  line-height: 150%;
  letter-spacing: 0%;
  color:  #1A1A1A;
}

.answers {
  display: grid;
  gap: 12px;
}

.answerButton {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #d8dce8;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.answerButton:hover {
  border-color: #1dbca7;
  background: #f1fffc;
}

.answers--column {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
}

.answerOption {
  width: calc((100% - 12px) / 2);
  height: 38px;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.answerOption__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answerOption__text {
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 4px 24px;
  background: #ffffff;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 600;
  height: 100%;
  color: #1A1A1A;
}

.answerOption__input:checked + .answerOption__text {
  background-color: #FCC800;
  border: 1px solid #FCC800;
}

.answerOption__input:checked + .answerOption__text::before {
  content: "";
  width: 16px;
  height: 12px;
  background-image: url("../img/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.answerOption__input:focus-visible + .answerOption__text {
  outline: 3px solid #10365E;
  outline-offset: 0px;
  border: none;
}

.diagnosis__quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background-color: #fcc800;
  position: relative;
  padding: 32px 16px 64px;
}

.diagnosis__quiz-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#quizContainer {
  max-width: 980px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quizAction {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 980px;
}

.answerError {
  color: #df251a;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
}

.questionCard--error {
  border: 2px solid #ff554b;
}

.button--main {
  border: 2px solid #2887EB;
  background-color: #2887EB;
  color: #FFFFFF;
}

#showResultButton {
  width: 100%;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0%;
  padding: 12px 32px;
  height: 60px;
}

@media (hover: hover) {
  /* SPで押下後にhoverの見た目が残らないようにホバーに対応しているデバイスのみに:hoverのスタイルを当てる */
  .button.button--main:hover {
    border: 2px solid #0066D2;
    background-color: #0066D2;
  }
}

.button.button--main:active {
  background-color: #064D99;
  border: 2px solid #064D99;
}

.button--main:focus-visible {
  outline: 3px solid #10365e;
  outline-offset: 0px;
}

.result {
  padding: 16px 0 0;
}
.resultCard_header {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
  padding: 0 16px;
  gap: 12px;
  margin: 0 auto;
}

.resultTxt_header {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  max-width: 980px;
}

.resultCard__imageWrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.resultCard__imageWrap::before {
  content: "";
  position: absolute;
  height: 45px;
  z-index: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background-color: #fef3ca;
  bottom: 0;
  border-radius: 50% 50% 0 0 / 25px 25px 0 0;
}

.resultTxt_header,
.resultCard__image {
  position: relative;
  z-index: 1;
}

.result__heading {
  display: inline-block;
  border-radius: 80px;
  background-color: #ff554b;
  position: relative;
  font-size: 14px;
  padding: 8px 24px;
  align-self: center;
  text-align: center;
}

.result__heading span {
 font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  align-items: center;
  color: #fff;
}

.result__heading span::after {
  content: '';
  width: 18px;
  height: 16px;
  position: absolute;
  background-repeat: no-repeat;
  background-image: url(../img/h2_arrow.svg);
  background-size: 100% auto;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.result__text {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}
.result__sub_title {
  line-height: 1.5;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}


.result__cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 48px;
  gap: 24px;
  background-color: #fef3ca;
}

.resultCard_wrap {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  gap: 16px;
}
.resultCard__jobCommentWrap  {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.resultCard_wrapText {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resultCard_wrapBtn {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 54px 16px 0px;
  gap: 16px;
  border-radius: 0 0 12px 12px;
  background-color: #fcc800;
}

.resultCard__toolTips {
  position: absolute;
  top: -10px;
}

#rank1Result {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
  border-radius: 12px;
  padding: 24px 0px 0px;
  background: #ffffff;
  box-shadow: 0px 0px 12px rgba(192, 165, 107, 0.25);
  gap: 32px;
}

.resultCard__type {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.4;
  color: #FF554B;
  text-align: center;
}

.result__text span {
  font-size: 16px;
  color: #000000;
  font-weight: 600;
  line-height: 1.5;
}

.resultCard__catch {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.5;
}

.resultCard__most {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #1a1a1a;
}

.resultCard__desc {
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.5;
}

.result__action {
  margin-top: 28px;
  text-align: center;
}

.button {
  display: inline-block;
  min-width: 260px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap:16px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
  position: relative;
}

.button--sub {
  background: #333;
  color: #fff;
}

.resultCard__image {
  text-align: center;
}

.resultCard__image img {
  width: 300px;
  height: 120px;
  margin: 0 auto;
}

.resultCard__toolTip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  background-color: #ffffff;
  border: 2px solid #757575;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

.resultCard__toolTip::after {
  content: " ";
  width: 18px;
  height: 10px;
  position: absolute;
  background-image: url(../img/mask_group@3x.png);
  background-repeat: no-repeat;
  background-size: 100% auto;
  bottom: -10px;
}

.resultCard__jobs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resultCard__comment {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resultCard__jobTags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.resultCard__jobTags > :nth-child(odd):last-child {
  grid-column: 1 / -1;
  width: calc((100% - 12px) / 2);
  justify-self: center;
}

.resultCard__jobTags[attribute="rank2"]{
  padding: 16px;
  background: #fcc800;
  border-radius: 12px;
}

.resultCard__jobTag {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px 8px;
  height: 56px;
  background: #ffffff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
  color: #1a1a1a;
  cursor: pointer;
  text-align: center;
}

.jobDetailSection {
  margin-top: 48px;
}

.jobDetailSection__heading {
  margin: 0 0 20px;
  font-size: 24px;
  text-align: center;
  color: #220000;
}

.jobDetailSectionList {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
  gap: 24px;
}

.jobDetailSectionList__heading {
  font-size: 20px;
  text-align: center;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 150%;
}

.jobDetailListCard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 980px;
  color: #1a1a1a;
}

.jobDetail__heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 980px;
  gap: 8px;
}

.jobDetail__heading img {
  width: 50px;
  margin: 0 auto;
}

.jobDetailList {
  display: grid;
  gap: 24px;
  padding: 0 20px 48px;
  color: #222222;
}

.jobDetailCard__title {
  background-color: #fcc800;
  padding: 16px 24px 16px 24px;
  font-size: 16px;
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  line-height: 150%;
}

.jobDetailCard__title.is-open {
  border-radius: 8px 8px 0 0;
}

.jobDetailCard__title::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url(../img/result/chevron_down_icon.svg) 0 0 no-repeat;
}

.jobDetailCard__title.is-open::after {
  content: "";
  background: url(../img/result/chevron_up_icon.svg) 0 0 no-repeat;
}

.jobDetailCard_inner {
  background-color: #FAEDBC;
  max-height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  border-radius: 0px 0px 8px 8px;
}

.jobDetailCard_in {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  gap: 24px;
}

.jobDetailCard__description {
  font-size: 16px;
  line-height: 150%;
  font-weight: 300;
}

.jobDetailCard__voices {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 12px;
}

.jobDetailCard__voicesHeading {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
}

.jobDetailCard__voiceList {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 12px;
}

.jobVoiceCard {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  gap: 12px;
}

.jobVoiceCard__person {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
}

.jobVoiceCard__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3f6d8;
}

.jobVoiceCard__name {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.jobVoiceCard__title {
  margin: 0;
  font-weight: 600;
  line-height: 150%;
  font-size: 16px;
}

.jobVoiceCard__subTitle {
  line-height: 140%;
  font-size: 12px;
  font-weight: 400;
}

.jobVoiceCard__comment {
  line-height: 150%;
  font-weight: 300;
  font-size: 16px;
}

.jobVoiceCard__attribute {
  margin: 0;
  text-align: right;
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.7);
  display: none;
  z-index: 100;
}

/* Modal */
#modal-select-area {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fcc800;
  display: none;
  width: 416px;
  opacity: 1;
  border-radius: 12px;
  overflow: hidden;
  max-height: min(367px, calc(100vh - 96px));
}

#modal-select-area:focus-visible {
  outline: unset;
}

.content-modal {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: min(367px, calc(100vh - 96px));
}

.title-wrapper{
  margin: 0; 
  text-align: center;
  padding: 32px 16px 12px 16px;
  position: sticky; 
  top: 0; 
  background-color: #fcc800;
}
.title-txt {
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
  color: #1A1A1A;
 
}

.selection-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding:12px 16px 24px 16px;
  overflow-y: auto;
  flex:1;
  grid-auto-rows: 56px;
}

.selection-button {
  background-color: #fff;
  transition: all 0.2s ease;
  height: 56px;
  padding: 16px 8px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.selection-button-txt{
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
  color: #1a1a1a;
  text-align: center;
}

.sub-content {
  display: none;
  animation: slideIn 0.4s ease;
}

.sub-content.active {
  display: flex;
  position: absolute;
  top: 0;
  width: 100%;
  background-color: #fcc800;
}

.sub-content.closing {
  animation: slideOut 0.4s ease forwards;
}

.sub-content[aria-hidden="true"] {
  display: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.close-button {
  position: absolute;
  top: 0px;
  right: 0px;
  background-image: url("../img/btn_close.svg");
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: #FCC800;
  background-position: center;
  z-index: 1;
}

.back-button {
  cursor: pointer;
  transition: all 0.2s ease;
  position: absolute;
  top: 22.5px;
  left: 2px;
  background-image: url("../img/btn_back.svg");
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-position: center;
}

.selection-wrapper.short-item {
  grid-template-columns: 1fr 1fr 1fr;
}

/* サブ職種紹介 */
#rank2Result {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0px 0px 12px rgba(192, 165, 107, 0.25);
  max-width: 980px;
  width: 100%;
  border-radius: 12px;
  padding: 24px 16px 16px;
  gap: 12px;
}

.result__sub__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 8px;
  gap: 12px;
}

.result__sub__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result__sub__content p {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
  color: #1a1a1a;
}

.result__sub__content h3 {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  line-height: 150%;
  color: #ff554b;
}

.result__sub__img {
  width: 225px;
  height: 90px;
}

.result__desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 150%;
  color: #1a1a1a;
}

@media (hover: hover) {
  /* SPで押下後にhoverの見た目が残らないようにホバーに対応しているデバイスのみに:hoverのスタイルを当てる */
.resultCard__jobTag:hover {
  background: #f5f5f5;
}

.close-button:hover {
    background-color:#D4A800;
}

.back-button:hover {
  background-color:#D4A800;
}

.selection-button:hover {
  background-color:#F5F5F5;
}
}

.resultCard__jobTag:active {
  background: #ebebeb;
}

.resultCard__jobTag:focus-visible {
  background: #ffffff;
  outline: 3px solid #10365e;
}

.selection-button:active {
  background-color: #EBEBEB;
}

.selection-button:focus-visible {
  outline: 3px solid #10365E;
}

.close-button:active {
  background-color:#8A6D00;
}

.close-button:focus-visible {
  outline: 3px solid #10365E;
  outline-offset: -3px;
}

.back-button:active {
  background-color:#8A6D00;
}

.back-button:focus-visible {
  outline: 3px solid #10365E;
  outline-offset: -3px;
}

.header {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  padding: var(--Spacing-None) var(--Spacing-Medium);
  background-color: var(--Yellow-500);
}

/* SP */
@media screen and (max-width: 768px) {
  .scroll {
    height: 100dvh;
  }

  #modal-select-area {
    width: calc(100vw - 48px);
    max-width: 375px;
    height: 367px;
  }

  .header {
    justify-content: center;
  }

  .top_about_list {
    flex-direction: column;
  }
}

@media screen and (min-width: 768px) {
  .jobDetailCard__voiceList {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0px;
    gap: 12px;
    height: 100%;
  }

  .jobDetailCard__voiceList > * {
    flex: 1;
  }

  .result__cards{
    gap: 32px
  }
}

@media screen and (max-width: 374px) {
  .logo_wrapper {
    width: auto;
    height: auto;
  }
}

.visually-hidden{
  position: absolute;
  width: 100%;
  height: 0;
  overflow: hidden; 
}
