@charset "UTF-8";
body{
    font-family: "Zen Kaku Gothic New", sans-serif;
    background-color: #FAF7E7;
    color: #4D4D4D;
    font-size: 1.25rem;
    letter-spacing: 0.015em;
}
header{
    position: absolute;
    left: 0;
    top: 0;
    background-color: #fff;
    z-index: 10;
    width: 360px;
    padding: 12px 32px;
    border-radius: 0 0 24px 0;
}
.wrap{
    max-width: none;
}
#logo a{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px 0;
    transition: all ease .5s;
}
#logo a:hover{
    opacity: 0.7;
}
#logo span{
    font-size: 75%;
    font-weight: bold;
}
a,
main a{
    text-decoration: none;
    color: #4D4D4D;
}

#panel{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 100svh;
}
#panel article {
    display: flex;
    min-height: 400px;
}

#panel article > a,
#panel article .panel_inner{
    display: flex;
    width: 100%;
    height: 100%;
}
.panel_inner{
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.panel_inner figure{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 90%;
    height: 100%;
    text-align: center;
}
.panel_inner img {
  display: block;
  /* グラデーションマスク */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 60%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 60%,
    rgba(0,0,0,0) 100%
  );
}
article > a .panel_inner img {
    transition: all ease 0.5s;
}
article > a:hover .panel_inner img{
    opacity: 0.5;
    transform: scale(1.1);
}

.panel_inner .panel_txt{
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 16px 5%;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    gap: 4px 0;
}
.panel_inner .panel_txt h2{
    font-size: 130%;
    line-height: 1.4;

}

article > a .panel_inner .panel_txt{
    padding: 24px calc(5% + 40px) 24px 5%;
}
article > a .panel_inner .panel_txt span.ic{
    position: absolute;
    display: block;
    right: 5%;
    bottom: 16px;
    width: 48px;
    height: 25px;
    overflow: hidden;
}
article > a .panel_inner .panel_txt span.ic::after{
    content: "";
    display: block;
    width: 36px;
    height: 25px;
    background-image: url('https://www.fukushijinzai.jp/contents/wp-content/uploads/2026/01/icon_arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-left: auto;
}
article > a:hover .panel_inner .panel_txt span.ic::after{
    animation: hover_after 1s forwards 0s;
}
@keyframes hover_after {
    0%{
        transform: translateX(0);
    }
    30%{
        opacity: 0;
    }
    40%{
        transform: translateX(100%);
    }
    41%{
        transform: translateX(-50%);
    }
    50%{
        opacity: 0;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}

article > a .panel_inner .panel_txt h2 span{
    background-image: linear-gradient(90deg, #fff, #fff);
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 0 2px;
    padding-bottom: 2px;
    text-decoration: none;
    transition: background-size .4s;
}
article > a:hover .panel_inner .panel_txt h2 span{
    background-size: 100% 2px;
}

footer{
    padding: 86px 5%;
}
footer h3{
    font-size: 90%;
    font-weight: bold;
    margin: 1em 0 2em;
}
footer .fl_box{
    display: flex;
    justify-content: space-between;
    gap: 32px;
}
footer .info{
    display: flex;
    flex-direction: column;
    gap: 24px;
}
footer .info dl{
    font-weight: bold;
}
footer .info dt{
    font-size: 120%;
}
footer .link .btn a{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0 24px;
    padding:  18px 20px 18px 30px;
    border-radius: 50px;
    background-color: #fff;
}
footer .link .btn a::after{
    content: "";
    width: 29px;
    aspect-ratio: 3 / 2;
    background-image: url('https://www.fukushijinzai.jp/contents/wp-content/uploads/2026/01/icon_arrow2.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
footer .link .btn a:hover::after{
    animation: hover_after 1s forwards 0s;
}
footer .link .btn a img{
    height: 24px;
    width: auto;
}
footer .link ul{
    margin-top: 2em;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px ;
    font-size: 80%;
}
footer .link li a{
    display: flex;
    align-items: center;
    gap: 8px;
}
footer .link li img{
    width:18px;
    height: auto;
}
footer .link li a span{
    background-image: linear-gradient(90deg, #4d4d4d, #4d4d4d);
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 0 1px;
    text-decoration: none;
    transition: background-size .4s;
}
footer .link li a:hover span{
    background-size: 100% 1px;
}
footer aside{
    display: flex;
    align-items: flex-end;
    opacity: 0.5;
    font-size: 80%;
}


@media screen and ( max-width:1000px ){
    #panel{
        min-height: 720px;
        grid-template-columns:repeat(2, 1fr);
    }
    footer .fl_box{
        flex-wrap: wrap;
    }
}

@media screen and (min-width:0px) and ( max-width:728px ){
    body{
        font-size: 1rem;
    }
    header{
        position: static;
        width: 100%;
        border-radius: 0;
    }
    #logo img{
        height: 24px;
        width: auto;
    }
    #logo span{
        font-size: 80%;
    }
    #panel{
        min-height: 98svh;
    }
    #panel article{
        min-height: 200px;
    }
    .panel_inner figure{
        max-height: 200px;
        padding: 20px 0;
    }
    .panel_inner img{
        max-height: 100%;
        width: auto;
    }
    article > a .panel_inner .panel_txt{
        padding: 16px calc(5% + 32px) 16px 5%;
    }
    .panel_inner .panel_txt h2{
        font-size: 110%;
        line-height: 1.2;
    }
    .panel_inner .panel_txt .sub{
        display: none;
    }
    article > a .panel_inner .panel_txt span.ic{
        width: 38px;
        height: 16px;
    }
    article > a .panel_inner .panel_txt span.ic::after{
        width: 25px;
        height: 16px;
    }
    footer .fl_box{
        gap: 48px 0;
    }
}