/* --- カスタムスクロールバー --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tailwind 互換: JS が classList で切り替え */
.hidden {
    display: none !important;
}

/* --- 月別コンテンツのフェードイン --- */
.fade-in {
    animation: hsFadeIn 0.3s ease-in-out;
}
@keyframes hsFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ヒーロー --- */
.hs-hero {
    position: relative;
    background: #fff;
    overflow: hidden;
}
.hs-hero__bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hs-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hs-hero__inner {
    position: relative;
    z-index: 8;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 420px;
}
.hs-hero__card {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}
@media (max-width: 767px) {
    .hs-hero__card {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

.hs-hero__title {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1.5rem;
    line-height: 1.25;
}
.hs-hero__title-sub {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}
.hs-hero__title-accent {
    color: #047857;
}
.hs-hero__lead {
    font-size: 14px;
    color: #334155;
    margin: 0 0 2rem;
}
.hs-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
}
.hs-hero__btn-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
.hs-btn-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    background: #7030A0;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
    transition: background-color 0.15s ease;
}
.hs-btn-alert:hover {
    background: #974BD0;
}
.hs-btn-alert svg {
    width: 1.25rem;
    height: 20px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.hs-btn-rescue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
    min-height: 48px;
    border-radius: 0.5rem;
    border: 2px solid #262C7E;
    background: #D1D3D7;
    color: #262C7E;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    transition: background-color 0.15s ease;
}
.hs-btn-rescue:hover {
    background: #B1B3B8;
}
.hs-btn-rescue__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.hs-btn-rescue svg {
    width: 1rem;
    height: 16px;
    margin-right: 0.375rem;
    color: #f97316;
    flex-shrink: 0;
}
.hs-hero__banner-wrap {
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
.hs-hero__banner-link {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}
.hs-hero__banner-link:hover {
    transform: scale(1.05);
}
.hs-hero__banner-img {
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
}
.hs-hero__inner a::after {
    content: none !important;
    display: none !important;
}

@media (min-width: 640px) {
    .hs-hero__btn-row {
        flex-direction: row;
    }
    .hs-btn-alert,
    .hs-btn-rescue {
        flex: 1 1 0%;
    }
}
@media (min-width: 768px) {
    .hs-hero__title {
        font-size: 48px;
    }
    .hs-hero__title-sub {
        font-size: 36px;
    }
    .hs-hero__card {
        max-width: 36rem;
        margin-left: 3rem;
    }
}
@media (min-width: 1024px) {
    .hs-hero__inner {
        padding: 2.5rem 1rem;
        min-height: 520px;
    }
    .hs-hero__card {
        max-width: 38rem;
        padding: 2rem;
        margin-left: 4rem;
    }
}

/* --- 注目コンテンツ --- */
.hs-page-section {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.hs-featured-block {
    margin-bottom: 2rem;
}
.hs-featured-heading {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.hs-featured-heading svg {
    width: 1.5rem;
    height: 24px;
    margin-right: 0.5rem;
    color: #f97316;
    flex-shrink: 0;
}
.hs-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.hs-featured-block .box-col3 {
    margin: 0;
    column-gap: 0;
}
@media (min-width: 640px) {
    .hs-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .hs-featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.hs-featured-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
    height: 180px;
    background: #0f172a;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
}
.hs-featured-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}
.hs-featured-card:hover .hs-featured-card__img {
    opacity: 0.9;
}
.hs-featured-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.25), transparent);
    pointer-events: none;
}
.hs-featured-card__body {
    position: absolute;
    inset: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.hs-featured-card__label {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.375rem;
}
.hs-featured-card__label--topic {
    background: #f97316;
}
.hs-featured-card__label--column {
    background: #059669;
}
.hs-featured-card__label--guide {
    background: #3b82f6;
}
.hs-featured-card__label--case {
    background: #14b8a6;
}
.hs-featured-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

/* --- イベント / お知らせ 2カラム --- */
.hs-twocol {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .hs-twocol {
        flex-direction: row;
    }
    .hs-twocol > .hs-panel {
        width: 50%;
        flex: 1 1 50%;
    }
    .hs-twocol > .hs-twocol__aside {
        box-sizing: border-box;
        width: 50%;
        flex: 1 1 50%;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .hs-twocol__aside .hs-panel {
        width: 100%;
        flex: 1 1 auto;
    }
}
.hs-panel {
    box-sizing: border-box;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 400px;
}
.hs-panel__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.hs-panel__title {
    display: flex;
    align-items: center;
    font-size: 18.4px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    border-left: none;
    padding: 0;
}
@media (min-width: 1280px) {
    .hs-panel__title {
        font-size: 20px;
    }
}
.hs-panel__title svg {
    width: 1.5rem;
    height: 24px;
    margin-right: 0.5rem;
    color: #059669;
    flex-shrink: 0;
}
.hs-event-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.hs-event-nav__btn {
    padding: 0.25rem;
    border: none;
    border-radius: 0.25rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.hs-event-nav__btn:hover {
    background: #e2e8f0;
}
.hs-event-nav__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.hs-event-nav__btn:disabled:hover {
    background: transparent;
}
.hs-event-nav__btn:disabled:hover svg {
    transform: none;
}
.hs-event-nav__btn svg {
    width: 1.25rem;
    height: 20px;
    display: block;
    transition: transform 0.15s ease;
}
.hs-event-nav__btn--prev:hover svg {
    transform: translateX(-2px);
}
.hs-event-nav__btn--next:hover svg {
    transform: translateX(2px);
}
#current-month-display {
    font-weight: 700;
    color: #065f46;
    font-size: 18px;
}
#heatstroke-events-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    position: relative;
    overflow-x: hidden;
}
.hs-panel__footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    text-align: right;
}
.hs-link-emerald {
    font-size: 14px;
    font-weight: 500;
    color: #059669;
    text-decoration: none;
}
.hs-link-emerald:hover {
    text-decoration: underline;
}

