@import url("button.css");

* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

body {
    background-color: #FFF; /*bg*/;
    margin: 0;
    padding: 0;
}

header {
    background-color: #FFF; /*bg*/;
    color: #333;
    text-align: left;
    padding: 5px;
    height:55px;
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}


section h1 {
    margin-block-end: 0px;
}

ul {
    list-style: none;
    padding: 10px;
    margin: 0px;
}
  


.site-title {
    margin: 0;
    z-index:1000;
}

.site-title img {
    max-height:60px;
    max-width: 100%;
}

.menu-icon {
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    display: none; /* パソコンでは非表示にする */
}

/* ハンバーガーアイコン */
.menu-icon input {
    display: none;
}

.menu-icon label {
    position: absolute;
    right: 10px;
    top: 0px;
    z-index: 100;
    cursor: pointer;
    height: 20px;
    width: 25px;
}

.menu-icon span,
.menu-icon span:before,
.menu-icon span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #333;
    transition: 0.5s;
    position: absolute;
}
.menu-icon span {
    top: 8px;
}

.menu-icon span:before {
    bottom: 8px;
}

.menu-icon span:after {
    top: 8px;
}

.menu-icon input:checked ~ label span {
    background: rgba(255, 255, 255, 0);
}

.menu-icon input:checked ~ label span::before {
    bottom: 0;
    transform: rotate(45deg);
}

.menu-icon input:checked ~ label span::after {
    top: 0;
    transform: rotate(-45deg);
}

nav {
    background-color: #FFF; /*bg*/;
    text-align: center;
    padding: 0px 20px 0px 20px;
    top: 0;
    right: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center; /* メニューアイテムを中央寄せにする */
    align-items: end; /* メニューアイテムを垂直方向に中央寄せにする */
    height: 65px;
}


nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li:last-child {
    margin-right: auto;
}
  
nav li {
    text-wrap: nowrap;
}

nav a {
    padding: 5px 14px;
    color: #333;
    text-decoration: none;
    display: block;
    border-bottom: solid white;
    transition: .2s ;
}

nav a:hover {

    border-bottom-color: #666;
}

nav.show {
    display: block;
}

section {
    padding: 20px 40px;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

footer hr {
  height: 1px;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

footer {
  padding: 2rem;
  font-size: 15px;
  color: #999;
  background: #fff;
}
footer .copyright {
    text-align: left;
}

.to-facebook {
    display: flex;
    align-items: center;
    
    
    & img {
        flex: 1;
        height: 24px;
    }
    
    &::after {
        content: ">";
    }
}


/* レスポンシブデザイン */
@media (max-width: 1024px) {
    section {
        padding: 10px 5% 30px;
    }
    section#head {
        padding: 20px;
    }

    ul {
        padding: 5px;
    }
      
    
    .menu-icon {
        position: fixed;
        top: 20px;
        right: 20px;
        display: block;
    }
    .site-title {
        margin-right: 75px;
    }

    nav {
        padding: 0px 10px 0px 13px;
        position: fixed;
        top: 62px;
        display: grid;
        flex-direction: column; /* モバイルではメニューアイテムを縦に配置 */
        text-align: center;
        width: auto;
        max-height: 0px;
        height: auto;
        overflow: hidden;
        grid-template-rows: 0fr;
        transition: all 0.5s ease-in; /* height の変化に対するトランジションを変更 */
        
    }

    nav.show {
        max-height: 500px;
        box-shadow: -10px 10px 15px -15px rgba(0, 0, 0, .5);
        border-bottom-left-radius: 10px;
        padding-bottom: 3px;
    }

    nav ul {
        flex-direction: column; /* モバイルではメニューアイテムを縦に配置 */
        align-items: start;
    }

    nav ul li {
        margin: 0px;
        width: 100%;
    }

    nav ul li a {
        padding: 7px 10px 7px 2px;
        width: 100%;
        display: block;
        text-align: left;
        border: none;
    }

    nav a:hover {
        border: none;
    }
}

