/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E74C3C;
    --secondary-color: #FF6B6B;
    --text-color: #333;
    --bg-color: #FFF5F5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --youtube-red: #E74C3C;
    --youtube-light-red: #FF6B6B;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー / ヒーロー */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    max-width: 400px;
    margin: 0 auto 40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: normal;
    display: block;
    margin-top: 10px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* ボタンスタイル */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-line {
    background-color: #06C755;
    color: var(--white);
}

.btn-line:hover {
    /* background-color: #05B34B; */
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-form {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-form .external-link img {
    width: 30px;
}

.btn-form:hover {
    /* background-color: #f0f0f0; */
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 20px 0;
    font-size: 1.3rem;
    width: 320px;
    justify-content: center;
}

.btn-icon {
    width: 35px
}

/* セクション共通スタイル */
section {
    padding: 80px 70px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* 特徴セクション */
.features {
    background-color: var(--white);
}

/* こんな悩みはありませんか */
.problems {
    background-color: var(--white);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.problem-item {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.problem-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.problem-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* LINE相談CTAセクション */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.cta-box {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.cta-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.cta-description strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-color);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-description {
    color: #666;
    line-height: 1.8;
}

/* サービスセクション */
.services {
    background-color: var(--bg-color);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.service-card.reverse {
    direction: rtl;
}

.service-card.reverse > * {
    direction: ltr;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
}

.service-image .service-number {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    color: var(--white);
    font-size: 4rem;
    font-weight: bold;
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-points {
    list-style: none;
}

.service-points li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #555;
}

.service-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* 制作実績 */
.portfolio {
    background-color: var(--bg-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.portfolio-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
}

.portfolio-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* お客様の声 */
.testimonials {
    background-color: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.testimonial-meta {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-text {
    color: #555;
    line-height: 1.8;
    font-style: italic;
}

/* 最終CTA */
.final-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.final-cta .section-title {
    color: var(--white);
}

.final-cta .section-title::after {
    background: var(--white);
}

.final-cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.final-cta-text strong {
    font-size: 1.4rem;
    text-decoration: underline;
}

/* フロー */
.flow {
    background-color: var(--bg-color);
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.flow-number {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.flow-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.flow-description {
    color: #666;
    font-size: 0.95rem;
}

.flow-arrow {
    align-self: center;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* FAQ */
.faq {
    background-color: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e8e8e8;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
}

/* CTA セクション */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* フッター */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .service-card.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        padding: 30px 20px;
    }
    
    .service-image .service-number {
        height: 150px;
        font-size: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-steps {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .footer {
        padding-bottom: 90px;
    }
}

/* 追従CTA (PC: 右端縦書き) */
.sticky-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        right: -100px;
        opacity: 0;
    }
    to {
        right: 0;
        opacity: 1;
    }
}

.sticky-cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.sticky-cta-title {
    display: none;
}

.sticky-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    width: 60px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 10px 0 0 10px;
}

.sticky-cta-btn:hover {
    width: 65px;
}

.sticky-cta-btn .btn-icon {
    writing-mode: horizontal-tb;
    margin: 8px 0;
    display: flex;
    justify-content: center;
}

.sticky-cta-btn img {
    width: 26px;
}

.sticky-cta-line {
    background-color: #06C755;
    color: var(--white);
    white-space: nowrap;
}

.sticky-cta-form {
    background-color: var(--primary-color);
    color: var(--white);
}

.sticky-cta-form .external-link img {
    margin-bottom: 6px;
}

/* モバイル: 下部固定CTA */
@media (max-width: 768px) {
    .sticky-cta {
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        top: auto;
        transform: none;
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 15px 20px;
        animation: slideInBottom 0.5s ease;
    }
    
    @keyframes slideInBottom {
        from {
            bottom: -200px;
            opacity: 0;
        }
        to {
            bottom: 0;
            opacity: 1;
        }
    }
    
    .sticky-cta-content {
        flex-direction: row;
        gap: 10px;
    }
    
    .sticky-cta-title {
        display: none;
    }
    
    .sticky-cta-btn {
        flex: 1;
        padding: 0;
        height: 50px;
        font-size: 0.9rem;
        writing-mode: horizontal-tb;
        flex-direction: row;
        gap: 8px;
        border-radius: 0;
    }
    
    .sticky-cta-btn .btn-icon {
        margin: 0;
        width: auto;
    }

    .sticky-cta-form .external-link img {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .sticky-cta-btn {
        font-size: 0.85rem;
        padding: 12px 8px;
    }

    .btn-large {
        font-size: 1.1rem;
    }
}
