/* ===================================================================
   デザインシステム: Structure Coffee — Refined
   背景: #121212 / コンセプトカラー: #df8b16
   =================================================================== */

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

:root {
    /* ベースカラー (Dark) */
    --bg:               #121212;
    --bg-rgb:           18, 18, 18;
    --surface:          #161616;
    --surface-low:      #1a1a1a;
    --surface-container:#202020;
    --surface-high:     #2a2928;
    --surface-highest:  #353432;

    /* ブランドカラー */
    --primary:          #df8b16;
    --primary-dim:      #c47a10;
    --primary-glow:     rgba(223, 139, 22, 0.18);

    /* テキスト */
    --on-surface:         #edebe8;
    --on-surface-variant: #b9ae9f;

    /* アウトライン */
    --outline:         #756b5e;
    --outline-faint:   rgba(120, 108, 90, 0.15);
    --glass-border:    rgba(255, 255, 255, 0.06);

    /* フォント */
    --font-display: 'Manrope', 'Noto Sans JP', sans-serif;
    --font-body:    'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;

    /* イージング */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    /* ベースカラー (Light) */
    --bg:               #fcfaf7;
    --bg-rgb:           252, 250, 247;
    --surface:          #ffffff;
    --surface-low:      #f5f1ed;
    --surface-container:#ece7e2;
    --surface-high:     #e2dbd3;
    --surface-highest:  #d5c9bc;

    /* テキスト (Light) */
    --on-surface:         #1a1a1a;
    --on-surface-variant: #6b5d4d;

    /* アウトライン (Light) */
    --outline:         #a19181;
    --outline-faint:   rgba(161, 145, 129, 0.12);
    --glass-border:    rgba(0, 0, 0, 0.08);

    /* イラストやグラデーションが見えにくくなるのを防ぐための微調整 */
    --primary-glow:     rgba(223, 139, 22, 0.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--on-surface);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===================================================================
   ナビゲーション
   =================================================================== */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 1.1rem 2rem;
    background: rgba(var(--bg-rgb, 18, 18, 18), 0.82);
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo img { height: 28px; width: auto; }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

/* ナビリンクのホバー下線 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.35s var(--ease-out-expo);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* モバイル用ナビアクション（テーマ・言語切替） */
.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

/* PC ナビ内のテーマ切替ボタン: ナビリンクと統一感を持たせる */
.nav-links .landing-theme-btn:hover { color: var(--primary) !important; }

/* ===================================================================
   セクション共通
   =================================================================== */
section { padding: 7rem 2rem; }

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* セクションラベルの装飾ライン */
.section-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--primary-dim);
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--on-surface);
    line-height: 1.25;
    margin-bottom: 1.75rem;
    letter-spacing: -0.03em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--on-surface-variant);
    max-width: 600px;
    line-height: 1.85;
}

/* ===================================================================
   ヒーローセクション
   =================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 9rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
    /* 上部オレンジグロー */
    background: radial-gradient(ellipse 80% 60% at 50% -10%,
                rgba(223, 139, 22, 0.10) 0%, transparent 70%);
}

/* 装飾グリッドパターン */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--outline-faint) 1px, transparent 1px),
        linear-gradient(90deg, var(--outline-faint) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 0%,
                black 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.38em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) forwards 0.2s;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    color: var(--on-surface);
    line-height: 1.18;
    margin-bottom: 1.75rem;
    letter-spacing: -0.04em;
    max-width: 820px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) forwards 0.4s;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--on-surface-variant);
    max-width: 560px;
    margin-bottom: 3rem;
    line-height: 1.85;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) forwards 0.6s;
    position: relative;
    z-index: 1;
}

.hero-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.8rem;
    background: var(--primary);
    color: #1a0e00;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 0.35s var(--ease-out-expo),
                box-shadow 0.35s ease,
                background 0.25s ease;
    box-shadow: 0 8px 32px rgba(223, 139, 22, 0.30);
    opacity: 0;
    /* フェードイン + パルスグロー */
    animation: fadeUp 1s var(--ease-out-expo) forwards 0.8s,
               pulseGlow 3.5s ease-in-out infinite 2.5s;
    overflow: hidden;
}

