html {
  scroll-behavior: smooth;
}


body {
  
  margin: 0;
  padding: 0;

  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;

  position: relative;
  min-height: 100%;
  background: linear-gradient(
    0deg,
    rgba(247, 166, 12, 0.55),
    rgba(255, 198, 95, 0.55) 0%,
    rgba(249, 255, 99, 0.55) 0%,
    rgba(233, 197, 0, 1) 0%,
    rgba(205, 174, 7, 1) 0%,
    rgba(119, 104, 27, 1) 0%,
    rgba(138, 124, 56, 1) 0%,
    rgba(109, 99, 53, 1) 0%,
    rgba(40, 39, 45, 1) 11%,
    rgba(14, 18, 51, 1)
  );

  background-attachment: fixed;

 }

 body::before{

  content: "";
  position: fixed;  
  inset: 0;         
  background-image: url(../img/6709086.png);
  background-repeat: repeat;
  opacity: 0.15;    /* ←ノイズの濃さをここで調整 */
  pointer-events: none; 
  z-index: 0;

 }
    
.container{
    
    max-width: 1000px;
    position: relative;
    margin: 0 auto;  
    box-sizing: border-box; 
    overflow: hidden;
}

main{
    min-height: 100vh;
    height: auto;
    padding-top: 10px;

    /* カラー無地
    background-color: rgb(14, 18, 51);
    */
    display: flex;
    
    
}

/* 調整用スタイル */

a {
  text-decoration: none;
}

ul,
li {
  list-style: none;
}



/* ヘッダー */

header{
  margin-top: 0px;
  padding-top: 10px;
  
}

.header h1{

  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
  color: #ffffea;
}


a h1:hover{

  transition : 0.5s;
  color: #3b8bcc;

}

.header li{

  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
  
}

.header li a{
  color: #ffffea;
}

.header li a:hover{

  transition : 0.5s;
  color: #3b8bcc;

}


.header {
  /* カラー無地
  background-color: rgb(14, 18, 51);
  */
  width: 100%;
  height: 50px;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.header__inner {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: inherit;
  position: relative;
}

@media screen and (min-width: 960px) {
  .header__title {
    font-size: 20pt;
  }
}
/* ヘッダーのナビ部分 */

.header__nav {
  position:fixed;
  right: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  transform: translateX(100%);
  background-color: #2e4869;
  
  
  opacity: 0.7;
  transition: ease .4s;
  z-index: 4; 
}

.header__nav.active {
  transform: translateX(0);
}

@media screen and (min-width: 960px) {
  .header__nav {
    position: static;
    transform: initial;
    background-color: inherit;
    height: inherit;
    display: flex;
    justify-content: end;
    width: 50%;
    
  }
}

@media screen and (min-width: 960px) {
  .nav__items {
    width: 100%;
    display: flex;
    align-items: center;
    height: initial;
    justify-content: right;
    
  }
}

@media screen and (min-width: 960px) {
  .nav-items__item {
    margin-left: 20px;
    
  }
}

.nav-items {
  padding-top: 50px;
  padding-bottom: 50px;
}

.nav-items__item {

    
    padding: 15px;
    
}

@media screen and (min-width: 960px) {
  .nav-items {
    padding-top: inherit;
    padding-bottom: inherit;
  }
}

/* ナビのリンク */
.nav-items__item a {
  
  width: 100%;
  display: block;
  text-align: center;
  font-size: 15px;
  margin-bottom: 24px;
  
}

.nav-items__item:last-child a {
  margin-bottom: 0;
}

@media screen and (min-width: 960px) {
  .nav-items__item a {
    margin-bottom: 0;
  }
}

/* ハンバーガーメニュー */

.header__hamburger {
  width: 48px;
  height: 100%;

}

.hamburger {
  background-color: transparent;
  border-color: transparent;
  z-index: 9999;
}

@media screen and (min-width: 960px) {
  .hamburger {
    display: none;

  }
}
/* ハンバーガーメニューの線（ネオン化） */
.hamburger span {
  width: 100%;
  height: 2px;
  background-color: #ff75c5;
  position: relative;
  display: block;
  transition: ease .4s;

  /* ネオンの光 */
  box-shadow:
    0 0 5px #ff75c5,
    0 0 10px #ff75c5,
    0 0 15px #ff99d6,
    0 0 20px #ffb3e2;
}

/* 中央の線（marginそのまま） */
.hamburger span:nth-child(2) {
  margin: 8px 0;
}

/* クリック後のアニメーション */
.hamburger.active span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: -15px;
  transform: rotate(-45deg);
}

/* ネオン消さずに X の状態も光らせたい時はこう */
.hamburger.active span {
  box-shadow:
    0 0 5px #ff75c5,
    0 0 10px #ff75c5,
    0 0 20px #ff99d6,
    0 0 30px #ffb3e2;
}


/* スライドのスタイル */
.slide{
  position: relative;
  aspect-ratio: 3/2;
  margin-bottom: 10px;
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;

  border-radius:10px;
}

