@charset "utf-8";

/* カスタムプロパティ */
:root {
    --primary: #CC0100;
    --primary-hover: #FF4B45;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* 製品カラー */
    --product-payroll: #2F80ED;
    --product-sales: #27AE60;
    --product-cashflow: #F2994A;
    --product-bluereturn: #4DB7D9;
    --product-accounting: #194580;
    --product-inventory: #D96B99;
    --product-customer: #007F9B;

    --animation-duration: 0.3s;
}

/* ベースレイアウト */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* メインコンテナ */
.modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ヘッダーのオーバーライド */
.bsl-shop-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top-color: var(--primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ページヘッダー - 視認性を向上 */
.hero-section {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.hero-title {
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -1px;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* セクションスタイル */
.modern-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out both;
}

.section-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.section-header::before,
.section-header::after {
    display: none;
}

/* シリアルナンバー検索 */
.search-wrapper {
    background: var(--bg-secondary);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.search-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(204, 1, 0, 0.1);
    transform: translateY(-2px);
}

/* モダンボタン */
.search-btn {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(204, 1, 0, 0.2);
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 1, 0, 0.3);
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(204, 1, 0, 0.2);
}

/* 製品グリッド */
.product-grid-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-row {
    display: grid;
    gap: 1.5rem;
}

.product-row.top-row {
    grid-template-columns: repeat(3, 1fr);
}

.product-row.bottom-row {
    grid-template-columns: repeat(4, 1fr);
}

/* 製品カード - ホバーアニメーション削除 */
.product-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 製品ヘッダー - 指定色を適用 */
.product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    position: relative;
    color: white;
}

.product-card.payroll .product-header {
    background: var(--product-payroll);
}
.product-card.sales .product-header {
    background: var(--product-sales);
}
.product-card.cash-flow .product-header {
    background: var(--product-cashflow);
}
.product-card.blue-return .product-header {
    background: var(--product-bluereturn);
}
.product-card.accounting .product-header {
    background: var(--product-accounting);
}
.product-card.inventory .product-header {
    background: var(--product-inventory);
}
.product-card.customer .product-header {
    background: var(--product-customer);
}

/* 3Dアイコン */
.product-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

/* エディションリスト */
.edition-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

/* エディションボタン - 矢印を常時表示 */
.edition-btn {
    padding: 0.875rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid #9ca3af;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 220px;
    position: relative;
}

.edition-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 1, 0, 0.1);
}

.edition-btn::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f054";
    opacity: 1;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.edition-btn:hover::after {
    color: var(--primary);
    transform: translateX(2px);
}

/* 旧製品リンク */
.legacy-notice {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.legacy-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.legacy-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legacy-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.legacy-link::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f061";
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.legacy-link:hover::after {
    transform: translateX(4px);
}

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

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

.modern-section:nth-child(2) { animation-delay: 0.1s; }
.modern-section:nth-child(3) { animation-delay: 0.2s; }

.product-row.top-row .product-card:nth-child(1) { animation-delay: 0.1s; }
.product-row.top-row .product-card:nth-child(2) { animation-delay: 0.15s; }
.product-row.top-row .product-card:nth-child(3) { animation-delay: 0.2s; }

.product-row.bottom-row .product-card:nth-child(1) { animation-delay: 0.25s; }
.product-row.bottom-row .product-card:nth-child(2) { animation-delay: 0.3s; }
.product-row.bottom-row .product-card:nth-child(3) { animation-delay: 0.35s; }
.product-row.bottom-row .product-card:nth-child(4) { animation-delay: 0.4s; }

/* 共通スタイルのオーバーライド */
.bsl-content-wrapper {
    background: transparent;
}

.bsl-content {
    background: transparent;
    box-shadow: none;
}

.bsl-shop-footer {
    background: #2C2E2F;
    margin-top: 4rem;
}

/* =====================================
   menuページ専用スタイル
   ===================================== */

/* menu専用: シリアル検索フォームのレイアウト */
.menu-page .search-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-left: 13em;
}

.menu-page .search-input-wrapper {
    display: flex;
    gap: 3rem;
    width: 100%;
    align-items: center;
}

