/**
 * ============================================================================
 * style.css
 * ============================================================================
 * 
 * 使用ページ: 全ページ共通（グローバルスタイル）
 * 
 * 説明:
 * システム全体で使用される共通スタイル定義
 * - 基本ボディスタイル
 * - 編集画面用ボタン（保存・キャンセル）
 * - フォント設定
 * 
 * ============================================================================
 */

/* ============================================================================
 * 基本スタイル
 * ============================================================================
 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0 0 40px 0;
    background: #fafafa;
    color: #222;
    overflow-y: auto;
    padding-top: 64px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* モバイル端末最適化 */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
        padding-bottom: 20px;
        font-size: 14px;
    }
}

/* ============================================================================
 * 編集画面用ボタンスタイル
 * 使用箇所: 保存・キャンセルボタン（各種編集画面）
 * ============================================================================
 */
.edit-btn {
    font-size: 15px;
    padding: 10px 26px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.15s;
    margin: 0 12px;
    display: inline-block;
    text-align: center;
}

/* 保存ボタン */
.edit-btn-save {
    background: #7AC66C;
    color: white;
}

/* キャンセルボタン */
.edit-btn-cancel {
    background: #ccc;
    color: #333;
    text-decoration: none;
}

.edit-btn:hover {
    opacity: 0.85;
}

/* レスポンシブボタンスタイル */
@media (max-width: 768px) {
    .edit-btn {
        font-size: 14px;
        padding: 8px 20px;
        margin: 0 8px;
        width: auto;
        min-width: 80px;
        box-sizing: border-box;
    }
}

/* ============================================================================
 * パスワード入力フィールドスタイル
 * 使用箇所: ログイン画面、パスワード変更画面、強制パスワード変更画面
 * ============================================================================
 */
.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 40px;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
    z-index: 1;
}

.password-toggle-icon:hover {
    opacity: 1;
}

/* モバイル端末最適化 */
@media (max-width: 768px) {
    .password-wrapper input[type="password"],
    .password-wrapper input[type="text"] {
        padding-right: 38px;
    }
    
    .password-toggle-icon {
        width: 20px;
        height: 20px;
        right: 10px;
    }
}