/* --- イベント一覧（JS 生成マークアップ） --- */
.hs-event-fetch-error {
    font-size: 14px;
    color: #64748b;
    padding: 1rem;
    margin: 0;
}
.hs-event-month-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
}
.hs-event-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.25rem;
}
.hs-event-list > li + li {
    margin-top: 1rem;
}
.hs-event-empty-root {
    position: absolute;
    inset: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.hs-event-empty-text {
    color: #64748b;
    font-size: 14px;
}
.hs-event-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f8fafc;
}
.hs-event-item--past {
    opacity: 0.6;
}
@media (min-width: 640px) {
    .hs-event-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }
    .hs-event-item__col--body {
        align-self: flex-start;
    }
}
.hs-event-item__col--date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    width: 6rem;
}
.hs-event-item__col--date > time {
    display: block;
    align-self: flex-start;
    margin-bottom: 0.25rem;
}
.hs-event-badge {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    font-size: 10px;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    align-self: flex-start;
}
.hs-event-badge--ended {
    background: #e2e8f0;
    color: #475569;
}
.hs-event-badge--online {
    background: #dbeafe;
    color: #1d4ed8;
}
.hs-event-badge--venue {
    background: #dcfce7;
    color: #15803d;
}
.hs-event-time {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    line-height: 1.5;
}
.hs-event-time--strike {
    text-decoration: line-through;
}
.hs-event-item__col--body {
    min-width: 0;
    flex: 1;
}
.hs-event-title-link {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    line-height: 1.625;
    margin-bottom: 0.25rem;
    text-decoration: none;
    transition: color 0.15s ease;
}
.hs-event-item:hover .hs-event-title-link {
    color: #059669;
}
.hs-event-title-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    line-height: 1.625;
    margin-bottom: 0.25rem;
}
.hs-event-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.hs-event-desc--muted {
    color: #94a3b8;
}

/* --- お知らせパネル --- */
.hs-panel--news {
    flex-shrink: 0;
}
.hs-news-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    min-height: 0;
}
.hs-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.hs-panel__head .hs-panel__title {
    margin: 0;
}
.hs-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hs-news-list > li + li {
    margin-top: 0.75rem;
}
.hs-news-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.hs-news-item time {
    display: block;
    align-self: flex-start;
    font-size: 12px;
    color: #64748b;
    font-family: ui-monospace, monospace;
    width: 5rem;
    flex-shrink: 0;
    line-height: 1.5;
}
.hs-news-item a {
    display: block;
    align-self: flex-start;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    /*white-space: nowrap;*/
    min-width: 0;
    line-height: 1.5;
    transition: color 0.15s ease;
}
.hs-news-item a:hover {
    color: #059669;
}

/* --- 下部：熱中症に関する情報（カードグリッド） --- */
.hs-section-bg {
    background-color: #f8fafc;
    padding: 3rem 0;
}

.hs-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.hs-title {
    font-size: 24px;
    font-weight: bold;
    color: #0f172a;
    border-left: 4px solid #059669;
    padding-left: 0.75rem;
    line-height: 1.2;
    margin: 0;
}

.hs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .hs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hs-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background-color: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.08);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.hs-card:hover {
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    border-color: #e2e8f0;
}

.hs-card-icon {
    width: 4rem;
    height: 64px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.hs-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hs-card:hover .hs-card-icon img {
    transform: scale(1.1);
}

.hs-card-body {
    flex-grow: 1;
}

.hs-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    transition: color 0.2s ease;
}

.hs-card:hover .hs-card-title {
    color: #059669;
}

.hs-card-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.625;
    margin: 0;
}
