/**
 * Theme ManabiStyle - Custom Styles
 * わたしの学びStyle固有のスタイル（カラー、特別なセクション）
 */

/* ============================
   ManabiStyle カラー設定
   ============================ */

.theme-manabistyle {
  --theme-main-color: #8cc8b4;
  --theme-main-color-light: #cbebe4;
  --theme-accent-color: #feeeea;
  --theme-text-color: #4d596d;
  --theme-section-title-font-mobile: 1.8rem;
  --theme-section-title-font-pc: 2.6rem;
  font-family: "Roboto", "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;

  /* 共通のcolor-textをManabiStyleの色に上書き */
  --color-text: #4d596d;
}

/* ============================
   背景とメインコンテナ
   ============================ */

/* ページ全体の背景パターン */
.theme-manabistyle {
  background: url(../images/mnb_bg.png) top center;
  margin-top: 0;
}

.theme-manabistyle .main-content {
  background: #fff;
  position: relative;
  overflow: hidden;
  padding: 0 0 80px;
  margin: 20px auto 20px;
}

@media (min-width: 768px) {
  .theme-manabistyle .main-content {
    overflow: inherit;
    margin: 0 auto;
  }
}

/* 影のエフェクト（左右） */
.theme-manabistyle .main-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40px;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.05) 80%);
  pointer-events: none;
}

.theme-manabistyle .main-content::after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 40px;
  height: 100%;
  background: linear-gradient(-90deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.05) 80%);
  pointer-events: none;
}

/* サムネイルコンテナのボーダー（hover時の画像拡大でも表示維持） */
.theme-manabistyle .theme-article-thumb {
  border: solid 1px var(--color-light);
}

/* ページネーションの色をManabiStyleカラーに（SDGs仕様に統一） */
.theme-manabistyle .theme-pagination-prev,
.theme-manabistyle .theme-pagination-next {
  background: var(--theme-main-color);
  border-color: var(--theme-main-color);
}

.theme-manabistyle .theme-pagination-number:hover {
  border-color: var(--theme-main-color);
}

.theme-manabistyle .theme-pagination-number.is-active {
  background: color-mix(in srgb, var(--theme-main-color) 10%, transparent);
  border-color: var(--theme-main-color);
}

/* ============================
   Hero セクション（ManabiStyle固有 - 現行サイトと同じスタイル）
   ============================ */

.theme-hero {
  position: relative;
  background: linear-gradient(135deg, var(--theme-main-color-light) 30%, var(--theme-accent-color) 80%);
}

@media (min-width: 768px) {
  .theme-hero {
    margin: 0;
  }
}

.theme-hero-inner {
  padding: 0 16px 30% 16px;
  position: relative;
}

@media (min-width: 768px) {
  .theme-hero-inner {
    padding: 0 32px 30% 32px;
  }
}

.theme-hero-title {
  padding: 32px 0 0 0;
  margin: 0;
}

@media (min-width: 768px) {
  .theme-hero-title {
    padding: 40px 0 0 0;
  }
}

.theme-hero-title img {
  width: 250px;
  max-width: 100%;
}

@media (min-width: 768px) {
  .theme-hero-title img {
    width: 360px;
  }
}

/* Hero ナビゲーション */
.theme-hero-nav {
  margin: 0;
}

.theme-hero-nav-title {
  margin: 6px 0 0 0;
  padding: 0;
}

.theme-hero-nav-title img {
  width: 52px;
}

@media (min-width: 768px) {
  .theme-hero-nav-title img {
    width: 80px;
  }
}

.theme-hero-nav-list {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .theme-hero-nav-list {
    margin: 16px 0 0 0;
  }
}

.theme-hero-nav-list li {
  background: url(../images/mnb_nv_arw.png) top 12px left no-repeat;
  background-size: 9px 8px;
  padding: 0 0 0 12px;
}

@media (min-width: 768px) {
  .theme-hero-nav-list li {
    background-position: top 15px left;
    background-size: 9px 8px;
    padding: 0 0 0 16px;
  }
}

.theme-hero-nav-list a {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.4px;
  font-weight: 500;
  text-decoration: underline;
  display: table;
  padding: 8px 0;
  color: var(--theme-text-color);
}

