body {
    margin: 0;
    padding: 0;
    background-image: url("assets/背景.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #222;
    font-family: YakuHanJPs_Narrow,"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP","Yu Gothic","Meiryo",-apple-system,BlinkMacSystemFont,sans-serifsans-serif;
  }
  

  .top {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    width: 100%;
    box-sizing: border-box;
  }

  #navbar {
    opacity: 0;
    visibility: hidden;
    transition: opacity 2.5s ease-in-out;
    
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: 0px 12px 5px 0px rgb(0 0 0 / 20%);
    position: fixed;
    width: 100%;
    z-index: 9999;
    top: 0;
    left: 0;
  }  
#navbar.visible {
  opacity: 1;
  visibility: visible;
}
  .nav-logo-container {
    position: absolute;
    left: 10px;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .nav-logo {
    height: 100px;
  }
  .nav-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px 0 200px; /* ロゴ分左に空ける */
  }
  .nav-button {
    background-color: #39c300;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
  }  
  .nav-bottom {
    display: flex;
    gap: 30px;
    padding: 15px 20px 10px 200px; /* ロゴ分左に空ける */
  }  
  .nav-bottom a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
  }


/* ── ハンバーガーボタンの基本スタイル ── */
.nav-toggle {
  display: none;           /* デスクトップでは非表示 */
  position: absolute;
  top: 18px;
  right: 20px;
  width: 30px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 10001;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  background: #000;
  margin-bottom: 5px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle span:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  /* 1) ヘッダーを flex レイアウトにして高さを自動でとる */
  #navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;                        /* 上下に余白を確保 */
    background-color: rgba(255, 255, 255, 0.5); /* 半透明背景 */
    backdrop-filter: blur(5px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none;       /* 不要ならトランジションをオフに */
  }

  /* 2) ロゴは相対配置に戻して、flex の中で縦中央に */
  .nav-logo-container {
    position: relative; /* absolute を解除 */
    left: auto;         /* 余白は padding で調整 */
    height: auto;       /* flex の align-items で中央揃え */
  }
  .nav-logo {
    height: 60px;       /* お好みで調整 */
    width: auto;
    margin: 0;          /* マージンは不要 */
  }

  /* 3) ハンバーガーは右端に */
  .nav-toggle {
    display: block;
    margin-right: 60px;
    margin-top: 8px;
  }

  /* 4) デスクトップ用 nav-top／nav-bottom は隠す */
  .nav-top,
  .nav-bottom {
    display: none;
  }

  /* 5) サイドメニュー表示時のスタイル */
  .nav-bottom.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 100%;               /* or 100% お好みで */
    height: 100vh;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    padding-top: 60px;        /* ヘッダー分だけ余白 */
    gap: 24px;
    align-items: center;
    z-index: 10000;
    transform: translateX(0);
    transition: transform 0.3s ease;
  }
  /* 初期は右側に隠しておく */
  .nav-bottom {
    transform: translateX(100%);
  }

  /* 6) ハンバーガー → × アイコン切替 */
  .nav-toggle.close span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 7px);
  }
  .nav-toggle.close span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.close span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
  }
  html, body {
    overscroll-behavior-y: contain; /* または none */
  }
  
}





  #how {
    scroll-margin-top: 20px;
  }
  #lineup,
  #start,
  #faq {
    scroll-margin-top: 25px; /* ヘッダーの高さに合わせて調整 */
  }

  
  
  
  .container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
  }
  
  .logo img {
    max-width: 200px;
    height: auto;
  }
@media (max-width: 768px) {
    .logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .logo img {
    width: 75%;
    max-width: 90vw;
  }
}
  
  .copy {
    max-width: 800px;
    text-align: left;
  }  
  .copy h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }  
@media (max-width: 768px) {
  .copy {
    width: 80%;
  }
  .copy h1 {
    margin: 0;
  }
}


  .tittle {
    text-align: center;
  }  
  .tittle img {
    max-width: 500px;
    width: 100%;
    height: auto;
  }  
  .white {
    color: #fff;
  }
  .divider {
    max-width: 150px;
    margin: 10px auto;
    display: block;
  }  
  .caption {
    font-size: 0.9rem;
    color: #fff;
    margin: -50px 0 0;
  }
  .number-icon {
    width: 40px;
    height: auto;
  }
