* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh; /*フッターを画面下に固定*/
    display: flex;
    flex-direction: column;
    background-image: url(/bg_img.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

header {
    display: flex;
    min-height: 60px;
    background: #333;
    color: #fff;
    text-align: center;
    justify-content: center;
    align-items: center;
    position: relative;
}


.hamburger {
    text-align: center !important;
    font-size: 24px;
    cursor: pointer;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2000;
    background-color: #333;
    height: 60px;
    width: 60px;
    line-height: 60px;
}

#hamburger span {
    display: block;
    background-color: #fff;
    position: absolute;
    width: 24px;
    height: 2px;
    left: 30px;
    line-height: 1;
    -webkit-transition: 0.4s ease-in-out;
    -moz-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
    transform: translate(-50%, -50%);

}
#hamburger span:nth-of-type(1){
    top: 20px;
}
#hamburger span:nth-of-type(2){
    height: 2.4px;
    top: 30px;
}
#hamburger span:nth-of-type(3){
    top: 40px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 100%;
    width: 250px;
    height: 100%;
    background: #333;
    transition: 0.4s ease-in-out;
    z-index: 1000;
    padding-top: 60px;
}

.navbar a {
    display: block;
    padding: 15px;
    color: #fff;
    text-decoration: none;
}
.open #navbar {
    left: calc(100% - 250px);
}

.open #hamburger span:nth-of-type(1){
    top: 30px;
    right: 30px;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: calc(24px * 1.414);
}
.open #hamburger span:nth-of-type(2){
    width: 0;
}
.open #hamburger span:nth-of-type(3){
    top: 30px;
    right: 30px;
    transform: translate(-50%, -50%) rotate(45deg);
    width: calc(24px * 1.414);
}
/* main {
    min-height: 100vh;
} */
.selector {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    /* margin: 2px 0px; */
}
select {
    appearance: none;
    color: #333;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    /* border: none; */
    padding: 0 4px;
    height: 30px;
    font-size: 0.8rem;
}
#categorySelector {
    width: 120px;
}
#monthSelector {
    width: 80px;
}
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.sort-button {
    appearance: none;
    align-items: center;
    font-size: 0.8rem;
    border: 1px solid #ccc;
    height: 30px;
    width: 55px;
    /* border-radius: 4px; */
    color: #333;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.4s, color 0.4s;
}
.sort-button:nth-of-type(1){
    border-right: #f0f0f0;
}
.sort-button:nth-of-type(2){
    border-left: #f0f0f0;
}
.sort-button:hover {
    background-color: #e6e6e6;
}
  
