* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Hiragino Sans', sans-serif;
  background: #f0f2f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 28px;
  color: #1e8e3e;
}

.subtitle {
  color: #666;
  font-size: 14px;
}

/* ナビゲーション */
.nav {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.nav a {
  color: #1e8e3e;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
}

.nav a:hover, .nav a.active {
  background: #e6f4ea;
}

/* ツールバー(LP一覧) */
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.filter-group {
  display: flex;
  gap: 8px;
  flex: 1;
}

.filter-group input, .filter-group select {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.filter-group input:focus, .filter-group select:focus {
  outline: none;
  border-color: #1e8e3e;
}

.filter-group button {
  padding: 8px 16px;
  background: #1e8e3e;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: #1e8e3e;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #0d652d;
}

.btn-small {
  display: inline-block;
  padding: 4px 10px;
  background: #e0e0e0;
  color: #333 !important;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  margin-right: 4px;
}

.btn-small:hover {
  background: #d0d0d0;
}

.btn-danger {
  background: #fce8e6;
  color: #d93025 !important;
  border-color: #f8c7c2;
}

.btn-danger:hover {
  background: #f8c7c2;
}

.btn-cancel {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  color: #666 !important;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

/* フォーム */
.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
  color: #555;
}

.form-row label.inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
}

.form-row input[type="text"],
.form-row input[type="url"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #1e8e3e;
}

.form-row small {
  display: block;
  color: #888;
  font-size: 12px;
  margin-top: 4px;
}

.required {
  color: #d93025;
  margin-left: 4px;
}

.section-title {
  font-size: 16px;
  margin: 24px 0 12px;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 6px;
}

.paths-container {
  margin-bottom: 12px;
}

.path-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.path-row .path-input {
  flex: 0 0 200px;
}

.path-row .desc-input {
  flex: 1;
}

.path-row input {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* チェックフォーム */
.check-form {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.check-form .hint {
  display: block;
  color: #888;
  font-size: 12px;
  margin-top: 8px;
}

.input-group {
  display: flex;
  gap: 12px;
}

.input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: #1e8e3e;
}

.input-group button,
.history-controls button {
  padding: 12px 24px;
  background: #1e8e3e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.input-group button:hover,
.history-controls button:hover {
  background: #0d652d;
}

.input-group button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* チェック結果 */
.results {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.results h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.hidden {
  display: none;
}

.overall-status {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
}

.overall-status.ok {
  background: #e6f4ea;
  color: #1e8e3e;
}

.overall-status.warning {
  background: #fef7e0;
  color: #e37400;
}

.overall-status.error {
  background: #fce8e6;
  color: #d93025;
}

/* チェック項目 */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.check-item:hover {
  background: #f8f9fa;
}

.check-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.check-body {
  flex: 1;
}

.check-name {
  font-weight: bold;
  font-size: 14px;
  color: #555;
}

.check-message {
  font-size: 14px;
  margin-top: 2px;
}

.check-details {
  display: none;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Consolas', monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

.check-details.open {
  display: block;
}

/* 履歴 */
.history {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.history h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.history-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.history-controls input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.history-controls input:focus {
  outline: none;
  border-color: #1e8e3e;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #e0e0e0;
  font-size: 13px;
  color: #666;
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

tbody tr:hover {
  background: #f8f9fa;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.badge.ok {
  background: #e6f4ea;
  color: #1e8e3e;
}

.badge.warning {
  background: #fef7e0;
  color: #e37400;
}

.badge.error {
  background: #fce8e6;
  color: #d93025;
}

/* ローディング */
.loading {
  text-align: center;
  padding: 24px;
  color: #666;
}

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #ddd;
  border-top-color: #1e8e3e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