@media (max-width: 768px) {
  .caption {
    margin: -40px 0 0;
  }
}

  
  .concept {
    
    padding: 60px 20px;
    box-sizing: border-box;
  }
  .concept-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }  
  .concept-left {
    margin: auto 0;
  }
  
  .concept-left img.bmf {
    max-width: 300px;
    height: auto;
  }
    .concept-right {
    max-width: 500px;
    margin: auto 0;
  }
  


  .content-box {
    background-color: #ffffff;
    padding: 30px;
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }  
  .content-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
  }  
  .content-header h3 {
    font-size: 1.4rem;
    margin: 0;
  }   
  .content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
  }  
  .content img {
    width: 160px;
    height: auto;
    flex-shrink: 0;
  }  
  .content p {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
  }
@media (max-width: 768px) {
  .content img {
    width: 130px;
    margin: 0 auto;
    height: 80px;
    width: auto;
    max-width: 245px;
  }
  .content {
  align-items: center;  /* ←ここを flex-start から center に */
  flex-direction: column;
}
  .content-header h3 {
    font-size: 1rem;
    gap: 16px;                /* 要素間のスペース（お好みで） */
    text-align: center;       /* テキストを中央揃え */
  }
  .content p {
    width: 100%;
    max-width: 600px; /* お好みで */
    font-size: 80%;
  }   
}


  .how {
    padding: 60px 20px;
  }      
  .how-box {
    display: flex;
    align-items: flex-start;
    position: relative;
    justify-content: center;
  }
  .how-step {
    max-width: 375px;
    text-align: center;
    flex-direction: column-reverse;
    display: flex;
    min-height: 260px;
  }  
  .how-step img {
    width: auto;
    height: 160px;
    object-fit: contain;
    display: block;
    margin-top: auto;
  }  
  .how-step p {
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.6;
  }  
  .how .number-icon {
    position: absolute;
    top: 20px;
    left: 20px;
  }
  .change {
    width: 50px;
    height: auto;
  }
  .change-block {
    text-align: center;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    justify-content: center;
  }
  
  .change-block img.change {
    width: 50px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
  }
  
  .change-block p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    font-size: 80%;
  }
  .after {
    font-weight: 700;
  }
@media (max-width: 768px) {
  /* 1) 各ステップを縦並びに */
  .how-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;       /* 上下の余白 */
  }

  /* 2) 番号アイコンは相対配置で中央寄せ */
  .how .number-icon {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 12px;   /* アイコンと内容の間隔 */
    width: 48px;           /* 必要ならサイズ調整 */
    height: auto;
  }

  /* 3) how-step は幅100%／最大幅制限で可変 */
  .how-step {
    flex-direction: column;  /* 縦並びに戻す */
    width: 100%;
    max-width: 360px;
    min-height: auto;        /* 高さ制限解除 */
  }
  .how-step img {
    width: 125px;
    max-width: 100%;
    margin: 0 auto;
  }
  .how-step p {
    margin: 0 1em;
  }

  /* 4) 矢印ブロックも幅100%に */
  .change-block {
    width: 100%;
    max-width: 240px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    min-height: 170px;
    gap: 12px;
  }
  .change-block img.change {
    margin-bottom: 8px;
  }
  .change {
    transform: rotate(90deg);
    transform-origin: center center; /* 回転の中心を画像中心に */
  }

  /* 5) 右側の after テキストも中央揃え */
  .after {
    margin-top: 8px;
    font-size: 1rem;
  }
}

  

  .lineup dl {
    margin: 0;
    padding: 0 0 0 60px;
  }  
  .lineup dt {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
  }  
  .lineup dd {
    margin: 5px 0 15px 0;
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 40px;
  }
@media (max-width: 768px) {
  .lineup dl {
    padding: 0;
  }
  .lineup dt {
    font-size: 80%;
  }
  .lineup dd {
    font-size: 80%;
  }
}



