@charset "utf-8";

.top{
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
}

.top-image{
    position: relative;
    height: 100vh;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.top-image img{
    position: absolute;
    top: 10px;
    right: 5%;
    max-width: 450px;
    z-index: 1;
}

.top-message{
    position: absolute;
    width: 100%;
    bottom: 50px;
    z-index: 1;
}

.top-message h2{
    text-align: center;
    font-size: 2.75rem;
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.6));
}

.top-message h2 span{
    font-size: 3.0rem;
    font-weight: 800;
}

.top-blog{
    position: absolute;
    top: 50%;
    left: 7.5%;
    transform: translateY(-50%);
    padding: 20px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #008232;
    border-radius: 20px;
    box-shadow: 0 0 8px gray;
}

.top-blog-header h3{
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.0rem;
}

.top-blog-body-item{
    padding: 5px 0 8px;
    border-bottom: 2px dotted #333;
}

.top-blog-body-item:first-child{
    border-top: 2px dotted #333;
}

.top-blog-body-item-box{
    display: flex;
}

.top-blog-body-item-title{
    width: 300px;
}

.top-blog-body-item-info{
    display: flex;
    flex-flow: column;
    align-items: end;
    gap: 3px;
    width: 100px;
}

.main-box-home .top-blog-body-item-info{
    width: auto;
}

.top-blog-body-item-title p,.top-blog-body-item-box time{
    font-size: 1.0rem;
    font-weight: 600;
}

.top-blog-body-item-info-category a{
    font-size: 0.8rem;
    padding: 2px 5px;
    background-color: #008232;
    border-radius: 10px;
    color: #fff;
}

.top-blog-body-item-info-category a:hover{
    opacity: 0.8;
}

.main-box-home .post-categories{
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 10px;
}

.main-box-home .post-categories>li>a{
    display: block;
    width: fit-content;
}

.top-blog .sec-button{
    margin: 15px auto 5px;
}

.top-blog .sec-button-box{
    padding: 5px 10px;
}

@media screen and (max-width:850px) {
    .top-blog-body-item-box{
        flex-direction: column-reverse;
    }
    .top-blog-body-item-info{
        flex-flow: unset;
        justify-content: space-between;
        width: 100%;
    }
    .top-blog-body-item-title{
        width: 275px;
    }
}

@media screen and (max-width: 800px) {
    .top-image img{
        top: auto;
        bottom: 15%;
        max-width: 350px;
    }
    .top-message{
        bottom: 130px;
    }
}

