/* YoseMovie Enhanced Homepage Styles */

/**
 * YoseMovie Design System - Enhanced Homepage
 * 
 * Color Palette: #ffcc02 (primary yellow), #1d1d1f (black), #2d3436 (title), #636e72 (subtitle)
 * Border Radius: 20px (cards), 25px (buttons), 16px (small elements)
 * Desktop & Mobile Responsive Design
 * Enhanced with SVG animations and parallax effects
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
    background: #ffffff;
    color: #1d1d1f;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Parallax Background */
.parallax-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    will-change: transform;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    pointer-events: none;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.5) 60%,
        rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    will-change: opacity;
}

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

/* Mobile Break */
.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}

/* Header */
.header {
    background: #ffcc02;
    border-bottom: 1px solid #e6b800;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 204, 2, 0.95);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.header.scrolled {
    background: rgba(255, 204, 2, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d1d1f;
    text-decoration: none;
}

.logo-svg {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: #636e72;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1d1d1f;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffcc02;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-login {
    padding: 10px 20px;
    background: #ffffff;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
    background: #f8f9fa;
    border-color: #1d1d1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-create {
    padding: 12px 24px;
    background: #1d1d1f;
    color: #ffcc02;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(29, 29, 31, 0.2);
}

.btn-create:hover {
    background: #2d2d2f;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29, 29, 31, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 2;
    padding: 0;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.hero-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: none;
    border: none;
    color: #ffcc02;
    padding: 0 0 6px 0;
    border-radius: 0;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 32px;
    border-bottom: 2px solid #ffcc02;
    backdrop-filter: none;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: none;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-subtitle {
    font-size: 19px;
    color: #ffffff;
    margin-bottom: 48px;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.btn-hero-primary {
    padding: 22px 40px;
    background: #ffcc02;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 204, 2, 0.3);
}

.btn-hero-primary:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 2, 0.4);
}

.btn-hero-secondary {
    padding: 18px 32px;
    background: #1d1d1f;
    color: #ffcc02;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    font-size: 16px;
    border: 2px solid #1d1d1f;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(29, 29, 31, 0.2);
}

.btn-hero-secondary:hover {
    background: #2d2d2f;
    border-color: #2d2d2f;
    color: #ffcc02;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 29, 31, 0.3);
}

.hero-video {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/9;
    background: #f8f9fa;
    border-radius: 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.play-button {
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.play-button:hover .play-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* こんなことありませんか？ セクション (features「ShareVieの特徴」と同じグレー) */
.problem-section {
    padding: 80px 0 60px;
    background: rgba(248, 249, 250, 0.65);
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}
.problem-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.problem-title {
    font-size: 32px;
    font-weight: 800;
    color: #1d1d1f;
    margin: 0 0 40px;
    letter-spacing: -0.01em;
}
/* features セクションのカードと同サイズ */
.problem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}
.problem-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
@media (hover: hover) {
    .problem-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border-color: #ffcc02;
        background: rgba(255, 255, 255, 1);
    }
}
.problem-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
}
.problem-image {
    width: 240px;
    height: 240px;
    max-width: 100%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.problem-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.problem-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 4px;
}
.problem-card-text {
    color: #636e72;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.problem-question {
    font-size: 32px;
    font-weight: 800;
    color: #1d1d1f;
    margin: 56px 0 0;
    letter-spacing: 0.02em;
}
.problem-subquestion {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 12px 0 0;
    line-height: 1.7;
}
@media (max-width: 768px) {
    .problem-section { padding: 56px 0 40px; }
    .problem-title { font-size: 24px; margin-bottom: 28px; }
    .problem-cards { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
    .problem-card { padding: 28px 20px; }
    .problem-icon { font-size: 42px; }
    .problem-card-title { font-size: 22px; margin-bottom: 8px; }
    .problem-card-text { font-size: 17px; line-height: 1.7; }
    .problem-question { font-size: 24px; margin-top: 40px; }
    .problem-subquestion { font-size: 16px; margin-top: 10px; }
}

/* ShareVie とは？セクション末尾の締めコピー */
.sample-closing {
    text-align: center;
    margin: 80px auto 0;
    font-size: 32px;
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1.5;
    letter-spacing: -0.01em;
}
.sample-closing-line {
    display: block;
}
.sample-closing-line--accent {
    /* 後半行に手書き風マーカー */
    display: inline-block;
    position: relative;
    padding: 0 0.3em 0.05em;
    z-index: 0;
    margin-top: 4px;
}
.sample-closing-line--accent::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05em;
    height: 45%;
    z-index: -1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'><path d='M 4 14 C 30 6, 70 11, 100 9 S 170 12, 196 16 L 197 30 C 170 36, 130 31, 100 33 S 30 36, 3 32 Z' fill='%23ffcc02'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: rotate(-0.5deg);
}
@media (max-width: 768px) {
    .sample-closing {
        font-size: 22px;
        margin-top: 56px;
        line-height: 1.6;
    }
}

