.linecapacity-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 10px 0px;
}

.linecapacity-container h1 {
  margin: 12px 0;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.linecapacity-container h1::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 4px;
  background: linear-gradient(90deg, #0d6efd, #66b2ff);
  border-radius: 2px;
}
.linecapacity-section {
  margin-top: 20px;
  scroll-margin-top: 80px;
}
.linecapacity-container h2 {
  position: relative;
  font-weight: bold;
  margin-bottom: 24px;
}
.linecapacity-section h2::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50px;
  height: 0.2rem;
  background-color: #0077cc;
}
.linecapacity-section form div {
  margin: 10px auto;
  text-align: center;
}
.linecapacity-section .linecapacity-step {
  border: 2px solid #cfe2ff;
  border-radius: 8px;
  background-color: #f7fbff;
  padding: 16px;
  margin: 20px auto;
  max-width: 500px;
}
.linecapacity-section .linecapacity-result-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px solid #0357af;
  border-radius: 8px;
  background-color: #eef6ff;
  padding: 16px;
  margin: 20px auto;
  max-width: 500px;
}
.linecapacity-result-box label {
  font-weight: bold;
}
.linecapacity-result-box .linecapacity-result {
  font-size: 1.5rem;
}
.linecapacity-subheading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: bold;
  color: #0357af;
  margin: 0 0 8px;
}
.linecapacity-step-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: #0357af;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.linecapacity-choice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.linecapacity-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 30px;
}
.linecapacity-section .linecapacity-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 130px;
  margin: 0;
}
.linecapacity-input label {
  max-width: 180px;
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.3;
}
.linecapacity-input-field {
  width: 120px;
  margin: 0;
  padding: 5px 10px;
  font-size: 1rem;
  border: 2px solid #0077cc;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 119, 204, 0.2);
}
.linecapacity-input-field:focus {
  border-color: #005fa3;
  box-shadow: 0 0 12px rgba(0, 95, 163, 0.4);
}
.linecapacity-choice-field {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 5px 10px;
  font-size: 1rem;
  border: 2px solid #0077cc;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 119, 204, 0.2);
}

.linecapacity-equal {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 16px;
}
.linecapacity-equal::before,
.linecapacity-equal::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  background-color: #0077cc;
}
.linecapacity-equal::before {
  top: 0px;
  left: 0;
}
.linecapacity-equal::after {
  bottom: 0px;
  left: 0;
}

.linecapacity-table-wrapper {
  max-width: 100%;
  overflow-x: auto;
}
.linecapacity-table {
  max-width: 400px;
  margin: 10px auto;
}
.linecapacity-table th,
.linecapacity-table td {
  padding: 3px 8px;
  text-align: center;
}
.linecapacity-table .linecapacity-input-field {
  padding: 4px;
  font-size: 1rem;
}
.linecapacity-table .linecapacity-result {
  font-size: 1rem;
  min-width: 60px;
}
.linecapacity-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}
.linecapacity-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}
.linecapacity-table tbody tr:hover {
  background-color: #f1f1f1;
}

.linecapacity-result {
  display: inline-block;
  min-width: 80px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #0357af;
}

.linecapacity-error {
  color: #d9534f;
  font-weight: bold;
}

.linecapacity-description {
  width: 90%;
  display: block;
  margin: 20px auto;
}

.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.no-spin {
    -moz-appearance: textfield;
}

.linecapacity-toc {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.linecapacity-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}
.linecapacity-toc li a {
    display: block;
    padding: 5px 10px;
    border: 1px solid #0357AF;
    border-radius: 20px;
    text-decoration: none;
    color: #0357AF;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s ease;
}
.linecapacity-toc li a:hover {
    background-color: #0357AF;
    color: #fff;
}

