[id^="subPage"] {
  margin-bottom: 100px;
}
.lineTitleSec {
  line-height: 1.5;
}

@media (max-width: 640px) {
  [id^="subPage"] {
    margin-bottom: 60px;
  }
  .lineTitleSec span {
    font-size: 10px;
  }
}

/* トップページ */
.submissionBox {
  max-width: 800px;
  margin: 54px auto;
}
.submissionBox__deadline {
  margin-bottom: 48px;
  text-align: center;
}
.submissionBox__deadline h3,
.submissionBox__method h3 {
  position: relative;
  margin-bottom: 24px;
  padding-bottom: 24px;
  font-size: 28px;
}

.submissionBox__deadline h3::after,
.submissionBox__method h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 80px;
  height: 4px;
  background-color: var(--color-accent-yellow);
  transform: translateX(-50%);
}
.submissionBox__deadline span.red {
  font-size: 28px;
  color: red;
}

.submissionBox__method {
  text-align: center;
}
.submissionBox__method h4 {
  display: inline-block;
  width: 120px;
  margin-bottom: var(--space-16);
  padding: 4px 14px;
  border-radius: 12px;
  background-color: #007BFF;
  color: var(--color-white);
  font-size: var(--fs-20);
  position: relative; /* Required for the pseudo-element */
  padding-left: var(--space-10); /* Adjust as needed */
  text-align: center;
}

.submissionBox__method h4 + p {
  margin-bottom: var(--space-40);
  font-size: var(--fs-18)!important;
}
.submissionBox__method h4 + p a {
  text-decoration: underline;
}

.subject-wrapper {
  margin-bottom: 56px;
}
.subject-wrapper p {
  margin-bottom: var(--space-16);
  font-size: var(--fs-16)!important;
  text-align: center;
}

.movie-button {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 640px;
  width: 100%;
  height: 80px;
  margin: var(--space-40) auto var(--space-16);
  padding: 12px 0 12px 24px;
  border-radius: 10px;
  border-right: 5px solid #F5D562;
  border-bottom: 5px solid #F5D562;
  background-color: var(--color-accent-yellow);
  color: var(--color-white);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}
.movie-button.disabled {
  pointer-events: none; /* Disable click events */
  opacity: 0.6; /* Make it look disabled */
  cursor: not-allowed; /* Change cursor to indicate it's disabled */
}
.movie-button:hover {
  opacity: 0.7;
}
.movie-button-wrapper > p {
  text-align: center;
}
.movie-button-wrapper > p.red {
  color: red;
}

.heading-1 span {
  position: relative;
  clear: both;
  display: inline-block;
  min-width: 430px;
  margin-top: var(--space-5);
  padding-bottom: var(--space-20);
  color: rgb(62, 58, 57);
  font-family: "じゅん 501";
  font-weight: bold;
  font-size: 28px;
  text-align: center;
}

.lineTitleSec + p {
  margin-top: 48px;
  text-align: center;
}

@media (max-width: 640px) {
  .submissionBox {
    margin: 24px auto;
  }
  .submissionBox__deadline {
    margin-bottom: 24px;
  }
  .submissionBox__deadline h3,
  .submissionBox__method h3 {
    padding-bottom: var(--space-16);
    font-size: 22px;
  }
  .submissionBox__deadline span.red {
    font-size: 22px;
  }
  .submissionBox__method h4 {
    font-size: var(--fs-18);
  }
  .submissionBox__method h4 + p {
    margin-bottom: 24px;
    font-size: var(--fs-16)!important;
    text-align: left;
  }
  .subject-wrapper {
    margin-bottom: 24px;
  }
  .subject-wrapper p {
    text-align: left;
  }
  .subject-wrapper p.scroll-message {
    font-size: 1em!important;
  }
  .table-header th:nth-child(1) {
    width: 260px;
  }
  .table-header th:nth-child(2) {
    width: 220px;
  }
  .table-header th:nth-child(3) {
    width: 120px;
  }

  .movie-button {
    height: 60px;
    font-size: var(--fs-20);
  }
  .movie-button-wrapper > p {
    text-align: left;
  }
}

/* 資料 */
.detailBox {
  width: 800px;
  margin: var(--space-40) auto;
  padding: 32px var(--space-40);
  border: 2px solid var(--color-accent-yellow);
  border-radius: 6px;
  background-color: var(--color-white);
}
.detailBox.slim {
  padding: 8px 32px;
}
.detailBox h3 {
  margin-bottom: 32px;
  font-size: 24px;
  text-align: center;
}
.detailList li {
  margin-bottom: 8px;
}
.detailList a {
  font-size: 19px;
}
.detailList a::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: var(--space-10);
  background-repeat: no-repeat;
background-size: contain;
  transform: translateY(9px);
}
.detailList a.pdf_::before {
  background-image: url(../../assets/img/training/icon-pdf.png);
}
.detailList a.excel::before {
  background-image: url(../../assets/img/training/icon-xls.png);
}
.detailList a.word::before {
  background-image: url(../../assets/img/training/icon-doc.png);
}
.detailList span {
  font-size: 19px;
}

@media (max-width: 640px) {
  .detailBox {
    width: 100%;
    margin: 24px auto;
    padding: 24px var(--space-16);
  }
  .detailBox h3 {
    margin-bottom: 8px;
    font-size: var(--fs-16);
  }
  .detailList li {
    font-size: var(--fs-16);
  }
  .detailList a {
    font-size: var(--fs-16);
  }
  .detailList a::before {
    width: 20px;
    height: 20px;
    transform: translateY(4px);  
  }
  .detailList span {
    font-size: var(--fs-14);
  }
}

