/* ============================
 * 販売店登録フロー / パスワードリセットフロー 共通スタイル
 * /public/manage/common/css/common.css
 * 対象ページ:
 *   register/{index, complete, activate, activated}.blade.php
 *   password-reset/{index, sent, edit, completed}.blade.php
 * ============================ */

/* ---------- Header ---------- */
.l-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: 44px;
    padding: 0 32px;
    background-color: #00C2CC;
}

.l-header__nav {
    display: flex;
}

.l-header__nav-item {
    position: relative;
    padding: 0 1.2em;
    color: #fff;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.3s ease;
}

.l-header__nav-item:hover {
    opacity: 0.8;
    color: #fff;
}

.l-header__nav-item::before,
.l-header__nav-item:last-child::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 10px;
    background-color: #fff;
}

.l-header__nav-item::before {
    left: 0;
}

.l-header__nav-item:last-child::after {
    right: 0;
}

/* ---------- Layout ---------- */
.commonInner {
    max-width: 960px;
    margin: 92px auto;
    padding: 0 20px;
    box-sizing: content-box;
}

.commonBox {
    max-width: 730px;
}

.block {
    border: 1px solid #DDD;
    border-radius: 5px;
}

.block+.block {
    margin-top: 48px;
}

/* ---------- Title ---------- */
.commonTitle {
    margin-bottom: 32px;
    padding: 0 10px 10px 10px;
    border-bottom: 3px solid #00C2CC;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.commonTitleRequired {
    font-size: 14px;
    font-weight: 500;
}

.blockTitle {
    margin-bottom: 0;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid #DDD;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ---------- Text ---------- */
.commonText {
    margin: 48px 12px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.commonText p {
    margin-bottom: 2em;
}

/* ---------- Form ---------- */
.commonForm {
    padding: 0 12px;
}

.commonForm.px-0 {
    padding: 0;
}

.commonForm input,
.commonForm textarea {
    padding: 4px 12px;
    border: 1px solid #DDD !important;
    border-radius: 3px;
}

::placeholder {
    color: #C9C9C9 !important;
    font-size: 14px;
}

:focus {
    outline: none !important;
}

.formItem {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.formItem> :last-child {
    flex-grow: 1;
    font-size: 14px;
}

.formItem.mb-large {
    margin-bottom: 32px;
}

.formLabel {
    flex-shrink: 0;
    width: 140px;
    font-size: 14px;
    font-weight: 500 !important;
}

.commonForm .formLabel {
    margin-top: 5px;
}

.requiredAsterisk {
    color: #E21211;
}

.formInput {
    width: 100%;
}

.formInput.large {
    max-width: 100%;
}

.formInput.medium {
    max-width: 436px;
}

.errorText {
    display: flex;
    margin-top: 0.4em;
    color: #E21211;
    font-size: 0.9em;
}

.errorText::before {
    content: '※';
}

.formNote {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 72px;
    background-color: #D9D9D966;
    font-size: 12px;
    letter-spacing: 0.05em;
}

/* 都道府県ラジオボタン */
.prefectureRadios {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    padding-top: 4px;
}

.prefectureRadio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 400 !important;
    cursor: pointer;
}

.commonForm .prefectureRadio input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0 !important;
    border: none !important;
    cursor: pointer;
}

/* 営業時間 */
.businessHours {
    display: flex;
    align-items: center;
    gap: 12px;
}

.commonForm .businessHours input[type="time"] {
    width: 130px;
    flex-grow: 0;
}

.hoursSeparator {
    font-size: 14px;
    color: #555;
}

/* 画像入力 */
.imageInputWrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.imageInputHeader {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 436px;
    padding: 5px 12px;
    border: 1px solid #DDD;
    border-radius: 3px;
}

.fileSelectButton {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 105px;
    height: 21px;
    margin: 0;
    border: 1px solid #999;
    background-color: #D9D9D9;
    color: #333;
    font-size: 12px;
    font-weight: 400 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fileSelectButton:hover {
    background-color: #F5F5F5;
}

.commonForm .fileSelectButton input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    padding: 0 !important;
    border: none !important;
}

.imageHint {
    font-size: 10px;
}

.imagePreview {
    max-width: 320px;
    max-height: 240px;
    border: 1px solid #DDD;
    object-fit: contain;
}

.imagePreview.small {
    max-width: 180px;
    max-height: 150px;
}

.imagePreviewBox {
    position: relative;
    display: inline-block;
    align-self: flex-start;
}

.imageDeleteButton {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 24px;
    height: 24px;
    padding: 0 0 2px 0;
    border: 1px solid #999;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
}

.imageDeleteButton:hover {
    background-color: #f5f5f5;
}

.imageNotice {
    font-size: 10px;
    letter-spacing: 0.05em;
}

/* ---------- Buttons ---------- */
.commonButton {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 84px;
    height: 32px;
    margin-top: 24px;
    padding: 0 12px;
    border: none;
    border-radius: 3px;
    background-color: #FFAC33;
    color: #002F42;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.commonButton:hover {
    opacity: 0.8;
}

.commonButton.bg-gray {
    background-color: #6c757d;
    color: #fff;
}

.backToLoginButton {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 360px;
    height: 90px;
    padding: 12px 54px;
    border: 2px solid #00C2CC;
    border-radius: 50px;
    background-color: #FFF;
    color: #00C2CC;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.backToLoginButton:hover {
    opacity: 0.8;
    color: #00C2CC;
}

/* ============================
 * ページ別オーバーライド
 * ============================ */

/* 販売店登録（仮登録フォーム） */
.registerIndex .commonTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 仮登録受付完了 / 本登録受付完了 */
.registerComplete .commonInner,
.registerActivated .commonInner,
.registerAdminApproved .commonInner {
    margin: 210px auto;
}

.registerComplete .commonText,
.registerActivated .commonText,
.registerAdminApproved .commonText {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
}

/* 本登録（パスワード設定） */
.registerActivate .formLabel {
    width: 200px;
}

/* パスワードリセット（メアド入力） */
.passwordResetIndex .formLabel {
    width: 160px;
}

/* パスワードリセット受付 / リセット完了 */
.passwordResetSent .commonInner,
.passwordResetCompleted .commonInner {
    margin: 210px auto;
}

.passwordResetSent .commonText,
.passwordResetCompleted .commonText {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
}

/* パスワードリセット（新パスワード設定） */
.passwordResetEdit .formLabel {
    width: 200px;
}


/* ---------- 店舗管理 ---------- */

/* 店舗説明（テキスト＋画像 横並び） */
.introductionContent {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.introductionWrap .introductionContent {
    margin-top: 14px;
}

.introductionText {
    flex: 1;
    min-width: 0;
}

.introductionText textarea {
    width: 100%;
    resize: none;
}

.introductionImage {
    flex-shrink: 0;
}