/* General Styles */
body {
    font-family: 'Garamond', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    font-weight: 300; 
}

h1, h2, h3 {
    font-family: 'Garamond', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
    margin-top: 0em;
}

/* Header Styles */
header.site-header {
    display: flex;
    align-items: center;
    padding: 1.2em 1.5em;
    border-bottom: 1px solid #ddd;
}

header .logo {
    margin-left: auto;
}


header .logo h1 {
    font-size: 1.5em;
    font-weight: 350;
    margin: 0;
    margin-left: auto;
}

.logo a {
    text-decoration: none;
    color: inherit;
}


/* Hamburger Menu Styles */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu div {
    width: 25px; 
    height: 2px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
}

.hamburger-menu div:nth-child(2) {
    width: 18px;  
}


.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 4.8em;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    z-index: 1000;
}

.nav-menu a {
    padding: 1em 1.5em;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.nav-menu a:hover {
    color: #888; 
    background-color: transparent;
}

.nav-menu .sns-icon {
    display: flex;
    align-items: center;
    padding: 0em 0em;
    justify-content: flex-start; 
}

.nav-menu .sns-icon img {
    width: 16px;
    height: 16px; 
    margin: 0 0.1em; 
    vertical-align: middle; 
}

.nav-menu .sns-icon a {
    text-decoration: none;
    color: #333;
}

.nav-menu .sns-icon a:hover {
    color: #888;
}

.show {
    display: flex;
}

@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background-color: transparent;
        border: none;
        justify-content: flex-start;
        text-align: left;
    }
    .nav-menu a {
        border: none;
        padding: 0 2em 0 0;
    }
}
  

/* Footer Styles */
footer.site-footer {
    text-align: left;
    padding: 0.5em;
    padding-left: 1.5em;
    border-top: 1px solid #ddd;
}


/* Work Section Styles */
.work-section {
    padding: 1.5em;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4em;
    margin: 0 auto;
    max-width: 1300px;
}

.work-item {
    position: relative;
    overflow: hidden;
}

.work-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.work-item a {
    display: block;
    position: relative;
    text-decoration: none;
}

.work-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    text-align: center;
    padding: 1em;
    box-sizing: border-box;
}

.work-item .overlay p {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.work-item:hover .overlay {
    background: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.work-item:focus .overlay {
    background: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

@media (max-width: 767px) {
    /* 画像とタイトルを縦に並べる */
    .work-item a {
        display: flex;
        flex-direction: column;
    }
    
    .work-item img {
        order: 1;
        height: auto;
        aspect-ratio: 1 / 1; 
    }

    .work-item .overlay {
        order: 2;
        position: static;    
        opacity: 1;         
        background: none;    
        transition: none;   
        margin-top: -0.9em;   
        display: block;
        text-align: right;  
    }

    .work-item .overlay p {
        font-size: 1.1em;
        margin-right:  -0.9em;    
    }

    .work-item:hover .overlay,
    .work-item:focus .overlay {
        opacity: 1;
        background: none;
    }
}



/* Content-page Styles */
.content-page {
    padding: 1.5em;
    max-width: 1200px;
    margin: 0 auto;
    /* 追加: ボックスの境界を確認するためのスタイル */
    /*border: 1px solid red;*/
}

.exhibition-page {
    padding: 1.5em;
    max-width: 1000px;
    margin: 0 auto;
    /* 追加: ボックスの境界を確認するためのスタイル */
    /*border: 1px solid red;*/
}

.content-image {
    display: block;
    width: 100%; 
    height: auto; 
    max-height: 600px;
    object-fit: contain; 
    margin: 1em auto;
    /* 追加: ボックスの境界を確認するためのスタイル */
    /*border: 1px solid blue;*/
}

.exhibition-image {
    display: block;
    width: 100%; 
    height: auto; 
    max-height: 700px;
    object-fit: contain; 
    margin: 5em auto;
    /* 追加: ボックスの境界を確認するためのスタイル */
    /*border: 1px solid blue;*/
}

.bio-image {
    display: block;
    width: 60%; 
    height: auto; 
    max-height: 500px;
    object-fit: contain; 
    margin: 0 auto;
    /* 追加: ボックスの境界を確認するためのスタイル */
    /*border: 1px solid blue;*/
}

.content-caption {
    text-align: center;
    margin: 10px 0;
    font-size: 1.1em;
}

.bio-entry {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.5em;
}

.bio-entry .year {
    flex: 0 1 auto;
    min-width: 80px;
    text-align: left;
}

.bio-entry .event {
    flex: 1;
    padding-left: 1em;
    text-align: left;
}


/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin-top: 2em;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 0.4em;
    font-weight: 300;
    color: #888;
}

.contact-form input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
    width: 100%;
    padding: 0.4em 0.5em;
    border: none;
    border-bottom: 1px solid #333;
    font-family: 'Garamond', Arial, sans-serif;
    font-size: 1em;
    font-weight: 300;
    color: #333;
    background: transparent;
    outline: none;
    box-sizing: border-box;
}

.contact-form textarea {
    width: 100%;
    height: 150px;
    resize: vertical;
    margin-top: 0.8em;
    border: 1px solid #333;
    padding: 0.4em 0.5em;
    font-family: 'Garamond', Arial, sans-serif;
    font-size: 1em;
    font-weight: 300;
    color: #333;
    background: transparent;
    outline: none;
    box-sizing: border-box;
}

.contact-form button[type="submit"] {
    background: none;
    border: none;
    padding: 0;
    font-family: 'Garamond', Arial, sans-serif;
    font-size: 1em;
    font-weight: 300;
    color: #333;
    cursor: pointer;
    letter-spacing: 0.05em;
    margin-top: 0.5em;
    text-decoration: underline;
}

.contact-form button[type="submit"]:hover {
    color: #888;
}

.contact-success {
    border-left: 2px solid #333;
    padding-left: 1em;
}

.errorlist {
    list-style: none;
    padding: 0;
    color: #888;
    font-size: 0.9em;
    margin-top: 0.3em;
}