.theme-hero-nav-list a:hover {
  text-decoration: none;
}

@media (min-width: 768px) {
  .theme-hero-nav-list a {
    font-size: 16px;
    line-height: 24px;
  }
}

.theme-hero-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
}

/* ============================
   Pickup セクション（ManabiStyle固有）
   ============================ */

.theme-pickup {
  margin: 0.75rem 0 0 0;
}

.theme-section-inner {
  position: relative;
  padding: 1.5rem 0 0 0;
}

@media (min-width: 768px) {
  .theme-section-inner {
    padding: 1.75rem 0 0 0;
  }
}

.theme-pickup-title {
  position: absolute;
  top: 0;
  left: -1rem;
  z-index: 1000;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .theme-pickup-title {
    left: -2rem;
  }
}

.theme-pickup-title img {
  width: 106px;
}

@media (min-width: 768px) {
  .theme-pickup-title img {
    width: 130px;
  }
}

/* Pickup 動画 */
.theme-pickup-movie {
  background: var(--theme-main-color-light);
  padding: 2px;
  border-radius: 20px;
}

.theme-pickup-movie-inner {
  background: var(--theme-accent-color);
  padding: 2px;
  border-radius: 18px;
}

.theme-pickup-movie-wrapper {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.theme-pickup-movie-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  border-radius: 16px;
  border: none;
}

/* Pickup内の記事一覧（共通スタイルを使用） */
.theme-pickup .theme-article-list {
  margin: 1rem 0 0 0;
}

@media (min-width: 768px) {
  .theme-pickup .theme-article-list {
    margin: 2rem 0 0 0;
  }
}

/* ============================
   セクションタイトル（ManabiStyle固有 - 現行サイトと同じスタイル）
   ============================ */

.theme-manabistyle .theme-section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  font-size: 25px;
  line-height: 29px;
  letter-spacing: 0.8px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .theme-manabistyle .theme-section-title {
    font-size: 31px;
    line-height: 35px;
  }
}

.theme-section-title img.theme-section-title-icon {
  display: block;
  width: 48px;
  margin: 0 auto 16px auto;
}

.theme-section-title-sub {
  font-size: 15px;
  line-height: 19px;
  letter-spacing: 0.8px;
  font-weight: 900;
  display: block;
  margin: 0 auto 4px auto;
}

@media (min-width: 768px) {
  .theme-section-title-sub {
    font-size: 17px;
    line-height: 21px;
    margin: 0 auto 8px auto;
  }
}

.theme-section-title-main {
  font-size: 25px;
  line-height: 29px;
  letter-spacing: 0.8px;
  font-weight: 700;
  display: block;
}

@media (min-width: 768px) {
  .theme-section-title-main {
    font-size: 31px;
    line-height: 35px;
  }
}

/* セクション説明文 */
.theme-section-desc {
  font-size: 13px;
  line-height: 21px;
  letter-spacing: 0.4px;
  font-weight: 700;
  text-align: center;
  margin: 16px 0 0 0;
}

@media (min-width: 768px) {
  .theme-section-desc {
    font-size: 15px;
    line-height: 23px;
  }
}

/* Udemyボタン（theme-femtech-aboutと同じスタイル） */
.theme-udemy-button {
  margin: 0 auto 10%;
  max-width: 60%;
  border-radius: var(--radius-100);
  padding: 0.8em 0;
  display: block;
  position: relative;
  color: #fff !important;
  background-color: var(--theme-main-color);
  font-weight: var(--font-bold-weight);
  text-align: center;
  text-decoration: none;
  font-size: 1.6rem;
  transition: filter 0.2s ease;
}

.theme-udemy-button:hover {
  filter: brightness(1.1);
}

.theme-udemy-button::before {
  font-family: 'Phosphor', sans-serif;
  font-weight: 400;
  content: '\e937';
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .theme-udemy-button {
    font-size: 2.4rem;
  }

  .theme-udemy-button::before {
    font-size: 1.6rem;
  }
}

/* Trendバナー */
.theme-trend-banner {
  margin: 20px 0 0 0;
}

