/**
 * Theme Base Styles
 * SDGs / Watalab 共通のベーススタイル
 * index-common.css の構造に色・サイズ・間隔を追加
 */

/* ============================
   共通設定
   ============================ */

html {
  font-size: 10px !important;
}

.sp-only {
  display: none;
}

@media (max-width: 767px) {
  .sp-only {
    display: inline;
  }
}

/* ============================
   メインコンテンツ
   ============================ */

.theme-container {
  min-height: 100vh;
}

.theme-container .main-content {
  margin: 0 auto;
  max-width: 768px;
  padding: 20px 0 80px;
}

/* ============================
   メインビジュアル
   ============================ */

.theme-main-visual {
  width: 100%;
  margin-bottom: 4rem;
}

.theme-main-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================
   リードテキスト
   ============================ */

.theme-lead {
  padding: 0 1em 1.5em;
  margin-bottom: 2rem;
}
.theme-lead p{
  line-height: var(--line-height-base);
  font-size: 1.4rem;
  letter-spacing: var(--letter-space-normal);
}

/* ============================
   記事一覧セクション
   ============================ */

.theme-section {
  margin-bottom: 4rem;
}

.theme-section-title {
  margin-bottom: 2rem;
}

.theme-section-title img {
  width: 100%;
  height: auto;
}

/* ============================
   記事一覧
   ============================ */

.theme-article-list {
  display: flex;
  flex-flow: column;
  gap: 30px;
}

.theme-article-link {
  display: flex;
  flex-flow: row;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  gap: 20px;
}

/* サムネイル */
.theme-article-thumb {
  flex: 0 0 100px;
  width: 100px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--color-bg-gray);
  border-radius: var(--radius-6);
}

.theme-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  aspect-ratio: 3 / 2;
}

.theme-article-card:hover .theme-article-thumb img {
  transform: scale(1.05);
}

/* 記事情報 */
.theme-article-info {
  flex: 1;
  display: flex;
  flex-flow: column;
  justify-content: center;
  gap: 10px;
}

.theme-article-title {
  font-size: 1.4rem;
  font-weight: var(--font-bold-weight);
  line-height: var(--line-height-base);
  color: var(--color-text);
  margin: 0;
}

.theme-article-date {
  font-size: 1.1rem;
  color: var(--color-second);
  display: block;
}

/* ============================
   ページネーション
   ============================ */

.theme-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.theme-pagination-prev,
.theme-pagination-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  background: #90c31f;
  border: 1px solid #90c31f;
  border-radius: var(--radius-6);
  color: var(--color-text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.theme-pagination-prev i,
.theme-pagination-next i {
  font-size: 2rem;
  line-height: 1;
  pointer-events: none;
}

.theme-pagination-prev:hover,
.theme-pagination-next:hover {
  filter: brightness(1.1);
}

.theme-pagination-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-light);
  border-radius: var(--radius-6);
  color: var(--color-text);
  font-size: 1.4rem;
  font-weight: var(--font-sub-weight);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.theme-pagination-number:hover {
  background: var(--color-bg-gray);
  border-color: #90c31f;
}

.theme-pagination-number.is-active {
  background: color-mix(in srgb, #90c31f 10%, transparent);
  color: var(--color-text);
  border-color: #90c31f;
  font-weight: var(--font-bold-weight);
}

/* ============================
   記事がない場合
   ============================ */

.theme-no-posts {
  text-align: center;
  font-size: 1.4rem;
  color: var(--color-second);
  padding: 60px 20px;
}

/* ============================
   フェムテック説明リンク（共通コンポーネント）
   ============================ */

.theme-femtech-about {
  margin: 0 auto 10%;
  max-width: 60%;
  border-radius: var(--radius-100);
  padding: 0.8em 0;
  display: block;
  position: relative;
  color: #fff;
  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-femtech-about:hover {
  filter: brightness(1.1);
}

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

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

  .theme-femtech-about::before {
    font-size: 1.6rem;
  }
}

/* ============================
   レスポンシブ: モバイル
   ============================ */

@media (max-width: 767px) {
  .theme-container .main-content {
    width: 94%;
  }

  /* ページネーション */
  .theme-pagination {
    gap: 6px;
    margin-top: 30px;
  }

  .theme-pagination-prev,
  .theme-pagination-next {
    width: 36px;
    height: 36px;
  }

  .theme-pagination-prev i,
  .theme-pagination-next i {
    font-size: 1.8rem;
  }
}

/* ============================
   レスポンシブ: タブレット・PC
   ============================ */

@media (min-width: 768px) {
  .theme-container .main-content {
    padding: 0 0 120px;
  }
  .theme-section {
    margin-bottom: 6rem;
  }

  .theme-article-thumb {
    flex: 0 0 120px;
    width: 120px;
  }

  .theme-article-date {
    font-size: 1.2rem;
  }
}
