@charset "UTF-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}
button {
  color: inherit;
}

.forum #pageTop {
  z-index: 99;
}

/* 表示非表示切り替え */
.under720,
.under480,
.under400 {
  display: none;
}
@media screen and (max-width: 720px) {
  .under720 {
    display: revert;
  }
}
@media screen and (max-width: 480px) {
  .under480 {
    display: revert;
  }
}
@media screen and (max-width: 400px) {
  .under400 {
    display: revert;
  }
}

/* 変数 */
:root {
  --global-brown: #af8f68;
  --tsubasa-base-color: #34bfd6;
  --tsubasa-light-color: #d6f2f7; /* 20% */
  --tsubasa-pale-color: #ebf9fb; /* 10% */
  --tsubasa-mist-color: #f5fcfd; /* 5% */
  --tsubasa-dark-color: #278fa1; /* HSBスケールでBを25%減じた */
  --required-red: #c1272d;
  --font-size-base: 16px;
}
@media screen and (max-width: 375px) {
  :root {
    --font-size-base: 4.25vw;
  }
}

/* ベースフォント */
.digital_textbook {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: #3c3c43;
}

/* 従来型要素 */
.common_heading {
  font-size: var(--font-size-base);
  margin: 2em 0 0;
  padding-bottom: 1.375em;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4em;
}
.common_heading h3 {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.2;
  padding: 0 0 0 0.25em;
  border-left: 6px solid currentColor;
}
.common_heading.tsubasa h3 {
  border-color: var(--tsubasa-base-color);
}
.common_heading .link {
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}
.common_heading .link::before {
  content: "";
  position: absolute;
  width: 1em;
  height: 1em;
  left: -1.25em;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--tsubasa-base-color);
  -webkit-mask: url("../images/icon_arrow.svg") center center / 1em 1em
    no-repeat;
  mask: url("../images/icon_arrow.svg") center center / 1em 1em no-repeat;
}
.news_area .common_heading {
  margin: 2em 0 0.5em;
  border-bottom: 1px solid #c0c0c0;
}
@media screen and (max-width: 600px) {
  .common_heading h3 {
    font-size: calc(var(--font-size-base) * 1.25);
    line-height: 1.25;
  }
}
@media screen and (max-width: 400px) {
  .common_heading {
    gap: 2.5em;
  }
}

/* 下線リンク */
.inline_link {
  text-decoration: underline;
  font-weight: 500;
}

/* コンテンツエリア */
.content_area {
  /* inner の設定
  width: 94%;
  */
  width: calc(100% - 5em);
  max-width: 1120px;
  margin-inline: auto;
  line-height: 1;
}
@media screen and (max-width: 720px) {
  .content_area {
    width: calc(100% - 3em);
  }
}
@media screen and (max-width: 620px) {
  .content_area {
    /* inner の設定
    width: 92%;
    */
    width: calc(100% - 2em);
  }
}
@media screen and (max-width: 600px) {
  .content_area {
    /* inner の設定
    width: 92%;
    */
    width: calc(100% - 1em);
  }
}

