/*
*{
  border: 1px solid red;
}
*/
body{
  font-family: "New Tegomin", serif;
  margin: auto 0;
  padding: 0;
  color: #1a1a1a;
  background: rgb(209, 207, 192);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}


html{
  scroll-behavior: smooth;
}

  header {
    z-index: 10;
    width: 100vw;
    height: 100px;
    background: #a41e09;
    display: flex; /* flexboxを作る */
    align-items: center; /* 上下中央に揃える */
    justify-content: space-between; /* 両端に配置 */
    padding-left: 30px;
    padding-right: 30px;
    position: fixed;
    top: 0;
    box-sizing: border-box;
    text-align: right;
    transition: top .5s;
    box-sizing: border-box;
  }
  h1 a {
    color: rgb(209, 207, 192);
    font-size: 50px;
    text-decoration: none;
  }
  ul {
    list-style: none;
    display: flex;
  }
  ul li a {
    width: 30px;
    height: 80px;
    font-size: 25px;
    padding: 10px 15px;
    color: rgb(209, 207, 192);
    text-decoration: none;
    writing-mode: vertical-rl;
    display: inline-block;
  }


  
  .hero {
    background-color: rgb(12, 12, 12);
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  
  .hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 0;
    filter: blur(100px);
    animation: hero_bg_In 1s ease-out forwards;
  }
  
  @keyframes hero_bg_In {
    100% {filter: blur(0);}
  }

  .rogo {
    position: absolute;
    width: 300px;
    right: 5%;
    top: 65%;
    z-index: 0;
  }
  
  .rogo img {
    width: 100%;
  }
  


  .sosaku{
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: rgb(12, 12, 12);
    color: rgb(209, 207, 192);
    font-size: 25px;
    writing-mode: vertical-rl;
  }

  #syokai_bg{
    z-index: 11;
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: rgba(209, 207, 192, 50%);
    display: none;
  }

  #syokai{
    z-index: 12;
    position: absolute;
    width: 80vw;
    height: 80vh;
    background-color: #1a1a1a;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* ←真ん中に持ってくる魔法 */
    display: none
  }

  .backbutton{
    position: absolute;
    top:-15px;
    right:-40px;
    user-select: none;
  }

  .first {
    z-index: 0;
    position: absolute;
    top:10%;
    left: 30%;
  }

  .second{
    z-index: 0;
    position: absolute;
    top:20%;
    left: 20%;
  }

    .sousaku_rogo{
      z-index: 0;
      position: absolute;
      width:700px;
      height: auto;
      right:0%;
    }

    .sousaku_rogo img{
      width:100%;
      height: auto;
    }

  .sosaku .first{
    display: none;
  }

  .sosaku .second{
    display: none;
  }

    .sousaku_rogo img{
      display:none;
    }

  .sosaku .center{
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* ←真ん中に持ってくる魔法 */
    text-align: center;
  }

  .sosaku .center img{
    display: block;
    height: 90vh;
  }

  .sosaku .sosaku_button{
    margin: auto 0;
    color: rgb(209, 207, 192);
    font-size: 25px;
    z-index: 1;
    position: absolute;
    bottom: 15%;
    left: 25%;
    height: 100px;
    width: 100px;
  }

  .sousaku .sousaku_button span{
    left: 5px;
    position: absolute;
    z-index: 2;
  }

  .sosaku .sosaku_button img{
    z-index: 1;
    position: absolute;
    height: 110px;
    bottom: 13%;
    left: 25%;
  }

  .sosaku_2{
    position: relative;
    width: 100%;
    height: 120vh;
    overflow: hidden;
    background-color: rgb(12, 12, 12);
    color: rgb(209, 207, 192);
    font-size: 25px;
    writing-mode: vertical-rl;
  }

    .sosaku_2 .sousaku_rogo{
      right: -20%;
    }

  .sosaku_2 .first{
    top:45%;
    right: 20%;
  }

  .sosaku_2 .second{
    top:50%;
    right:50%;
  }



.gallery_title{
  position: relative;
  height: 150px;
  font-size: 99px;
  box-sizing: border-box;
  overflow: hidden;
}

.gallery_title .g_t_txt{
  position: absolute;
  left: 5%;
}

.gallery_title .g_t_sub{
  position: absolute;
  color: rgb(118, 127, 118);
  font-size: 20px;
  left: 40%;
  top:99px;
}