/* Sample Video Section */
.sample-video-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sample-video-container {
    max-width: 800px;
    margin: 0 auto;
}

.sample-video-section .hero-video {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    margin: 0 auto 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.sample-button-container {
    display: flex;
    justify-content: center;
}

.sample-button-container .btn-hero-secondary {
    background: #ffcc02;
    color: #1d1d1f;
    border: 2px solid #ffcc02;
    font-weight: 600;
    padding: 18px 32px;
}

.sample-button-container .btn-hero-secondary:hover {
    background: #e6b800;
    border-color: #e6b800;
    color: #1d1d1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 2, 0.4);
}

.sample-intro {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
    padding: 0 16px;
}

.sample-intro-title {
    font-size: 32px;
    font-weight: 800;
    color: #1d1d1f;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
    /* 手描きマーカー風 (SVGで上下に微妙なギザつきと端のかすれを表現) */
    display: inline-block;
    position: relative;
    padding: 0 0.35em 0.08em;
    z-index: 0;
}
.sample-intro-title::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05em;
    height: 45%;
    z-index: -1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'><path d='M 4 14 C 30 6, 70 11, 100 9 S 170 12, 196 16 L 197 30 C 170 36, 130 31, 100 33 S 30 36, 3 32 Z' fill='%23ffcc02'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: rotate(-0.6deg);
}
.sample-intro-title .title-en {
    /* ShareVie の英字を日本語タイトルとサイズ感を揃える (少し大きめに調整) */
    font-size: 1.05em;
    letter-spacing: 0.01em;
}
.sample-intro-title .title-yomi {
    font-size: 0.55em;
    font-weight: 700;
    color: inherit;
    margin: 0 0.08em;
    vertical-align: 0.18em;
    letter-spacing: 0.02em;
}

.sample-intro-lead {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.7;
    margin: 0 0 20px;
}

.sample-intro-body {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
}

/* 説明ムービー（YouTube 16:9 レスポンシブ埋め込み） */
.intro-video {
    position: relative;
    width: 100%;
    /* 下の who-section と同じコンテナ全幅に合わせる（max-width 指定なし） */
    height: 0;
    padding-bottom: 56.25%;
    margin: 28px auto 96px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    background: #000;
}
.intro-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 640px) {
    .intro-video { border-radius: 14px; margin-top: 20px; }
}

.step-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 48px;
}
.step-flow-text {
    font-size: 34px;
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: rgba(255,255,255,0.85);
    padding: 8px 24px;
    border-radius: 50px;
    min-width: 320px;
    text-align: center;
}
.step-flow-arrow {
    font-size: 22px;
    color: #ffcc02;
}
@media (max-width: 640px) {
    .step-flow { flex-direction: column; gap: 8px; }
    .step-flow-text { font-size: 26px; padding: 8px 24px; min-width: 280px; text-align: center; }
    .step-flow-arrow { font-size: 22px; transform: rotate(90deg); }
    .sample-intro-lead br { display: none; }
}

@media (max-width: 640px) {
    .sample-intro { margin-bottom: 32px; }
    .sample-intro-title { font-size: 24px; margin-bottom: 18px; }
    .sample-intro-lead { font-size: 16px; }
    .sample-intro-body { font-size: 14px; }
}

/* Who-section (幹事 / 参加者 の役割別ステップ) */
.who-section {
    margin: 0 auto 48px;
    padding: 40px 32px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.who-section:last-child {
    margin-bottom: 0;
}

.who-title {
    display: inline-block;
    padding: 14px 36px;
    background: #ffcc02;
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 700;
    border-radius: 999px;
    margin: 0 0 24px;
    box-shadow: 0 4px 12px rgba(255, 204, 2, 0.3);
}

.who-subtitle {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.8;
    margin: 0 auto 32px;
    max-width: 760px;
}

.who-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.who-steps img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 382 / 445;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .who-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .who-section {
        padding: 28px 16px;
        margin-bottom: 32px;
        border-radius: 16px;
    }
    .who-title { font-size: 18px; padding: 10px 24px; }
    .who-subtitle { font-size: 13px; margin-bottom: 24px; }
}

