/* =========================================
   STORE LABO Full Width Template CSS
   File Name: sl-fullwidth.css
   ========================================= */

/* -----------------------------------------
   1. 基本レイアウト・リセット
   ----------------------------------------- */
/* メインエリアの幅制限を解除 */
.page-template-page-sl-fullwidth #main,
.page-template-page-sl-fullwidth .site-main,
.page-template-page-sl-fullwidth .content-area,
.page-template-page-sl-fullwidth .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden; /* 横スクロール防止 */
}

/* 記事内の画像の余白などをリセット */
.sl-hero-section-cr img,
.sl-works-section-cr img {
    max-width: 100%;
    height: auto;
    box-shadow: none;
    vertical-align: bottom;
}
.sp-only { display: none; }


/* -----------------------------------------
   2. ファーストビュー（Creative Raja風）
   ----------------------------------------- */
.sl-hero-section-cr {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    color: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    padding: 0;
}

/* 背景画像（パララックス用） */
.sl-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ↓ 背景画像URLを変更 ↓ */
    background-image: url('http://store-labo.com/wp-content/uploads/2023/06/mv01-scaled.jpg'); 
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1); /* 初期状態は少し拡大 */
    transition: transform 1.5s ease-out;
}
/* JSで付与されるクラス */
.sl-hero-bg.is-loaded {
    transform: scale(1);
}

