/* ==========================================================================
   共通スタイルシート: manual-style.css
   対象ページ: 案内ポータル、ダウンロード版、クラウド直接移行版、消去手順書
   ========================================================================== */

:root {
    --google-blue: #1a73e8;
    --google-red: #ea4335;
    --google-yellow: #fbbc05;
    --google-green: #34a853;
    --bg-primary: #f8f9fa;
    --text-main: #202124;
    --text-sub: #5f6368;
    --card-shadow: 0 4px 6px rgba(32, 33, 36, 0.08), 0 1px 3px rgba(32, 33, 36, 0.04);
    --border-radius: 12px;
}

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

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.7;
    padding: 20px;
}

.manual-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    border: 1px solid #dadce0;
}

/* ヘッダー・バナー */
.portal-header, .manual-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 40px 30px;
    position: relative;
    border-bottom: 4px solid var(--google-blue);
}

.manual-banner {
    background: linear-gradient(135deg, #134e4a 0%, #0d9488 100%);
}

.badge-ict {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portal-header h1, .manual-banner h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.portal-header .subtitle, .manual-banner p {
    font-size: 14px;
    color: #e0e7ff;
}

.portal-header { text-align: center; }

/* 進捗状況バー */
.progress-wrapper {
    background-color: #f1f3f4;
    padding: 15px 25px;
    border-bottom: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.progress-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar-container {
    flex-grow: 1;
    max-width: 500px;
    height: 10px;
    background-color: #dadce0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--google-blue), var(--google-green));
    transition: width 0.4s ease;
}

.progress-stat {
    font-weight: 700;
    font-size: 13px;
    color: var(--google-blue);
}

/* クイックリンクナビ */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 15px 25px;
    background-color: #ffffff;
    border-bottom: 1px solid #dadce0;
}

.nav-btn {
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: left;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.nav-btn:hover {
    background-color: #f1f3f4;
    border-color: var(--google-blue);
    color: var(--google-blue);
}

.nav-btn .step-num {
    background-color: var(--text-sub);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.nav-btn:hover .step-num {
    background-color: var(--google-blue);
}

/* メインボディ構成 */
.manual-body {
    padding: 30px;
}

.intro-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.intro-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.intro-guide-clean {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.6;
}

.guide-badge {
    color: #b91c1c;
    font-weight: 700;
    display: inline-block;
    margin-right: 4px;
}

.manual-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

/* ステップセクション外枠 */
.step-section {
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.step-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-badge {
    font-weight: 700;
    font-size: 11px;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
}

.badge-step1 { background-color: var(--google-blue); }
.badge-step2 { background-color: var(--google-green); }
.badge-step3 { background-color: #8f39fa; }

.step-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

/* 完了タスク切り替えラベル */
.task-label {
    cursor: pointer;
    background-color: #f1f3f4;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    user-select: none;
}

.task-checkbox { display: none; }

/* 完璧な左右2カラムレスポンシブレイアウト */
.step-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 35px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 35px;
}

.step-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-text-col {
    flex: 1.2;
    min-width: 0;
}

.step-img-col {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.instruction-item-v2 {
    position: relative;
    padding-left: 45px;
}

.instruction-num {
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    background-color: #f1f3f4;
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.instruction-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.instruction-desc {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 12px;
    line-height: 1.6;
}

.instruction-tip-box {
    font-size: 12px;
    color: #5f6368;
    background-color: #f8fafc;
    border-left: 3px solid #1a73e8;
    padding: 10px 12px;
    margin: 12px 0;
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
}

.instruction-tip-box i {
    color: #1a73e8;
    margin-right: 4px;
}

.instruction-tip-label {
    font-weight: bold;
    color: #1e293b;
}

.instruction-tip-box.alert {
    background-color: #fdf2f2;
    border-left-color: #ea4335; /* Googleレッド */
    color: #b91c1c;
}
.instruction-tip-box.alert i {
    color: #ea4335;
}
.instruction-tip-box.alert .instruction-tip-label {
    color: #991b1b;
}

.instruction-action-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instruction-action-row {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.action-num-badge {
    background-color: #d93025;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}

.action-button-wrapper {
    margin: 15px 0 0 0;
}

/* ポータルカード・テーブル定義 */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .grid-container { grid-template-columns: 1fr; }
    .step-row { flex-direction: column; gap: 20px; }
    .step-img-col { width: 100%; }
}

.menu-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}
.menu-card.takeout::before { background-color: #0284c7; }
.menu-card.transfer::before { background-color: #10b981; }

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.card-icon { font-size: 30px; margin-bottom: 12px; }
.takeout .card-icon { color: #0284c7; }
.transfer .card-icon { color: #10b981; }

.menu-card h3 { font-size: 16px; color: #1e293b; margin-bottom: 12px; font-weight: 700; }
.menu-card p { font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 20px; }

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    width: 100%;
    transition: background-color 0.2s;
}
.portal-btn-takeout { background-color: #0284c7; color: #ffffff; }
.portal-btn-takeout:hover { background-color: #0369a1; }
.portal-btn-transfer { background-color: #10b981; color: #ffffff; }
.portal-btn-transfer:hover { background-color: #047857; }

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 13px;
}

.info-table th, .info-table td {
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    text-align: left;
}

.info-table th {
    background-color: #f8fafc;
    color: #334155;
    width: 25%;
    font-weight: 700;
}

.info-table td ul { padding-left: 18px; margin-top: 4px; }
.info-table td li { margin-bottom: 4px; }

.date-highlight {
    color: #b91c1c;
    font-size: 15px;
    font-weight: 700;
}

.important-alert-box {
    background-color: #fce8e6;
    border-left: 4px solid #d93025;
    padding: 15px;
    color: #333333;
    font-size: 14px;
    margin-top: 15px;
    border-radius: 0 4px 4px 0;
    line-height: 1.6;
}

.important-alert-label {
    color: #d93025;
    font-weight: 700;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}
.status-ok { background-color: #d1fae5; color: #065f46; }
.status-ng { background-color: #fee2e2; color: #991b1b; }

/* 注意・警告表示枠（マージン固定化） */
.alert-box {
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0 25px 0;
    font-size: 13px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.5;
}
.alert-warning { background-color: #fef7e0; border-left: 4px solid var(--google-yellow); color: #b06000; }
.alert-danger { background-color: #fce8e6; border-left: 4px solid var(--google-red); color: #c5221f; }
.alert-icon { font-size: 16px; margin-top: 2px; }

.g-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--google-blue);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.g-button:hover { background-color: #1557b0; }

/* 復元：QRコードリンク統合表示ボックス */
.qr-link-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0 20px 0;
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 15px;
    max-width: 650px;
}
.qr-code-img { width: 100px; height: 100px; border: 1px solid #dadce0; background: #fff; padding: 5px; border-radius: 4px; flex-shrink: 0; }
.url-text-display { font-size: 12px; color: var(--text-sub); }
.url-text-display code { display: block; background: #e8eaed; padding: 6px 10px; border-radius: 4px; margin-top: 5px; font-size: 13px; font-family: monospace; color: var(--text-main); word-break: break-all; }

.screenshot-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #ffffff;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.screenshot-container:hover {
    border-color: #a8c7fa;
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.08);
}

.screenshot-placeholder { height: 180px; background-color: #e2e8f0; border: 1px dashed #cbd5e1; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #475569; font-size: 12px; font-weight: bold; text-align: center; line-height: 1.6; padding: 10px; }

.screenshot-caption {
    display: block;
    padding: 12px 15px;
    background-color: #f1f3f4;
    border-top: 1px solid #dadce0;
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
    border-radius: 0 0 8px 8px;
    font-weight: 500;
    text-align: left;
}

.screenshot {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

/* スクリーンショットの拡大 */
.modal-trigger {
    cursor: zoom-in;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: zoomEffect 0.2s ease;
}

@keyframes zoomEffect {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* FAQアコーディオン (右側下矢印配置) */
.faq-item {
    border: 1px solid #dadce0;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq-question:hover { background-color: #f1f3f4; }

.faq-q {
    background-color: var(--google-blue);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.accordion-icon {
    font-size: 13px;
    color: var(--text-sub);
    transition: transform 0.3s ease;
}

.faq-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--google-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: #ffffff;
    transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
    padding: 18px 20px;
    font-size: 13px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #f1f3f4;
    line-height: 1.6;
}

.faq-a {
    background-color: #e8f0fe;
    color: var(--google-blue);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.faq-text-content { flex-grow: 1; color: var(--text-main); }
kbd { background-color: #f1f3f4; border: 1px solid #bdc1c6; border-radius: 4px; padding: 2px 6px; font-size: 11px; font-weight: 700; }
.disclaimer-section { background-color: #fafafa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-top: 30px; font-size: 12px; color: #666; line-height: 1.6; }
.disclaimer-title { font-weight: 700; color: #333; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.manual-footer { background-color: #f1f3f4; padding: 25px 30px; border-top: 1px solid #dadce0; font-size: 11px; color: var(--text-sub); line-height: 1.6; }