* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1640px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container  *{
  box-sizing: border-box;
}

header {
  margin-bottom: 25px;
  text-align: center;
}

header h1 {
  font-size: 2.1rem;
  margin-bottom: 5px;
}


header p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.6;
}


.calculator {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.input-section, .result-section{
  flex: 1;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.result-section{
  flex: 1.5;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1;
}

.form-group {
  margin-bottom: 20px;
}

.container label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}

.container select,.container input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.container select:focus,.container input:focus {
  border-color: #2575fc;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.2);
}

.radio-group {
  display: flex;
  gap: 40px;
  margin-top: 15px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.container .radio-option input{
  width: auto;
}

.container .radio-option label{
  margin-bottom: 0;
  opacity: 1;
}

.btn-group {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}


.container button {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-calculate {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

.btn-copy {
  background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
  color: white;
}

.btn-clear {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  color: white;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

button:active {
  transform: translateY(1px);
}

.summary-box {
  background: #f9f9ff;
  border-radius: 12px;
  padding: 6px 20px;
  margin-bottom: 20px;
  border: 1px solid #e6e6ff;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #e6e6ff;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-value {
  font-weight: bold;
  font-size: 1.2rem;
  color: #2575fc;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table th {
  background: #f1f5ff;
  padding: 12px 15px;
  text-align: left;
  font-weight: bold;
}

.detail-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.detail-table tr:nth-child(even) {
  background-color: #f9f9ff;
}

.detail-table tr:hover {
  background-color: #f1f5ff;
}

.detail-section {
  max-height: 400px;
  overflow-y: auto;
}

footer {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature {
  background: #f9f9ff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e6e6ff;
}

.feature p, .feature li{
  margin-top: 10px;
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #2575fc;
}

.disclaimer {
  margin-top: 20px;
  padding: 20px;
  background: #fff8e6;
  border-radius: 10px;
  border: 1px solid #ffecb3;
  font-size: 0.9rem;
}

.custom-month {
  display: none;
  margin-top: 10px;
}

.highlight {
  background: #fffacd;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: bold;
}
.notice {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 9999;
}
.notice.show {
  opacity: 1;
  pointer-events: auto;
}