.sl-hero-overlay-cr {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.sl-hero-container-cr {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    z-index: 2;
    box-sizing: border-box;
}

.sl-hero-tag-cr {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    color: #FF9F1C;
}

.sl-hero-title-cr {
    margin: 0 0 40px;
    line-height: 1.1;
    font-weight: 900;
    color: #fff;
}

.sl-hero-title-sub-cr {
    font-size: 32px;
    display: block;
    margin-bottom: 20px;
}

.sl-hero-title-main-cr {
    font-size: 80px;
    letter-spacing: -0.02em;
}

.sl-hero-text-cr {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 600px;
    color: #e0e0e0;
}

.sl-hero-btns-cr {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.sl-btn-main-cr {
    display: inline-block;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding: 18px 50px;
    transition: all 0.3s;
    font-size: 16px;
    letter-spacing: 0.05em;
    border-radius: 0;
}
.sl-btn-main-cr:hover {
    background: #FF9F1C;
    color: #fff;
    text-decoration: none;
}

.sl-btn-sub-cr {
    display: inline-block;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 16px 50px;
    transition: all 0.3s;
    font-size: 16px;
    letter-spacing: 0.05em;
}
.sl-btn-sub-cr:hover {
    background: #fff;
    color: #000;
    text-decoration: none;
}

/* フェードインアニメーション */
.fadeIn {
    animation: slFadeIn ease 1.5s;
}
@keyframes slFadeIn {
    0% { opacity:0; transform: translateY(20px); }
    100% { opacity:1; transform: translateY(0); }
}


/* -----------------------------------------
   3. 制作実績セクション（無限ループスライダー）
   ----------------------------------------- */
.sl-works-section-cr {
    padding: 120px 0;
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

.sl-section-header-cr {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
    box-sizing: border-box;
}

.sl-title-cr {
    font-size: 48px;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.sl-description-cr {
    font-size: 16px;
    color: #666;
}

/* スライダー外枠 */
.sl-works-slider-wrap {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* 動くトラック */
.sl-works-slider-track {
    display: flex;
    width: max-content;
    animation: sl-slide-loop 40s linear infinite;
}
.sl-works-slider-track:hover {
    animation-play-state: paused;
}

/* カードアイテム */
.sl-card-slider-item {
    width: 450px;
    margin-right: 40px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.sl-card-slider-item:hover {
    transform: translateY(-10px);
}

.sl-card-link-cr {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.sl-card-image-cr {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}
.sl-card-image-cr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.sl-card-slider-item:hover .sl-card-image-cr img {
    transform: scale(1.05);
}

.sl-card-content-cr {
    padding: 0 5px;
}

.sl-category-cr {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sl-client-name-cr {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    color: #000;
    line-height: 1.4;
}

/* ループアニメーション */
@keyframes sl-slide-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sl-more-btn-area-cr {
    text-align: center;
    margin-top: 60px;
}

.sl-btn-outline-cr {
    display: inline-block;
    padding: 15px 60px;
    border: 2px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 14px;
    letter-spacing: 0.1em;
}
.sl-btn-outline-cr:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}


/* -----------------------------------------
   4. 選ばれる理由セクション
   ----------------------------------------- */
.sl-reason-section-cr {
    background-color: #111;
    color: #fff;
    padding: 120px 40px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
}

.sl-reason-container-cr {
    max-width: 1200px;
    margin: 0 auto;
}

.sl-reason-header-cr {
    margin-bottom: 80px;
    text-align: left;
}
.sl-reason-header-cr .sl-title-cr {
    color: #fff;
    margin-bottom: 30px;
}

.sl-reason-list-cr {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.sl-reason-item-cr {
    display: flex;
    align-items: flex-start;
    border-top: 1px solid #333;
    padding-top: 60px;
    transition: all 0.3s;
}
.sl-reason-item-cr:hover {
    border-top-color: #FF9F1C;
}

.sl-reason-number-cr {
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    color: #FF9F1C;
    margin-right: 60px;
    flex-shrink: 0;
    font-family: "Impact", sans-serif;
}

.sl-reason-content-cr {
    flex-grow: 1;
}

.sl-reason-title-cr {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 20px;
    line-height: 1.4;
}

.sl-reason-text-cr {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
    max-width: 800px;
}


/* -----------------------------------------
   5. 料金プランセクション
   ----------------------------------------- */
.sl-price-section-cr {
    padding: 120px 40px;
    background: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.sl-price-container-cr {
    max-width: 1200px;
    margin: 0 auto;
}

.sl-price-grid-cr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
}

/* プランカード共通 */
.sl-price-card-cr {
    border: 1px solid #e0e0e0;
    padding: 50px 30px;
    text-align: center;
    transition: transform 0.3s;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
}
.sl-price-card-cr:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 2;
}

/* プラン名 */
.sl-price-name-cr {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

/* 説明文 */
.sl-price-desc-cr {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    height: 45px;
}

/* 金額 */
.sl-price-amount-cr {
    font-size: 40px;
    font-weight: bold;
    font-family: "Impact", sans-serif;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}
.sl-price-amount-cr .yen {
    font-size: 20px;
    vertical-align: top;
    margin-right: 5px;
    font-weight: normal;
}
.sl-price-amount-cr .tax {
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

/* リスト */
.sl-price-list-cr {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border-top: 1px solid #eee;
    margin-top: auto; /* 下に寄せる */
}
.sl-price-list-cr li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
    position: relative;
    padding-left: 20px;
}
.sl-price-list-cr li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #FF9F1C;
    font-weight: bold;
}
.sl-price-list-cr li.unavailable {
    color: #ccc;
    text-decoration: line-through;
}
.sl-price-list-cr li.unavailable::before {
    content: "-";
    color: #ccc;
}

/* おすすめプラン */
.sl-price-recommended {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: scale(1.05);
    z-index: 1;
}
.sl-price-recommended .sl-price-name-cr,
.sl-price-recommended .sl-price-amount-cr {
    color: #fff;
}
.sl-price-recommended .sl-price-desc-cr {
    color: #ccc;
}
.sl-price-recommended .sl-price-list-cr li {
    color: #ddd;
    border-bottom-color: #333;
}
.sl-price-recommended .sl-price-list-cr {
    border-top-color: #333;
}
.sl-rec-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF9F1C;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 15px;
    letter-spacing: 0.1em;
}

/* --- テンプレートプラン（デモリンク付き） --- */
.sl-price-template-wrap {
    margin-top: 30px;
    margin-bottom: 20px;
}
.sl-price-template-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 40px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 上段 */
.sl-template-content-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}
.sl-template-info {
    flex: 1;
    min-width: 250px;
}
.sl-template-info .sl-price-desc-cr {
    margin-bottom: 0;
    height: auto;
    text-align: left;
}
.sl-template-info .sl-price-name-cr {
    text-align: left;
    color: #555;
}
.sl-template-price {
    text-align: center;
    padding: 0 30px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}
.sl-template-note {
    font-size: 11px;
    color: #888;
    margin: 5px 0 0;
}
.sl-template-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sl-template-features li {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    position: relative;
    padding-left: 20px;
}
.sl-template-features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #FF9F1C;
}

/* 下段（デモリンク） */
.sl-template-demo-row {
    border-top: 1px dashed #ccc;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.sl-demo-label {
    font-size: 14px;
    font-weight: bold;
    color: #888;
    letter-spacing: 0.05em;
}
.sl-demo-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.sl-btn-demo {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    padding: 10px 20px;
    transition: all 0.2s;
}
.sl-btn-demo:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}
.sl-btn-demo .icon {
    margin-left: 8px;
    font-size: 12px;
}

.sl-price-note {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}


/* -----------------------------------------
   6. CTAセクション
   ----------------------------------------- */
.sl-cta-section-cr {
    position: relative;
    background-color: #f9f9f9;
    color: #333;
    padding: 140px 20px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
    text-align: center;
}

.sl-cta-container-cr {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 2;
}

.sl-cta-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
    font-family: "Impact", sans-serif;
}

.sl-cta-title-en {
    font-size: 60px;
    font-weight: 900;
    color: #000;
    margin: 0 0 20px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.sl-cta-title-jp {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.6;
}

.sl-cta-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.8;
}

.sl-cta-btns-cr {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.sl-btn-main-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FF9F1C;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 20px 60px;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 300px;
}
.sl-btn-main-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 159, 28, 0.3);
    color: #fff;
    text-decoration: none;
}
.sl-btn-main-cta .arrow {
    margin-left: 10px;
}