/* シマーエフェクト */
.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
                transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
    animation: shimmer 4s ease-in-out infinite 3s;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(223, 139, 22, 0.45);
    background: #e89c2a;
}

/* ヒーロー: スクリーンショット */
.hero-screenshots {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2.5rem;
    margin-top: 5rem;
    opacity: 0;
    animation: fadeUp 1.2s var(--ease-out-expo) forwards 1.1s;
    position: relative;
    z-index: 1;
}

.screenshot-item {
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px var(--glass-border);
    transition: transform 0.45s var(--ease-out-expo),
                box-shadow 0.45s ease;
}

.screenshot-item img { width: 100%; height: auto; display: block; }

.screenshot-item.main   { width: 540px; }
.screenshot-item.mobile { width: 185px; margin-bottom: 1rem; }

.screenshot-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 36px 90px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(223, 139, 22, 0.25);
}

.screenshot-label {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.63rem;
    font-weight: 700;
    color: var(--outline);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

/* ===================================================================
   機能紹介セクション (Features)
   =================================================================== */
.features {
    background: var(--surface-low);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.feature-card {
    padding: 2.75rem 2.25rem;
    background: var(--surface-container);
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s var(--ease-out-expo),
                border-color 0.3s ease,
                box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(223, 139, 22, 0.30);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(223, 139, 22, 0.10);
    border-radius: 14px;
    margin-bottom: 1.75rem;
    font-size: 1.65rem;
    color: var(--primary);
    transition: transform 0.4s var(--ease-out-expo),
                background 0.3s ease;
}
/* Bootstrap Icon の視覚調整: わずかに大きめ・行間ゼロで中央揃え */
.feature-icon .bi {
    font-size: 1.55rem;
    line-height: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.14) rotate(6deg);
    background: rgba(223, 139, 22, 0.20);
}

.feature-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.85rem;
}

.feature-desc {
    font-size: 0.92rem;
    color: var(--on-surface-variant);
    line-height: 1.75;
}

/* ===================================================================
   ショーケースセクション (showcase / qr)
   =================================================================== */
.showcase { overflow: hidden; }

.showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 5rem;
    align-items: center;
}

.showcase-layout.reverse { direction: rtl; }
.showcase-layout.reverse > * { direction: ltr; }

.showcase-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    border: 1px solid var(--glass-border);
    transition: transform 0.5s var(--ease-out-expo),
                box-shadow 0.5s ease;
}

.showcase-image:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 42px 100px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(223, 139, 22, 0.18);
}

.showcase-image img { width: 100%; height: auto; display: block; }

.qr-section {
    background: var(--surface-low);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.qr-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.qr-highlight {
    padding: 1.75rem 2rem;
    background: rgba(223, 139, 22, 0.06);
    border-left: 3px solid var(--primary-dim);
    border-radius: 0 12px 12px 0;
    margin-top: 2rem;
}

.qr-highlight p {
    font-size: 0.97rem;
    color: var(--on-surface-variant);
    line-height: 1.85;
    font-style: italic;
}

.qr-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    border: 1px solid var(--glass-border);
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
}

.qr-image:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 42px 100px rgba(0, 0, 0, 0.65);
}

.qr-image img { width: 100%; height: auto; display: block; }

/* ===================================================================
   プロフェッショナル・スクロールカルーセル
   =================================================================== */
.pro-section {
    height: 300vh;
    padding: 0;
    background: var(--bg);
}

.pro-section .section-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3vh 2rem;
}

.pro-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
}

.pro-carousel {
    display: flex;
    transition: transform 0.12s linear;
    will-change: transform;
}

.pro-card {
    flex: 0 0 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid rgba(223, 139, 22, 0.10);
    padding: 1.5rem 2.5rem;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

.pro-card-content { padding: 0; }

.pro-card-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.8;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.pro-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.6rem;
}

.pro-card-desc {
    font-size: 0.95rem;
    color: var(--on-surface-variant);
    line-height: 1.75;
    max-width: 800px;
    margin: 0 auto;
}

.pro-card-image {
    width: 100%;
    max-width: 1000px;
    max-height: 55vh;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.pro-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* カルーセルインジケーター */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 10;
}

