/* 共通スタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #333;
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  color: #667eea;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
}

h2 {
  color: #764ba2;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5em;
}

p {
  line-height: 1.8;
  margin-bottom: 15px;
  color: #555;
}

.description {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid #667eea;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.result-box {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  margin: 20px 0;
  border: 2px solid #667eea;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: 600;
  color: #555;
}

.result-value {
  font-size: 1.2em;
  color: #667eea;
  font-weight: 700;
}

.recommendation {
  text-align: center;
  font-size: 1.5em;
  font-weight: 700;
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.ad-content {
  background: #fff3cd;
  padding: 25px;
  border-radius: 10px;
  margin: 20px 0;
  border: 2px solid #ffc107;
}

.ad-title {
  font-size: 1.5em;
  color: #856404;
  margin-bottom: 15px;
  font-weight: 700;
}

.ad-item {
  margin: 10px 0;
  padding: 10px 0;
}

.ad-label {
  font-weight: 600;
  color: #856404;
  display: inline-block;
  min-width: 120px;
}

.ad-value {
  color: #333;
}

.ad-link {
  color: #667eea;
  text-decoration: none;
  word-break: break-all;
}

.ad-link:hover {
  text-decoration: underline;
}

.timer {
  text-align: center;
  font-size: 2em;
  color: #dc3545;
  margin: 20px 0;
  font-weight: 700;
}

.links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.links a {
  color: #667eea;
  text-decoration: none;
  display: block;
  margin: 10px 0;
  transition: all 0.3s ease;
}

.links a:hover {
  color: #764ba2;
  transform: translateX(5px);
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #f5c6cb;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #667eea;
  font-size: 1.2em;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .container {
    padding: 25px;
  }
  
  h1 {
    font-size: 1.5em;
  }
  
  h2 {
    font-size: 1.2em;
  }
  
  .recommendation {
    font-size: 1.2em;
  }
  
  .result-value {
    font-size: 1em;
  }
}

/* datalistのスタイル調整 */
input[list]::-webkit-calendar-picker-indicator {
  display: none;
}

/* スクロールバーのスタイル */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}

/* Made with Bob */
