body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-image: url("index-bg.jpeg");
    background-size: cover;
    background-attachment: fixed;
    background-position: left bottom;
    background-color:rgba(255,255,255,0.75);
    background-blend-mode:lighten;
    color: #333333;
}

header {
    background-color: #D8E9FF;
    padding: 20px;
    position: fixed; /* Fixes the header at the top */
    top: 0;
    width: 100%; /* Ensures the header spans the full width */
    z-index: 1000; /* Keeps the header on top of other elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for depth */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px; /* Optional: limits the width of the header content */
    margin: 0 auto; /* Centers the header content */
}

h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: normal;
    font-family: monospace;

}

h1 a {
    color: inherit;
    text-decoration: none;
}

.language {
    font-size: 14px;
}

.language a {
    text-decoration: none;
    color: #333;
    margin: 0 5px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 110px auto 5px auto;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    font-weight: Medium;
    background-color: #2950CA;
    color: #F6F8FF;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 3px 3px 5px #888888;
}

.image-section {
    width: 100%;
    height: 380px;
    margin: 0;
    padding: 0;
}

img {
  max-width: 100%;
  max-height: 350px;
  height: auto;
  object-fit: cover;
  padding: 0;
  margin: 0;
}



/* 表示領域全体 */
div.container.itmFade_3 {
  position : relative;
  max-width : 420px;
  max-height : 360px;
  margin :0 auto 4em auto;
}


/* 表示領域の「position: relative;」により，領域高さが0になるため，paddingで高さを確保する */
div.container.itmFade_3::before {
  content : "";
  display : block;
  padding-top : 57%;
}


/* アニメーションの設定 */
div.container.itmFade_3 div.item {
  position: absolute;
  top : 0;
  left : 0;
  max-width : 100%;
  max-height : 100%;
  opacity : 0;
  animation : itmFade3-chg-itm-anim 30s infinite;  /* アニメーション : 下記「@keyframes chg-itm-anim の 0% から 100% まで」を「15秒」で「無限」に繰り返す */
}
/* 1つ目のアイテム */
div.container.itmFade_3 div.item:nth-of-type( 1 ) {
  animation-delay : 0s;  /* アニメーション(下記「@keyframes chg-itm-anim」)の開始を0秒遅らせる */
}
/* 2つ目のアイテム */
div.container.itmFade_3 div.item:nth-of-type( 2 ) {
  /**
   * アニメーションの進行(下記「@keyframes chg-itm-anim」)の開始を5秒遅らせる
   * (上記アニメーション全体15秒の1/3，1枚目のアニメーションが33%に到達(フェードアウト開始)した時に2枚目のアニメーション(フェードイン)開始)
  **/
  animation-delay : 5s;
}
/* 3つ目のアイテム */
div.container.itmFade_3 div.item:nth-of-type( 3 ) {
  /**
   * アニメーションの進行(下記「@keyframes chg-itm-anim」)の開始を10秒遅らせる
   * (上記アニメーション全体15秒の1/3，2枚目のアニメーションが33%に到達(フェードアウト開始)した時に3枚目のアニメーション(フェードイン)開始)
  **/
  animation-delay : 10s;
}

/* 4つ目のアイテム */
div.container.itmFade_3 div.item:nth-of-type( 4 ) {
  /**
   * アニメーションの進行(下記「@keyframes chg-itm-anim」)の開始を10秒遅らせる
   * (上記アニメーション全体15秒の1/3，2枚目のアニメーションが33%に到達(フェードアウト開始)した時に3枚目のアニメーション(フェードイン)開始)
  **/
  animation-delay : 15s;
}

/* 5つ目のアイテム */
div.container.itmFade_3 div.item:nth-of-type( 5 ) {
  /**
   * アニメーションの進行(下記「@keyframes chg-itm-anim」)の開始を10秒遅らせる
   * (上記アニメーション全体15秒の1/3，2枚目のアニメーションが33%に到達(フェードアウト開始)した時に3枚目のアニメーション(フェードイン)開始)
  **/
  animation-delay : 20s;
}

/* 6つ目のアイテム */
div.container.itmFade_3 div.item:nth-of-type( 6 ) {
  /**
   * アニメーションの進行(下記「@keyframes chg-itm-anim」)の開始を10秒遅らせる
   * (上記アニメーション全体15秒の1/3，2枚目のアニメーションが33%に到達(フェードアウト開始)した時に3枚目のアニメーション(フェードイン)開始)
  **/
  animation-delay : 25s;
}

/* アニメーションの進行 */
@keyframes itmFade3-chg-itm-anim {
  0% {
    opacity : 0;
  }
  10%{
    opacity : 1;
    z-index : 3;
  }
  16%{
    opacity : 1;
  }
  /**
   * 画像が3枚のため1枚当たり33%
   * 1枚目->2枚目(33%・不透明から50%・透明)にフェードして切り替える
   * 50%到達(全体アニメーション時間の半分)で前の画像が見えなくなる
   */
  50%{
    opacity : 0;
    z-index : 1;
  }
  100% {
    opacity : 0;
  }
}



