/* ------------------------------------------------------------------------------------------------------------------ */
/* 診断トップページ */

.custom-top-diagnosis-page {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    background: #fff;
    font-weight: 500;
}

.diagnosis-top img {
    max-width: 100%;
    height: auto;
    display: block;
}

.diagnosis-start-button {
    background-color: #E9528E;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 62.4375rem;
    display: inline-block;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    width: 18.75rem;
    text-align: center;
    margin-top: 3rem;
    margin-left: auto;
    margin-right: auto;
}


.diagnosis-list-title {
    font-weight: 500;
    color: #7D40A0;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 5rem;
    display: flex;
    align-items: center;
    text-align: center;    
}

.diagnosis-list-title::before,
.diagnosis-list-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #7D40A0;
  margin: 0 10px;
}

.diagnosis-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 3rem;
    padding: 0 1rem;
    box-sizing: border-box;
    justify-items: center;
}

.diagnosis-card {
    margin: 0;
}

.diagnosis-card img {
    width: 100%;
    height: auto;
    display: block;
}

.diagnosis-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    width: 100%;
}

.diagnosis-btn {
    width: 100%;
    padding: 0.625rem 0.625rem;
    border-radius: 100px;
    border: 1px solid #7D40A0;
    background: #fff;
    color: #7D40A0;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
}

.diagnosis-about-section {
    padding: 0 1rem;
}

.diagnosis-about-title {
    text-align: center;
    font-size: 1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #AAAAAC;
    color: #535353;
}

.diagnosis-about-card {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 1rem;
    align-items: start;
}

.diagnosis-about-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.diagnosis-about-body p {
    margin: 0 0 0.75rem;
    color: #535353;
    font-size: 0.85rem;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 診断スタートページ */

.custom-diagnosis-page {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    background: #fff;
    font-weight: 500;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 診断結果ページ */

.custom-result-diagnosis-page {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    background: #fff;
    font-weight: 500;
    text-align: center;
}

.diagnosis-result img {
    max-width: 100%;
    height: auto;
    display: block;
}

.custom-result-diagnosis-error {
    margin-top: 40px;
    font-size: 1rem;
    color: #AAAAAC;
}

.custom-diagnosis-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 40px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.custom-diagnosis-retry-button {
    border-radius: 62.4375rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.1875;
    margin-top: 0.75rem;
    padding: 0.8125rem 1rem 0.875rem;
    position: relative;
    text-align: center;
    width: 18.5625rem;
    background-color: #ffffff;
    color: #E9528E;
    border: 1px solid #E9528E;  
    margin: 0 auto;
    display: block;  
}

.custom-share-actions-section {
    background: #F5F5F5;
    padding-bottom: 2.5rem;
    padding-top: 2.5rem;
}

.custom-share-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.custom-share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #7D40A0;
    font-size: 0.875rem;
    padding: 0;
    min-width: 100px;  
}

.custom-share-button img {
    height: 3.75rem;
    margin-bottom: 0.375rem;
    width: 3.75rem;
}

.diagnosis-article {
    padding: 1.25rem;
    text-align: left;
    margin-top: 40px;
}

.diagnosis-header {
    text-align: center;
    font-weight: bold;
}

.diagnosis-title {
    margin: 0;
    font-weight: bold;
    font-size: 2rem;
    color: #7D40A0;
}

.diagnosis-mbti {
    color: #535353;
    font-size: 1rem;
}

.diagnosis-catch {
    margin: 0.75rem 0 0;
    color: #535353;
    line-height: 1.8;
    font-size: 1.2rem;
}

.diagnosis-divider.dotted {
    margin: 1rem auto;
    border-bottom: 2px dotted #AAAAAC;
    width: 100%;
}

.diagnosis-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    align-items: center;
    margin-top: 1rem;
}

.diagnosis-hero-illust img {
    width: 100%;
    height: auto;
    display: block;
}

.diagnosis-paragraph {
    color: #535353;
    line-height: 1.9;
    margin: 0;
}

.diagnosis-section {
    margin-top: 1.75rem;
}

.diagnosis-section-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    color: #535353;
    font-weight: 700;
}

.diagnosis-list {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
    list-style: disc;
    color: #535353;
}

.diagnosis-list li {
    line-height: 1.9;
    margin: 0.25rem 0;
}

.diagnosis-gap {
    margin-top: 2rem;
    background: #555555;
    color: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.diagnosis-gap-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}

.diagnosis-gap-body {
    margin: 0;
    line-height: 1.9;
}

.diagnosis-tags {
    margin-top: 2rem;
}

.diagnosis-tags-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    color: #535353;
    font-weight: 700;    
}

.diagnosis-tags .diagnosis-divider.dotted {
    margin-top: 0.25rem;
}

.diagnosis-search-therapist-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top:40px;
}

.diagnosis-search-therapist {
    border-radius: 62.4375rem;
    display: inline-block;
    font-size: 1rem;
    margin-top: 0.0625rem;
    padding: 0.75rem 2rem;
    width: 18.75rem;
    background-color: #E9528E;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;    
}

.diagnosis-search-therapist-highlight {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: -0.6875rem;
    position: relative;
    width: -moz-fit-content;
    width: fit-content;
    color: #E9518E;
    font-weight: 700;
}

.diagnosis-search-therapist-highlight::before, 
.diagnosis-search-therapist-highlight::after {
    background: #E9518E;
    content: "";
    display: inline-block;
    height: 1.6875rem;
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 0.125rem;
}

.diagnosis-search-therapist-highlight::before {
    left: -0.9375rem;
    rotate: -22deg;
}

.diagnosis-search-therapist-highlight::after {
    right: -0.9375rem;
    rotate: 22deg;
}

.diagnosis-tags-list {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    color: #535353;
}

.diagnosis-tags-list li {
    margin: 0.25rem 0;
    line-height: 1.8;
}

/* 相性がいいセラピスト */
.diagnosis-match-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1rem;
}

.diagnosis-match-card {
    padding: 1rem;
    background: #fff;
}

.diagnosis-match-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #535353;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.t-type {
    color: #7D40A0;
    display: inline-block;
}


.diagnosis-match-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.diagnosis-match-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.diagnosis-match-desc {
    margin: 0.5rem 0 0.75rem;
    color: #535353;
    line-height: 1.8;
    font-size: 0.95rem;
}


/* ------------------------------------------------------------------------------------------------------------------ */
/* ユーザー診断スタートページ */

.custom-user-diagnosis-page {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    background: #fff;
    font-weight: 500;
    text-align: center;
}