/* =========================================
   #detail01 リニューアル版スタイル
   ========================================= */

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.detail01-renew {
    /* 上から下（to bottom）へ #f5f5f7 から #ffffff に変化するグラデーション */
    background: linear-gradient(to bottom, #f5f5f7, #ffffff);
    color: #000;
}

/* 見出し */
.detail01-header {
    text-align: center;
    margin-bottom: 50px;
}
.detail01-badge {
    display: inline-block;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
}
.detail01-title {
    font-size: 70px;
    font-weight: 800;
}

/* メディアエリア（ビフォアアフター ＆ 動画） */
.detail01-media-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
}
.media-col {
    width: 45%;
    max-width: 400px;
}
.media-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* ビフォアアフタースライダー */
.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 6 / 10;
    border-radius: 20px;
    overflow: hidden;
    background: #ccc;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.before-after-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 生成前画像をクリップする */
.img-before {
    clip-path: inset(0 50% 0 0);
}
.slider-control {
    position: absolute;
    top: 0;
    left: -20px; /* ★左に少し広げる */
    width: calc(100% + 40px); /* ★全体の幅を広げて、端まで触りやすくする */
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
    /* iPhoneでのスライダー操作を滑らかにする設定 */
    -webkit-appearance: none;
    appearance: none;
}
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
}
.slider-handle::after {
    content: '◀▶'; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    /* ここがすりガラス風の指定 */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #333;
}
.label-before, .label-after {
    position: absolute;
    top: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
}
.label-before {
    left: 15px;
    background: #000;
    color: #fff;
}
.label-after {
    right: 15px;
    background: #fff;
    color: #000;
}

/* デモ動画 */
.demo-video-wrapper {
    width: 100%;
    aspect-ratio: 6 / 10;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.demo-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* 追加：マウスを乗せた時に指マークにする */
}

/* キャッチコピー */
.detail01-catch-area {
    text-align: center;
    margin-bottom: 50px;
}
.catch-title {
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 20px;
	text-align: center;
}
.catch-desc {
    font-size: 20px;
    line-height: 1.7;
    font-weight: 600;
}

/* メリットカード */
.detail01-merits {
    display: flex;
    gap: 20px;
    margin-bottom: 80px;
}
.merit-card {
    flex: 1;
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.merit-icon {
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.merit-icon img {
    max-width: 40px;
}
.merit-label {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #9ea0a0;
}
.merit-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}
.merit-desc {
    font-size: 16px;
    color: #666;
}

/* 生成例スライダー */
.detail01-examples {
    text-align: center;
    width: 100%;
    overflow: hidden; /* 横スクロールバーが出るのを防ぐ */
    padding-bottom: 30px;
}
.examples-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 30px;
}
.example-swiper {
    padding-bottom: 30px;
}

/* ★追加：アニメーションを「等速（リニア）」にするための記述 */
.example-swiper .swiper-wrapper {
    transition-timing-function: linear;
}

.example-swiper .swiper-slide {
    width: auto; /* 画像の比率に合わせてスライド幅を自動調整 */
}

.example-swiper .swiper-slide img {
    height: 275px; /* PC時の高さを275pxに固定 */
    width: auto;   /* 横幅は比率を維持 */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
}

/* =========================================
   レスポンシブ (SP)
   ========================================= */
@media screen and (max-width: 768px) {
    .detail01-title { font-size: 46px; }
    
    .detail01-media-row {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .media-col { width: 100%; max-width: 350px; }
    
    .catch-title { font-size: 30px; line-height: 1.3; }
    .catch-desc { font-size: 14px; text-align: left; }
    
    .detail01-merits {
        flex-direction: column;
        gap: 20px;
    }
	.detail01-catch-area {
    margin-bottom: 20px;
}
	.detail01-merits {
    margin-bottom: 50px;
}
	.merit-card {
    padding: 30px 30px;
	}
	.example-swiper .swiper-slide {
        width: auto; /* スマホ時もスライド幅を自動調整 */
    }
    
    .example-swiper .swiper-slide img {
    height: 200px; /* スマホ時の高さを200pxに固定 */
    width: auto;   /* 横幅は比率を維持 */
}
	.examples-title {
		font-size: 28px;
	}
}


/* =========================================
   Features カルーセル（フル幅＆高さ統一）
   ========================================= */
.features-swiper {
    width: 100%;
    /* 左右に余白を持たせつつ、下部にドット用の大きな余白（80px）を確保 */
    padding: 20px 5% 80px !important; 
    box-sizing: border-box;
}

/* ▼ 高さを一番大きいものに揃える魔法のコード ▼ */
.features-swiper .swiper-wrapper {
    align-items: stretch; 
}
.features-swiper .swiper-slide {
    height: auto; /* stretchを効かせるために必須 */
    /* PCでのカード幅を固定（お好みで調整可） */
    width: 320px; 
}

/* ▼ カード全体のレイアウト ▼ */
.features-swiper .feature-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* 親（スライド）の高さに合わせる */
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
    margin: 0;
}

/* 画像の下の余白 */
.features-swiper .card-image {
    margin-bottom: 20px;
}

/* ▼ テキストエリアを伸ばしてボタンを押し下げる ▼ */
.features-swiper .card-content {
    flex-grow: 1; 
    margin-bottom: 25px;
}

