﻿.page-heading {
    display: none;
}

.hln {
    --hln-border: #d8dde3;
    --hln-muted: #5c6670;
    --hln-accent: #176b5b;
    color: #20262c;
    width: min(780px, calc(100vw - 32px));
    min-width: 0;
    max-width: 100%;
}

.hln *,
.hln *::before,
.hln *::after {
    box-sizing: border-box;
}

.hln__header {
    max-width: 720px;
    margin-bottom: 28px;
}

.hln__eyebrow {
    margin: 0 0 6px;
    color: var(--hln-accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.hln__header h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: 0;
}

.hln__header p:last-child,
.hln__disclosure {
    color: var(--hln-muted);
}

.hln__tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--hln-border);
}

.hln__tabs button {
    position: relative;
    min-height: 46px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--hln-muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hln__tabs button[aria-selected="true"] {
    color: var(--hln-accent);
}

.hln__tabs button[aria-selected="true"]::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--hln-accent);
    content: "";
}

.hln [role="tabpanel"][hidden] {
    display: none;
}

.hln__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hln-border);
}

.hln__summary-text p {
    margin: 0;
    font-size: 14px;
}

.hln__summary-text .hln__updated {
    margin-top: 2px;
    color: var(--hln-muted);
    font-size: 12px;
}

.hln__count {
    margin: 0;
    color: var(--hln-muted);
    font-size: 14px;
    white-space: nowrap;
}

.hln__status {
    min-height: 24px;
    padding-top: 8px;
    color: var(--hln-muted);
    font-size: 14px;
}

.hln-filter {
    padding: 20px 0 0;
}

.hln-filter label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.hln-filter input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--hln-accent);
}

.hln-filter__prefecture {
    padding: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
}

.hln-filter__regions {
    margin-left: 14px;
    border-left: 2px solid var(--hln-border);
}

.hln-filter__region {
    padding: 14px 0 16px 20px;
    border-bottom: 1px solid var(--hln-border);
}

.hln-filter__region > label,
.hln-filter__municipality > label {
    font-weight: 700;
}

.hln-filter__municipalities {
    margin: 12px 0 0 14px;
    border-left: 2px solid var(--hln-border);
}

.hln-filter__municipality {
    padding: 12px 0 14px 18px;
    border-bottom: 1px solid var(--hln-border);
}

.hln-filter__municipality:last-child {
    border-bottom: 0;
}

.hln-filter__sources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 20px;
    margin: 12px 0 0 27px;
    color: #3f4850;
    font-size: 14px;
}

.hln-filter__sources span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hln-filter__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 12px;
    border-top: 1px solid var(--hln-border);
    background: #fff;
    box-shadow: 0 -5px 12px rgb(32 38 44 / 7%);
}

.hln-filter__actions p {
    margin: 0;
    color: var(--hln-muted);
    font-size: 14px;
}

.hln-filter__actions button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--hln-accent);
    border-radius: 4px;
    background: var(--hln-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hln__empty {
    padding: 28px 0;
    border-bottom: 1px solid var(--hln-border);
    color: var(--hln-muted);
}

.hln-directory__intro {
    min-height: 54px;
    padding: 16px 0;
    border-bottom: 1px solid var(--hln-border);
    color: var(--hln-muted);
    font-size: 14px;
}

.hln-directory__intro p {
    margin: 0;
}

.hln-site {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 8px 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--hln-border);
}

.hln-site h3 {
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.hln-site > p {
    margin: 0;
    color: #3f4850;
    font-size: 14px;
    line-height: 1.75;
}

.hln-site__links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 16px;
    font-size: 13px;
}

.hln-site__links a {
    color: var(--hln-accent);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.hln-item {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--hln-border);
}

.hln-item:not(:has(.hln-item__image)) {
    grid-template-columns: 1fr;
}

.hln-item__image {
    width: 156px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef1f3;
}

.hln-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 7px;
    color: var(--hln-muted);
    font-size: 13px;
}

.hln-item__body {
    min-width: 0;
}

.hln-item h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.hln-item h3 a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.hln-item__body > p {
    display: -webkit-box;
    height: 5.1em;
    overflow: hidden;
    margin: 8px 0 0;
    color: var(--hln-muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.hln-item__excerpt.is-empty {
    color: #87919a;
    font-style: italic;
}

.hln__more {
    display: block;
    min-width: 160px;
    min-height: 44px;
    margin: 24px auto 0;
    border: 1px solid var(--hln-accent);
    border-radius: 4px;
    background: #fff;
    color: var(--hln-accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hln__more[hidden] {
    display: none;
}

.hln__disclosure {
    margin-top: 28px;
    font-size: 12px;
}

.hln-about {
    --hln-border: #d8dde3;
    --hln-muted: #5c6670;
    --hln-accent: #176b5b;
    width: min(780px, calc(100vw - 32px));
    max-width: 100%;
    color: #20262c;
}

.hln-about *,
.hln-about *::before,
.hln-about *::after {
    box-sizing: border-box;
}

.hln-about > p:first-child {
    margin: 0 0 28px;
    font-size: 14px;
}

.hln-about > p:first-child a {
    color: var(--hln-accent);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.hln-about h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: 0;
}

.hln-about > p:nth-child(2) {
    margin: 0 0 32px;
    color: var(--hln-muted);
    font-size: 15px;
    line-height: 1.8;
}

.hln-about h3 {
    margin: 0 0 10px;
    padding-top: 28px;
    border-top: 1px solid var(--hln-border);
    font-size: 18px;
    letter-spacing: 0;
}

.hln-about ul {
    margin: 0 0 8px;
    padding-left: 1.4em;
    font-size: 15px;
    line-height: 1.8;
}

.hln-about ul li {
    margin-bottom: 6px;
    color: #20262c;
}

.hln-about > p:not(:first-child):not(:nth-child(2)) {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.8;
}

.hln-about a {
    color: var(--hln-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .page-heading h1 {
        font-size: 32px;
        line-height: 1.25;
    }

    .hln__tabs {
        gap: 18px;
    }

    .hln-filter__sources {
        grid-template-columns: 1fr;
    }

    .hln-item {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
    }

    .hln-item__image {
        width: 96px;
    }

    .hln-item h3 {
        font-size: 16px;
    }

    .hln__header p {
        overflow-wrap: anywhere;
    }

    .hln-filter__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hln-filter__actions button {
        width: 100%;
    }

    .hln-site {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .hln-site h3 {
        grid-row: auto;
    }
}
