/* ベーススタイル */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  padding: 20px;
  background: #f0f2f5; /* 落ち着いた薄グレー */
  color: #333;
  line-height: 1.6;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50; /* 濃いブルーグレー */
  font-weight: 600;
}

/* タブ */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  gap: 10px;
}

.tabs button {
  padding: 10px 18px;
  font-size: 1rem;
  border: none;
  background-color: #4a90e2; /* 落ち着いたブルー */
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.tabs button:hover {
  background-color: #357ab8; /* 濃いブルー */
  transform: translateY(-2px);
}

/* タブコンテンツ */
.tab {
  background: white;
  padding: 25px;
  border-radius: 10px;
  max-width: 700px;
  margin: 0 auto 40px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.tab:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* フォーム要素 */
form input[type="file"],
form input[type="text"],
form textarea,
form select {
  display: block;
  width: 90%;
  margin: 12px 0;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fafafa;
  transition: border-color 0.3s ease, background 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #4a90e2;
  background: #fff;
  outline: none;
}

/* ボタン */
form button {
  background-color: #43a047; /* モスグリーン */
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

form button:hover {
  background-color: #2e7d32;
  transform: translateY(-2px);
}

/* フォーム要素 */
input[type="file"],
input[type="text"],
textarea,
select {
  display: block;
  width: 90%;
  margin: 12px 0;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fafafa;
  transition: border-color 0.3s ease, background 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #4a90e2;
  background: #fff;
  outline: none;
}

button {
  background-color: #43a047; /* モスグリーン */
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* 画像 */
#qrResult img,
#qrFileResult img,
#chartResult img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  border-radius: 8px;
}

/* -------- レスポンシブ対応 -------- */
@media (max-width: 1024px) {
  .tab {
    max-width: 90%;
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
    gap: 12px;
  }

  .tabs button {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
  }

  .tab {
    padding: 18px;
  }

  h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }

  h1 {
    font-size: 1.4rem;
  }

  form input,
  form textarea,
  form select {
    font-size: 0.95rem;
    padding: 8px 10px;
  }

  form button {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
}
