/**
 * アカウント・マイページ用スタイル
 *
 * static_html/11_pronto_会員情報_ログインor新規.html
 * static_html/12_pronto_会員情報_マイページ（全部).html から転記
 */

/* ==========================================
   UI トランジション
   ========================================== */
.fade-enter {
  animation: fadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   マイページ用フォーム（account.css 単体読み込み時用）
   ========================================== */
.form-input {
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--c-border);
  padding: 0.75rem 1rem;
  font-family: var(--f-sans);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--c-dark);
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: #999;
  font-weight: 300;
}

.form-input:focus {
  border-color: var(--c-dark);
  background-color: #fff;
}

.form-input:disabled {
  background-color: var(--c-bg-alt);
  color: #666;
  cursor: not-allowed;
  border-color: transparent;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231A1A1A%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
}

.form-checkbox,
.form-radio {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--c-dark);
  border-radius: 0;
  outline: none;
  cursor: pointer;
  position: relative;
  background-color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 3px;
}

.form-radio {
  border-radius: 50%;
}

.form-checkbox:checked,
.form-radio:checked {
  background-color: #1B5E3B;
  border-color: #1B5E3B;
}

.form-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.form-radio:checked::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50%;
}

/* ==========================================
   アカウント用ボタン（マイページ共通）
   ========================================== */
.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--c-dark);
  color: white;
  border: 1px solid var(--c-dark);
  padding: 1rem 2rem;
  font-family: var(--f-sans);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  transition: all 0.4s ease;
  cursor: pointer;
  width: 100%;
}

.btn-primary:hover {
  background-color: #1B5E3B;
  border-color: #1B5E3B;
}

.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: transparent;
  color: var(--c-dark);
  border: 1px solid var(--c-dark);
  padding: 1rem 2rem;
  font-family: var(--f-sans);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  transition: all 0.4s ease;
  cursor: pointer;
  width: 100%;
}

.btn-secondary:hover {
  background-color: var(--c-dark);
  color: white;
}

.btn-danger {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: white;
  color: #D32F2F;
  border: 1px solid #D32F2F;
  padding: 1rem 2rem;
  font-family: var(--f-sans);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  transition: all 0.4s ease;
  cursor: pointer;
  width: 100%;
}

.btn-danger:hover {
  background-color: #D32F2F;
  color: white;
}

/* ==========================================
   アカウント用ボタン（.account-flow 内・ログイン等）
   ========================================== */
.account-flow .btn-primary,
.account-flow .btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem 2rem;
  font-family: var(--f-sans);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  transition: all 0.4s ease;
  cursor: pointer;
  width: 100%;
}

.account-flow .btn-primary {
  background-color: var(--c-dark);
  color: white;
  border: 1px solid var(--c-dark);
}

.account-flow .btn-primary:hover {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
}

.account-flow .btn-secondary {
  background-color: white;
  color: var(--c-dark);
  border: 1px solid var(--c-dark);
}

.account-flow .btn-secondary:hover {
  background-color: var(--c-dark);
  color: white;
}

.account-flow .btn-danger {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  color: #D32F2F;
  border: 1px solid #D32F2F;
  padding: 1rem 2rem;
  font-family: var(--f-sans);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  transition: all 0.4s ease;
  cursor: pointer;
}

.account-flow .btn-danger:hover {
  background-color: #D32F2F;
  color: white;
}

/* ==========================================
   パスワードトグル
   ========================================== */
.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--c-dark);
}

/* ==========================================
   マイページ サイドナビ
   ========================================== */
.side-nav-link {
  display: block;
  padding: 1rem;
  border-bottom: 1px solid var(--c-border);
  color: #666;
  transition: all 0.3s ease;
  position: relative;
}

.side-nav-link:hover {
  color: var(--c-dark);
  background-color: white;
}

.side-nav-link.active {
  color: #1B5E3B;
  font-weight: 500;
  background-color: white;
}

.side-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #1B5E3B;
}

/* ==========================================
   ステータスバッジ
   ========================================== */
.badge-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-family: var(--f-sans);
}

.badge-processing {
  background-color: #F2EFE9;
  color: #666;
  border: 1px solid var(--c-border);
}

.badge-shipped {
  background-color: #E8F5E9;
  color: #1B5E3B;
  border: 1px solid #C8E6C9;
}

.badge-delivered {
  background-color: #1B5E3B;
  color: white;
  border: 1px solid #1B5E3B;
}

/* ==========================================
   タイムライン（配送状況）
   ========================================== */
.timeline-container {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.timeline-line {
  position: absolute;
  top: 3.5rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: var(--c-border);
  z-index: 0;
}

.timeline-progress {
  position: absolute;
  top: 3.5rem;
  left: 10%;
  height: 2px;
  background-color: #1B5E3B;
  z-index: 1;
  transition: width 0.5s ease;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
}

.timeline-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: var(--c-bg);
  border: 2px solid var(--c-border);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-step.completed .timeline-dot {
  background-color: #1B5E3B;
  border-color: #1B5E3B;
  color: white;
}

.timeline-step.active .timeline-dot {
  border-color: #1B5E3B;
  background-color: white;
}
