.lp-wrap{
    max-width:1200px;
    margin:0 auto;
    font-family:"Yu Gothic","Hiragino Sans",sans-serif;
    color:#333;
    line-height:1.8;
}

	
.lp-section{
    display:flex;
    align-items:center;
    gap:40px;
    padding:60px 20px;
}

.lp-section:nth-child(even){
    flex-direction:row-reverse;
    background:#fafafa;
}

.lp-image,
.lp-content{
    flex:1;
}

.lp-image img{
    width:100%;
    border-radius:10px;
    display:block;
}

.lp-title{
    font-size:32px;
    margin-bottom:12px;
    font-weight:bold;
	line-height: 1.3;
}

.lp-title2 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  padding-left: 16px;
  border-left: 10px solid #b50000;
  margin-bottom:25px;
}

.lp-title3{
    font-size:18px;
    margin-bottom:8px;
    font-weight:bold;
	line-height: 1.6;
}

.lp-text{
    font-size:15px;
	margin-bottom:30px;
}

.lp-btn{
    display:inline-block;
    margin-top:12px;
	margin-bottom:30px;
    background:#b50000;
    color:#fff;
    text-decoration:none;
    padding:10px 20px;
    border-radius:50px;
}

.lp-btn:hover{
    background:#b30000;
}

/* YouTube */

.youtube-wrap{
    max-width:900px;
    margin:60px auto;
}

.youtube-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
}

/* 2つ以上なら2カラム */
.youtube-grid:has(.youtube-box:nth-child(2)){
    grid-template-columns:repeat(2, 1fr);
}

/* ★ここが重要：中の比率維持 */
.youtube-box{
    position:relative;
    width:100%;
    aspect-ratio:16 / 9;   /* ←これに変更 */
    border-radius:10px;
    overflow:hidden;
}

.youtube-box iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}


/* 比較表 */

.table-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    display:block;
    margin-bottom:25px;
}

.compare-table{
    width:100%;
    max-width:1200px;
    border-collapse:collapse;
    font-size:0.95em;
}

.compare-table th,
.compare-table td{
    border:1px solid #ddd;
    padding:12px 10px;
    text-align:center;
    white-space:nowrap;
    line-height:1.4;
}

/* ヘッダー */
.compare-table th{
    background:#222;
    color:#fff;
}

/* 左列固定 */
.compare-table th:first-child,
.compare-table td:first-child{
    position:sticky;
    left:0;
    background:#fff;
    z-index:2;
    min-width:150px;
}

/* ヘッダー左列 */
.compare-table th:first-child{
    background:#222;
    z-index:3;
}


/* 関連商品 */

.related-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
    margin:30px 0;
}

.related-item{
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
    transition:.3s;
}

.related-item:hover{
    transform:translateY(-5px);
}

.related-item img{
    width:100%;
    display:block;
}

.related-info{
    padding:15px;
}

.related-name{
    font-weight:bold;
    margin-bottom:10px;
}

.related-btn{
    display:block;
    text-align:center;
    background:#222;
    color:#fff;
    padding:10px;
    text-decoration:none;
}

/* CTA */

.cta{
    text-align:center;
    padding:80px 20px;
    background:#f5f5f5;
}

.cta h2{
    font-size:36px;
    margin-bottom:20px;
}

/* ======================
   バナー（常時）
====================== */

.banner-slider{
    width:100%;
    overflow:hidden;
    background:#fff;
    padding:10px 0;
}

.banner-track{
    display:flex;
    width:max-content;
    animation:bannerScroll 25s linear infinite;
}

.banner-track a{
    flex-shrink:0;
    margin-right:20px;
}

.banner-track img{
    width:320px;
    border-radius:10px;
    display:block;
}

/* keyframesは必ず外 */
@keyframes bannerScroll{
    0%{ transform:translateX(0); }
    100%{ transform:translateX(-50%); }
}


/* ==========================
   problem-inner 強化版
========================== */

.problem-section{
    background:linear-gradient(180deg,#f6f6f6 0%,#ffffff 100%);
    padding:80px 20px;
}

/* 外枠 */
.problem-inner{
    max-width:900px;
    margin:0 auto;
    background:#fff;
    border-radius:16px;
    padding:50px 45px;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
    border:1px solid #eee;
    position:relative;
    overflow:hidden;
}

/* 上部アクセントライン */
.problem-inner:before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:6px;
    background:linear-gradient(90deg,#b50000,#ff4d4d);
}

/* タイトル */
.problem-title{
    text-align:center;
    font-size:34px;
    font-weight:bold;
    margin-bottom:40px;
    color:#222;
    letter-spacing:1px;
}

/* リスト */
.problem-list{
    list-style:none;
    padding:0;
    margin:0 0 35px;
}

.problem-list li{
    position:relative;
    padding:20px 20px 20px 65px;
    margin-bottom:16px;
    background:#fafafa;
    border:1px solid #eaeaea;
    border-radius:10px;
    font-size:18px;
    font-weight:600;
    transition:.2s;
}

/* hoverで少し浮く */
.problem-list li:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.06);
}

/* チェックアイコン強化 */
.problem-list li:before{
    content:"✓";
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    width:32px;
    height:32px;
    line-height:32px;
    text-align:center;
    border-radius:50%;
    background:linear-gradient(135deg,#b50000,#ff3b3b);
    color:#fff;
    font-weight:bold;
    font-size:16px;
    box-shadow:0 4px 10px rgba(181,0,0,.3);
}

/* メッセージ */
.problem-message{
    text-align:left;
    font-size:18px;
    line-height:1.9;
    color:#444;
    font-weight:500;
    padding-top:10px;
}

/* 強調テキスト */
.problem-message strong{
    color:#b50000;
    font-weight:700;
}

/* SP */
@media(max-width:768px){

.problem-inner{
    padding:30px 20px;
}

.problem-title{
    font-size:24px;
}

    .problem-list li{
        padding:15px 15px 15px 45px; /* ←左余白をアイコンに合わせる */
    }

    .problem-list li:before{
        width:24px;
        height:24px;
        line-height:24px;
        font-size:12px;
        left:12px;  /* ←中央寄せ微調整 */
    }

.problem-message{
    font-size:15px;
}

.lp-section{
    flex-direction:column;
    gap:20px;
    padding:30px 15px;
    align-items:flex-start;
}

.lp-image,
.lp-content{
    flex:none;
    width:100%;
}

.lp-title{
    font-size:24px;
}

.lp-title2{
    font-size:18px;
}

.lp-title3{
    font-size:16px;
}

.lp-text{
    font-size:14px;
    line-height:1.7;
}

.related-name{
    font-size: 13px;
}

.related-btn{
    font-size: 13px;
    padding: 8px;
}

.related-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

    .lp-section:nth-child(even){
        flex-direction:column !important;
    }

    .youtube-grid{
        grid-template-columns:1fr !important;
    }

	    .banner-track img{
        width:150px;
        height:150px;
        object-fit:cover;
    }
}