@media screen and (max-width: 700px) {
    .top-image img{
        top: auto;
        bottom: 5.5%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .top-blog{
        top: auto;
        bottom: 190px;
        left: 50%;
        transform: translateX(-50%);
        padding: 5px 15px 10px;
    }
    .top-blog-header h3{
        text-align: center;
        margin-bottom: 5px;
        font-size: 1.5rem;
    }
    .top-blog-body-item-3,.top-blog-body-item-4,.top-blog-body-item-5{
        display: none;
    }
    .top-message h2{
        font-size: 2.0rem;
    }
    .top-message h2 span{
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .top-blog{
        bottom: 170px;
    }
    .top-message h2{
        font-size: 1.4rem;
    }
    .top-message h2 span{
        font-size: 1.75rem;
    }
    .top-blog-body-item-title{
        width: 250px;
    }
}

/* 基本設定（PCなど：必要であれば制限なし、または広めの幅） */
.top .top-blog-body-item-title p {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* スマホサイズ（例: 560px以下） */
@media screen and (max-width: 560px) {
    .top .top-blog-body-item-title p {
        /* 横幅を制限することで、自動的にその幅に応じた文字数で「...」になります */
        max-width: 250px; 
        white-space: nowrap; /* 1行で収める場合 */
    }
}

/* policy */
.policy-list{
    max-width: 940px;
    margin: 40px auto 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.policy-list>li{
    flex: 1;
    max-width: 175px;
    min-width: 168px;
    margin: 0;
    display: flex;
}

.policy-list>li>.policy-item-box{
    display: block;
    position: relative;
    z-index: 2;
    background-color: #fff;
    border: 2px solid #008232;
    box-shadow: 0 0 4px gray;
    color: #008232;
    text-align: center;
    line-height: 1.5;
    width: 100%;
    border-radius: 20px;
    padding: 110px 5px 8px 5px;
    transition: 0.3s;
}

.policy-list>li>.policy-item-box:hover{
    background-color: #008232;
    color: #fff;
    transition: 0.3s;
}

.policy-list>li.pair>.policy-item-box::before{
    background-image: url(../images/front-page/pair-green.webp);
}

.policy-list>li.pair:hover>.policy-item-box::before{
    background-image: url(../images/front-page/pair-white.webp);
    transition: 0.3s;
}

.policy-list>li.active.pair>.policy-item-box::before{
    background-image: url(../images/front-page/pair-white.webp);
}

.policy-list>li.stairs>.policy-item-box::before{
    background-image: url(../images/front-page/stairs-green.webp);
}

.policy-list>li.stairs:hover>.policy-item-box::before{
    background-image: url(../images/front-page/stairs-white.webp);
    transition: 0.3s;
}

.policy-list>li.active.stairs>.policy-item-box::before{
    background-image: url(../images/front-page/stairs-white.webp);
}

.policy-list>li.network>.policy-item-box::before{
    background-image: url(../images/front-page/network-green.webp);
}

.policy-list>li.network:hover>.policy-item-box::before{
    background-image: url(../images/front-page/network-white.webp);
    transition: 0.3s;
}

.policy-list>li.active.network>.policy-item-box::before{
    background-image: url(../images/front-page/network-white.webp);
}


.policy-list>li>.policy-item-box::before{
    position: absolute;
    content: "";
    width: 75px;
    height: 75px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    top: 15px;
    left: calc(50% - 37.5px);
}

.policy-item-title{
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* achievements */
.achievements-list{
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.achievements-item{
    position: relative;
    transition: transform 0.3s ease;
}

.achievements-item:hover{
    opacity: 0.8;
    transform: scale(1.02);
}

.achievements-item::before{
    position: absolute;
    left: -5px;
    top: -5px;
    content: "要望\A達成";
    white-space: pre-wrap;
    padding: 5px 10px;
    background-color: #fff;
    border: 2px solid #e83929;
    border-radius: 50%;
    font-size: 1.0rem;
    font-weight: 600;
    color: #e83929;
}

.achievements-item-info-image{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 150px;
    min-height: 150px;
}

.achievements-item-info-title{
    text-align: center;
}


/* report */
#report .sec-description,#council .sec-description{
    width: fit-content;
    text-align: center;
    margin: 20px auto 20px;
}

.report-list{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0 10px;
}

.report-item-box{
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.report-item-box-image{
    width: 200px;
    height: 280px;
    margin-bottom: 10px;
    transition: transform 0.5s;
}

.report-item-box-image:hover{
    opacity: 0.8;
    transform: scale(1.05);
}


/* council */
.council-list{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.council-item-box{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: #333;
    border: 2px solid #008232;
    border-radius: 20px;
    box-shadow: 0 0 4px gray;
    width: 200px;
    height: 100px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: transform 0.5s;
}

.council-item-box:hover{
    background-color: #008232;
    color: #fff;
    transform: scale(1.05);
}


/* profile */
.profile{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.profile-box-left-table{
    width: fit-content;
    height: 250px;
    overflow-y: scroll;
}

.profile th{
    vertical-align: top;
    width: 70px;
}

.profile td{
    padding: 0 0 10px;
    width: 220px;
    font-size: 0.9rem;
}

.profile-sns{
    margin: 30px 0 0;
}

.profile-sns-header{
    font-weight: 600;
    margin: 10px 0;
}

.profile-sns-list{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-sns-item-icon{
    width: 30px;
}

.profile-sns-item-youtube a .profile-sns-item-icon img{
    border-radius: 50%;
}

.profile-box-right{
    max-width: 300px;
    max-height: 400px;
    padding: 20px;
    border: 2px solid #008232;
    border-radius: 20px;
    overflow: hidden;
}

@media screen and (max-width: 800px) {
    .profile{
        flex-direction: column-reverse;

    }
}



