.banner-abtest .banner {
    display: none;
}

.insta_btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 12px;
    text-decoration: none;
    background-color: #fff;
    transition: 0.1s;
    color: #2e6ca5;
    gap: 0px;
}

.insta_btn:hover {
    background: linear-gradient(135deg, #427eff 0%, #f13f79 70%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.insta_btn:hover .sns-label {
    color: #fff;
    text-decoration: none;
}

.insta {
    /* position: relative; */
    display: inline-block;
    width: 50px;
    height: 50px;
    /* background: linear-gradient(135deg, #427eff 0%, #f13f79 70%); */
    overflow: hidden;
    border-radius: 13px;
    flex-shrink: 0;
}

.insta::before {
    content: '';
    position: absolute;
    top: 23px;
    left: -18px;
    width: 60px;
    height: 60px;
    background: radial-gradient(#ffdb2c 10%, rgba(255, 105, 34, 0.65) 55%, rgba(255, 88, 96, 0) 70%);
}

.sns-label {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    transition: color 0.1s;
    text-decoration: none;
}

.insta-icon {
    height: 28px;
    margin-top: 11px;
    transition: opacity 0.1s;
}


/* ▼ タブボタン全体 */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
}

/* ▼ タブボタンの見た目（下線ナシ、洗練されたデザイン） */
.tab-buttons button {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 10px 12px;
    border: none; /* ← 下線なし！ */
    outline: none; /* ← フォーカス時の枠なし */
    background: #f3f3f3;
    color: #555;
    font-size: 15px;
    font-weight: bold;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;  /* ← これで非アクティブにも効く！ */
}
  
/* ▼ アクティブなタブ */
.tab-buttons button.active {
    background: #ff717b; /* ← 新しいピンク系カラー */
    color: #fff;
    text-decoration: none;
}
  
/* ▼ iframe表示切り替え */
.tab-content {
    display: none;
}
  
.tab-content.active {
    display: block;
}
  
/* ▼ iframeの幅調整 */
.tab-content iframe {
    width: 100%;
    max-width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px; /* PC時の最大幅 */
    margin: 0 auto;
  }
  
  .video-wrapper iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

/*PC用*/
@media print, screen and (min-width: 641px){

    .tab-buttons {
        max-width: 580px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tab-content iframe {
        width: 580px;
    }

    .implant img{
        width:600px;
        margin:auto;
    }

    .implant p{
        text-align: center;
    }
    .video-wrapper iframe {
        height: 394px;
      }


}

/*SP用*/
@media screen and (max-width:640px) {

    .implant img{
        width:100%;
        margin:auto;
    }

    .video-wrapper {
        max-width: 100%;
        /* padding: 0 16px; */
    }

    .video-wrapper iframe {
        height: 52.25vw; 
    }
}