.zip-tool-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.zip-tool-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  color: #333;
  text-align: center;
}

.zip-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #444;
}

input[type="file"],
input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.75rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  background-color: #fafafa;
}

input[type="radio"] {
  margin-right: 0.5rem;
}

.zip-password-options {
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #f7f7f7;
}

#password-field {
  margin-bottom: 1rem;
}

.zip-submit-btn {
  background-color: #007cba;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.zip-submit-btn:hover {
  background-color: #005fa3;
}

.zip-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #006400;
  text-align: center;
}

.zip-tool-note {
  background: #f1f8ff;
  border-left: 4px solid #007cba;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #333;
}

.zip-tool-warning {
  background: #fff4e5;
  border-left: 4px solid #ff9900;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #704214;
}

/* タブボタン */
.zip-tool-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.zip-tab-btn {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.zip-tab-btn.active {
  background: #007cba;
  color: white;
  border-color: #007cba;
}

/* パネル */
.zip-tab-panel {
  display: none;
}
.zip-tab-panel.active,
#zip-create-panel,
#zip-unpack-panel {
  display: block;
}

/* 解凍ファイルリスト */
.unzip-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
  list-style-type: disc;
  font-size: 0.95rem;
}

.unzip-list li {
  margin-bottom: 0.5rem;
}

.download-link {
  text-decoration: none;
  color: #007cba;
  font-weight: 500;
}

.download-link:hover {
  text-decoration: underline;
}

.downloaded-item {
  color: #388e3c;
  list-style-type: none;
  padding-left: 0;
}

.download-summary {
  color: #007cba;
  font-size: 1rem;
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #007cba;
}

.zip-option {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #444;
}
.zip-option label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zip-tool-warning {
  background: #fff4e5;
  border-left: 4px solid #ff9900;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: #704214;
}

/* ========== v2.0 新機能スタイル ========== */

/* SVGアイコン共通スタイル */
svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

button svg,
a svg {
  vertical-align: middle;
  margin-right: 4px;
}

/* AES-256バッジ */
.aes-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 暗号化方式選択 */
.encryption-method-options {
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #f0f8ff;
}

.encryption-method-options legend {
  font-weight: 600;
  color: #444;
  padding: 0 0.5rem;
}

/* パスワード入力グループ */
.password-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.password-input-group input[type="text"] {
  flex: 1;
  margin-bottom: 0;
}

/* パスワード強度インジケーター */
.password-strength {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.strength-bar-container {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.strength-bar {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

.strength-text {
  font-size: 0.85rem;
  font-weight: 600;
}

/* コピーボタン */
.copy-btn {
  background-color: #007cba;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.1s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background-color: #005fa3;
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: translateY(0);
}

.copy-btn.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* クリアボタン */
.clear-btn {
  background-color: #757575;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 0.5rem;
  transition: background-color 0.3s ease;
}

.clear-btn:hover {
  background-color: #616161;
}

/* 解凍ボタングループ */
.unzip-btn-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.unzip-btn-group .zip-submit-btn {
  flex: 1;
}

.zip-submit-btn.secondary {
  background-color: #757575;
}

.zip-submit-btn.secondary:hover {
  background-color: #616161;
}

/* プレビュー情報 */
.preview-info {
  background: #f0f8ff;
  border: 1px solid #007cba;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.preview-info h3 {
  margin-top: 0;
  color: #007cba;
  font-size: 1.1rem;
}

.preview-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}

.preview-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.preview-list li:last-child {
  border-bottom: none;
}

.preview-summary {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 2px solid #007cba;
  font-weight: 600;
  color: #007cba;
}

.file-size {
  color: #666;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* ZIP診断結果 */
.diagnose-result {
  margin-top: 1.5rem;
}

.diagnose-card {
  background: white;
  border: 2px solid #007cba;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
}

.diagnose-card h3 {
  margin-top: 0;
  color: #007cba;
  font-size: 1.3rem;
  padding-bottom: 0.5rem;
}

.diagnose-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.diagnose-item:last-child {
  border-bottom: none;
}

.diagnose-item strong {
  color: #444;
}

.security-note {
  background: #e8f5e9;
  border-left: 4px solid #388e3c;
  padding: 1rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.security-note.error {
  background: #ffebee;
  border-left-color: #d32f2f;
}

.security-note p {
  margin: 0.5rem 0;
}

.security-note p:first-child {
  margin-top: 0;
}

.security-note p:last-child {
  margin-bottom: 0;
}

/* エラーメッセージ */
.error-message {
  color: #d32f2f;
  background: #ffebee;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border-left: 4px solid #d32f2f;
}

/* 自動生成パスワード情報 */
.generated-password-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* パスワードダウンロードボタン */
.pw-download-btn {
  display: inline-block;
  background-color: #4caf50;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.pw-download-btn:hover {
  background-color: #45a049;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .zip-tool-container {
    padding: 1rem;
    margin: 1rem;
  }

  .password-input-group {
    flex-direction: column;
  }

  .unzip-btn-group {
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
  }

  .clear-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .zip-tool-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
}