.indicator {
    width: 32px;
    height: 3px;
    background: rgba(223, 139, 22, 0.20);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.45s var(--ease-out-expo);
}

.indicator.active {
    background: var(--primary);
    width: 64px;
}

/* ===================================================================
   今後の展望セクション (Vision)
   =================================================================== */
.vision-section {
    background: var(--surface-low);
    border-top: 1px solid var(--glass-border);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.vision-card {
    padding: 3rem;
    background: var(--surface-container);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.vision-card:hover {
    border-color: rgba(223, 139, 22, 0.30);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.40);
}

.vision-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle at top right,
                rgba(223, 139, 22, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.vision-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.9rem;
    background: rgba(223, 139, 22, 0.10);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.20em;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(223, 139, 22, 0.18);
}

/* Beta バッジ: 開発中であることを示す微妙に異なる視覚 */
.vision-badge-beta {
    background: rgba(223, 139, 22, 0.18);
    border-color: rgba(223, 139, 22, 0.35);
    position: relative;
    padding-left: 1.5rem;
}
.vision-badge-beta::before {
    content: '';
    position: absolute;
    left: 0.7rem;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: betaDot 1.8s ease-in-out infinite;
}

/* Beta インジケーターの小さな脈動 (CTA 用 pulseGlow とは別物) */
@keyframes betaDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(223, 139, 22, 0.55); }
    50%       { box-shadow: 0 0 0 5px rgba(223, 139, 22, 0); }
}
/* reduced-motion 設定では脈動を停止（既存の媒体クエリ対応） */
@media (prefers-reduced-motion: reduce) {
    .vision-badge-beta::before { animation: none !important; }
}

.vision-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1rem;
}

.vision-desc {
    font-size: 0.97rem;
    color: var(--on-surface-variant);
    line-height: 1.85;
}

/* ===================================================================
   CTAセクション
   =================================================================== */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse,
                rgba(223, 139, 22, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--on-surface);
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--on-surface-variant);
    max-width: 520px;
    margin: 0 auto 3rem;
    line-height: 1.85;
}

.cta-users {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

.cta-user-group {
    text-align: center;
    padding: 2.25rem 2rem;
    background: var(--surface-container);
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    max-width: 300px;
    flex: 1 1 260px;
    transition: border-color 0.35s ease, transform 0.35s var(--ease-out-expo);
}

.cta-user-group:hover {
    border-color: rgba(223, 139, 22, 0.28);
    transform: translateY(-6px);
}

.cta-user-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.20em;
    margin-bottom: 0.85rem;
}

.cta-user-desc {
    font-size: 0.92rem;
    color: var(--on-surface-variant);
    line-height: 1.75;
}

/* ===================================================================
   フッター
   =================================================================== */
footer {
    padding: 3.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: var(--bg);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--outline);
    letter-spacing: 0.04em;
}

/* ===================================================================
   プレゼンスライドセクション
   =================================================================== */
.slide-section {
    padding: 4rem 2rem;
    background: var(--bg);
    display: flex;
    justify-content: center;
}

.slide-container {
    max-width: 1000px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(223, 139, 22, 0.10);
}

.slide-container img { width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
    .slide-section { padding: 2rem 1rem; }
}

/* ===================================================================
   アニメーション
   =================================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* CTAボタン シマー */
@keyframes shimmer {
    0%   { left: -75%; }
    60%, 100% { left: 130%; }
}

/* CTAボタン グロー */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(223, 139, 22, 0.28); }
    50%       { box-shadow: 0 10px 52px rgba(223, 139, 22, 0.55); }
}

