/*pan*/
.pan ul {
  width: 70%;
  height: 3em;
  margin: 0 auto;
  list-style: none;
}
.pan li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.wall::before {
  content: "｜";
  margin: 0 1vw;
}
/*pan*/

.a_flex {
  display: flex;
}
.key_visual img {
  width: 100%;
}
#award {
  margin: 5vw 0 0 0;
}

.award-item {
  margin-bottom: 3em;
  /*追加*/
  display: flex;
  flex-direction: column;
  margin-bottom: 3em;
}

/*追加*/
.award-item.item-third {
  display: flex;
  flex-direction: column;
}

.award-item.item-third .award_box {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.award-item.item-third .right {
  display: flex;
  flex-direction: column;
}

#award .flex {
  display: flex;
  flex-wrap: wrap;
  /*justify-content: space-between;*/
}

.award-item.item-large {
  width: 100%;
}

.award-item.item-large .left {
  width: 48%;
}

.award-item.item-large .left img,
.award-item.item-third .left img {
  width: 100%;
  /*height: auto;*/
}

.award-item.item-large .left .flex,
.award-item.item-third .left .flex {
  justify-content: flex-start;
}

.award-item.item-large .left h3,
.award-item.item-large .left h4,
.award-item.item-third .left h3,
.award-item.item-third .left h4 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-item.item-large .left h3,
.award-item.item-third .left h3 {
  border-right: 1px solid #000;
  margin-right: 0.5em;
  padding-right: 0.5em;
}
.award-item.item-large .left h3 {
  padding-left: 6vw;
}

.award-item.item-large .left h4,
.award-item.item-third .left h4 {
  font-weight: normal;
}

.award-item.item-large .right {
  width: 50%;
}

.award-item.item-third {
  width: 31%;
  margin: 0 0.5em 3em 0.5em;
}

.award_box .left a {
  width: 100%;
  height: 100%;
  display: block;
  max-height: 14.3vw;
  overflow: hidden;
  margin: 0.5em 0 0 0;
}

.award-item.item-large .award_box .left a {
  max-height: 22.2vw;
}

.award_box .left a img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
.award_box .left a img:hover {
  transform: scale(1.05);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.award-item.item-large .right {
  width: 50%;
  padding-top: 2.4vw;
}

/*追加*/
.award-item.item-third .award_box {
  display: flex;
  flex-direction: column;
  height: 100%;
}
/*追加*/
.award-item.item-third {
  display: flex;
}
/*追加*/
.award-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
/*追加*/
.award-item {
  display: flex;
  flex-direction: column;
}
/*追加*/
.award_box {
  flex: 1;
}

.award-item.item-third .award_box {
  width: 100%;
}

.posi_re {
  position: relative;
}

.theme_area {
  text-align: center;
  margin: 4em auto;
}
.theme_area h2 {
  font-size: 1.6vw;
}
.theme_area p {
  margin: 0.5em auto 0 auto;
  width: 60%;
}

.medal {
  position: absolute;
  width: 15% !important;
  left: 0.5vw;
  top: 0vw;
  filter: drop-shadow(2px 2px 2px #555);
  z-index: 10;
}

table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  /*追加*/
  flex: 1;
}

tr {
  border-bottom: 1px solid #555;
  box-sizing: border-box;
}

td {
  border: 1px solid #555;
  padding: 1em 0.5em;
  text-align: left;
}

td:first-child {
  width: 7em;
  text-align: center;
}

.tab-switch {
  --tab-color: #dbb6a2;
  margin: auto;
}

/* ------------------------
   PCボタン
------------------------ */

.tab-buttons {
  display: flex;
  gap: 6px;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  border: none;
  background: #eee;
  cursor: pointer;
  transition: 0.25s;
  font-size: 16px;
  border-radius: 0;
}

.tab-btn.active {
  background: #ffd900;
  color: #fff;
  border-radius: 0;
}

/* ------------------------
   コンテンツ
------------------------ */

.tab-contents {
  margin-top: 25px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ------------------------
   スマホ用プルダウン
------------------------ */

.tab-select {
  display: none;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

/******************* Tablet用の調整（より厳密に制御したい場合） *******************/
@media screen and (max-width: 768px) and (min-width: 480px) {
  .inside {
    width: 85%;
  }
  .a_flex {
    display: flex;
  }
  .tab-buttons {
    display: none;
  }

  .tab-select {
    display: block;
  }

  .tab-contents {
    margin-top: 20px;
  }
  .theme_area h2 {
    font-size: 5vw;
    line-height: 140%;
  }
  #award .flex {
    /*display: block;*/
  }
  .award-item.item-large .left,
  .award-item.item-large .right {
    width: 100%;
  }
  .award-item.item-large .left h3 {
    padding-left: 15vw;
  }
  .award-item.item-third {
    width: 47%;
  }
  td:first-child,
  td {
    width: 100%;
    display: block;
    border-bottom: none;
  }
  .award-item.item-large .award_box .left a,
  .award_box .left a {
    max-height: unset;
  }
  .medal {
    position: absolute;
    width: 15% !important;
    left: 0.5vw;
    top: 0vw;
    filter: drop-shadow(2px 2px 2px #555);
    z-index: 10;
  }
  td:first-child {
    background: #e2e2e2;
  }
  .text_center {
    text-align: center;
  }
}

/******************* モバイル用の調整（より厳密に制御したい場合） *******************/
@media (max-width: 480px) {
  .a_flex {
    display: flex;
  }
  main {
    background: #fff;
  }
  .inside {
    width: 90%;
  }
  .theme_area h2 {
    font-size: 7vw;
    line-height: 140%;
  }
  .medal {
    position: absolute;
    width: 20% !important;
    left: 0.5vw;
    top: 0vw;
    filter: drop-shadow(2px 2px 2px #555);
    z-index: 10;
  }
  .tab-buttons {
    display: none;
  }

  .tab-select {
    display: block;
  }

  .tab-contents {
    margin-top: 20px;
  }

  #award .flex {
    display: block;
  }

  .award-item.item-large .left,
  .award-item.item-large .right,
  .award-item.item-third {
    width: 100%;
  }

  .award-item.item-large .award_box .left a,
  .award_box .left a {
    max-height: unset;
  }

  tr {
    border-bottom: none;
  }

  td:first-child,
  td {
    width: 100%;
    display: block;
    border-bottom: none;
  }

  td:first-child {
    background: #e2e2e2;
  }

  table {
    border-bottom: 1px solid #555;
  }
  .text_center {
    text-align: center;
  }

  .award-item.item-large .left h3,
  .award-item.item-third .left h3 {
  }
  .award-item.item-large .left h3 {
    padding-left: 24vw;
  }
  .theme_area p {
    width: 90%;
    text-align: left;
  }
}
