@charset "UTF-8";

/* =========================================
   既存のCSS (index.htmlから移動)
   ========================================= */
:root {
    --bg-color: #f0f2f5;
    --text-color: #333;
    /* ブランドカラー: オレンジ〜イエロー */
    --accent-gradient: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%);
    --accent-color-primary: #ff4e50;
    --accent-color-secondary: #f9d423;
    --card-bg: #ffffff;
    --btn-bg: #2b2b2b;
    --btn-border: #dba512;
    --shadow-color: rgba(255, 78, 80, 0.3);
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- レイアウト --- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .logo img {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        object-fit: contain;
    }

    .logo span {
        background: var(--accent-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.nav-links a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

    .nav-links a:hover {
        color: var(--accent-color-primary);
    }

/* --- ヒーローセクション --- */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fffbf0 100%);
}

.app-icon-main {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin: 0 auto 30px;
    display: block;
    box-shadow: 0 10px 30px var(--shadow-color);
    object-fit: contain;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--btn-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #333;
}

.tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.btn-download {
    display: inline-block;
    background-color: var(--btn-bg);
    color: white;
    border: 2px solid var(--btn-border);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

    .btn-download:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

/* --- 特徴セクション (横スクロール対応) --- */
.features {
    padding: 60px 0;
    overflow: hidden; /* コンテナ外へのはみ出しを隠す */
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
}

    .section-title::after {
        content: '';
        display: block;
        width: 50px;
        height: 3px;
        background: var(--accent-gradient);
        margin: 10px auto 0;
        border-radius: 2px;
    }

/* スクロールコンテナ */
.scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 5px 40px 5px; /* 上右下左 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

    .scroll-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

/* カードデザイン */
.scroll-card {
    flex: 0 0 320px; /* PCでの幅固定 */
    scroll-snap-align: center;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 0 0 1px rgba(0,0,0,0.05); /* 繊細なボーダー */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .scroll-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

/* カード背景の薄いアイコン装飾 */
.bg-icon-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    opacity: 0.1;
    padding: 16px;
    pointer-events: none;
    color: var(--accent-color-primary);
}

.card-header {
    position: relative;
    z-index: 10;
}

.card-icon-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.25rem;
    color: #333;
}

.icon-main {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: var(--accent-color-primary);
}

.card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

/* ナビゲーションボタン */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .nav-btn:hover:not(:disabled) {
        background: #fffbf0;
        color: var(--accent-color-primary);
        border-color: var(--accent-color-secondary);
    }

    .nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

/* スマホ対応 */
@media (max-width: 600px) {
    .scroll-card {
        flex: 0 0 85vw; /* スマホでは画面幅の85% */
    }

    .hero {
        padding: 40px 0;
    }

    .app-icon-main {
        width: 80px;
        height: 80px;
    }

    .nav-buttons {
        display: none;
    }
    /* スマホはスワイプで操作するのでボタン非表示 */
}

/* --- スペック・環境 --- */
.specs {
    background: white;
    padding: 60px 0;
}

.specs-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
}

    .specs-table th, .specs-table td {
        padding: 15px;
        border-bottom: 1px solid #eee;
        text-align: left;
    }

    .specs-table th {
        width: 30%;
        color: #888;
        font-weight: normal;
    }

    .specs-table td {
        font-weight: bold;
    }

/* --- フッター --- */
footer {
    background: #2b2b2b;
    color: #888;
    padding: 40px 0;
    text-align: center;
    font-size: 0.8rem;
}

    footer a {
        color: #dba512;
        text-decoration: none;
    }

/* --- スピードデモセクション --- */
.speed-demo {
    padding: 40px 0 80px;
    background: #f8f9fa;
}

