/* ===================
   Parts CSS - v1
   共通パーツのスタイル
   .page-content スコープで共通ヘッダー・フッターに影響しないよう限定
   =================== */

/* ===================
   ボタン
   =================== */

/* 標準ボタン（丸角） */
.page-content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-brown);
  color: var(--color-white);
  border-radius: var(--radius-btn);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  padding: 12px 40px;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.page-content .btn:hover {
  opacity: 0.85;
}

/* ボタンサイズ */
.page-content .btn-sm {
  min-width: 170px;
  height: 47px;
}

.page-content .btn-md {
  min-width: 218px;
  height: 47px;
}

.page-content .btn-lg {
  min-width: 346px;
  height: 47px;
}

.page-content .btn-xl {
  min-width: 434px;
  height: 52px;
}

/* ボタンカラーバリエーション */
.page-content .btn-green {
  background: var(--color-green);
}

.page-content .btn-orange {
  background: var(--color-orange);
}

.page-content .btn-blue {
  background: var(--color-blue);
}

.page-content .btn-brown {
  background: var(--color-brown);
}

/* リンクボタン（四角） */
.page-content .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-brown);
  color: var(--color-white);
  border-radius: 0;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  padding: 12px 40px;
  height: 55px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.page-content .btn-link:hover {
  opacity: 0.85;
}

/* ボタン無効状態 */
.page-content .btn-link.disabled,
.page-content .btn-link[disabled] {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.page-content .btn-link-full {
  width: 800px;
}

.page-content .btn-link-half {
  width: 380px;
}

/* ===================
   バッジ
   =================== */

.page-content .badge-action {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-content .badge-action .badge-label {
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--color-white);
  text-transform: uppercase;
}

.page-content .badge-action .badge-number {
  font-size: 28px;
  font-weight: var(--fw-black);
  color: var(--color-white);
  line-height: 1;
}

/* ===================
   カード
   =================== */

.page-content .card {
  background: var(--bg-card);
  border: var(--stroke-card);
  border-radius: var(--radius-card-sm);
  padding: var(--space-xl);
}

.page-content .card-lg {
  border-radius: var(--radius-card-lg);
}

.page-content .card-md {
  border-radius: var(--radius-card-md);
}

/* 寄付カード */
.page-content .card-donation {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 680px;
  margin: 0 auto;
  background: #F0EFEC;
  border: none;
  border-radius: 16px 16px 16px 0;
  padding: 10px 24px;
  box-sizing: border-box;
}

.page-content .card-donation-highlight {
  background: #F0EFEC;
}

.page-content .card-donation-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}

.page-content .card-donation .text-body-sm {
  margin: 0;
  line-height: 1.4;
}

/* ===================
   タグ / ラベル
   =================== */

.page-content .tag-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-brown);
  font-size: 18px;
  font-weight: var(--fw-medium);
}

.page-content .tag-date-icon {
  width: 24px;
  height: 24px;
}

/* チョコっと寄付タグ */
.page-content .tag-donation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 165px;
  height: 26px;
  background: var(--color-brown);
  color: var(--color-white);
  border-radius: var(--radius-tag);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
}

/* ===================
   タイトル
   =================== */

/* アクションタイトル */
.page-content .title-action {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-brown);
  line-height: 1.3;
}

.page-content .title-action-sub {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-brown);
}

/* セクションタイトル（大）：2行タイトル + デコレーション線 */
.page-content .title-section-lg {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-content .title-section-lg-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.2;
}

.page-content .title-section-lg-text {
  font-size: 34px;
  font-weight: var(--fw-bold);
  color: var(--color-orange);
  line-height: 1.2;
}

.page-content .title-section-lg-sub {
  font-size: 18px;
  font-weight: var(--fw-medium);
  color: var(--color-brown);
  line-height: 1.4;
  margin-top: 8px;
}

.page-content .title-section-lg-decor {
  height: 84px;
}

.page-content .title-section-lg-decor-right {
  transform: scaleX(-1);
}

/* セクションタイトル（小）：1行タイトル + デコレーション線（青背景用） */
.page-content .title-section-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 0;
  background: var(--color-light-blue);
}

.page-content .title-section-sm-text {
  font-size: 22px;
  font-weight: var(--fw-bold);
  color: var(--color-blue);
}

.page-content .title-section-sm-decor {
  height: 44px;
}

.page-content .title-section-sm-decor-right {
  transform: scaleX(-1);
}

/* セクションタイトル（小）インライン版：背景なし */
.page-content .title-section-sm-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-content .title-section-sm-inline .title-section-sm-text {
  font-size: 28px;
}

/* ===================
   テキスト
   =================== */

.page-content .text-body {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--color-brown);
  line-height: 1.6;
}

.page-content .text-body-sm {
  font-size: var(--fs-body-sm);
  line-height: 1.6;
}

.page-content .text-caption {
  font-size: var(--fs-caption);
  color: var(--color-brown);
}

/* ===================
   リンク
   =================== */

