@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #222;
  background: #f7f9fc;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  word-break: break-word;
}

/* disable legacy ad blocks in renewed subpages */
#adsense,
.adsense_wrap,
ins.adsbygoogle,
iframe[src*="googlesyndication.com"],
iframe[src*="doubleclick.net"] {
  display: none !important;
}

#main_wrap {
  width: min(1200px, calc(100% - 24px));
  margin: 160px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

#left_contents,
#right_contents {
  width: 100%;
  float: none;
}

#left_contents {
  min-width: 0;
}

#right_contents {
  position: sticky;
  top: 92px;
}

#wrapper {
  width: min(1080px, calc(100% - 24px)) !important;
  margin: 24px auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}

#main_contents {
  width: min(1200px, calc(100% - 24px));
  margin: 20px auto;
}

#main_wrap #main_contents {
  width: 100%;
  margin: 0;
}

#contents_wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.main_contents_title,
.right_contents_title,
#sub_member_list .title {
  background: #e9f2ff;
  border: 1px solid #cddff6;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.right_contents_contents > div,
#sub_member_list ul li,
#resyu_log_list ul li {
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  padding: 8px;
}

.team_seat {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.team_seat th,
.team_seat td {
  border: 1px solid #dfe4ea;
  padding: 10px;
  vertical-align: top;
}

.team_seat th {
  width: 32%;
  background: #f4f8ff;
}

.basic,
.txt,
.contact_txtarea,
input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
  width: 100%;
  max-width: 100%;
}

.contact_confirm {
  width: min(420px, 100%);
  margin: 16px auto 0;
  float: none !important;
  display: block;
}

.subpage-ad-top,
.subpage-ad-bottom {
  width: 100%;
  float: left;
  text-align: center;
}

.subpage-ad-top {
  margin-bottom: 15px;
}

.team_list-empty,
.team-list-empty {
  width: 100%;
  margin-top: 20px;
  min-height: 200px;
}

#team_list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#team_list li {
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  overflow: hidden;
}

#team_list li a {
  display: block;
  color: #222;
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 10px;
}

#team_list li img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}

/* koshien_member */
.sub_koshien_member_contents_box {
  width: 100%;
  float: left;
  margin: 0 0 10px;
}

.sub_koshien_member_contents_box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub_koshien_member_contents_box ul li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  padding: 10px 12px;
}

.sub_koshien_member_contents_box .left_profile,
.sub_koshien_member_contents_box .right_profile {
  min-width: 0;
}

.sub_koshien_member_contents_box a {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#left_contents .member_table {
  width: 100%;
  table-layout: fixed;
}

#left_contents .member_table td {
  word-break: break-word;
}

#left_contents .game_table,
#left_contents .member_table,
#left_contents .table_border {
  width: 100%;
  border-collapse: collapse;
}

#left_contents .game_table td,
#left_contents .game_table th,
#left_contents .member_table td,
#left_contents .member_table th {
  padding: 8px;
  vertical-align: top;
}

table {
  width: 100%;
}

.main_contents_contents,
.team_contents,
.navi_menu,
.pankuzu {
  width: 100%;
  float: left;
}

.main_contents_title form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sub_contents_title form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.main_contents_title input[type="image"] {
  max-height: 34px;
}

#left_contents ul,
#main_contents ul {
  padding-left: 0;
}

.top_game_movie_thumb ul li,
ul.introduction_contents_kari li,
.team_contetns ul li {
  box-sizing: border-box;
}

/* legacy inline layout rescue */
#left_contents [style*="width:900px"],
#left_contents [style*="width:980px"],
#left_contents [style*="width:1000px"],
#left_contents [style*="width:1200px"],
#main_contents [style*="width:900px"],
#main_contents [style*="width:980px"],
#main_contents [style*="width:1000px"],
#main_contents [style*="width:1200px"] {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#left_contents img[width],
#main_contents img[width] {
  max-width: 100%;
  height: auto;
}

/* ---- Movie list & member pages: responsive layout (#left_contents) ---- */
#left_contents ul.introduction_contents_kari {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  width: 100%;
  float: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#left_contents ul.introduction_contents_kari li {
  float: none;
  width: 100%;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  box-sizing: border-box;
}

#left_contents ul.introduction_contents_kari li > a:first-of-type {
  flex: 0 0 auto;
  width: min(280px, 45%);
  max-width: 100%;
}

#left_contents ul.introduction_contents_kari li img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

#left_contents ul.introduction_contents_kari li .shop_explain {
  flex: 1 1 220px;
  width: auto;
  min-width: 0;
  margin: 0;
  text-align: left;
}

#left_contents ul.introduction_contents_kari li .shop_explain a {
  font-size: 14px;
}

#left_contents .subpage-vimeo-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  margin: 0 0 12px;
  background: #111;
  border-radius: 10px;
}

#left_contents .subpage-vimeo-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.movie-list-video-block {
  width: 100%;
  margin: 0 0 24px;
  float: none;
}

.movie-list-back {
  margin: 0;
}