.front {
  z-index: 2;
  opacity: 1;
}

.back {
  z-index: 1;
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

.slide img.logo {
  position: absolute;
  top: auto; 
  left: auto; 
  right: 12px;
  bottom: 12px;
  width: 15%;
  height: auto;
  object-fit: contain; 
  z-index: 3; 
  pointer-events: none; 
}
/* フィルター設定 */
#filter{
  font-family: "Allerta Stencil", sans-serif;
  font-weight: 400;
  font-style: normal;

  color: #ffffea;
  font-size: 16px; 

  background-color: #ff75c5;
  

  background:rgb(32, 93, 143,0.3);
  width: 100%;
  border-radius:5px;
  
}

.filter_box{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;

  padding: 15px;
}

.filter_box label{
  margin-right: 15px;
}

#filter input[type="checkbox"] {
  appearance: none;      /* ブラウザデフォルトを消す */
  -webkit-appearance: none; /* Safari/Chrome用 */
  width: 24px;           /* 好きなサイズ */
  height: 24px;
  border: 2px solid #205d8f;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  margin-right: 8px;
  vertical-align: middle;
}

/* チェックされた時の表示 */
#filter input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fc40d3;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}




/* 画像ボックスのスタイル */

/* デフォルトの flex レイアウト（小さい画面向け） */
.main {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  gap: 8px;

  transition: all 0.3s ease;

}

.img_box {
  flex: 0 0 calc((100% - 8px) / 2); /* 2列 */
  aspect-ratio: 1 / 1;
  background:#205d8f;
  padding: 2px;
  box-sizing: border-box;

  border-radius:2%;

  opacity: 1;            
  transform: translateY(0);
  transition: all 0.3s ease;

}

.img_box.hide {
  opacity: 0;
  transform: translateY(20px); /* 下に少しずらして消える */
  pointer-events: none;        /* クリックできない */
}

.img_box:hover{

  background-color: #a2c3ff;
  opacity: 0.8;

}

.img_box img{

  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  border-radius:2%;

  
}


/* 480px以上の画面に適用 480-769*/
@media (min-width: 481px) {
  .main {
    
    gap: 15px;
    
  }

  .img_box {
    flex: 1 1 calc((100% - 15px)/2);
  }
}


/* 768px以上の画面に適用 769-max*/
@media (min-width: 769px) {
  .img_box {
    
    flex: 0 0 calc((100% - 40px)/3);
    
  }

  .main{
    
    gap: 20px;
    
  }
}



/* ライトボックス全体 */
#lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 0px;
  overflow-y: auto;
  z-index: 9999;

  opacity: 0;
  transition: opacity .4s ease, transform .8s ease-in-out;
  pointer-events: none; /* 非表示時にクリック無効 */

  transform: scale(0.9);
}



#lightbox.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#lightbox.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}



#lb-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto; /* 縦スクロール可能 */
}

#lb-extra {
  width: 100%;
  margin-top: 10px;
  text-align: center;
}


.extra-wrap img{

  width: 100%;
}


#lb-extra p{
  color: #fff;
}

#lb-extra img {
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 10px auto;
}

#lb-img {
  max-width: 100%;
  max-height: 80vh; /* ここで縦長画像も収める */
  object-fit: contain; /* 横長・縦長問わず収める */
  margin-bottom: 10px;
}

#lb-caption {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  margin-top: 10px;
  max-width: 90%;   /* 幅を制限 */
  word-wrap: break-word; /* 長い文章も折り返す */
}


/* ボタン */
#lb-close, .lightbox-close{
  position: absolute;
  top: 16px;
  right: 16px;
  
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(135, 141, 197, 0.6);
  color: #b8fff7;
  font-size: 34px;
  line-height: 4px;
  text-align: center;
  cursor: pointer;
  z-index: 10001; /* 矢印より前面にしたいなら大きめに */
  pointer-events: auto;

  /* ネオン光 */
  box-shadow:
    0 0 6px rgba(0,255,240,0.10),
    0 0 12px rgba(0,255,240,0.06),
    0 8px 20px rgba(0,0,0,0.5) inset;

  text-shadow:
    0 0 6px #00f0e0,
    0 0 12px #00e6d8;

  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  filter: drop-shadow(0 6px 18px rgba(0,240,220,0.12));
}

#lb-prev, #lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(135, 141, 197, 0.6); /* 暗めの半透明 */
  color: #ffd6f2;
  font-size: 32px;
  line-height: 10px;
  text-align: center;
  cursor: pointer;
  z-index: 10000;
  pointer-events: auto;

  /* ネオンっぽい光 */
  box-shadow:
    0 0 6px rgba(255,117,197,0.12),
    0 0 12px rgba(255,117,197,0.08),
    0 8px 20px rgba(0,0,0,0.6) inset;

  /* テキストの光（外側） */
  text-shadow:
    0 0 6px #ff75c5,
    0 0 12px #ff75c5,
    0 0 24px #ff40b3;

  /* ふわっと浮かせるアニメ */
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

