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

body {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', 'Rounded Mplus 1c', 'Arial Rounded MT Bold', sans-serif;
  background-color: #f5f6fa;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  border-radius: 0 0 20px 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(120, 120, 120, 0.13);
  position: relative;
  overflow-x: auto;
}

.setting-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #666;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.top-buttons-single {
  width: 100%;
  margin-bottom: 10px;
}
.top-buttons-single .order-btn {
  width: 100%;
  font-size: 1.2rem;
  height: 80px;
  border-radius: 18px;
}
.top-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.top-buttons .product-btn, .top-buttons .store-btn {
  flex: 1;
  height: 70px;
  font-size: 1rem;
  border-radius: 15px;
}

.order-btn, .product-btn {
  flex: 1;
  height: 80px;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(120,120,120,0.18);
  transition: transform 0.2s;
}

.order-btn {
  background: linear-gradient(135deg, #E57373, #C44536);
}

.product-btn {
  background: linear-gradient(135deg, #FFB86B, #E09E3E);
  color: #5B3A0B;
}

.store-btn {
  width: 100%;
  height: 80px;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #6C8CD5, #5B7DB1);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(120,120,120,0.18);
  margin-bottom: 20px;
  transition: transform 0.2s;
}

.store-desc {
  font-size: 12px;
  font-weight: normal;
  opacity: 0.9;
}

.analytics {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  padding-bottom: 50px;
}

.analytics-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 16px;
}

.value {
  font-weight: bold;
  color: #5B7DB1;
}

.detail-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: #6C8CD5;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(120,120,120,0.18);
  transition: transform 0.2s;
}

.order-btn:hover, .product-btn:hover, .store-btn:hover, .detail-btn:hover {
  transform: translateY(-2px);
}

.setting-btn:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .container {
    padding: 15px;
  }
  
  .order-btn, .product-btn, .store-btn {
    height: 70px;
    font-size: 16px;
  }
}

.header {
  width: 100%;
  max-width: 400px;
  margin: 30px auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f6fa;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 4px 20px rgba(120,120,120,0.13);
  padding: 0 20px;
  height: 60px;
  position: relative;
}

.header-title {
  font-size: 22px;
  font-weight: bold;
  color: #5B7DB1;
}

.hamburger-btn {
  background: #b0b8c1;
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(120,120,120,0.13);
  transition: background 0.2s;
}

.hamburger-btn:hover {
  background: #5B7DB1;
}

.header-logo {
  height: 44px;
  margin: 0 0 0 2px;
  display: block;
}

.section-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 18px;
  color: #333;
}

.add-connection-btn {
  background: #6C8CD5;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(120,120,120,0.10);
  transition: background 0.2s;
}
.add-connection-btn:hover {
  background: #5B7DB1;
}

.connection-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-bottom: 10px;
}
.connection-table th, .connection-table td {
  padding: 6px 4px;
  text-align: center;
  font-size: 0.90rem;
  min-width: 48px;
}
.connection-table th {
  background: #f5f6fa;
  color: #5B7DB1;
  font-weight: bold;
  border-radius: 10px 10px 0 0;
  font-size: 0.92rem;
}
.connection-table td {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(120,120,120,0.07);
}
.status-connected {
  color: #6C8CD5;
  font-weight: bold;
}
.status-disconnected {
  color: #E57373;
  font-weight: bold;
}
.edit-btn, .delete-btn {
  background: #f5f6fa;
  color: #5B7DB1;
  border: none;
  border-radius: 14px;
  padding: 6px 16px;
  font-size: 0.95rem;
  font-weight: bold;
  margin-right: 4px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(120,120,120,0.08);
  transition: background 0.2s, color 0.2s;
}
.edit-btn:hover {
  background: #6C8CD5;
  color: #fff;
}
.delete-btn:hover {
  background: #E57373;
  color: #fff;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  vertical-align: middle;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e0e4ea;
  border-radius: 22px;
  transition: .3s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(120,120,120,0.10);
  transition: .3s;
}
.toggle-switch input:checked + .slider {
  background: #6C8CD5;
}
.toggle-switch input:checked + .slider:before {
  transform: translateX(16px);
  background: #fff;
}

.icon-btn {
  background: #f5f6fa;
  color: #5B7DB1;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 2px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(120,120,120,0.08);
  transition: background 0.2s, color 0.2s;
}
.icon-btn.edit-btn:hover {
  background: #6C8CD5;
  color: #fff;
}
.icon-btn.delete-btn:hover {
  background: #E57373;
  color: #fff;
}

