/* App 2 全体コンテナ */
#in-app {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    background-color: #0f172a; /* App 1と共通のダークブルー */
    color: #f8fafc; 
    border: 1px solid #334155;
    padding: 2.5rem;
    font-family: "Inter", sans-serif;
}

#in-app .hidden { display: none !important; }

/* リネーム設定エリア (入力フォーム) */
.rename-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid #1e293b;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.setting-group label {
    font-size: 0.75rem;
    color: #60a5fa; /* アクセントブルー */
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.setting-group input, 
.setting-group select {
    background: #0f172a;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 0.7rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.setting-group input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* ドロップゾーン */
#in-app .drop-zone {
    border: 2px dashed #3b82f6;
    background-color: rgba(15, 23, 42, 0.6);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#in-app .drop-zone:hover, 
#in-app .drop-zone.dragover {
    border-color: #60a5fa;
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

#in-app .upload-icon {
    width: 48px;
    height: 48px;
    color: #3b82f6;
    margin-bottom: 1rem;
}

#in-app .drop-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

#in-app .drop-subtext {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* 結果・プレビュー表示エリア */
#in-app #result-container {
    padding: 2rem 0;
    text-align: center;
}

.preview-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    margin: 1.5rem 0 2.5rem;
    border: 1px solid #334155;
    background: #0f172a;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.preview-table th {
    position: sticky;
    top: 0;
    background: #1e293b;
    padding: 1rem;
    color: #60a5fa;
    font-family: 'Roboto Mono', monospace;
    border-bottom: 2px solid #334155;
}

.preview-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #1e293b;
    color: #cbd5e1;
}

.preview-table tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* ボタン類 */
.action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#in-app .card-link {
    display: inline-flex;
    padding: 0.8rem 2.5rem;
    background: transparent;
    color: #3b82f6;
    font-weight: 600;
    border: 1px solid #3b82f6;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-transform: uppercase;
}

#in-app .card-link:hover {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

#in-app #reset-btn {
    background: none;
    border: none;
    color: #94a3b8;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
}

#in-app #reset-btn:hover { color: #f8fafc; }

/* SEOコンテンツエリア (App 1と完全統一) */
.seo-content-area {
    max-width: 850px;
    margin: 4rem auto 0;
    color: #cbd5e1;
    text-align: left;
}
.seo-content-area h2 {
    font-size: 1.5rem;
    color: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}
.seo-content-area p { line-height: 1.8; margin-bottom: 2rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid #334155;
    padding: 1.5rem;
    transition: border-color 0.3s;
}
.feature-card:hover { border-color: #3b82f6; }
.feature-card h3 { color: #60a5fa; margin-bottom: 0.8rem; font-size: 1.1rem; }
.feature-card p { margin-bottom: 0; font-size: 0.9rem; color: #94a3b8; }