#lb-prev {
    left: 5px;
  }
  #lb-next {
    right: 5px;
  }

  #lb-prev, #lb-next, #lb-close {
  z-index: 10000; /* 最前面に強制 */
}


@media (min-width: 601px) {
  #lb-prev {
    left: 10px;       /* 左に寄せる */
    top: 50%;          /* 縦中央 */
    transform: translateY(-50%);
  }
  #lb-next {
    right: 10px;       /* 右に寄せる */
    top: 50%;
    transform: translateY(-50%);
  }

  #lb-prev, #lb-next {
    width: 48px;
    height: 48px;
    line-height: 30px;
    font-size: 32px;
  }
}

/*
@media (max-width: 600px) {
  #lb-prev {
    left: 5px;
  }
  #lb-next {
    right: 5px;
  }

  #lb-prev, #lb-next {
    width: 30px;
    height: 30px;
    line-height: 15px;
    font-size: 26px;
  }
}
  */


footer{
    width: 100%;
    color: #ffffea;
    text-align: center;
    
    margin-top: 10px;
    padding-bottom: 20px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
   
}

.footer {
  
  
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  line-height:23px ;
  
}

.about{

  background:rgb(32, 93, 143,0.3);
  width: 100%;
  padding:  15px;
  border-radius:5px;

  display: flex;
  flex-direction: column;

  
}

.myicon figure {
 
  margin: 0px ;
  
}

.myicon figure img{
  border-radius:5%;
}

.introduce {
   
  padding: 0px 0px 0px 0px;      
}

.first_p{

  margin-bottom: 10px;
}


.introduce p{
   
  text-align: left; 
}

.introduce h4{

  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;

  margin-bottom: 5px;

}

.about h3{
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;

  margin-bottom: 10px;
}

@media screen and (min-width: 960px){
  .about{
    display: block;
  }

  .myicon figure {
    float: left;
    margin-right: 15px;
  
  }
  

}

.sns{

  background:rgb(32, 93, 143,0.3);
  width: 100%;
  border-radius:5px;
  padding:  15px;

  display: flex;
  flex-direction: column;
  margin-left: 10px;
  
}

.sns h3{

  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;

  margin-bottom: 10px;

}

.sns_icon{

margin-bottom: 20px;
display: flex;
flex-direction: column;


}
.sns_icon a img{
  width: 100px;
  margin-bottom: 25px;
}


.sns_icon a:nth-child(2){
  
  margin-right: 0px;
}

.sns_icon a:hover{
  opacity: 0.7;
}

@media screen and (min-width: 960px){
  .sns_icon a:nth-child(1){

      margin-right: 30px;}
  
  .sns_icon{

      margin-bottom: 20px;
      display: flex;
      flex-direction: row;
      justify-content: center;}



}


.contact{

  font-size: 18pt;
  color: #ff75c5;
  text-decoration: underline;
  font-weight: bold;
  text-align: center;
  display: inline-block;

  /* ネオン光 */
  text-shadow:
    0 0 5px  #ff75c5,
    0 0 10px #ff75c5,
    0 0 20px #ff75c5,
    0 0 40px #ff40b3,
    0 0 80px #ff40b3;

  /* ふわっと揺れるアニメ */
  animation: neonFlicker 1s infinite alternate;
}

.contact {
  font-family: "Allerta Stencil", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ネオンのゆらぎ */
@keyframes neonFlicker {
  0% { 
    opacity: 0.9;
    text-shadow:
      0 0 4px  #ff75c5,
      0 0 8px  #ff75c5,
      0 0 16px #ff75c5,
      0 0 32px #ff40b3;
  }
  50% { 
    opacity: 1;
    text-shadow:
      0 0 6px  #ff75c5,
      0 0 12px #ff75c5,
      0 0 24px #ff75c5,
      0 0 48px #ff40b3;
  }
  100% { 
    opacity: 0.8;
    text-shadow:
      0 0 3px  #ff75c5,
      0 0 6px  #ff75c5,
      0 0 12px #ff75c5,
      0 0 24px #ff40b3;
  }
}



@media screen and (min-width: 960px){

}


/* トップボタンの基本位置 */
#scrollTopBtn {
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;

  position: fixed;
  bottom: 30px;  /* フッターとかに被らない高さ */
  right: 30px;
  z-index: 10000;

  background-color: #0e1233; /* 暗めの背景 */
  color: #ffb9e4;
  border: none;
  padding: 12px 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 25px;

  cursor: pointer;
  opacity: 0;       /* 最初は非表示 */
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.2s ease;

  /* ネオン風 */
  text-shadow:
    0 0 5px #ff75c5,
    0 0 10px #ff75c5,
    0 0 20px #ff99d6,
    0 0 30px #ffb3e2;
  
}

/* ホバーで光る */
#scrollTopBtn:hover {
  transform: scale(1.1);
  
  box-shadow:
    0 0 3px #ff75c5,
    0 0 6px #ff75c5,
    0 0 10px #ff99d6,
    0 0 13px #ffb3e2;
}

footer .copyright {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}
