@charset "utf-8";
/*  

header 
footer 

*/

.sns {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-bottom: 20px;
}

.sns>a>img {
width: 20px;
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#header {
padding: 20px 20px;
top: 0;
font-family: Palatino, Georgia;
color: #0d2a67;
font-weight: bold;
text-align: center;
position: fixed;
z-index: 999;
width: 100%;
background-color: #fff;
}

#header .sp_wrapper {
display: flex;
justify-content: space-between;
align-items: center;
}

#header .home {
z-index: 999;
}

#header .home a {
font-size: 1.5rem;
color: #0d2a67;
text-decoration: none;
}

#header .home a:hover {
opacity: .8;
}

#header .sns{
position: absolute;
z-index: 100;
right: 20px;
top: 30px;
display: none;
}

.sp_sns{
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-top: 20px;
}

.sp_sns>a>img{
    width:24px;
}

#nav {
position: fixed;
right: -100%;
top: 0;
width: 100%;
height: 100%;
background-color: #fff;
}

#nav ul {
margin: 0;
padding: 0;
list-style: none;
}

#nav li a {
display: block;
border-bottom: 1px solid #0d2a67;
text-decoration: none;
color: #0d2a67;
font-size: 1rem;
padding: 20px;
position: relative;
}

/* ハンバーガーメニュー */
#header .hamburger {
width: 40px;
height: 30px;
z-index: 999;
}

#header .btn-line {
display: block;
position: relative;
/* バーガー線の基準 */
width: 100%;
height: 2px;
background-color: #0d2a67;
transition: .2s;
}

/****** 上下のバーガー線 *****/
#header .btn-line::before,
#header .btn-line::after {
content: "";
position: absolute;
left: 0;
width: 100%;
height: 100%;
background-color: #0d2a67;
transition: .5s;
}

#header .btn-line::before {
transform: translateY(-12px);
}

#header .btn-line::after {
transform: translateY(12px);
}

/* ハンバーガーメニュー OPEN */
#nav.show {
transform: translate3d(-100%, 0, 0);
}

#nav .menu {
padding-top: 100px;
}

#header.show .btn-line {
background-color: rgba(255, 255, 255, 0);
}

#header.show .btn-line::before {
bottom: 0;
transform: rotate(45deg);
}

#header.show .btn-line::after {
top: 0;
transform: rotate(-45deg);
}

/* 開く・閉じるアニメーション */
#nav {
transition: transform 0.6s;
}

/* 800px以上でnavメニュー常時表示 */
@media(min-width: 800px) {
#header {
    padding-top: 20px;
}

#header .sns{
    display: flex;
}

.sp_sns{
display: none;
}

#nav {
    position: relative;
    display: block;
    right: auto;
    top: auto;
    width: auto;
    height: auto;
}

#nav>.sp_logo {
    display: none;
}

#nav li a {
    border-bottom: none;
    padding: 10px ;
}

#nav li a::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 1.5px;
    background-color: #0d2a67;
    bottom: 4px;               
    transform: scale(0, 1);     
    transform-origin: left top; 
    transition: transform 0.3s;
    }
    
    #nav li a:hover::after {
    transform: scale(1, 1);    
    }

#nav li {
    margin-top: 0px;
}

#nav>.menu {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 16px 0 0;
}

#header .home {
    font-size: 2.25rem;
}

#header .hamburger {
    display: none;
}

#header .sp_wrapper {
    display: block;
}
}

/*-------------------------------------------
footer
-------------------------------------------*/
#footer {
background-color: #0d2a67;
padding: 40px 0;
text-align: center;
color: #fff;
}

.footer-menu{
display: flex;
gap: 16px;
color: #fff;
font-size: 0.75rem;
text-decoration: none;
justify-content: center;
align-items: center;
margin-bottom: 24px;
}

.footer-menu a{
color: #fff;
font-size: 0.75rem;
text-decoration: none;
}

@media(max-width: 669px){
.footer-menu{
    flex-direction: column;
    }
#footer small{
    font-size: 0.625rem;
}
#footer {
    background-color: #0d2a67;
    padding: 40px 16px;
    text-align: center;
    color: #fff;
}
}