.menu-page .serial-input-fields {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    margin-bottom: 0;
}

.menu-page .search-btn {
    flex-shrink: 0;
}

/* menu専用: エラーメッセージ */
.menu-page .search-error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 2rem;
    font-size: 14px;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease-in-out;
    width: 48rem;
}

.menu-page .search-error-message i {
    flex-shrink: 0;
    color: #dc2626;
}

/* menu専用: 旧製品リンクのアイコン */
.menu-page .legacy-link::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f054"; /* > アイコン */
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.menu-page .legacy-link:hover::after {
    transform: translateX(4px);
}

/* モダンなフォームコントロール */
.menu-page .form-control-modern {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #fafafa; /* フォーカスなし時は薄めの灰色 */
}

.menu-page .form-control-modern:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    background-color: #ffffff; /* フォーカス時は白 */
}

/* シリアルナンバー入力の各パーツ */
.menu-page .serial-part {
    flex: 1;
    width: 120px;
    padding: 0.75rem 1rem;
    border: 2px solid #9ca3af;
    border-radius: 12px;
    font-size: 22px;
    color: var(--text-primary);
}

.menu-page .serial-part:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* シリアルナンバーの区切り文字 */
.menu-page .serial-separator {
    font-size: 20px;
    font-weight: bold;
    color: #6b7280;
    margin: 0 0.25rem;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* シェイクアニメーション（エラー時など） */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* =====================================
   レスポンシブ対応（menu7ページ）
   ===================================== */

@media (max-width: 768px) {
    .menu7-page .search-form {
        margin-left: 0;
        padding: 0 1rem;
    }

    .menu7-page .search-input-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .menu7-page .serial-input-fields {
        width: 100%;
    }

    .menu7-page .search-btn {
        width: 100%;
    }

    .menu7-page .search-error-message {
        width: 100%;
    }
}

/* ===== ダウンロードページ専用スタイル ===== */

/* ベースカラー定義 */
:root {
    --primary-blue: #3698FF;
    --primary-blue-light: #e3f2fd;
    --primary-blue-lighter: #f0f9ff;
    --primary-blue-dark: #1976d2;
    --primary-blue-darker: #0d47a1;
}

/* コンテナ - 余白調整 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

/* カード共通スタイル - 余白調整 */
.card {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    margin-bottom: 2rem;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

/* お客様のご利用状況カード - 統合デザイン */
.customer-status-card {
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    margin-bottom: 2rem;
    padding: 0;
    box-shadow: 0 4px 20px rgba(47, 128, 237, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* カードヘッダー */
.customer-status-header {
    background: var(--primary-blue);
    color: white;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.customer-status-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.customer-status-title i {
    font-size: 1.75rem;
    opacity: 0.9;
}

/* カードボディ */
.customer-status-body {
    padding: 2rem;
}

/* 製品情報グリッド - 改良版 */
.product-info-grid {
    display: flex;
    width: 100%;
    gap: 1.25rem;
}

/* 各情報アイテム */
.info-item {
    background-color: var(--primary-blue-lighter);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.info-item.product-name {
    flex: 2;
}

.info-item.serial {
    flex: 3;
}

.info-item.rev {
    flex: 1;
}

.info-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

/* ラベルと値の配置 */
.info-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom:1em;
}

.info-label i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.info-value {
    color: #111827;
    font-size: 1.125rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* シリアルナンバーの強調表示 */
.serial-number-display-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-blue-lighter) 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 10px;
    padding: 0.625rem 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    color: var(--primary-blue-dark);
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(47, 128, 237, 0.15);
}

.serial-number-icon-modern {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.serial-number-empty-modern {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-color: #ffa726;
    color: #f57c00;
}

.btn-serial-input-modern {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(47, 128, 237, 0.2);
}

/* Revisionバージョンの特別表示 */
.revision-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-weight: 600;
}

.revision-latest {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

/* シリアルナンバー未入力時の表示 */
.serial-number-empty-display {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

/* 未入力状態の枠のスタイル */
.info-item.serial-empty {
    background-color: #fafafa;
    border: 2px dashed #e0e0e0;
}

.info-item.rev-unknown {
    background-color: #fafafa;
    border: 2px dashed #e0e0e0;
}

/* 統合されたシリアルナンバー入力促進エリア */
.serial-input-prompt-integrated {
    background-color: #fffbeb;
    border: 2px solid #fde68a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.prompt-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.prompt-icon {
    width: 40px;
    height: 40px;
    background-color: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.prompt-text {
    flex: 1;
}

.prompt-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #92400e;
    margin: 0 0 0.5rem 0;
}

.prompt-description {
    font-size: 0.95rem;
    color: #78350f;
    margin: 0;
    line-height: 1.5;
}

.prompt-action {
    display: flex;
    justify-content: center;
}

.btn-serial-input-integrated {
    background-color: #ea580c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-serial-input-integrated:hover {
    background-color: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

/* サービス期限情報の統合 */
.service-info-integrated {
    padding-top: 2rem;
}

/* 統合したカードのスタイル追加 */
.full-width-dd {
    grid-column: 1 / -1;
}

.service-limit-info {
    margin-top: 0.5rem;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.service-limit-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom:0.75em;
}

.service-limit-title {
    font-size: 18px;
    font-weight: bold;
}

.service-limit-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-limit-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.75rem;
}

/* 通知アイコン */
.notification-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expire-date {
    color: #7f1d1d;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expire-date-label {
    margin-right: 0.5rem;
    font-weight: 500;
}

.expire-date .date {
    font-size: 1.25em;
    font-weight: bold;
}

.expire-date .dateText {
    margin-left:auto;
}

.progress-container {
    background-color: #e5e7eb;
    height: 12px;
    border-radius: 5px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 12px;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* グリーンパターン - 残り日数が60日以上 */
.notification-green {
    background-color: #f0fdf4;
    border: 2px solid #86efac;
}

.notification-green .notification-icon {
    background-color: #22c55e;
}

.notification-green .service-limit-title {
    color: #15803d;
}

.notification-green .expire-date {
    color: #166534;
}

.notification-green .expire-date-label {
    color: #15803d;
}

.notification-green .progress-bar {
    background-color: #22c55e;
}

.btn-green {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(20, 184, 166, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-green:hover {
    background-color: #d1fae5;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(20, 184, 166, 0.3);
}

.btn-green:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(20, 184, 166, 0.2);
}

/* イエローパターン - 残り日数が60日未満 */
.notification-yellow {
    background-color: #fffbeb;
    border: 2px solid #fde68a;
}

.notification-yellow .notification-icon {
    background-color: #f59e0b;
}

.notification-yellow .service-limit-title {
    color: #b45309;
}

.notification-yellow .expire-date {
    color: #78350f;
}

.notification-yellow .expire-date-label {
    color: #92400e;
}

.notification-yellow .progress-bar {
    background-color: #f59e0b;
}

/* オレンジボタン - 既存スタイルを維持 */
.btn-orange {
    background-color: #ea580c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-orange:hover {
    background-color: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(234, 88, 12, 0.3);
}

.btn-orange:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
}

/* レッドパターン - 期限切れ */
.notification-red {
    background-color: #fee2e2;
    border: 2px solid #fca5a5;
}

.notification-red .notification-icon {
    background-color: #ef4444;
}

.notification-red .service-limit-title {
    color: #b91c1c;
}

.notification-red .expire-date {
    color: #7f1d1d;
}

.notification-red .expire-date-label {
    color: #b91c1c;
}

.notification-red .progress-bar {
    background-color: #ef4444;
}

.btn-red {
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-red:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(220, 38, 38, 0.3);
}

.btn-red:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

/* ユーザー登録促進用の青いデザイン */
.notification-blue {
    background-color: #f0f7ff;
    border: 2px solid #91caff;
}

.notification-blue .notification-icon {
    background-color: #0077cc;
}

.notification-blue .service-limit-title {
    color: #0077cc;
}

.btn-blue {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 119, 204, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-blue:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 119, 204, 0.3);
}

.btn-blue:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 119, 204, 0.2);
}

.expire-date-emphasis {
    font-weight: bold;
    color: #0077cc;
}

/* セクションタイトル - 余白調整 */
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #111827;
    margin: 2rem 0 1.25rem 0;
}

/* 最新アップデート - 余白調整 */
.update-card {
    border-radius: 12px;
    overflow: hidden;
    /* border: 1px solid #d1d5db; */
    margin-bottom: 2rem;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(47, 128, 237, 0.1);
    transition: box-shadow 0.2s ease;
}

/* .update-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
} */

.update-header {
    background-color: #f0f9ff;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.update-badge {
    color: white;
    border-radius: 20px;
    padding: 0.375rem 1rem;
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.update-badge.installed {
    background-color: #10b981;
}

.update-badge.download-required {
    background-color: #ea580c;
}

.update-version {
    color: #0c4a6e;
    font-size: 16px;
    font-weight: bold;
    margin-left: 1rem;
}

.update-date {
    color: #6b7280;
    font-size: 14px;
}

.download-required-badge {
    background-color: #ea580c;
    color: white;
    border-radius: 20px;
    padding: 0.375rem 0.875rem;
    font-size: 13px;
    font-weight: bold;
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.update-body {
    padding: 1.5rem;
}

.update-changes-title {
    font-size: 14px;
    font-weight: bold;
    color: #374151;
    margin-bottom: 1.25rem;
}

.update-changes-list {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.update-changes-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.875rem;
    color: #4b5563;
}

.update-changes-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4b5563;
}

.update-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.875rem;
}

.btn-outline {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.625rem 1.25rem;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

/* 無効（disabled/aria-disabled）状態の見た目を明確化 */
.btn-outline:disabled,
.btn-outline[disabled],
.btn-outline[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
    filter: grayscale(15%);
    pointer-events: none; /* ホバー効果やクリックを無効化 */
}

/* 無効状態でのホバー時も見た目を変えない（保険） */
.btn-outline:disabled:hover,
.btn-outline[disabled]:hover,
.btn-outline[aria-disabled="true"]:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    transform: none;
}

/* 過去のバージョン - モダンなアコーディオン */
.versions-header {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(47, 128, 237, 0.1);
}

.versions-header:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.versions-title {
    font-size: 16px;
    font-weight: bold;
    color: #374151;
}

/* モダンなシェブロンアイコン */
.toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.toggle-icon i {
    font-size: 16px;
}

.toggle-icon.expanded {
    transform: rotate(180deg);
}

.versions-container {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.version-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

/* .version-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
} */

.version-item:last-child {
    margin-bottom: 0;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.version-name {
    font-size: 14px;
    font-weight: bold;
    color: #374151;
}

.version-date {
    color: #6b7280;
    font-size: 14px;
}

.current-badge {
    background-color: rgba(16, 185, 129, 0.2);
    color: #047857;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    margin-left: 1rem;
}

/* ダウンロードボタンの「条件未満足」演出（黄色系） */
.btn-download-locked {
    background-color: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    overflow: hidden;
}

.btn-download-locked::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.6s ease;
}

.btn-download-locked:hover {
    background-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

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

.lock-icon-animate {
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* 制限メッセージの改良（黄色系） */
.download-restriction-card {
    background-color: #fffbeb;
    border: 2px solid #fde68a;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.restriction-icon {
    width: 40px;
    height: 40px;
    background-color: #f59e0b;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 1rem;
}

.restriction-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.restriction-message-text {
    color: #78350f;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* アップデートカードの改良（斜め線なし） */
.update-card-locked {
    position: relative;
    opacity: 0.95;
}

/* バッジの改良（黄色系） */
.locked-badge {
    background-color: #f59e0b;
    color: white;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-size: 12px;
    font-weight: bold;
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.locked-badge i {
    font-size: 10px;
}

/* インストール済みの場合のスタイル */
.installed-status-card {
    background-color: #f0f9ff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.installed-icon {
    width: 48px;
    height: 48px;
    background-color: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.installed-content h3 {
    color: #0c4a6e;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

.installed-content p {
    color: #0369a1;
    margin: 0;
    font-size: 1rem;
}

/* アップデート手順 */
.update-procedure {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 2rem;
}

.procedure-icon {
    font-size: 20px;
    color: #6b7280;
}

.procedure-content {
    flex: 1;
}

.procedure-title {
    font-size: 14px;
    font-weight: bold;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.procedure-description {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

/* その他のファイル */
.other-files-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.file-card {
    background-color: #ffffff;
    /* border: 1px solid #d1d5db; */
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(47, 128, 237, 0.1);
}

/* .file-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
} */

.file-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.zip-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-name {
    font-size: 16px;
    font-weight: bold;
    color: #111827;
}

.file-description {
    font-size: 13px;
    color: #6b7280;
}

.btn-download {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.2);
}

.btn-download:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
}

/* ヘルプカード */
.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.help-card {
    background-color: #ffffff;
    /* border: 1px solid #e5e7eb; */
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(47, 128, 237, 0.1);
}

.help-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.help-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.help-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 10px;
    color: white;
}

.help-icon.procedure {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.help-icon.manual {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.help-title {
    font-size: 16px;
    font-weight: bold;
    color: #111827;
}

.help-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-link:hover {
    color: #2563eb;
}

/* フッター */
.custom-footer {
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 1.25rem;
    font-size: 12px;
    margin-top: 3rem;
}

/* ダウンロード禁止ボタンのスタイル */
.btn-forbidden {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    font-weight: bold;
    cursor: not-allowed;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
    opacity: 0.9;
}

.btn-forbidden:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    opacity: 1;
}

.btn-forbidden:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-forbidden .forbidden-icon {
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: relative;
}

.btn-forbidden .forbidden-icon::before {
    content: "🚫";
    position: absolute;
    font-size: 16px;
}

.restriction-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: subtle-pulse 3s ease-in-out infinite;
}

.restriction-message .warning-icon {
    width: 28px;
    height: 28px;
    background-color: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }
}

.expired-badge {
    background-color: #ef4444;
    color: white;
    border-radius: 12px;
    padding: 0.25rem 0.875rem;
    font-size: 12px;
    font-weight: bold;
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
}

.lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    color: #ef4444;
    margin-right: 0.375rem;
    font-size: 10px;
    font-weight: bold;
}

/* 保守関連メッセージのスタイル */
.support-required-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    font-size: 14px;
    color: #b91c1c;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.support-required-message span:first-child {
    flex-shrink: 0;
    margin-top: 2px;
}

/* シリアル入力モーダルのスタイル */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-header-primary {
    background-color: #e3f2fd;
    color: #1976d2;
    border-bottom: 1px solid #bbdefb;
}

.modal-title {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 2rem;
}

.form-control-modern {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-control-modern:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-label-modern {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.serial-input-group {
    margin-bottom: 1.5rem;
}

.serial-input-fields {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.serial-part {
    flex: 1;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.serial-separator {
    font-size: 20px;
    font-weight: bold;
    color: #6b7280;
    margin: 0 0.25rem;
}

.serial-error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 14px;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

.serial-error-message i {
    flex-shrink: 0;
    color: #dc2626;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.serial-help-text {
    font-size: 14px;
    color: #6b7280;
    margin-top: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.btn-primary-modern {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-primary-modern:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary-modern {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-secondary-modern:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

/* シリアル入力ボタン（製品情報エリア用） */
.btn-serial-input {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.375rem 0.875rem;
    font-size: 12px;
    font-weight: 600;
    margin-left: 0.625rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-serial-input:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.btn-serial-input:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* 郵便マークSVGアイコンのスタイル */
.postal-mark-svg {
    width: 28px;
    height: 28px;
    fill: white;
}

#serialInputModal .modal-dialog {
    max-width: 650px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .product-row.top-row,
    .product-row.bottom-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .edition-btn {
        max-width: 180px;
    }
}

@media (min-width: 768px) {
    .customer-status-body {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .modern-container {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .search-wrapper {
        padding: 1.25rem 1.5rem;
        border-radius: 10px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .product-grid-container {
        gap: 1rem;
    }

    .product-row.top-row,
    .product-row.bottom-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .edition-list {
        padding: 1rem;
        align-items: stretch;
    }

    .edition-btn {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        max-width: none;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .customer-status-header {
        padding: 1.25rem 1.5rem;
    }

    .customer-status-title {
        font-size: 1.25rem;
    }

    .info-item {
        padding: 1rem 1.25rem;
    }

    .serial-number-display-modern {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .expire-date {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-limit-details {
        gap: 1rem;
    }

    .service-limit-actions {
        justify-content: center;
    }

    .service-limit-actions a {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    .progress-container {
        width: 100%;
    }

    .update-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .update-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-outline,
    .btn-blue {
        width: 100%;
        text-align: center;
    }

    .version-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .version-info {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .other-files-container {
        grid-template-columns: 1fr;
    }

    .file-card {
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

    .update-procedure {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .download-restriction-card {
        padding: 1.25rem;
    }

    .serial-input-prompt-integrated {
        padding: 1.25rem;
        margin-top: 1.25rem;
        gap: 1rem;
    }

    .prompt-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .prompt-title {
        font-size: 1.125rem;
    }

    .prompt-description {
        font-size: 0.875rem;
    }

    .btn-serial-input-integrated {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .product-info-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .info-item {
        flex: none;
    }

    .serial-number-empty-display {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .product-row.top-row,
    .product-row.bottom-row {
        grid-template-columns: 1fr;
    }

    .edition-list {
        align-items: stretch;
    }

    .edition-btn {
        max-width: none;
    }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}




/* ===== サポート終了ページ専用スタイル（既存download.cssの末尾に追加） ===== */
/* 注意: 既存のクラス（.container, .info-item等）との競合を避けるため、専用クラスのみを追加 */

/* サポート終了統合カード */
.support-end-status-card {
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    margin-bottom: 2rem;
    padding: 0;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* カードヘッダー - サポート終了警告デザイン */
.support-end-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.support-end-header::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: warningPulse 4s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.support-end-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.support-end-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.support-end-message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.support-end-date-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* カードボディ */
.support-end-body {
    padding: 2rem;
}

/* 製品情報セクション */
.product-info-section {
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: bold;
    color: #374151;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-subtitle-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

/* サポート終了ページでのproduct-info-grid（既存と区別） */
.support-end-status-card .product-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* サポート終了ページでのinfo-item（既存の定義を上書きしないよう詳細度を上げる） */
.support-end-status-card .info-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.support-end-status-card .info-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.support-end-status-card .info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-end-status-card .info-value {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1e293b;
    word-break: break-all;
}

.support-end-status-card .info-value.support-ended {
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* 最新版アップグレード推奨セクション */
.upgrade-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #7dd3fc;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.upgrade-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: upgradeGlow 6s ease-in-out infinite;
}

@keyframes upgradeGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.upgrade-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.upgrade-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.upgrade-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0c4a6e;
    margin: 0 0 0.5rem 0;
}

.upgrade-content .upgrade-subtitle {
    color: #0369a1;
    font-size: 1rem;
    margin: 0;
}

.upgrade-description {
    font-size: 1rem;
    color: #075985;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.upgrade-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #1e40af;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.upgrade-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.8);
    color: #0ea5e9;
    border: 2px solid #0ea5e9;
    border-radius: 10px;
    padding: 0.875rem 1.875rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary-modern:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
}

/* 旧バージョン案内セクション - 控えめなデザイン */
.legacy-version-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
}

.legacy-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.legacy-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
}

.legacy-content h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #374151;
    margin: 0 0 0.25rem 0;
}

.legacy-content .legacy-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.legacy-description {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legacy-warning {
    background: #fef3cd;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.legacy-warning-icon {
    color: #f59e0b;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.legacy-warning-text {
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.5;
}

.legacy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.legacy-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.legacy-feature-icon {
    width: 16px;
    height: 16px;
    background: #9ca3af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    flex-shrink: 0;
}

.legacy-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-legacy {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-legacy:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.btn-legacy-secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-legacy-secondary:hover {
    background: #f9fafb;
    color: #374151;
}

/* アップグレード推奨セクション */
.upgrade-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #7dd3fc;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.upgrade-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: upgradeGlow 6s ease-in-out infinite;
}

@keyframes upgradeGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.upgrade-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.upgrade-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.upgrade-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0c4a6e;
    margin: 0 0 0.5rem 0;
}

.upgrade-content .upgrade-subtitle {
    color: #0369a1;
    font-size: 1rem;
    margin: 0;
}

.upgrade-description {
    font-size: 1rem;
    color: #075985;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.upgrade-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #1e40af;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.upgrade-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.8);
    color: #0ea5e9;
    border: 2px solid #0ea5e9;
    border-radius: 10px;
    padding: 0.875rem 1.875rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary-modern:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
}

/* サポート終了ページ専用のレスポンシブ対応 */
@media (max-width: 768px) {
    .support-end-header {
        padding: 1.5rem;
    }

    .support-end-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .support-end-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .support-end-body {
        padding: 1.5rem;
    }

    .support-end-status-card .product-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .upgrade-section {
        padding: 1.5rem;
    }

    .upgrade-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .upgrade-actions {
        flex-direction: column;
    }

    .btn-primary-modern,
    .btn-secondary-modern {
        justify-content: center;
    }

    .legacy-version-section {
        padding: 1.25rem;
    }

    .legacy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

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

    .legacy-actions {
        flex-direction: column;
    }

    .btn-legacy,
    .btn-legacy-secondary {
        justify-content: center;
    }
}


    /* ユーザー登録未完了通知 */
    .user-registration-notice {
        background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
        border: 2px solid #3b82f6;
        border-radius: 16px;
        padding: 2rem;
        margin: 1.5rem 0;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    }

    .notice-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .notice-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        animation: noticeIconPulse 2s ease-in-out infinite;
        flex-shrink: 0;
    }

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

    .notice-content h3 {
        color: #1e40af;
        font-size: 1.4rem;
        font-weight: bold;
        margin: 0 0 0.5rem 0;
    }

    .notice-content .notice-subtitle {
        color: #3730a3;
        font-size: 1rem;
        margin: 0;
    }

    .notice-description {
        color: #1e40af;
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .registration-benefits {
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .registration-benefits h4 {
        color: #1e40af;
        font-size: 1.1rem;
        font-weight: bold;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .benefits-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.75rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .benefit-item {
        display: flex;
        align-items: baseline;
        gap: 0.75rem;
        font-size: 0.95rem;
        color: #1e40af;
    }

    .benefit-icon {
        width: 20px;
        height: 20px;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 10px;
        flex-shrink: 0;
    }

    .notice-actions {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-register-now {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: white;
        border: none;
        border-radius: 10px;
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
        font-weight: bold;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .btn-register-now:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
        color: white;
    }

    .registration-time-note {
        color: #6b7280;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* レスポンシブ対応 */
    @media (max-width: 768px) {
        .notice-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }

        .notice-icon {
            width: 45px;
            height: 45px;
            font-size: 20px;
        }

        .notice-content h3 {
            font-size: 1.2rem;
        }

        .benefits-list {
            grid-template-columns: 1fr;
        }

        .notice-actions {
            flex-direction: column;
            align-items: stretch;
        }

        .btn-register-now {
            text-align: center;
            justify-content: center;
        }

        .registration-time-note {
            justify-content: center;
        }
    }

    /* ユーザー登録モーダル専用スタイル */
    .modal-header-primary {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: white;
        border-bottom: none;
        border-radius: 12px 12px 0 0;
    }

    .modal-header-primary .btn-close {
        filter: invert(1);
        opacity: 0.8;
    }

    .modal-header-primary .btn-close:hover {
        opacity: 1;
    }

    .modal-dialog {
        max-width: 600px;
    }

    /* モーダル内コンテンツ */
    .user-registration-modal-content {
        background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
        border: 2px solid #3b82f6;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 2rem;
        margin: 0;
    }

    .modal-notice-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .modal-notice-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        animation: modalIconPulse 2s ease-in-out infinite;
        flex-shrink: 0;
    }

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

    .modal-notice-content h3 {
        color: #1e40af;
        font-size: 1.4rem;
        font-weight: bold;
        margin: 0 0 0.5rem 0;
    }

    .modal-notice-subtitle {
        color: #3730a3;
        font-size: 1rem;
        margin: 0;
    }

    .modal-notice-description {
        color: #1e40af;
        font-size: 1rem;
        margin-bottom: 0;
        line-height: 1.6;
    }

    .modal-benefits-list {
        padding-left: 1.5rem;
        margin: 1rem 0 0 0;
        color: #075985;
    }

    .modal-benefits-list li {
        margin-bottom: 0.25rem;
    }

    /* モーダルボタン */
    .btn-primary-modern {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        border: none;
        color: white;
        padding: 0.75rem 2rem;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-primary-modern:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
        color: white;
        text-decoration: none;
    }

    .btn-secondary-modern {
        background: #6b7280;
        border: none;
        color: white;
        padding: 0.75rem 2rem;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-secondary-modern:hover {
        background: #4b5563;
        color: white;
        transform: translateY(-1px);
    }

    /* レスポンシブ対応 */
    @media (max-width: 768px) {
        .modal-notice-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }

        .modal-notice-icon {
            width: 45px;
            height: 45px;
            font-size: 20px;
        }

        .modal-notice-content h3 {
            font-size: 1.2rem;
        }
    }



    /* 保守期限切れUI - デザイン案5（完全版） */

    /* 共通の赤色スタイル */
    .service-limit-info.notification-red-unified {
        background-color: #fee2e2;
        border: 2px solid #fca5a5;
    }

    .service-limit-info.notification-red-unified .service-limit-header {
        border-bottom: 2px solid #f87171;
        padding-bottom: 1rem;
    }

    .service-limit-info.notification-red-unified .notification-icon {
        background-color: #ef4444;
    }

    .service-limit-info.notification-red-unified .service-limit-title {
        color: #b91c1c;
    }

    .service-limit-info.notification-red-unified .expire-date {
        color: #7f1d1d;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .service-limit-info.notification-red-unified .expire-date-label {
        color: #b91c1c;
        font-weight: 500;
    }

    .service-limit-info.notification-red-unified .expire-date .dateText {
        margin-left: auto;
    }

    .service-limit-info.notification-red-unified .progress-bar {
        background-color: #ef4444;
    }

    /* 説明欄を強調（グラデーションなし・薄い赤の単色） */
    .service-limit-info.notification-red-unified .support-required-message {
        background: #fef2f2;
        border-left: 4px solid #ef4444;
        border-radius: 6px;
        padding: 1rem 1.25rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
    }

    .service-limit-info.notification-red-unified .support-required-message span:first-child {
        color: #ef4444;
        font-size: 18px;
        flex-shrink: 0;
    }

    .service-limit-info.notification-red-unified .support-required-message span:last-child {
        color: #7f1d1d;
        font-size: 15px;
        line-height: 1.6;
    }

    /* 1年未満用の説明欄（1年以上と同じ背景色に統一） */
    .service-limit-info.notification-red-unified.expired-under-year .support-required-message {
        background: #fef2f2;
        border-left: 4px solid #f43f5e;
        font-weight: 500;
    }

    .service-limit-info.notification-red-unified.expired-under-year .support-required-message span:last-child {
        color: #881337;
    }

    /* 1年以上用の説明欄（薄い赤） */
    .service-limit-info.notification-red-unified.expired-over-year .support-required-message {
        background: #fef2f2;
        border-left: 4px solid #dc2626;
        font-weight: 500;
    }

    .service-limit-info.notification-red-unified.expired-over-year .support-required-message span:last-child {
        color: #991b1b;
    }

    /* レスポンシブ */
    @media (max-width: 768px) {
        .service-limit-info.notification-red-unified .service-limit-header {
            flex-direction: column;
            text-align: center;
        }

        .service-limit-info.notification-red-unified .expire-date {
            flex-wrap: wrap;
        }
    }
