/* pellaten 会員の画面（/member/・/mypage/）と、詳細ページの「修正・削除を申請する」の見た目（2026-11-01）
   サイトの style_pc.css・style_sp.css の上に重ねる。ボタン・リンクの色は青 #006dcc（2026-11-01 ユーザー指示でオレンジから変更）。会員の画面の外枠は templates/member/layout.php */
section.member { max-width: 760px; line-height: 1.8; }
section.member h2 { margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #006dcc; font-size: 18px; font-weight: bold; }
section.member a { color: #006dcc; text-decoration: underline; }
section.member a.btn { text-decoration: none; }

/* 入力欄（会員の画面の m_input と、掲載の申請の field_html の両方） */
.m_form label, .m_form .m_field { display: block; margin-bottom: 18px; font-weight: bold; }
.m_form label small, .m_form .m_field small { display: block; font-weight: normal; font-size: 12px; color: #777; }
.m_form input[type=text], .m_form input[type=email], .m_form input[type=password], .m_form input[type=tel],
.m_form input[type=url], .m_form input[type=date], .m_form input[type=number], .m_form select { height: 38px; line-height: 38px; margin-top: 4px; font-size: 15px; font-weight: normal; }
.m_form textarea { height: auto; min-height: 120px; line-height: 1.6; padding: 6px; margin-top: 4px; font-size: 15px; font-weight: normal; }
.m_form input[type=file] { display: block; margin-top: 6px; font-weight: normal; }
.m_form fieldset { margin-bottom: 18px; padding: 8px 14px 0; border: 1px solid #ddd; border-radius: 6px; }
.m_form legend { padding: 0 4px; font-weight: bold; }
/* reset.css が em を vertical-align: top にしていて「必須」が上にずれるので、ラベルの文字と中央をそろえる */
.m_label { display: inline-flex; align-items: center; }
.m_label em, .m_form .req { vertical-align: middle; line-height: 1.5;  margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: #fde8e8; color: #c62828; font-size: 11px; font-style: normal; font-weight: bold; }
.m_check { display: flex !important; align-items: flex-start; gap: 6px; font-weight: normal !important; }
.m_check input { margin-top: 7px; }
.m_hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.m_actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.m_links { text-align: center; }   /* リンクだけの段落（ボタン・リンクは中央寄せ。2026-11-01 ユーザー指示） */
section.member button.btn, section.member a.btn { cursor: pointer; padding: 10px 22px !important; font-size: 15px !important; color: #fff !important; background-color: #006dcc; border-color: #006dcc; }
section.member button.btn:hover, section.member a.btn:hover { background-color: #00509a; border-color: #00509a; }
section.member button.m_danger, section.member a.btn.m_danger { background-color: #c62828; border-color: #c62828; }
section.member button.m_danger:hover, section.member a.btn.m_danger:hover { background-color: #9e1f1f; border-color: #9e1f1f; }
.m_link { padding: 0; border: 0; background: none; color: #006dcc; text-decoration: underline; cursor: pointer; font-size: inherit; }
.m_inline { display: inline; }
.m_buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.m_buttons a.btn { padding: 8px 16px !important; }

/* お知らせ・枠 */
.m_flash { margin-bottom: 16px; padding: 10px 14px; border: 1px solid; border-radius: 6px; font-size: 14px; }
.m_flash.ok { border-color: #a5d6a7; background: #edf7ed; color: #1b5e20; }
.m_flash.warn { border-color: #ffcc80; background: #fff6e5; color: #7a4a00; }
.m_flash.err { border-color: #ef9a9a; background: #fdecea; color: #8e1c1c; }
.m_flash ul, .m_list { margin: 4px 0 0 20px; list-style: disc; }
.m_box, .m_target { margin-bottom: 20px; padding: 16px 18px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa; }
.m_note { color: #666; font-size: 13px; }
/* マイページの下だけの専用ナビ（core.php の mem_nav） */
#main section.member nav.m_tabs { width: auto; max-width: none; height: auto; overflow: visible; margin: 0 0 24px; }   /* サイトの #main nav（幅 1000px・高さ 66px）を打ち消す */
.m_hello { margin: 0 0 6px; text-align: right; font-size: 13px; color: #666; }
.m_tabs ul { display: flex; margin: 0; padding: 0; list-style: none; border-bottom: 3px solid #006dcc; }
.m_tabs li { flex: 1; margin: 0; }
.m_tabs li form { margin: 0; height: 100%; }
section.member .m_tabs a, .m_tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; min-height: 44px; padding: 8px 6px; border: 1px solid #cfe0f3; border-bottom: 0; border-radius: 6px 6px 0 0; background: #f2f7fc; color: #006dcc; font-size: 14px; font-weight: bold; text-decoration: none; line-height: 1.3; cursor: pointer; }
.m_tabs li + li a, .m_tabs li + li button { margin-left: 0; }
.m_tabs ul { gap: 4px; }
section.member .m_tabs a:hover, .m_tabs button:hover { background: #e1edf9; color: #00509a; }
section.member .m_tabs a.on { background: #006dcc; border-color: #006dcc; color: #fff; }
.m_tabs button { color: #555; background: #f5f5f5; border-color: #ddd; font-family: inherit; }
.m_tabs button:hover { background: #ebebeb; color: #333; }
.m_pre { white-space: pre-wrap; word-break: break-word; }
.m_nowrap { white-space: nowrap; }
.m_thumb { max-width: 320px; max-height: 240px; border: 1px solid #ddd; border-radius: 6px; }

/* 表 */
.m_table { width: 100%; margin-bottom: 16px; font-size: 14px; }
.m_table th { width: 9em; }
.m_diff tr.changed td { background: #fff6e5; }
.m_diff tr.changed td:last-child { font-weight: bold; }
.m_badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: bold; white-space: nowrap; }
.m_badge.pending { background: #e3f2fd; color: #0d47a1; }
.m_badge.returned { background: #fff3e0; color: #8a4b00; }
.m_badge.rejected { background: #fdecea; color: #8e1c1c; }
.m_badge.approved { background: #e8f5e9; color: #1b5e20; }
.m_badge.withdrawn { background: #eee; color: #555; }
.m_hist { margin-left: 20px; list-style: disc; font-size: 14px; }
.m_pager { display: flex; justify-content: center; gap: 16px; }

/* 詳細ページの「この掲載の修正・削除を申請する」（会員機能のある環境だけ出る） */
p.member_apply { max-width: 1000px; margin: 0 auto 40px; padding: 0 5%; text-align: right; font-size: 13px; }
p.member_apply a { color: #006dcc; }

@media screen and (max-width: 999px) {
  section.member { max-width: none; }
  section.member .m_tabs a, .m_tabs button { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 2px; }
  .m_tabs i { font-size: 18px; }
  .m_table th { width: 6.5em; }
  .m_diff th, .m_diff td { font-size: 13px; padding: 6px; }
}
section.member a:hover, .m_link:hover { color: #00509a; }

/* ボタンと説明を縦に並べたメニュー（申請の入口・種類ごとの申請・会員情報。2026-11-02） */
.m_menu { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid #e0e0e0; }
.m_menu li { display: flex; align-items: center; gap: 20px; padding: 16px 4px; border-bottom: 1px solid #e0e0e0; }
section.member .m_menu a.btn { flex: 0 0 240px; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; margin: 0; text-align: center; }
.m_menu_desc { flex: 1; font-size: 14px; line-height: 1.7; }
.m_menu_desc p { margin: 0; }
.m_menu_desc p + p { margin-top: 6px; }
.m_menu_st { font-size: 13px; font-weight: bold; }

/* パンくず */
.m_crumbs ol { display: flex; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; }
.m_crumbs li + li::before { content: "\203A"; margin: 0 8px; color: #999; }
.m_crumbs span { color: #555; }

/* 修正・削除の申請で掲載を選ぶ画面 */
.m_search { display: flex; gap: 8px; margin: 0 0 12px; }
.m_search input[type=search] { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; }
section.member .m_search button.btn { margin: 0; white-space: nowrap; }
section.member .m_pick a.btn { padding: 4px 14px !important; font-size: 13px !important; }
.m_table.m_pick th { width: auto; }

@media screen and (max-width: 999px) {
  .m_menu li { flex-direction: column; align-items: stretch; gap: 10px; }
  section.member .m_menu a.btn { flex: none; width: 100%; }
}

/* ログインの「パスワードを忘れた方」（パスワード欄のすぐ下、左寄せ。2026-11-02 ユーザー指示） */
.m_form p.m_forgot { margin: -8px 0 20px; text-align: left; font-size: 13px; }
