.ebook {
  background: #fff;
  color: #0f0f0f;
}
.ebook__intro {
  padding-top: 148px;
  padding-left: 70px;
  padding-right: 70px;
}
@media screen and (max-width: 1024px) {
  .ebook__intro {
    padding-left: 24px;
    padding-right: 24px;
  }
}
.ebook__intro-inner {
  max-width: 1280px;
  margin-inline: auto;
}
.ebook__label {
  margin: 0 0 10px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.ebook__title {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}
.ebook__body {
  margin-top: 50px;
  padding-top: 100px;
  padding-bottom: 160px;
  padding-left: 70px;
  padding-right: 70px;
  border-radius: 30px 30px 0 0;
  background: #fff;
}
@media screen and (max-width: 1024px) {
  .ebook__body {
    padding-left: 24px;
    padding-right: 24px;
  }
}
.ebook__body-inner {
  max-width: 1280px;
  margin-inline: auto;
}
.ebook__filters {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 48px;
}
.ebook__filter {
  padding: 6px 20px;
  border: 1px solid rgba(15, 15, 15, 0.28);
  border-radius: 100px;
  background: transparent;
  color: #0f0f0f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  -webkit-transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.ebook__filter:hover {
  border-color: #0f0f0f;
}
.ebook__filter:focus-visible {
  outline: 2px solid #0f0f0f;
  outline-offset: 3px;
}
.ebook__filter.is-active {
  background: #0f0f0f;
  border-color: #0f0f0f;
  color: #fff;
}
.ebook__empty {
  margin: 0 0 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}
.ebook__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 610px);
  -webkit-column-gap: 60px;
     -moz-column-gap: 60px;
          column-gap: 60px;
  row-gap: 60px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ebook__card {
  width: 100%;
}
.ebook__card[hidden] {
  display: none;
}
.ebook__card-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  color: inherit;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
.ebook__card-link:hover {
  opacity: 0.78;
}
.ebook__card-thumb {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 610 / 343;
  margin: 0;
  border-radius: 8px;
  background: #d9d9d9;
}
.ebook__card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.ebook__card-title {
  margin: 24px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.ebook__card-desc {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.ebook__card-tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}
.ebook__card-tag {
  padding: 4px 12px;
  border: 1px solid rgba(15, 15, 15, 0.22);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #707070;
}
.ebook__pager {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 12px;
  margin: 64px 0 0;
}
.ebook__pager[hidden] {
  display: none;
}
.ebook__pager-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}
.ebook__pager-btn,
.ebook__pager-num {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(15, 15, 15, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #0f0f0f;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  -webkit-transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.ebook__pager-btn:hover:not(:disabled),
.ebook__pager-num:hover:not(:disabled) {
  border-color: #0f0f0f;
}
.ebook__pager-btn:disabled,
.ebook__pager-num:disabled {
  opacity: 0.35;
  cursor: default;
}
.ebook__pager-btn:focus-visible,
.ebook__pager-num:focus-visible {
  outline: 2px solid #0f0f0f;
  outline-offset: 3px;
}
.ebook__pager-num.is-active {
  background: #0f0f0f;
  border-color: #0f0f0f;
  color: #fff;
}

@media screen and (max-width: 1327px) {
  .ebook__grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 610px));
  }
}

@media screen and (max-width: 1024px) {
  .ebook__intro {
    padding-top: 120px;
  }
  .ebook__body {
    margin-top: 40px;
    padding-top: 48px;
    padding-bottom: 80px;
    border-radius: 20px 20px 0 0;
  }
  .ebook__filters {
    margin-bottom: 36px;
    gap: 8px;
  }
  .ebook__grid {
    grid-template-columns: minmax(0, 1fr);
    -webkit-column-gap: 48px;
       -moz-column-gap: 48px;
            column-gap: 48px;
    row-gap: 48px;
  }
  .ebook__card-thumb {
    aspect-ratio: 327 / 184;
  }
  .ebook__card-title {
    margin-top: 28px;
    font-size: 20px;
  }
  .ebook__card-desc {
    font-size: 14px;
  }
  .ebook__card-tags {
    margin-top: 28px;
  }
  .ebook__pager {
    margin-top: 48px;
  }
}

