/*
Theme Name: Shokokai
Author: Takumi Web Services
Description: New Shokokai Website
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://takumi.ca
Text Domain: custom
*/

.archive-page-heading {
    padding-bottom: 0.5rem;
}

.archive-page-heading__eyebrow {
    color: var(--bs-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.archive-page-heading__title {
    color: #1f2933;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.archive-page-heading__description {
    color: #52606d;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 56rem;
}

.archive-page-heading__description p:last-child {
    margin-bottom: 0;
}

.archive-card {
    max-width: 420px;
    transition: transform 0.2s ease;
}

.archive-card__media {
    background: linear-gradient(180deg, #f5f5f5 0%, #ebebeb 100%);
    min-height: 320px;
}

.archive-card__body {
    margin: -42px 1rem 0;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.archive-card__fallback-icon {
    font-size: 4rem;
    opacity: 0.85;
}

.archive-card__meta {
    color: var(--bs-success);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.archive-card__title {
    color: #1f2933;
    transition: color 0.2s ease;
}

.archive-card__excerpt {
    font-size: 0.98rem;
}

.archive-card__link {
    color: var(--bs-primary);
    position: relative;
}

.archive-card__link::after {
    content: "→";
    display: inline-block;
    margin-left: 0.45rem;
    transition: transform 0.2s ease;
}

.archive-card:hover,
.archive-card:focus-within {
    transform: translateY(-6px);
}

.archive-card:hover .archive-card__body,
.archive-card:focus-within .archive-card__body {
    border-color: rgba(255, 90, 182, 0.28);
    box-shadow: 0 1.25rem 2.8rem rgba(31, 41, 51, 0.16) !important;
    transform: translateY(-2px);
}

.archive-card:hover .archive-card__title,
.archive-card:focus-within .archive-card__title {
    color: var(--bs-success);
}

.archive-card:hover .archive-card__media::after,
.archive-card:focus-within .archive-card__media::after {
    background: linear-gradient(180deg, rgba(15, 83, 66, 0.04) 0%, rgba(255, 90, 182, 0.14) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.archive-card:hover .archive-card__link::after,
.archive-card:focus-within .archive-card__link::after {
    transform: translateX(4px);
}

@media (max-width: 767.98px) {
    .archive-card__media {
        min-height: 260px;
    }

    .archive-card__body {
        margin: -32px 0.75rem 0;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

body.post-type-archive-portal_list .portal-list-shell,
body.page-id-6550 .portal-list-shell,
body.portal-list-page .portal-list-shell {
    border-radius: 0.75rem;
}

body.post-type-archive-portal_list .portal-list-search,
body.page-id-6550 .portal-list-search,
body.portal-list-page .portal-list-search {
    background: #fff;
    border: 1px solid rgba(15, 83, 66, 0.08);
    overflow: hidden;
}

body.post-type-archive-portal_list .portal-list-search .input-group-text,
body.page-id-6550 .portal-list-search .input-group-text,
body.portal-list-page .portal-list-search .input-group-text {
    color: #52606d;
    padding-left: 1.25rem;
}

body.post-type-archive-portal_list .portal-list-search .form-control,
body.page-id-6550 .portal-list-search .form-control,
body.portal-list-page .portal-list-search .form-control {
    box-shadow: none;
    min-height: 3.5rem;
}

body.post-type-archive-portal_list .portal-list-search .form-control::placeholder,
body.page-id-6550 .portal-list-search .form-control::placeholder,
body.portal-list-page .portal-list-search .form-control::placeholder {
    color: #829ab1;
}

body.post-type-archive-portal_list .portal-list-search .form-control:focus,
body.page-id-6550 .portal-list-search .form-control:focus,
body.portal-list-page .portal-list-search .form-control:focus {
    box-shadow: none;
}

body.post-type-archive-portal_list .portal-list-search__button,
body.page-id-6550 .portal-list-search__button,
body.portal-list-page .portal-list-search__button {
    border-top: 0;
    border-bottom: 0;
    border-right: 0;
    border-left-color: rgba(15, 83, 66, 0.12);
    min-width: 6rem;
}

body.post-type-archive-portal_list .portal-list-search__clear,
body.page-id-6550 .portal-list-search__clear,
body.portal-list-page .portal-list-search__clear {
    border-top: 0;
    border-bottom: 0;
    border-right: 0;
    border-left-color: rgba(15, 83, 66, 0.12);
    min-width: 6rem;
}

body.post-type-archive-portal_list .portal-list-panel,
body.page-id-6550 .portal-list-panel,
body.portal-list-page .portal-list-panel {
    border: 1px solid rgba(15, 83, 66, 0.08);
}

body.post-type-archive-portal_list .portal-list-summary,
body.page-id-6550 .portal-list-summary,
body.portal-list-page .portal-list-summary {
    background: linear-gradient(180deg, rgba(15, 83, 66, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

body.post-type-archive-portal_list .portal-list-item,
body.page-id-6550 .portal-list-item,
body.portal-list-page .portal-list-item {
    background: #fff;
    border: 0;
    border-bottom: 1px solid rgba(15, 83, 66, 0.08);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.post-type-archive-portal_list .portal-list-item:last-child,
body.page-id-6550 .portal-list-item:last-child,
body.portal-list-page .portal-list-item:last-child {
    border-bottom: 0;
}

body.post-type-archive-portal_list .portal-list-item:hover,
body.post-type-archive-portal_list .portal-list-item:focus,
body.page-id-6550 .portal-list-item:hover,
body.page-id-6550 .portal-list-item:focus,
body.portal-list-page .portal-list-item:hover,
body.portal-list-page .portal-list-item:focus {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 0 0 1px rgba(255, 90, 182, 0.12), 0 16px 28px rgba(31, 41, 51, 0.08);
    transform: translateY(-1px);
    z-index: 1;
}

body.post-type-archive-portal_list .portal-list-item__icon,
body.page-id-6550 .portal-list-item__icon,
body.portal-list-page .portal-list-item__icon {
    height: 3.25rem;
    width: 3.25rem;
}

body.post-type-archive-portal_list .portal-list-item__title,
body.page-id-6550 .portal-list-item__title,
body.portal-list-page .portal-list-item__title {
    color: #1f2933;
    font-size: 1.05rem;
    line-height: 1.6;
    transition: color 0.2s ease;
}

body.post-type-archive-portal_list .portal-list-item:hover .portal-list-item__title,
body.post-type-archive-portal_list .portal-list-item:focus .portal-list-item__title,
body.page-id-6550 .portal-list-item:hover .portal-list-item__title,
body.page-id-6550 .portal-list-item:focus .portal-list-item__title,
body.portal-list-page .portal-list-item:hover .portal-list-item__title,
body.portal-list-page .portal-list-item:focus .portal-list-item__title {
    color: var(--bs-success);
}

body.post-type-archive-portal_list .portal-list-item__arrow,
body.page-id-6550 .portal-list-item__arrow,
body.portal-list-page .portal-list-item__arrow {
    font-size: 1.125rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

body.post-type-archive-portal_list .portal-list-item:hover .portal-list-item__arrow,
body.post-type-archive-portal_list .portal-list-item:focus .portal-list-item__arrow,
body.page-id-6550 .portal-list-item:hover .portal-list-item__arrow,
body.page-id-6550 .portal-list-item:focus .portal-list-item__arrow,
body.portal-list-page .portal-list-item:hover .portal-list-item__arrow,
body.portal-list-page .portal-list-item:focus .portal-list-item__arrow {
    color: var(--bs-primary);
    transform: translateX(3px);
}

body.post-type-archive-portal_list .portal-list-empty,
body.page-id-6550 .portal-list-empty,
body.portal-list-page .portal-list-empty {
    color: #52606d;
}

body.post-type-archive-portal_list .portal-list-empty--filter,
body.page-id-6550 .portal-list-empty--filter,
body.portal-list-page .portal-list-empty--filter {
    border-top: 1px solid rgba(15, 83, 66, 0.08);
}

body.post-type-archive-portal_list .portal-list-empty .display-6,
body.page-id-6550 .portal-list-empty .display-6,
body.portal-list-page .portal-list-empty .display-6 {
    color: var(--bs-primary);
}

body.post-type-archive-portal_list .portal-list-pagination .page-link,
body.page-id-6550 .portal-list-pagination .page-link,
body.portal-list-page .portal-list-pagination .page-link {
    border: 1px solid rgba(15, 83, 66, 0.12);
    border-radius: 999px;
    color: #1f2933;
    margin: 0 0.2rem;
    min-width: 2.5rem;
    text-align: center;
}

body.post-type-archive-portal_list .portal-list-pagination .page-item.active .page-link,
body.page-id-6550 .portal-list-pagination .page-item.active .page-link,
body.portal-list-page .portal-list-pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

body.post-type-archive-portal_list .portal-list-pagination .page-link:hover,
body.post-type-archive-portal_list .portal-list-pagination .page-link:focus,
body.page-id-6550 .portal-list-pagination .page-link:hover,
body.page-id-6550 .portal-list-pagination .page-link:focus,
body.portal-list-page .portal-list-pagination .page-link:hover,
body.portal-list-page .portal-list-pagination .page-link:focus {
    background-color: rgba(255, 90, 182, 0.08);
    border-color: rgba(255, 90, 182, 0.24);
    color: var(--bs-success);
    box-shadow: none;
}

@media (max-width: 767.98px) {
    body.post-type-archive-portal_list .portal-list-search .input-group,
    body.page-id-6550 .portal-list-search .input-group,
    body.portal-list-page .portal-list-search .input-group {
        align-items: stretch;
    }

    body.post-type-archive-portal_list .portal-list-search__button,
    body.page-id-6550 .portal-list-search__button,
    body.portal-list-page .portal-list-search__button {
        border-left: 0;
        border-top: 1px solid rgba(15, 83, 66, 0.12);
        min-height: 3rem;
    }

    body.post-type-archive-portal_list .portal-list-search__clear,
    body.page-id-6550 .portal-list-search__clear,
    body.portal-list-page .portal-list-search__clear {
        border-left: 0;
        border-top: 1px solid rgba(15, 83, 66, 0.12);
        min-height: 3rem;
    }

    body.post-type-archive-portal_list .portal-list-item__icon,
    body.page-id-6550 .portal-list-item__icon,
    body.portal-list-page .portal-list-item__icon {
        height: 2.75rem;
        width: 2.75rem;
    }

    body.post-type-archive-portal_list .portal-list-item__title,
    body.page-id-6550 .portal-list-item__title,
    body.portal-list-page .portal-list-item__title {
        font-size: 1rem;
    }
}

.toririam-archive-shell .toririam-archive-month + .toririam-archive-month {
    border-top: 1px solid rgba(15, 83, 66, 0.12);
    margin-top: 2.5rem;
    padding-top: 2.75rem;
}

.toririam-archive-filter {
    background: linear-gradient(135deg, rgba(15, 83, 66, 0.05) 0%, rgba(255, 90, 182, 0.06) 100%);
    border: 1px solid rgba(15, 83, 66, 0.08);
    border-radius: 1.5rem;
    margin-bottom: 2.75rem;
    padding: 1.75rem;
}

.toririam-archive-filter__eyebrow {
    color: var(--bs-success);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.toririam-archive-filter__title {
    color: #1f2933;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.toririam-archive-filter__description {
    color: #52606d;
    font-size: 0.98rem;
    line-height: 1.8;
    margin-top: 0.85rem;
    max-width: 40rem;
}

.toririam-archive-filter__status {
    align-items: center;
    color: #52606d;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.toririam-archive-filter__status-count {
    color: #1f2933;
    font-size: 0.95rem;
    font-weight: 700;
}

.toririam-archive-filter__status-topic {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 83, 66, 0.08);
    border-radius: 999px;
    color: #52606d;
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
}

.toririam-archive-filter__status-topic strong {
    color: #1f2933;
}

.toririam-archive-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.toririam-archive-filter__chip {
    appearance: none;
    background: #fff;
    border: 1px solid rgba(15, 83, 66, 0.14);
    border-radius: 999px;
    box-shadow: 0 0.75rem 1.5rem rgba(31, 41, 51, 0.03);
    color: var(--bs-success);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 0.85rem 1.2rem;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.toririam-archive-filter__chip:hover,
.toririam-archive-filter__chip:focus {
    background: rgba(15, 83, 66, 0.05);
    border-color: rgba(255, 90, 182, 0.28);
    box-shadow: 0 1rem 1.8rem rgba(31, 41, 51, 0.08);
    color: #1f2933;
    outline: none;
    transform: translateY(-1px);
}

.toririam-archive-filter__chip.is-active {
    background: linear-gradient(135deg, var(--bs-success) 0%, #1b6d5a 100%);
    border-color: transparent;
    box-shadow: 0 1rem 2rem rgba(15, 83, 66, 0.18);
    color: #fff;
}

.toririam-archive-month__header {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.toririam-archive-month__line {
    flex: 1 1 auto;
    height: 1px;
    min-width: 1.5rem;
}

.toririam-archive-month__line--left {
    background: linear-gradient(90deg, rgba(255, 90, 182, 0.05) 0%, rgba(255, 90, 182, 0.75) 100%);
}

.toririam-archive-month__line--right {
    background: linear-gradient(90deg, rgba(255, 90, 182, 0.75) 0%, rgba(255, 90, 182, 0.05) 100%);
}

.toririam-archive-month__title {
    color: #0f5342;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.toririam-archive-month__count {
    background: rgba(255, 90, 182, 0.1);
    border: 1px solid rgba(255, 90, 182, 0.14);
    border-radius: 999px;
    color: var(--bs-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-left: auto;
    padding: 0.45rem 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.toririam-archive-card__date {
    color: #829ab1;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.toririam-archive-filter-empty {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(15, 83, 66, 0.04) 100%);
    border: 1px dashed rgba(15, 83, 66, 0.2);
    border-radius: 1.5rem;
    color: #52606d;
    margin-top: 2rem;
    padding: 2.25rem 1.5rem;
    text-align: center;
}

.toririam-archive-filter-empty__title {
    color: #1f2933;
    font-size: 1.1rem;
    font-weight: 700;
}

.toririam-archive-card-column[hidden] {
    display: none !important;
}

@media (max-width: 767.98px) {
    .toririam-archive-filter {
        border-radius: 1.25rem;
        padding: 1.25rem;
    }

    .toririam-archive-filter__chip {
        width: 100%;
    }

    .toririam-archive-month__header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .toririam-archive-month__line {
        order: 2;
        width: 100%;
    }

    .toririam-archive-month__title {
        order: 1;
        text-align: left;
        white-space: normal;
        width: 100%;
    }

    .toririam-archive-month__count {
        margin-left: 0;
        order: 3;
    }
}

.contact-page-shell {
    max-width: 1140px;
}

.contact-page-shell__content-body > *:last-child {
    margin-bottom: 0;
}

.contact-form-panel {
    background:
        radial-gradient(circle at top right, rgba(255, 90, 182, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(15, 83, 66, 0.03) 0%, rgba(255, 255, 255, 1) 26%);
    border: 1px solid rgba(15, 83, 66, 0.08);
}

.contact-form-panel__header {
    margin-bottom: 2rem;
}

.contact-form-panel__eyebrow {
    color: var(--bs-success);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.contact-form-panel__title {
    color: #1f2933;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.9rem;
}

.contact-form-panel__description {
    color: #52606d;
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 0;
    max-width: 40rem;
}

.contact-form__label {
    color: #1f2933;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.contact-form__control {
    border: 1px solid rgba(15, 83, 66, 0.16);
    border-radius: 1rem;
    box-shadow: none;
    padding: 0.95rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form__control:focus {
    background-color: #fff;
    border-color: rgba(255, 90, 182, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(255, 90, 182, 0.12);
}

.contact-form__control.is-invalid,
.contact-form__control.is-invalid:focus {
    background-image: none;
    border-color: rgba(220, 53, 69, 0.7);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.08);
}

.contact-form__textarea {
    min-height: 15rem;
    resize: vertical;
}

.contact-form__field-error {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.55rem;
}

.contact-form__honeypot {
    left: -9999px;
    position: absolute;
    top: auto;
}

.contact-form__note {
    color: #52606d;
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-form__submit {
    border-radius: 999px;
    box-shadow: 0 1rem 2rem rgba(15, 83, 66, 0.12);
    min-width: 12rem;
    padding-inline: 1.6rem;
}

.contact-form__submit:disabled {
    box-shadow: none;
    cursor: wait;
    opacity: 0.75;
}

.contact-form__status .alert {
    border-radius: 1rem;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .contact-form-panel {
        padding: 1.5rem !important;
    }

    .contact-form__submit {
        width: 100%;
    }
}