.info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.info-block {
    width: 400px;
    min-width: 400px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #A8B9F0;
    color: #223E17;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 3px #888888;
}

.info-block h2 {
    margin-bottom: 0;
    margin-top: 0;
    font-size: 18px;
    font-weight: normal;
}

.info-content ul {
    margin: 30px 0 45px;
    font-size: 16px;
}

.info-content iframe {
    margin: 30px 0 35px;
    font-size: 16px;
}


/* --- Biography --- */



.biography-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 100px auto 40px auto; /* Adjust margin-top for fixed header */
    width: 50%;
    max-width: 1200px;
}

.profile-image {
    flex: 1;
    max-width: 200px; /* Adjust size of profile image container */
    object-fit: cover;
    margin-right: 20px;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 3px 3px 5px #888888;
}

.biography-text {
    flex: 2;
    text-align: left;
}

.biography-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: normal;
}

.biography-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}




/* --- Works --- */



/* Sidebar with fixed position */
.sidebar {
    position: fixed;
    top: 200px; /* Adjust this value based on your header height */
    left: 4%;
    width: 170px;
    padding: 15px;
    background-color: #F3F7FF;
    border-right: 1px solid #ccc;
    box-shadow: 3px 3px 5px #888888;
    z-index: 1000;
}

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

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 1100px) {
.sidebar { display: none;  }
}




/* Works section*/
.works-section {
    width: 50%;
    min-width: 600px;
    margin: 0 auto;
    margin-top: 70px; /* Offset for the fixed header */
}

.work-type h2 {
    align-items: center;
    font-size: 24px;
    font-style: bold;
    margin-bottom: 20px;
    padding-top: 90px;
    margin-top: -60px;
}

.work-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 3px 3px 5px #888888;
    background-color: white;
    position: relative; /* Enable z-index to work */
    z-index: 10; /* Brings the work-item to the front */
}


.work-item:nth-child(even) {
    background-color: #f9f9f9;
}

.score-image {
    flex: 1;
    max-width: 200px;
    margin-right: 20px;
}


.score-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 3px 3px 5px #888888;
}

.score-image:hover {
    border-radius: 8px;
    box-shadow: 5px 5px 40px -20px #555; /* Add a stronger shadow on hover */
}

.work-details {
    flex: 2;
    text-align: left;
}

.work-details h3 {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 10px;
    font-weight: normal;
}

.work-details p {
    margin: 5px 0;
    font-size: 16px;
    line-height: 150%;
}

.work-details ul {
    margin-top: 0;
    margin-bottom: 0;
}

.work-details ul li {
    margin: 5px 0;
    font-size: 16px;
    line-height: 150%;
}

.work-details a {
    color: #b2781a;
    text-decoration: none;
    font-weight: bold;
}



/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sits above other content */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black background with opacity */
    opacity: 0; /* Initial opacity */
    transition: opacity 0.5s ease-in-out; /* Transition for fade effect */
}

.modal.show { /* When modal is shown, change opacity */
    display: block;
    opacity: 1; /* Fade-in to full visibility */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 3px 3px 10px #000;
    transition: transform 0.3s ease-in-out;
}

.modal-content:hover {
    transform: scale(1.25); /* Zoom effect on hover */
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #bbb;
}

#caption {
    margin: 15px auto;
    text-align: center;
    color: #fff;
    font-size: 18px;
}




/* --- Contact --- */


.inquiry-section {
    padding: 10px 0;
}

.inquiry-explanation {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 30px auto 30px auto; /* Adjust margin-top for fixed header */
    width: 70%;
    max-width: 1200px;
}



.inquiry-form {
    margin: 0 auto;
}




/* Responsive Design */
@media only screen and (max-width: 600px) {
    /* Stack header elements vertically */
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    
    /* Stack nav links vertically on smaller screens */
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 120px;
        padding: 0 20px;
    }

    nav ul li {
        margin: 10px 20px;
    }

    nav ul li a {
        padding: 10px 15px;
        width: 100%;
        text-align: left;
    }

    .info-block {
    width: 75%;
    min-width: 150px;
    }

    .biography-section {
    width: 90%;
    }

    .profile-image {
    max-width: 100px; /* Adjust size of profile image container */
    }

    /* Remove the sidebar on small screens */
    .sidebar {
        display: none;
    }

    /* Adjust works section width to 100% on smaller screens */
    .works-section {
        width: 100%;
        margin-left: 0;
        padding: 0 20px;
    }

    /* Stack score image and details vertically for smaller screens */
    .work-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .score-image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .work-details {
        text-align: center;
    }
}