/* Feature and Step Icons */
.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-icon {
    font-size: 40px;
    margin: 20px 0 16px;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

.scene-image {
    flex-shrink: 0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin: 0 auto;
    aspect-ratio: 3/2;
}

.scene-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


/* Section Styles */
.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 16px;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 60px;
}

/* Features Section */
/* プレミアム特典内の「サンプル」リンク（ピル型ボタン） */
.sample-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 7px 14px;
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1;
    color: #1d1d1f;
    background: #ffcc02;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.sample-link::before {
    content: "▶";
    font-size: 0.72em;
    color: #d32f2f;
}
.sample-link:hover {
    background: #ffd84d;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}
/* 大きめのサンプルリンク(料金の横などに置く用) */
.sample-link-lg {
    margin-left: 14px;
    padding: 11px 20px;
    font-size: 15px;
    gap: 7px;
}
.sample-link-lg::before { font-size: 13px; }
/* モバイルではサンプルボタンを少し小さく(¥500の横に収まりよく) */
@media (max-width: 768px) {
    .sample-link-lg {
        margin-left: 10px;
        padding: 8px 14px;
        font-size: 13px;
        gap: 5px;
    }
    .sample-link-lg::before { font-size: 11px; }
}
/* プレミアム価格行: ¥500〜 とサンプルボタンを高さ中央で揃える(無料プランには影響させない) */
.premium-plan .plan-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* どんなムービーができる？セクション */
.movie-types {
    padding: 80px 0;
    background: rgba(248, 249, 250, 0.65);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.movie-types .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.movie-types-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 44px;
}
.movie-type-card {
    display: flex;
    flex-direction: column;
}
.movie-type-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    background: #000;
}
.movie-type-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* YouTubeフェイサード: クリックまでiframeを読み込まない。ポスターは自前の高解像度画像 */
.yt-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    display: block;
}
.yt-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.yt-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    background: rgba(33, 33, 33, 0.8);
    border-radius: 14px;
    transition: background 0.2s;
}
.yt-facade:hover .yt-facade-play,
.yt-facade:focus-visible .yt-facade-play {
    background: #f00;
}
.yt-facade-play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}
.movie-type-title {
    margin: 20px 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    text-align: center;
}
.movie-type-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    text-align: center;
}
@media (max-width: 768px) {
    .movie-types { padding: 56px 0; }
    .movie-types-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 32px; }
    .movie-type-video { border-radius: 14px; }
    .movie-type-title { font-size: 20px; }
}

.features {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.scenes .features-container {
    max-width: none;
    padding: 0;
    width: 100%;
}

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

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

@media (hover: hover) {
    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border-color: #ffcc02;
        background: rgba(255, 255, 255, 1);
    }
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 4px;
    margin-top: 0;
}

.feature-description {
    color: #636e72;
    line-height: 1.6;
    flex: 1;
    display: flex;
    align-items: center;
}

/* How To Section */
.how-to {
    padding: 80px 0;
    background: rgba(248, 249, 250, 0.65);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.step-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

@media (hover: hover) {
    .step-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        background: rgba(255, 255, 255, 1);
    }
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: #ffcc02;
    color: #1d1d1f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
}

.step-description {
    color: #636e72;
    font-size: 14px;
    line-height: 1.5;
}

/* Scenes Section */
.scenes {
    padding: 80px 0;
    background: rgba(248, 249, 250, 0.65);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
}

/* Main Message Styles */
.scenes-main-message {
    background: rgba(255, 204, 2, 0.1);
    border: 2px solid rgba(255, 204, 2, 0.3);
    border-radius: 20px;
    padding: 32px;
    margin: 40px auto 60px;
    max-width: 900px;
    text-align: center;
}

.main-message-title {
    color: #2d3436;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.main-message-text {
    color: #636e72;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.main-message-text strong {
    color: #1d1d1f;
    font-weight: 700;
}

