/* 会員機能用スタイル（後で style.css に結合予定） */

.member_page {
  padding: 120px 20px 80px;
  background: linear-gradient(180deg, #f3f8fc 0%, #ffffff 40%);
  min-height: 60vh;
}

.member_inner {
  max-width: 480px;
  margin: 0 auto;
}

.member_inner_wide {
  max-width: 720px;
}

.member_ttl {
  font-size: 28px;
  font-weight: 700;
  color: #007ec6;
  margin-bottom: 24px;
  text-align: center;
}

.member_intro {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 24px;
}

.member_form .member_label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: #222;
}

.member_input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd9e3 !important;
  border-radius: 4px !important;
  font-size: 16px;
  background: #fff;
}

.member_input_sm {
  width: 100px;
}

.member_tel_row,
.member_form_row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.member_form_row > div {
  flex: 1;
}

.member_ex {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7c8a;
}

.member_caution {
  color: #db694f;
  font-size: 13px;
  margin-top: 6px;
}

.member_check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  font-size: 14px;
}

.member_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  margin-top: 28px;
  border: none;
  border-radius: 28px;
  background: #007ec6;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.member_btn:hover {
  opacity: 0.9;
}

.member_btn_danger {
  background: #c0392b;
}

.mypage_section_delete {
  border-bottom: none;
  margin-top: 8px;
}

.mypage_delete_link {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  color: #8a97a3;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mypage_delete_link:hover {
  color: #c0392b;
}

/* 注文・見積履歴 */
.orders_list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.orders_list_item {
  border-bottom: 1px solid #e5edf3;
}

.orders_list_item a {
  display: block;
  padding: 16px 4px;
  color: inherit;
  text-decoration: none;
}

.orders_list_item a:hover {
  background: #f7fafc;
}

.orders_list_main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 6px;
}

.orders_list_kind {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eff6fc;
  color: #007ec6;
  font-size: 12px;
  font-weight: 700;
}

.orders_list_type {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.orders_list_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: #6b7c8a;
}

.orders_pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.orders_pagination a,
.orders_pagination span {
  display: inline-block;
  padding: 6px 10px;
  color: #007ec6;
}

.orders_pagination .current {
  font-weight: 700;
  color: #222;
}

.orders_detail_h2 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
}

.member_btn_min {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: #007ec6;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.member_sub {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.member_sub a {
  color: #007ec6;
}

.member_message {
  background: #eff6fc;
  color: #007ec6;
  padding: 14px 16px;
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 14px;
}

.member_message_error {
  background: #fdf0ed;
  color: #db694f;
}

.member_muted {
  color: #8a97a3;
  font-size: 13px;
}

.mypage_menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mypage_menu li {
  border-bottom: 1px solid #e5edf3;
}

.mypage_menu a {
  display: block;
  padding: 18px 8px;
  color: #222;
  text-decoration: none;
  font-size: 16px;
}

.mypage_menu a:hover {
  color: #007ec6;
}

.mypage_menu_danger a {
  color: #c0392b;
}

.mypage_section {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5edf3;
}

.mypage_section_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mypage_section_head h2 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.mypage_dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 16px;
  font-size: 14px;
}

.mypage_dl dt {
  color: #6b7c8a;
}

.mypage_dl dd {
  margin: 0;
  color: #222;
}

.delete_notes {
  background: #f7fafc;
  padding: 20px;
  margin-bottom: 28px;
  border-radius: 4px;
}

.delete_notes h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.delete_notes ul {
  padding-left: 1.2em;
  margin: 0;
  line-height: 1.9;
  font-size: 14px;
}

/* 注文フォーム内：会員登録オプション */
.OWP_register_block {
  margin-top: 16px;
  padding: 16px 18px;
  background: #f3f8fc;
  border: 1px solid #d7e6f2;
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%;
}

.OWP_register_block .OWP_register_fields {
  display: none;
  margin-top: 14px;
}

.OWP_register_block.is-open .OWP_register_fields {
  display: block;
}

.OWP_register_check_label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
  color: #222;
}

/* reset.css の appearance:none を維持しつつ、独自チェックUIを当てる */
.OWP_register_checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.OWP_register_checkmark {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  box-sizing: border-box;
  border: 1px solid #cfd9e3;
  border-radius: 3px;
  background: #fff;
  position: relative;
}

.OWP_register_checkbox:checked + .OWP_register_checkmark {
  border-color: #007ec6;
  background: #fff;
}

.OWP_register_checkbox:checked + .OWP_register_checkmark::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #007ec6;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.OWP_register_checkbox:focus-visible + .OWP_register_checkmark {
  outline: 2px solid rgba(0, 126, 198, 0.35);
  outline-offset: 2px;
}

.OWP_register_check_text {
  flex: 1;
}

.OWP_register_pass_label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.OWP_register_pass_ttl {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.OWP_register_pass_input {
  width: 100%;
  max-width: 360px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #cfd9e3 !important;
  border-radius: 3px;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.OWP_register_caution {
  margin-top: 8px;
  color: #db694f;
  font-size: 13px;
}

.nav_member_link {
  margin-left: 12px;
}

@media screen and (max-width: 600px) {
  .member_ttl {
    font-size: 22px;
  }

  .mypage_dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mypage_dl dt {
    margin-top: 8px;
  }

  .member_form_row {
    flex-direction: column;
  }

  .member_input_sm {
    width: 80px;
  }
}
