/* =========================================
   1. Base Variables & Reset
   ========================================= */
:root {
    --bg-body: #ffffff;
    --bg-gray: #f4f5f7; /* 背景用グレー */
    --bg-dark: #111111;
    --color-main: #000000;
    --color-text: #333333;
    --color-gray: #7a7a7a;
    --color-line: #e5e5e5;
    --font-en: "Jost", sans-serif;
    --font-jp: "Noto Sans JP", sans-serif;
    --sidebar-width: 260px;
    
    /* MVデバイス・波紋用 */
    --pc-bezel: #121212;
    --sp-frame: #0a0a0a;
    --ripple-color: rgba(0, 0, 0, 0.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-jp);
    background-color: var(--bg-body);
    color: var(--color-text);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.pc-only { display: inline; }

/* =========================================
   2. Layout Structure
   ========================================= */
.layout-wrapper { display: flex; max-width: 100%; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-width);
    position: fixed; top: 0; left: 0; height: 100vh;
    padding: 60px 40px;
    display: flex; flex-direction: column;
    border-right: 1px solid var(--color-line);
    background: #fff; z-index: 100;
}
.sidebar-logo {
    font-family: var(--font-en); font-size: 1.8rem; font-weight: 700;
    line-height: 1.1; margin-bottom: 80px; letter-spacing: -0.02em;
}
.sidebar-logo span { display: block; font-size: 0.65rem; font-weight: 400; color: var(--color-gray); margin-top: 8px; letter-spacing: 0.1em; }

.pc-nav { display: flex; flex-direction: column; gap: 20px; }
.pc-nav a {
    font-family: var(--font-en); font-size: 0.85rem; font-weight: 500;
    color: var(--color-gray); position: relative; padding-left: 0;
    transition: 0.3s; text-transform: uppercase; letter-spacing: 0.1em;
    white-space: nowrap; 
    display: inline-block;
}
.pc-nav a.active, .pc-nav a:hover { color: var(--color-main); padding-left: 10px; }
.pc-nav a::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 0; height: 1px; background: var(--color-main); transition: 0.3s;
}
.pc-nav a.active::before, .pc-nav a:hover::before { width: 6px; }

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    background: #fff; position: relative;
}
.hamburger-btn, .sp-nav-overlay { display: none; }

/* =========================================
   3. Content Sections
   ========================================= */
/* MV (波紋中心・点線トル・ボタン維持) */
.mv {
    height: 85vh; min-height: 600px;
    display: flex; align-items: center;
    padding: 0 10%;
    background: #fff; position: relative;
    border-bottom: 1px solid var(--color-line);
    overflow: hidden;
}

