:root {
  --transparent: #eeeeee00;
  --white: #eeeeee;
  --white2: #ccc;
  --white3: #dcdcdc;
  --black: #262626;
  --black2: #404040;
  --black3: #636363;
  --blue: #1d2088;
  --blue2: #3d6dbe;
  --blue3: #d2dcea;
  --pink: #e96f84;
  --secondary-header1: #35d232;
  --secondary-header1-2: #2db62b;
  --secondary-header2: #e062b3;
  --secondary-header2-2: #ca55a1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
@media screen and (min-width: 2560px) {
  html {
    font-size: 24px; /* 1rem = 18px に変更される */
  }
}

body {
  background-color: var(--white);
  color: var(--black);
  font-family: "Meiryo", "Hiragino Sans", "Arial", sans-serif;
  word-break: break-word;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 2rem 1rem 0 1rem;
  margin: 5rem auto 0 auto;
  width: 100%;
}
@media screen and (min-width: 960px) {
  main {
    max-width: 960px;
    padding: 7rem 3rem;
    margin: 0 auto;
  }
}
@media screen and (min-width: 2560px) {
  main {
    max-width: 1920px;
  }
}

iframe {
  width: 100%;
  aspect-ratio: 1/1;
}

.main-section {
  margin-bottom: 6rem;
}

article {
  margin-bottom: 2rem;
}

.paragraph {
  margin-bottom: 1.5rem;
}

main h1 {
  font-size: 2rem;
  padding: 0 0.8rem 0.4rem 0.8rem;
  margin-bottom: 1rem;
  text-align: center;
}
/* 見出しスタイル */
.default-headding {
  margin-bottom: 2rem;
  border-bottom: var(--blue) 4px solid;
  border-image: linear-gradient(
      to right,
      #00000000,
      var(--blue),
      var(--blue),
      var(--blue),
      #00000000
    )
    1;
}
.hero-headding {
  margin-bottom: 2rem;
}
/* コースページ共通スタイル */
.hero__imag {
  width: 100%;
  box-shadow: 0 10px 10px -6px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}
@media screen and (min-width: 960px) {
  .hero__imag {
    display: block;
    width: 60%;
    margin: 0 auto;
  }
}

/* 見出しの装飾（疑似要素で画像を挿入） */
.default-headding::before,
.default-headding::after {
  content: "";
  display: inline-block;
  vertical-align: bottom;
  width: 2.5rem;
  height: 2.5rem;
  background-size: contain;
  background-repeat: no-repeat;
}

/* 奇数セクションの見出し装飾 */
.section:nth-of-type(odd) > .default-headding.default-headding::before {
  background-image: url("/images/bunnosuke-blue.svg");
  margin-right: 0.2rem;
  transform: rotate(-10deg);
}

.section:nth-of-type(odd) > .default-headding.default-headding::after {
  background-image: url("/images/bunnosuke-red.svg");
  margin-left: 0.5rem;
  transform: rotate(10deg);
}

/* 偶数セクションの見出し装飾 */
.section:nth-of-type(even) > .default-headding.default-headding::before {
  background-image: url("/images/bunnosuke-pencil.svg");
  margin-right: 0.2rem;
  transform: rotate(-10deg);
}

.section:nth-of-type(even) > .default-headding.default-headding::after {
  background-image: url("/images/bunko-white.svg");
  margin-left: 0.5rem;
  transform: rotate(10deg);
}

@media screen and (min-width: 960px) {
  main h1 {
    margin-bottom: 2rem;
  }
}

/* サブ見出しスタイル */
main h2 {
  font-size: 1.5rem;
  display: inline-block;
  padding: 0.6rem 1.5rem 0.6rem 0.6rem;
  margin: 1rem 0 1rem 0;
}

main h2::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 1.7rem;
  height: 1.7rem;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 0.5rem;
  margin-bottom: 0.3rem;
}

/* 奇数セクション・記事のサブ見出し */
.h2-container:nth-of-type(odd) h2,
article:nth-of-type(odd) h2 {
  border-left: solid 5px var(--secondary-header1);
}

.h2-container:nth-of-type(odd) h2::before,
article:nth-of-type(odd) h2::before {
  background-image: url("/images/bunnosuke-face.svg");
}