.movie-list-related-heading {
  width: 100%;
  font-size: clamp(15px, 2.5vw, 18px);
  margin: 0 0 12px;
  padding: 12px 10px;
  border-bottom: 1px solid #9ca3af;
  border-top: 1px solid #9ca3af;
  box-sizing: border-box;
  font-weight: 700;
  color: #1f2937;
  float: none;
}

#left_contents .game_movie_thumb {
  width: 100%;
  margin: 16px 0 32px;
  float: none;
}

#left_contents .game_movie_thumb ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#left_contents .game_movie_thumb ul li {
  float: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  box-sizing: border-box;
}

#left_contents .game_movie_thumb ul li:last-child {
  margin-bottom: 0;
}

#left_contents .game_movie_thumb ul li .thum_img {
  flex: 0 0 auto;
  width: min(240px, 42%);
  margin: 0;
  position: relative;
}

#left_contents .game_movie_thumb ul li .thum_img img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

#left_contents .game_movie_thumb ul li .title {
  flex: 1 1 220px;
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
}

#left_contents .game_movie_thumb > .title {
  width: 100%;
  float: none;
  margin: 0 0 12px;
}

#left_contents .subpage-member-index .model_square_thumb .resize {
  display: block;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid #c5cdd6;
  box-sizing: border-box;
  width: 100%;
  padding-top: 100%;
}

#left_contents .subpage-member-index .model_square_thumb {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  font-size: 13px;
  line-height: 1.45;
}

#left_contents .subpage-member-index .model_square_thumb a.member-name-link {
  font-size: 14px;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
  display: inline-block;
  margin-top: 6px;
}

.subpage-member-backlink {
  width: 100%;
  margin: 0 0 14px;
  float: none;
}

.subpage-member-backlink a {
  font-weight: 700;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.4;
}

#left_contents.subpage-member-detail .member_table img {
  max-width: 100%;
  height: auto;
}

/* guide/profile pages */
ul.guide li {
  width: 48%;
}

ul.trouble li > div img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  #main_wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  #right_contents {
    position: static;
  }

  #contents_wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  #team_list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #main_wrap {
    width: calc(100% - 8px);
    margin-top: 64px;
    gap: 10px;
  }

  #main_contents {
    width: calc(100% - 8px);
    margin: 10px auto;
  }

  #main_wrap #main_contents {
    width: 100%;
    margin: 0;
  }

  #wrapper {
    width: calc(100% - 8px) !important;
    padding: 12px;
    margin: 12px auto;
    border-radius: 8px;
  }

  .team_seat,
  .team_seat tbody,
  .team_seat tr,
  .team_seat th,
  .team_seat td {
    display: block;
    width: 100%;
  }

  .team_seat tr {
    margin-bottom: 10px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    overflow: hidden;
  }

  .team_seat th,
  .team_seat td {
    border: 0;
  }

  .flowBar {
    flex-direction: column;
    gap: 8px;
  }

  .flowBar li {
    width: 100%;
  }

  .flowBar li::after {
    display: none;
  }

  #team_list ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .sub_koshien_member_contents_box ul li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
  }

  .sub_koshien_member_contents_box a {
    font-size: 13px;
  }

  #left_contents .member_table td[bgcolor="#999999"] {
    width: 100% !important;
    display: block;
  }

  #left_contents.subpage-member-detail .member_table tr {
    display: flex;
    flex-direction: column;
  }

  #left_contents.subpage-member-detail .member_table th,
  #left_contents.subpage-member-detail .member_table td {
    width: 100% !important;
    box-sizing: border-box;
  }

  #left_contents.subpage-member-detail .member_table {
    overflow-x: visible;
  }

  .main_contents_title form {
    flex-direction: column;
    align-items: stretch;
  }

  .sub_contents_title form {
    flex-direction: column;
    align-items: stretch;
  }

  .main_contents_title input[type="image"],
  .main_contents_title .search_btn {
    width: 100%;
    max-width: 100%;
  }

  #left_contents .game_table,
  #left_contents .member_table,
  #left_contents .table_border {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  ul.guide li {
    width: 100% !important;
    display: block;
    margin: 0 0 10px;
  }

  ul.trouble li {
    font-size: 18px !important;
  }

  ul.trouble li > div img {
    width: 40% !important;
    margin: 0 30% 16px !important;
    float: none !important;
    display: block;
  }

  ul.trouble li > div > div {
    width: 100% !important;
    float: none !important;
  }

  #left_contents [style*="float:left"],
  #main_contents [style*="float:left"] {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: auto !important;
  }

  #left_contents [style*="display:table-cell"],
  #main_contents [style*="display:table-cell"] {
    display: block !important;
  }

  .top_game_movie_thumb ul li {
    width: 100% !important;
    padding-left: 0 !important;
  }

  #left_contents ul.introduction_contents_kari li > a:first-of-type {
    width: 100% !important;
    max-width: 100% !important;
  }

  #left_contents ul.introduction_contents_kari li img {
    width: 100% !important;
    height: auto !important;
    max-height: none;
  }

  #left_contents ul.introduction_contents_kari li .shop_explain {
    flex: 1 1 100%;
    width: 100% !important;
    margin: 0 !important;
  }

  #left_contents .game_movie_thumb ul li .thum_img {
    width: 100% !important;
  }

  .subpage-member-index {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
}