.ebook-single__body {
  padding-top: 90px;
  padding-bottom: 120px;
}
.ebook-single__inner {
  max-width: 1280px;
  margin-inline: auto;
}
.ebook-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 486px) minmax(0, 504px);
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 48px 80px;
}
.ebook-single__thumb {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 486 / 274;
  margin: 0 0 40px;
  border-radius: 8px;
  background: #d9d9d9;
}
.ebook-single__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.ebook-single__section {
  margin: 0 0 40px;
}
.ebook-single__heading {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.08em;
}
.ebook-single__text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
.ebook-single__form-title {
  margin: 0 0 48px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.08em;
}
.ebook-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 19px;
}
.ebook-form .wpcf7 {
  width: 100%;
}
.ebook-form .wpcf7-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 19px;
  margin: 0;
}
.ebook-form .wpcf7-spinner {
  margin-left: 8px;
}
.ebook-form__fallback {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.ebook-form__field,
.ebook-form__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.ebook-form__label-row,
.ebook-form__legend-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
.ebook-form__label,
.ebook-form__legend {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  -webkit-box-flex: 0;
      -ms-flex: 0 1 auto;
          flex: 0 1 auto;
  min-width: 0;
}
.ebook-form__badges {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  gap: 8px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
.ebook-form__required {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-width: 41px;
  height: 20px;
  padding: 0 10px;
  border-radius: 4px;
  background: #d4060b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.ebook-form__note {
  font-size: 12px;
  font-weight: 500;
  color: #707070;
  line-height: 1;
  white-space: nowrap;
}
.ebook-form__input,
.ebook-form .wpcf7-text,
.ebook-form .wpcf7-email,
.ebook-form__select,
.ebook-form .wpcf7-select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(15, 15, 15, 0.18);
  border-radius: 4px;
  background: #fff;
  color: #0f0f0f;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.ebook-form__select-wrap {
  position: relative;
}
.ebook-form__select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #0f0f0f;
  border-bottom: 2px solid #0f0f0f;
  -webkit-transform: translateY(-65%) rotate(45deg);
          transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.ebook-form__select,
.ebook-form .wpcf7-select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding-right: 40px;
}
.ebook-form__checks {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px 20px;
}
.ebook-form__checks--row {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.ebook-form__checks--col {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.ebook-form__checks .wpcf7-checkbox,
.ebook-form__checks .wpcf7-form-control-wrap {
  display: contents;
}
.ebook-form__checks .wpcf7-list-item {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  margin: 0;
}
.ebook-form__checks .wpcf7-list-item-label,
.ebook-form__check {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.ebook-form__checks input[type=checkbox],
.ebook-form__check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #0f0f0f;
}
.ebook-form__privacy-wrap,
.ebook-form__privacy {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.ebook-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.ebook-form .wpcf7-acceptance label,
.ebook-form__privacy {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.ebook-form .wpcf7-acceptance input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  accent-color: #0f0f0f;
}
.ebook-form__privacy a,
.ebook-form .wpcf7-acceptance a {
  text-decoration: underline;
}
.ebook-form__response .wpcf7-response-output {
  margin: 0;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.ebook-form__submit-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 8px;
}
.ebook-form__submit,
.ebook-form .wpcf7-submit {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-width: 255px;
  height: 60px;
  margin: 0;
  padding: 0 24px;
  border: none;
  border-radius: 100px;
  background: #0f0f0f;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
.ebook-form__submit:hover:not(:disabled),
.ebook-form .wpcf7-submit:hover:not(:disabled) {
  opacity: 0.82;
}
.ebook-form__submit:disabled,
.ebook-form .wpcf7-submit:disabled {
  opacity: 0.5;
  cursor: default;
}
.ebook-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
  color: #d4060b;
}

@media screen and (max-width: 1024px) {
  .ebook-single__body {
    padding-top: 48px;
    padding-bottom: 80px;
  }
  .ebook-single__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ebook-single__thumb {
    margin-bottom: 28px;
  }
  .ebook-single__heading,
  .ebook-single__form-title {
    font-size: 22px;
    letter-spacing: 0.04em;
  }
  .ebook-single__form-title {
    margin-bottom: 32px;
  }
  .ebook-form__label-row,
  .ebook-form__legend-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 8px;
  }
  .ebook-form__badges {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
  }
  .ebook-form__checks--row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .ebook-form__submit,
  .ebook-form .wpcf7-submit,
  .ebook-form__submit-wrap {
    width: 100%;
    min-width: 0;
  }
}