/* 日程 */
.table-container {
  max-width: 1000px;
  margin: var(--space-40) auto;
  overflow-x: auto;
}
.table-container p {
  margin-bottom: 8px;
  overflow: auto;
}
.scroll-message {
  display: none;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 800px; /* テーブルの最小幅を設定 */
  background-color: var(--color-white);
}
th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
th {
  position: relative;
  text-align: center;
}
td {
  position: relative;
  vertical-align: middle;
}
.table-header {
  background-color: #4CAF50;
  color: white;
  text-align: center;
  padding: var(--space-10);
  margin-bottom: var(--space-20);
}

.table-header th:nth-child(1) {
  min-width: 100px;
}
.table-header th:nth-child(2) {
  min-width: 160px;
}
.table-header th:nth-child(3) {
  min-width: 100px;
}
.table-header th:nth-child(4) {
  min-width: 160px;
}
.table-header th:nth-child(5) {
  min-width: 70px;
}
.table-header th:nth-child(6) {
  min-width: 100px;
}
.table-header th:nth-child(7) {
  min-width: 200px;
}
.table-header th:nth-child(8) {
  min-width: 100px;
}

.hyphen {
  text-align: center;
  vertical-align: middle;
}
.hyphen::before {
  content: '—';
  color: var(--color-gray-mid);
}

@media (max-width: 640px) {
  table {
    font-size: var(--fs-14);
  }
  .scroll-message {
    display: block;
    text-align-last: left;
    font-size: 0.8em!important;
  }
}

/* 会場案内 */
.map-wrapper {
  max-width: 800px;
  margin: var(--space-40) auto;
}

.map-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.place-name,
.place-address {
  margin-bottom: 8px;
  font-size: var(--fs-18);
}

@media (max-width: 640px) {
  .place-name,
  .place-address {
    font-size: var(--fs-16);
  }
}

.faq-wrapper {
  margin-top: var(--space-20);
  padding: var(--space-40) 24px;
  background-color: #f9f9f9; /* Light background color */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.faq-item + .faq-item {
  margin-top: 32px; /* Space between FAQ items */
}

.faq-item h3 {
  font-size: var(--fs-20);
  margin-bottom: var(--space-10);
  color: #333; /* Darker color for the question */
  position: relative;
  padding-left: 32px;
}

.faq-item h3::before {
  content: 'Q:';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #007BFF; /* Highlight color for the 'Q:' */
}

.faq-item p {
  font-size: var(--fs-16);
  color: var(--color-gray); /* Lighter color for the answer */
  padding-left: var(--space-20);
  position: relative;
}

.faq-item p::before {
  content: 'A:';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: #28A745; /* Highlight color for the 'A:' */
}

@media (max-width: 640px) {
  .faq-wrapper {
    padding: 24px var(--space-16);
  }
  .faq-item h3 {
    padding-left: 24px;
    font-size: var(--fs-16);
  }
  .faq-item p {
    font-size: var(--fs-16);
  }
}


/* ムービー */
#subPageM {
  margin-bottom: 0;
}
.movieTitle {
  position: relative;
  background-color: #63C0AB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: bold;
  color: var(--color-white);
  transition: all 0.5s;
  text-indent: -1.5em; /* Adjust based on the width of the number */
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  padding-right: 1.5em;
  padding-left: calc(1.5em + var(--space-16));
}
.movieTitle::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 22px;
  height: 22px;
  background-image: url(../../assets/img/training/open_white.svg);
  background-size: 22px;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-50%);
}
.movieTitle.open {
  background-color: var(--color-accent-yellow);
}
.movieTitle.open::after {
  background-image: url(../../assets/img/training/close_white.svg);
}
.movieContent {
  display: none;
  margin-bottom: var(--space-40);
}
.movieContent__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: var(--space-40);
  padding-bottom: 48px;
}
.movieContent__inner::after {
  content: '';
  display: block;
  width: calc(50% - 12px);
}
.movieContent__item {
  width: calc(50% - 12px);
}
.movieContent__item iframe {
  width: 100%;
  aspect-ratio: 16 / 9; /* Maintain a 16:9 aspect ratio */
}
.movieContent__item h3 {
  display: flex;
  align-items: center;
  height: 48px;
  margin-top: 12px;
  margin-bottom: 12px;
  border-left: 8px solid var(--color-accent-yellow);
  padding-left: var(--space-16);
  font-weight: bold;
  font-size: var(--fs-18);
  line-height: 1.5;
}

@media (max-width: 640px) {
  #subPage {
    margin-bottom: var(--space-40);
    padding-bottom: 0;
  }

  .movieTitle {
    padding-right: 2em;
    font-size: var(--fs-18);
  }
  .movieContent__inner {
    padding-bottom: 32px;
  }
  .movieContent__item {
    width: 100%;
  }
  .movieContent__item h3 {
    padding-left: var(--space-10);
    font-size: var(--fs-16);
  }
}

/* 2024.09.12 */
.movieTitle.disabled {
  margin-bottom: 0;
  cursor: not-allowed;
  opacity: 0.5;
  color: #eee;
}
.movieTitle.disabled::after {
  display: none;
}
.movieNote {
  margin-top: 12px;
  margin-bottom: var(--space-40);
  color: red;
  font-size: var(--fs-18);
  text-align: center;
}