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

    body {
        font-family: "Noto Sans JP", "Noto Sans", sans-serif;
        margin: 0;
        padding: 0;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        height: 100px;
        border-bottom: 1px solid #ddd;
        box-sizing: border-box;
    }

    .logo {
        height: 100px;
        font-size: 24px;
        font-weight: bold;
        transition: transform 0.3s ease;
    }

    .logo img {
        height: 120%;
        width: auto;
        margin-top: 20px;
    }

    .logo:hover {
        transform: scale(1.02);
    }

    .page-container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .content-area {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -100px;
    }

    /* ログインエリアのカードスタイル */
    .auth-container {
        width: 500px;
        max-width: 95vw;
        padding: 0;
        margin: 0 0 80px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        background: white;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
    }

    .auth-container:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    /* ヘッダー部分 */
    .auth-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 25px 30px;
        border-bottom: none;
    }

    .auth-title {
        font-size: 1.8rem;
        color: white;
        margin: 0;
        text-align: center;
        font-weight: 600;
        align-items: center;
        gap: 12px;
    }

    .auth-subtitle {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
        margin: 8px 0 0 0;
        text-align: center;
        line-height: 1.5;
        font-weight: 400;
    }

    /* コンテンツエリア */
    .auth-content {
        padding: 30px;
    }

    /* レスポンシブ対応 */
    @media (max-width: 960px) {
        .auth-container {
            width: calc(100% - 40px);
            margin: 0 20px 40px;
        }
    }

    @media (max-width: 480px) {
        .auth-container {
            width: calc(100% - 20px);
            margin: 0 10px 40px;
        }

        .auth-header {
            padding: 20px 25px;
        }

        .auth-content {
            padding: 25px;
        }

        .auth-title {
            font-size: 1.5rem;
        }
    }

    /* フォーム入力 */
    .input-group {
        margin-bottom: 20px;
        position: relative;
    }

    .input-group label {
        display: block;
        margin-bottom: 8px;
        color: #34495e;
        font-weight: 500;
        font-size: 14px;
    }

    .input-group input {
        width: 100%;
        padding: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s ease;
        background: #fff;
    }

    .input-group input:hover {
        border-color: #bdc3c7;
    }

    .input-group input:focus {
        border-color: #3498db;
        outline: none;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }

    .error-message {
        color: #e74c3c;
        font-size: 12px;
        margin-top: 5px;
        display: none;
    }

    .input-group.error .error-message {
        display: block;
    }

    /* 送信ボタン */
    .submit-btn {
        background: #3498db;
        color: white;
        padding: 15px 20px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        width: 100%;
        margin-top: 15px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .submit-btn:hover:not(:disabled) {
        background: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    }

    .submit-btn:active:not(:disabled) {
        transform: translateY(1px);
        box-shadow: none;
    }

    .submit-btn:disabled {
        background: #bdc3c7;
        cursor: not-allowed;
        transform: none;
    }

    /* アラート */
    .alert {
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
        font-size: 14px;
        display: none;
    }

    .alert-success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .alert-error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    /* ステップ表示制御 */
    .auth-step {
        display: block;
    }

    .email-step,
    .code-step {
        display: none;
    }

    .email-step.active,
    .code-step.active {
        display: block;
    }

    /* 認証コード送信情報 */
    .code-sent-info {
        background: #e8f4fd;
        border: 1px solid #3498db;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 20px;
        color: #2980b9;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .code-sent-info .fas {
        margin-right: 8px;
    }

    .resend-link {
        background: none;
        border: none;
        color: #3498db;
        cursor: pointer;
        font-size: 12px;
        padding: 5px 10px;
        border-radius: 4px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .resend-link:hover {
        background: rgba(52, 152, 219, 0.1);
        color: #2980b9;
    }

    /* ローディングスピナー */
    .spinner {
        width: 20px;
        height: 20px;
        border: 2px solid #ffffff40;
        border-top: 2px solid #ffffff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* 言語切替 */
    .lang-switcher {
        position: fixed;
        top: 20px;
        right: 20px;
        background: white;
        border-radius: 25px;
        padding: 5px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .lang-btn {
        background: none;
        border: none;
        padding: 8px 15px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 12px;
        transition: all 0.3s ease;
        color: #7f8c8d;
    }

    .lang-btn.active {
        background: #3498db;
        color: white;
    }

    /* 背景画像 */
    .background-image {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-image: url('../../../image-data/bgphoto.jpg');
        background-size: cover;
        background-position: left top;
        opacity: 0.3;
        z-index: -1;
    }

    /* ログアウト通知 */
    .logout-notification {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        animation: slideDown 0.5s ease-out;
    }

    .logout-message {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        border-radius: 8px;
        padding: 12px 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }

    @keyframes slideUp {
        from {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        to {
            opacity: 0;
            transform: translateX(-50%) translateY(-20px);
        }
    }

    /* モバイル対応 */
    @media (max-width: 480px) {
        .auth-container {
            width: calc(100% - 20px);
            max-width: 450px;
            padding: 20px;
            margin: 0 10px 40px;
        }

        .auth-title {
            font-size: 20px;
        }

        .auth-subtitle {
            font-size: 14px;
        }

        header {
            height: auto;
            padding: 15px 20px;
        }

        .logo img {
            height: 80px;
            margin-top: 10px;
        }

        .code-sent-info {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
        }

        .resend-link {
            align-self: flex-end;
            font-size: 11px;
            padding: 4px 8px;
        }
    }
