/*styles.css*/

body {
  font-family: apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Roboto', 'Zen Kaku Gothic Antique', sans-serif  !important;
  font-size: 16px; 
  color: #222222; 
  background-color: #ffffff; 
  -webkit-font-smoothing: antialiased;
  overflow-y: scroll;
}



/*メニューグリッド*/

.image-grid-parent {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 95vh; 
    overflow-x: auto; 
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    grid-template-rows: repeat(3, 200px);
    gap: 10px;
    width: 620px;
    height: 620px;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    background-color: #007bff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.menu a {
    display: inline-block;
    position: relative;
    width: 200px;
    height: 200px;
    z-index: 5;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    font-family: 'Noto Serif JP', serif;
    font-size: 300%;
    font-weight: bold;
    line-height: 98%;
    margin-bottom: 1em;
}

.menu:hover .menu-overlay {
    opacity: 1;
}

.menu-name {
    position: absolute;
    top: auto;
    bottom: 5%;
    left: auto;
    right: 10px;
    margin: auto;
    padding: 0;
    text-align: center;
    letter-spacing: -1px;
    color: #ffffff;
    font-size: 200%;
    font-weight: 200;
    text-shadow: 0px 0px 10px #000000;
    z-index: 2;
}

.menu-base {
    display: flex;
    position: absolute;
    color: #ffffff;
    line-height: 73%;
    margin-bottom: 1em;
    text-align: right;
    letter-spacing: -2px;
    font-weight: bold;
    font-size: 180%;
    bottom: -1%;
    right: 0%;
    margin: 0;
    padding: 0;
    z-index: 3;
}

.info8 {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: -1;
}
/*8番のグラデ操作部*/
.info8::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	background-image: linear-gradient(180deg, transparent 0 20%, #003d53 98%);
    mix-blend-mode: multiply;
    z-index: 1;
}
/*8番のカウンタ操作部*/
.info8 img:nth-of-type(2) {
    display: flex;
    position: absolute;
    top: 70%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, 0%);
    mix-blend-mode: lighten;
    width: 86%;
    height: auto;
    z-index: 2;
}

.update {
    display: flex;
    position: absolute;
    line-height: 93%;
    margin-bottom: 1em;
    text-align: center;
    color: #ffffff;
    font-size: 80%;
    text-shadow: 0px 0px 5px #000000; 
    top: 40%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, 0%);
    right: auto;
    margin:0;
    padding:0;
    z-index: 3; 
}    

.date {
    display: flex;
    position: absolute;
    line-height: 93%;
    margin-bottom: 1em;
    text-align: center;
    color: #ffffff;
    font-size: 125%;
    text-shadow: 0px 0px 5px #000000; 
    top: 48%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, 0%) scalex(120%);
    right: auto;
    margin:0;
    padding:0;
    z-index: 3; 
}    

.rights {
    display: flex;
    position: absolute;
    line-height: 90%;
    margin-bottom: 100%;
    text-align: center;
    color: #ffffff;
    opacity: 0.7;
    font-size: 80%;
    text-shadow: 0px 0px 5px #000000; 
    bottom: 2%;
    left: 50%;
    right: auto;
    transform: translate(-50%, 0%);
    right: auto;
    margin:0;
    padding:0;
    z-index: 3; 
}    



/*メニューグリッド小型化＋タッチ画面つまりスマホ用メディアクエリ 複雑化回避のため ,(hover: none)削除、タブレットはPCと共通*/
@media (max-width: 640px) or (max-height: 430px) {
    .menu-overlay{
        background-color: rgba(0, 0, 0, 0.0);
        mix-blend-mode: normal;
        opacity: 0.5;
        font-size: 100%;
        justify-content: flex-end;
        align-items: flex-end;
        text-align: right;
        text-shadow: 0px 0px 5px #000000;
        margin-top: -15px; 
        padding-bottom: 10px;
    }
    .image-grid {
      grid-template-columns: repeat(3, 114px);
      grid-template-rows: repeat(3, 114px);
      gap: 4px; /*注意！ gapは２本あることに注意せよ。この値を倍にして下の値から引き1/3にしたものが上の値*/
      width: 350px;
      height: 350px;
    }
    .image-grid img {
        width: 114;
        height: 114;
    }
    .menu {
        width: 114px;
        height: 114px;
    } 
    .menu a {
        width: 114px;
        height: 114px;
    }
    .menu-name {
        font-size: 110%;
        bottom: 3%;
    }
    .menu-base {
        letter-spacing: -1px;
        font-size: 100%;
    }
    .menu-base-about {
        letter-spacing: -1px;
        font-size: 100%;
    }
    .update {
        font-size: 40%;
    }
    .date {
        font-size: 80%;
    }
    .rights {
        font-size: 35%;
    }
}
 



/* ギャラリー表示処理 */
@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  .gallery-container {
    display: none;
    animation: fadeIn 0.3s ease-in-out; /* 0.3秒かけてアニメーションを適用 */
  }
  .gallery-container.show {
    display: block;
    opacity: 1;
  }
  