.page-content .link {
  color: var(--color-orange);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-content .link:hover {
  text-decoration: none;
}

.page-content .link-arrow {
  width: 10px;
  height: 15px;
}

/* ===================
   区切り線
   =================== */

.page-content .divider {
  width: 100%;
  height: 3px;
  background: var(--color-brown);
}

.page-content .divider-orange {
  width: 100%;
  height: 3px;
  background: var(--color-orange);
}

.page-content .divider-blue {
  width: 100%;
  height: 3px;
  background: var(--color-blue);
}

.page-content .divider-green {
  width: 100%;
  height: 3px;
  background: var(--color-green);
}

/* ===================
   吹き出し括弧テキスト
   =================== */

.page-content .bracket-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-content .bracket-text-inner {
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--color-brown);
}

.page-content .bracket-left,
.page-content .bracket-right {
  flex-shrink: 0;
}

/* ===================
   リスト
   =================== */

.page-content .list-table {
  width: 100%;
}

.page-content .list-table-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-page);
  border-radius: var(--radius-table);
  margin-bottom: 6px;
  font-size: var(--fs-body-sm);
}

.page-content .list-table-row:last-child {
  margin-bottom: 0;
}

/* ===================
   画像コンテナ
   =================== */

.page-content .img-container {
  border-radius: var(--radius-card-sm);
  overflow: hidden;
}

.page-content .img-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 画像グリッド */
.page-content .img-grid {
  display: flex;
  gap: 20px;
}

.page-content .img-grid-item {
  flex: 1;
  border-radius: var(--radius-card-sm);
  overflow: hidden;
}

/* ===================
   アイコン
   =================== */

.page-content .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-content .icon-50 {
  width: 50px;
  height: 50px;
}

/* TOPボタン */
.page-content .btn-top {
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.page-content .btn-top-text {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--color-brown);
}

/* ===================
   ユーティリティ
   =================== */

.page-content .text-center {
  text-align: center;
}

.page-content .text-left {
  text-align: left;
}

.page-content .flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-content .gap-sm {
  gap: var(--space-sm);
}

.page-content .gap-md {
  gap: var(--space-md);
}

.page-content .gap-lg {
  gap: var(--space-lg);
}

/* ===================
   SP版（375px）レスポンシブ
   =================== */

@media (max-width: 768px) {
  /* ボタン SP */
  .page-content .btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .page-content .btn-sm {
    min-width: 150px;
    height: 44px;
  }

  .page-content .btn-md {
    min-width: 202px;
    height: 52px;
  }

  .page-content .btn-lg {
    min-width: 280px;
    height: 52px;
  }

  .page-content .btn-xl {
    min-width: 100%;
    height: 60px;
  }

  /* 応募ボタン SP */
  .page-content .btn-submit-full,
  .page-content .btn-submit-half {
    width: 100%;
  }

  /* リンクボタン SP */
  .page-content .btn-link {
    padding: 16px 20px;
    height: auto;
    min-height: 56px;
    font-size: 14px;
  }

  .page-content .btn-link-full {
    width: 100%;
  }

  .page-content .btn-link-half {
    width: 100%;
  }

  .page-content .btn-link-event {
    height: auto;
    min-height: 60px;
    padding: 18px 24px;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
  }

  /* バッジ SP */
  .page-content .badge-action {
    width: 70px;
    height: 70px;
  }

  .page-content .badge-action .badge-label {
    font-size: 8px;
  }

  .page-content .badge-action .badge-number {
    font-size: 18px;
  }

  /* タグ SP */
  .page-content .tag-date {
    font-size: 14px;
  }

  .page-content .tag-date-icon {
    width: 23px;
    height: 24px;
  }

  /* タイトル SP */
  .page-content .title-action {
    font-size: 26px;
  }

  .page-content .title-action-sub {
    font-size: 18px;
  }

  /* セクションタイトル大 SP */
  .page-content .title-section-lg {
    gap: 8px;
  }

  .page-content .title-section-lg-decor {
    height: 50px;
  }

  .page-content .title-section-lg-text {
    font-size: 20px;
  }

  .page-content .title-section-lg-sub {
    font-size: 14px;
    margin-top: 4px;
  }

  /* セクションタイトル小 SP */
  .page-content .title-section-sm {
    padding: 20px 0;
  }

  .page-content .title-section-sm-text {
    font-size: 16px;
  }

  .page-content .title-section-sm-decor {
    height: 32px;
  }

  .page-content .title-section-sm-inline .title-section-sm-text {
    font-size: 18px;
  }

  /* リスト SP */
  .page-content .list-table-row {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* 画像グリッド SP - 縦積み */
  .page-content .img-grid {
    flex-direction: column;
    gap: 16px;
  }

  /* 寄付カード SP - 縦並び（アイコン上、テキスト下） */
  .page-content .card-donation {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding: 16px;
  }

  .page-content .card-donation-icon {
    width: 40px;
    height: 40px;
  }

  .page-content .card-donation .text-body-sm {
    font-size: 14px;
  }

  /* TOPボタン SP */
  .page-content .btn-top {
    width: 50px;
    height: 50px;
  }

  .page-content .btn-top-text {
    font-size: 12px;
  }
}
