body {
    font-family: メイリオ,Arial, sans-serif;
    margin: 0;
    padding: 0;
}

main {
    text-align: center;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    z-index: 1000
    }

nav {
    display: flex;
    justify-content: center;
    padding: 0 16px;
    height: 64px;
    }

.container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    }

.brand {
    font-weight: bold;
    margin-right: auto;
    margin-left: 0;
}

ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    }

li {
    margin-right: 1.5rem;
    }

.contact-item {
    margin-right: 0; /* 右のマージンを0に */
    }

.contact-item a {
    padding-right: 0; /* 必要なら、パディングも0に */
    }

a {
    text-decoration: none;
    color: #313131;
    transition: color 0.3s;
    display: inline; /* リンクをインライン表示に設定 /
    padding: 0; / パディングをリセット */
}

a:hover,
a:focus {
    color: #ccc;
    outline: none;
    }

/* スマートフォン用のスタイル */
@media (max-width: 768px) {
#navbar #menu-list {
    display: none;
    flex-direction: column;
    padding: 0;
    margin: 0;
    background-color: #fff;
    overflow: hidden;
    max-height: 0; /* 初期値として高さを0に設定 */
    transition: max-height 0.5s ease-out; /* 高さを徐々に変更 */
}

#navbar #menu-list.open {
    display: flex;
    max-height: 200px; /* 想定される最大の高さを設定 */
}

nav {
        flex-direction: column;
        align-items: flex-start;
}

#menu-list {
        width: 100%;
}

li {
        margin-right: 0;
        padding: 0.75rem 0; /* 行間を調整 */
}

button {
        margin-top: 0px;
}
}

.spacer {
    height: 2rem; /* 2remの高さの空白を作成 */
}

.spacer1 {
    height: 1rem; /* 1remの高さの空白を作成 */
}

.frame {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 480px;
  text-align: left;
}

@media screen and (max-width: 768px) {
    .frame {
      font-size: 0.75rem;
      max-width: 80%;
    }
  }

.cvframe {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 700px;
  text-align: left;
}

@media screen and (max-width: 768px) {
    .cvframe {
    width: 100%;
    padding: 0 8px;
    text-align: left;
    font-size: 0.875rem;
    box-sizing: border-box;
    }
}

.cvframe a{
    display: inline; /* リンクをインライン表示に設定 */
    text-decoration: underline;
    color: #8d8d8d;
    padding: 0; /* パディングをリセット */
    transition: color 0.3s;
}

.cvframe a:hover,
.cvframe a:focus {
    color: #ccc;
}

#menu-button {
    color: #313131;
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;

}

@media (max-width: 768px) {
    #menu-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid #eaeaea;
        width: 100%;
    }

    #menu-list li {
        margin-right: 0;
    }

    #menu-button {
        display: block;
        background-color: #fff;
        color: #313131;
    }

    #menu-list.open {
        display: flex;
    }
}

/* モーダルおよびそれに関連するスタイル */
#announcementLinks {
    padding: 0;
}

#announcementLinks a {
    display: block;
    margin: 0;
    text-decoration: none;
    color: #3c3c3c;
    cursor: pointer;
    transition: color 0.3s;
}

#announcementLinks a:hover,
#announcementLinks a:focus {
    color: #ccc;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-content {
    border-radius: 10px; /* 角を丸くする */
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease; /* ふわっとした動き */
}

.close {
    color: #313131;
    position: absolute;
    top: 10px; /* 上からの距離を指定 */
    right: 10px; /* 右からの距離を指定 */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
}


@media (min-width: 768px) {
    .modal-content {
    border-radius: 10px; /* 角を丸くする */
    background: white;
    padding: 10px;
    width: 70%;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease; /* ふわっとした動き */
    }
}

.responsive-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
}

@media screen and (max-width: 768px) {
    .responsive-image {
        width: 100%;
    }
}

.prof-img {
    width: 700px;
    height: auto;
}

@media screen and (max-width: 768px) {
    .prof-img {
        width: 100%;
        max-width: 700px;
    }
}

.juryoku-img {
    width: 500px;
    height: auto;
}

@media screen and (max-width: 768px) {
    .juryoku-img {
        width: 100%;
        max-width: 500px;
    }
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

@media screen and (max-width: 768px) {
    .gallery {
    flex-direction: column;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    }

    .thumbnail {
        width: 100%;
        max-width: 300px;
    }
}

.gallery a{
    display: inline; /* リンクをインライン表示に設定 */
    text-decoration: underline;
    color: #8d8d8d;
    padding: 0; /* パディングをリセット */
    transition: color 0.3s;
}

.gallery a:hover,
.gallery a:focus {
    color: #ccc;
}

.thumbnail {
    display: inline-block;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: auto;
    padding-top: 2rem;
    transition: filter 0.3s ease;
}

/* Hover and focus effects to darken the image */
.thumbnail:hover img,
.thumbnail:focus img {
    filter: brightness(0.7);
}

.work {
    margin: 0 auto;
    padding: 0 8px;
    width: 100%;
    max-width: 1000px;
    text-align: left;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .work {
    width: 100%;
    padding: 0 8px;
    text-align: left;
    font-size: 0.875rem;
    box-sizing: border-box;
    }
}

.work a{
    display: inline; /* リンクをインライン表示に設定 */
    text-decoration: underline;
    color: #8d8d8d;
    transition: color 0.3s;
}

.footer{
    text-align: center;
    font-size: 0.7rem;
    color: #aaa;
}

.footer a {
    color: #aaa;
}

.footer a:hover,
.footer a:focus  {
    text-decoration: underline;
    color: #cecece;
}