.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  padding: 100px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.item {
  position: relative;
  aspect-ratio: 1 / 1; /* 正方形 */
  overflow: hidden;
  background: #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  
}

.item:hover {
  transform: scale(1.05);
  filter: saturate(100%);
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0%);
  transition: filter 0.3s ease-in-out;
}

.item img:hover {
  filter: saturate(100%);
}





/*

  .illust{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    color: rgb(12, 12, 12);
    position:relative;
    background-color: rgb(209, 207, 192);
    font-size: 25px;
    writing-mode: vertical-rl;
    display: flex;
    flex-direction:column-reverse;
  }

  .illust .illust_flex{
    width: 50vw;
    height: 100vh;
    display: flex;
    gap:1em;
  }


  .illust .illust_flex .illust_img{
    width: 20%;
  }

  .illust .illust_flex .illust_img .il_im_main{
    width: 100%;
    padding-top: 100%;
    background-color: #000;
    
  }

*/

  .link_con{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(38, 43, 38);
    
    color: rgb(209, 207, 192);
    font-size: 20px;
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

  .link_con .syokai{
    top:50px;
    right: 60px;
    position: absolute;
    width: 40%;
    height: 100%;
  }

  .link_con .syokai .myname{
    position: absolute;
    font-size: 50px;
  }

  .link_con .syokai img{
    z-index: 2;
    position: absolute;
    width: 200px;
    height: 200px;
  }

  .link_con .syokai .honbun{
    position: absolute;
    z-index: 1;
  }

  .link_con .syokai .snsicon{
    position: absolute;
    width: 50px;
    height: 200px;
    top:450px;
  }

  .link_con .syokai .snsicon img{
    width: 35px;
    height: 35px;
  }

  .for_irai{
    display: flex;
    flex-direction: row-reverse;
  }

  .irai{
    position: relative;
    width: 50vw;
    height: 85vh;
    writing-mode: vertical-rl;
    text-orientation: upright;
    background-color: rgb(209, 207, 192);
    color: #1a1a1a;
    right: 0;
    display: flex;
    flex-direction: row;
  }
  
  .irai a{
    text-decoration: none;
    color: #a41e09;
  }



  .irai .irai_flex{
    position: absolute;
    width: 300px;
    height: 100%;
  }

  .irai .irai_flex .irai_ti{
    position: absolute;
    top:5%;
    left: auto;
    font-size: 50px;
  }

  .irai .irai_flex .irai_ma{
    position: absolute;
    top:10%;
    right: 65px;
    font-size: 20px;
    line-height: 110%;
  }


  .irai_ma a img{
    position: absolute;
    width: 50px;
    height: auto;
  }

  #f_1{
    right: 80px;
  }

  #f_2{
    right: 300px;
  }



  .irai_gaiyo{
    color: rgb(118, 127, 118);
    position: relative;
    left: 0;
    width: 50vw;
    height: 85vh;
    /*background-color: #7f6763;*/
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

  .irai_gaiyo .irai_gaiyo_ho{
    right: 80px;
    position: absolute;
    top: 15%;
    font-size: 20px;
  }

  footer{
    position: relative;
    height: 15vh;
    background-color: #1a1a1a;
    font-size: 15px;
    color: rgba(209, 207, 192,70%);
  }
  footer .text{
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%); /* ←真ん中に持ってくる魔法 */
    
    text-align: center;
  }







  @media  screen and (min-width:1050px) {

    .sosaku .first{
      display: block;
    }

    .sosaku .second{
      display: block;
    }

    .sosaku .sousaku_rogo{
      display: block;
    }

    .sousaku_rogo img{
      display:block;
    }

    .sosaku_2{
      display: none;
    }

    .sosaku_2 .sousaku_rogo img{
      display: none;
    }

    .sosaku .sosaku_button:hover img{
      z-index: 1;
      position: absolute;
      height: 110px;
      bottom: 13%;
      left: 25%;
      animation: rotation 3s linear infinite;
    }
    /* アニメーション */
    @keyframes rotation {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }
    
  }

  @media  screen and (max-width:1050px) {

      .irai_ma a img{
        bottom:50px;
        right: 200px;
      }

    .irai{
      flex-direction: column;
      height: 50%;
    }
    #f_2{
      right: 80px;
      top:55%;
    }

    .sosaku_2{
      display: block;
    }

    .sosaku .sousaku_rogo{
      display: none;
    }

    .sosaku_2 .sousaku_rogo img{
      display: block;
      right: 0%;
    }
    
  }

  @media screen and (min-width:500px){

  ul li a:hover {
    filter: blur(5px);
    animation: Fadein 0.5s forwards;
  }

  @keyframes Fadein{
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
    .hamburger-menu{
      display: none;
    }
    
  .link_con .syokai .myname{
    top:220px;
    right: 60px;
  }

  .link_con .syokai .icon img{
    width: 200px;
    height: 200px;
  }

  .link_con .syokai .honbun{
    top:10px;
    right: 250px;
  }

  .link_con .syokai .snsicon{
    right: 78px;
  }

  .link_con .forlinkil{
    position: absolute;
    width: 50vw;
    height: 100vh;
    background-color: #a41e09;
    left: 0px;
    overflow: hidden;

  }

  .link_con .forlinkil img{
    position: absolute;
    left: 0px;
    width: auto;
    height: 100vh;
  }

  .blur_overlay{
    position: absolute;
    top:0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left,rgba(38, 43, 38,0.9),rgba(38, 43, 38,0.05),rgba(38, 43, 38,0));
    pointer-events: none;
  }

  }

  @media screen and (max-width:500px) { 


  /* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ハンバーガー全体 */
.hamburger-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

/* アイコンスタイル */
.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}
.menu-icon span {
  display: block;
  height: 4px;
  background: #a41e09;
  border-radius: 2px;
  transition: 0.3s;
}