.sl-btn-sub-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #06C755;
    color: #06C755;
    text-decoration: none;
    font-weight: bold;
    padding: 18px 60px;
    font-size: 16px;
    transition: all 0.2s;
    min-width: 300px;
}
.sl-btn-sub-cta:hover {
    background: #06C755;
    color: #fff;
    text-decoration: none;
}
.sl-btn-sub-cta .line-icon {
    font-weight: 900;
}

.sl-cta-note {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}


/* -----------------------------------------
   7. アニメーション定義
   ----------------------------------------- */
.js-fade-up,
.js-slide-in-left,
.js-slide-in-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.js-fade-up { transform: translateY(40px); }
.js-fade-up.is-active { opacity: 1; transform: translateY(0); }
.js-slide-in-left { transform: translateX(-40px); }
.js-slide-in-left.is-active { opacity: 1; transform: translateX(0); }
.js-slide-in-right { transform: translateX(40px); }
.js-slide-in-right.is-active { opacity: 1; transform: translateX(0); }
.delay-02s { transition-delay: 0.2s; }
.delay-04s { transition-delay: 0.4s; }
.delay-06s { transition-delay: 0.6s; }


/* -----------------------------------------
   8. 行間・余白の強制修正パッチ
   ----------------------------------------- */
.sl-hero-text-cr,
.sl-description-cr,
.sl-card-content-cr p,
.sl-reason-text-cr,
.sl-cta-desc,
.sl-cta-title-jp,
.sl-price-desc-cr,
.sl-price-list-cr li {
    line-height: 1.8 !important;
    letter-spacing: 0.05em;
}
.sl-hero-title-main-cr,
.sl-title-cr,
.sl-client-name-cr,
.sl-reason-title-cr,
.sl-cta-title-en,
.sl-price-name-cr {
    line-height: 1.3 !important;
}


/* -----------------------------------------
   9. レスポンシブ対応（スマホ）
   ----------------------------------------- */
@media (max-width: 768px) {
    .sp-only { display: inline; }
    
    /* Hero */
    .sl-hero-container-cr { padding: 80px 20px; text-align: center; }
    .sl-hero-section-cr { justify-content: center; min-height: auto; }
    .sl-hero-title-sub-cr { font-size: 20px; }
    .sl-hero-title-main-cr { font-size: 40px; line-height: 1.2; }
    .sl-hero-text-cr { font-size: 15px; margin: 0 auto 30px; }
    .sl-hero-btns-cr { justify-content: center; }
    .sl-btn-main-cr, .sl-btn-sub-cr { width: 100%; text-align: center; padding: 16px 20px; }
    
    /* Works (Slider) */
    .sl-works-section-cr { padding: 60px 0; }
    .sl-section-header-cr { padding: 0 20px; margin-bottom: 40px; }
    .sl-title-cr { font-size: 32px; }
    .sl-card-slider-item { width: 300px; margin-right: 20px; }
    .sl-works-slider-track { animation-duration: 25s; }
    .sl-works-slider-track:hover { animation-play-state: running; }

    /* Reason */
    .sl-reason-section-cr { padding: 80px 20px; }
    .sl-reason-item-cr { flex-direction: column; padding-top: 40px; }
    .sl-reason-number-cr { font-size: 50px; margin-right: 0; margin-bottom: 20px; }
    .sl-reason-title-cr { font-size: 24px; }
    
    /* Price */
    .sl-price-section-cr { padding: 60px 20px; }
    .sl-price-grid-cr { grid-template-columns: 1fr; gap: 50px; }
    .sl-price-recommended { transform: scale(1); }
    
    /* Template Price (SP) */
    .sl-price-template-card { padding: 30px 20px; }
    .sl-template-content-top { flex-direction: column; align-items: flex-start; }
    .sl-template-price { border: none; padding: 20px 0; text-align: left; width: 100%; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
    .sl-template-features { width: 100%; }
    .sl-template-features ul { flex-direction: row; flex-wrap: wrap; gap: 15px; }
    .sl-template-demo-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .sl-demo-btns { width: 100%; }
    .sl-btn-demo { width: 100%; justify-content: center; }

    /* CTA */
    .sl-cta-section-cr { padding: 80px 20px; }
    .sl-cta-title-en { font-size: 40px; }
    .sl-cta-title-jp { font-size: 18px; }
    .sl-btn-main-cta, .sl-btn-sub-cta { width: 100%; padding: 16px 20px; min-width: auto; }
    
    /* Font override for SP */
    .sl-hero-title-main-cr, .sl-title-cr, .sl-cta-title-en { line-height: 1.4 !important; }
}