/*about*/
  
.profile-container {
    display: flex;
    justify-content: space-between;
    max-width: 704px;
    margin: 0 auto;
    padding: 20px;
    font-family: sans-serif;
  }
  
  .content-block {
  
    padding: 20px;
    background-color: white;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
  }
  
  .block-a {
    width: 350px;
    text-align: left;
    margin-bottom: 5px;
  }
  
  .content-blocks {
    display: flex;
    flex-direction: column;
  }
  
  .block-b {
    width: 200px;
    text-align: right;
    margin-bottom:100px;
  }
  .block-c {
    text-align: left;
    margin-bottom: 5px;
  }
  
  @media (max-width: 750px) {
    .profile-container {
      flex-direction: column;
      max-width: 350px;
      padding: 0px;
    }
  
    .content-block {
      width: 90%;
      margin-bottom: 10px;
    }
    .block-a {
      margin-left: 0px;
    }
    .block-c {
      margin-top: 10px;
    }
  }
  
  .headline {
    font-weight: bold;
    font-size: 120%;
  }
  
  .torisetsu {
    font-size: 80%;
    margin-bottom: 50px;
  }  

  .unagi {
    font-weight: bold;
    font-size: 120%;
  }

  @media (min-width: 750px) {
    .torisetsu {
      display: none
    }
  }

  /*うえにいくやつ*/
  #scroll-top-button {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0; /* 初期状態で非表示 */
    transition: opacity 0.3s ease-in-out; /* フェードイン・フェードアウトのアニメーション */
}
    #scroll-top-button.show {
    opacity: 1; /* 表示時にフェードインする */
}

#scroll-top-button-container {
    position: fixed;
    bottom: 0px;
    right: 0px;
    z-index: 10; /* ボタン用のz-indexを増やす */
}

.gallery {
    position: relative; /* relativeに変更 */
    overflow: hidden; /* 表示領域をはみ出さないようにする */
}


/* about処理 */
.profile-container {
    display: none; /* プロフィールコンテンツをデフォルトで非表示にする */
  }
  
  .profile-container.show {
    display: flex; /* "show" クラスが付与された際に表示する */
  }
  


/* fancybox bg */
.fancybox-white .fancybox-bg {
  background: white;
}

.fancybox-black .fancybox-bg {
  background: rgb(1, 10, 32);
}
.fancybox-is-open .fancybox-bg {
    opacity: 0.95;
}

.fancybox-white .fancybox-caption {
  background: linear-gradient(to top,
  rgba(210, 230, 255, 0.85) 0%,
  rgba(210, 230, 255, .7) 50%,
  rgba(210, 230, 255, .5) 65%,
  rgba(210, 230, 255, .3) 75.5%,
  rgba(210, 230, 255, .2) 82.85%,
  rgba(210, 230, 255, .135) 88%,
  rgba(210, 230, 255, 0) 100%);
/* 変更前
  background: linear-gradient(to top,
      rgba(210, 230, 255, 0.85) 0%,
      rgba(210, 230, 255, .3) 50%,
      rgba(210, 230, 255, .15) 65%,
      rgba(210, 230, 255, .075) 75.5%,
      rgba(210, 230, 255, .037) 82.85%,
      rgba(210, 230, 255, .019) 88%,
      rgba(210, 230, 255, 0) 100%);
*/
  bottom: 0;
  color: #000000;
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 300;
  left: 0;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
  padding: 75px 20px 25px 20px; 
  pointer-events: none;
  right: 0;
  text-align: center;
  z-index: 99996;
  width: 360px;
}
.fancybox-black .fancybox-caption {
  background: linear-gradient(to top,
  rgba(0, 50, 100, 0.85) 0%,
  rgba(0, 50, 100, .3) 50%,
  rgba(0, 50, 100, .15) 65%,
  rgba(0, 50, 100, .075) 75.5%,
  rgba(0, 50, 100, .037) 82.85%,
  rgba(0, 50, 100, .019) 88%,
  rgba(0, 50, 100, 0) 100%);
/*変更前
      rgba(0, 50, 100, 0.85) 0%,
      rgba(0, 50, 100, .3) 50%,
      rgba(0, 50, 100, .15) 65%,
      rgba(0, 50, 100, .075) 75.5%,
      rgba(0, 50, 100, .037) 82.85%,
      rgba(0, 50, 100, .019) 88%,
      rgba(0, 50, 100, 0) 100%);
*/
  bottom: 0;
  color: #dfeaff;
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 300;
  left: 0;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
  padding: 75px 20px 25px 20px;
  pointer-events: none;
  right: 0;
  text-align: center;
  z-index: 99996;
  width: 360px;
}



.captiontitle {

  text-align: center;
}
.captiontxt {

  text-align: left;
}
.captiondate {

  text-align: right;
}