/* お知らせ表示部 */
.news_box_2026 {
  width: 100%;
  max-height: 12.5em;
  overflow-y: scroll;
  /*
  background-color: lightyellow;
  */
  padding: 0.875em 1.25em;
  color: #707070;
}
.news_box_2026 .news_data {
  display: grid;
  grid-template-columns: max-content 9.5em 1fr;
  column-gap: 1.25em;
  row-gap: 1em;
}
.news_box_2026 .news_data li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}
@media screen and (max-width: 1024px) {
  .news_box_2026 {
    max-height: none;
  }
  .news_box_2026 .news_data li.pc {
    /* デフォルト設定が負けちゃうので */
    display: none;
  }
}
.news_box_2026 .date {
  font-size: 0.875em;
  margin-top: 0.125em;
}
.news_box_2026 .tag {
  font-size: 0.8125em;
  font-weight: 700;
  padding: 0.125em 0.25em;
  width: 100%;
  /*
  height: max-content;
  */
  align-self: start;
  border-radius: 0.3em;
  border: 1px solid currentColor;
  text-align: center;
}
@media screen and (max-width: 600px) {
  .news_box_2026 .news_data {
    grid-template-columns: 1fr;
  }
  .news_box_2026 .news_data li {
    grid-template-columns: max-content 7.5em 1fr;
    grid-template-rows: auto auto;
    column-gap: 1em;
    row-gap: 0.125em;
  }
  .news_box_2026 .date {
    margin-top: 0;
    grid-column: 1;
    grid-row: 1;
  }
  .news_box_2026 .tag {
    font-size: 0.625em;
    grid-column: 2;
    grid-row: 1;
  }
  .news_box_2026 .txt {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* マニュアル部 */
.manual_area {
  margin-top: 3.5em;
}
.manual_grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2em;
}
.manual_item {
  padding: 0 0 1em 0.75em;
}
.minor_heading {
  margin-bottom: 1em;
}
.minor_heading h4 {
  font-size: 1.125em;
  font-weight: 500;
}
.minor_heading h4::before {
  content: "■";
  display: inline-block;
  margin-right: 0.25em;
}
.minor_heading.tsubasa h4::before {
  color: var(--tsubasa-base-color);
}
.manual_item_detail,
.login_item_detail {
  margin-left: 1.25em;
}
.link_button a {
  display: inline-block;
  font-weight: 500;
  background-color: var(--tsubasa-pale-color);
  text-decoration: none;
  border-radius: 1.5em;
  position: relative;
  padding: 0.5em 1em 0.5em 1.875em;
}
.link_button a::before {
  content: "";
  position: absolute;
  width: 1em;
  height: 1em;
  left: 0.875em;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--tsubasa-base-color);
  -webkit-mask: url("../images/icon_arrow.svg") center center / 1em 1em
    no-repeat;
  mask: url("../images/icon_arrow.svg") center center / 1em 1em no-repeat;
}
.digital_textbook .link_button + .note {
  margin-top: 1em;
}
.note {
  font-size: 0.875em;
  color: #707070;
  margin-bottom: 0.5em;
}
.usage_grid {
  margin-left: 1.25em;
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  align-items: center;
  gap: 1em;
}
@media screen and (max-width: 900px) {
  .manual_grid {
    grid-template-columns: 1fr;
    gap: 0em;
  }
}

/* ログイン部 */
.login_item {
  padding: 0 0 0 0.75em;
}
.login_item_detail {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1em;
}
.notice_text + .login_item_detail {
  margin-top: 1em;
}
.login_item_detail + .notice_text {
  margin-top: 1.5em;
}
.link_button_fat a {
  width: 24.5em;
  height: 3em;
  display: inline-block;
  line-height: 1.5;
  font-weight: 700;
  background-color: #e6e6e6;
  text-decoration: none;
  border-radius: 0.625em;
  position: relative;
  padding: 0.75em 1.875em 0.75em 4.875em;
}
.link_button_fat a::before {
  content: "";
  position: absolute;
  width: 2.5em;
  height: 2.5em;
  left: 1.125em;
  top: 50%;
  transform: translateY(-50%);
  background-color: black;
}
.link_button_fat.with_gear a::before {
  -webkit-mask: url("../images/icon_gear.svg") center center / 2.5em 2.5em
    no-repeat;
  mask: url("../images/icon_gear.svg") center center / 2.5em 2.5em no-repeat;
}
.link_button_fat.with_book a::before {
  -webkit-mask: url("../images/icon_digital_textbook.svg") center center / 2.5em
    2.5em no-repeat;
  mask: url("../images/icon_digital_textbook.svg") center center / 2.5em 2.5em
    no-repeat;
}
@media screen and (max-width: 450px) {
  .link_button_fat a {
    width: 22em;
    padding: 0.75em 1.375em 0.75em 3.375em;
  }
  .link_button_fat a::before {
    left: 0.625em;
  }
}
@media screen and (max-width: 400px) {
  .link_button_fat a {
    width: 18em;
    height: auto;
    padding: 0.75em 1.375em 0.75em 5.375em;
  }
  .link_button_fat a::before {
    left: 1.625em;
  }
}

/* お問い合わせボタン */
/* 掲載希望ボタン */
.request_button {
  margin-top: 2em;
  margin-inline: auto;
  width: 17em;
  height: 2.625em;
  box-sizing: border-box;
  border-radius: 2.625em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.request_button.tsubasa {
  border: 2px solid var(--tsubasa-base-color);
  margin-top: 4em;
}
.request_button a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}
.request_button.tsubasa a {
  color: var(--tsubasa-base-color);
  font-weight: 700;
}
.request_button a::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25em;
  width: 1em;
  height: 1em;
  -webkit-mask: url("../images/arrow_right.svg") center center / 1em 1em
    no-repeat;
  mask: url("../images/arrow_right.svg") center center / 1em 1em no-repeat;
  transform: translateY(1px); /* 見た目の調整でアイコンを少し下にずらす */
}
.request_button a::after {
  background-color: var(--tsubasa-base-color);
}
@media screen and (max-width: 600px) {
  .request_button {
    margin-top: 1em;
    height: 2.25em;
  }
}

