/* =========================================================
   1. サイト全体のベース設定（全ページ共通の土台）
========================================================= */
body {
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS Mincho E", serif; 
    color: #5e4c41; 
    margin: 0;
}

.fs-l-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

/* ページ全体を中央に寄せるための大枠 */
.fs-l-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
    padding: 60px 20px; 
    box-sizing: border-box;
}



/* 1. メッセージ（下記の内容を〜）を中央寄せ、上下余白 */
.fs-body-register .fs-c-inputInformation__message {
    text-align: center !important;
    margin-top: 30px !important;
    margin-bottom: 40px !important;
}

/* 2. フォーム全体を600px幅にして画面中央に配置（共通の枠線デザイン） */
.fs-body-register #fs_form {
    background-color: #ffffff;
    border: 1px solid #d4c6b5;
    padding: 50px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 40px;
    box-shadow: 0 4px 15px rgba(94, 76, 65, 0.1);
    position: relative;
    box-sizing: border-box;
}

/* 枠の内側の二重線デザイン */
.fs-body-register #fs_form::before {
    content: "";
    position: absolute;
    top: 5px; right: 5px; bottom: 5px; left: 5px;
    border: 1px solid #d4c6b5;
    pointer-events: none;
}

/* 3. 見えない余白のリセットと中央配置の土台 */
.fs-body-register fieldset,
.fs-body-register .fs-c-inputInformation__field {
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fs-body-register .fs-c-inputTable {
    width: 100% !important;
    margin: 0 auto !important;
}
/* =========================================================
   パスワード入力エリア：「表示/隠す」ボタンの装飾
========================================================= */

/* 1. 「表示/隠す」文字を絶対配置するための基準位置を設定 */
.fs-c-inputGroup {
    position: relative !important;
}

.fs-c-inputGroup > button {
    border: none;
}

/* =========================================================
   パスワード認証（シークレットルーム等）ページのスタイル統一
   ========================================================= */

/* 1. ページ上部にタイトルを生成 */
.fs-body-auth .fs-l-main {
    padding-top: 150px !important;
    position: relative;
}
.fs-body-auth .fs-l-main::before {
    content: "パスワード認証";
    position: absolute; top: 60px; left: 0; width: 100%;
    text-align: center; font-size: 1.8rem; color: #5e4c41; letter-spacing: 0.1em;
    font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
}
.fs-body-auth .fs-l-main::after {
    content: "SECRET ROOM";
    position: absolute; top: 105px; left: 0; width: 100%;
    text-align: center; font-size: 0.8rem; color: #a89a8d; font-family: "Times New Roman", serif; letter-spacing: 0.2em;
}

/* 2. メッセージテキストのデザイン */
.fs-body-auth .fs-c-inputInformation__message {
    text-align: center !important;
    color: #5e4c41 !important;
    margin-bottom: 20px !important;
    font-size: 16px !important;
}

/* 3. フォーム全体を「二重線の箱」にする */
.fs-body-auth #fs_form {
    background-color: #ffffff !important;
    border: 1px solid #d4c6b5 !important;
    padding: 60px 40px !important;
    max-width: 600px !important;
    width: 100% !important;
    margin: 0 auto 80px !important;
    box-shadow: 0 4px 15px rgba(94, 76, 65, 0.1) !important;
    position: relative;
    box-sizing: border-box !important;
}

/* 内側の二重線 */
.fs-body-auth #fs_form::before {
    content: ""; position: absolute; top: 5px; right: 5px; bottom: 5px; left: 5px;
    border: 1px solid #d4c6b5; pointer-events: none; z-index: 10;
}

/* 4. パスワード入力欄のレイアウト */
.fs-body-auth .fs-c-inputGroup {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 350px !important; /* 長すぎないように幅を制限 */
    margin: 0 auto !important;
    z-index: 20;
}

/* 入力ボックス本体 */
.fs-body-auth #fs_input_blackmarketPassword {
    width: 100% !important;
    padding: 15px 90px 15px 15px !important; /* 右側に「表示/非表示」ボタンの余白をあける */
    border: 1px solid #d4c6b5 !important;
    background-color: #fcfaf5 !important;
    font-size: 16px !important;
    color: #5e4c41 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s;
}
.fs-body-auth #fs_input_blackmarketPassword:focus {
    border-color: #5e4c41 !important;
    outline: none !important;
}

/* 5. 「表示/非表示」の切替ボタン（クリックしてクラスが切り替わっても消えないように強化） */
.fs-body-auth .fs-c-inputGroup button {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
    background: transparent !important; /* デフォルトのアイコンを消す */
    border: none !important;
    cursor: pointer !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
}

/* システム標準の目玉アイコンが裏で復活するのを防ぐ */
.fs-body-auth .fs-c-inputGroup button::before {
    display: none !important;
    background-image: none !important;
}

/* 常に「表示 / 非表示」の文字を出し続ける */
.fs-body-auth .fs-c-inputGroup button::after {
    content: "👁" !important;
    font-size: 14px !important;
    color: #8c7b70 !important;
    text-decoration: underline !important;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif !important;
    display: block !important;
    background-image: none !important;
}

/* マウスホバー時の色変化 */
.fs-body-auth .fs-c-inputGroup button:hover::after {
    color: #5e4c41 !important;
}

/* 6. 「入場する」ボタン（茶色くクラシカルに） */
.fs-body-auth .fs-c-button--authenticatePassword {
    display: block !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 30px auto 0 !important; /* 入力欄との間隔 */
    background-color: #5e4c41 !important;
    color: #ffffff !important;
    border: 1px solid #5e4c41 !important;
    padding: 18px 0 !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: normal !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    border-radius: 2px !important;
    box-sizing: border-box !important;
    position: relative;
    z-index: 20;
}

/* マウスホバーで白背景・茶文字に反転 */
.fs-body-auth .fs-c-button--authenticatePassword:hover {
    background-color: #ffffff !important;
    color: #5e4c41 !important;
}

/* 7. スマホ表示時の余白調整 */
@media screen and (max-width: 600px) {
    .fs-body-auth .fs-l-main {
        padding-top: 120px !important;
    }
    .fs-body-auth #fs_form {
        padding: 50px 20px !important;
        margin-bottom: 40px !important;
    }
    .fs-body-auth #fs_input_blackmarketPassword {
        font-size: 1rem !important; /* スマホでは文字が大きすぎないように */
    }
}