/* 教材ページ用スタイル */

/* 基本設定 */
.textbook-page {
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: #333;
}

/* びっくりマーク二重表示用（文字間隔を詰める） */
.textbook-exclamation {
  letter-spacing: -0.6em;
}

/* コンテナ */
.textbook-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* セクションタイトル */
.textbook-section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

.textbook-section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #009ce6;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .textbook-container {
    padding: 40px 15px;
  }

  .textbook-section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

/* 教材ページヘッダー */
.textbook-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0;
}
.textbook-header__inner {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.textbook-header__logo img {
  height: 40px;
  width: auto;
  display: block;
}
.textbook-header__right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.textbook-header__tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 16px;
}
.textbook-header__tel-hours {
  font-size: 14px;
  color: #2b2325;
}
.textbook-header__tel-num {
  font-size: 20px;
  font-weight: 700;
  color: #2b2325;
  display: flex;
  align-items: center;
}
.textbook-header__tel-icon img {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
}
.textbook-header__tel-num a {
  color: #2b2325;
  text-decoration: none;
}
.textbook-header__btn {
  display: inline-block;
  width: 200px;
  text-align: center;
  background: #f7d138;
  color: #333333;
  font-weight: 700;
  font-size: 16px;
  border-radius: 6px;
  padding: 12px 0;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.textbook-header__btn:hover {
  background: #ffe082;
}

@media screen and (max-width: 1024px) {
  .textbook-header__inner {
    padding: 12px 20px;
  }
  .textbook-header__logo img {
    height: 32px;
  }
  .textbook-header__tel-num {
    font-size: 18px;
  }
  .textbook-header__btn {
    width: 180px;
    font-size: 15px;
    padding: 10px 0;
  }
}

@media screen and (max-width: 768px) {
  .textbook-header__inner {
    padding: 10px 15px;
  }
  .textbook-header__logo img {
    height: 28px;
  }
  .textbook-header__right {
    gap: 20px;
  }
  .textbook-header__tel-hours {
    font-size: 12px;
  }
  .textbook-header__tel-num {
    font-size: 16px;
  }
  .textbook-header__tel-icon img {
    width: 14px;
    height: 14px;
  }
  .textbook-header__btn {
    width: 160px;
    font-size: 14px;
    padding: 9px 0;
  }
}

@media screen and (max-width: 600px) {
  .textbook-header__inner {
    padding: 8px 10px;
  }
  .textbook-header__logo img {
    height: 24px;
  }
  .textbook-header__right {
    gap: 12px;
  }
  /* スマホでは電話番号の営業時間を非表示 */
  .textbook-header__tel-hours {
    display: none;
  }
  .textbook-header__tel {
    margin-right: 0;
  }
  .textbook-header__tel-num {
    font-size: 15px;
  }
  .textbook-header__tel-icon img {
    width: 13px;
    height: 13px;
  }
  .textbook-header__btn {
    width: 80px;
    font-size: 12px;
    padding: 8px 0;
  }
}

/* ファーストビュー（MV）セクション */
.textbook-mv {
  background: #e5f4ff;
  width: 100%;
  padding-top: 110px;
  margin-bottom: 0;
}
.textbook-mv__bg {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}
.textbook-mv__img-wrap {
  position: relative;
  width: 100%;
  max-width: 1280px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: #e5f4ff;
}
.textbook-mv__img {
  width: 100%;
  max-width: 1280px;
  height: auto;
  max-height: 715px;
  display: block;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
}
.textbook-mv__appeal {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 0 0 60px;
  z-index: 2;
}
.textbook-mv__appeal-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.textbook-mv__appeal-img {
  width: 180px;
  height: 248px;
  object-fit: contain;
}
.textbook-mv__appeal-badge {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: -10px;
}
.textbook-mv__copy {
  margin-top: 0;
}
.textbook-mv__copy-line {
  display: block;
  background: #2d82bc;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  padding: 10px 24px;
  margin-bottom: 0;
  box-shadow: 10px 10px 0 #fff;
}
.textbook-mv__copy-line + .textbook-mv__copy-line {
  margin-top: 16px;
}
.textbook-mv__copy-yellow {
  color: #fcf000;
}

@media screen and (max-width: 1024px) {
  .textbook-mv {
    padding-top: 60px;
  }
  .textbook-mv__appeal {
    padding: 40px 0 0 30px;
  }
  .textbook-mv__appeal-img {
    width: 120px;
    height: 165px;
  }
  .textbook-mv__appeal-badge {
    width: 120px;
    height: 120px;
  }
  .textbook-mv__copy-line {
    font-size: 28px;
    padding: 8px 20px;
    box-shadow: 8px 8px 0 #fff;
  }
}
@media screen and (max-width: 768px) {
  .textbook-mv {
    padding-top: 40px;
  }
  .textbook-mv__img-wrap {
    border-radius: 12px 12px 0 0;
  }
  .textbook-mv__img {
    border-radius: 12px 12px 0 0;
    max-height: 400px;
  }
  .textbook-mv__appeal {
    padding: 20px 0 0 15px;
  }
  .textbook-mv__appeal-row {
    gap: 10px;
    margin-bottom: 16px;
  }
  .textbook-mv__appeal-img {
    width: 80px;
    height: 110px;
  }
  .textbook-mv__appeal-badge {
    width: 80px;
    height: 80px;
    margin-bottom: -5px;
  }
  .textbook-mv__copy-line {
    font-size: 18px;
    padding: 6px 12px;
    box-shadow: 5px 5px 0 #fff;
  }
  .textbook-mv__copy-line + .textbook-mv__copy-line {
    margin-top: 10px;
  }
}

/* セカンドセクション */
.textbook-second {
  margin: 64px 0 64px 0;
}
.textbook-second__title {
  font-size: 32px;
  font-weight: 900;
  padding: 10px 40px;
  background: linear-gradient(90deg, #0a65b2 0%, #009ce6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  position: relative;
  display: inline-block;
  text-align: center;
}
.textbook-second {
  text-align: center;
}
.textbook-second__title::after {
  content: "";
  display: block;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0a65b2 0%, #009ce6 100%);
  width: calc(100% + 0px);
  position: absolute;
  left: 0;
}
.textbook-second__problems {
  display: flex;
  gap: 64px;
  justify-content: center;
  margin-top: 40px;
}
.textbook-second__problem {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
}
.textbook-second__problem-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 18px;
}
.textbook-second__problem-copy {
  color: #2d82bc;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
}

@media screen and (max-width: 1024px) {
  .textbook-second {
    margin: 50px 0;
  }
  .textbook-second__title {
    font-size: 28px;
    padding: 8px 30px;
  }
  .textbook-second__problems {
    gap: 40px;
  }
  .textbook-second__problem {
    width: 250px;
  }
  .textbook-second__problem-img {
    width: 160px;
    height: 160px;
  }
  .textbook-second__problem-copy {
    font-size: 20px;
  }
}
@media screen and (max-width: 768px) {
  .textbook-second {
    margin: 40px 0;
  }
  .textbook-second__title {
    font-size: 24px;
    padding: 6px 20px;
  }
  .textbook-second__problems {
    gap: 24px;
    margin-top: 30px;
  }
  .textbook-second__problem {
    width: 30vw;
    min-width: 100px;
    max-width: 180px;
  }
  .textbook-second__problem-img {
    width: 120px;
    height: 120px;
    margin-bottom: 12px;
  }
  .textbook-second__problem-copy {
    font-size: 16px;
  }
}
@media screen and (max-width: 600px) {
  .textbook-second__title {
    font-size: 20px;
  }
  .textbook-second__problems {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .textbook-second__problem {
    width: 80vw;
    max-width: 280px;
  }
  .textbook-second__problem-img {
    width: 140px;
    height: 140px;
  }
  .textbook-second__problem-copy {
    font-size: 18px;
  }
}

/* 解決コピーセクション */
.textbook-solve {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #2d82bc;
  position: relative;
  padding: 94px 0 64px 0;
  text-align: center;
  overflow: visible;
}
.textbook-solve__triangle-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.textbook-solve__triangle {
  display: block;
}
.textbook-solve__copy {
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}
.textbook-solve__copy-yellow {
  color: #fcf000;
}
@media screen and (max-width: 1024px) {
  .textbook-solve {
    padding: 80px 0 50px 0;
  }
  .textbook-solve__copy {
    font-size: 32px;
    padding: 0 20px;
  }
}
@media screen and (max-width: 768px) {
  .textbook-solve {
    padding: 60px 0 40px 0;
  }
  .textbook-solve__triangle-wrap svg {
    width: 48px;
    height: 42px;
  }
  .textbook-solve__copy {
    font-size: 24px;
    padding: 0 15px;
  }
}
@media screen and (max-width: 600px) {
  .textbook-solve {
    padding: 50px 0 35px 0;
  }
  .textbook-solve__copy {
    font-size: 20px;
    line-height: 1.5;
  }
}

/* サンプルセクション */
.textbook-sample {
  padding: 80px 0;
  max-width: 812px;
  margin: 0 auto;
}
.textbook-sample__caption {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #2d82bc;
  margin-bottom: 48px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.textbook-sample__content {
  display: flex;
  gap: 40px;
  align-items: stretch;
}
.textbook-sample__list {
  display: grid;
  grid-template-columns: repeat(2, 100px);
  gap: 32px;
  flex: 0 0 auto;
}
.textbook-sample__item {
  cursor: pointer;
  border: 2px solid #e0e0e0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.textbook-sample__item:hover {
  border-color: #2d82bc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 130, 188, 0.2);
}
.textbook-sample__item.active {
  border-color: #2d82bc;
  box-shadow: 0 0 0 3px rgba(45, 130, 188, 0.2);
}
.textbook-sample__item img {
  width: 100%;
  height: auto;
  display: block;
}
.textbook-sample__preview {
  flex: 1;
  display: flex;
  align-items: stretch;
  border: 2px solid #e0e0e0;
  overflow: hidden;
  background: #f8f9fa;
}
.textbook-sample__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media screen and (max-width: 1024px) {
  .textbook-sample {
    padding: 60px 20px;
  }
  .textbook-sample__content {
    gap: 30px;
  }
  .textbook-sample__list {
    gap: 24px;
  }
}
@media screen and (max-width: 900px) {
  .textbook-sample__content {
    flex-direction: column;
  }
  .textbook-sample__list {
    grid-template-columns: repeat(4, 80px);
    gap: 16px;
    justify-content: center;
  }
  .textbook-sample__preview {
    min-height: 500px;
  }
}
@media screen and (max-width: 768px) {
  .textbook-sample {
    padding: 50px 15px;
  }
  .textbook-sample__caption {
    font-size: 14px;
    margin-bottom: 32px;
    text-align: left;
  }
  .textbook-sample__preview {
    min-height: 400px;
  }
}
@media screen and (max-width: 600px) {
  .textbook-sample {
    padding: 40px 15px;
  }
  .textbook-sample__list {
    grid-template-columns: repeat(4, 70px);
    gap: 12px;
  }
  .textbook-sample__content {
    gap: 20px;
  }
  .textbook-sample__preview {
    min-height: 350px;
  }
}

/* お申し込みフォームセクション */
.textbook-form {
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.textbook-form__title-wrap {
  text-align: center;
  margin-bottom: 48px;
}
.textbook-form__subtitle {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0a65b2;
  position: relative;
  display: inline-block;
  padding: 0 40px;
}
.textbook-form__subtitle::before,
.textbook-form__subtitle::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
.textbook-form__subtitle::before {
  left: -16px;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='14' y1='4' x2='34' y2='44' stroke='%230A65B2' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='24' y1='4' x2='44' y2='44' stroke='%230A65B2' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.textbook-form__subtitle::after {
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='34' y1='4' x2='14' y2='44' stroke='%230A65B2' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='44' y1='4' x2='24' y2='44' stroke='%230A65B2' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.textbook-form__title {
  font-size: 32px;
  font-weight: 900;
  color: #0a65b2;
  margin: 0;
}
.textbook-form__content {
  max-width: 700px;
  margin: 0 auto;
}

@media screen and (max-width: 1024px) {
  .textbook-form {
    padding: 60px 20px;
  }
}
@media screen and (max-width: 768px) {
  .textbook-form {
    padding: 50px 15px;
  }
  .textbook-form__title-wrap {
    margin-bottom: 36px;
  }
  .textbook-form__subtitle {
    font-size: 18px;
    padding: 0 50px;
  }
  .textbook-form__subtitle::before,
  .textbook-form__subtitle::after {
    width: 36px;
    height: 36px;
  }
  .textbook-form__subtitle::before {
    left: 0;
  }
  .textbook-form__subtitle::after {
    right: 0;
  }
  .textbook-form__title {
    font-size: 28px;
  }
}
@media screen and (max-width: 600px) {
  .textbook-form {
    padding: 40px 10px;
  }
  .textbook-form__subtitle {
    font-size: 16px;
    padding: 0 45px;
  }
  .textbook-form__subtitle::before,
  .textbook-form__subtitle::after {
    width: 30px;
    height: 30px;
  }
  .textbook-form__title {
    font-size: 24px;
  }
}

/* フッター */
.textbook-footer {
  background: #2d82bc;
  padding: 32px 0;
  text-align: center;
}
.textbook-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.textbook-footer__copyright {
  color: #fff;
  font-size: 14px;
  margin: 0;
  font-weight: 400;
}

@media screen and (max-width: 768px) {
  .textbook-footer {
    padding: 24px 0;
  }
  .textbook-footer__copyright {
    font-size: 12px;
  }
}