.demo-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.demo-card {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.sorota-tool {
    border: 2px solid var(--accent-color-primary);
    background: #fffdf9;
}

.demo-label {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.sorota-tool .demo-label {
    color: var(--accent-color-primary);
}

.icon-mini {
    width: 20px;
    height: 20px;
}

.demo-desc {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.demo-status {
    font-size: 0.8rem;
    text-align: right;
    color: #999;
    margin-top: 10px;
}

    .demo-status.highlight {
        color: var(--accent-color-primary);
        font-weight: bold;
    }

/* アニメーション：Web版 (1本ずつ) */
.progress-container {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-seq {
    height: 100%;
    background: #ccc;
    width: 0%;
    animation: web-seq 6s forwards infinite;
}

@keyframes web-seq {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* アニメーション：SOROTA (6本並列) */
.multi-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-par {
    height: 6px;
    background: var(--accent-gradient);
    border-radius: 3px;
    width: 0%;
    animation: sorota-par 6s forwards ease-out infinite;
}

.p1 {
    animation-delay: 0.1s;
}

.p2 {
    animation-delay: 0.3s;
}

.p3 {
    animation-delay: 0.0s;
}

.p4 {
    animation-delay: 0.4s;
}

.p5 {
    animation-delay: 0.2s;
}

.p6 {
    animation-delay: 0.5s;
}

@keyframes sorota-par {
    0% {
        width: 0;
        opacity: 0.3;
    }

    70% {
        width: 100%;
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0;
    }
}

.demo-footer-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .demo-wrapper {
        flex-direction: column;
    }
}

/* --- 自動保存インジケーターのスタイル（出っ放し版） --- */
.auto-save-indicator {
    margin-top: 15px;
    background: rgba(255, 78, 80, 0.05);
    border: 1px dashed var(--accent-color-primary);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* 修正：1回だけ再生し、最後(100%)の状態を維持(forwards) */
    opacity: 0; /* 最初は隠しておく */
    animation: save-slide-up 0.8s ease-out 1.0s forwards;
}

/* 修正：チェックマークも1回だけ「ポンッ」と出して固定 */
.save-check {
    background: #4caf50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    transform: scale(0); /* 最初は小さく */
    animation: check-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.6s forwards;
}

/* 浮き上がって表示されるアニメーション */
@keyframes save-slide-up {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* チェックマークが飛び出すアニメーション */
@keyframes check-pop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* バッジのパルス(点滅)も、目障りなら削除するか1回だけにします */
.auto-save-indicator {
    /* 必要なら追加されていた badge-pulse アニメーションは削除してください */
}

.setup-visual-wrapper {
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bubble-sorota-setup {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: #f8f9fb;
    /* 実機通りのピンクの点線 */
    border: 2px dashed #ffb2b2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 内側の細い円 */
.bubble-inner-circle {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid #ffcccc;
    z-index: 1;
}

.bubble-content {
    text-align: center;
    z-index: 2;
    width: 80%;
}

/* ダウンロードアイコンの再現 */
.download-icon-wrapper {
    font-size: 3.5rem;
    margin-bottom: 10px;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(255, 78, 80, 0.2));
    animation: bounce 0.8s infinite alternate cubic-bezier(0.5, 0.05, 1, 0.5);
}

.setup-text {
    font-size: 0.95rem;
    color: #ff4e50;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
}

.setup-percent {
    font-size: 1.2rem;
    color: #ff4e50;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

/* 波紋（実機風：ピンク） */
.ripple-setup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 78, 80, 0.4);
    opacity: 0;
    z-index: 0;
    animation: ripple-wave 2s infinite linear;
}

@keyframes bounce {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes ripple-wave {
    0% {
        width: 140px;
        height: 140px;
        opacity: 0.8;
    }

    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* =========================================
   ▼▼▼ 新規追加：スマート解析セクション ▼▼▼
   ========================================= */
.smart-logic {
    padding: 80px 0;
    background: linear-gradient(to bottom, #fff, #fffbf0);
    position: relative;
}

.section-desc {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
}

    .section-desc strong {
        color: #333;
        background: linear-gradient(transparent 70%, #fff3cd 70%);
    }

.logic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.logic-card {
    background: white;
    padding: 35px 30px; /* パディングを少し調整 */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .logic-card:hover {
        transform: translateY(-5px);
    }

    /* 上部のカラーバー装飾 */
    .logic-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
    }

    .logic-card.boost::before {
        background: linear-gradient(90deg, #ff4e50, #f9d423);
    }

    .logic-card.gentle::before {
        background: linear-gradient(90deg, #4facfe, #00f2fe);
    }

    .logic-card.protect::before {
        background: linear-gradient(90deg, #43e97b, #38f9d7);
    }

.logic-icon {
    font-size: 3.5rem; /* アイコンを少し大きく */
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.logic-card h3 {
    margin: 0 0 15px;
    font-size: 1.3rem;
    color: #333;
    font-weight: bold;
}

.logic-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    text-align: left;
    width: 100%;
}

/* スマホで見やすいように調整 */
@media (max-width: 600px) {
    .logic-desc {
        text-align: left; /* お好みでcenterに変更可 */
    }
}

.logic-summary {
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.check-mark {
    color: #4caf50;
    font-size: 1.4rem;
    font-weight: bold;
}

.tech-details {
    background: #fff;
    padding: 60px 0;
    border-top: 1px solid #eee;
}