html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 1rem;
}

.container {
  font-size: 1.2rem;
  max-width: 70%;
  margin: 0 auto;
  padding: 1.25rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  position: relative;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

th, td {
  border: 0.0625rem solid black;
  padding: 0.5rem;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

/* 各列の幅を調整 */
.table-settings th:first-child,
.table-settings td:first-child {
  width: 15%;
}

.table-settings th:nth-child(2),
.table-settings td:nth-child(2) {
  width: 15%;
}

.table-settings th:nth-child(3),
.table-settings td:nth-child(3) {
  width: 70%;
}

/* 表のヘッダー固定 */
.scrollable-table-container {
  overflow: auto;
  max-height: 50rem;
}

thead th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.sticky-left {
  position: sticky;
  left: 0;
  background: #f2f2f2;
  z-index: 2;
}

/* ボタン共通スタイル */
.btn {
  background-color: #9e9e9e;
  color: white;
  border: none;
  padding: 0.3rem 0.3rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

.btn:hover {
  background-color: #5e5e5e;
}

/* ボタンを縦に並べる（同じセル内） */
td > .btn + .btn {
  display: block;
  margin-top: 0.5rem;
}

/* ===== コラム用：2列（7：3） ===== */
.table-settings.column-2 th:first-child,
.table-settings.column-2 td:first-child {
  width: 70%;
}

.table-settings.column-2 th:nth-child(2),
.table-settings.column-2 td:nth-child(2) {
  width: 30%;
}

/* ===== コラム：戻るボタン配置 ===== */
.column-back {
  text-align: right;
  margin-top: 1rem;
}


/* スマホ対応 */
@media only screen and (max-width: 37.5rem) {
  .container {
    max-width: 90%;
    padding: 2rem 0;
    margin-top: 1rem;
  }

  .btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.2rem;
    margin: 0.2rem 0;
  }

  th, td {
    padding: 0.5rem;
  }
}

/* その他 */
.svg-container {
  margin-bottom: 0;
  display: block;
}

h1 {
  margin-top: 2rem;
  font-size: 1.5rem;
}
