* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

/* PCだけ JS制御 */
@media (min-width: 769px) {
  html, body {
    overflow: hidden;
  }
    
  .pc { 
        display: block !important;
        margin: 60px 0 0 0;
    }
  .sp { 
        display: none !important; 
    }
    
  .panel-hero {
      background-image: url("common/images/ooh_mv.jpg"); /* 画像パス */
      background-repeat: no-repeat;
      background-position: bottom center;
      background-size: cover;
    }
    
    .panel-end {
        padding: 50vh 5vw;
    }
    .OohBtn{
        margin-top: 50px;
    }

}

/* スマホはスクロール許可 */
@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
  }
    .pc { display: none !important; }
    .sp { 
        display: block !important;
        margin: 30px 0 0 0;
    }
    
  #container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .panel {
    height: 100vh;
    scroll-snap-align: start;
  }

  /*1枚目*/
  .panel-hero {
      background-image: url("common/images/ooh_mvsp.jpg"); /* 画像パス */
      background-repeat: no-repeat;
      background-position: top center;
      background-size: cover;
    }
    
  .panel-hero h2 {
      font-size: 6vw !important;
      line-height: 1.4;
      letter-spacing: 0.2em;
      max-height: 80vh;
      writing-mode: vertical-rl; /* 右から左への縦書き */
      text-align: center;
      white-space: nowrap;
  }
  
  /*2枚目*/
.panel-people {
    padding: 5vh 5vw;
  }
  /*
  .people-grid {
    grid-template-columns: 1fr;
    gap: 3vh;
    padding: 0;
  }

  .person {
    align-items: flex-start;
  }

  .person img {
    width: 80px;
    height: 80px;
  }

  .bubble {
    font-size: 1rem;
  }
    
  /* 2枚目パネル余白調整 
  .panel-people {
    padding: 0;
  }*/

    
    
  /* 横スライドコンテナ */
  .people-grid {
    display: grid;
    grid-template-columns: 1fr;   /* 1列 */
    grid-template-rows: auto auto;/* 2行 */
    gap: 4vh;
    padding: 0;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100vw;
    height: 100%;
  }

    
  .person {
      flex-direction: column;/* 画像の下に吹き出し */
      align-items: center;
      gap: 16px;
      scroll-snap-align: start;
      /*flex-direction: column;
      align-items: center;
    flex: 0 0 100vw;
    scroll-snap-align: start;
      
    padding: 8vh 8vw;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 16px;*/
  }


  /* 画像をコンパクトに */
  .person img {
    width: 70vw;
    height: 150px !important;
  object-fit: cover;
  }

  .bubble {
    font-size: 1rem !important;
    text-align: center;
  }    
    
    
  .panel-people::after {
    content: "← スワイプ →";
    position: absolute;
    bottom: 3vh;
    right: 50%;
    transform: translateX(50%);
    font-size: 12px;
    opacity: 0.6;
  }

  .panel-people {
    position: relative;
    height: 95vh !important;
  }

    
    
    
  /*3枚目*/
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item img {
    height: 120px;
  }

  .gallery-item p {
    font-size: 12px;
    line-height: 1.6;
  }
    
  .panel-message p{
  font-size: 1.2rem;
  line-height: 2em;
    }

    
 /*4枚目*/
  html, body {
    overflow: auto;
  }

  .panel-gallery {
    overflow: hidden;
  }

  /* ★ gridを完全に殺す */
  .gallery-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* ★ 1画像＝1スライド */
  .gallery-item {
    flex: 0 0 100vw;
    scroll-snap-align: center;
    padding: 5vh 5vw;
    box-sizing: border-box;
  }

  .gallery-item img {
    width: 100%;
    height: 45vh;
    object-fit: cover;
  }

  /* スクロールバー非表示 */
  .gallery-grid::-webkit-scrollbar {
    display: none;
  }
    
  .gallery-hint {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    opacity: 0.7;
  }
    
  .gallery-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .gallery-pager span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
  }

  .gallery-pager span.active {
    background: #fff;
  }
    
  /* panelのflexを解除 */
  .panel-gallery {
    display: block;
  }

  .gallery-pager {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 24px;
  }

  .gallery-pager span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: red; /* ← 確認用。あとで白に戻す */
  }

  .gallery-pager span.active {
    background: blue;    
}

.panel-end{
    background: #e60012;
    display: block;
    text-align: center;
    padding: 10vh 5vw;
}
    
.panel-end h2{
    font-size: 3rem;
}
    
.panel-end p{
    font-size: 1rem !important;
}
    
.OohBtn {
    width:80%;
    margin: auto;
    padding: 30px 0 0 0;
}
    
.OohBtn img{
    width:100% !important;
    }
    
}
    


#container {
  height: 100vh;
  width: 100%;
  position: relative;
  transition: transform 0.8s ease;
}

.panel {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

/* 仮の色分け（あとで削除） */
.panel-hero {
  height: 100vh;
  width: 100vw;
  /*background-image: url("ooh_mv.jpg"); 
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;*/
  /* 中に要素を載せる場合 */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;    
}
.panel-hero h2{
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    font-size: 5.5rem;
    line-height: 1.2em;
}
.panel-message { background: #fafafa; }
.panel-ooh { background: #e5e5e5; }
.panel-end { background: #fff; }
    
/* 2枚目 */
.panel-people {
  background: #fff;
  padding: 5vh 16.5vw;
}

/* 2列2行 */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 4vh 4vw;
  height: 100%;
  padding: 5vh 5vw;
}

/* 各人物ブロック */
.person {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 人物画像 */
.person img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  flex-shrink: 0;
}

/* 吹き出し */
.bubble {
  position: relative;
  background: #f5f5f5;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.6;
  max-width: 100%;
}

.bubble span{
    font-size:1rem;
}

/* 吹き出しの三角 */
.bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 30px;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent #f5f5f5 transparent transparent;
}

/* 3枚目 */
.panel-message{
    background: #f5f5f5;
}

.panel-message p{
    text-align: center;
}

/* 4枚目 */
.panel-gallerybk{
  background-image: url("common/images/locationbk.jpg"); /* 画像パス */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.panel-gallery {
  padding: 5vh 5vw;
}

/* 3列2行 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 3vh 2vw;
}

/* 各画像ブロック */
.gallery-item {
  text-align: left;
}

/* 画像 */
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* テキスト */
.gallery-item p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 2em;
  color: #ffffff;
}

.gallery-item p span{
    background-color: #000000;
    padding:0 10px;
}

/* 最後 */
.panel {
  height: 100vh;
  width: 100%;  
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.panel-end{
    background: #e60012;
    display: block;
    text-align: center;
}

.OohBtn img{
    width: 45%;
}

.panel-end h2 {
    color: #ffffff;
    line-height: 1.2em;
}

.panel-end p {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.6em;
}
