/* Start Navigation */
body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #F8F7F4;
    line-height: 1.5;
}
/* End Navigation */

/* Start Breadcrumb */
.breadcrumb__container {
    margin-top: 24px;
}

.breadcrumb__nav {
    max-width: 1720px;
    margin: 0 5.2%;
    display: flex;
    column-gap: 4px;
    align-items: center;
}

.breadcrumb__separator {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.breadcrumb__link {
    font-size: 16px;
    font-weight: 500;
    color: #828282;
}

.breadcrumb__current {
    font-size: 16px;
    font-weight: 500;
    color: #1C1C1C;
}

/* End Breadcrumb */

/* Start Hero banner */
.hero-banner__container {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    display: flex;
}

.hero-banner__content {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-banner__image {
    flex-basis: 50%;
}

.hero-banner__image {
    display: flex;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-banner__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.title-herobanner__header {
    border-bottom: 2px solid #DCDCDC;
    position: relative;
}

.title-herobanner__title {
    font-size: 56px;
    font-weight: 700;
    color: #1C1C1C;
    padding-bottom: 24px;
    line-height: 1.25;
}

.title-herobanner__divider {
    display: flex;
    height: 4px;
    width: 120px;
    background-color: #E9450A;
    position: absolute;
    bottom: -2px;
}

.hero-banner__description {
    margin-top: 24px;
}

.hero-banner__text {
    font-size: 20px;
    font-weight: 500;
    color: #636363;
}

/* End Hero banner */

/* Start Search by Field */
.search-by-field {
    max-width: 1820px;
    background-color: #F5F1EA;
}

.faq-section {
    background: linear-gradient(to bottom,
            #FAF8F5 0,
            #FAF8F5 400px,
            #FFFFFF 400px,
            #FFFFFF 100%);
}

.faq__items {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.faq-title {
    font-size: 20px;
    font-weight: 500;
    color: #1C1C1C;
}

.faq-item__summary {
    display: flex;
    padding: 24px 32px;
    background-color: #FFFFFF;
    cursor: pointer;
}

.faq__content {
    flex: 1;
}

.faq-item__q-icon {
    display: flex;
}

.faq-item__question-wrapper {
    display: flex;
    flex: 1;
    column-gap: 16px;
    align-items: center;
}

.faq-item__question {
    font-size: 20px;
    font-weight: 500;
    color: #1C1C1C;
    flex: 1;
}

.faq-item__answer {
    display: flex;
    font-size: 20px;
    font-weight: 400;
    color: #1C1C1C;
    column-gap: 16px;
    padding: 24px 32px;
    background-color: #FFFFFF;
    display: none;
    border-top: 1px solid #EDEDED;
}

.faq-item.active .faq-item__answer {
    display: flex;
}

.faq-item.active .faq-item__toggle-plus {
    display: none;
}

.faq-item.active .faq-item__toggle-minus {
    display: block;
}

.faq-item__toggle-minus {
    display: none;
}

.faq__more {
    display: flex;
    justify-content: end;
    margin-top: 16px;
}

.faq__more-link {
    display: flex;
    background-color: #E9450A;
    align-items: center;
    width: fit-content;
}

.faq__more-text {
    font-size: 16px;
    font-weight: 500;
    color: #F7F5F4;
    padding: 16px;
}

.faq__more-arrow {
    display: flex;
    align-items: center;
}

.faq__more-arrow {
    padding: 16px;
}

.faq__more-divider {
    width: 1px;
    height: 28px;
    background-color: #FFFFFF;
}

.search-by-field__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0 60px 0;
}

.search-by-category__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-by-category__tag {
    font-size: 16px;
    font-weight: 500;
    color: #1C1C1C;
    background-color: #FFFFFF;
    padding: 10px 16px;
    border-radius: 90px;
}

.search-by-category__tag.active {
    background-color: #E9450A;
    color: #FFFFFF;
}


.case-category-divorces {
    margin-top: 40px;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(384px, 1fr));
}

.case-category-divorce__header {
    display: flex;
    padding: 16px 20px;
    background-color: #E9EDF7;
    border-left: 4px solid #1E4BB1;
    column-gap: 4px;
}

.case-category-divorce__title {
    font-size: 20px;
    font-weight: 700;
    color: #1E4BB1;
}

.case-category-divorce__link-text {
    color: #E9450A;
    font-size: 14px;
    font-weight: 500;
}

.case-category-divorce {
    display: flex;
    flex-direction: column;
}

.case-category-divorce__info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-category-divorce__action {
    display: flex;
    column-gap: 8px;
}

.case-category-divorce__count {
    font-size: 14px;
    font-weight: 400;
    color: #1E4BB1;
    margin-top: 4px;
}

.case-category-divorce__tags {
    padding: 16px 0;
    background-color: #FFFFFF;
}

.case-category-divorce__tags-container {
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.case-category-divorce__tag {
    font-size: 12px;
    font-weight: 400;
    color: #101828;
    background-color: #FAF8F5;
    padding: 3px 12px;
    border-radius: 90px;
}

/* End Search by Field */

/* Start search by category */
.search-by-category {
    background-color: #FAF4F7;
    padding: 60px 0;
}

.search-by-category__container {
    max-width: 1200px;
    margin: 0 auto;
}

.title-section__header {
    width: fit-content;
    border-bottom: 2px solid #DCDCDC;
    position: relative;
}

.title-section__title {
    font-size: 48px;
    font-weight: 700;
    color: #1C1C1C;
    padding-bottom: 22px;
    line-height: 1.25;
}

.title-section__divider {
    display: flex;
    height: 4px;
    width: 120px;
    background-color: #E9450A;
    position: absolute;
    bottom: -2px;
}

.search-by-category__header-item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background-color: #E9EDF7;
    cursor: pointer;
    /* line-height: 1.5; */
}

.search-by-category__header-title {
    font-size: 20px;
    font-weight: 700;
    color: #1E4BB1;
}

.search-by-category__body {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
    row-gap: 32px;
}

.search-by-category__caret-down-icon {
    display: flex;
    align-items: center;
}

.search-by-category__item-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-by-service__link {
    font-size: 16px;
    font-weight: 400;
    color: #1C1C1C;
    background-color: #FFFFFF;
    border-radius: 90px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    border: 1px solid #EDEDED;
    cursor: pointer;
    /* line-height: 1.5; */
}

.search-by-service__link.active {
    color: #FFFFFF;
    background-color: #E9450A;
}

.search-by-location__link {
    font-size: 16px;
    font-weight: 400;
    color: #1C1C1C;
    background-color: #FFFFFF;
    border-radius: 90px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    border: 1px solid #EDEDED;
    cursor: pointer;
    /* line-height: 1.5; */
}

.search-by-location__link.active {
    color: #FFFFFF;
    background-color: #E9450A;
}

.search-by-location__body-item {
    display: flex;
    flex-direction: column;
    padding: 16px 32px 24px 32px;
    background-color: #FFFFFF;
}

.search-by-location__item-sublist {
    margin: 24px 0 0 0;
}

.search-by-location__item-sublist {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.search-by-location__item-sublist.active {
    display: grid;
}

.search-by-category__link {
    font-size: 16px;
    font-weight: 400;
    color: #1C1C1C;
    background-color: #FFFFFF;
    border-radius: 90px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    border: 1px solid #EDEDED;
    cursor: pointer;
    /* line-height: 1.5; */
}

.search-by-category__link.active {
    color: #FFFFFF;
    background-color: #E9450A;
}

.search-by-category__body-item {
    display: flex;
    flex-direction: column;
    padding: 16px 32px 24px 32px;
    background-color: #FFFFFF;
}

.search-by-category__item-sublist {
    margin: 24px 0 0 0;
}

.search-by-category__item-sublist {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.search-by-category__item-sublist.active {
    display: grid;
}

/* Custom radio button styling for location filter */
.search-by-category__item-sublist-radio {
    /* Reset the native look */
    appearance: none;
    -webkit-appearance: none;
    /* Size tuned to the reference image */
    width: 24px;
    height: 24px;
    /* Unchecked border */
    border: 2px solid #CFCFCF;
    border-radius: 50%;
    background: #fff;
    outline: none;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: border-color 0.15s ease-in-out;
}

.search-by-category__item-sublist-radio:checked {
    /* Red-ish ring when checked */
    border-color: #FF3D00;
    /* ring color */
}

.search-by-category__item-sublist-radio:checked::before {
    content: '';
    display: block;
    width: 8px;
    /* small inner dot */
    height: 8px;
    background: #FF5A1F;
    /* inner dot color (orange) */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Optional hover focus polish */
.search-by-category__item-sublist-radio:hover {
    border-color: #D6D6D6;
}

.search-by-category__item-sublist-radio:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 61, 0, 0.2);
}

/* Fallback for environments where custom appearance is not supported */
input[type="radio"].search-by-category__item-sublist-radio {
    accent-color: #FF3D00;
}

.search-by-category__item-sublist-radio {
    width: 16px;
    height: 16px;
    color: #E9450A;
}

.search-by-category__item-sublist-text {
    display: flex;
    align-items: center;
    column-gap: 8px;
    width: fit-content;
    cursor: pointer;
}

.search-by-category__item-sublist-label {
    font-size: 16px;
    font-weight: 400;
    color: #1C1C1C;
    display: flex;
    column-gap: 8px;
    align-items: center;
    /* line-height: 1.5; */
}

.search-by-category__show-more-button {
    font-size: 16px;
    font-weight: 500;
    color: #F1EFED;
    background-color: #E9450A;
    border: transparent;
    outline: transparent;
    padding: 16px;
    cursor: pointer;
    width: 100%;
    /* line-height: 1.5; */
}

.search-by-category__footer {
    margin-top: 32px;
}

/* End search by category */

/* End Latest Solution Case */

/* Start Pagination */
.pagination {
    margin-top: 40px;
    display: flex;
    column-gap: 5px;
    justify-content: flex-end
}

.pagination__link {
    display: flex;
    padding: 12px;
    min-width: 48px;
    justify-content: center;
    border: 1px solid #F1F1F1;
    align-items: center;
    column-gap: 10px;
}

.pagination__link.disabled {
    pointer-events: none;
}

.pagination__link.disabled .pagination__text {
    color: #515151;
}

.pagination__link.active {
    background-color: #E9450A;
    border: transparent;
    pointer-events: none;
}

.pagination__link.active .pagination__text {
    color: #FFFFFF;
}

.pagination__text {
    font-size: 16px;
    font-weight: 400;
    color: #101828;
    display: flex;
    align-items: center;
}


.pagination__icon {
    display: flex;
    align-items: center;
}

/* End Pagination */

/* Start Footer */
footer {
    background-color: #47413E;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__content {
    padding: 32px 0 32px 0;
    display: flex;
    column-gap: 40px;
}

.footer__column {
    flex: 1;
}

.footer__nav {
    flex: 1;
    max-width: 208px;
    width: 100%;
}

.footer__column-title {
    font-size: 16px;
    font-weight: 700;
    color: #E9450A;
    padding-bottom: 8px;
    border-bottom: 1px solid #636363;
    position: relative;
}

.footer__column-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    background-color: #E9450A;
    position: absolute;
    bottom: -1px;
}

.footer__column-group {
    display: flex;
    margin-top: 20px;
}

.footer__list-item {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.footer__link {
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    display: flex;
}

.footer__list-item-group {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.footer__list-sub-item {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.footer__sublink {
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
}

.footer__sublink::before {
    content: '';
    background-color: #E9450A;
    width: 4px;
    height: 4px;
    display: inline-block;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 16px;
}

.footer__list-sub-item--right-caret {
    max-width: 20px;
    width: 100%;
    display: flex;
    margin-left: 8px;
}

.footer__link--red {
    color: #E9450A;
}

.footer__bottom {
    display: flex;
    width: 100%;
    border-top: 1px solid #515151;
}

.footer__bottom-links {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 0 14px 0;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer__logo-link {
    font-size: 24px;
    font-weight: 700;
    color: #ED6A3B;
}

.footer__bottom-link {
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
}

.footer__copyright {
    padding: 20px 0;
    background-color: #272422;
}

.footer__copyright-text {
    font-size: 20px;
    font-weight: 400;
    color: #FFFFFF;
    text-align: center;
}

/* End Footer */
