@charset "UTF-8";

/* ========================================
   SAVE THE FARMS by YANMAR 出展レポート「農業WEEK2026」（/jp/save_the_farms/agriweek2026/）
   部品ベース版。枠・見出し・段落・画像・ボタン・2 列・3 列は <y-*> 部品と共通クラスで組み、
   ここには合う部品が無い独自パーツだけを書く。部品の中のスタイルは上書きしない。
   すべてのセレクタは .stf-rp から始める
   ======================================== */

.stf-rp {
  --stf-rp-red: #dc1e37;
  --stf-rp-line: #d9d9d9;
  --stf-rp-text-sub: #595959;
}

/* リード文（見出しの下の一文） */
.stf-rp .stf-rp-lead {
  font-weight: 700;
}

/* ---------- 講演の日時と演題（左の赤い日付ブロック） ---------- */
.stf-rp .stf-rp-event {
  display: flex;
  gap: 21px;
  overflow: hidden;
  border: 1px solid var(--stf-rp-line);
  border-radius: 10px;
  background: #ffffff;
}

.stf-rp .stf-rp-event__date {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 189px;
  padding: 21px 14px;
  background: var(--stf-rp-red);
  color: #ffffff;
  text-align: center;
}

.stf-rp .stf-rp-event__day {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.stf-rp .stf-rp-event__time {
  font-size: 14px;
  line-height: 1.8;
}

.stf-rp .stf-rp-event__title {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 21px 35px 21px 0;
}

.stf-rp .stf-rp-event__label {
  color: var(--stf-rp-red);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.stf-rp .stf-rp-event__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
}

/* ---------- 講演者カード（y-grid の li の中身） ---------- */
.stf-rp .stf-rp-speaker {
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  height: 100%;
  padding: 21px;
  border: 1px solid var(--stf-rp-line);
  border-radius: 10px;
  background: #ffffff;
  list-style: none;
}

.stf-rp .stf-rp-speaker__profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stf-rp .stf-rp-speaker__photo {
  flex: none;
  width: 80px;
  height: 102px;
  border-radius: 5px;
  object-fit: cover;
}

.stf-rp .stf-rp-speaker__id {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.stf-rp .stf-rp-speaker__org {
  color: var(--stf-rp-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.stf-rp .stf-rp-speaker__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.stf-rp .stf-rp-speaker__role {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stf-rp-line);
  color: var(--stf-rp-text-sub);
  font-size: 12px;
  line-height: 1.8;
  word-break: keep-all;
}

.stf-rp .stf-rp-speaker__summary {
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 赤い大きな文字のまとめ ---------- */
.stf-rp .stf-rp-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.stf-rp .stf-rp-callout__bar {
  width: 56px;
  height: 4px;
  background: var(--stf-rp-red);
}

.stf-rp .stf-rp-callout__title {
  margin: 0;
  color: var(--stf-rp-red);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
}

/* y-bisection は 660px 以下で左右を縦に積み、間を空けない。部品の中は触らず、こちらで書いた右側の中身に上の余白を付ける */
@media (max-width: 660px) {
  .stf-rp y-bisection > [slot="right"] {
    margin-top: 24px;
  }
}

/* ---------- SP（768px 以下） ---------- */
@media (max-width: 768px) {
  .stf-rp .stf-rp-event {
    flex-direction: column;
    gap: 0;
  }

  .stf-rp .stf-rp-event__date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    width: auto;
    padding: 10px 16px;
  }

  .stf-rp .stf-rp-event__day {
    font-size: 16px;
  }

  .stf-rp .stf-rp-event__title {
    padding: 16px;
  }

  .stf-rp .stf-rp-event__name {
    font-size: 16px;
  }

  .stf-rp .stf-rp-callout__title {
    font-size: 22px;
  }
}
