/* ================================================================
   components.css — 汎用部品
   カード / ボタン / セクションタイトル / テーブル /
   情報リスト / フォーム / 例会行 / 活動カード /
   お知らせ行 / リンクカード
   ================================================================ */

/* ── セクションタイトル ── */
.rc-section__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cool-4);
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 4px solid var(--brilliant-4);
  line-height: 1.4;
}
.rc-body-text { font-size: .9rem; color: var(--cool-4); line-height: 1.8; }

/* ── カード ── */
.rc-card {
  background: var(--base-1);
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  padding: 24px;
  border-top: 3px solid var(--rotary-blue);
}
.rc-card-hover {
  background: var(--base-1);
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: box-shadow .2s, transform .2s;
  display: block;
}
.rc-card-hover:hover { box-shadow: 0 6px 28px rgba(0,0,0,.14); transform: translateY(-2px); }

/* ── ボタン ── */
.rc-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--rotary-blue);
  color: #fff;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.rc-btn:hover   { background: var(--rotary-blue-dk); color: #fff; }
.rc-btn--full   { width: 100%; text-align: center; padding: 13px; font-size: .95rem; }

/* ── テーブル ── */
.rc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rc-table th {
  padding: 12px 16px;
  background: var(--cool-1);
  color: var(--cool-4);
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  border-bottom: 1px solid var(--cool-2);
  border-right: 2px solid var(--cool-2);
}
.rc-table td { padding: 12px 16px; border-bottom: 1px solid var(--cool-2); color: var(--cool-5); vertical-align: top; }
.rc-table tr:last-child th,
.rc-table tr:last-child td  { border-bottom: none; }
.rc-table tr:hover td       { background: var(--base-2); }
.rc-table--def th { width: 38%; font-weight: 500; color: var(--cool-3); background: transparent; border-right: none; border-bottom: 1px solid var(--cool-2); }
.rc-table--def td { border-bottom: 1px solid var(--cool-2); }

/* ── 情報リスト ── */
.rc-info-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--cool-2); }
.rc-info-item:last-child   { border-bottom: none; }
.rc-info-item__label { font-size: .72rem; color: var(--cool-3); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.rc-info-item__value { font-size: .9rem; color: var(--cool-5); font-weight: 500; }

/* ── フォーム（汎用） ── */
.rc-form-group { margin-bottom: 16px; }
.rc-form-group label { display: block; font-size: .8rem; color: var(--cool-4); font-weight: 500; margin-bottom: 5px; }
.rc-form-group .required { color: #e53e3e; margin-left: 4px; font-size: .72rem; }
.rc-form-group input,
.rc-form-group textarea,
.rc-form-group select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--cool-2); border-radius: 6px;
  font-family: 'Noto Sans JP', sans-serif; font-size: .9rem;
  color: var(--cool-5); outline: none; transition: border-color .2s;
}
.rc-form-group input:focus,
.rc-form-group textarea:focus { border-color: var(--rotary-blue); }
.rc-form-group textarea { height: 130px; resize: vertical; }

/* ── 例会行 ── */
.rc-meetings-list { display: flex; flex-direction: column; gap: 12px; }
.rc-meeting-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--rotary-blue);
  background: var(--base-1);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  transition: box-shadow .15s;
  color: inherit;
}
.rc-meeting-row:hover           { box-shadow: 0 3px 16px rgba(0,0,0,.12); }
.rc-meeting-row__date           { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.rc-meeting-row__date-m         { font-size: .68rem; color: var(--cool-3); }
.rc-meeting-row__date-d         { font-size: 1.5rem; font-weight: 700; color: var(--cool-4); line-height: 1; }
.rc-meeting-row__date-w         { font-size: .68rem; color: var(--cool-3); }
.rc-meeting-row__body           { flex: 1; }
.rc-meeting-row__tag {
  display: inline-flex;
  padding: 2px 8px;
  background: rgba(23,69,143,.1);
  color: var(--rotary-blue);
  border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  margin-bottom: 4px;
}
.rc-meeting-row__title   { font-size: .9rem; font-weight: 500; color: var(--cool-5); }
.rc-meeting-row__speaker { font-size: .78rem; color: var(--cool-3); margin-top: 2px; }

/* ── 活動カード ── */
.rc-activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rc-activity-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--base-1);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.rc-activity-card:hover         { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.13); }
.rc-activity-card__img          { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--cool-2); }
.rc-activity-card__body         { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.rc-activity-card__date         { font-size: .72rem; color: var(--cool-3); margin-bottom: 6px; }
.rc-activity-card__title        { font-size: .88rem; font-weight: 700; color: var(--cool-5); line-height: 1.5; flex: 1; }
.rc-activity-card__desc         { font-size: .78rem; color: var(--cool-3); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── お知らせ行 ── */
.rc-announcements { display: flex; flex-direction: column; gap: 8px; }
.rc-announcement  {
  padding: 14px 16px;
  border-left: 4px solid var(--rotary-blue);
  background: var(--base-1);
  border-radius: 0 6px 6px 0;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
  color: inherit;
}
.rc-announcement__tag {
  padding: 2px 8px;
  background: rgba(23,69,143,.1);
  color: var(--rotary-blue);
  border-radius: 999px;
  font-size: .68rem; font-weight: 700;
  white-space: nowrap;
}
.rc-announcement__title { font-size: .88rem; color: var(--cool-5); flex: 1; }
.rc-announcement__date  { font-size: .72rem; color: var(--cool-3); white-space: nowrap; }

/* ── リンクカード ── */
.rc-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rc-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 16px 20px;
  background: var(--base-1);
  color: var(--cool-4);
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--cool-2);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.rc-link-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
  border-color: var(--rotary-blue);
  color: var(--rotary-blue);
}
.rc-link-card__logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.rc-link-card span { line-height: 1.5; }
