@charset 'utf-8';

/** content: kyomeijuku **/
section.kyomeijuku {
  padding: 0 0 1rem;
  background-color: var(--sub-base-color);
  color: var(--sub-font-color);
  font-size: clamp(1.2rem, 5vw, 3rem);
}

section.kyomeijuku > div {
  width: 100%;
  padding: 0;
}

div.page-header {
  width: 100%;
  position: relative;
}

div.page-header img.bg {
  width: 100%;
  opacity: 0.4;
}

.absolute {
  position: absolute;
  top: 0;
  left: 0;
}

div.page-header .flex-container {
  flex-wrap: unset;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
}

div.page-header .flex-container div:first-child,
div.page-header .flex-container h2:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  min-width: unset;
  width: unset;
  height: 100%;
  padding-left: 10%;
  text-align: left;
  letter-spacing: 0;
  line-height: clamp(2rem, 10vw, 7rem);
  font-size: clamp(1.2rem, 5vw, 3rem);
  font-weight: 1000;
}

div.page-header .flex-container div:last-child {
  min-width: unset;
  width: auto;
  height: 100%;
  position: relative;
}

div.page-header .flex-container div:last-child img {
  height: 100%;
  width: auto;
  aspect-ratio: 139 / 219;
  filter: var(--fade-profile-filter);
}

.page-banner {
  max-width: 980px;
  width: 100%;
  position: relative;
}

.page-banner img {
  width: 100%;
  max-height: 180px;
  filter: invert(1);
  opacity: 0.4;
}

.page-banner div,
.page-banner h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: left;
  font-size: clamp(1.2rem, 5vw, 3rem);
  font-weight: 1000;
}

.text-container {
  font-size: clamp(0.8rem, 4vw, 1.2rem);
  line-height: unset;
}

.option-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  width: calc(100% - 0.5rem);
  margin: 0.25rem auto 0.25rem;
  border: 2px solid var(--base-color);
  font-size: clamp(0.8rem, 4vw, 1.2rem);
  line-height: clamp(1.0rem, 5vw, 1.2rem);
}

.option-container .image {
  display: flex;
  align-items: flex-end;
  min-width: 120px;
  width: 20%;
}

.option-container .image img {
  width: 100%;
}

.option-container .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: clamp(1.2rem, 6vw, 1.5rem);
}

.attention-container {
  margin: 0 0 0.25rem 0;
  font-size: clamp(0.8rem, 4vw, 1.2rem);
}

table.schedule {
  width: calc(100% - 0.5rem);
  margin: 0 auto 0;
  border-collapse: collapse;
  font-size: clamp(0.8rem, 4vw, 1.2rem);
  font-weight: bold;
}

table.schedule th,
table.schedule td {
  border: 1px solid var(--base-color);
}

table.schedule th:first-child {
  width: 20%;
}

table.schedule td:last-child {
  width: 50%;
}

.page-bg {
  position: relative;
}

.page-bg .absolute {
  padding: 1rem;
}

.page-bg img {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.page-bg div {
  font-size: clamp(1.0rem, 4.0vw, 1.5rem);
  font-weight: 1000;
}

.page-bg .flex-container>div {
  width: 100%;
}

.page-bg .attention {
  color: #f00;
}

.page-bg .center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(1.5rem, 6vw, 2rem);
}

.data-container {
  margin: 0 auto 1rem;
}

section.kyomeijuku a.button {
  max-width: 480px;
}

.body-attention {
  color: #f00;
}


@media (max-width: 768px) {
  .option-container {
    position: relative;
    overflow: hidden;
  }

  .option-container .image img {
    height: 100%;
    width: auto;
    position: absolute;
    left: -10%;
    z-index: 0;
  }

  .option-container .text {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: -5px 0px 5px rgba(255, 255, 255, 0.5);
    z-index: 1;
  }

  table.schedule tr {
    display: flex;
    flex-direction :column;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
  }

  table.schedule tr:first-child {
    border-top: 3px solid #000;
  }

  table.schedule tr:last-child {
    border-bottom: 3px solid #000;
  }

  table.schedule th,
  table.schedule th:first-child,
  table.schedule td,
  table.schedule td:last-child {
    width: 100%;
  }
}