@media (min-width: 768px) {
  .theme-trend-banner {
    margin: 30px 0 0 0;
  }
}

.theme-trend-banner-content {
  font-size: 17px;
  line-height: 25px;
  letter-spacing: 0.8px;
  font-weight: 700;
  display: block;
  background: var(--theme-accent-color);
  height: 80px;
  border-radius: 40px;
  position: relative;
  text-align: left;
  padding: 16px 0 0 32px;
  color: var(--theme-text-color);
  overflow: visible;
}

@media (min-width: 768px) {
  .theme-trend-banner-content {
    font-size: 19px;
    line-height: 27px;
    padding: 15px 0 0 48px;
  }
}

.theme-trend-banner-text {
  font-size: 13px;
  line-height: 21px;
  letter-spacing: 0;
  font-weight: 700;
  display: block;
}

@media (min-width: 768px) {
  .theme-trend-banner-text {
    font-size: 15px;
    line-height: 23px;
  }
}

.theme-trend-banner-title {
  display: block;
}

.theme-trend-banner-content img {
  position: absolute;
  bottom: 0;
  right: 16px;
  width: 75px;
}

@media (min-width: 768px) {
  .theme-trend-banner-content img {
    right: 48px;
    width: 120px;
  }
}

/* ページトップリンク */
.theme-page-top {
  text-align: right;
  padding: 1.5rem 0 0 0;
  margin: 0;
}

@media (min-width: 768px) {
  .theme-page-top {
    margin: 0 0 -3rem 0;
  }
}

.theme-page-top a {
  color: var(--theme-text-color);
  text-decoration: none;
}

.theme-page-top a:hover {
  opacity: 0.8;
}

.theme-page-top a::before {
  content: "";
  background: url(../images/mnb_nv_arw.png);
  background-size: 9px 8px;
  width: 9px;
  height: 8px;
  display: inline-block;
  vertical-align: middle;
  margin: -3px 4px 0 0;
  transform: scale(1, -1);
}

/* ============================
   セクション共通スタイル（watalab/sdgsと統一）
   ============================ */

/* 記事リンクのホバーエフェクト */
.theme-manabistyle .theme-article-link:hover .theme-article-title {
  color: var(--theme-main-color);
  transition: color 0.3s ease;
}

/* 記事カード：点線境界線 */
.theme-manabistyle .theme-article-card {
  margin: 15px 0 0 0;
  padding: 0 0 16px 0;
  background: url(../images/mnb_lst_dln.png) bottom left repeat-x;
  background-size: 3px 1px;
}

@media (min-width: 768px) {
  .theme-manabistyle .theme-article-card {
    margin: 23px 0 0 0;
    padding: 0 0 24px 0;
  }
}

/* セクション間隔の調整 */
.theme-manabistyle .theme-section {
  margin-bottom: 6rem;
  padding: 0 1em;
}

.theme-manabistyle #keywords.theme-section {
  margin-bottom: 0 !important;
}

@media (max-width: 767px) {
  .theme-manabistyle .theme-section {
    padding: 0 0.5em;
  }
}

@media (min-width: 768px) {
  .theme-manabistyle .theme-section {
    margin-bottom: 6.5rem;
    padding: 0 2em;
  }
}

/* ============================
   共通: キーワードリンク集（watalab方式に統一）
   ============================ */

.theme-manabistyle .theme-keyword-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.theme-manabistyle .theme-keyword-tag {
  border-radius: var(--radius-100);
  padding: 0.5em 1em;
  color: #fff;
  background-color: var(--theme-main-color);
  font-weight: var(--font-bold-weight);
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1.5;
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.theme-manabistyle .theme-keyword-tag:hover {
  filter: brightness(1.2);
}

@media (min-width: 768px) {
  .theme-manabistyle .theme-keyword-links {
    gap: 1.5rem;
  }

  .theme-manabistyle .theme-keyword-tag {
    font-size: 1.8rem;
  }
}

/* キーワードセクションのタイトルは共通のセクションタイトルスタイルを使用 */
/* 追加のカスタマイズが必要な場合はここに記述 */