/* サポートページ */
.kv_area {
  background-image: image-set(
    url("../images/bg_support.webp") type("image/webp") 1x,
    url("../images/bg_support@2x.webp") type("image/webp") 2x,
    url("../images/bg_support.png") type("image/png") 1x,
    url("../images/bg_support@2x.png") type("image/png") 2x
  );
  /* maxで1622と100%の大きい方＝1622よりkv_areaの幅が広くなると100%になるように拡大 */
  background-size: max(1622px, 100%) auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  height: 170px;
}
.kv_inner {
  width: calc(100% - 1em);
  max-width: 1184px;
  margin-inline: auto;
}
.title_box {
  width: 520px;
  height: 130px;
  background-color: white;
  text-align: center;
  margin-left: 0.5em;
  border-radius: 0 0 15px 15px;
  padding: 3.25em 0 0 1.75em;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.75em;
}
.title_box h2 {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}
.title_box .tsubasa_logo {
  width: 102px;
  height: 60px;
  position: relative;
  top: -1em;
}
.title_box .tsubasa_logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media screen and (max-width: 720px) {
  .title_box {
    width: 22em;
    margin-left: 1em;
    border-radius: 0 0 15px 15px;
    padding: 2.25em 0 0 1.75em;
  }
  .title_box .tsubasa_logo {
    top: 0.5em;
  }
}
@media screen and (max-width: 600px) {
  .kv_area {
    background-position: calc(100% + 17em) center;
    background-size: auto 10em;
    height: 10em;
  }
  .kv_inner {
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  .title_box {
    width: 20.5em;
    height: 8em;
    background-color: rgba(255, 255, 255, 0.8);
    margin-left: -1em;
    border-radius: 0 1em 1em 0;
    padding: 0 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
  }
  .title_box .tsubasa_logo {
    width: 5em;
    height: auto;
    top: 0.25em;
  }
}
@media screen and (max-width: 420px) {
  .title_box {
    width: 18.5em;
    height: 6em;
  }
  .title_box .tsubasa_logo {
    width: 4.5em;
    height: auto;
    top: 0.25em;
  }
}

/* FAQバナー */
.faq_banner_area {
  width: 500px;
  height: 100px;
  margin: 2.75em auto 3em;
}
.faq_banner_area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media screen and (max-width: 600px) {
  .faq_banner_area {
    width: 320px;
    height: auto;
  }
}
@media screen and (max-width: 375px) {
  .faq_banner_area {
    width: 85vw;
  }
}

/* ページタイトル */
.page_title {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.digital_textbook .page_title {
  background-color: var(--tsubasa-pale-color);
}
.page_title h2 {
  font-size: 1.375em;
  font-weight: 700;
}
.page_title.for_contact h2 {
  text-align: center;
}
.page_title.for_faq h2 {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.page_title h2 .sub_title {
  font-size: 0.675em;
  font-weight: 400;
}

/* 導入文　*/
.digital_textbook .intro_area {
  margin: 2em auto 3em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.digital_textbook .intro_area p {
  font-size: 1em;
  line-height: 1.75;
}

/* さがす部 */
.filter_area {
  width: calc(100% - 10em);
  max-width: 960px;
  margin-top: -2em;
  margin-inline: auto;
  line-height: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
}
.filter_area button {
  /* デフォルトのボタンスタイルをリセット */
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  box-shadow: none;
  /* リセットはここまで */

  font-size: 1em;
  width: 100%;
  padding: 0.5em 1em;
  border-radius: 2em;
  border: 2px solid var(--tsubasa-pale-color);
  background: var(--tsubasa-pale-color);
  cursor: pointer;
}
.filter_area button[aria-pressed="true"] {
  font-weight: 700;
  border: 2px solid var(--tsubasa-base-color);
}
.clear_area {
  width: calc(100% - 10em);
  max-width: 960px;
  margin: 1.5em auto;
  line-height: 1;
  display: flex;
  justify-content: center;
}
.clear_area button {
  /* デフォルトのボタンスタイルをリセット */
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  box-shadow: none;
  /* リセットはここまで */

  font-size: 1em;
  width: 100%;
  padding: 0.5em 2em;
  border-radius: 2em;
  background: #e0e0e0;
  cursor: pointer;
}
@media screen and (max-width: 1080px) {
  .filter_area {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 860px) {
  .filter_area {
    width: calc(100% - 4em);
  }
}
@media screen and (max-width: 800px) {
  .filter_area {
    width: calc(100% - 2em);
  }
}
@media screen and (max-width: 740px) {
  .filter_area {
    width: 100%;
  }
}
@media screen and (max-width: 670px) {
  .filter_area {
    gap: 0.5em;
  }
  .filter_area button {
    padding: 0.5em 0.5em;
  }
}
@media screen and (max-width: 600px) {
  .filter_area {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 400px) {
  .filter_area {
    padding: 0 1em;
  }
  .filter_area button {
    height: 3.125em;
    line-height: 1;
  }
}

/* リンク付き注意項目 */
.notice_area {
  width: calc(100% - 10em);
  max-width: 960px;
  margin: 2em auto;
  line-height: 1.75;
}
.notice_text {
  padding: 0.25em 1.25em;
  position: relative;
}
.notice_text::before {
  content: "";
  position: absolute;
  width: 1em;
  height: 1em;
  left: 0;
  top: 0.55em;
  /*
  top: 50%;
  transform: translateY(-50%);
  */
  background-color: var(--tsubasa-base-color);
  -webkit-mask: url("../images/triangle_right.svg") center center / 1em 1em
    no-repeat;
  mask: url("../images/triangle_right.svg") center center / 1em 1em no-repeat;
}
.notice_text a {
  font-weight: 500;
  color: var(--tsubasa-base-color);
  text-decoration: underline;
}
@media screen and (max-width: 660px) {
  .notice_area {
    width: calc(100% - 4em);
  }
}
@media screen and (max-width: 600px) {
  .notice_area {
    width: calc(100% - 2em);
  }
}

/* FAQ部 */
.faq_area {
  width: 100%;
  margin-inline: auto;
  padding: 2em;
  border-radius: 0.5em;
  background-color: var(--tsubasa-pale-color);
  display: flex;
  flex-direction: column;
  gap: 1em;
}
/* FAQアイテム：アコーディオン */
.faq_item summary {
  list-style: none;
  position: relative;
  padding: 0.5em 3.5em;
  background-color: white;
  cursor: pointer;
}
.faq_item summary::-webkit-details-marker {
  display: none;
}
.faq_item summary::before {
  content: "Ｑ";
  position: absolute;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--tsubasa-base-color);
  left: 1.25em;
  line-height: 1;
  top: 0.5em;
  /*
  transform: translateY(-50%);
  */
}
.faq_item summary::after {
  content: "＋";
  position: absolute;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--tsubasa-base-color);
  right: 1.5em;
  line-height: 1;
  top: 0.5em;
  /*
  transform: translateY(-50%);
  */
}
.faq_item[open] summary::after {
  content: "−";
  width: 1em;
  text-align: center;
}
.faq_answer {
  position: relative;
  padding: 1em 3.5em;
}
.faq_answer::before {
  content: "Ａ";
  position: absolute;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--tsubasa-base-color);
  left: 1.25em;
  line-height: 1;
  top: 0.875em;
  /*
  transform: translateY(-50%);
  */
}
.faq_answer ol {
  list-style: decimal;
  padding-inline-start: 2em;
}
.faq_answer ol > li {
  list-style-type: decimal;
}
.faq_answer dl {
  margin-bottom: 1em;
}
.faq_answer p + dl {
  margin-top: 1em;
}
.faq_answer dt {
  font-weight: 700;
}
.faq_answer dd {
  margin-inline-start: 1em;
}
.faq_answer dd + dt {
  margin-top: 0.5em;
}
@media screen and (max-width: 720px) {
  .faq_area {
    padding: 1em;
  }
  .faq_item summary {
    padding: 0.5em 2.5em;
  }
  .faq_item summary::before {
    left: 0.5em;
  }
  .faq_item summary::after {
    right: 0.5em;
  }
  .faq_answer {
    padding: 1em 1em 1em 2.5em;
  }
  .faq_answer::before {
    left: 0.5em;
  }
}
@media screen and (max-width: 600px) {
  .faq_area {
    padding: 0.75em;
  }
  .faq_item summary {
    padding: 0.5em 2em;
  }
  .faq_item summary::before {
    left: 0.25em;
  }
  .faq_item summary::after {
    right: 0.25em;
  }
  .faq_answer {
    padding: 1em 1em 1em 2em;
  }
  .faq_answer::before {
    left: 0.25em;
  }
}
/* 掲載希望ボタン */
.contact_button {
  margin-top: 2em;
  margin-inline: auto;
  width: 17em;
  height: 2.625em;

  border-radius: 2.625em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.digital_textbook .contact_button {
  border: 2px solid var(--tsubasa-base-color);
}
.contact_button p {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  font-weight: 700;
}
.digital_textbook .contact_button p {
  color: var(--tsubasa-base-color);
}
.contact_button p::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25em;
  width: 1em;
  height: 1em;
  -webkit-mask: url("../images/arrow_right.svg") center center / 1em 1em
    no-repeat;
  mask: url("../images/arrow_right.svg") center center / 1em 1em no-repeat;
  transform: translateY(1px); /* 見た目の調整でアイコンを少し下にずらす */
}
.digital_textbook .contact_button p::after {
  background-color: var(--tsubasa-base-color);
}
@media screen and (max-width: 600px) {
  .contact_button {
    margin-top: 1em;
    height: 2.25em;
  }
}

/* 問い合わせボックス */
.contact_box {
  width: calc(100% - 10em);
  margin: 1em auto 3em;
  padding: 1.5em;
}
@media screen and (max-width: 600px) {
  .contact_box {
    width: calc(100% - 2em);
    margin: 1em auto 2em;
    padding: 1em;
  }
}
.digital_textbook .contact_box {
  background-color: var(--tsubasa-pale-color);
}
.contact_box h4 {
  font-size: 1em;
  font-weight: 500;
  text-align: center;
}
.contact_box dl {
  margin-top: 1em;
  display: grid;
  grid-template-columns: max-content max-content;
  width: fit-content;
  margin-inline: auto;
}
.contact_box dt,
.contact_box dd {
  padding: 0.25em 0;
}
.contact_box dt {
  text-align: right;
}
.contact_box dt::after {
  content: "：";
}

/* サブタイトル */
.subtitle_area {
  margin-top: 2px;
  margin-bottom: 3em;
}
.subtitle_area h3 {
  font-size: 1em;
  font-weight: 500;
  text-align: center;
}
@media screen and (max-width: 600px) {
  .subtitle_area {
    margin-top: 1em;
    margin-bottom: 1em;
  }
}

/* 詳細ページ */

/* 詳細情報 */
.detail_area {
  margin-bottom: 3em;
  line-height: 1.75;

  border-radius: 0.5em;
  background-color: #ccc; /* これが表の罫線になる */
  padding: 1px;
}
.detail_grid {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 1px;
}
.detail_grid dt,
.detail_grid dd {
  padding: 0.5em 1em;
}
.detail_grid dt {
  font-weight: 700;
  background-color: #f2f2f2;
  /*
  color: var(--tsubasa-dark-color);
  */
  text-align: center;
}
.detail_grid dt:first-of-type {
  border-top-left-radius: 0.5em;
}
.detail_grid dt:last-of-type {
  border-bottom-left-radius: 0.5em;
}
.detail_grid dd {
  background-color: white;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.detail_grid dd:first-of-type {
  border-top-right-radius: 0.5em;
}
.detail_grid dd:last-of-type {
  border-bottom-right-radius: 0.5em;
}
.detail_grid dd a {
  word-break: break-all;
  color: var(--tsubasa-dark-color);
  text-decoration: underline;
}
.contact_heading {
  margin-top: 3em;
  margin-bottom: 1em;
}
.contact_heading h3 {
  font-size: 1em;
  font-weight: 400;
  text-align: center;
}
@media screen and (max-width: 600px) {
  .detail_area {
    line-height: 1.5;
    border-radius: 0.5em;
  }
  .detail_grid {
    grid-template-columns: 5em 1fr;
  }
  .detail_grid dt,
  .detail_grid dd {
    padding: 0.25em 0.25em;
  }
}

/* 戻るボタン */
.back_button_area {
  margin-top: 3em;
  margin-bottom: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.back_button_area a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tsubasa-dark-color);
  border-radius: 1.5em;
  border: 1px solid var(--tsubasa-dark-color);
  padding: 0.25em 1.5em;
}
.back_button_area a::before {
  content: "";
  display: inline-block;
  width: 1.625em;
  height: 1.6255em;
  margin-right: 0.5em;
  flex: 0 0 auto;
  background-color: var(--tsubasa-dark-color);
  -webkit-mask: url("../images/icon_back.svg") no-repeat center / contain;
  mask: url("../images/icon_back.svg") no-repeat center / contain;
}
.back_button_area.to_top a {
  color: var(--global-brown);
  border-color: var(--global-brown);
}
.back_button_area.to_top a::before {
  background-color: var(--global-brown);
}

/* フォーム部分 */
.digital_textbook .form_area {
  margin-bottom: 3em;
  /*
  border-top: 3px solid var(--tsubasa-dark-color);
  */
}
.digital_textbook .subheading {
  margin-top: 3em;
  margin-bottom: 1.5em;
  padding-bottom: 0.25em;
  border-bottom: 3px solid var(--tsubasa-base-color);
}
.digital_textbook .subheading h3 {
  font-size: 1.125em;
  font-weight: 400;
  text-align: center;
}
.digital_textbook .subheading + .note.for_form {
  margin-top: -1.5em;
}
.note.for_form {
  color: var(--required-red);
  text-align: right;
}
.note.with_symbol {
  padding-left: 1em;
  text-indent: -1em;
}

.digital_textbook .form_grid {
  width: calc(100% - 2em);
  max-width: 800px;
  margin-inline: auto;

  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.5em;
}
.digital_textbook .for_inquiry_type {
  position: relative;
  padding-right: 1.5em;
}
.digital_textbook .material_set {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding-bottom: 1em;
  padding-right: 1.5em;
}
.digital_textbook .delete_set_button {
  position: absolute;
  top: 0.0625em;
  right: 0;
  font-size: calc(var(--tsubasa-base-font-size) * 1.375);
  line-height: 1;
  width: 1.125em;
  height: 1.0625em;
  padding: 0 0 1.0625em 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: white;
  color: var(--required-red);
  border: 1px solid var(--required-red);
  /*
  border: none;
  */
  cursor: pointer;
}
.digital_textbook .material_set:nth-of-type(2n + 1) {
  background-color: #f9f9f9;
}
.digital_textbook .extra_material_controls {
  grid-column: 1 / -1;
  display: grid;
  /*
  grid-template-columns: subgrid;
  */
  border-bottom: 2px dotted #808080;
}
.digital_textbook .extra_material_button {
  font-weight: 700;
  color: var(--tsubasa-dark-color);
  /*
  grid-column: 1 / -1;
  padding: 1em 0;
  background-color: var(--tsubasa-light-color);
  */
  text-align: center;
  margin: 1em auto;
  width: 20.5em;
}
.digital_textbook .extra_material_button p {
  display: inline-block;
  padding: 0.25em 2em;
  border-radius: 1em;
  border: 1px solid var(--tsubasa-dark-color);
  cursor: pointer;
}
.digital_textbook .material_set_actions {
  grid-column: 1 / -1;
  text-align: right;
  margin-top: 0.5em;
}
.digital_textbook .material_set_remove_button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #aaa;
  background-color: white;
  color: #666;
  font-size: 0.875em;
  line-height: 1.5;
  padding: 0.25em 0.75em;
  border-radius: 1em;
  cursor: pointer;
}
.digital_textbook .form_block {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: subgrid;

  padding-block: 1.25em;
  border-bottom: 2px dotted #808080;
}
.digital_textbook .form_block.no_border {
  padding-bottom: 0;
  border-bottom: none;
}
.digital_textbook .form_block.full {
  grid-column: 1 / -1;
  display: block;
}
.digital_textbook .form_block .full_area {
  grid-column: 1 / -1;
  padding: 0 1em;
}
.digital_textbook .required {
  font-size: 0.7em;
  position: relative;
  top: -0.5em;
  color: var(--required-red);
}
.digital_textbook .form_area select {
  width: 100%;
  max-width: 400px;
}
@media screen and (max-width: 600px) {
  .digital_textbook .form_grid {
    width: calc(100% - 1em);
    grid-template-columns: 1fr;
    column-gap: 1.5em;
  }
  .digital_textbook .form_area label {
    margin-bottom: 0.5em;
  }
  .digital_textbook .form_area select {
    max-width: revert;
  }
  .digital_textbook .form_block .full_area {
    grid-column: 1 / -1;
    padding: 0 1em;
  }
  .digital_textbook .for_inquiry_type,
  .digital_textbook .material_set {
    padding-right: 0em;
  }
}

/* フォーム中の特殊な注意書き */
label p + p.note {
  margin-top: 0.25em;
}
.note_heading {
  padding-left: 1.5em;
  font-size: 0.875em;
  font-weight: 500;
  margin-top: 1.25em;
  margin-bottom: 0.25em;
  position: relative;
}
.note_heading::before {
  content: "";
  background-color: currentColor;
  position: absolute;
  width: 1em;
  height: 1em;
  left: 0.25em;
  top: 50%;
  transform: translateY(-50%);
  background-color: currentColor;
  -webkit-mask: url("../images/icon_info.svg") center center / 1em 1em no-repeat;
  mask: url("../images/icon_info.svg") center center / 1em 1em no-repeat;
}
.note_heading.tsubasa {
  color: var(--tsubasa-base-color);
}
.note_heading.tsubasa::before {
  background-color: var(--tsubasa-base-color);
}
.special_note_block {
  padding: 1.5em;
  border-radius: 1.25em;
  background-color: var(--tsubasa-mist-color);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2.5em;
}
.spacial_note_block dt {
  font-size: 0.875em;
  font-weight: 500;
}
.special_note_block dd ol {
  font-size: 0.875em;
  font-weight: 400;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
}
.special_note_block dd ol > li {
  list-style-type: decimal;
  text-indent: -0.5em;
}
@media screen and (max-width: 720px) {
  .special_note_block {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 600px) {
  .special_note_block {
    padding: 0.5em 1.5em;
    grid-template-columns: 1fr;
    gap: 0.51em;
  }
}

.form_grid label {
  color: #666;
  padding-left: 0.125em;
  text-align: right;
}
/* テキストフィールド */
.form_area input[type="text"],
.form_area input[type="email"],
.form_area input[type="tel"],
.form_area input[type="date"],
.form_area textarea {
  width: 100%;

  border: 1px solid #ccc;
  border-radius: 0;
  padding: 0 0.25em;
  font-size: calc(var(--font-size-base) * 0.875);
  line-height: 1.5;
}
.form_area input[type="date"] {
  width: 7em;
  /*
  width: calc((100% - 2em) / 2);
  */
}
.form_area textarea {
  min-height: 6em;
  resize: vertical;
}
.form_area input.p-postal-code {
  width: 8em;
}
.form_area input[required],
.form_area textarea[required] {
  background-color: var(--tsubasa-mist-color);
}
.address_inputs {
  display: flex;
  flex-direction: column;
  gap: 0.375em;
}
.form_area input[inputmode="numeric"] {
  width: 7em;
  padding-right: 0.25em;
  display: inline-block;
}
.form_area .unit {
  display: inline-block;
  width: 1.5em;
  text-align: left;
  font-size: calc(var(--font-size-base) * 0.875);
}
/* プルダウン */
.form_area select {
  appearance: none;
  -webkit-appearance: none;

  width: 17em;
  padding: 0 2.5em 0 0.8em;

  border: 1px solid #aaa;
  border-radius: 4px;
  background-color: #fff;

  font: inherit;
  color: inherit;

  /* 矢印 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
}
/* ラジオボタン */
label.with_input {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  width: 14em;
}
/* チェックボックス */
.digital_textbook .checkbox_group {
  margin-inline: -0.5em;
  /* ↑計算上は0.75なのだが、左が詰まって見えちゃうので0.5にしている */
  /*
  background-color: lightblue;
  */
}
.check_item,
.privacy_check_area {
  display: flex;
  align-items: center;
  gap: 0.125em;
  margin-inline: 0.75em;
  position: relative;
  /*
  background-color: yellow;
  */
}
.check_item label,
.privacy_check_area label {
  position: relative;
  top: -0px;
}
.check_item input[type="checkbox"],
.privacy_check_area input[type="checkbox"] {
  appearance: none;
  width: calc(var(--font-size-base) * 0.875);
  height: calc(var(--font-size-base) * 0.875);
  margin: 0;

  border: 1px solid currentColor;
  border-radius: 0;
}
.check_item input[type="checkbox"]::before,
.privacy_check_area input[type="checkbox"]::before {
  content: "✔︎";
  position: relative;
  font-size: calc(var(--font-size-base) * 1);
  left: 1px;
  top: -0.25em;
  /*
  content: "";
  width: 1.5em;
  height: 0.75em;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -5px);
  */
  display: none;
}
.check_item input[type="checkbox"]:checked::before,
.privacy_check_area input[type="checkbox"]:checked::before {
  display: block;
}
.form_heading + .note {
  font-size: calc(var(--font-size-base) * 0.75);
  color: #666;
  line-height: 1.5;
  text-align: center;
  position: relative;
  top: -1em;
}

/* 個人情報フィールド｜purchase.cssから移植して調整 */
.privacy_policy_area {
  background-color: #f9f9f9;
  padding: 1em;
}
#privacy_policy {
  margin: 3em auto 0;
}
#privacy_policy h3 {
  font-size: calc(var(--font-size-base) * 0.875);
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.5em;
}
#privacy_policy .privacy {
  font-size: calc(var(--font-size-base) * 0.75);
  height: 15em;
  margin: 1em auto;
  display: block;
  overflow: auto;
  border: 2px solid #e6e6e2;
  background-color: white;
  padding: 1em 1em 1em 2em;
}
/* 個人情報の取り扱いについての同意チェックボックス：残りは上方 */
.privacy_check_area {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 1em;
  text-align: center;
}
.privacy_check_area .with_error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125em;
}
/* エラーメッセージ */
.with_error {
  position: relative;
}
.error_message,
.error_message_special {
  font-size: calc(var(--font-size-base) * 0.75);
  color: red;
  position: absolute;
  left: 0;
  bottom: calc(var(--font-size-base) * -1);
  display: none;
}
.checkbox_group.with_error .error_message {
  left: calc(var(--font-size-base) * 0.75);
  bottom: calc(var(--font-size-base) * -0.875);
}
.textarea_item.with_error .error_message {
  left: 0;
  bottom: calc(var(--font-size-base) * -0.75);
}
#radio_text_error_message {
  left: 2em;
}
.with_error.is_error .error_message {
  display: block;
}
.with_error.is_special_error .error_message {
  display: none;
}
.with_error.is_special_error .error_message_special {
  display: block;
}
#device.is_special_error .error_message {
  display: none;
}
#device.is_special_error .error_message_special {
  display: block;
}
@media screen and (max-width: 600px) {
  #OS {
    margin-top: -0.5em;
    margin-bottom: -0.5em;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  #browser_group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .check_item label,
  .privacy_check_area label {
    top: 0.125em;
  }
}
@media screen and (max-width: 530px) {
  #OS {
    grid-template-columns: 1fr max-content;
  }
}
@media screen and (max-width: 420px) {
  #OS {
    grid-template-columns: 1fr;
  }
}

