.flight-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 40px;
  border-radius: 5px;
  overflow: hidden;
}

.matrix-row {
  display: contents;
}

.header-row .matrix-cell {
  background-color: #ffcccc; /* 上段の背景色: パステルピンク */
}

.data-row .matrix-cell {
  background-color: #e5f5e5; /* 下段の背景色: グリーン系の色 */
}

.matrix-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 15mm;
  padding: 5px;
  text-align: center;
  color: black; /* 文字色を黒に統一 */
}

.adjustable-font {
  font-size: 14px;
}


/* ボックス表示のCSS (変更なし) */

.box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.box {
  position: relative;
  width: calc(25% - 10px);
  height: 50mm;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.box a {
  display: block;
  text-decoration: none;
 color: inherit;
}

.box-band {
  position: absolute;
  top: 0;
  left: 0;
  width: 3mm;
  height: 100%;
  background-color: #ff4877;
  z-index: 1;
}

.box-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 10px 0;
}

.box-header {
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.box-image {
  width: 100%;
  height: calc(100% - 30px);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.nana-image {
  height: auto;
}

.nana-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}