.scenes-zigzag {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.scenes-carousel-track {
    display: flex;
    gap: 24px;
    width: fit-content;
    animation: slideRight 40s linear infinite;
}

/* Desktop hover pause (always enabled for mouse devices) */
.scenes-carousel-track:hover {
    animation-play-state: paused;
}

/* Touch device hover handling is done via JavaScript */

/* Optimization for when carousel is not visible */
.scenes-carousel-track.carousel-paused {
    animation-play-state: paused;
    will-change: auto;
    transform: translateZ(0); /* Maintain hardware acceleration but reduce overhead */
}

.scene-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 29px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: none;
    text-align: center;
    width: 384px;
    height: 420px;
    flex-shrink: 0;
}

.scene-card:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.scene-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
}

.scene-description {
    font-size: 16px;
    color: #636e72;
    line-height: 1.4;
}

/* Templates Section */
.templates {
    padding: 80px 0 80px 0;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
    gap: 20px;
    justify-content: center;
}

.template-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: #ffcc02;
    background: rgba(255, 255, 255, 1);
}

.template-preview {
    aspect-ratio: 16/9;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.template-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.template-name {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
}

.template-description {
    font-size: 12px;
    color: #636e72;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Templates More Button */
.templates-more-container {
    text-align: center;
    margin-top: 60px;
}

.btn-templates-more {
    display: inline-block;
    padding: 16px 40px;
    background: #1d1d1f;
    color: #ffcc02;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(29, 29, 31, 0.2);
    font-size: 16px;
}

.btn-templates-more:hover {
    background: #2d2d2f;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29, 29, 31, 0.3);
}

@media (max-width: 768px) {
    .templates-more-container {
        margin-top: 40px;
    }
}

/* Pricing Section */
.pricing {
    padding: 60px 0;
    background: rgba(248, 249, 250, 0.65);
    position: relative;
    z-index: 1;
}

.pricing-cards-container {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.free-plan {
    border-color: #66bb6a;
}

.premium-plan {
    /* プレミアム=紫 (movie-viewer/download-screen/mypage と統一) */
    border-color: #6c5ce7;
    background: linear-gradient(135deg, #f8f7ff 0%, #fff 100%);
}

.plan-info {
    display: flex;
    flex-direction: column;
}

.plan-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
}

.plan-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    background: #66bb6a;
    color: white;
}

.plan-badge-premium {
    background: #6c5ce7;
    color: #fff;
}

.plan-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 -10px 0;
    color: #1d1d1f;
}

.plan-price {
    margin-bottom: 0;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #1d1d1f;
}

.price-period {
    font-size: 16px;
    color: #636e72;
    margin-left: 8px;
}

.plan-features {
    margin-bottom: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    font-size: 14px;
    padding: 2px 0;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-check {
    color: #66bb6a;
    font-weight: 700;
    font-size: 16px;
}

.feature-check.premium {
    color: #6c5ce7;
}

.feature-cross {
    color: #e74c3c;
    font-weight: 700;
    font-size: 16px;
}

.feature-disabled {
    opacity: 0.6;
}

.feature-disabled span:not(.feature-cross) {
    color: #999;
}


.plan-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 0;
}

.pricing-notes {
    max-width: 1160px;
    margin: 24px auto 140px;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.pricing-notes h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1d1d1f;
    text-align: center;
}

.pricing-formula {
    background: #f8f7ff;
    border: 2px solid #6c5ce7;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.formula-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 18px;
    color: #1d1d1f;
}

.formula-base,
.formula-extra {
    font-weight: 500;
}

.formula-base strong {
    font-weight: 700;
    font-size: 20px;
}

.formula-extra strong {
    font-weight: 700;
    font-size: 20px;
}

.formula-plus {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
}

.pricing-examples-new {
    margin-bottom: 24px;
}

.pricing-examples-new h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1d1d1f;
    text-align: center;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.example-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.example-card:hover {
    border-color: #ffcc02;
    box-shadow: 0 2px 8px rgba(255, 204, 2, 0.15);
}

.example-people {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 14px;
    margin-bottom: 8px;
}

.example-calc {
    color: #636e72;
    font-size: 13px;
    line-height: 1.4;
}

.example-calc strong {
    color: #1d1d1f;
    font-size: 14px;
}

.pricing-disclaimer {
    text-align: center;
    margin-top: 16px;
}

.pricing-disclaimer p {
    margin: 0;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.pricing-notes strong {
    color: #1d1d1f;
}

/* Mobile Menu - スタイルはheader-component.cssで管理 */

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Ensure mobile menu button is always visible */
.mobile-menu-btn {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #1d1d1f !important;
    cursor: pointer !important;
    padding: 8px !important;
    display: block !important;
    transition: background-color 0.3s ease !important;
    border-radius: 4px !important;
}

.mobile-menu-btn:hover {
    background: rgba(29, 29, 31, 0.1) !important;
}

/* FAQ Section */
.faq {
    padding: 80px 0 140px 0;
    background: rgba(255, 255, 255, 1);
    position: relative;
    z-index: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    overflow: hidden;
}

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

.faq-item {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 16px;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #ffcc02;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: #ffcc02;
    color: #1d1d1f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.faq-question h3 {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
}

.faq-toggle {
    font-size: 24px;
    color: #636e72;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 48px 0;
    color: #636e72;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    /* 回答の長さで見切れないよう十分大きく(モバイルの長文+箇条書きで200pxでは不足していた) */
    max-height: 2000px;
    padding: 0 48px 20px;
}


/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    text-align: center;
    position: relative;
    z-index: 2;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    overflow: hidden;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 48px;
}

.cta-subtitle {
    font-size: 16px;
    color: #b2bec3;
    margin-bottom: 40px;
}

.cta-button {
    padding: 18px 32px;
    background: #ffcc02;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 204, 2, 0.3);
}

.cta-button:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 2, 0.4);
}