/* スクロールReveal（IntersectionObserver で .visible 付与） */
.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition:
        opacity 1s var(--ease-out-expo),
        transform 1s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 遅延バリアント */
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ===================================================================
   Reduced Motion 対応 (アクセシビリティ)
   ユーザーが OS で「動きを減らす」を有効にしている場合、
   装飾的なアニメーションを停止し、即座に表示する。
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    /* ヒーローの fadeUp 系を即時表示 */
    .hero-eyebrow,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-screenshots {
        opacity: 1 !important;
        animation: none !important;
    }

    /* CTA の常時動くシマー & グローを停止 */
    .hero-cta::before { animation: none !important; display: none; }

    /* スクロール Reveal を即座に可視化 */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* hover 変形・カルーセル遷移などすべてのトランジション/アニメを最小化 */
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ===================================================================
   レスポンシブ
   =================================================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-actions { display: flex; }
    section { padding: 5rem 1.5rem; }

    .hero-screenshots {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .screenshot-item.main   { width: 92%; max-width: 400px; }
    .screenshot-item.mobile { width: 160px; margin-bottom: 0; }

    .features-grid { grid-template-columns: 1fr; }

    .showcase-layout,
    .qr-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .showcase-layout.reverse { direction: ltr; }
    .qr-image { order: -1; }

    .vision-grid { grid-template-columns: 1fr; }

    .cta-users {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    .cta-user-group { max-width: 100%; }

    .pro-section .section-sticky { padding: 2vh 1rem; }
    .pro-card { padding: 1.25rem 1rem; border-radius: 16px; }
    .pro-card-image {
        max-width: 95%;
        max-height: 38vh;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .screenshot-item.main   { width: 420px; }
    .screenshot-item.mobile { width: 150px; }
    .showcase-layout,
    .qr-layout { gap: 3.5rem; }
}

/* ===================================================================
   競技練習セクション (comp-section)
   A/B 2 ドリッパー練習機能の紹介。青 (A) / 金 (B) の対比をそのまま視覚化。
   =================================================================== */
.comp-section {
    position: relative;
    background: var(--surface-low);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}
.comp-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(96, 165, 250, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 82% 70%, rgba(223, 139, 22, 0.12) 0%, transparent 55%);
    pointer-events: none;
}
.comp-section .section-inner {
    position: relative;
    z-index: 1;
}

.comp-label-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.comp-new-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.75rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #60a5fa 0%, var(--primary) 100%);
    border-radius: 100px;
    box-shadow: 0 6px 16px rgba(223, 139, 22, 0.25);
}

/* A / B ビジュアル */
.comp-ab-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem auto 3.5rem;
    max-width: 520px;
}
.comp-ab-dripper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.4rem 2rem;
    min-width: 120px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: var(--surface-container);
    position: relative;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
}
.comp-ab-dripper:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}
.comp-ab-a {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.10);
}
.comp-ab-b {
    border-color: rgba(223, 139, 22, 0.35);
    box-shadow: inset 0 0 0 1px rgba(223, 139, 22, 0.12);
}
.comp-ab-letter {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}
.comp-ab-a .comp-ab-letter { color: #60a5fa; }
.comp-ab-b .comp-ab-letter { color: var(--primary); }
.comp-ab-drops {
    display: inline-flex;
    gap: 0.3rem;
    font-size: 0.85rem;
}
.comp-ab-a .comp-ab-drops { color: rgba(96, 165, 250, 0.75); }
.comp-ab-b .comp-ab-drops { color: rgba(223, 139, 22, 0.75); }
.comp-ab-drops i:nth-child(1) { opacity: 0.5; }
.comp-ab-drops i:nth-child(2) { opacity: 0.75; }
.comp-ab-drops i:nth-child(3) { opacity: 1;   }

.comp-ab-divider {
    width: 1px;
    height: 64px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

/* 特徴カード */
.comp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2rem;
}
.comp-card {
    padding: 2.25rem 1.75rem;
    background: var(--surface-container);
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}
.comp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(223, 139, 22, 0.28);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
}
.comp-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(223, 139, 22, 0.18));
    color: var(--primary);
    font-size: 1.35rem;
    border: 1px solid rgba(223, 139, 22, 0.18);
}
.comp-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.65rem;
    line-height: 1.4;
}
.comp-card-desc {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    line-height: 1.75;
    margin: 0;
}

.comp-footnote {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    color: var(--outline);
    text-align: center;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .comp-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .comp-ab-visual { gap: 1.25rem; margin: 2rem auto 2.5rem; }
    .comp-ab-dripper { padding: 1.1rem 1.5rem; min-width: 96px; }
    .comp-ab-letter { font-size: 2.1rem; }
    .comp-ab-divider { height: 52px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .comp-grid { grid-template-columns: repeat(2, 1fr); }
}
