/* 예배 안내 (/WorshipInfo) 전용 — 2026-11-24
   공통 틀은 site/site.css, 색 · 글꼴 값은 site/site-tokens.css · shared/theme.css. 여기에는 색상값을 적지 않습니다.
   치수는 아임웹 https://firstfruitskr.org/WorshipInfo 를 PC 1440px · 모바일 390px 에서 잰 값입니다.
   아임웹 글 위젯은 줄 간격을 문단마다 다르게 두어서(빈 문단 <p><br></p> 로 띄움) 그 모양을 그대로 따릅니다. */

/* 말씀 인용 글꼴 — 원본이 쓰던 리디바탕을 같은 곳(jsDelivr · 눈누)에서 불러옵니다.
   ⚠️ 라이선스를 아직 확인하지 못해 파일을 이 저장소에 넣지 않았습니다(docs/site-migration.md). */
@font-face {
  font-family: "Ridibatang";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/RIDIBatang.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:where(.ffw) :where(p, h2, ul, figure, blockquote, table) {
  margin: 0;
}

.ffw ul {
  padding: 0;
  list-style: none;
}

.ffw a {
  color: inherit;
  text-decoration: none;
}

.ffw strong {
  font-weight: 700;
}

.ffw {
  color: var(--ff-site-text);
}

/* 섹션 바로가기 — 머리말(고정)에 가리지 않게 */
.ffw-target {
  display: block;
  scroll-margin-top: 66px;
}

span.ffw-target {
  height: 0;
}

/* ── 공통 부품 ─────────────────────────────────────────────────────── */

.ffw-line {
  height: 1px;
  background: var(--ff-site-line);
}

.ffw-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  column-gap: 30px;
}

.ffw-cols-flush {
  column-gap: 0;
}

.ffw-eyebrow {
  color: var(--ff-gold);
  font-family: var(--ff-font-heading);
  font-size: 23.148px;
  font-weight: 700;
  line-height: .5;
}

.ffw-h2 {
  font-family: var(--ff-font-heading);
  font-size: 46.278px;
  font-weight: 700;
  line-height: 1.2;
}

.ffw-h2-tight {
  line-height: 1;
}

.ffw-pipe {
  color: var(--ff-site-pipe);
}

.ffw-prose {
  font-size: 18px;
  line-height: 36px;
}

/* ═══════════════════════ PC ═══════════════════════ */

/* 예배 바로가기 아이콘 — 사진 위 아이보리 막 85% */
.ffs-pc .ffw-band {
  height: 336px;
  padding-top: 90px;
  background: linear-gradient(var(--ff-site-veil-band), var(--ff-site-veil-band)),
    url("/WorshipInfo/img/band-pc.webp") 50% 0 / cover no-repeat;
}

.ffw-band-list {
  display: flex;
  justify-content: center;
}

.ffs-pc .ffw-band-list li {
  width: 208.2px;
}

.ffw-band-list a {
  display: block;
  padding-top: 20px;
  border-radius: 5px;
  text-align: center;
}

.ffw-band-list img {
  display: block;
  margin: 0 auto;
}

.ffw-band-list span {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}

.ffs-pc .ffw-band-list span {
  margin-top: 5px;
}

.ffs-pc .ffw-band-list .ffw-band-jp {
  margin-top: 14px;
  font-family: var(--ff-font-heading);
}

.ffw-band-tight {
  letter-spacing: -1px;
}

/* 예배 안내 — 메인(home.css .ffh-worship)과 같은 섹션 */
.ffs-pc .ffw-worship {
  height: 348px;
  margin-top: 10px;
  padding-top: 89px;
}

.ffs-pc .ffw-worship-h2 {
  margin-top: 20px;
}

.ffs-pc .ffw-worship-lead {
  margin-top: 38px;
  font-size: 18px;
  line-height: 2;
}

.ffs-pc .ffw-worship-buttons {
  padding-top: 28px;
}