.mall-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  margin: 0 auto;
  box-shadow: 0 1px 4px rgba(120,120,120,0.10);
}
.mall-icon.rakuten {
  background: linear-gradient(135deg, #e60012 60%, #b71c1c 100%);
}
.mall-icon.yahoo {
  background: linear-gradient(135deg, #ff0033 60%, #c62828 100%);
}
.mall-icon.amazon {
  background: linear-gradient(135deg, #ff9900 60%, #b46900 100%);
}
.mall-icon.futureshop {
  background: linear-gradient(135deg, #00b8b8 60%, #008080 100%);
}
.mall-icon.ebay {
  background: linear-gradient(135deg, #0064d2 60%, #222 100%);
}
.mall-icon.qoo10 {
  background: linear-gradient(135deg, #00b8e6 60%, #005577 100%);
}
.mall-icon.shopify {
  background: linear-gradient(135deg, #95bf47 60%, #5e8e3e 100%);
}

.order-status-bar {
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  position: relative;
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
}
.order-status-bar::after {
  content: '⇄';
  position: absolute;
  right: 8px;
  top: 8px;
  color: #b0b8c1;
  font-size: 1.1rem;
  opacity: 0.7;
  pointer-events: none;
  display: block;
}
.status-flow {
  display: flex;
  align-items: center;
  min-width: 540px;
}
.status-item {
  background: #e6eaff;
  border-radius: 18px;
  padding: 8px 10px 4px 10px;
  margin: 0 4px;
  font-size: 0.98rem;
  font-weight: bold;
  color: #5B7DB1;
  text-align: center;
  min-width: 60px;
  box-shadow: 0 2px 8px rgba(120,120,180,0.10);
  transition: background 0.2s, color 0.2s;
}
.status-item:hover {
  background: #d0d8f6;
  color: #3742fa;
}
.status-count {
  display: block;
  font-size: 0.95rem;
  font-weight: normal;
  color: #6C8CD5;
  margin-top: 4px;
}
.status-arrow {
  font-size: 1.3rem;
  color: #b0b8c1;
  margin: 0 4px;
}
.status-dash {
  font-size: 1.3rem;
  color: #b0b8c1;
  margin: 0 4px;
}
@media (max-width: 600px) {
  .status-flow {
    min-width: 650px;
  }
  .status-item {
    min-width: 48px;
    font-size: 0.92rem;
    padding: 6px 6px 2px 6px;
  }
}
.order-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-bottom: 10px;
}
.order-table th, .order-table td {
  padding: 10px 8px;
  text-align: center;
  font-size: 1.02rem;
}
.order-table th {
  background: #e6eaff;
  color: #5B7DB1;
  font-weight: bold;
  border-radius: 14px 14px 0 0;
}
.order-table td {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(120,120,180,0.08);
}
.order-table td .detail-btn.cute {
  margin: 0 auto;
  display: block;
  position: static;
}
.detail-btn.cute {
  background: #6C8CD5;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 7px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(120,120,180,0.13);
  transition: background 0.2s;
}
.detail-btn.cute:hover {
  background: #5B7DB1;
}

.order-card-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.order-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(120,120,180,0.10);
  padding: 18px 16px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.order-label {
  color: #5B7DB1;
  font-weight: bold;
  font-size: 0.98rem;
  margin-right: 8px;
}
.order-value {
  color: #333;
  font-size: 1.02rem;
  word-break: break-all;
}
.order-detail-btn-row {
  justify-content: flex-end;
  margin-top: 8px;
}
.order-detail-btn-row .detail-btn.cute {
  margin: 0;
  position: static;
}

.order-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.order-search-input {
  border: none;
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 1rem;
  background: #f5f6fa;
  color: #333;
  box-shadow: 0 1px 4px rgba(120,120,180,0.07);
  outline: none;
  width: 228px;
}
.order-search-status {
  border: none;
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 1rem;
  background: #f5f6fa;
  color: #5B7DB1;
  box-shadow: 0 1px 4px rgba(120,120,180,0.07);
  outline: none;
}
.order-search-btn {
  background: #6C8CD5;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(120,120,180,0.13);
  transition: background 0.2s;
}
.order-search-btn:hover {
  background: #5B7DB1;
}

.order-btn i, .product-btn i, .store-btn i {
  font-size: 1.3em;
  margin-right: 8px;
  vertical-align: middle;
}
.store-btn i {
  margin-bottom: 2px;
}

.add-product-btn {
  background: #6C8CD5;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(120,120,180,0.13);
  transition: background 0.2s;
}
.add-product-btn i {
  margin-right: 8px;
}
.add-product-btn:hover {
  background: #5B7DB1;
}
.product-card-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.product-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(120,120,180,0.10);
  padding: 18px 16px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.product-label {
  color: #5B7DB1;
  font-weight: bold;
  font-size: 0.98rem;
  margin-right: 8px;
}
.product-value {
  color: #333;
  font-size: 1.02rem;
  word-break: break-all;
}
.product-detail-btn-row {
  justify-content: flex-end;
  margin-top: 8px;
}
.product-detail-btn-row .detail-btn.cute {
  margin: 0;
  position: static;
} 
