@import url("https://fonts.googleapis.com/css?family=RocknRoll+One|Noto+Sans+JP:700,400");
:root {
  --black: #040000;
  --white: #fff;
  --red: #d9534f;
  --font-size-l: 16px;
  --font-size-m: 14px;
  --font-size-s: 12px;
  --font-size-xl: 18px;
  --font-size-xxl: 20px;
  --font-size-xxxl: 24px;
  --font-size-xxxxl: clamp(32px, 10vw, 64px);
}

body {
  background-color: var(--key);
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--font-size-m);
}

.josei {
  line-height: 1.6;
}
.josei a {
  text-decoration: none;
  color: var(--black);
}
.josei div {
  box-sizing: border-box;
}
.josei .container {
  background-color: white;
  border-radius: 40px;
  padding: clamp(4%, 40px, 100px) clamp(2%, 10px, 100px);
  width: 90%;
  max-width: 1400px;
  margin: 30px auto;
}
.josei .br-pc {
  display: none;
}
.josei .br-sp {
  display: initial;
}
.josei .inner {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
.josei .title {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}
.josei .h1-sub {
  font-size: var(--font-size-xl);
  text-align: center;
  margin-bottom: 1em;
  font-weight: bold;
  line-height: 1;
}
.josei h1 {
  font-size: var(--font-size-xxxxl);
  text-align: center;
  color: var(--key);
  font-family: "RocknRoll One", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  padding: 0;
}
.josei h1 span {
  color: var(--black);
}
.josei .visual {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}
.josei .visual img {
  width: 75%;
  max-width: 350px;
}
.josei .notice {
  border: 2px solid var(--red);
  color: var(--red);
  border-radius: 10px;
  padding: 1em;
  text-align: center;
  margin: 40px 0;
  font-weight: bold;
  font-size: var(--font-size-l);
}
.josei .section {
  margin: 50px 0;
}
.josei .section-about {
  font-weight: bold;
  line-height: 1.8;
}
.josei .section-shinsei {
  font-weight: bold;
  padding-top: 1em;
  border-top: 1px solid #e5e5e5;
}
.josei .section-shinsei p {
  margin-bottom: 2em;
}
.josei h3 {
  border-top: 3px solid var(--key);
  font-size: var(--font-size-xl);
  font-weight: bold;
  padding-top: 0.5em;
  margin-bottom: 2em;
  line-height: 1.4;
}
.josei .lessons {
  display: flex;
  flex-direction: column;
  gap: 22px 0;
}
.josei .lesson {
  width: 100%;
  display: flex;
  align-items: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.josei .lesson-image {
  display: flex;
  align-items: flex-start;
  padding: 10px;
}
.josei .lesson-image img {
  max-width: 110px;
  height: 100%;
  object-fit: cover;
}
.josei .lesson-text {
  flex: 1;
  padding: 10px;
}
.josei .lesson-text h4 {
  font-size: var(--font-size-l);
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
}
.josei .lesson-grade {
  font-size: var(--font-size-s);
  margin: 0.5em 0 1em;
  color: var(--red);
  font-weight: bold;
}
.josei .lesson-button {
  font-size: var(--font-size-s);
}
.josei .button {
  display: block;
  background-color: var(--key);
  color: white;
  text-align: center;
  padding: 0.75em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 9999px;
}
.josei .wide-button {
  border-radius: 10px;
}
.josei .red-button {
  background-color: #d9534f;
}
.josei .video {
  width: 100%;
  aspect-ratio: 16/9;
}
.josei .video iframe {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 641px) {
  :root {
    --font-size-l: 24px;
    --font-size-m: 20px;
    --font-size-s: 14px;
    --font-size-xl: 32px;
    --font-size-xxl: 40px;
    --font-size-xxxl: 48px;
    --font-size-xxxxl: 64px;
  }
  .josei .br-pc {
    display: initial;
  }
  .josei .br-sp {
    display: none;
  }
  .josei .container {
    padding: 100px 20px 120px 20px;
    margin: 60px auto;
  }
  .josei .title {
    background-image: url(../images/josei-bg01.svg), url(../images/josei-bg02.svg), url(../images/josei-bg03.svg), url(../images/josei-bg04.svg);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: top left, top right, bottom left, bottom right;
  }
  .josei .visual {
    margin-top: 60px;
  }
  .josei .section {
    margin: 120px 0;
  }
  .josei .section-about {
    margin-top: 0;
  }
  .josei h3 {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    border-top: none;
    padding-top: 0.75em;
    font-size: var(--font-size-xxl);
  }
  .josei h3::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 150px;
    height: 5px;
    background-color: var(--key);
  }
  .josei .lessons {
    display: flex;
    flex-wrap: wrap;
    margin-top: 70px;
  }
  .josei .lesson {
    margin-bottom: 20px;
    align-items: stretch;
  }
  .josei .lesson-image {
    padding: 0;
  }
  .josei .lesson-image img {
    width: 180px;
    max-width: unset;
    height: auto;
  }
  .josei .lesson-text {
    padding: 30px 20px 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .josei .section-shinsei {
    font-size: var(--font-size-l);
    text-align: center;
    padding-top: 60px;
  }
  .josei .button {
    padding: 0.5em;
  }
  .josei .lesson-button {
    max-width: 190px;
    margin-left: auto;
    font-size: 18px;
    padding: 0.5em 1em;
  }
  .josei .wide-button {
    margin: auto;
    max-width: 736px;
    font-size: var(--font-size-m);
    padding: 1em;
    border-radius: 9999px;
  }
  .josei .video {
    max-width: 560px;
    margin: 0 auto;
  }
}
@media screen and (min-width: 1280px) {
  .josei .lessons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin-top: 70px;
  }
  .josei .lesson {
    width: calc((100% - 32px) / 2);
    margin-bottom: 20px;
    align-items: stretch;
  }
  .josei .wide-button {
    font-size: var(--font-size-l);
  }
}