/* 조모임이란? */
.ffs-pc .ffw-group {
  height: 402px;
  padding-top: 15px;
}

.ffs-pc .ffw-group .ffw-cols {
  margin-top: 80px;
}

/* 원본 PC 는 두 문단 사이가 빈 줄이 아니라 30px */
.ffw-prose .ffw-p-gap {
  margin-top: 30px;
}

/* 설교자 소개 — 사진은 화면 왼쪽(24px)부터, 글은 오른쪽 칸 */
.ffs-pc .ffw-preacher {
  position: relative;
  height: 566px;
  padding-top: 195px;
}

.ffs-pc .ffw-preacher-photo {
  position: absolute;
  top: 25px;
  left: 24px;
  width: 687px;
  height: auto;
}

.ffw-preacher-name {
  margin-top: 21px;
}

.ffs-pc .ffw-preacher-name {
  line-height: 55.5336px;
}

.ffw-fact-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
}

.ffw-preacher-facts p:not(.ffw-fact-label) {
  font-size: 18px;
}

.ffs-pc .ffw-preacher-facts p:first-child {
  margin-top: 41px;
}

.ffs-pc .ffw-preacher-facts p:nth-child(2) {
  margin-top: 4px;
  line-height: 21.6px;
}

.ffs-pc .ffw-fact-gap {
  margin-top: 35px;
}

.ffw-fact-book {
  line-height: 28.8px;
}

/* 말씀 인용 */
.ffw-quotes {
  position: relative;
  height: 364px;
  font-family: var(--ff-font-quote);
}

.ffw-quotes-viewport {
  height: 100%;
}

.ffw-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.ffw-quote[hidden] {
  display: none;
}

.ffw-quote.is-active {
  animation: ffw-fade-in 1s;
}

@keyframes ffw-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ffw-quote.is-active {
    animation: none;
  }
}

.ffw-quote img {
  display: block;
}

.ffw-quote blockquote {
  margin-top: 39px;
  font-size: 22px;
  line-height: 36px;
}

.ffw-quote figcaption {
  margin-top: 45px;
  font-size: 16px;
  line-height: 30px;
  text-align: right;
}

.ffw-quotes-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  gap: 14px;
  transform: translateX(-50%);
}

.ffw-quotes-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--ff-gold);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.ffw-quotes-dot.is-active {
  background: var(--ff-gold);
}

.ffw-quotes-arrow {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
}

/* 얇은 꺾쇠 ‹ › — 선 두 개를 돌려서 */
.ffw-quotes-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--ff-site-label);
  border-left: 1px solid var(--ff-site-label);
  opacity: .45; /* 원본처럼 아주 연하게 */
}

.ffw-quotes-prev {
  left: 10px;
}

.ffw-quotes-prev::before {
  transform: translate(-30%, -50%) rotate(-45deg);
}

.ffw-quotes-next {
  right: 10px;
}

.ffw-quotes-next::before {
  transform: translate(-70%, -50%) rotate(135deg);
}

/* 어린이 · 어르신 · 영어 · 일본어 — 위에 선, 왼쪽 큰 제목 + 예배 단추, 오른쪽 시간 · 설명 */
.ffs-pc .ffw-sec .ffw-cols {
  margin-top: 86px;
}

.ffs-pc .ffw-children {
  height: 746px;
}

.ffs-pc .ffw-youth {
  height: 475px;
}

.ffs-pc .ffw-english {
  height: 472px;
}

.ffs-pc .ffw-japanese {
  height: 519px;
}

/* 오른쪽 칸 글 폭은 원본처럼 595px (칸 610 − 15) */
.ffs-pc .ffw-sec .ffw-cols > div + div {
  padding-right: 15px;
}

.ffs-pc .ffw-sec .ffw-h2 {
  line-height: 55.5336px;
}

.ffs-pc .ffw-gw {
  width: 417px;
  margin-top: 46px;
}

