/* HomeとSaveボタン専用: 内容にフィットするボタン */
.fit-btn {
  width: auto !important;
  min-width: unset !important;
  flex: 0 0 auto;
  padding-left: 2em;
  padding-right: 2em;
}
body {
  font-family: sans-serif;
  margin: 2em;
  background-color: #f4f4f9;
  color: #333;
}

.container {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5em 2em;
  margin: -1em -2em 1.5em -2em;
  border-radius: 8px 8px 0 0;
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}
h1::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shine 3s infinite;
}
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.info-box {
  background-color: #eef;
  padding: 1em;
  border-left: 5px solid #6c63ff;
  margin-bottom: 1.5em;
  border-radius: 4px;
}

.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.5em;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: white;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn:hover,
a.btn:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  transform: translateY(-1px);
}
.btn:active,
a.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .container {
    max-width: 100%;
    padding: 0.5em;
    border-radius: 0;
    box-shadow: none;
  }
  h1 {
    font-size: 1.3em;
    padding: 1em 0.5em;
    margin: 0 -0.5em 1em -0.5em;
    border-radius: 0 0 8px 8px;
  }
  .info-box {
    padding: 0.7em;
    font-size: 0.95em;
  }
  .btn,
  a.btn {
    font-size: 0.95em;
    padding: 0.7em 1em;
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  form {
    flex-direction: column;
    gap: 0.7em;
  }
  .form-left,
  .form-right {
    text-align: center;
    width: 100%;
  }
}