/* 偶数セクション・記事のサブ見出し */
.h2-container:nth-of-type(even) h2,
article:nth-of-type(even) h2 {
  border-left: solid 5px var(--secondary-header2);
}

.h2-container:nth-of-type(even) h2::before,
article:nth-of-type(even) h2::before {
  background-image: url("/images/bunnosuke-star.svg");
}

main p {
  margin-bottom: 0.5rem;
}

main p,
main li,
main table {
  line-height: 1.5rem;
  overflow-wrap: break-word;
  word-break: normal;
}
/* リスト共通スタイル */
main ul,
main ol,
details {
  list-style-type: none;
}

main ul > li,
main ol > li {
  position: relative;
}

main ul > li,
summary,
details > div {
  padding: 0 0.3rem 0.3rem 1.3rem;
}

main ol > li {
  padding: 0 0.3rem 0.3rem 1.6rem;
}

main ul > li > h3,
main ol > li > h3,
summary {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.2rem;
}

/* リスト種類別スタイル */
.list-star > li:first-child,
.list-check > li:first-child,
.list-circle > li:first-child {
  margin-top: 0.5rem;
}

.list-star > li {
  margin-bottom: 1.3rem;
}

/* チェックリスト */
.list-check > li::before {
  position: absolute;
  content: "";
  display: block;
  top: 0.5em;
  left: 0;
  width: 6px;
  height: 6px;
  border-right: 3px solid var(--blue2);
  border-bottom: 3px solid var(--blue2);
  transform: rotate(-45deg);
}

/* スターリスト */
.list-star > li::before {
  position: absolute;
  content: "★";
  top: 0;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 100%;
  color: #e0be25;
}

/* 丸数字リスト */
.list-circle > li::before {
  content: counters(list-item, ".") " ";
  background-color: #1baf6c;
  color: var(--white);
  font-weight: 700;
  border: 1px solid;
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 1.3rem;
  width: 1.3rem;
  font-size: 85%;
  line-height: 1;
  position: absolute;
  top: 0.1rem;
  left: 0;
}

main a {
  color: var(--blue2);
  text-decoration: none;
  font-weight: 700;
  padding: 0 0.1rem;
  border-bottom: var(--blue2) 2px solid;
  transition: border-bottom-color 150ms;
}
main a:hover {
  border-color: var(--transparent);
  cursor: pointer;
}
main li > a {
  border-bottom: none;
}

main b {
  font-weight: 700;
  padding: 0 0.1rem;
}

table {
  table-layout: fixed;
  box-sizing: border-box;
  margin: 0 0 0.1rem 0;
  width: 100%;
}

.button-list {
  margin-top: 2rem;
}
/* ボタンスタイル */
.button-list__item {
  background-color: var(--white2);
  color: var(--black);
  border-radius: 0.4rem;
  padding: 0;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.button-list__item a {
  color: var(--black);
  text-decoration: none;
  font-size: 0.8rem;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button-list__item a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: rotate(45deg) translateY(-50%);
  width: 6px;
  height: 6px;
  border-width: 2px 2px 0 0;
  border-style: solid;
}

caption,
table th,
table td {
  border: 3px solid var(--white);
  background-color: var(--blue3);
  padding: 0.4rem 0.6rem;
}
caption,
table th {
  background-color: var(--blue2);
  color: var(--white);
  text-align: center;
  vertical-align: middle;
  width: 100%;
  font-weight: 700;
}

caption {
  border-bottom: none;
}

table th {
  width: 5rem;
}

details {
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--black);
}
summary {
  position: relative;
  display: block; /* 矢印を消す */
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none; /* 矢印を消す */
}
/* 疑似要素でアイコンを表示 */
summary:before,
summary:after {
  content: "";
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 3px;
  left: 0;
}
summary:before {
  width: 1rem;
  height: 1rem;
  border-radius: 6px;
  background-color: var(--pink);
}
summary:after {
  left: 6px;
  width: 0.3rem;
  height: 0.3rem;
  border: 4px solid transparent;
  border-left: 5px solid var(--white);
  box-sizing: border-box;
  transition: 0.1s;
}
/* オープン時 */
details[open] summary:after {
  transform: rotate(90deg); /* 90度回転 */
  left: 4px;
  top: 5px;
}