.sort-button.active {
    background-color: #0078d7;
    color: white;
    border-color: #0078d7;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}
.container {
    text-align: justify;
    min-height: calc(96.4vh - 70px);
    padding: 40px;
    /* max-width: 1200px; */
    margin: 0px;
    background-color: rgb(255, 255, 255, 0.7);
    /* border-radius: 5px; */
    flex-grow: 1; /* コンテンツがフッターまで伸びる */
}
.post-content {
    text-align: justify;
}
.post-navigation {
    display: block;
    flex-wrap: wrap; /* 行を折り返す */
    justify-content: space-between; /* 左右に配置 */
    align-items: flex-start; /* 上揃えを確保 */
    gap: 10px; /* アイテム間の余白 */
}
.post-navigation {
    display: flex; /* 横並びを確保 */
    flex-wrap: wrap; /* 幅が狭い場合は折り返し */
    justify-content: space-between; /* 左右に配置 */
    align-items: flex-start; /* 上揃えを確保 */
    gap: 10px; /* アイテム間の余白 */
}

.prev-post, .next-post {
    padding: 0;
    width: 100%; /* 必要ならmax-widthも設定 */    
    margin: 0; /* 不要な余白を削除 */
}
.hidden {
    opacity: 0;         /* 透明にする */
    visibility: hidden; /* 見えなくする */
}

footer {
    font-size: 1.6vh;
    text-align: center;
    padding: 10px;
    background: #333;
    color: #fff;
    position: relative;
    width: 100%; /* フッターを全幅にする */
}

h1 {
    font-size: 2vh;
    vertical-align: middle;
    padding: 0;
}

h2 {
    border-bottom: 2px solid #333;

}

h3 {
    font-size: small;
    font-weight: lighter;
}

p {
    margin: 0;
}


ul {
    list-style-type: none;
    padding: 0;
}

li {
    height: 24px;
    display: flex;
    align-items: center;
}



figure {
    margin: 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center; 
    gap: 10px;
}

img {
    width: 80vw;
    height: auto;
    margin: 10px auto;
    display: block;
}

/* 特定のクラスを持つfigure内のimgには40vw */
figure.wp-block-gallery img {
    width: 40vw;
    margin: 10px;
    display: inline-block;
}
/* スマートフォンサイズ以下の画面に適用するメディアクエリ */
@media (max-width: 496px) {
  img {
    width: 80vw; /* 画像の幅を80vwに設定（スマートフォン用） */
    display: block; /* 縦並びにするためにブロック表示に変更 */
    margin: 10px auto; /* 画像を中央寄せ、上下の隙間を設定 */
  }
}
  
a:active{
    opacity: 1;
}

.hidden {
    display: none;
}

form {
    padding-bottom: 10px;
    text-align: center;
}
.login {
    display: inline-block;
    line-height: 30px;
    margin: 5px;
    vertical-align: middle;
}
.login input {
    height: 24px
}
.login label{
    line-height: 24px;
}
.login #username{
    border-radius: 5px;
}
.login #password{
    border-radius: 5px;
}
.login #submit{
    display: inline-box;
    width: 120px;
    height: 30px;
    margin: 5px;
    border-radius: 5px;
}

section {
    margin-bottom: 20px;
    text-align: justify;
    background-color: #f9f9f9;
    padding: 5px 15px;
}
section:last-of-type {
    margin-bottom: 0px;
}

.home {
    border-left: 5px solid #33cccc;
}

.home li{
    font-size: large;
    font-weight: bold;
    padding: 4px;
}

.about {
    border-left: 5px solid #00ff0d;
}

.blog {
    border-left: 5px solid #0066cc;
    text-align: initial;
}

.news a {
    text-decoration: underline;
}

.schedule {
    background-color: #f9f9f9;
    border-left: 5px solid #ffcc66;
}

.schedule ul {
    padding-left: 20px;
}

.schedule ul li {
    margin-bottom: 10px;
}

.contact {
    border-left: 5px solid #575757;
}

.playlist {
    border-left: 5px solid #ff0033;
}

.playlist a{
    color: black;
    opacity: 1;
}


table {
    width: 100%;
}
#result {
    table-layout: fixed;
}
th, td {
    padding: 8px 10px;
    font-weight: normal;
    text-align: center;
}

.com_snslink {text-align:center;padding: 1.5em 0 2em;font-size:1em;}
.com_snslink li {margin: 0 .5em;width: 3em;display:inline-block;vertical-align:middle;}
.com_snslink li a {display: block;width: 3em;height: 3em;overflow: unset;/*background: #fff;border: 1px solid #eee;*/border-radius: 50%;position: relative;}
.com_snslink li a svg {fill:#fff;position:absolute;top: 50%;left: 50%;transform: translateY(-50%) translateX(-50%);-webkit-transform: translateY(-50%) translateX(-50%);width: 1.5em;height: 1.5em;}
.com_snslink li a span {width: 3em;height: 3em;position: absolute;top: 50%;left: 50%;transform: translateY(-50%) translateX(-50%);-webkit-transform: translateY(-50%) translateX(-50%);}
.com_snslink li.x a { background-color: #0f1419;border: 1px solid #333;}
.com_snslink li.insta a {background-color: #0f1419;background-size:cover;}
.com_snslink li.mail a {background-color: #0f1419;background-size:cover;}
.com_snslink li.youtube a {background-color: #0f1419;background-size:cover;}
.com_snslink li.mail2 a {background-color: #333;background-size:cover;}
.com_snslink img {max-width: 100%;}

/* メディアクエリ */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        padding: 10px 0;
    }

    /* 各セクションのパディング調整 */
    .container {
        padding: 10px;
    }

    section {
        margin-bottom: 20px;
    }
}

