/* Start Navigation */
.header__container {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

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

header {
    display: flex;
    height: 100px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5.2%;
    background-color: #FFFFFF;
}

nav {
    display: flex;
    gap: 40px;
}

.logo {
    font-size: 40px;
    font-weight: 700;
    color: #E9450A;
}

.nav__icon {
    max-width: 24px;
}

.nav__icon img {
    display: flex;
    width: 100%;
    height: auto;
    object-fit: contain;
    color: #1E4BB1;
}

.nav__link {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 4px;
}

.nav__text {
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
    color: #1C1C1C;
}

/* 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: transparent;
}

.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: #F5F1EA;
    padding: 60px 0;
}

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

.title-section {
    max-width: 375px;
    width: 100%;
}

.company-info__row {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 24px 40px;
    background-color: #FFFFFF;
}

.company-info__row::before {
    content: '';
    display: block;
    width: 8px;
    height: 36px;
    background-color: #1E4BB1;
    position: absolute;
    left: 0;
    top: 29px;
}

.company-info {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    flex: 1;
}

.company-info__label {
    font-size: 20px;
    font-weight: 700;
}

.company-info__value {
    font-size: 14px;
    font-weight: 400;
    color: #636363;
}

.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;
}

.contact-form-title-section {
    max-width: 375px;
    width: 100%;
    margin-bottom: 40px;
}

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

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

.contact-form-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 {
    border: 1px solid #EDEDED;
}

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

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

.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: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* 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;
}

.search-by-category__item-sublist-label {
    font-size: 16px;
    font-weight: 400;
    color: #1C1C1C;
    /* 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;
}

.contact-form-section {
    padding: 60px 0;
}

.contact-form-section {
    background:
        linear-gradient(to left,
            #F5F1EA 200px,
            transparent 200px) top right / 100px 200px no-repeat,
        url('../images/a50c0a8f961816196339e27fe07ee124c7fde91e.png') center / cover no-repeat;
}

.contact-form-title-section__warning {
    display: flex;
    max-width: 285px;
    width: 100%;
    margin-top: 12px;
    column-gap: 12px;
}

.contact-form-title-section__warning-text {
    font-size: 16px;
    font-weight: 400;
    color: #F04438;
}

.company-info-contact-title {
    font-size: 24px;
    font-weight: 700;
    color: #1B44A1;
    padding-left: 20px;
    border-left: 8px solid #E9450A;
}

.company-info-contact-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    row-gap: 24px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}

.contact-form-group__label {
    font-size: 14px;
    font-weight: 500;
    color: #1C1C1C;
}

.contact-form-group__label-required {
    color: #F04438;
    font-size: 14px;
    font-weight: 400;
}

.contact-form-group__input-text {
    width: 100%;
    padding: 13px 20px;
    font-size: 20px;
    font-weight: 400;
    color: #1C1C1C;
    background-color: #FFFFFF;
    border: 1px solid #EDEDED;
    border-radius: 6px;
    box-sizing: border-box;
    outline: transparent;
}

.contact-form-group__input-text::placeholder {
    color: #828282;
}

.contact-form-group__input-text:focus {
    border-color: #aaa;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

.contact-form-group__warning {
    font-size: 14px;
    font-weight: 500;
    color: #F04438;
}

.contact-form-group__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    width: 100%;
    height: 56px;
    padding: 13px 20px;
    border: 1px solid #EDEDED;
    border-radius: 8px;
    background-color: #fff;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: #222;

    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20fill='none'%3E%3Cpath%20d='M13.354%206.35378L8.35403%2011.3538C8.30759%2011.4003%208.25245%2011.4372%208.19175%2011.4623C8.13105%2011.4875%208.06599%2011.5004%208.00028%2011.5004C7.93457%2011.5004%207.86951%2011.4875%207.80881%2011.4623C7.74811%2011.4372%207.69296%2011.4003%207.64653%2011.3538L2.64653%206.35378C2.55271%206.25996%202.5%206.13272%202.5%206.00003C2.5%205.86735%202.55271%205.7401%202.64653%205.64628C2.74035%205.55246%202.8676%205.49976%203.00028%205.49976C3.13296%205.49976%203.26021%205.55246%203.35403%205.64628L8.00028%2010.2932L12.6465%205.64628C12.693%205.59983%2012.7481%205.56298%2012.8088%205.53784C12.8695%205.5127%2012.9346%205.49976%2013.0003%205.49976C13.066%205.49976%2013.131%205.5127%2013.1917%205.53784C13.2524%205.56298%2013.3076%205.59983%2013.354%205.64628C13.4005%205.69274%2013.4373%205.74789%2013.4625%205.80859C13.4876%205.86928%2013.5006%205.93434%2013.5006%206.00003C13.5006%206.06573%2013.4876%206.13079%2013.4625%206.19148C13.4373%206.25218%2013.4005%206.30733%2013.354%206.35378Z'%20fill='%23828282'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;

    outline: none;
}

.contact-form-group__select:focus {
    border-color: #cacaca;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
}

.contact-form-group__select::-ms-expand {
    display: none;
}

.contact-form-group__select:invalid {
    color: #9aa0a6;
}

.contact-form-group__select option {
    color: #222;
}

.contact-form-group__select:hover {
    border-color: #d9d9d9;
}

.contact-form-group__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px;
    font-size: 20px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    resize: vertical;
    outline: none;
    resize: none;
}

.contact-form-group__textarea:focus {
    box-shadow: 0 0 0 3px rgba(163, 197, 255, 0.3);
}

.contact-form-group__textarea::placeholder {
    color: #999;
}

.contact-form-group__note {
    font-size: 14px;
    font-weight: 500;
    color: #828282;
}

.contact-form-group__privacy-policy {
    padding: 20px;
    background-color: #FAF8F5;
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.contact-form-group__checkbox {
    width: 20px;
    height: 20px;
    accent-color: #E9450A;
    cursor: pointer;
}

.contact-form-group__privacy-policy-text {
    font-size: 14px;
    font-weight: 500;
    color: #1E4BB1;
}

.contact-form-group__checkbox-group {
    display: flex;
    align-items: center;
    column-gap: 8px;
    cursor: pointer;
}

.contact-form-group__checkbox-label {
    font-size: 16px;
    font-weight: 400;
    color: #101828;
    cursor: pointer;
}

.contact-form-group__submit-button {
    background-color: #E9450A;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 500;
    padding: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* 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 */


.company-info__value-paragraph {
    font-size: 16px;
    font-weight: 400;
    color: #1C1C1C;
}

.company-info__value-heading-text {
    font-size: 16px;
    font-weight: 700;
    color: #E9450A;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAF8F5;
    margin-bottom: 24px;
}

.company-info__value-list-item {
    font-size: 16px;
    font-weight: 400;
    color: #1C1C1C;
}

.company-info__value-list {
    display: flex;
    flex-direction: column;
    row-gap: 18px;
    margin-left: 36px;
}