.faq .content-box img {
    width: 30px;
}
.faq .content p {
    margin: 0;
}
.answer {
    margin-top: 10px;
}
@media (max-width: 768px) {
  .faq .content,
  .faq .content.answer {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 8px; /* 画像とテキストの間隔 */
  }
  .faq .content-box img {
    height: auto;
  }
}




.contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }  
  .contact form > label {
    font-weight: bold;
    display: block;
  }  
  .contact .required {
    color: red;
    font-size: 0.8rem;
    margin-left: 4px;
  }  
  .contact input[type="text"],
  .contact input[type="tel"],
  .contact input[type="email"],
  .contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #888;
    border-radius: 12px;
    background: #d8ecff;
    font-size: 1rem;
    box-sizing: border-box;
  }  
  .contact textarea {
    resize: vertical;
  }  
  .contact ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
  }  
  .contact ul li {
    margin: 5px 0;
    list-style: none;
  }  
  .contact button[type="submit"] {
    background-color: #6cc200;
    color: #fff;
    font-weight: bold;
    padding: 10px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 20px;
    width: 100px;
    margin: 0 auto;
    display: block;
    cursor: pointer;
    transition: background-color 0.3s;
  }  
  .contact button[type="submit"]:hover {
    background-color: #5ab800;
  }




/* ——— プレースホルダーはデフォルト非表示 ——— */
.video-placeholder {
  display: none;
  width: min(
  80%,                       /* ビューポート幅の 80% */
  calc(80vh * (16 / 9))      /* 高さ 80vh で 16:9 を保つときの幅 */
  );
  max-width: 1000px;
  margin: 100px auto 20px;
  aspect-ratio: 16 / 9;
  /* （デバッグ時に見えるようにするなら一時的に border: 1px dashed red; など入れてOK） */
}

/* ——— 通常時の動画コンテナ ——— */
.video-container {
  position: relative;
  width: min(
  80%,                       /* ビューポート幅の 80% */
  calc(80vh * (16 / 9))      /* 高さ 80vh で 16:9 を保つときの幅 */
  );
  max-width: 1000px;
  margin: 150px auto 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 8px 8px 2px 2px rgb(0 0 0 / 70%);
}

/* ——— フルスクリーン化クラス ——— */
.video-container.fullscreen {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* サイズは元と同じまま */
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  margin: 0;          /* マージンはプレースホルダーに任せる */
  z-index: 9999;
  box-shadow: 8px 8px 2px 2px rgb(0 0 0 / 70%);
}

/* ——— 「動画コンテナが .fullscreen のときだけ」 プレースホルダーを表示 ——— */
#videoContainer.fullscreen + .video-placeholder {
  display: block;
}

/* iframe は常にコンテナにフィット */
.video-container iframe {
  display: block;
  width: 100%;
  height: 100%;
}





/* ボタンを中央揃えに */
.play-sound-btn-container {
  text-align: center;
  margin-top: 16px; /* お好みで上下の間隔を調整 */
}

/* ボタンのスタイル例 */
.btn-play-sound {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #146d42;      /* お好みで色を変更 */
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin-bottom: 100px;
}

.btn-play-sound:hover {
  background-color: #0f5536;      /* ホバー時の濃淡 */
}





.features, .lineup, .start, .faq, .contact {
  padding: 60px 20px;
}




/* ——— CTAバンド全体 ——— */
.cta-band {
  width: 100%;
  background-color: #3a7bd5;      /* 帯の背景色 */
  padding: 40px 0;                /* 上下の余白 */
}

/* ——— 中身を左右中央揃えに ——— */
.cta-band .container {
  display: flex;
  flex-direction: column;    /* 縦方向 */
  align-items: center;       /* 横中央揃え */
  gap: 16px;                 /* テキストとボタンの間隔 */
  text-align: center;        /* テキスト中央揃え */
}

/* ——— キャッチテキスト ——— */
.cta-text {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

/* ——— ボタン ——— */
.btn-cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(to bottom, #80d64c, #4a8f20);
  border: none;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
