@charset "utf-8";

/* 背景の色 */
.highlight_area{
    background-color: #f4f4f4;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 線 */
hr {
    border-top: 5px solid black;
}

.title{
    background-color: black;
    color: white;
    writing-mode: vertical-rl;
    order: 3;
    padding: 20px 20px;
    letter-spacing: 0.3em;
    margin-left: 15px;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.3);
    user-select: none;
    /* height: 75%; */
}

.title h1 {
    color: white;
    font-size: clamp(50px, 3.5vw, 3.3rem);
    text-shadow:
      0 0 8px white,
      0 0 15px #a0a0a0,
      0 0 25px #666666;
    letter-spacing: 0.1em;
    animation: flicker 3s infinite;
    text-align: center;
  }

.title_1{
  font-size: clamp(30px, 3.5vw, 40px);
    font-weight: bolder;
    text-align: center;
    letter-spacing: 0.15em;
}

 .top{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.picture,
.hole{
    writing-mode: vertical-rl
}

.picture{
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
}

.picture h3,
.hole h3,
.exhibition h3{
    font-size: 22px;
    letter-spacing: 0.15em;
    font-weight: bold;
    line-height: 2;
}

.picture p,
.hole p{
    line-height: 2;
    font-size: clamp(14px, 1.5vw, 16px);
}
.picture img{
    display: block;
    animation: zoomInOut 4s ease-in-out infinite;
    transform-origin: center center;
    width: 35vh;
}

.hole img{
    display: block;
    width: 35vh;
    height: 80%;
    object-fit: cover;
    margin-left: 5px;
    filter: grayscale(100%);
    animation: zoomInOut 4s ease-in-out infinite;
    transform-origin: center center;
}

.bottom{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 15px;
    margin-bottom: 30px;
}

.note{
    order: -1;
    background-color: #D9D9D9;
    font-size: 14px;
    writing-mode: vertical-rl;
    margin-right: 10px;
    padding: 10px;
} 

.text_one,
.text_two,
.text_three,
.text_for{
    text-indent: -1em;
    padding-top: 1em;
    letter-spacing: 0.1em;
    line-height: 1.5;
}

.exhibition img{
    width: 35vh;
    height: 100%;
    object-fit: cover;
}

.exhibition{
    writing-mode: vertical-rl;
    line-height: 2;
}

.title_2{
  width: 100%;
    background-color: #949494;
    margin: 0 auto 10px;
} 

.title_2 h2{
  font-size: clamp(24px, 2.5vw, 40px);
  text-align: center;
  color: white;
  text-align: center;
  font-weight: bolder;
  -webkit-text-stroke: 2px black;
}

.exhibition h4{
    font-size: 20px;
}

/* アニメーション */
/* みどころ文字 */
#animated-text {
    user-select: none;
    letter-spacing: 0.1em;
  }

/* 穴の写真 */
@keyframes zoomInOut {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05); 
    }
  }

  
  /* タイトルのチカチカするホラーっぽい光の演出 */
  @keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
      opacity: 1;
      text-shadow:
        0 0 8px white,
        0 0 15px #a0a0a0,
        0 0 25px #666666;
    }
    20%, 22%, 24%, 55% {
      opacity: 0.4;
      text-shadow: none;
    }
  }


/* 文字のぼやぼや */
  .picture p, 
  .picture h3,
  .hole p,
  .hole h3 {
    opacity: 0;
    filter: blur(5px);
    animation: fadeInBlur 3s ease forwards;
    animation-delay: 0.5s; /* 0.5秒遅れて開始 */
  }
  
  @keyframes fadeInBlur {
    to {
      opacity: 1;
      filter: blur(0);
    }
  }
  

/* 見て触って聞いて */
  .title_2 {
    transform: translateX(100%);
    opacity: 0;
    filter: blur(10px);
    transition: transform 1s ease-out, opacity 1s ease-out, filter 1s ease-out;
  }
  
  .title_2.active {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
  }

/* 注意書き */
  .note {
    opacity: 0;
    transform: translateX(-100px);
    filter: blur(8px);
    transition: all 1s ease-out;
  }
  
  /* 表示トリガー */
  .note.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }

  /* 開催のテキスト内容 */
  .exhibition p {
    overflow: hidden;
    font-size: clamp(14px, 1.5vw, 16px);
  }
  
  .exhibition p span {
    display: block; /* 1行ずつ縦に */
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  }
  
  .exhibition p span.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }


  .exhibition img {
    animation: spooky-shake 2s infinite;
  }
  
  @keyframes spooky-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    50% { transform: rotate(-1deg); }
    75% { transform: rotate(1deg); }
  }



  


  /* タブレット対応（768px以下） */
@media screen and (max-width: 768px) {
  .top{
    display: block;
    margin-top: 30px;
}

.bottom{
  display: block;
}

.note{
  writing-mode: horizontal-tb;
  margin: 10px auto;
}

.text_one,
.text_two,
.text_three,
.text_for{
    padding-top: 0;
    padding-left: 10px;
}

.title{
  background-color: black;
  color: white;
  writing-mode: horizontal-tb;
  order: 3;
  padding: 20px 20px;
  letter-spacing: 0.3em;
  margin-left: 15px;
  box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.3);
  user-select: none;
}

.title h1 {
  font-size: clamp(32px, 2.5vw, 60px);
}

.picture,
.hole,
.exhibition{
  margin: 10px auto;
}

.note,
.title_2{
  width: 90%;
  margin: 0 auto;
}

.exhibition img{
  width: 25vw;
  object-fit: cover;
}

.picture img,
.hole img{
  width: 30vh;
  object-fit: cover;
  height: auto;
}

.picture h3,
.hole h3,
.exhibition h3{
  font-size: 18px;
}

.exhibition h4{
  font-size: 16px;
}




}

/* スマホ対応（480px以下） */
@media screen and (max-width: 480px) {
  .title h1 {
    font-size: clamp(22px, 1.5vw, 40px);
  }

  .title_1 h2{
    font-size: clamp(22px, 1.5vw, 50px);
  }

  .title,
  .note,
  .title_2,
  .picture,
  .hole,
  .exhibition {
    /* writing-mode: horizontal-tb; */
    text-align: center;
  }

  .title {
    margin: 10px auto;
    padding: 10px;
  }

  .title h1 {
    font-size: clamp(24px, 5vw, 36px);
  }

  .title_1 h2 {
    font-size: clamp(18px, 4vw, 28px);
  }
.picture,
.hole,
.exhibition{
  display: flex;
  flex-direction: row;
}


.picture img{
  order: -1;
}

  .picture img,
  .hole img,
  .exhibition img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
  }

.picture h3,
.hole h3,
.exhibition h3,
.exhibition h4{
  writing-mode: horizontal-tb;
}

  .top,
  .bottom {
    padding: 0 10px;
  }

  .text_one,
  .text_two,
  .text_three,
  .text_for {
    padding-left: 5px;
    font-size: 14px;
  }

  .btn {
    font-size: 16px;
    padding: 10px 20px;
    min-height: 48px;
  }


  .picture p,
  .hole p,
  .exhibition p,
  .note p{
    text-align: left;
    margin: 0 auto;
  }

}