/* Footer */
.footer {
    background: #1d1d1f;
    color: #ffffff;
    padding: 60px 0 20px;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: #ffcc02;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section p {
    color: #b2bec3;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffcc02;
}

.footer-bottom {
    border-top: 1px solid #2d3436;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #636e72;
    font-size: 14px;
    margin: 0;
}

/* Mobile Navigation - スタイルはheader-component.cssで管理 */

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-buttons {
        gap: 8px;
        flex-shrink: 0;
    }
    
    .btn-login {
        display: none;
    }
    
    .logo-svg {
        height: 32px;
    }
    
    .hero {
        min-height: 100vh;
        padding: 0;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 24px;
        margin-top: 50px;
    }
    
    .features .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px 16px;
        min-height: 200px;
    }
    
    .feature-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .feature-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .feature-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .step-card {
        padding: 20px 12px;
    }
    
    .step-icon {
        font-size: 28px;
        margin: 12px 0 8px;
    }
    
    .step-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .step-description {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: -12px;
    }
    
    .scenes-zigzag {
        overflow: hidden;
    }
    
    .scenes-carousel-track {
        animation: slideRight 40s linear infinite;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .scene-card {
        min-width: 312px;
        width: 312px;
        height: 312px;
        padding: 23px;
        gap: 10px;
    }
    
    .scene-image {
        height: 169px;
    }
    
    .scene-content {
        margin-top: auto;
        padding-top: 8px;
    }
    
    .scene-title {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .scene-description {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .btn-templates-more {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    .template-filter-tabs {
        justify-content: flex-start;
    }
    
    .pricing-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 24px;
    }
    
    .plan-features-grid {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    
    .plan-title {
        font-size: 20px;
    }
    
    .price-amount {
        font-size: 40px;
    }
    
    .pricing-notes {
        padding: 20px;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .formula-main {
        font-size: 16px;
        gap: 12px;
    }
    
    .formula-base strong,
    .formula-extra strong {
        font-size: 18px;
    }
    
    .formula-plus {
        font-size: 20px;
    }
    
    .cta {
        border-radius: 40px 40px 0 0;
        margin-top: -40px;
    }
    
    .footer {
        margin-top: 0;
    }
    
    .faq {
        border-radius: 40px 40px 0 0;
        margin-top: -40px;
        padding: 130px 0 100px 0;
    }
    
    
    .templates {
        padding: 60px 0 160px 0;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Remove all hover effects on mobile */
    .nav-link:hover {
        color: inherit;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    .btn-login:hover {
        background: #ffffff;
        color: #1d1d1f;
        border-color: #e9ecef;
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .btn-create:hover {
        background: #1d1d1f;
        transform: none;
        box-shadow: 0 4px 16px rgba(29, 29, 31, 0.2);
    }
    
    .btn-hero-primary {
        padding: 18px 32px;
        font-size: 16px;
    }
    
    .btn-hero-primary:hover {
        background: #1d1d1f;
        transform: none;
        box-shadow: 0 4px 16px rgba(29, 29, 31, 0.2);
    }
    
    .btn-hero-secondary:hover {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(255, 255, 255, 0.8);
        color: #1d1d1f;
        transform: none;
    }
    
    .sample-button-container .btn-hero-secondary:hover {
        background: #ffcc02;
        border-color: #ffcc02;
        color: #1d1d1f;
        transform: none;
        box-shadow: none;
    }
    
    .feature-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #e9ecef;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .feature-card:hover .feature-icon {
        transform: none;
    }
    
    .step-card:hover {
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .step-card:hover .step-icon {
        transform: none;
    }
    
    .scene-card:hover {
        background: #f8f9fa;
        box-shadow: none;
    }
    
    .template-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.8);
        background: rgba(255, 255, 255, 0.9);
    }
    
    .template-filter-tab:hover {
        background: rgba(255, 255, 255, 0.9);
        border-color: #e9ecef;
        color: #636e72;
    }
    
    .faq-question:hover {
        color: inherit;
    }
    
    .cta-button:hover {
        background: #ffcc02;
        transform: none;
        box-shadow: 0 4px 16px rgba(255, 204, 2, 0.3);
    }
    
    .footer-links a:hover {
        color: #b2bec3;
    }
    
    .play-button:hover .play-svg {
        transform: none;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    }
    
    .logo:hover .logo-svg {
        transform: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header-container {
        padding: 10px 12px;
    }
    
    .logo-svg {
        height: 28px;
    }
    
    .hero-container {
        padding: 60px 16px;
    }
    
    .features-container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .btn-templates-more {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .pricing-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .plan-features-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    
    .plan-title {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 32px;
    }
    
    .pricing-notes {
        padding: 16px;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .example-card {
        padding: 12px;
    }
    
    .formula-main {
        font-size: 14px;
        gap: 8px;
        flex-direction: column;
    }
    
    .formula-base strong,
    .formula-extra strong {
        font-size: 16px;
    }
    
    .formula-plus {
        font-size: 18px;
    }
    
    .pricing-formula {
        padding: 20px;
    }
    
    .pricing-notes h4 {
        font-size: 16px;
    }
    
    .cta {
        border-radius: 30px 30px 0 0;
        margin-top: -30px;
    }
    
    .cta-title-break::after {
        content: "";
        display: block;
    }
    
    .footer {
        margin-top: 0;
    }
    
    .faq {
        border-radius: 30px 30px 0 0;
        margin-top: -30px;
        padding: 20px 0 80px 0;
    }
    
    
    .templates {
        padding: 60px 0 140px 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Background Animation */
.hero-background {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Parallax Animation */
@media (prefers-reduced-motion: no-preference) {
    .parallax-background {
        animation: parallaxMove 20s linear infinite;
    }
}

@keyframes parallaxMove {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top-color: #ffcc02;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Carousel Animation */
@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-408px * 7));
    }
}

/* Mobile carousel animation */
@media (max-width: 768px) {
    @keyframes slideRight {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-336px * 7));
        }
    }
}

/* Template Filter Tabs */
.template-filter-tabs-container {
    position: relative;
    margin-bottom: 32px;
    padding: 16px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.template-filter-tabs-container::-webkit-scrollbar {
    display: none;
}

.template-filter-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    min-width: max-content;
}

.template-filter-tabs::-webkit-scrollbar {
    display: none;
}

.template-filter-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #636e72;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.template-filter-tab:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #ffcc02;
    color: #2d3436;
}

/* カテゴリドロップダウン(トップ): pages/create/index.html の .category-dropdown と同一デザイン */
.home-category-dropdown-wrap {
    text-align: center;
    margin-bottom: 32px;
    padding: 16px 20px;
}
.home-category-dropdown-wrap .category-dropdown {
    padding: 10px 20px;
    border: 2px solid #ffcc02;
    border-radius: 25px;
    background: #ffcc02;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    min-width: 200px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%231d1d1f" d="M6 8L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    box-sizing: border-box;
    height: 42px;
    line-height: 1;
}
.home-category-dropdown-wrap .category-dropdown:hover {
    background: #e6b800;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%231d1d1f" d="M6 8L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
}
.home-category-dropdown-wrap .category-dropdown:focus {
    border-color: #ffcc02;
    box-shadow: 0 0 0 4px rgba(255, 204, 2, 0.1);
}

.template-filter-tab.active {
    background: #1d1d1f;
    color: #ffcc02;
    border-color: #1d1d1f;
}

/* Template Grid Animation */
.template-card {
    transition: all 0.3s ease;
}

.template-card.hidden {
    display: none;
}