/* ===================================================
   PMC Digital Wallet — 共通スタイル
   ベースデザイン: ユーザー提示 transfer.html 準拠
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a3499;
  --sky:        #62bde4;
  --gold:       #d4af37;
  --navy-dark:  #0f2070;
  --navy-light: #2545c0;
  --sky-light:  #a8ddf4;
  --gold-light: #f0d87a;
  --bg:         #f0f4fb;
  --card:       #ffffff;
  --text:       #1a1a2e;
  --muted:      #6b7a99;
  --border:     #dde3f0;
  --success:    #1db97c;
  --error:      #e03b3b;
  --shadow:     0 4px 24px rgba(26,52,153,0.10);
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 60%, #1e3fa8 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(26,52,153,0.18);
}

.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.sidebar-logo .brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.sidebar-logo .brand span { color: var(--gold); }
.sidebar-logo  {
  text-align: center;
  font-size: 0.7rem;
  color: var(--sky-light);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.pmc-logo-large {
  display: block;
  margin: 0 auto;
}

.sidebar-user {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user .user-label {
  font-size: 0.68rem;
  color: var(--sky-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.sidebar-user .user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
}
.sidebar-user .account-type {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.65rem;
  background: rgba(212,175,55,0.2);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 20px;
  padding: 2px 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sidebar-balance {
  margin: 12px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px;
}
.balance-label {
  font-size: 0.68rem;
  color: var(--sky-light);
  letter-spacing: 0.5px;
}
.balance-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
}

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section-label {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 24px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border-left-color: var(--sky);
}
.nav-item.active {
  background: rgba(98,189,228,0.15);
  color: #fff;
  border-left-color: var(--gold);
}
.nav-item i { width: 18px; text-align: center; font-size: 0.9rem; }

/* ===== MAIN ===== */
.main {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(26,52,153,0.06);
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-left h1 { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-btn {
  width: 36px; height: 36px;
  border: none;
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.header-btn:hover { background: var(--navy); color: #fff; }
.hamburger { display: none; }

/* Content */
.content { padding: 32px; flex: 1; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Card */
.card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-header .icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.card-header h2 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.card-header p { font-size: 0.75rem; color: var(--muted); margin-top: 1px; }
.card-body { padding: 24px; }

/* Form */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.form-label .required { color: var(--error); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,52,153,0.08);
}
.form-control::placeholder { color: #aab0c0; }
select.form-control { cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,52,153,0.28);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e8c440);
  color: #fff;
}
.btn-gold:hover { opacity: 0.9; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
}
.btn-outline:hover { background: var(--bg); }
.btn-full { width: 100%; }
.btn:disabled {
  background: #c5cce0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Notice */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.6;
}
.notice.info { background: rgba(98,189,228,0.10); border: 1px solid rgba(98,189,228,0.25); color: #1a5f8a; }
.notice.gold { background: rgba(212,175,55,0.10); border: 1px solid rgba(212,175,55,0.25); color: #7a5f00; }
.notice.success { background: rgba(29,185,124,0.08); border: 1px solid rgba(29,185,124,0.25); color: #0f7a50; }
.notice.error { background: rgba(224,59,59,0.08); border: 1px solid rgba(224,59,59,0.25); color: #b02020; }
.notice i { margin-top: 2px; flex-shrink: 0; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,60,0.55);
  z-index: 999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(26,52,153,0.25);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-header-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.modal-header p  { font-size: 0.75rem; color: var(--muted); }
.modal-body  { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px 22px;
  display: flex;
  gap: 12px;
}

/* Account type badges */
.acc-type-badge {
  display: inline-block;
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.acc-type-badge.personal  { background: rgba(98,189,228,0.15); color: #1a6fa8; border: 1px solid rgba(98,189,228,0.4); }
.acc-type-badge.corporate { background: rgba(212,175,55,0.15); color: #8a6d00; border: 1px solid rgba(212,175,55,0.4); }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}
.sidebar-overlay.show { display: block; }

/* Responsive */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .hamburger { display: flex; }
  .content { padding: 20px 16px; }
}