/* チェックボックス非表示 */
#menu-toggle {
  display: none;
}

/* オーバーレイ背景 */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

/* メニュー */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: white;
  padding: 60px 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  transform: translateX(-100%);  /* ← ここがポイント */
  z-index: 1000;
}
.menu ul {
  list-style: none;
  position: absolute;
  top:40%;
  left: 30%;
}
.menu li {
  margin-bottom: 20px;
}
.menu a {
  text-decoration: none;
  color: #a41e09;
  font-size: 18px;
}

/* メニュー開いた時の処理 */
#menu-toggle:checked ~ .menu {
  transform: rotateX(0);
}
#menu-toggle:checked ~ .overlay {
  display: block;
}
#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}



    header{

      display: none;
    }
    .sosaku {
      font-size: 30px;
      color: rgba(209, 207, 192,30%);
    }

    .sosaku .center img{
      display: block;
      height: 70vh;
    }

    .sosaku_2 .sousaku_rogo{
      right: -50%;
    }

    .link_con .syokai {
      width: 100%;
      top: 55%;
      right: -25%;
      transform: translate(-50%, -50%); /* ←真ん中に持ってくる魔法 */
    }

    .link_con .syokai .myname{
      display: block;
      top:220px;
      right: 0px;
    }
  
    .link_con .syokai img{
      display: block;
      width: 200px;
      height: 200px;
    }
  
    .link_con .syokai .honbun{
      top:220px;
      right: 100px;
    }

    .link_con .syokai .snsicon{
      right: 18px;
    }

    footer{
      font-size: 10px;
    }

    .for_irai{
      flex-direction: column;
    }

    .irai{
      width: 100%;
      height: 100%;
    }

    #f_2{
      top: 40%;
      height: 55%;
    }

      .irai_ma a img{
        bottom:20px;
        right: 150px;
      }

    .irai_gaiyo{
      width: 100%;
      height: 85vh;
    }

    #syosai{
      right: 10px;
    }

    .gallery_title{
      font-size: 50px;
    }

    .gallery_title .g_t_sub{
      top:79px;
    }

  }

  /* @media  screen and (max-height:750px) { 
    .link_con .syokai .honbun{
      font-size: 17px;
      right: 120px;
    }
  /* } */

  @media screen and (max-width:400px){
    .link_con .syokai{
      right: -30%;
    }
    .hero{
      width: 100vw;
      height: 100vh;
    }
  }

  @media  screen and (max-width:750px) {
    .rogo{
      
      top:60%;
    }
    .rogo img{
      width: 80%;
    }

    .link_con .forlinkil{
      display: none;
    }

  }

  @media  screen and (max-width:1050px) {
    .sosaku .sosaku_button{
      bottom: 2%;
      left: 5%;
    }

    /* .link_con .syokai .honbun{ */
      /* font-size: 17px; */
      /* right: 230px;      */
    /* } */

  }


  /*
  
  91p
  92p
  89p
  
  */