.ffs-pc .ffw-children .ffw-gw {
  margin-top: 60px;
}

.ffw-h2-dots,
.ffw-h2-narrow {
  letter-spacing: -1px;
}

.ffw-h2-dots span {
  letter-spacing: 1px;
}

/* 어린이 예배 · 아이 돌봄 두 칸 */
.ffw-times-two {
  display: grid;
  grid-template-columns: 239px 1fr;
  margin-top: 2px;
  padding-left: 8px;
}

.ffw-label {
  color: var(--ff-gold);
  font-size: 22px;
  font-weight: 700;
  line-height: 26.4px;
}

.ffw-time {
  margin-top: 20px;
  font-size: 36px;
  font-weight: 700;
  line-height: 43.2px;
}

.ffs-pc .ffw-children .ffw-prose {
  margin-top: 24px;
}

.ffw-children .ffw-prose p:first-child {
  font-family: var(--ff-font-heading);
}

.ffs-pc .ffw-children .ffw-prose p:first-child {
  line-height: 32px;
}

/* 어르신 · 청년 · 청소년 — 설명과 조 표 */
.ffs-pc .ffw-youth .ffw-prose {
  margin-top: -3px;
}

.ffw-table {
  width: 100%;
  border-top: 1px solid var(--ff-site-cell-line);
  border-collapse: collapse;
  font-size: 18px;
  line-height: 28.8px;
}

.ffs-pc .ffw-table {
  margin-top: 29px;
}

.ffw-table tr:nth-child(odd) {
  background: var(--ff-site-row-tint);
}

.ffw-table th,
.ffw-table td {
  height: 46px;
  box-sizing: border-box;
  padding: 0 8px;
  border-bottom: 1px solid var(--ff-site-cell-line);
  text-align: left;
  vertical-align: middle;
}

.ffw-table th {
  width: 117px;
  font-weight: 700;
}

/* 영어 · 일본어 — 금색 작은 제목 · 시간 · 설명 · 연락처 */
.ffw-eyebrow-row {
  margin-top: 4px;
  line-height: 34.722px;
}

.ffw-time-jp {
  margin-top: 11px;
  font-family: var(--ff-font-heading);
}

.ffs-pc .ffw-prose-after-time {
  margin-top: 27px;
}

.ffs-pc .ffw-japanese .ffw-prose-after-time {
  margin-top: 28px;
}

.ffw-contact {
  font-size: 18px;
  line-height: 21.6px;
}

.ffw-contact img {
  display: inline-block;
  vertical-align: middle;
}

.ffs-pc .ffw-english .ffw-contact {
  margin-top: 27px;
  font-family: var(--ff-font-heading);
}

.ffs-pc .ffw-english .ffw-contact-web {
  margin-top: 21px;
  padding-left: 70px;
  font-family: var(--ff-font-site);
  line-height: 28.8px;
}

.ffs-pc .ffw-contact-jp {
  margin-top: 20px;
  line-height: 28.8px;
}

/* ═══════════════════════ 모바일 ═══════════════════════ */

