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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, sans-serif;
    background: 
        radial-gradient(ellipse at center, rgba(139, 195, 74, 0.8) 0%, rgba(104, 159, 56, 0.9) 100%),
        repeating-linear-gradient(
            45deg,
            #8bc34a 0px,
            #8bc34a 2px,
            #7cb342 2px,
            #7cb342 4px,
            #8bc34a 4px,
            #8bc34a 20px,
            #689f38 20px,
            #689f38 22px
        );
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, 
            transparent, 
            transparent 50px, 
            rgba(255,255,255,0.05) 50px, 
            rgba(255,255,255,0.05) 100px),
        repeating-linear-gradient(0deg, 
            transparent, 
            transparent 50px, 
            rgba(255,255,255,0.02) 50px, 
            rgba(255,255,255,0.02) 100px);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(20px) rotate(-2deg); }
}

.hero-section h1 {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

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

.hero-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    z-index: 1;
}

/* 機能概要セクション */
.features-overview {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.feature-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.1);
    min-width: 160px;
}

.feature-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-text strong {
    font-size: 0.9rem;
    color: #2e7d32;
    font-weight: 600;
}

.feature-text span {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
}

/* デモハイライトセクション */
.demo-highlight {
    background: rgba(76, 175, 80, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #4caf50;
    position: relative;
    z-index: 1;
}

.demo-description {
    color: #333;
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.conversion-examples-mini {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.example-mini {
    font-size: 0.9rem;
    color: #555;
    padding: 6px 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-btn.primary {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.hero-btn.secondary {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.hero-btn.download {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-highlight {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.feature-highlight::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.feature-highlight:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.feature-highlight:hover::after {
    width: 300px;
    height: 300px;
}

.feature-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.feature-text {
    font-weight: bold;
    font-size: 0.95rem;
}

/* azooKeyショーケースセクション */
.azookey-showcase {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* コンパクトな主要機能セクション */
.core-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.core-feature {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.core-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon-large {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.core-feature h3 {
    color: #2e7d32;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.core-feature p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.mini-example {
    font-size: 0.8rem;
    line-height: 1.3;
}

.mini-example .input {
    background: #f0f9ff;
    padding: 4px 8px;
    border-radius: 6px;
    color: #1565c0;
    font-weight: 500;
}

.mini-example .old {
    color: #d32f2f;
    font-size: 0.75rem;
}

.mini-example .new {
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 500;
}

/* コンパクトなフロー */
.experience-flow-compact {
    text-align: center;
    margin-top: 20px;
}

.experience-flow-compact h3 {
    color: #2e7d32;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.flow-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.flow-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.flow-btn.primary {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
}

.flow-btn.secondary {
    background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
    color: white;
}

.flow-btn.download {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: white;
}

.flow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.flow-emoji {
    font-size: 1.2rem;
    margin-right: 12px;
}

.flow-text {
    flex: 1;
    text-align: left;
}

/* デモカード用スタイル */
.demo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.demo-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.demo-card h6 {
    color: #2e7d32;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-instruction {
    font-size: 0.8rem;
    color: #666;
    background: #f0f9ff;
    padding: 4px 8px;
    border-radius: 6px;
    display: block;
    margin-bottom: 8px;
}

.showcase-header {
    text-align: center;
    margin-bottom: 40px;
}

.showcase-header h2 {
    color: #2e7d32;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.showcase-subtitle {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
}

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

.showcase-feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.showcase-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 15px;
    background: linear-gradient(135deg, #4caf50, #81c784);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.showcase-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.2);
}

.showcase-feature-card:hover::before {
    opacity: 1;
}

.feature-card-header {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 20px;
    text-align: center;
}

.feature-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.feature-card-content {
    padding: 25px;
}

.comparison-example {
    margin-top: 15px;
    background: white;
    border-radius: 10px;
    padding: 15px;
}

.old-way, .new-way {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.old-way .label {
    background: #ff5722;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 10px;
    min-width: 50px;
    text-align: center;
}

.new-way .label {
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 10px;
    min-width: 50px;
    text-align: center;
}

.context-examples {
    margin-top: 15px;
}

.context-example {
    display: flex;
    align-items: center;
    margin: 10px 0;
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.context-example:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-color: #4caf50;
}

.context-example .context {
    color: #2e7d32;
    font-weight: bold;
}

.context-example .reading {
    color: #666;
    font-style: italic;
}

.context-example .arrow {
    color: #4caf50;
    font-weight: bold;
}

.context-example .result {
    color: #1976d2;
    font-weight: bold;
}

.conversion-preview {
    margin-top: 15px;
    background: white;
    border-radius: 10px;
    padding: 15px;
}

.conversion-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.conversion-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.conversion-feature .feature-emoji {
    font-size: 1.3rem;
}

.conversion-feature .feature-desc {
    color: #555;
    flex: 1;
}

.conversion-example-compact {
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}

.example-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.example-row .input {
    color: #333;
    font-weight: 500;
}

.example-row .prompt-tag {
    background: #2196f3;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.example-row .arrow {
    color: #999;
}

.example-row .output {
    font-size: 1.2rem;
}

.conversion-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.conversion-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.step-label {
    font-weight: bold;
    color: #2e7d32;
    min-width: 100px;
    font-size: 0.9rem;
}

.conversion-step .original {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 8px 15px;
    border-radius: 8px;
    color: #1565c0;
    font-weight: 500;
    border: 1px solid #90caf9;
}

.conversion-step .prompt {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
    padding: 8px 15px;
    border-radius: 8px;
    color: #e65100;
    font-weight: bold;
    border: 1px solid #ffb74d;
    font-family: 'Courier New', monospace;
}

.conversion-step .result {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c8);
    padding: 8px 15px;
    border-radius: 8px;
    color: #1b5e20;
    font-weight: bold;
    border: 1px solid #81c784;
}

/* 体験フローセクション */
.experience-flow {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c8 50%, #a5d6a7 100%);
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.experience-flow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.experience-flow h3 {
    color: #2e7d32;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

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

.flow-step {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.15);
}

.flow-step:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.5s both; }
.flow-step:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.7s both; }
.flow-step:nth-child(5) { animation: fadeInUp 0.8s ease-out 0.9s both; }

.step-number {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-content h4 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.step-btn {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.step-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.step-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.step-btn:hover::before {
    width: 300px;
    height: 300px;
}

.step-btn:hover {
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.download-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.download-btn:hover {
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.flow-arrow {
    color: #4caf50;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ライブ変換機能説明セクション */
.live-conversion-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.benefit-card {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 15px;
    background: linear-gradient(135deg, #2196f3, #64b5f6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.4s;
}

.benefit-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(33, 150, 243, 0.25);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.benefit-content h4 {
    color: #1565c0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.benefit-content p {
    color: #666;
    margin: 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

.game-challenge {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff9800;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.game-challenge::after {
    content: '🎮';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 80px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.game-challenge h4 {
    color: #e65100;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.challenge-description {
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #333;
}

.challenge-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.old-ime-way, .azookey-way {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.old-ime-way {
    border: 2px solid #f44336;
    position: relative;
    background: linear-gradient(135deg, #fff, #ffebee);
    transition: all 0.3s ease;
}

.old-ime-way:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.2);
}

.azookey-way {
    border: 2px solid #4caf50;
    position: relative;
    background: linear-gradient(135deg, #fff, #e8f5e8);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
}

.azookey-way:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
}

.old-ime-way h5 {
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 1rem;
}

.azookey-way h5 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1rem;
}

.typing-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.typing-flow .step {
    background: #e3f2fd;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #1976d2;
}

.typing-flow .confirm {
    background: #ffebee;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    color: #d32f2f;
}

.typing-flow .auto-convert {
    background: #e8f5e8;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    color: #2e7d32;
}

.typing-flow .final {
    background: #e8f5e8;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #2e7d32;
    font-weight: bold;
}

.flow-description {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.3;
}

.example-item.advanced {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border: 2px solid #ffc107;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.example-item.advanced::before {
    content: '✨';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.example-item.advanced:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.example-item.advanced .example-context {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
    font-weight: bold;
}

.example-item.advanced .example-input {
    color: #e65100;
    font-weight: bold;
}

.example-item.advanced .example-output {
    color: #1b5e20;
    font-weight: bold;
}

.game-rules {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border: 2px solid #9c27b0;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
}

.game-rules::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(45deg, #9c27b0, #e91e63, #f44336, #ff9800, #ffc107, #4caf50, #2196f3, #9c27b0);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradient-rotate 3s ease infinite;
    opacity: 0.5;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.game-rules h4 {
    color: #6a1b9a;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.game-rules .instructions-list {
    list-style: none;
    padding: 0;
}

.game-rules .instructions-list li {
    display: flex;
    align-items: center;
    margin: 12px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    color: #333;
    line-height: 1.4;
}

.rule-icon {
    margin-right: 12px;
    font-size: 1.1rem;
}

/* ゲーム結果画面のいい感じ変換導線セクション */
.conversion-tour-section {
    margin: 30px 0;
}

.tour-highlight {
    background: linear-gradient(135deg, #f8f9ff, #e8eeff);
    border: 3px solid #4f46e5;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.tour-highlight h4 {
    color: #4f46e5;
    font-size: 1.4rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

.next-feature-preview {
    margin: 25px 0;
}

.feature-preview-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
    margin: 20px 0;
}

.preview-header {
    margin-bottom: 20px;
}

.preview-header h5 {
    color: #4f46e5;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.preview-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.preview-example {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.example-before, .example-action, .example-after {
    display: block;
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
}

.example-before {
    background: #fef3c7;
    color: #92400e;
}

.example-action {
    background: #dbeafe;
    color: #1e40af;
    text-align: center;
}

.example-after {
    background: #dcfce7;
    color: #15803d;
}

.preview-benefits {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.benefit-tag {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.cta-section {
    margin-top: 35px;
    text-align: center;
    position: relative;
}

.next-experience-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 20px 45px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0;
}

.next-experience-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.next-experience-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.6);
    text-decoration: none;
    color: white;
}

.next-experience-btn:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 1.3rem;
    animation: rocket-bounce 2s ease-in-out infinite;
}

@keyframes rocket-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

.btn-text {
    flex: 1;
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.next-experience-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.cta-note {
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 15px;
    font-style: italic;
    opacity: 0.8;
}

.completion-message {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 10px;
}

.completion-message p {
    color: #92400e;
    margin: 0;
    font-weight: bold;
    line-height: 1.4;
}

/* azooKeyヒント表示 */
.azookey-hint {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0 auto 20px;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.azookey-hint.show {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        gap: 15px;
    }
    
    .feature-highlight {
        padding: 10px 15px;
    }
    
    /* 新機能カードのモバイル対応 */
    .feature-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .feature-item {
        min-width: 280px;
        padding: 12px 16px;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .feature-text strong {
        font-size: 0.85rem;
    }
    
    .feature-text span {
        font-size: 0.7rem;
    }
    
    /* コンパクトデザインのモバイル対応 */
    .core-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .core-feature {
        padding: 20px;
    }
    
    .feature-icon-large {
        font-size: 2rem;
    }
    
    .core-feature h3 {
        font-size: 1rem;
    }
    
    .mini-example .input {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .flow-buttons {
        gap: 10px;
    }
    
    .flow-btn {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .flow-emoji {
        font-size: 1rem;
    }
    
    .showcase-features {
        grid-template-columns: 1fr;
    }
    
    .flow-steps {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .context-example {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .live-conversion-benefits {
        grid-template-columns: 1fr;
    }
    
    .challenge-comparison {
        grid-template-columns: 1fr;
    }
    
    .typing-flow {
        flex-direction: column;
        gap: 5px;
    }
    
    .tour-highlight {
        padding: 20px;
    }
    
    .tour-highlight h4 {
        font-size: 1.2rem;
    }
    
    .feature-preview-card {
        padding: 20px;
    }
    
    .preview-benefits {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .next-experience-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .azookey-hint {
        padding: 10px 15px;
        font-size: 0.8rem;
        margin: 0 10px 15px;
    }
}

h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.game-area {
    background: linear-gradient(to bottom, #ff9800, #ff6f00);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 4px solid #bf360c;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

.game-layout {
    background: linear-gradient(to bottom, #fffaf0, #ffeaa7);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 3px solid #cd853f;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sushi-belt-container {
    background: 
        linear-gradient(to bottom, #8B4513 0%, #A0522D 30%, #654321 100%),
        repeating-linear-gradient(90deg, 
            transparent 0px, 
            transparent 10px, 
            rgba(139, 69, 19, 0.3) 10px, 
            rgba(139, 69, 19, 0.3) 12px);
    border-radius: 15px;
    padding: 12px;
    box-shadow: 
        inset 0 4px 12px rgba(0,0,0,0.4),
        0 4px 16px rgba(0,0,0,0.2);
    border: 3px solid #5D2F02;
    position: relative;
}

.sushi-belt {
    background: 
        linear-gradient(180deg, #DEB887 0%, #CD853F 20%, #8B4513 80%, #5D2F02 100%),
        repeating-linear-gradient(90deg, 
            rgba(139, 69, 19, 0.1) 0px, 
            rgba(139, 69, 19, 0.1) 15px, 
            rgba(160, 82, 45, 0.2) 15px, 
            rgba(160, 82, 45, 0.2) 30px);
    border-radius: 12px;
    padding: 8px;
    position: relative;
    height: 300px;
    box-shadow: 
        inset 0 3px 10px rgba(0,0,0,0.3),
        inset 0 -2px 6px rgba(255,255,255,0.1);
    margin-top: 20px;
}

.belt-track {
    background: 
        linear-gradient(180deg, #F5DEB3 0%, #DEB887 10%, #CD853F 90%, #8B4513 100%);
    height: 100%;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.2),
        inset 0 -1px 2px rgba(255,255,255,0.3);
    border: 1px solid #CD853F;
}

.items-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
}

.table-items {
    display: flex;
    align-items: center;
    gap: 15px;
}

.left-items {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.input-field {
    width: 100%;
}

.input-field textarea {
    width: 100%;
    padding: 15px 18px;
    font-size: 1.3rem;
    border: 3px solid #FF8F00;
    border-radius: 12px;
    background: 
        linear-gradient(135deg, #FFFDE7 0%, #FFF8E1 100%),
        radial-gradient(ellipse at center, rgba(255,193,7,0.05) 0%, transparent 70%);
    resize: none;
    font-family: inherit;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.05),
        0 2px 8px rgba(255,143,0,0.2);
    color: #BF360C;
    font-weight: 500;
}

.input-field textarea:focus {
    outline: none;
    border-color: #E65100;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.05),
        0 0 0 2px rgba(255,143,0,0.3),
        0 2px 12px rgba(255,143,0,0.4);
}

.input-result {
    padding: 8px 12px;
    background: 
        linear-gradient(135deg, rgba(232, 245, 232, 0.8) 0%, rgba(200, 230, 201, 0.8) 100%);
    border-radius: 10px;
    border: 2px solid rgba(46, 125, 50, 0.6);
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 
        inset 0 1px 2px rgba(255,255,255,0.5),
        0 1px 4px rgba(46,125,50,0.2);
    position: relative;
}

    margin-top: 8px;
    backdrop-filter: blur(1px);
}

.input-result::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.8) 50%, 
        transparent 100%);
    border-radius: 2px;
}

.input-result .result-label {
    color: #1B5E20;
    font-weight: bold;
    margin-right: 6px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.input-result #userConverted {
    color: #2E7D32;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}

.tea-cup, .chopsticks {
    font-size: 3rem;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

.empty-plate {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #f0f0f0 0%, #e0e0e0 70%, #d0d0d0 100%);
    border-radius: 50%;
    border: 3px solid #90ee90;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    position: relative;
}

.empty-plate::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    border: 1px solid #90ee90;
}

.belt-track::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.05) 20px,
        rgba(255,255,255,0.05) 40px
    );
    animation: belt-move 2s linear infinite;
}

@keyframes belt-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.sushi-item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -100px;
    animation: sushi-flow 8s linear;
    display: flex;
    align-items: center;
    justify-content: center;
}


@keyframes sushi-flow {
    0% { 
        left: -100px;
        transform: translateY(-50%);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% { 
        left: calc(100% + 100px);
        transform: translateY(-50%);
        opacity: 0;
    }
}

.sushi-plate {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 2s ease-in-out infinite;
    position: relative;
}

.sushi-plate .plate {
    width: 110px;
    height: 40px;
    background: 
        radial-gradient(ellipse 70% 40% at 50% 20%, #ffffff 0%, #f5f5f5 30%, #e0e0e0 70%, #d0d0d0 100%),
        linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 50%, #d8d8d8 100%);
    border-radius: 50%;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.3),
        inset 0 2px 3px rgba(255,255,255,0.8),
        inset 0 -2px 2px rgba(0,0,0,0.15);
    position: relative;
    border: 2px solid #cccccc;
}

.sushi-plate .plate::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 22px;
    background: 
        radial-gradient(ellipse, rgba(255,255,255,0.6) 0%, transparent 70%);
    border-radius: 50%;
}

.sushi-plate .sushi {
    font-size: 4.5rem;
    margin-bottom: -18px;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4));
    z-index: 2;
    position: relative;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    25% {
        transform: translateY(-3px) scale(1.02);
    }
    50% { 
        transform: translateY(-5px) scale(1.05); 
    }
    75% {
        transform: translateY(-3px) scale(1.02);
    }
}

/* 寿司皿のホバーエフェクト */
.sushi-plate:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.1);
    transition: all 0.2s ease-out;
}

/* 収集された寿司の表示改善 */
.collected-plate {
    animation: collectSushi 0.6s ease-out;
}

@keyframes collectSushi {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.collected-sushi {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    position: relative;
    height: 90px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    border: 3px solid rgba(255,255,255,0.2);
}

.sushi-collection {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
}

.collected-plate {
    font-size: 3.5rem;
    animation: collect-bounce 0.3s ease-out;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
    transition: all 0.3s ease-out;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    flex-shrink: 0;
    margin-right: 5px;
    align-items: center;
    justify-content: center;
    border: 3px solid #FFD700;
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.3),
        inset 0 3px 4px rgba(255,255,255,0.8);
}

@keyframes collect-bounce {
    0% { 
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% { 
        transform: scale(1.2) rotate(90deg);
    }
    100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}



.question-counter {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
}

.sushi-header {
    background: 
        linear-gradient(135deg, #FFE0B2 0%, #FFCC80 30%, #FF9800 70%, #E65100 100%),
        repeating-linear-gradient(45deg, 
            transparent 0px, 
            transparent 10px, 
            rgba(255, 152, 0, 0.1) 10px, 
            rgba(255, 152, 0, 0.1) 20px);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 3px solid #BF360C;
    box-shadow: 
        inset 0 3px 8px rgba(255,255,255,0.3),
        inset 0 -2px 6px rgba(0,0,0,0.2),
        0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.sushi-header::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 8px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.6) 20%, 
        rgba(255,255,255,0.6) 80%, 
        transparent 100%);
    border-radius: 4px;
}

.time-counter {
    display: flex;
    align-items: baseline;
    gap: 5px;
    background: 
        linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 50%, #1a1a1a 100%),
        radial-gradient(circle at 30% 30%, rgba(0,255,0,0.1) 0%, transparent 50%);
    color: #00ff41;
    padding: 10px 16px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    box-shadow: 
        inset 0 2px 6px rgba(0,0,0,0.6),
        inset 0 -1px 2px rgba(0,255,0,0.2),
        0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid #004400;
    position: relative;
}

.time-counter::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0,255,65,0.4) 50%, 
        transparent 100%);
    border-radius: 2px;
}

.time-label {
    font-size: 0.9rem;
    color: #ffcc80;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.time-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff41;
    text-shadow: 0 0 8px rgba(0,255,65,0.6);
}

.time-unit {
    font-size: 0.9rem;
    color: #ffcc80;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.status-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sushi-counter {
    color: #6B2C00;
    font-weight: bold;
    font-size: 1rem;
    background: 
        linear-gradient(135deg, #FFF8E1 0%, #FFECB3 50%, #FFE082 100%);
    padding: 8px 14px;
    border-radius: 12px;
    border: 2px solid #D4AF37;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.6),
        inset 0 -1px 2px rgba(212,175,55,0.3),
        0 2px 6px rgba(0,0,0,0.15);
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
    position: relative;
}

.sushi-counter::before {
    content: '🍣 ';
    margin-right: 4px;
}

.question-info {
    display: flex;
    align-items: center;
}

.question-counter {
    color: #6B2C00;
    font-weight: bold;
    font-size: 1rem;
    background: 
        linear-gradient(135deg, #FFF8E1 0%, #FFECB3 50%, #FFE082 100%);
    padding: 8px 14px;
    border-radius: 12px;
    border: 2px solid #D4AF37;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.6),
        inset 0 -1px 2px rgba(212,175,55,0.3),
        0 2px 6px rgba(0,0,0,0.15);
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
    position: relative;
}

.question-counter::before {
    content: '📝 ';
    margin-right: 4px;
}

.reset-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid #b71c1c;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.retire-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid #b45309;
}

.retire-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}

.timer-label {
    color: #666;
}

#gameTimer {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.question-display {
    text-align: center;
    padding: 12px 18px;
    background: rgba(255, 253, 231, 0.9);
    border-radius: 15px;
    border: 2px solid rgba(255, 143, 0, 0.7);
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.5);
    position: absolute;
    top: auto;
    bottom: 8px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 10;
    backdrop-filter: blur(1px);
    min-width: 300px;
    max-width: 500px;
}

.question-display::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 6px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.8) 50%, 
        transparent 100%);
    border-radius: 3px;
}

.question-display .target-ruby {
    display: inline-block;
    background: transparent;
    padding: 8px 16px;
    border: none;
    box-shadow: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    margin: 5px 0;
}

.question-display .target-ruby span {
    font-size: 1.8rem;
    font-weight: bold;
    color: #BF360C;
    text-shadow: 
        1px 1px 2px rgba(255,255,255,0.8),
        0 0 4px rgba(191,54,12,0.3);
}

.question-display .target-ruby rt {
    font-size: 0.9rem;
    color: #FF6F00;
    font-weight: 500;
    text-shadow: 
        0 1px 1px rgba(255,255,255,0.6),
        0 0 3px rgba(255,111,0,0.3);
}

.question-area {
    margin-bottom: 10px;
}

.input-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 15px;
    padding: 20px;
    border: 3px solid #0ea5e9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
}

.question-card {
    background: linear-gradient(135deg, #fff8f0, #ffeaa7);
    border-radius: 15px;
    padding: 20px;
    border: 3px solid #cd853f;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
}

.target-text {
    text-align: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.target-label {
    color: #8b4513;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.target-content {
    display: block;
    width: 100%;
    padding: 0 10px;
}

.target-ruby {
    display: inline-block;
    background: linear-gradient(135deg, #fff8dc, #ffeaa7);
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #fdb813;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    max-width: 100%;
    overflow-x: auto;
}

.target-ruby span {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2d3436;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
}

.target-ruby rt {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
    line-height: 1;
    text-align: center;
    ruby-align: center;
    white-space: nowrap;
    display: block;
    text-orientation: upright;
    writing-mode: horizontal-tb;
}

.input-section {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #e17055;
}

#userInput {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid #74b9ff;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    resize: none;
    margin-bottom: 10px;
    background: #f8f9fa;
    height: 50px;
}

#userInput:focus {
    outline: none;
    border-color: #0984e3;
    background: white;
    box-shadow: 0 0 10px rgba(9, 132, 227, 0.2);
}

.input-result {
    padding: 10px 15px;
    background: #f1f2f6;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.result-label {
    color: #636e72;
    font-weight: 500;
    margin-right: 10px;
}

.match {
    background-color: #00b894;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.no-match {
    background-color: #e17055;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.feedback {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.feedback.show {
    opacity: 1;
}

.feedback.correct {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: 2px solid #f4c430;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.game-over {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.game-over.show {
    display: block;
}

.game-over h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 20px;
}


.restart-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 結果画面の新しいスタイル */
.result-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.result-header {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.completion-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.badge-icon {
    font-size: 3rem;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.completion-title {
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.completion-subtitle {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.score-display-compact {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.score-display-compact .score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff3c4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.score-display-compact .score-unit {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff3c4;
}

.score-breakdown-compact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.breakdown-item-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff3c4;
    font-size: 0.9rem;
}

.breakdown-item-compact .breakdown-icon {
    font-size: 1.1rem;
}

.result-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.score-section {
    text-align: center;
}

.main-score-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #dee2e6;
}

.score-header h3 {
    color: #495057;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
}

.score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.score-value {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b6b, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-unit {
    font-size: 1.5rem;
    color: #666;
    font-weight: 500;
}

.score-breakdown {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 15px;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.breakdown-icon {
    font-size: 1.5rem;
}

.breakdown-label {
    font-size: 0.9rem;
    color: #666;
}

.breakdown-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.score-formula {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.score-formula p {
    margin: 0;
}

.stats-section {
    text-align: center;
}

.daily-stats {
    background: linear-gradient(135deg, #fff8dc, #ffeaa7);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 20px;
}

.daily-stats h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.daily-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: #b8860b;
}

.name-registration {
    text-align: center;
}

.name-registration h4 {
    color: #495057;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.name-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#playerName {
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

#playerName:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(118, 75, 162, 0.2);
}

.register-btn {
    padding: 12px 20px;
    font-size: 1rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.actions-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 180px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.action-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.action-btn.conversion {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.conversion-tour-section {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border: 2px solid #4caf50;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.conversion-tour-section h4 {
    color: #2e7d32;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.conversion-tour-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tour-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.tour-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
    text-decoration: none;
    color: white;
}

.ranking-section {
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
    border: 2px solid #e0e7ff;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ranking-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}

.ranking-header {
    text-align: center;
    margin-bottom: 25px;
}

.ranking-header h3 {
    color: #4f46e5;
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.ranking-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

.ranking-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e7ff;
}

.next-step-hint {
    color: #4f46e5;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.ranking-list {
    margin: 20px 0;
}

.ranking-list h3 {
    color: #4f46e5;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3rem;
}

.rankings {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.ranking-entry {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.ranking-entry:hover {
    transform: translateX(8px) translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
    border-color: #c7d2fe;
}

.ranking-entry:first-child {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    font-weight: bold;
}

.ranking-entry:nth-child(2) {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
}

.ranking-entry:nth-child(3) {
    background: linear-gradient(135deg, #cd7f32, #e8b87f);
}

.rank {
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
}

.ranking-entry:first-child .rank,
.ranking-entry:nth-child(2) .rank,
.ranking-entry:nth-child(3) .rank {
    color: #333;
}

.entry-details {
    flex: 1;
    margin-left: 15px;
}

.name-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.name {
    font-weight: 500;
    color: #333;
}

.time {
    font-weight: bold;
    color: #764ba2;
}

.score {
    font-weight: bold;
    color: #ff6b6b;
    font-size: 1rem;
    background: rgba(255, 107, 107, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.result-stats {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.result-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.main-score {
    text-align: center;
}

.score-value {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b6b, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 5px;
}

.score-label {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.result-details {
    display: flex;
    gap: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.detail-item .icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.detail-item .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.detail-item .label {
    font-size: 0.9rem;
    color: #666;
}

.game-result h4 {
    margin: 0 0 15px 0;
    color: #2d3436;
    font-size: 1.1rem;
}

.final-score {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00b894;
    margin-top: 10px;
}

.daily-summary {
    background: linear-gradient(135deg, #fff8dc, #ffeaa7);
    border-radius: 10px;
    padding: 15px;
    margin: 20px auto;
    max-width: 300px;
    border: 2px solid #fdb813;
}

.daily-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

.daily-count {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.score-info {
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    padding: 15px;
    margin: 20px auto;
    max-width: 400px;
}

.score-formula {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 500;
}

.score-hint {
    font-size: 0.95rem;
    color: #667eea;
    text-align: center;
    font-weight: bold;
}

.stats {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.date {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.2;
}

.no-rankings {
    text-align: center;
    color: #999;
    padding: 20px;
}

.start-screen {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-intro {
    margin-bottom: 30px;
}

.game-intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.conversion-examples {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.conversion-examples .example {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #555;
}

.conversion-examples .example:last-child {
    margin-bottom: 0;
}

.demo-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.demo-examples .demo-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.demo-examples .demo-card h4 {
    color: #4caf50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.demo-examples .demo-card .example {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.start-content h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

/* コンパクトなルール表示 */
.intro-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.game-rules-compact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #333;
}

.rule-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
}

.ime-features {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.ime-features h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.feature-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
}

.feature-description strong {
    color: #667eea;
    font-size: 1.2rem;
}

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

.feature-list li {
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
}

.game-instructions {
    margin-bottom: 30px;
}

.game-instructions h3 {
    color: #ff6b6b;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.game-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
}

.game-description strong {
    color: #ff6b6b;
    font-size: 1.2rem;
}

.example-box {
    background: #fff8dc;
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    width: 100%;
}

.example-title {
    font-weight: bold;
    background: linear-gradient(135deg, #ff6600, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.example-subtitle {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
    margin-top: -15px;
    margin-bottom: 20px;
    font-style: italic;
}

.example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.example-category {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ddd;
}

.category-title {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.example-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.example-context {
    background: #e3f2fd;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #1565c0;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-right: 5px;
}

.example-input {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: #666;
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.example-arrow {
    margin: 0 8px;
    color: #667eea;
    font-weight: bold;
    flex-shrink: 0;
}

.example-output {
    background: #e6f3ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
    text-align: right;
}

.instructions-list {
    text-align: left;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    list-style: none;
    padding: 0;
}

.instructions-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.instructions-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.ime-link {
    margin-top: 20px;
    margin-bottom: 30px;
}

.ime-article-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.ime-article-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.start-btn {
    padding: 22px 60px;
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.start-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.start-btn:hover::before {
    left: 100%;
}

.ranking-preview {
    margin-top: 30px;
}

.ranking-preview h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.rankings-preview {
    list-style: none;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.score-display {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .start-screen {
        padding: 30px;
    }
    
    #userInput {
        min-height: 60px;
        font-size: 1rem;
    }
    
    .target-ruby span {
        font-size: 1.4rem;
    }
    
    .target-ruby rt {
        font-size: 0.8rem;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .example-item {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .example-input, .example-output {
        text-align: center;
        white-space: normal;
    }
    
    .example-arrow {
        text-align: center;
        margin: 5px 0;
    }
    
    /* 結果画面のモバイル対応 */
    .result-header {
        padding: 20px;
    }
    
    .completion-title {
        font-size: 1.5rem;
    }
    
    .result-content {
        padding: 20px;
        gap: 20px;
    }
    
    .score-breakdown {
        flex-direction: column;
        gap: 10px;
    }
    
    .breakdown-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
    }
    
    .name-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    #playerName {
        width: 100%;
        max-width: none;
    }
    
    .register-btn {
        width: 100%;
    }
    
    .actions-section {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        min-width: auto;
    }
    
    .ranking-section {
        padding: 15px 20px;
    }
    
    .ranking-entry {
        font-size: 0.9rem;
    }
    
    .date {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 5px;
    }
    
    .hero-section {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .feature-highlight {
        padding: 10px 15px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .azookey-showcase {
        padding: 30px 15px;
    }
    
    .showcase-features {
        gap: 15px;
    }
    
    .feature-card-content {
        padding: 20px 15px;
    }
    
    .flow-step {
        max-width: 100%;
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .game-challenge {
        padding: 20px 15px;
    }
    
    .challenge-comparison {
        gap: 15px;
    }
    
    .old-ime-way, .azookey-way {
        padding: 15px;
    }
    
    .typing-flow .step, .typing-flow .final {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .game-rules {
        padding: 20px 15px;
    }
    
    .start-screen {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .start-content h2 {
        font-size: 1.5rem;
    }
    
    .start-btn {
        padding: 16px 35px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .game-area {
        padding: 5px;
    }
    
    .ime-features {
        padding: 15px;
    }
    
    .example-box {
        padding: 18px 15px;
    }
    
    .example-category {
        margin: 15px 0;
    }
    
    .example-item {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .step-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .conversion-item {
        padding: 12px;
    }
    
    .conversion-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .step-label {
        min-width: auto;
        font-size: 0.8rem;
    }
    
    .experience-flow {
        padding: 25px 15px;
    }
}

/* いい感じ変換デモセクションのスタイル */
.conversion-demo-section {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 2px solid #4caf50;
    text-align: center;
}

.conversion-demo-section h3 {
    color: #2e7d32;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.demo-description {
    color: #388e3c;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.try-conversion-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.conversion-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.conversion-link {
    display: block;
    padding: 15px 20px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
}

.conversion-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    text-decoration: none;
    color: white;
}

/* いい感じ変換デモ画面のスタイル */
.conversion-demo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.demo-container {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.demo-header {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.demo-header h2 {
    font-size: 2rem;
    margin: 0 0 10px 0;
}

.demo-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.close-demo-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-demo-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.demo-content {
    padding: 30px;
}

.demo-instructions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #4caf50;
}

.demo-instructions h3 {
    color: #2e7d32;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.demo-instructions p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.conversion-playground {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.input-section {
    margin-bottom: 20px;
}

.input-section label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1rem;
}

#demoTextarea {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #4caf50;
    border-radius: 8px;
    resize: vertical;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s;
    min-height: 100px;
}

#demoTextarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

.selection-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#selectionDisplay {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.convert-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.convert-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.demo-examples h4 {
    color: #2e7d32;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.example-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.example-btn {
    padding: 10px 15px;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border: 2px solid #4caf50;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #2e7d32;
    font-weight: 500;
}

.example-btn:hover {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    transform: translateY(-2px);
}

.demo-sections {
    margin-bottom: 25px;
    text-align: center;
}

.demo-sections h4 {
    color: #2e7d32;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.section-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.section-btn {
    padding: 10px 16px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.section-btn:hover {
    border-color: #4caf50;
    background: #e8f5e8;
}

.section-btn.active {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border-color: #388e3c;
}

.demo-section {
    margin-bottom: 20px;
}

.section-header {
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-bottom: none;
}

.section-header h5 {
    margin: 0 0 8px 0;
    color: #2e7d32;
    font-size: 1.2rem;
}

.section-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.expected-result {
    background: #e8f5e8;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #2e7d32;
    line-height: 1.5;
}

.demo-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* いい感じ変換プロンプトウィンドウのスタイル */
.conversion-prompt-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.prompt-container {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.prompt-header {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.prompt-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-prompt-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-prompt-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.prompt-content {
    padding: 25px;
}

.selected-text-display {
    margin-bottom: 20px;
}

.selected-text-display label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

.selected-text {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    min-height: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    word-wrap: break-word;
}

.prompt-input-section {
    margin-bottom: 20px;
}

.prompt-input-section label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

#conversionPrompt {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #4caf50;
    border-radius: 8px;
    transition: all 0.3s;
    margin-bottom: 15px;
}

#conversionPrompt:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.2);
}

.prompt-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.prompt-label {
    font-size: 0.9rem;
    color: #666;
    margin-right: 10px;
}

.prompt-example-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    color: #333;
}

.prompt-example-btn:hover {
    background: #e9ecef;
    border-color: #4caf50;
}

.conversion-result-section {
    margin-bottom: 25px;
}

.conversion-result-section label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

.demo-note {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.demo-note p {
    margin: 0;
    color: #1976d2;
    font-size: 0.9rem;
    line-height: 1.5;
}

.conversion-examples-section {
    margin-bottom: 20px;
}

.conversion-examples-section label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.conversion-examples {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conversion-example {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 8px;
}

.example-prompt {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
}

.example-arrow {
    color: #4caf50;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.example-result {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
}

.ime-instruction {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.ime-instruction p {
    margin: 0;
    color: #e65100;
    font-size: 0.9rem;
    line-height: 1.5;
}

.prompt-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.execute-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.execute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.apply-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.apply-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.apply-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.cancel-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .conversion-demo {
        padding: 10px;
    }
    
    .demo-container {
        max-height: 95vh;
    }
    
    .demo-header {
        padding: 20px;
    }
    
    .demo-header h2 {
        font-size: 1.5rem;
    }
    
    .demo-content {
        padding: 20px;
    }
    
    .conversion-playground {
        padding: 15px;
    }
    
    .example-buttons {
        justify-content: center;
    }
    
    .example-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .demo-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .example-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .instructions-list {
        max-width: 800px;
    }
    
    .ime-features {
        max-width: 1000px;
    }
}

/* UI説明画面のスタイル */
.ui-instructions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.ui-instructions-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.5s ease-out;
}

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

.ui-instructions h2 {
    text-align: center;
    color: #2e7d32;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 800;
}

/* ゲームスクリーンショット部分 */
.game-screenshot {
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.game-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

/* シンプルな説明 */
.simple-instructions {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.simple-rule {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 5px solid #4caf50;
}

.rule-emoji {
    font-size: 2.5rem;
}

.rule-text {
    font-size: 1.4rem;
    color: #333;
    font-weight: 600;
}

.instruction-steps {
    margin-bottom: 30px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
    border-radius: 15px;
    border-left: 5px solid #4caf50;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2e7d32;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.step-content p {
    color: #555;
    line-height: 1.6;
}

.ui-visual-guide {
    background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.ui-visual-guide h3 {
    color: #f57c00;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.ui-elements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ui-element {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.element-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.element-desc {
    flex: 1;
}

.element-desc strong {
    color: #f57c00;
    display: block;
    margin-bottom: 5px;
}

.countdown-start-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    margin-top: 20px;
}

.countdown-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
}

/* カウントダウン画面のスタイル */
.countdown-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.countdown-content {
    text-align: center;
    color: white;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.countdown-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 800;
}

.countdown-number {
    font-size: 8rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.countdown-text {
    font-size: 1.5rem;
    opacity: 0.9;
    animation: fadeIn 0.5s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ui-instructions-content {
        padding: 20px;
        margin: 10px;
    }
    
    .ui-instructions h2 {
        font-size: 2rem;
    }
    
    .instruction-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .ui-elements {
        grid-template-columns: 1fr;
    }
    
    .countdown-content h2 {
        font-size: 2rem;
    }
    
    .countdown-number {
        font-size: 6rem;
    }
    
    .countdown-text {
        font-size: 1.2rem;
    }
}

/* 新しいリザルト画面のスタイル */

/* 寿司打風リザルト画面 */
.sushida-result-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.5s ease-out;
}

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

.sushida-result-header {
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: white;
    padding: 25px;
    border-radius: 10px 10px 0 0;
    margin: -20px -20px 20px -20px;
}

.result-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ranking-celebration {
    text-align: center;
    margin: 20px 0;
    animation: celebrationBounce 0.6s ease-out;
}

@keyframes celebrationBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.rank-badge {
    font-size: 3rem;
    margin-bottom: 10px;
}

.rank-badge.rank-1 {
    animation: goldShine 2s infinite;
}

.rank-badge.rank-2 {
    animation: silverShine 2s infinite;
}

.rank-badge.rank-3 {
    animation: bronzeShine 2s infinite;
}

@keyframes goldShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 10px gold); }
}

@keyframes silverShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 10px silver); }
}

@keyframes bronzeShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 10px #cd7f32); }
}

.rank-message {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin: 20px 0;
}

.score-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.score-text {
    font-size: 1.5rem;
    color: #ffd700;
}

.main-score {
    text-align: center;
}

.result-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-icon {
    font-size: 1.5rem;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.summary-label {
    font-size: 1rem;
    color: #666;
}


.sushida-result-content {
    padding: 20px;
}

.sushida-stats-section {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    display: inline-block;
}

.stat-unit {
    font-size: 1rem;
    color: #666;
    display: inline-block;
    margin-left: 5px;
}

.sushida-details {
    background: #fafafa;
    border-radius: 10px;
    padding: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 1.1rem;
    color: #333;
}

.detail-toggle,
.detail-button {
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-toggle:hover,
.detail-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 69, 0, 0.3);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .result-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .ranking-celebration {
        margin: 15px 0;
    }
    
    .rank-badge {
        font-size: 2.5rem;
    }
    
    .rank-message {
        font-size: 1rem;
    }
}

.conversion-examples-section {
    margin-top: 20px;
}

.conversion-example-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.example-type {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

.conversion-example-row .input {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
    flex: 1;
}

.conversion-example-row .prompt-tag {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.conversion-example-row .output {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
    flex: 1;
}

.conversion-example-row .arrow {
    color: #333;
    font-weight: bold;
}

/* 新しいランキング表示 */
.no-rankings {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 20px 0;
}

.no-rankings p:first-child {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.ranking-list-container {
    margin: 20px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.ranking-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ranking-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.ranking-entry.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #8b4513;
}

.ranking-entry.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a9a9a9);
    color: #333;
}

.ranking-entry.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    color: #fff;
}

.rank-medal {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
    font-weight: bold;
}

.entry-details {
    flex: 1;
}

.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.player-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.ranking-entry.rank-1 .player-name,
.ranking-entry.rank-2 .player-name,
.ranking-entry.rank-3 .player-name {
    color: inherit;
}

.player-score {
    font-size: 1rem;
    font-weight: bold;
    color: #2e7d32;
}

.game-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.stat-item {
    font-size: 0.9rem;
    color: #666;
}

.entry-date {
    font-size: 0.8rem;
    color: #999;
}

/* 次の体験セクション */
.next-experience-section {
    margin: 40px 0;
}

.next-feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-header {
    text-align: center;
    margin-bottom: 25px;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-header h4 {
    color: #2e7d32;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.feature-subtitle {
    color: #666;
    font-size: 1rem;
}

.feature-showcase {
    margin: 25px 0;
}

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

.showcase-item {
    text-align: center;
    padding: 20px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 15px;
}

.showcase-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.showcase-item h5 {
    color: #2e7d32;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.showcase-example {
    color: #666;
    font-size: 0.9rem;
}

.feature-demo-examples {
    margin: 25px 0;
}

.feature-demo-examples h5 {
    color: #2e7d32;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.demo-examples-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-example {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    font-size: 0.9rem;
}

.example-before, .example-after {
    background: rgba(76, 175, 80, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: 500;
    flex: 1;
}

.example-prompt {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .conversion-example-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .conversion-example-row .input,
    .conversion-example-row .output {
        flex: none;
        width: 100%;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .demo-example {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .example-before, .example-after {
        flex: none;
        width: 100%;
    }
    
    .ranking-entry {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .player-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .game-stats {
        justify-content: center;
        gap: 10px;
    }
}