/* 申請ボタン */
.submit_button_area {
  margin-top: 2em;
  margin-bottom: 3em;
  display: flex;
  justify-content: center;
  gap: 1em;
}
.submit_button {
  width: 200px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  border: 2px solid var(--tsubasa-dark-color);
  color: var(--tsubasa-dark-color);
  background-color: white;
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
}
.submit_button.back {
  border: 2px solid #999;
  color: #999;
}

/* 申請フォームのレスポンシブ対応 */
@media screen and (max-width: 600px) {
  .form_grid {
    display: block;
  }
  .form_grid > label,
  .form_grid > .musts,
  .form_grid > .mays {
    display: inline-flex;
  }
  .form_grid > :nth-child(3n):not(.checkbox_group) {
    display: block;
  }
  .form_grid > label {
    line-height: 1.5;
  }
  .form_grid > label:not(:first-of-type) {
    margin-top: 1.5em;
  }

  .form_grid label {
    padding-left: 0;
    text-align: left;
  }
  .form_grid .musts,
  .form_grid .mays {
    position: relative;
    top: -0.125em;
  }
  /* チェックボックス */
  .form_grid > .checkbox_group {
    display: flex;
    flex-wrap: wrap;
    /*
    font-size: calc(var(--font-size-base) * 0.875);
    margin-inline: -0.5em;
    /* ↑計算上は0.75なのだが、左が詰まって見えちゃうので0.5にしている */
  }

  .submit_button {
    width: auto;
    padding: 0 2em;
  }
  .check_item,
  .privacy_check_area {
    display: flex;
    align-items: center;
    gap: 0.125em;
    margin-inline: 0.75em;
  }
}
@media screen and (max-width: 400px) {
  .privacy_check_area {
    margin-inline: 0.25em;
  }
}