/* 背景ドット */
.mv-bg-dots {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(#eee 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 75% 50%, black, transparent 70%);
    opacity: 0.5;
    z-index: 1;
}

.mv-content { 
    position: relative; 
    z-index: 10; 
    display: flex;
    align-items: center;
    width: 100%;
}

.mv-text-content { flex: 0 0 45%; position: relative; z-index: 20; }

.mv-tag { 
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    margin-bottom: 25px; padding-bottom: 5px;
    font-family: var(--font-en); letter-spacing: 0.2em;
    border-bottom: 2px solid var(--color-main);
}

/* 日本語キャッチコピー用調整 */
.mv h1.mv-title {
    font-size: 3.2rem;
    font-weight: 700; line-height: 1.3; margin-bottom: 30px;
    letter-spacing: -0.01em; font-family: var(--font-jp); color: var(--color-main);
}
.mv h1.mv-title span { 
    display: block; font-family: var(--font-jp); font-size: 2.2rem; font-weight: 700; 
    color: var(--color-main); margin-top: 5px; letter-spacing: 0.05em; 
}

.mv-description {
    font-size: 18px; line-height: 2; color: var(--color-gray); margin-bottom: 45px;
}
.mv-description .marker {
    background: linear-gradient(transparent 60%, #ffff00 60%);
    font-weight: 700; color: #333;
}

.mv-cta-btn {
    display: inline-block; background: var(--color-main); color: #fff;
    padding: 22px 55px; font-size: 16px; font-weight: 700;
    text-decoration: none; transition: 0.3s; letter-spacing: 0.1em;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.mv-cta-btn:hover { background: #333; transform: translateY(-3px); }

/* ビジュアルエリア：デバイスサイズを元に戻す */
.mv-visual-content {
    flex: 0 0 55%;
    position: relative;
    display: flex;
    align-items: flex-end; /* 下に揃える */
    justify-content: flex-start;
    padding-left: 20px;
    min-height: 500px;
}

.mv-bg-ripple {
    position: absolute;
    top: 45%; 
    left: 45%;
    transform: translate(-50%, -50%);
    width: 75vw;
    height: 75vw;
    z-index: 0;
    pointer-events: none;
    display: flex; align-items: center; justify-content: center;
}
.ripple-circle {
    position: absolute; border-radius: 50%; background: #f5f5f5;
}
.ripple-circle:nth-child(1) { width: 100%; height: 100%; opacity: 0.4; }
.ripple-circle:nth-child(2) { width: 70%; height: 70%; opacity: 0.6; }
.ripple-circle:nth-child(3) { width: 42%; height: 42%; opacity: 1; background: #ececec; }

/* PC Mockup：横に長すぎた比率を16/10.5へ修正 */
.laptop { position: relative; width: 100%; max-width: 650px; z-index: 5; }
.laptop-screen {
    position: relative; aspect-ratio: 16 / 10.5; /* 横長すぎを解消しバランスを適正化 */
    background-color: var(--pc-bezel); border-radius: 18px 18px 0 0;
    padding: 1.2%; /* 黒枠をスリムに */
    box-sizing: border-box; border: 1px solid #333;
    box-shadow: 0 40px 100px rgba(0,0,0,0.12);
}
.laptop-inner { 
    width: 100%; height: 100%; background-color: #fff; 
    overflow: hidden; position: relative; 
}
/* 画像のがびがび防止対策 */
.laptop-inner img { 
    width: 100%; height: 100%; object-fit: cover; object-position: top; 
    position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1.5s ease-in-out;
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: high-quality;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0); 
}
.laptop-inner img.active { opacity: 1; z-index: 1; }

.laptop-base {
    width: 110%; height: 14px;
    background: linear-gradient(to bottom, #d1d5db 0%, #9ca3af 20%, #4b5563 100%);
    margin-left: -5%; border-radius: 0 0 12px 12px;
}

/* SP Mockup：バランス調整 */
.phone {
    position: absolute; bottom: -20px; right: -5%; width: 26%;
    aspect-ratio: 9 / 17; 
    background-color: var(--sp-frame);
    border-radius: 30px; padding: 8px; box-sizing: border-box;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.25); z-index: 20;
    border: 1px solid #333; overflow: hidden;
}
.phone-inner { 
    width: 100%; height: 100%; background-color: #fff; 
    overflow: hidden; border-radius: 24px; position: relative;
}
/* 画像のがびがび防止対策 */
.phone-inner img { 
    width: 100%; height: 100%; object-fit: cover; object-position: top; 
    position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1.5s ease-in-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}
.phone-inner img.active { opacity: 1; z-index: 1; }

/* Section Common */
.section {
    padding: 100px 8%;
    border-bottom: 1px solid var(--color-line);
    position: relative; overflow: hidden;
}
.section-gray {
    background-color: var(--bg-gray);
    border-bottom: none; 
}

.sec-header { 
    margin-bottom: 40px; 
    display: flex; justify-content: space-between; align-items: flex-end;
    padding-bottom: 20px; border-bottom: 1px solid var(--color-line);
}
.sec-title-wrap { flex: 1; }
.sec-num { font-family: var(--font-en); font-size: 1rem; color: #bbb; display: block; margin-bottom: 5px;}
.sec-title { font-size: 2.5rem; font-weight: 700; letter-spacing: 0.02em; margin: 0; font-family: var(--font-en); text-transform: uppercase; }
.sec-jp { font-size: 0.85rem; margin-top: 8px; display: block; font-weight: 500; color: #666; }

.sec-right-content {
    display: flex; flex-direction: column; align-items: flex-end; gap: 15px;
}
.sec-desc { max-width: 400px; font-size: 0.85rem; color: var(--color-gray); text-align: right; line-height: 1.8; margin: 0; }

/* Carousel */
.nav-arrows { display: flex; gap: 0; }
.arrow-btn {
    width: 50px; height: 50px; border: 1px solid var(--color-line); border-left: none;
    background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; font-family: var(--font-en);
    -webkit-tap-highlight-color: transparent; user-select: none;
}
.arrow-btn:first-child { border-left: 1px solid var(--color-line); }
.arrow-btn:hover, .arrow-btn:active { background: #000; color: #fff; border-color: #000; }
.arrow-btn.is-disabled { pointer-events: none; opacity: 0.6; }

.carousel-container { position: relative; margin-top: 20px; margin-bottom: 80px; }
.carousel-track {
    display: flex; gap: 40px; overflow-x: scroll; padding-bottom: 40px;
    scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; 
    scroll-snap-type: x mandatory; 
}
.carousel-track::-webkit-scrollbar { display: none; }

.item-card { 
    flex: 0 0 320px; display: flex; flex-direction: column; position: relative;
    scroll-snap-align: center; 
}
.item-img {
    width: 100%; height: 300px; background: #f0f0f0;
    margin-bottom: 25px; position: relative; border: none; 
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.item-card:hover .item-img img { transform: scale(1.05); }
.item-tag {
    position: absolute; top: 0; left: 0;
    background: var(--color-main); color: #fff;
    font-size: 0.6rem; padding: 4px 10px;
    font-family: var(--font-en); letter-spacing: 0.1em; z-index: 2;
}
.item-info { padding: 0 5px; }
.item-header { 
    display: flex; justify-content: space-between; align-items: baseline; 
    border-bottom: 1px solid #000; padding-bottom: 8px; margin-bottom: 15px;
}
.item-title { font-size: 1.1rem; font-weight: 700; font-family: var(--font-en); }
.item-cat { font-size: 0.65rem; color: #666; font-weight: 500; }
.item-desc { font-size: 0.8rem; line-height: 1.7; color: #555; margin-bottom: 20px; min-height: 4.8em; }

.item-link {
    display: block; width: 100%; background: #000; color: #fff;
    text-align: center; padding: 12px 0; font-size: 0.75rem; font-weight: 700;
    font-family: var(--font-en); letter-spacing: 0.1em;
    transition: 0.3s; border: 1px solid #000;
}
.item-link:hover { background: #fff; color: #000; }

.demo-link-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.demo-link-group .item-link {
    flex: 1;
    padding: 10px 0;
    font-size: 0.75rem;
    white-space: nowrap;
    text-align: center;
}
.demo-link-group .item-link.sp-btn {
    background: #444;
    border-color: #444;
}
.demo-link-group .item-link.sp-btn:hover {
    background: #fff;
    color: #444;
}

.cta-item {
    justify-content: center; align-items: center;
    background: var(--bg-dark); color: #fff;
    padding: 30px; text-align: center; height: 300px; 
}
.cta-item h3 { font-size: 1.4rem; margin-bottom: 15px; font-family: var(--font-en); }
.cta-item p { font-size: 0.8rem; color: #999; margin-bottom: 25px; }
.btn-white {
    background: #fff; color: #000; padding: 10px 25px;
    font-size: 0.75rem; font-weight: 700; transition: 0.3s;
}
.btn-white:hover { background: #ccc; }

/* === FLOW GRID (制作の流れ) === */
.sub-header {
    text-align: center; margin-top: 60px; margin-bottom: 40px;
}
.sub-header span {
    font-family: var(--font-en); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.2em;
    color: #999; display: block; margin-bottom: 5px;
}
.sub-header h3 {
    font-size: 1.8rem; font-weight: 700; margin: 0;
}

.flow-grid {
    display: flex; gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
}

.flow-step {
    flex: 1; 
    padding: 60px 30px 50px; 
    background: #fff;
    border: 1px solid #eee; 
    display: flex; 
    flex-direction: column; 
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.flow-num {
    font-family: var(--font-en); font-size: 3rem; font-weight: 700;
    color: #f0f0f0; line-height: 1; 
    margin-bottom: 20px; 
}

.flow-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; font-family: var(--font-en); }
.flow-jp { display: block; font-size: 0.85rem; color: #666; font-weight: 500; margin-top: 5px; }
.flow-text { font-size: 0.85rem; color: #666; line-height: 1.8; }
.flow-note { display: block; margin-top: 10px; font-size: 0.75rem; color: #999; }

/* ボタン位置の横軸揃えと上マージン確保 */
.flow-step .btn-contact {
    margin-top: auto; 
    margin-bottom: 0;
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    font-size: 0.85rem;
    text-align: center;
}

/* テキストとボタンの間に確実な余白を設定 */
.flow-text {
    margin-bottom: 40px; 
}

/* =========================================
   選ばれる理由 (WHY CHOOSE US) 独自スタイル
   ========================================= */
.reason-grid {
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 60px;
}

.reason-step {
    flex: 1;
    padding: 40px 30px;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.reason-num {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
    margin-bottom: 10px;
}

.reason-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.reason-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
}

/* スマホ用調整 */
@media (max-width: 900px) {
    .reason-grid {
        flex-direction: column;
        gap: 15px;
    }
    .reason-step {
        padding: 30px 20px;
        width: 100%;
    }
}

/* =========================================
   Plans
   ========================================= */
.campaign-section { background: #fff; }
.plan-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); 
    border: 1px solid #000; margin-bottom: 0; 
}
.plan-box { 
    padding: 50px 30px;
    border-right: 1px solid #000; 
    display: flex; flex-direction: column; 
    background: #fff;
    position: relative;
}
.plan-box:last-child { border-right: none; }

.marker {
    background: linear-gradient(transparent 70%, #ffff00 70%);
    padding: 0 2px;
    font-weight: bold;
}

.plan-box.recommended { 
    background: #fff; 
    border: 3px solid #000; 
    z-index: 10; 
    transform: scale(1.05); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.recommend-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 15px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.plan-conditions-box {
    margin-top: 40px;
    border: 1px solid #000;
    padding: 30px;
    background: #f8f9fa;
}

.condition-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.condition-tag {
    background: #000;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 4px 12px;
    flex-shrink: 0;
}

.condition-text {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #333;
}

.plan-tag {
    font-family: var(--font-en); font-size: 0.7rem; font-weight: 700;
    border: 1px solid #000; padding: 6px 16px; display: inline-block;
    margin-bottom: 25px; align-self: flex-start; background: #fff;
}
.plan-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.plan-sub { color: var(--color-gray); font-size: 0.8rem; margin-bottom: 40px; min-height: 3em; }

.price-area { margin-top: auto; border-top: 1px solid var(--color-line); padding-top: 30px; }
.price-row { 
    display: flex; justify-content: space-between; 
    margin-bottom: 12px; font-size: 0.85rem; color: #444; border-bottom: 1px dotted #eee; padding-bottom: 5px;
}
.price-row:last-of-type { border-bottom: none; }
.strike { text-decoration: line-through; color: #999; margin-left: 10px; }

.price-total { margin-top: 25px; display: block; font-family: var(--font-en); line-height: 1.2; }
.price-old { display: block; font-size: 1.1rem; color: #999; text-decoration: line-through; font-weight: 500; }
.price-old-label { display: block; font-size: 0.7rem; color: #777; margin-bottom: 5px; }
.price-new { display: block; font-size: 2rem; font-weight: 700; color: #d32f2f; }
.price-new span { font-size: 0.9rem; font-weight: 400; color: #333; margin-left: 5px; }

/* FAQ */
.faq-wrapper { max-width: 800px; margin: 0 auto 100px; border-top: 1px solid #eee; }
.faq-item { border-bottom: 1px solid #eee; }

.faq-q {
    font-size: 1.1rem; font-weight: 700; 
    padding: 30px 0; padding-right: 40px;
    position: relative; cursor: pointer;
    font-feature-settings: "palt"; display: flex; align-items: flex-start;
    transition: color 0.3s;
}
.faq-q:hover { color: var(--color-gray); }
.faq-q::before {
    content: "Q."; margin-right: 15px;
    color: #000; font-family: var(--font-en); font-weight: 700;
}
.faq-icon {
    position: absolute; right: 0; top: 32px;
    width: 16px; height: 16px;
}
.faq-icon::before, .faq-icon::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    background: #000; transform: translate(-50%, -50%);
    transition: transform 0.4s ease;
}
.faq-icon::before { width: 100%; height: 1px; }
.faq-icon::after { width: 1px; height: 100%; }

.faq-a {
    height: 0; overflow: hidden; opacity: 0;
    transition: height 0.4s ease, opacity 0.4s ease;
    padding-left: 35px;
}
.faq-a-inner {
    padding-bottom: 30px;
    font-size: 0.9rem; color: #666; line-height: 1.9;
}
.faq-a span { display: block; margin-top: 5px; font-size: 0.8rem; color: #999; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-a { opacity: 1; height: auto; }

/* CTA Area */
.cta-area {
    background: #ffffff; 
    padding: 100px 8%; 
    text-align: center;
    margin-top: 80px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05); 
    border: 1px solid #ebebeb; 
    position: relative;
    border-top: none; 
}
.cta-area::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px; background: #000;
}
.cta-area h3 { font-size: 1.8rem; margin-bottom: 25px; letter-spacing: 0.05em; font-family: var(--font-en); font-weight:700;}
.cta-area p { margin-bottom: 40px; color: #666; font-size: 0.95rem; }
.btn-contact {
    display: inline-block; background: #000; color: #fff;
    padding: 20px 70px; font-size: 1rem; font-weight: 700;
    font-family: var(--font-en); letter-spacing: 0.1em;
    transition: 0.3s; width: 100%; max-width: 420px; white-space: nowrap;
}
.btn-contact:hover { background: #444; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Ads Service Styles */
.ad-feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    margin-bottom: 60px;
}
.ad-feature-item {
    padding: 40px 30px; 
    background: #fff; border: 1px solid #eee; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.ad-feature-icon {
    font-size: 2rem; margin-bottom: 20px; display: block; color: var(--color-main);
}
.ad-feature-title { font-weight: 700; margin-bottom: 15px; font-size: 1.1rem; }
.ad-feature-desc { font-size: 0.85rem; color: #666; text-align: left; }

/* Company Section Styles */
.company-info-area { max-width: 800px; margin: 0 auto; }
.philosophy-box { text-align: center; margin-bottom: 60px; padding: 0 20px; }
.philosophy-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; }
.philosophy-text { font-size: 0.95rem; color: #555; line-height: 2; }

.company-list { border-top: 1px solid #eee; }
.company-row { display: flex; border-bottom: 1px solid #eee; padding: 25px 0; }
.company-row dt { width: 30%; font-weight: 700; font-size: 0.95rem; padding-left: 10px; display: flex; align-items: center; }
.company-row dd { width: 70%; font-size: 0.95rem; color: #444; line-height: 1.8; }

/* Footer */
footer {
    background: #fff; padding: 40px 8%; border-top: 1px solid var(--color-line);
    display: flex; justify-content: flex-end;
}
.footer-right {
    display: flex; gap: 20px;
    font-size: 0.7rem; color: #999; font-family: var(--font-en);
}

/* Page Top Button */
#page-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px; background: #000; color: #fff;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.4s; z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-family: var(--font-en); font-size: 1.2rem;
}
#page-top.is-visible { opacity: 1; pointer-events: auto; }
#page-top:hover { background: #444; transform: translateY(-3px); }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .plan-box.recommended { transform: none; margin: 10px 0; }
}

@media (max-width: 900px) {
    .layout-wrapper { flex-direction: column; }
    .sidebar {
        width: 100%; height: 60px; position: fixed; top: 0; padding: 0 20px;
        flex-direction: row; align-items: center; justify-content: space-between;
        border-right: none; border-bottom: 1px solid var(--color-line);
    }
    .sidebar-logo { margin: 0; font-size: 1.4rem; }
    .sidebar-logo span, .pc-nav { display: none; }
    .hamburger-btn {
        display: flex; flex-direction: column; gap: 5px; width: 30px; cursor: pointer;
    }
    .hamburger-btn span { width: 100%; height: 2px; background: #000; transition: 0.3s; }
    .hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger-btn.active span:nth-child(2) { opacity: 0; }
    .hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .sp-nav-overlay {
        display: block; position: fixed; top: 60px; left: 0; width: 100%; height: calc(100vh - 60px);
        background: #fff; z-index: 90; transform: translateX(100%); transition: 0.3s;
        padding: 40px;
    }
    .sp-nav-overlay.active { transform: translateX(0); }
    .sp-nav-overlay a { display: block; font-size: 1.2rem; margin-bottom: 25px; font-weight: 700; border-bottom: 1px solid #eee; padding-bottom: 10px;}
    
    .main-content { margin-left: 0; width: 100%; margin-top: 60px; }
    
    .mv { padding: 60px 20px; height: auto; min-height: 450px; }
    .mv-content { flex-direction: column; text-align: center; }
    
    /* MV修正：文字サイズ・余白の最適化 */
    .mv-text-content { width: 100%; margin-bottom: 30px; } 
    .mv h1.mv-title { font-size: 1.8rem; margin-bottom: 20px; } 
    .mv h1.mv-title span { font-size: 1.4rem; }
    .mv-description { font-size: 15px; margin-bottom: 30px; }
    .mv-cta-btn { padding: 18px 45px; font-size: 14px; }

    .mv-visual-content { width: 100%; justify-content: center; padding-left: 0; min-height: auto;}
    
    /* モバイル時のノートPC：枠線・比率の修正 */
    .laptop { width: 85%; max-width: 480px; margin: 0 auto; }
    .laptop-screen { 
        aspect-ratio: 16 / 10.5; /* スマホでも適正比率を維持 */
        padding: 6px; 
        border-radius: 12px 12px 0 0; 
    }
    
    /* モバイル時のスマホ：縦長すぎ・枠線の修正 */
    .phone { 
        width: 28%; right: 5%; bottom: -10px; 
        aspect-ratio: 9 / 17; 
        padding: 6px; 
        border: 1px solid #333; 
        border-radius: 18px; 
    }
    .phone-inner { border-radius: 14px; }
    .mv-bg-ripple { width: 120vw; height: 120vw; left: 50%; top: 50%; }
    
    .section { padding: 80px 20px; }
    .sec-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .sec-right-content { align-items: flex-start; width: 100%; }
    .sec-desc { text-align: left; }

    /* モバイル時：制作の流れ */
    .flow-grid { flex-direction: column; gap: 20px; }
    .flow-step { padding: 40px 25px; }
    .flow-step .btn-contact { width: 100%; margin-top: 25px; }

    /* プラン修正：枠線表示 */
    .plan-grid { 
        grid-template-columns: 1fr; 
        border: none; 
    }
    .plan-box { 
        border: 1px solid #000 !important; 
        padding: 40px 25px; 
        width: 100%;
        margin: 0;
    }
    .plan-box.recommended { 
        transform: none; 
        box-shadow: none; 
        border: 3px solid #000 !important; 
        margin: 10px 0; 
    }
    
    .condition-inner { flex-direction: column; text-align: center; }
    
    .ad-feature-grid { grid-template-columns: 1fr; }
    .company-row { flex-direction: column; }
    .company-row dt { width: 100%; padding-bottom: 5px; }
    .company-row dd { width: 100%; }
    footer { justify-content: center; }
}
/* スライドショーのコンテナを相対位置に */
.laptop-inner, .phone-inner {
    position: relative;
    overflow: hidden;
    background: #f0f0f0; /* 読み込み中の背景色 */
}

/* 全ての画像を絶対配置で重ね、最初は非表示にする */
.laptop-inner img, .phone-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* 基本は透明 */
    transition: opacity 0.8s ease-in-out; /* フェードを滑らかに */
    z-index: 1;
}

/* 1枚目（activeクラス）だけを最初から表示する */
.laptop-inner img.active, .phone-inner img.active {
    opacity: 1;
    position: relative; /* 1枚目だけ相対位置にすることで親要素の高さを作る */
    z-index: 2;
}