/* 「01」の前に「機能」を追加 */
.features-swiper .feature-num::before {
    content: "機能";
    font-size: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

/* ▼ ボタンのデザインと下部固定 ▼ */
.features-swiper .read-more {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* センター寄せ */
    margin-top: auto; /* フレックスコンテナ内で一番下に張り付く */
    padding: 12px 40px;
    background-color: #111;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    width: fit-content;
}

.features-swiper .read-more:hover {
    background-color: #444;
    transform: translateY(-2px);
    color: #fff;
}

/* ▼ ドット（ページネーション）の位置 ▼ */
.features-pagination {
    bottom: 20px !important; /* カードに被らない位置まで下げる */
}

/* =========================================
   レスポンシブ (SP)
   ========================================= */
@media screen and (max-width: 768px) {
    .features-swiper {
        padding: 10px 5% 70px; /* スマホ時の余白調整 */
    }
    .features-swiper .swiper-slide {
        /* スマホでは画面幅の80%にして、右端に次のカードを見切れさせる */
        width: 80%;
    }
    .features-swiper .feature-card {
        padding: 25px 20px; /* スマホ時は内側の余白を少し狭く */
    }
}

/* =========================================
   活用フロー（Use Flow）用スタイル
   ========================================= */
.flow-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.flow-step {
    border: 2px solid #f5f5f7;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 0;
    background: #fafafa;
}

.step-head {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.step-num {
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 15px;
}

.step-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

/* 横並びのレイアウト（PC） */
.split-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* 各機能のボックス */
.flow-box {
    flex: 1;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.flow-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    font-size: 16px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.flow-box h5 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
}

.flow-box p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* カウンセリングの「または」 */
.flow-or {
    font-size: 14px;
    font-weight: bold;
    color: #999;
    background: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #eaeaea;
}

/* 縦向きの連結矢印 */
.flow-arrow-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
}

.arrow-text {
    font-size: 20px;
    font-weight: bold;
    color: #666;
    margin: 5px 0;
    background: #f5f5f7;
    padding: 10px 15px;
    border-radius: 20px;
    width: 150px;
    text-align: center;
}

/* モデル化 → プロ撮影 の横向き矢印 */
.flow-arrow-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #111;
}

.side-arrow-text {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    line-height: 1.3;
}

.highlight-box {
    border: 2px solid #111; /* プロ撮影を少し強調 */
}

.flow-note {
    font-size: 16px;
    color: #999;
    margin-top: 20px;
}

/* STEP 4: 各媒体へ */
.final-step {
    background: #111;
    border: none;
    color: #fff;
}
.final-step .step-title { color: #fff; }
.final-step .check-icon { background: #fff; color: #111; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; padding: 0;}

.media-icons-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.media-icon {
    background: #333;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
}

/* =========================================
   レスポンシブ (SP)
   ========================================= */
@media screen and (max-width: 768px) {
    .flow-wrapper {
        padding: 30px 15px;
    }
	.flow-step {
		padding: 20px;
	}
	.step-head {
		margin-bottom: 18px;
	}
    .step-title {
        font-size: 18px;
    }
    .split-row {
        flex-direction: column;
    }
    .flow-box {
        width: 100%;
        box-sizing: border-box;
    }
    /* スマホ時はモデル化→プロ撮影の矢印を縦向きに変更 */
    .flow-arrow-side {
        margin: 15px 0;
    }
    .flow-arrow-side .pc-arrow { display: none; }
    .flow-arrow-side .sp-arrow { display: block !important; }
    
    .media-icons-row {
        flex-direction: column;
        gap: 10px;
    }
    .media-icon {
        text-align: center;
    }
}


/* style3.css に追加 */
.demo-video-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* 中央の再生ボタン */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none; /* これによりクリックが背後のvideoに届きます */
    transition: opacity 0.3s;
}

.video-play-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
}

/* 再生中はボタンを隠す */
.demo-video-wrapper.is-playing .video-play-button {
    opacity: 0;
}


/* =========================================
   縦スライダー用追加スタイル（媒体投稿AI）
   ========================================= */
.vertical-slider .img-before {
    clip-path: inset(0 0 50% 0); /* 下半分を隠す */
}
.vertical-slider .slider-control {
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    width: 100%;
    height: calc(100% + 40px);
    top: -20px;
    left: 0;
    transform: none;
    cursor: ns-resize;
}
.vertical-slider .slider-handle {
    top: 50%;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}
.vertical-slider .slider-handle::after {
    content: '▲\A▼';
    white-space: pre;
    line-height: 1.2;
    font-size: 10px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.vertical-slider .label-before {
    top: 15px;
    left: 15px;
    right: auto;
}
.vertical-slider .label-after {
    top: auto;
    bottom: 15px;
    left: 15px;
    right: auto;
}

/* =========================================
   iPhone/スマホ向け：スライダーのタッチ範囲（つまみ）を拡大
   ========================================= */
/* 横スライダー用のつまみ（不可視）を縦いっぱいに広げる */
.slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 50px; /* タッチしやすい幅に拡大 */
    height: 1000px; /* ハンドルの上下どこを触っても反応するように十分な高さを持たせる */
    background: transparent;
    cursor: ew-resize;
}
.slider-control::-moz-range-thumb {
    width: 50px;
    height: 1000px;
    background: transparent;
    border: none;
    cursor: ew-resize;
}

/* 縦スライダー用のつまみ（不可視）を横いっぱいに広げる */
.vertical-slider .slider-control::-webkit-slider-thumb {
    width: 1000px;
    height: 50px;
    cursor: ns-resize;
}
.vertical-slider .slider-control::-moz-range-thumb {
    width: 1000px;
    height: 50px;
}