/* ------------------------------------------------------------------------------------------------------------------ */
/* 診断トップページ */

.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.875rem;
    border-radius: 100px;
    border: 1px solid #7D40A0;
    background: #fff;
    color: #7D40A0;
    font-weight: 600;
    font-size: 0.85rem;
    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;
}

.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;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* ユーザー診断スタートページ */

.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;
}