/* ▼ スマホ対応（幅768px以下で縦並び） */
@media screen and (max-width: 768px) {

  /* トップ */
  
  .leaf_box {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 0;
  }
  
  .leaf_box img {
    width: 350px;
  }
  .top_text_en {
    margin-top: 0px;
  }
  .top_text_en img {
    width: 100%;
    max-width: 370px;

  }

  .top_logo img {
    width: 150px;
    height: auto;
    padding-bottom: 100px;
  }

  @media (max-width: 768px) {
    /* PCメニュー非表示 */
    .main-nav {
      display: none;
    }
  
    /* ヘッダー表示（#top制御は別） */
    .site-header {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 9999;
    }
  
    /* ハンバーガーメニュー */
    .hamburger {
      display: block !important;
      position: fixed;
      top: 10px;
      right: 10px;
      z-index: 500;
      padding: 0px;
      margin: 0px;
      background: none;
      border: none;
      appearance: none;
      -webkit-appearance: none;
    }
  
    /* hide-headerがあっても表示させる */
    body.hide-header .hamburger {
      display: block !important;
    }
  
    .hamburger img {
      width: 40px;
      height: auto;
    }
  
    /* SPナビゲーション */
    .sp-nav {
      display: block;
      position: fixed;
      top: 0;
      right: -80%;
      width: 70%;
      height: 100vh;
      background: rgba(0, 0, 0, 0.9);
      backdrop-filter: blur(6px);
      transition: right 0.3s ease;
      z-index: 2000; /* ハンバーガーより上 */
    }
  
    .sp-nav.open {
      right: 0;
    }
  
    /* クローズボタン */
    .close-btn {
      position: absolute;
      top: 16px;
      right: 16px;
      background: none;
      border: none;
      z-index: 2100; /* メニュー内で最上位に */
    }
  
    .close-btn img {
      width: 32px;
      height: auto;
    }
  
    /* メニューリスト */
    .sp-nav-list {
      list-style: none;
      margin: 80px 0 0;
      padding: 0 0 0 40px;
      text-align: left;
    }
  
    .sp-nav-list li {
      margin-bottom: 28px;
      position: relative;
    }
  
    .sp-nav-link {
      color: #fff;
      text-decoration: none;
      font-size: 1.5rem;
      line-height: 1.3;
      transition: color 0.2s;
      display: block;
      font-weight: 500;
    }
  
    .sp-nav-link small {
      font-size: 0.6rem;
      color: #d6d6d6;
      display: block;
      margin-top: 4px;
    }
  
    .sp-nav-link:hover {
      color: #d6c756;
    }
  
    .sp-nav-item.active .sp-nav-link {
      color: #d6c756;
    }
  
    .sp-nav-sns {
      margin-top: 60px;
    }
  }
    
   

    body {
        font-size: 0.8rem;
      }

    h2 {
    margin-bottom: 30px;
    }

    /* 共通 */
    .container_70 {
      width: 100%;
      padding: 0 20px; /* 任意：左右に余白を少し */
      margin-bottom: 50px;
    }
    
    .text_black {
        font-size: 1rem;
        letter-spacing: 0.05em;
        line-height: 1.8;
        margin-bottom: 40px;
      }
      
      .text_black_en {
        margin-top: 0px;
        font-size: 1rem;
        letter-spacing: 0.03em;
        line-height: 1.5;
      }
      
      .text_white {
        font-size: 1rem;
        letter-spacing: 0.05em;
        line-height: 1.8;
        margin-bottom: 40px;
      }
      
      .text_white.no-margin {
        margin: 0;
      }
      
      .text_white_en {
        margin-top: 0px;
        font-size: 1rem;
        letter-spacing: 0.03em;
        line-height: 1.5;
      }

    /* スライド */
    .carousel-container {
        margin-bottom: 50px;
      }
    
      .carousel-track img {
        width: 100vw;
        margin: 0;
      }
    .slider_arrow {
      width: 40px !important;
      height: 40px !important;
    }

    
    /* トップ */
    .top {
      background-size: 30% auto;  
      background-position: right calc(100% - 30px); /* 👈 下から50px上へ */
    }
    .leaf_box {
      margin-top: 50px;
      margin-bottom: 110px;
    }
    .top_text {
      margin-bottom: 50px;
    }
    .top_text img {
      margin-left: 220px;
      width: 100%;
      max-width: 50px;
    }
    .top_text_en img {
      width: 100%;
      max-width: 300px;
    }
    
    /* 予告編 */
    .trailer-section {
      margin-top: 20px;
      margin-bottom: 20px;
    }
    .trailer-buttons button {
      font-size: 0.8rem;
      letter-spacing: 0.08em;
      padding: 10px;
    }

    /* ストーリー */
    .catchphrase {
      margin-top: 60px;
      font-size: 1.5rem;
      letter-spacing: 0.1em;
    }

    .catchphrase_en {
        font-size: 1.2rem;
        letter-spacing: 0.07em;
        margin-top: 10px;
        margin-bottom: 20px;
      }
    
    .container_black {
    margin-top: 70vh; /* スマホはやや低めに調整 */
    }
    
  
    .container_white {
      margin-top: 70vh; /* スマホはやや低めに調整 */
    }

    .story_text {
        margin-top: 50px;
        flex-direction: column;
        justify-content: center;
      }
    
    .textarea_left {
    width: 100%;
    border-right: none;
    display: block; /* ←これだけでOK */
    text-align: center; /* ← これを追加 */
    }

    .textarea_left h2 img {
    width: 30%;        /* ← スマホ用に小さく */
    max-width: 300px;  /* ← 上限を決めておくと安心 */
    margin-left: auto;
    margin-right: auto;
    display: block; /* ← 中央寄せのために必要 */
    }
    .textarea_right {
        width: 100%;
        padding: 0px 0px; 
      }

      .h2_jp {
        margin-top: 15px;   /* ← 余白を調整（10〜20pxあたりが自然） */
        width: 10%;
      }
      .image_story {
        margin-top: 60px;
        margin-bottom: 0px;
      }
    
    /* 監督メッセージ */
    .box_row {
        flex-direction: column;
        margin-top: 60px;
      }

    .box-left {
    width: 100%;
    }
    .box-right {
    width: 100%;
    margin-top: 50px;
    padding-left: 0px;
    }
    .box-right h2 {
        text-align: center; /* h2内の中央寄せ */
      }
    
      .box-right h2 img {
        display: block;
        margin: 0 auto;      /* ← 中央に配置 */
        max-width: 90%;      /* ← 必要に応じて幅調整 */
        height: auto;
      }

    /* 作品について */
    .about {
    margin-top: 60px;
    }

    .about_line {
        margin-top: 10px;
        margin-bottom: 50px;
    }

    .image_about {
        padding-top: 30px;
    }

    .box_black {
        padding: 40px 20px;
      }
      .box_white {
        padding: 40px 20px;
      }
      

    /* 寄稿コメント */

    .section {
        flex-direction: column;
      }

    .image-box,
    .text-box {
      width: 100%;
    }
  
    .image-box {
      order: 1;
    }
  
    .text-box {
      order: 2;
      padding: 30px 20px;
    }


    /* 上映情報 */
    .h2_margin {
        margin-top: 60px;
        }
    .theater-row {
        flex-direction: column;
        border-bottom: 1px solid #444;
        padding: 20px 0;
        }

        .location,
        .name,
        .tel,
        .date {
        width: 100%;
        padding: 4px 0;
        }

        .name {
        margin-top: 4px;
        }

    /* クレジット */
    .credit-section {
    margin-top: 70vh; 
    background-image: url('img/image_credit_sp.jpg');
    background-size: 100% auto;           /* 横幅100%、縦は画像の比率に従う */
    background-repeat: no-repeat;
    background-position: bottom center;   /* 下に寄せて表示 */
    padding-bottom: 40px;
    }

    .credit-logo-layer {
    position: static;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    }

    .logo-pc {
    display: none;
    }

    .logo-sp {
    display: block;
    width: 80%;
    max-width: 300px;
    height: auto;
    margin-top: 50px;
    }

    .credit-text-layer {
    padding: 20px;
    }

    .credit-text {
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.8;
    }

    .credit-text .main {
      font-size: 1rem;
      margin-bottom: 50px;
    }

    .credit-text br {
    display: block;
    }


    /* スタッフ、キャスト */
    .staff-grid,
    .cast-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      padding: 0px;
    }

    .staff-card,
    .cast-card {
      justify-content: flex-start;
      padding: 20px;
    }

    .cast-text {
      position: relative; /* これを消すとサムネールが小さくなるので消さない */
      margin-top: 80px;
    }

    .staff-text .jp,
    .cast-text .jp {
      font-size: 0.9rem;
    }

    .cast-text .role {
      font-size: 0.75rem;
      white-space: pre-line;
      margin-top: 0.2em;
    }

    .staff-text .en-name,
    .cast-text .en-name {
      font-size: 0.6rem;
      margin-top: 0.4em;
    }

    .arrow {
      position: absolute;
      bottom: 0px;
      right: 0px;
      width: 28px;
      height: 28px;
      z-index: 3;
    }
  

      
  }

  
