/* fixedボタン
====================================================*/
.top-fixed-emergency {
    position: fixed;
    width: 10%;
    right: calc((100vw - 1218px) / 2);
    top: 30%;
    max-width: 80px;
    z-index: 9999;
}
@media screen and (max-width: 1200px) {
    .top-fixed-emergency {
        width: 7%;
        right: 0;
        top: 20.9%;
        z-index: 999;
        max-width: 75px;
        min-width: 25px;
    }
}
.top-fixed-emergency:hover {
    opacity: 0.7;
}
.top-fixed-emergency img {
    width: 100%;
}
/* @media screen and (min-width: 1201px) {
    .top-fixed-emergency {
        right: 50%;
        bottom: 0;
        transform: translateX(675px);
        -webkit-transform: translateX(675px);
    }
} */
@media screen and (max-width: 500px) {
    .top-fixed-emergency {
        top: 70%;
    }
}

/* トップスライダー
====================================================*/
.topsider-wrap {
    position: relative;
}
.swiper {
    position: absolute;
    width: 70%;
    aspect-ratio: 2401 / 901;
}
.swiper img {
    width: 100%;
}
.swiper img:hover {
    filter: brightness(1.1);
}
.swiper-pagination-bullets {
    position: static;
    margin-top: clamp(0.5rem, 0.3182rem + 0.9091vw, 1rem);
}
.swiper-pagination-bullet {
    width: clamp(0.5rem, 0.4091rem + 0.4545vw, 0.75rem) !important;
    height: clamp(0.5rem, 0.4091rem + 0.4545vw, 0.75rem) !important;
    margin: 0 0 0 10px !important;
    background: #00b0ee !important;
}
.swiper-pagination-bullet:first-child {
    margin: 0 !important;
}
.swiper-button-prev,
.swiper-button-next {
    width: 24px; /* ボタンの幅 */
    height: 40px; /* ボタンの高さ */
    background-size: 24px 40px; /* 表示したいサイズ */
    transform: translateY(-50%);
    margin-top: 0;
}
@media screen and (max-width: 500px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 12px; /* ボタンの幅 */
        height: 20px; /* ボタンの高さ */
        background-size: 12px 20px; /* 表示したいサイズ */
    }
}
/* 次ページボタンのスタイル */
.swiper-button-next {
    background-image: url("./img/2024/arrow-topslider.png");
}
/* 前ページボタンのスタイル */
.swiper-button-prev {
    background-image: url("./img/2024/arrow-topslider.png");
    transform: translateY(-50%) scale(-1, 1); /* 左右反転 */
}
.swiper-button-prev:after,
.swiper-button-next:after {
    display: none;
}

/* 取組紹介
====================================================*/
.top-activity-wrap {
    margin: clamp(1rem, 0.6364rem + 1.8182vw, 2rem);
    position: relative;
    background-color: #00b0ee;
    border: #00b0ee 3px solid;
}
@media screen and (max-width: 500px) {
    .top-activity-wrap {
        margin: clamp(0.5rem, 0.3182rem + 0.9091vw, 1rem);
    }
}
.top-activity-in {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 2%;
    flex-wrap: wrap;
}
.top-activity-card {
    width: 23%;
    margin: 1%;
    display: flex;
    flex-direction: column;
}
.top-activity-card:hover {
    opacity: 0.7;
}
@media screen and (max-width: 767px) {
    .top-activity-card {
        width: 48%;
    }
}
.top-activity-img {
    position: relative;
}
.top-activity-img img {
    aspect-ratio: 250 / 150;
    object-fit: cover;
}
.top-activity-name {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3%;

    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.top-activity-title {
    color: #00abe8;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: left;
    padding: 3% 3% 0;
    min-height: clamp(3.375rem, 3.1705rem + 1.0227vw, 3.9375rem);
}
.top-activity-day {
    padding: 3% 0;
    font-size: clamp(0.625rem, 0.5795rem + 0.2273vw, 0.75rem);
    text-align: right;
}

/* 熱中症を学ぼう
  ====================================================*/
.top-study-wrap {
    padding: 2%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.top-study-card {
    width: 28%;
    background-color: #fff;
    border-radius: 3%;
    margin: 2%;
}
.top-study-card img {
    width: 85%;
}
@media screen and (max-width: 767px) {
    .top-study-card {
        width: 90%;
    }
    .top-study-card img {
        width: 40%;
        max-width: 200px;
    }
    .top-study-card h3 {
        font-size: clamp(1.375rem, 1.1477rem + 1.1364vw, 2rem);
    }
}
.top-study-title {
    color: #00b0ee;
}
.top-study-text {
    text-align: left;
    width: 85%;
    margin: 0 auto;
    min-height: 110px;
}
.top-study-button {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background-color: #00b0ee;
    padding: 0.5rem 0.5rem 0.6rem;
    border-radius: 100vh;
}
.top-study-button:hover {
    opacity: 0.7;
}
@media screen and (max-width: 767px) {
    .top-study-text {
        min-height: 30px;
    }
}

/* 熱中症予防・動画紹介
  ====================================================*/
.top-movie-wrap {
    display: flex;
    flex-wrap: wrap;
}
.top-movie-content {
    width: 46%;
    margin: 2%;
}
.top-movie-content:hover {
    opacity: 0.7;
}
@media screen and (max-width: 767px) {
    .top-movie-content {
        width: 100%;
    }
}

/* アワード紹介
====================================================*/
.gold-gradation {
    background: linear-gradient(to right, #ffd700, #fff5ee, #ffd700);
}
.award-grid-container {
    margin: 0 auto;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    gap: 2%;
}
.award-card {
    padding: 6%;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
}
.award-card:hover {
    opacity: 0.8;
}
.award-card p {
    font-size: clamp(0.625rem, 0.4886rem + 0.6818vw, 1rem);
    padding-top: 2%;
    text-align: left;
}
@media screen and (max-width: 500px) {
    .award-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    }
}

/* スペシャルコンテンツ
  ====================================================*/
.top-special-wrap {
    display: flex;
    flex-wrap: wrap;
}
.top-special-content {
    width: 46%;
    margin: 2%;
}
.top-special-content:hover {
    opacity: 0.7;
}
