@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=DM+Sans:wght@500;700&display=swap');

:root {
  --blue: #0064D2;
  --blue-light: #EEF4FF;
  --red: #E53238;
  --yellow: #F5AF02;
  --green: #86B817;
  --dark: #0a0f1e;
  --text: #1a1a2e;
  --text-sub: #555;
  --bg: #f7f9fc;
  --white: #fff;
  --border: #e0e7ef;
  --warn-bg: #fff8e1;
  --ok-bg: #f0fdf4;
  --sidebar-w: 260px;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo .brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.sidebar-logo .site-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  line-height: 1.4;
}

.sidebar-section {
  padding: 16px 0 8px;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0 20px 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

.sidebar-item.active {
  background: rgba(0,100,210,0.2);
  color: white;
  border-left-color: var(--blue);
}

.sidebar-item .num {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  min-width: 20px;
}

/* ===== MAIN ===== */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ===== TOP BAR ===== */
.topbar {
  height: 5px;
  background: linear-gradient(90deg, var(--red) 25%, var(--blue) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 32px 48px 24px;
}

.page-header .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.page-header p {
  color: var(--text-sub);
  font-size: 14px;
  margin-top: 6px;
}

/* ===== CONTENT ===== */
.content {
  padding: 40px 48px 80px;
  max-width: 860px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--blue-light);
  border-bottom: 1px solid var(--border);
}

.card-num {
  background: var(--blue);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
}

.card-body {
  padding: 24px;
}

/* ===== STEP LIST ===== */
.step-list {
  list-style: none;
}

.step-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.step-list li:last-child { border-bottom: none; }

.step-list .sn {
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== WARN / OK BOXES ===== */
.warn, .ok {
  border-radius: 8px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 14px;
}

.warn {
  background: var(--warn-bg);
  border-left: 4px solid var(--yellow);
}

.warn-title {
  font-weight: 700;
  color: #92400E;
  margin-bottom: 4px;
}

.ok {
  background: var(--ok-bg);
  border-left: 4px solid var(--green);
}

.ok-title {
  font-weight: 700;
  color: #166534;
  margin-bottom: 4px;
}

/* ===== BULLET LIST ===== */
.bullet-list {
  list-style: none;
  margin: 8px 0;
}

.bullet-list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  border-bottom: 1px dashed var(--border);
}

.bullet-list li:last-child { border-bottom: none; }

.bullet-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ===== FORBIDDEN LIST ===== */
.forbidden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.forbidden-item {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: #991b1b;
}

/* ===== INDEX PAGE ===== */
.index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

.index-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.index-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(0,100,210,0.1);
  transform: translateY(-1px);
}

.index-card .ic-num {
  background: var(--blue);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.index-card .ic-body { flex: 1; }

.index-card .ic-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2px;
}

.index-card .ic-title {
  font-size: 15px;
  font-weight: 700;
}

.index-card .ic-desc {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.index-card .ic-arrow {
  color: var(--blue);
  font-size: 20px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-sub);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}

/* ===== LOGIN ===== */
.login-body {
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,100,210,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(134,184,23,0.08) 0%, transparent 50%);
  z-index: 0;
}

.login-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,100,210,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,100,210,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.login-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%; max-width: 420px;
  backdrop-filter: blur(10px);
}

.login-card .ebay-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--red) 25%, var(--blue) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%);
  border-radius: 2px;
  margin-bottom: 32px;
}

.login-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.login-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}

.login-field {
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-field input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: white;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.login-field input:focus {
  border-color: var(--blue);
}

.login-field input::placeholder {
  color: rgba(255,255,255,0.25);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.login-btn:hover { background: #0050a8; }

.login-error {
  background: rgba(229,50,56,0.15);
  border: 1px solid rgba(229,50,56,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fca5a5;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

/* ===== MOBILE ===== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  background: var(--dark);
  border: none;
  color: white;
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .sidebar.open { transform: translateX(0); }

  .main { margin-left: 0; }

  .page-header { padding: 60px 20px 20px; }

  .content { padding: 24px 20px 60px; }

  .forbidden-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== FEEDBACK FORM ===== */
.feedback-section {
  margin-top: 40px;
  border-top: 2px dashed var(--border);
  padding-top: 32px;
}

.feedback-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.feedback-section p {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.feedback-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.feedback-form textarea:focus {
  border-color: var(--blue);
}

.feedback-btn {
  margin-top: 10px;
  padding: 10px 24px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.feedback-btn:hover { background: #0050a8; }

.feedback-thanks {
  display: none;
  background: var(--ok-bg);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: #166534;
  margin-top: 12px;
}