@media (max-width: 991px) {
  .ffw-target {
    scroll-margin-top: 57px;
  }

  .ffw-eyebrow {
    font-size: 18px;
    line-height: 21.6px;
  }

  .ffw-h2 {
    font-size: 26px;
    line-height: 31.2px;
  }

  .ffw-pipe {
    color: var(--ff-site-pipe-mobile);
  }

  /* 예배 바로가기 — 일반 예배 한 줄 + 2 × 2 */
  .ffs-mo .ffw-band {
    height: 502px;
    padding: 58px 15px 0;
    background: linear-gradient(var(--ff-site-veil-band), var(--ff-site-veil-band)),
      url("/WorshipInfo/img/band-mo.webp") 50% 0 / cover no-repeat;
  }

  .ffs-mo .ffw-band-list {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 31px;
  }

  .ffs-mo .ffw-band-list li {
    width: calc(50% - 7.5px);
  }

  .ffs-mo .ffw-band-list li.ffw-band-wide {
    width: 100%;
  }

  .ffs-mo .ffw-band-list li:nth-child(n+4) {
    margin-top: 6px;
  }

  .ffs-mo .ffw-band-list a {
    padding: 5px 0 0;
  }

  .ffs-mo .ffw-band-list span {
    margin-top: 4.6px;
    font-size: 18px;
    line-height: 28.8px;
  }

  /* 예배 안내 */
  .ffs-mo .ffw-worship {
    padding: 66px 0 28px;
  }

  .ffs-mo .ffw-worship-h2 {
    margin-top: 21px;
  }

  .ffs-mo .ffw-worship-lead {
    margin-top: 25px;
    font-size: 18px;
    line-height: 28.8px;
  }

  .ffs-mo .ffw-worship-buttons {
    margin-top: 23px;
  }

  /* 조모임이란? */
  .ffs-mo .ffw-group {
    padding: 12px 0 28px;
  }

  .ffs-mo .ffw-group .ffw-h2 {
    margin-top: 40px;
  }

  .ffs-mo .ffw-group .ffw-prose {
    margin-top: 26px;
  }

  /* 설교자 소개 */
  .ffs-mo .ffw-preacher {
    margin-top: 10px;
    padding: 19px 0 12px;
  }

  .ffs-mo .ffw-preacher-photo {
    display: block;
    width: 100%;
    max-width: 390px;
    height: auto;
    margin: 0 auto;
  }

  .ffs-mo .ffw-preacher .ffw-eyebrow {
    margin-top: 31px;
  }

  .ffs-mo .ffw-preacher-name {
    margin-top: 20px;
    font-size: 30px;
    line-height: 36px;
  }

  .ffs-mo .ffw-fact-label {
    line-height: 32px;
  }

  .ffs-mo .ffw-preacher-facts p:first-child {
    margin-top: 29px;
  }

  .ffs-mo .ffw-preacher-facts p:nth-child(2) {
    line-height: 36px;
  }

  .ffs-mo .ffw-fact-gap {
    margin-top: 39px;
  }

  .ffs-mo .ffw-preacher-line {
    margin-top: 31px;
  }

  /* 말씀 인용 */
  .ffw-quotes {
    height: 597px;
  }

  .ffw-quote {
    padding: 0 28px;
  }

  .ffw-quote blockquote {
    font-size: 20px;
  }

  .ffw-quote figcaption {
    margin-top: 43px;
  }

  .ffw-quotes-arrow {
    display: none;
  }

  .ffw-quotes-dots {
    bottom: 24px;
  }

  /* 어린이 · 어르신 · 영어 · 일본어 — 금색 작은 제목 · 시간 · 설명 · 예배 단추 */
  .ffs-mo .ffw-sec {
    padding: 75px 0 20px;
  }

  .ffw-time-h {
    margin-top: 21px;
  }

  .ffs-mo .ffw-prose-lead {
    margin-top: 29px;
  }

  .ffs-mo .ffw-children .ffw-prose-lead {
    margin-top: 37px;
  }

  .ffs-mo .ffw-children .ffw-prose p:first-child {
    line-height: 23.1px;
  }

  .ffs-mo .ffw-table {
    margin-top: 16px;
    font-size: 16px;
    line-height: 25.6px;
  }

  .ffs-mo .ffw-table th {
    width: 79px;
  }

  .ffs-mo .ffw-gw {
    margin-top: 42px;
  }

  /* 원본은 섹션마다 단추 위 간격이 조금씩 다릅니다 */
  .ffs-mo .ffw-youth .ffw-gw {
    margin-top: 53px;
  }

  .ffs-mo .ffw-japanese .ffw-gw {
    margin-top: 31px;
  }

  .ffw-eyebrow-flush {
    padding-left: 0;
  }
}
