        body {
            font-family: sans-serif;
            background: #f4f1e9;
            margin: 0;
            padding-top: 220px;
            color: #333;
        }

        .container {
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }

        .header-fixed {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background: rgba(244, 241, 233, 0.95);
            padding: 10px 0;
            border-bottom: 2px solid #4a69bd;
        }

        .box {
            background: white;
            padding: 10px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            display: inline-block;
            width: 95%;
            max-width: 800px;
        }

        .title-area {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin: 5px 0;
        }

        .x-share-btn img {
            width: 24px;
            height: 24px;
            vertical-align: middle;
        }

        input[type="text"],
        input[type="password"] {
            width: 95%;
            padding: 8px;
            margin: 3px 0;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 13px;
            box-sizing: border-box;
        }

        .btn {
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            font-size: 12px;
        }

        .btn:disabled {
            opacity: 0.3;
        }

        .btn-preview {
            background: #4a69bd;
            color: white;
        }

        .btn-save {
            background: #218c74;
            color: white;
            width: 100%;
            margin-top: 5px;
        }

        .btn-update {
            background: #27ae60;
            color: white;
        }

        .btn-del {
            background: #e74c3c;
            color: white;
        }

        .msg {
            font-size: 0.8rem;
            color: #d35400;
            background: #fff8e1;
            padding: 3px 10px;
            border-radius: 4px;
            display: inline-block;
            margin: 5px;
        }

        .log-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 15px;
            padding: 10px;
        }

        .card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            border-bottom: 3px solid #4a69bd;
        }

        .card-header {
            background: #444;
            color: white;
            padding: 5px 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            font-weight: bold;
        }

        .op-check {
            transform: scale(1.3);
            cursor: pointer;
        }

        .card img {
            width: 100%;
            display: block;
            background: #333;
        }

        .prog-bar {
            padding: 5px;
            font-size: 1.1rem;
            letter-spacing: 3px;
            background: #fdfdfd;
            white-space: nowrap;
            overflow: hidden;
        }

        .prog-item {
            cursor: pointer;
            display: inline-block;
            width: 1.1em;
            text-align: center;
        }

        .mark-0 {
            color: #ccc;
        }

        .mark-1 {
            color: #2ecc71;
        }

        .mark-2 {
            color: #e74c3c;
        }

        .btn-ans {
            font-size: 1.2rem;
            filter: grayscale(100%);
            opacity: 0.2;
            text-decoration: none;
        }

        .btn-ans.active {
            filter: grayscale(0%);
            opacity: 1;
        }

        .card-body {
            padding: 8px;
            text-align: left;
            font-size: 0.75rem;
        }

        .footer {
            margin-top: 40px;
            font-size: 11px;
            color: #999;
            padding: 20px;
            border-top: 1px solid #ddd;
        }

        /* ランダム表示エリア */
        .random-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
            padding: 10px 15px;
            margin: 0px auto 15px;
            max-width: 800px;
            width: 95%;
        }

        .random-btns {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-bottom: 12px;
        }

        .btn-rand {
            background: #e67e22;
            color: white;
            font-size: 14px;
            padding: 10px 28px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-weight: bold;
        }

        /* カード状態別背景色 */
        .card.state-0 {
            background: white;
        }

        .card.state-1 {
            background: #eafaf1;
        }

        .card.state-2 {
            background: #fdf0ed;
        }

        /* 管理画面用：非表示カードのスタイル */
        .card.is-hidden-card {
            opacity: 0.6;
            background: #eee !important;
        }
        .card.is-hidden-card::after {
            content: "非表示中";
            position: absolute;
            top: 40px;
            right: 10px;
            background: rgba(0,0,0,0.6);
            color: white;
            padding: 2px 8px;
            font-size: 10px;
            border-radius: 4px;
            pointer-events: none;
        }

        /* ユーザー用ラジオボタン */
        .user-status {
            display: flex;
            justify-content: center;
            gap: 10px;
            padding: 6px 4px;
            font-size: 12px;
            background: #fafafa;
            border-top: 1px solid #eee;
        }

        .user-status label {
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 3px;
        }

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

        .random-card {
            width: 100%;
            max-width: 360px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            border-bottom: 4px solid #e67e22;
        }

        .random-card img {
            width: 100%;
            display: block;
        }

        .random-card-body {
            background: white;
            padding: 8px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .random-title {
            font-weight: bold;
            font-size: 14px;
        }

        .random-date {
            font-size: 10px;
            color: #999;
        }

        .random-fraction {
            font-size: 22px;
            font-weight: bold;
            color: #4a69bd;
            letter-spacing: 1px;
        }

        .random-ans-btn {
            font-size: 1.4rem;
            text-decoration: none;
        }

        .random-ans-btn.inactive {
            filter: grayscale(100%);
            opacity: 0.2;
            pointer-events: none;
        }

        .random-placeholder {
            color: #bbb;
            font-size: 14px;
            padding: 10px 0;
        }

        /* ユーザー画面専用の検索エリア */
        .search-container {
            margin: 10px auto;
            width: 95%;
            max-width: 800px;
        }

        .search-input {
            width: 100% !important;
            padding: 12px !important;
            font-size: 16px !important;
            /* iPhoneのズーム防止 */
            border: 2px solid #4a69bd !important;
            border-radius: 8px !important;
            margin-bottom: 10px !important;
            box-sizing: border-box;
        }

        .filter-chips {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 6px;
            margin-bottom: 5px;
        }

        .chip {
            padding: 6px 14px;
            background: #fff;
            border: 1px solid #4a69bd;
            border-radius: 20px;
            color: #4a69bd;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
        }

        .chip:active {
            background: #4a69bd;
            color: white;
        }

        .chip.active {
            background: #4a69bd;
            color: white;
        }
