@charset "UTF-8";

html {
    scroll-behavior: smooth; /* スムーススクロール */
}

header {
    width:1000px;
    top: 0; /* 上下の固定位置を上から0pxにする */
    position: fixed; /*** ← fixedで固定 ***/
    background-color: white;
    padding-left: 20px;
    padding-right: 20px;
}

body {
    padding-top: 95px;
    width:1000px;
    margin-right:auto;
    margin-left:auto;
    font-family: serif;
    font-family: san-serif;
    color: #4d4d4d;
    padding-left: 20px;
    padding-right: 20px;
}

footer {
    width:1000px;
    background-color: white;
    border-top: 2px solid #000;
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    font-family: serif;
    color: black;
}

h2 {
    font-family: serif;
    color: black;
}

li {
    margin-bottom: 10px;
}

a {
    color: black;
    font-weight: normal;
}

.page-title{
    font-family:  "Cinzel", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 50px;
    color: black;
    margin-top: 30px;
    margin-bottom: 5px;
    border-bottom: 2px solid #000;
}

.page-title a {
    text-decoration: none;
    font-weight: 500;
    color: #000000;
}

.navi {
    position: fixed; /*** ← fixedで固定 ***/
    display: flex;
    justify-content: center;
    height: 60px;
    width:1000px;
    gap: 30px;
    background-color: white;
}

.navi .navi-item p{
    font-size: 25px;
    font-family: serif;
    font-weight: bold;
    margin-top: 10px;
}

.navi .navi-item p a{
    text-decoration: none;
    font-weight: bold;
    color: #000000;
}

.container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.item img {
    width: 40px;
    transition-duration: 0.3s;
}
.item:hover img{
    transform: scale(1.2);
    transition-duration: 0.3s;
  }

.item {
    width : 150px;
}

.item .caption {
    margin : 5px;
    color: #4d4d4d;
}

.anchor {
    padding-top: 160px; /*ジャンプのオフセット*/
    margin-top: -160px; /*ジャンプのオフセット*/
}

#portrait {
    display: flex; /*横並び*/
    margin-top: 60px;
    margin-bottom: 50px;
    align-items: center;
}

#portrait img {
    border-radius: 20px;
    margin-right: 20px;
}